Index: generated/googleapis_beta/lib/sqladmin/v1beta3.dart |
diff --git a/generated/googleapis_beta/lib/sqladmin/v1beta3.dart b/generated/googleapis_beta/lib/sqladmin/v1beta3.dart |
index a82eaf93c450febe814bc2dcefe274de8a63affb..124c21bcf857c12f21215cd90475a251b8f488db 100644 |
--- a/generated/googleapis_beta/lib/sqladmin/v1beta3.dart |
+++ b/generated/googleapis_beta/lib/sqladmin/v1beta3.dart |
@@ -9,22 +9,21 @@ import 'dart:convert' as convert; |
import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons; |
import 'package:http/http.dart' as http; |
-export 'package:_discoveryapis_commons/_discoveryapis_commons.dart' show |
- ApiRequestError, DetailedApiRequestError; |
+export 'package:_discoveryapis_commons/_discoveryapis_commons.dart' |
+ show ApiRequestError, DetailedApiRequestError; |
const core.String USER_AGENT = 'dart-api-client sqladmin/v1beta3'; |
-/** |
- * Creates and configures Cloud SQL instances, which provide fully-managed MySQL |
- * databases. |
- */ |
+/// Creates and configures Cloud SQL instances, which provide fully-managed |
+/// MySQL databases. |
class SqladminApi { |
- /** View and manage your data across Google Cloud Platform services */ |
- static const CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platform"; |
- |
- /** Manage your Google SQL Service instances */ |
- static const SqlserviceAdminScope = "https://www.googleapis.com/auth/sqlservice.admin"; |
+ /// View and manage your data across Google Cloud Platform services |
+ static const CloudPlatformScope = |
+ "https://www.googleapis.com/auth/cloud-platform"; |
+ /// Manage your Google SQL Service instances |
+ static const SqlserviceAdminScope = |
+ "https://www.googleapis.com/auth/sqlservice.admin"; |
final commons.ApiRequester _requester; |
@@ -35,43 +34,43 @@ class SqladminApi { |
SslCertsResourceApi get sslCerts => new SslCertsResourceApi(_requester); |
TiersResourceApi get tiers => new TiersResourceApi(_requester); |
- SqladminApi(http.Client client, {core.String rootUrl: "https://www.googleapis.com/", core.String servicePath: "sql/v1beta3/"}) : |
- _requester = new commons.ApiRequester(client, rootUrl, servicePath, USER_AGENT); |
+ SqladminApi(http.Client client, |
+ {core.String rootUrl: "https://www.googleapis.com/", |
+ core.String servicePath: "sql/v1beta3/"}) |
+ : _requester = |
+ new commons.ApiRequester(client, rootUrl, servicePath, USER_AGENT); |
} |
- |
class BackupRunsResourceApi { |
final commons.ApiRequester _requester; |
- BackupRunsResourceApi(commons.ApiRequester client) : |
- _requester = client; |
- |
- /** |
- * Retrieves information about a specified backup run for a Cloud SQL |
- * instance. |
- * |
- * Request parameters: |
- * |
- * [project] - Project ID of the project that contains the instance. |
- * |
- * [instance] - Cloud SQL instance ID. This does not include the project ID. |
- * |
- * [backupConfiguration] - Identifier for the backup configuration. This gets |
- * generated automatically when a backup configuration is created. |
- * |
- * [dueTime] - The start time of the four-hour backup window. The backup can |
- * occur any time in the window. The time is in RFC 3339 format, for example |
- * 2012-11-15T16:19:00.094Z. |
- * |
- * Completes with a [BackupRun]. |
- * |
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
- * error. |
- * |
- * If the used [http.Client] completes with an error when making a REST call, |
- * this method will complete with the same error. |
- */ |
- async.Future<BackupRun> get(core.String project, core.String instance, core.String backupConfiguration, core.String dueTime) { |
+ BackupRunsResourceApi(commons.ApiRequester client) : _requester = client; |
+ |
+ /// Retrieves information about a specified backup run for a Cloud SQL |
+ /// instance. |
+ /// |
+ /// Request parameters: |
+ /// |
+ /// [project] - Project ID of the project that contains the instance. |
+ /// |
+ /// [instance] - Cloud SQL instance ID. This does not include the project ID. |
+ /// |
+ /// [backupConfiguration] - Identifier for the backup configuration. This |
+ /// gets generated automatically when a backup configuration is created. |
+ /// |
+ /// [dueTime] - The start time of the four-hour backup window. The backup can |
+ /// occur any time in the window. The time is in RFC 3339 format, for example |
+ /// 2012-11-15T16:19:00.094Z. |
+ /// |
+ /// Completes with a [BackupRun]. |
+ /// |
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
+ /// an error. |
+ /// |
+ /// If the used [http.Client] completes with an error when making a REST |
+ /// call, this method will complete with the same error. |
+ async.Future<BackupRun> get(core.String project, core.String instance, |
+ core.String backupConfiguration, core.String dueTime) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -86,51 +85,56 @@ class BackupRunsResourceApi { |
throw new core.ArgumentError("Parameter instance is required."); |
} |
if (backupConfiguration == null) { |
- throw new core.ArgumentError("Parameter backupConfiguration is required."); |
+ throw new core.ArgumentError( |
+ "Parameter backupConfiguration is required."); |
} |
if (dueTime == null) { |
throw new core.ArgumentError("Parameter dueTime is required."); |
} |
_queryParams["dueTime"] = [dueTime]; |
- _url = 'projects/' + commons.Escaper.ecapeVariable('$project') + '/instances/' + commons.Escaper.ecapeVariable('$instance') + '/backupRuns/' + commons.Escaper.ecapeVariable('$backupConfiguration'); |
- |
- var _response = _requester.request(_url, |
- "GET", |
- body: _body, |
- queryParams: _queryParams, |
- uploadOptions: _uploadOptions, |
- uploadMedia: _uploadMedia, |
- downloadOptions: _downloadOptions); |
+ _url = 'projects/' + |
+ commons.Escaper.ecapeVariable('$project') + |
+ '/instances/' + |
+ commons.Escaper.ecapeVariable('$instance') + |
+ '/backupRuns/' + |
+ commons.Escaper.ecapeVariable('$backupConfiguration'); |
+ |
+ var _response = _requester.request(_url, "GET", |
+ body: _body, |
+ queryParams: _queryParams, |
+ uploadOptions: _uploadOptions, |
+ uploadMedia: _uploadMedia, |
+ downloadOptions: _downloadOptions); |
return _response.then((data) => new BackupRun.fromJson(data)); |
} |
- /** |
- * Lists all backup runs associated with a Cloud SQL instance. |
- * |
- * Request parameters: |
- * |
- * [project] - Project ID of the project that contains the instance. |
- * |
- * [instance] - Cloud SQL instance ID. This does not include the project ID. |
- * |
- * [backupConfiguration] - Identifier for the backup configuration. This gets |
- * generated automatically when a backup configuration is created. |
- * |
- * [maxResults] - Maximum number of backup runs per response. |
- * |
- * [pageToken] - A previously-returned page token representing part of the |
- * larger set of results to view. |
- * |
- * Completes with a [BackupRunsListResponse]. |
- * |
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
- * error. |
- * |
- * If the used [http.Client] completes with an error when making a REST call, |
- * this method will complete with the same error. |
- */ |
- async.Future<BackupRunsListResponse> list(core.String project, core.String instance, core.String backupConfiguration, {core.int maxResults, core.String pageToken}) { |
+ /// Lists all backup runs associated with a Cloud SQL instance. |
+ /// |
+ /// Request parameters: |
+ /// |
+ /// [project] - Project ID of the project that contains the instance. |
+ /// |
+ /// [instance] - Cloud SQL instance ID. This does not include the project ID. |
+ /// |
+ /// [backupConfiguration] - Identifier for the backup configuration. This |
+ /// gets generated automatically when a backup configuration is created. |
+ /// |
+ /// [maxResults] - Maximum number of backup runs per response. |
+ /// |
+ /// [pageToken] - A previously-returned page token representing part of the |
+ /// larger set of results to view. |
+ /// |
+ /// Completes with a [BackupRunsListResponse]. |
+ /// |
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
+ /// an error. |
+ /// |
+ /// If the used [http.Client] completes with an error when making a REST |
+ /// call, this method will complete with the same error. |
+ async.Future<BackupRunsListResponse> list(core.String project, |
+ core.String instance, core.String backupConfiguration, |
+ {core.int maxResults, core.String pageToken}) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -145,7 +149,8 @@ class BackupRunsResourceApi { |
throw new core.ArgumentError("Parameter instance is required."); |
} |
if (backupConfiguration == null) { |
- throw new core.ArgumentError("Parameter backupConfiguration is required."); |
+ throw new core.ArgumentError( |
+ "Parameter backupConfiguration is required."); |
} |
_queryParams["backupConfiguration"] = [backupConfiguration]; |
if (maxResults != null) { |
@@ -155,40 +160,38 @@ class BackupRunsResourceApi { |
_queryParams["pageToken"] = [pageToken]; |
} |
- _url = 'projects/' + commons.Escaper.ecapeVariable('$project') + '/instances/' + commons.Escaper.ecapeVariable('$instance') + '/backupRuns'; |
+ _url = 'projects/' + |
+ commons.Escaper.ecapeVariable('$project') + |
+ '/instances/' + |
+ commons.Escaper.ecapeVariable('$instance') + |
+ '/backupRuns'; |
- var _response = _requester.request(_url, |
- "GET", |
- body: _body, |
- queryParams: _queryParams, |
- uploadOptions: _uploadOptions, |
- uploadMedia: _uploadMedia, |
- downloadOptions: _downloadOptions); |
+ var _response = _requester.request(_url, "GET", |
+ body: _body, |
+ queryParams: _queryParams, |
+ uploadOptions: _uploadOptions, |
+ uploadMedia: _uploadMedia, |
+ downloadOptions: _downloadOptions); |
return _response.then((data) => new BackupRunsListResponse.fromJson(data)); |
} |
- |
} |
- |
class FlagsResourceApi { |
final commons.ApiRequester _requester; |
- FlagsResourceApi(commons.ApiRequester client) : |
- _requester = client; |
- |
- /** |
- * Lists all database flags that can be set for Google Cloud SQL instances. |
- * |
- * Request parameters: |
- * |
- * Completes with a [FlagsListResponse]. |
- * |
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
- * error. |
- * |
- * If the used [http.Client] completes with an error when making a REST call, |
- * this method will complete with the same error. |
- */ |
+ FlagsResourceApi(commons.ApiRequester client) : _requester = client; |
+ |
+ /// Lists all database flags that can be set for Google Cloud SQL instances. |
+ /// |
+ /// Request parameters: |
+ /// |
+ /// Completes with a [FlagsListResponse]. |
+ /// |
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
+ /// an error. |
+ /// |
+ /// If the used [http.Client] completes with an error when making a REST |
+ /// call, this method will complete with the same error. |
async.Future<FlagsListResponse> list() { |
var _url = null; |
var _queryParams = new core.Map(); |
@@ -197,47 +200,41 @@ class FlagsResourceApi { |
var _downloadOptions = commons.DownloadOptions.Metadata; |
var _body = null; |
- |
_url = 'flags'; |
- var _response = _requester.request(_url, |
- "GET", |
- body: _body, |
- queryParams: _queryParams, |
- uploadOptions: _uploadOptions, |
- uploadMedia: _uploadMedia, |
- downloadOptions: _downloadOptions); |
+ var _response = _requester.request(_url, "GET", |
+ body: _body, |
+ queryParams: _queryParams, |
+ uploadOptions: _uploadOptions, |
+ uploadMedia: _uploadMedia, |
+ downloadOptions: _downloadOptions); |
return _response.then((data) => new FlagsListResponse.fromJson(data)); |
} |
- |
} |
- |
class InstancesResourceApi { |
final commons.ApiRequester _requester; |
- InstancesResourceApi(commons.ApiRequester client) : |
- _requester = client; |
- |
- /** |
- * Creates a Cloud SQL instance as a clone of a source instance. |
- * |
- * [request] - The metadata request object. |
- * |
- * Request parameters: |
- * |
- * [project] - Project ID of the source as well as the clone Cloud SQL |
- * instance. |
- * |
- * Completes with a [InstancesCloneResponse]. |
- * |
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
- * error. |
- * |
- * If the used [http.Client] completes with an error when making a REST call, |
- * this method will complete with the same error. |
- */ |
- async.Future<InstancesCloneResponse> clone(InstancesCloneRequest request, core.String project) { |
+ InstancesResourceApi(commons.ApiRequester client) : _requester = client; |
+ |
+ /// Creates a Cloud SQL instance as a clone of a source instance. |
+ /// |
+ /// [request] - The metadata request object. |
+ /// |
+ /// Request parameters: |
+ /// |
+ /// [project] - Project ID of the source as well as the clone Cloud SQL |
+ /// instance. |
+ /// |
+ /// Completes with a [InstancesCloneResponse]. |
+ /// |
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
+ /// an error. |
+ /// |
+ /// If the used [http.Client] completes with an error when making a REST |
+ /// call, this method will complete with the same error. |
+ async.Future<InstancesCloneResponse> clone( |
+ InstancesCloneRequest request, core.String project) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -252,37 +249,37 @@ class InstancesResourceApi { |
throw new core.ArgumentError("Parameter project is required."); |
} |
- _url = 'projects/' + commons.Escaper.ecapeVariable('$project') + '/instances/clone'; |
+ _url = 'projects/' + |
+ commons.Escaper.ecapeVariable('$project') + |
+ '/instances/clone'; |
- var _response = _requester.request(_url, |
- "POST", |
- body: _body, |
- queryParams: _queryParams, |
- uploadOptions: _uploadOptions, |
- uploadMedia: _uploadMedia, |
- downloadOptions: _downloadOptions); |
+ var _response = _requester.request(_url, "POST", |
+ body: _body, |
+ queryParams: _queryParams, |
+ uploadOptions: _uploadOptions, |
+ uploadMedia: _uploadMedia, |
+ downloadOptions: _downloadOptions); |
return _response.then((data) => new InstancesCloneResponse.fromJson(data)); |
} |
- /** |
- * Deletes a Cloud SQL instance. |
- * |
- * Request parameters: |
- * |
- * [project] - Project ID of the project that contains the instance to be |
- * deleted. |
- * |
- * [instance] - Cloud SQL instance ID. This does not include the project ID. |
- * |
- * Completes with a [InstancesDeleteResponse]. |
- * |
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
- * error. |
- * |
- * If the used [http.Client] completes with an error when making a REST call, |
- * this method will complete with the same error. |
- */ |
- async.Future<InstancesDeleteResponse> delete(core.String project, core.String instance) { |
+ /// Deletes a Cloud SQL instance. |
+ /// |
+ /// Request parameters: |
+ /// |
+ /// [project] - Project ID of the project that contains the instance to be |
+ /// deleted. |
+ /// |
+ /// [instance] - Cloud SQL instance ID. This does not include the project ID. |
+ /// |
+ /// Completes with a [InstancesDeleteResponse]. |
+ /// |
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
+ /// an error. |
+ /// |
+ /// If the used [http.Client] completes with an error when making a REST |
+ /// call, this method will complete with the same error. |
+ async.Future<InstancesDeleteResponse> delete( |
+ core.String project, core.String instance) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -297,40 +294,41 @@ class InstancesResourceApi { |
throw new core.ArgumentError("Parameter instance is required."); |
} |
- _url = 'projects/' + commons.Escaper.ecapeVariable('$project') + '/instances/' + commons.Escaper.ecapeVariable('$instance'); |
+ _url = 'projects/' + |
+ commons.Escaper.ecapeVariable('$project') + |
+ '/instances/' + |
+ commons.Escaper.ecapeVariable('$instance'); |
- var _response = _requester.request(_url, |
- "DELETE", |
- body: _body, |
- queryParams: _queryParams, |
- uploadOptions: _uploadOptions, |
- uploadMedia: _uploadMedia, |
- downloadOptions: _downloadOptions); |
+ var _response = _requester.request(_url, "DELETE", |
+ body: _body, |
+ queryParams: _queryParams, |
+ uploadOptions: _uploadOptions, |
+ uploadMedia: _uploadMedia, |
+ downloadOptions: _downloadOptions); |
return _response.then((data) => new InstancesDeleteResponse.fromJson(data)); |
} |
- /** |
- * Exports data from a Cloud SQL instance to a Google Cloud Storage bucket as |
- * a MySQL dump file. |
- * |
- * [request] - The metadata request object. |
- * |
- * Request parameters: |
- * |
- * [project] - Project ID of the project that contains the instance to be |
- * exported. |
- * |
- * [instance] - Cloud SQL instance ID. This does not include the project ID. |
- * |
- * Completes with a [InstancesExportResponse]. |
- * |
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
- * error. |
- * |
- * If the used [http.Client] completes with an error when making a REST call, |
- * this method will complete with the same error. |
- */ |
- async.Future<InstancesExportResponse> export(InstancesExportRequest request, core.String project, core.String instance) { |
+ /// Exports data from a Cloud SQL instance to a Google Cloud Storage bucket |
+ /// as a MySQL dump file. |
+ /// |
+ /// [request] - The metadata request object. |
+ /// |
+ /// Request parameters: |
+ /// |
+ /// [project] - Project ID of the project that contains the instance to be |
+ /// exported. |
+ /// |
+ /// [instance] - Cloud SQL instance ID. This does not include the project ID. |
+ /// |
+ /// Completes with a [InstancesExportResponse]. |
+ /// |
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
+ /// an error. |
+ /// |
+ /// If the used [http.Client] completes with an error when making a REST |
+ /// call, this method will complete with the same error. |
+ async.Future<InstancesExportResponse> export(InstancesExportRequest request, |
+ core.String project, core.String instance) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -348,36 +346,38 @@ class InstancesResourceApi { |
throw new core.ArgumentError("Parameter instance is required."); |
} |
- _url = 'projects/' + commons.Escaper.ecapeVariable('$project') + '/instances/' + commons.Escaper.ecapeVariable('$instance') + '/export'; |
+ _url = 'projects/' + |
+ commons.Escaper.ecapeVariable('$project') + |
+ '/instances/' + |
+ commons.Escaper.ecapeVariable('$instance') + |
+ '/export'; |
- var _response = _requester.request(_url, |
- "POST", |
- body: _body, |
- queryParams: _queryParams, |
- uploadOptions: _uploadOptions, |
- uploadMedia: _uploadMedia, |
- downloadOptions: _downloadOptions); |
+ var _response = _requester.request(_url, "POST", |
+ body: _body, |
+ queryParams: _queryParams, |
+ uploadOptions: _uploadOptions, |
+ uploadMedia: _uploadMedia, |
+ downloadOptions: _downloadOptions); |
return _response.then((data) => new InstancesExportResponse.fromJson(data)); |
} |
- /** |
- * Retrieves information about a Cloud SQL instance. |
- * |
- * Request parameters: |
- * |
- * [project] - Project ID of the project that contains the instance. |
- * |
- * [instance] - Database instance ID. This does not include the project ID. |
- * |
- * Completes with a [DatabaseInstance]. |
- * |
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
- * error. |
- * |
- * If the used [http.Client] completes with an error when making a REST call, |
- * this method will complete with the same error. |
- */ |
- async.Future<DatabaseInstance> get(core.String project, core.String instance) { |
+ /// Retrieves information about a Cloud SQL instance. |
+ /// |
+ /// Request parameters: |
+ /// |
+ /// [project] - Project ID of the project that contains the instance. |
+ /// |
+ /// [instance] - Database instance ID. This does not include the project ID. |
+ /// |
+ /// Completes with a [DatabaseInstance]. |
+ /// |
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
+ /// an error. |
+ /// |
+ /// If the used [http.Client] completes with an error when making a REST |
+ /// call, this method will complete with the same error. |
+ async.Future<DatabaseInstance> get( |
+ core.String project, core.String instance) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -392,39 +392,40 @@ class InstancesResourceApi { |
throw new core.ArgumentError("Parameter instance is required."); |
} |
- _url = 'projects/' + commons.Escaper.ecapeVariable('$project') + '/instances/' + commons.Escaper.ecapeVariable('$instance'); |
+ _url = 'projects/' + |
+ commons.Escaper.ecapeVariable('$project') + |
+ '/instances/' + |
+ commons.Escaper.ecapeVariable('$instance'); |
- var _response = _requester.request(_url, |
- "GET", |
- body: _body, |
- queryParams: _queryParams, |
- uploadOptions: _uploadOptions, |
- uploadMedia: _uploadMedia, |
- downloadOptions: _downloadOptions); |
+ var _response = _requester.request(_url, "GET", |
+ body: _body, |
+ queryParams: _queryParams, |
+ uploadOptions: _uploadOptions, |
+ uploadMedia: _uploadMedia, |
+ downloadOptions: _downloadOptions); |
return _response.then((data) => new DatabaseInstance.fromJson(data)); |
} |
- /** |
- * Imports data into a Cloud SQL instance from a MySQL dump file stored in a |
- * Google Cloud Storage bucket. |
- * |
- * [request] - The metadata request object. |
- * |
- * Request parameters: |
- * |
- * [project] - Project ID of the project that contains the instance. |
- * |
- * [instance] - Cloud SQL instance ID. This does not include the project ID. |
- * |
- * Completes with a [InstancesImportResponse]. |
- * |
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
- * error. |
- * |
- * If the used [http.Client] completes with an error when making a REST call, |
- * this method will complete with the same error. |
- */ |
- async.Future<InstancesImportResponse> import(InstancesImportRequest request, core.String project, core.String instance) { |
+ /// Imports data into a Cloud SQL instance from a MySQL dump file stored in a |
+ /// Google Cloud Storage bucket. |
+ /// |
+ /// [request] - The metadata request object. |
+ /// |
+ /// Request parameters: |
+ /// |
+ /// [project] - Project ID of the project that contains the instance. |
+ /// |
+ /// [instance] - Cloud SQL instance ID. This does not include the project ID. |
+ /// |
+ /// Completes with a [InstancesImportResponse]. |
+ /// |
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
+ /// an error. |
+ /// |
+ /// If the used [http.Client] completes with an error when making a REST |
+ /// call, this method will complete with the same error. |
+ async.Future<InstancesImportResponse> import(InstancesImportRequest request, |
+ core.String project, core.String instance) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -442,37 +443,39 @@ class InstancesResourceApi { |
throw new core.ArgumentError("Parameter instance is required."); |
} |
- _url = 'projects/' + commons.Escaper.ecapeVariable('$project') + '/instances/' + commons.Escaper.ecapeVariable('$instance') + '/import'; |
+ _url = 'projects/' + |
+ commons.Escaper.ecapeVariable('$project') + |
+ '/instances/' + |
+ commons.Escaper.ecapeVariable('$instance') + |
+ '/import'; |
- var _response = _requester.request(_url, |
- "POST", |
- body: _body, |
- queryParams: _queryParams, |
- uploadOptions: _uploadOptions, |
- uploadMedia: _uploadMedia, |
- downloadOptions: _downloadOptions); |
+ var _response = _requester.request(_url, "POST", |
+ body: _body, |
+ queryParams: _queryParams, |
+ uploadOptions: _uploadOptions, |
+ uploadMedia: _uploadMedia, |
+ downloadOptions: _downloadOptions); |
return _response.then((data) => new InstancesImportResponse.fromJson(data)); |
} |
- /** |
- * Creates a new Cloud SQL instance. |
- * |
- * [request] - The metadata request object. |
- * |
- * Request parameters: |
- * |
- * [project] - Project ID of the project to which the newly created Cloud SQL |
- * instances should belong. |
- * |
- * Completes with a [InstancesInsertResponse]. |
- * |
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
- * error. |
- * |
- * If the used [http.Client] completes with an error when making a REST call, |
- * this method will complete with the same error. |
- */ |
- async.Future<InstancesInsertResponse> insert(DatabaseInstance request, core.String project) { |
+ /// Creates a new Cloud SQL instance. |
+ /// |
+ /// [request] - The metadata request object. |
+ /// |
+ /// Request parameters: |
+ /// |
+ /// [project] - Project ID of the project to which the newly created Cloud |
+ /// SQL instances should belong. |
+ /// |
+ /// Completes with a [InstancesInsertResponse]. |
+ /// |
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
+ /// an error. |
+ /// |
+ /// If the used [http.Client] completes with an error when making a REST |
+ /// call, this method will complete with the same error. |
+ async.Future<InstancesInsertResponse> insert( |
+ DatabaseInstance request, core.String project) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -487,41 +490,40 @@ class InstancesResourceApi { |
throw new core.ArgumentError("Parameter project is required."); |
} |
- _url = 'projects/' + commons.Escaper.ecapeVariable('$project') + '/instances'; |
+ _url = |
+ 'projects/' + commons.Escaper.ecapeVariable('$project') + '/instances'; |
- var _response = _requester.request(_url, |
- "POST", |
- body: _body, |
- queryParams: _queryParams, |
- uploadOptions: _uploadOptions, |
- uploadMedia: _uploadMedia, |
- downloadOptions: _downloadOptions); |
+ var _response = _requester.request(_url, "POST", |
+ body: _body, |
+ queryParams: _queryParams, |
+ uploadOptions: _uploadOptions, |
+ uploadMedia: _uploadMedia, |
+ downloadOptions: _downloadOptions); |
return _response.then((data) => new InstancesInsertResponse.fromJson(data)); |
} |
- /** |
- * Lists instances for a given project, in alphabetical order by instance |
- * name. |
- * |
- * Request parameters: |
- * |
- * [project] - Project ID of the project for which to list Cloud SQL |
- * instances. |
- * |
- * [maxResults] - The maximum number of results to return per response. |
- * |
- * [pageToken] - A previously-returned page token representing part of the |
- * larger set of results to view. |
- * |
- * Completes with a [InstancesListResponse]. |
- * |
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
- * error. |
- * |
- * If the used [http.Client] completes with an error when making a REST call, |
- * this method will complete with the same error. |
- */ |
- async.Future<InstancesListResponse> list(core.String project, {core.int maxResults, core.String pageToken}) { |
+ /// Lists instances for a given project, in alphabetical order by instance |
+ /// name. |
+ /// |
+ /// Request parameters: |
+ /// |
+ /// [project] - Project ID of the project for which to list Cloud SQL |
+ /// instances. |
+ /// |
+ /// [maxResults] - The maximum number of results to return per response. |
+ /// |
+ /// [pageToken] - A previously-returned page token representing part of the |
+ /// larger set of results to view. |
+ /// |
+ /// Completes with a [InstancesListResponse]. |
+ /// |
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
+ /// an error. |
+ /// |
+ /// If the used [http.Client] completes with an error when making a REST |
+ /// call, this method will complete with the same error. |
+ async.Future<InstancesListResponse> list(core.String project, |
+ {core.int maxResults, core.String pageToken}) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -539,39 +541,38 @@ class InstancesResourceApi { |
_queryParams["pageToken"] = [pageToken]; |
} |
- _url = 'projects/' + commons.Escaper.ecapeVariable('$project') + '/instances'; |
+ _url = |
+ 'projects/' + commons.Escaper.ecapeVariable('$project') + '/instances'; |
- var _response = _requester.request(_url, |
- "GET", |
- body: _body, |
- queryParams: _queryParams, |
- uploadOptions: _uploadOptions, |
- uploadMedia: _uploadMedia, |
- downloadOptions: _downloadOptions); |
+ var _response = _requester.request(_url, "GET", |
+ body: _body, |
+ queryParams: _queryParams, |
+ uploadOptions: _uploadOptions, |
+ uploadMedia: _uploadMedia, |
+ downloadOptions: _downloadOptions); |
return _response.then((data) => new InstancesListResponse.fromJson(data)); |
} |
- /** |
- * Updates the settings of a Cloud SQL instance. This method supports patch |
- * semantics. |
- * |
- * [request] - The metadata request object. |
- * |
- * Request parameters: |
- * |
- * [project] - Project ID of the project that contains the instance. |
- * |
- * [instance] - Cloud SQL instance ID. This does not include the project ID. |
- * |
- * Completes with a [InstancesUpdateResponse]. |
- * |
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
- * error. |
- * |
- * If the used [http.Client] completes with an error when making a REST call, |
- * this method will complete with the same error. |
- */ |
- async.Future<InstancesUpdateResponse> patch(DatabaseInstance request, core.String project, core.String instance) { |
+ /// Updates the settings of a Cloud SQL instance. This method supports patch |
+ /// semantics. |
+ /// |
+ /// [request] - The metadata request object. |
+ /// |
+ /// Request parameters: |
+ /// |
+ /// [project] - Project ID of the project that contains the instance. |
+ /// |
+ /// [instance] - Cloud SQL instance ID. This does not include the project ID. |
+ /// |
+ /// Completes with a [InstancesUpdateResponse]. |
+ /// |
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
+ /// an error. |
+ /// |
+ /// If the used [http.Client] completes with an error when making a REST |
+ /// call, this method will complete with the same error. |
+ async.Future<InstancesUpdateResponse> patch( |
+ DatabaseInstance request, core.String project, core.String instance) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -589,36 +590,38 @@ class InstancesResourceApi { |
throw new core.ArgumentError("Parameter instance is required."); |
} |
- _url = 'projects/' + commons.Escaper.ecapeVariable('$project') + '/instances/' + commons.Escaper.ecapeVariable('$instance'); |
+ _url = 'projects/' + |
+ commons.Escaper.ecapeVariable('$project') + |
+ '/instances/' + |
+ commons.Escaper.ecapeVariable('$instance'); |
- var _response = _requester.request(_url, |
- "PATCH", |
- body: _body, |
- queryParams: _queryParams, |
- uploadOptions: _uploadOptions, |
- uploadMedia: _uploadMedia, |
- downloadOptions: _downloadOptions); |
+ var _response = _requester.request(_url, "PATCH", |
+ body: _body, |
+ queryParams: _queryParams, |
+ uploadOptions: _uploadOptions, |
+ uploadMedia: _uploadMedia, |
+ downloadOptions: _downloadOptions); |
return _response.then((data) => new InstancesUpdateResponse.fromJson(data)); |
} |
- /** |
- * Promotes the read replica instance to be a stand-alone Cloud SQL instance. |
- * |
- * Request parameters: |
- * |
- * [project] - ID of the project that contains the read replica. |
- * |
- * [instance] - Cloud SQL read replica instance name. |
- * |
- * Completes with a [InstancesPromoteReplicaResponse]. |
- * |
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
- * error. |
- * |
- * If the used [http.Client] completes with an error when making a REST call, |
- * this method will complete with the same error. |
- */ |
- async.Future<InstancesPromoteReplicaResponse> promoteReplica(core.String project, core.String instance) { |
+ /// Promotes the read replica instance to be a stand-alone Cloud SQL |
+ /// instance. |
+ /// |
+ /// Request parameters: |
+ /// |
+ /// [project] - ID of the project that contains the read replica. |
+ /// |
+ /// [instance] - Cloud SQL read replica instance name. |
+ /// |
+ /// Completes with a [InstancesPromoteReplicaResponse]. |
+ /// |
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
+ /// an error. |
+ /// |
+ /// If the used [http.Client] completes with an error when making a REST |
+ /// call, this method will complete with the same error. |
+ async.Future<InstancesPromoteReplicaResponse> promoteReplica( |
+ core.String project, core.String instance) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -633,37 +636,40 @@ class InstancesResourceApi { |
throw new core.ArgumentError("Parameter instance is required."); |
} |
- _url = 'projects/' + commons.Escaper.ecapeVariable('$project') + '/instances/' + commons.Escaper.ecapeVariable('$instance') + '/promoteReplica'; |
- |
- var _response = _requester.request(_url, |
- "POST", |
- body: _body, |
- queryParams: _queryParams, |
- uploadOptions: _uploadOptions, |
- uploadMedia: _uploadMedia, |
- downloadOptions: _downloadOptions); |
- return _response.then((data) => new InstancesPromoteReplicaResponse.fromJson(data)); |
- } |
- |
- /** |
- * Deletes all client certificates and generates a new server SSL certificate |
- * for a Cloud SQL instance. |
- * |
- * Request parameters: |
- * |
- * [project] - Project ID of the project that contains the instance. |
- * |
- * [instance] - Cloud SQL instance ID. This does not include the project ID. |
- * |
- * Completes with a [InstancesResetSslConfigResponse]. |
- * |
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
- * error. |
- * |
- * If the used [http.Client] completes with an error when making a REST call, |
- * this method will complete with the same error. |
- */ |
- async.Future<InstancesResetSslConfigResponse> resetSslConfig(core.String project, core.String instance) { |
+ _url = 'projects/' + |
+ commons.Escaper.ecapeVariable('$project') + |
+ '/instances/' + |
+ commons.Escaper.ecapeVariable('$instance') + |
+ '/promoteReplica'; |
+ |
+ var _response = _requester.request(_url, "POST", |
+ body: _body, |
+ queryParams: _queryParams, |
+ uploadOptions: _uploadOptions, |
+ uploadMedia: _uploadMedia, |
+ downloadOptions: _downloadOptions); |
+ return _response |
+ .then((data) => new InstancesPromoteReplicaResponse.fromJson(data)); |
+ } |
+ |
+ /// Deletes all client certificates and generates a new server SSL |
+ /// certificate for a Cloud SQL instance. |
+ /// |
+ /// Request parameters: |
+ /// |
+ /// [project] - Project ID of the project that contains the instance. |
+ /// |
+ /// [instance] - Cloud SQL instance ID. This does not include the project ID. |
+ /// |
+ /// Completes with a [InstancesResetSslConfigResponse]. |
+ /// |
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
+ /// an error. |
+ /// |
+ /// If the used [http.Client] completes with an error when making a REST |
+ /// call, this method will complete with the same error. |
+ async.Future<InstancesResetSslConfigResponse> resetSslConfig( |
+ core.String project, core.String instance) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -678,37 +684,40 @@ class InstancesResourceApi { |
throw new core.ArgumentError("Parameter instance is required."); |
} |
- _url = 'projects/' + commons.Escaper.ecapeVariable('$project') + '/instances/' + commons.Escaper.ecapeVariable('$instance') + '/resetSslConfig'; |
- |
- var _response = _requester.request(_url, |
- "POST", |
- body: _body, |
- queryParams: _queryParams, |
- uploadOptions: _uploadOptions, |
- uploadMedia: _uploadMedia, |
- downloadOptions: _downloadOptions); |
- return _response.then((data) => new InstancesResetSslConfigResponse.fromJson(data)); |
- } |
- |
- /** |
- * Restarts a Cloud SQL instance. |
- * |
- * Request parameters: |
- * |
- * [project] - Project ID of the project that contains the instance to be |
- * restarted. |
- * |
- * [instance] - Cloud SQL instance ID. This does not include the project ID. |
- * |
- * Completes with a [InstancesRestartResponse]. |
- * |
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
- * error. |
- * |
- * If the used [http.Client] completes with an error when making a REST call, |
- * this method will complete with the same error. |
- */ |
- async.Future<InstancesRestartResponse> restart(core.String project, core.String instance) { |
+ _url = 'projects/' + |
+ commons.Escaper.ecapeVariable('$project') + |
+ '/instances/' + |
+ commons.Escaper.ecapeVariable('$instance') + |
+ '/resetSslConfig'; |
+ |
+ var _response = _requester.request(_url, "POST", |
+ body: _body, |
+ queryParams: _queryParams, |
+ uploadOptions: _uploadOptions, |
+ uploadMedia: _uploadMedia, |
+ downloadOptions: _downloadOptions); |
+ return _response |
+ .then((data) => new InstancesResetSslConfigResponse.fromJson(data)); |
+ } |
+ |
+ /// Restarts a Cloud SQL instance. |
+ /// |
+ /// Request parameters: |
+ /// |
+ /// [project] - Project ID of the project that contains the instance to be |
+ /// restarted. |
+ /// |
+ /// [instance] - Cloud SQL instance ID. This does not include the project ID. |
+ /// |
+ /// Completes with a [InstancesRestartResponse]. |
+ /// |
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
+ /// an error. |
+ /// |
+ /// If the used [http.Client] completes with an error when making a REST |
+ /// call, this method will complete with the same error. |
+ async.Future<InstancesRestartResponse> restart( |
+ core.String project, core.String instance) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -723,43 +732,49 @@ class InstancesResourceApi { |
throw new core.ArgumentError("Parameter instance is required."); |
} |
- _url = 'projects/' + commons.Escaper.ecapeVariable('$project') + '/instances/' + commons.Escaper.ecapeVariable('$instance') + '/restart'; |
- |
- var _response = _requester.request(_url, |
- "POST", |
- body: _body, |
- queryParams: _queryParams, |
- uploadOptions: _uploadOptions, |
- uploadMedia: _uploadMedia, |
- downloadOptions: _downloadOptions); |
- return _response.then((data) => new InstancesRestartResponse.fromJson(data)); |
- } |
- |
- /** |
- * Restores a backup of a Cloud SQL instance. |
- * |
- * Request parameters: |
- * |
- * [project] - Project ID of the project that contains the instance. |
- * |
- * [instance] - Cloud SQL instance ID. This does not include the project ID. |
- * |
- * [backupConfiguration] - The identifier of the backup configuration. This |
- * gets generated automatically when a backup configuration is created. |
- * |
- * [dueTime] - The start time of the four-hour backup window. The backup can |
- * occur any time in the window. The time is in RFC 3339 format, for example |
- * 2012-11-15T16:19:00.094Z. |
- * |
- * Completes with a [InstancesRestoreBackupResponse]. |
- * |
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
- * error. |
- * |
- * If the used [http.Client] completes with an error when making a REST call, |
- * this method will complete with the same error. |
- */ |
- async.Future<InstancesRestoreBackupResponse> restoreBackup(core.String project, core.String instance, core.String backupConfiguration, core.String dueTime) { |
+ _url = 'projects/' + |
+ commons.Escaper.ecapeVariable('$project') + |
+ '/instances/' + |
+ commons.Escaper.ecapeVariable('$instance') + |
+ '/restart'; |
+ |
+ var _response = _requester.request(_url, "POST", |
+ body: _body, |
+ queryParams: _queryParams, |
+ uploadOptions: _uploadOptions, |
+ uploadMedia: _uploadMedia, |
+ downloadOptions: _downloadOptions); |
+ return _response |
+ .then((data) => new InstancesRestartResponse.fromJson(data)); |
+ } |
+ |
+ /// Restores a backup of a Cloud SQL instance. |
+ /// |
+ /// Request parameters: |
+ /// |
+ /// [project] - Project ID of the project that contains the instance. |
+ /// |
+ /// [instance] - Cloud SQL instance ID. This does not include the project ID. |
+ /// |
+ /// [backupConfiguration] - The identifier of the backup configuration. This |
+ /// gets generated automatically when a backup configuration is created. |
+ /// |
+ /// [dueTime] - The start time of the four-hour backup window. The backup can |
+ /// occur any time in the window. The time is in RFC 3339 format, for example |
+ /// 2012-11-15T16:19:00.094Z. |
+ /// |
+ /// Completes with a [InstancesRestoreBackupResponse]. |
+ /// |
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
+ /// an error. |
+ /// |
+ /// If the used [http.Client] completes with an error when making a REST |
+ /// call, this method will complete with the same error. |
+ async.Future<InstancesRestoreBackupResponse> restoreBackup( |
+ core.String project, |
+ core.String instance, |
+ core.String backupConfiguration, |
+ core.String dueTime) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -774,7 +789,8 @@ class InstancesResourceApi { |
throw new core.ArgumentError("Parameter instance is required."); |
} |
if (backupConfiguration == null) { |
- throw new core.ArgumentError("Parameter backupConfiguration is required."); |
+ throw new core.ArgumentError( |
+ "Parameter backupConfiguration is required."); |
} |
_queryParams["backupConfiguration"] = [backupConfiguration]; |
if (dueTime == null) { |
@@ -782,38 +798,43 @@ class InstancesResourceApi { |
} |
_queryParams["dueTime"] = [dueTime]; |
- _url = 'projects/' + commons.Escaper.ecapeVariable('$project') + '/instances/' + commons.Escaper.ecapeVariable('$instance') + '/restoreBackup'; |
- |
- var _response = _requester.request(_url, |
- "POST", |
- body: _body, |
- queryParams: _queryParams, |
- uploadOptions: _uploadOptions, |
- uploadMedia: _uploadMedia, |
- downloadOptions: _downloadOptions); |
- return _response.then((data) => new InstancesRestoreBackupResponse.fromJson(data)); |
- } |
- |
- /** |
- * Sets the password for the root user of the specified Cloud SQL instance. |
- * |
- * [request] - The metadata request object. |
- * |
- * Request parameters: |
- * |
- * [project] - Project ID of the project that contains the instance. |
- * |
- * [instance] - Cloud SQL instance ID. This does not include the project ID. |
- * |
- * Completes with a [InstancesSetRootPasswordResponse]. |
- * |
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
- * error. |
- * |
- * If the used [http.Client] completes with an error when making a REST call, |
- * this method will complete with the same error. |
- */ |
- async.Future<InstancesSetRootPasswordResponse> setRootPassword(InstanceSetRootPasswordRequest request, core.String project, core.String instance) { |
+ _url = 'projects/' + |
+ commons.Escaper.ecapeVariable('$project') + |
+ '/instances/' + |
+ commons.Escaper.ecapeVariable('$instance') + |
+ '/restoreBackup'; |
+ |
+ var _response = _requester.request(_url, "POST", |
+ body: _body, |
+ queryParams: _queryParams, |
+ uploadOptions: _uploadOptions, |
+ uploadMedia: _uploadMedia, |
+ downloadOptions: _downloadOptions); |
+ return _response |
+ .then((data) => new InstancesRestoreBackupResponse.fromJson(data)); |
+ } |
+ |
+ /// Sets the password for the root user of the specified Cloud SQL instance. |
+ /// |
+ /// [request] - The metadata request object. |
+ /// |
+ /// Request parameters: |
+ /// |
+ /// [project] - Project ID of the project that contains the instance. |
+ /// |
+ /// [instance] - Cloud SQL instance ID. This does not include the project ID. |
+ /// |
+ /// Completes with a [InstancesSetRootPasswordResponse]. |
+ /// |
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
+ /// an error. |
+ /// |
+ /// If the used [http.Client] completes with an error when making a REST |
+ /// call, this method will complete with the same error. |
+ async.Future<InstancesSetRootPasswordResponse> setRootPassword( |
+ InstanceSetRootPasswordRequest request, |
+ core.String project, |
+ core.String instance) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -831,38 +852,41 @@ class InstancesResourceApi { |
throw new core.ArgumentError("Parameter instance is required."); |
} |
- _url = 'projects/' + commons.Escaper.ecapeVariable('$project') + '/instances/' + commons.Escaper.ecapeVariable('$instance') + '/setRootPassword'; |
- |
- var _response = _requester.request(_url, |
- "POST", |
- body: _body, |
- queryParams: _queryParams, |
- uploadOptions: _uploadOptions, |
- uploadMedia: _uploadMedia, |
- downloadOptions: _downloadOptions); |
- return _response.then((data) => new InstancesSetRootPasswordResponse.fromJson(data)); |
- } |
- |
- /** |
- * Updates the settings of a Cloud SQL instance. |
- * |
- * [request] - The metadata request object. |
- * |
- * Request parameters: |
- * |
- * [project] - Project ID of the project that contains the instance. |
- * |
- * [instance] - Cloud SQL instance ID. This does not include the project ID. |
- * |
- * Completes with a [InstancesUpdateResponse]. |
- * |
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
- * error. |
- * |
- * If the used [http.Client] completes with an error when making a REST call, |
- * this method will complete with the same error. |
- */ |
- async.Future<InstancesUpdateResponse> update(DatabaseInstance request, core.String project, core.String instance) { |
+ _url = 'projects/' + |
+ commons.Escaper.ecapeVariable('$project') + |
+ '/instances/' + |
+ commons.Escaper.ecapeVariable('$instance') + |
+ '/setRootPassword'; |
+ |
+ var _response = _requester.request(_url, "POST", |
+ body: _body, |
+ queryParams: _queryParams, |
+ uploadOptions: _uploadOptions, |
+ uploadMedia: _uploadMedia, |
+ downloadOptions: _downloadOptions); |
+ return _response |
+ .then((data) => new InstancesSetRootPasswordResponse.fromJson(data)); |
+ } |
+ |
+ /// Updates the settings of a Cloud SQL instance. |
+ /// |
+ /// [request] - The metadata request object. |
+ /// |
+ /// Request parameters: |
+ /// |
+ /// [project] - Project ID of the project that contains the instance. |
+ /// |
+ /// [instance] - Cloud SQL instance ID. This does not include the project ID. |
+ /// |
+ /// Completes with a [InstancesUpdateResponse]. |
+ /// |
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
+ /// an error. |
+ /// |
+ /// If the used [http.Client] completes with an error when making a REST |
+ /// call, this method will complete with the same error. |
+ async.Future<InstancesUpdateResponse> update( |
+ DatabaseInstance request, core.String project, core.String instance) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -880,48 +904,46 @@ class InstancesResourceApi { |
throw new core.ArgumentError("Parameter instance is required."); |
} |
- _url = 'projects/' + commons.Escaper.ecapeVariable('$project') + '/instances/' + commons.Escaper.ecapeVariable('$instance'); |
+ _url = 'projects/' + |
+ commons.Escaper.ecapeVariable('$project') + |
+ '/instances/' + |
+ commons.Escaper.ecapeVariable('$instance'); |
- var _response = _requester.request(_url, |
- "PUT", |
- body: _body, |
- queryParams: _queryParams, |
- uploadOptions: _uploadOptions, |
- uploadMedia: _uploadMedia, |
- downloadOptions: _downloadOptions); |
+ var _response = _requester.request(_url, "PUT", |
+ body: _body, |
+ queryParams: _queryParams, |
+ uploadOptions: _uploadOptions, |
+ uploadMedia: _uploadMedia, |
+ downloadOptions: _downloadOptions); |
return _response.then((data) => new InstancesUpdateResponse.fromJson(data)); |
} |
- |
} |
- |
class OperationsResourceApi { |
final commons.ApiRequester _requester; |
- OperationsResourceApi(commons.ApiRequester client) : |
- _requester = client; |
- |
- /** |
- * Retrieves information about a specific operation that was performed on a |
- * Cloud SQL instance. |
- * |
- * Request parameters: |
- * |
- * [project] - Project ID of the project that contains the instance. |
- * |
- * [instance] - Cloud SQL instance ID. This does not include the project ID. |
- * |
- * [operation] - Instance operation ID. |
- * |
- * Completes with a [InstanceOperation]. |
- * |
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
- * error. |
- * |
- * If the used [http.Client] completes with an error when making a REST call, |
- * this method will complete with the same error. |
- */ |
- async.Future<InstanceOperation> get(core.String project, core.String instance, core.String operation) { |
+ OperationsResourceApi(commons.ApiRequester client) : _requester = client; |
+ |
+ /// Retrieves information about a specific operation that was performed on a |
+ /// Cloud SQL instance. |
+ /// |
+ /// Request parameters: |
+ /// |
+ /// [project] - Project ID of the project that contains the instance. |
+ /// |
+ /// [instance] - Cloud SQL instance ID. This does not include the project ID. |
+ /// |
+ /// [operation] - Instance operation ID. |
+ /// |
+ /// Completes with a [InstanceOperation]. |
+ /// |
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
+ /// an error. |
+ /// |
+ /// If the used [http.Client] completes with an error when making a REST |
+ /// call, this method will complete with the same error. |
+ async.Future<InstanceOperation> get( |
+ core.String project, core.String instance, core.String operation) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -939,41 +961,45 @@ class OperationsResourceApi { |
throw new core.ArgumentError("Parameter operation is required."); |
} |
- _url = 'projects/' + commons.Escaper.ecapeVariable('$project') + '/instances/' + commons.Escaper.ecapeVariable('$instance') + '/operations/' + commons.Escaper.ecapeVariable('$operation'); |
+ _url = 'projects/' + |
+ commons.Escaper.ecapeVariable('$project') + |
+ '/instances/' + |
+ commons.Escaper.ecapeVariable('$instance') + |
+ '/operations/' + |
+ commons.Escaper.ecapeVariable('$operation'); |
- var _response = _requester.request(_url, |
- "GET", |
- body: _body, |
- queryParams: _queryParams, |
- uploadOptions: _uploadOptions, |
- uploadMedia: _uploadMedia, |
- downloadOptions: _downloadOptions); |
+ var _response = _requester.request(_url, "GET", |
+ body: _body, |
+ queryParams: _queryParams, |
+ uploadOptions: _uploadOptions, |
+ uploadMedia: _uploadMedia, |
+ downloadOptions: _downloadOptions); |
return _response.then((data) => new InstanceOperation.fromJson(data)); |
} |
- /** |
- * Lists all operations that have been performed on a Cloud SQL instance. |
- * |
- * Request parameters: |
- * |
- * [project] - Project ID of the project that contains the instance. |
- * |
- * [instance] - Cloud SQL instance ID. This does not include the project ID. |
- * |
- * [maxResults] - Maximum number of operations per response. |
- * |
- * [pageToken] - A previously-returned page token representing part of the |
- * larger set of results to view. |
- * |
- * Completes with a [OperationsListResponse]. |
- * |
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
- * error. |
- * |
- * If the used [http.Client] completes with an error when making a REST call, |
- * this method will complete with the same error. |
- */ |
- async.Future<OperationsListResponse> list(core.String project, core.String instance, {core.int maxResults, core.String pageToken}) { |
+ /// Lists all operations that have been performed on a Cloud SQL instance. |
+ /// |
+ /// Request parameters: |
+ /// |
+ /// [project] - Project ID of the project that contains the instance. |
+ /// |
+ /// [instance] - Cloud SQL instance ID. This does not include the project ID. |
+ /// |
+ /// [maxResults] - Maximum number of operations per response. |
+ /// |
+ /// [pageToken] - A previously-returned page token representing part of the |
+ /// larger set of results to view. |
+ /// |
+ /// Completes with a [OperationsListResponse]. |
+ /// |
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
+ /// an error. |
+ /// |
+ /// If the used [http.Client] completes with an error when making a REST |
+ /// call, this method will complete with the same error. |
+ async.Future<OperationsListResponse> list( |
+ core.String project, core.String instance, |
+ {core.int maxResults, core.String pageToken}) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -994,48 +1020,47 @@ class OperationsResourceApi { |
_queryParams["pageToken"] = [pageToken]; |
} |
- _url = 'projects/' + commons.Escaper.ecapeVariable('$project') + '/instances/' + commons.Escaper.ecapeVariable('$instance') + '/operations'; |
+ _url = 'projects/' + |
+ commons.Escaper.ecapeVariable('$project') + |
+ '/instances/' + |
+ commons.Escaper.ecapeVariable('$instance') + |
+ '/operations'; |
- var _response = _requester.request(_url, |
- "GET", |
- body: _body, |
- queryParams: _queryParams, |
- uploadOptions: _uploadOptions, |
- uploadMedia: _uploadMedia, |
- downloadOptions: _downloadOptions); |
+ var _response = _requester.request(_url, "GET", |
+ body: _body, |
+ queryParams: _queryParams, |
+ uploadOptions: _uploadOptions, |
+ uploadMedia: _uploadMedia, |
+ downloadOptions: _downloadOptions); |
return _response.then((data) => new OperationsListResponse.fromJson(data)); |
} |
- |
} |
- |
class SslCertsResourceApi { |
final commons.ApiRequester _requester; |
- SslCertsResourceApi(commons.ApiRequester client) : |
- _requester = client; |
- |
- /** |
- * Deletes an SSL certificate from a Cloud SQL instance. |
- * |
- * Request parameters: |
- * |
- * [project] - Project ID of the project that contains the instance to be |
- * deleted. |
- * |
- * [instance] - Cloud SQL instance ID. This does not include the project ID. |
- * |
- * [sha1Fingerprint] - Sha1 FingerPrint. |
- * |
- * Completes with a [SslCertsDeleteResponse]. |
- * |
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
- * error. |
- * |
- * If the used [http.Client] completes with an error when making a REST call, |
- * this method will complete with the same error. |
- */ |
- async.Future<SslCertsDeleteResponse> delete(core.String project, core.String instance, core.String sha1Fingerprint) { |
+ SslCertsResourceApi(commons.ApiRequester client) : _requester = client; |
+ |
+ /// Deletes an SSL certificate from a Cloud SQL instance. |
+ /// |
+ /// Request parameters: |
+ /// |
+ /// [project] - Project ID of the project that contains the instance to be |
+ /// deleted. |
+ /// |
+ /// [instance] - Cloud SQL instance ID. This does not include the project ID. |
+ /// |
+ /// [sha1Fingerprint] - Sha1 FingerPrint. |
+ /// |
+ /// Completes with a [SslCertsDeleteResponse]. |
+ /// |
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
+ /// an error. |
+ /// |
+ /// If the used [http.Client] completes with an error when making a REST |
+ /// call, this method will complete with the same error. |
+ async.Future<SslCertsDeleteResponse> delete( |
+ core.String project, core.String instance, core.String sha1Fingerprint) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -1053,38 +1078,41 @@ class SslCertsResourceApi { |
throw new core.ArgumentError("Parameter sha1Fingerprint is required."); |
} |
- _url = 'projects/' + commons.Escaper.ecapeVariable('$project') + '/instances/' + commons.Escaper.ecapeVariable('$instance') + '/sslCerts/' + commons.Escaper.ecapeVariable('$sha1Fingerprint'); |
+ _url = 'projects/' + |
+ commons.Escaper.ecapeVariable('$project') + |
+ '/instances/' + |
+ commons.Escaper.ecapeVariable('$instance') + |
+ '/sslCerts/' + |
+ commons.Escaper.ecapeVariable('$sha1Fingerprint'); |
- var _response = _requester.request(_url, |
- "DELETE", |
- body: _body, |
- queryParams: _queryParams, |
- uploadOptions: _uploadOptions, |
- uploadMedia: _uploadMedia, |
- downloadOptions: _downloadOptions); |
+ var _response = _requester.request(_url, "DELETE", |
+ body: _body, |
+ queryParams: _queryParams, |
+ uploadOptions: _uploadOptions, |
+ uploadMedia: _uploadMedia, |
+ downloadOptions: _downloadOptions); |
return _response.then((data) => new SslCertsDeleteResponse.fromJson(data)); |
} |
- /** |
- * Retrieves an SSL certificate as specified by its SHA-1 fingerprint. |
- * |
- * Request parameters: |
- * |
- * [project] - Project ID of the project that contains the instance. |
- * |
- * [instance] - Cloud SQL instance ID. This does not include the project ID. |
- * |
- * [sha1Fingerprint] - Sha1 FingerPrint. |
- * |
- * Completes with a [SslCert]. |
- * |
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
- * error. |
- * |
- * If the used [http.Client] completes with an error when making a REST call, |
- * this method will complete with the same error. |
- */ |
- async.Future<SslCert> get(core.String project, core.String instance, core.String sha1Fingerprint) { |
+ /// Retrieves an SSL certificate as specified by its SHA-1 fingerprint. |
+ /// |
+ /// Request parameters: |
+ /// |
+ /// [project] - Project ID of the project that contains the instance. |
+ /// |
+ /// [instance] - Cloud SQL instance ID. This does not include the project ID. |
+ /// |
+ /// [sha1Fingerprint] - Sha1 FingerPrint. |
+ /// |
+ /// Completes with a [SslCert]. |
+ /// |
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
+ /// an error. |
+ /// |
+ /// If the used [http.Client] completes with an error when making a REST |
+ /// call, this method will complete with the same error. |
+ async.Future<SslCert> get( |
+ core.String project, core.String instance, core.String sha1Fingerprint) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -1102,40 +1130,43 @@ class SslCertsResourceApi { |
throw new core.ArgumentError("Parameter sha1Fingerprint is required."); |
} |
- _url = 'projects/' + commons.Escaper.ecapeVariable('$project') + '/instances/' + commons.Escaper.ecapeVariable('$instance') + '/sslCerts/' + commons.Escaper.ecapeVariable('$sha1Fingerprint'); |
+ _url = 'projects/' + |
+ commons.Escaper.ecapeVariable('$project') + |
+ '/instances/' + |
+ commons.Escaper.ecapeVariable('$instance') + |
+ '/sslCerts/' + |
+ commons.Escaper.ecapeVariable('$sha1Fingerprint'); |
- var _response = _requester.request(_url, |
- "GET", |
- body: _body, |
- queryParams: _queryParams, |
- uploadOptions: _uploadOptions, |
- uploadMedia: _uploadMedia, |
- downloadOptions: _downloadOptions); |
+ var _response = _requester.request(_url, "GET", |
+ body: _body, |
+ queryParams: _queryParams, |
+ uploadOptions: _uploadOptions, |
+ uploadMedia: _uploadMedia, |
+ downloadOptions: _downloadOptions); |
return _response.then((data) => new SslCert.fromJson(data)); |
} |
- /** |
- * Creates an SSL certificate and returns the certificate, the associated |
- * private key, and the server certificate authority. |
- * |
- * [request] - The metadata request object. |
- * |
- * Request parameters: |
- * |
- * [project] - Project ID of the project to which the newly created Cloud SQL |
- * instances should belong. |
- * |
- * [instance] - Cloud SQL instance ID. This does not include the project ID. |
- * |
- * Completes with a [SslCertsInsertResponse]. |
- * |
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
- * error. |
- * |
- * If the used [http.Client] completes with an error when making a REST call, |
- * this method will complete with the same error. |
- */ |
- async.Future<SslCertsInsertResponse> insert(SslCertsInsertRequest request, core.String project, core.String instance) { |
+ /// Creates an SSL certificate and returns the certificate, the associated |
+ /// private key, and the server certificate authority. |
+ /// |
+ /// [request] - The metadata request object. |
+ /// |
+ /// Request parameters: |
+ /// |
+ /// [project] - Project ID of the project to which the newly created Cloud |
+ /// SQL instances should belong. |
+ /// |
+ /// [instance] - Cloud SQL instance ID. This does not include the project ID. |
+ /// |
+ /// Completes with a [SslCertsInsertResponse]. |
+ /// |
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
+ /// an error. |
+ /// |
+ /// If the used [http.Client] completes with an error when making a REST |
+ /// call, this method will complete with the same error. |
+ async.Future<SslCertsInsertResponse> insert(SslCertsInsertRequest request, |
+ core.String project, core.String instance) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -1153,37 +1184,40 @@ class SslCertsResourceApi { |
throw new core.ArgumentError("Parameter instance is required."); |
} |
- _url = 'projects/' + commons.Escaper.ecapeVariable('$project') + '/instances/' + commons.Escaper.ecapeVariable('$instance') + '/sslCerts'; |
+ _url = 'projects/' + |
+ commons.Escaper.ecapeVariable('$project') + |
+ '/instances/' + |
+ commons.Escaper.ecapeVariable('$instance') + |
+ '/sslCerts'; |
- var _response = _requester.request(_url, |
- "POST", |
- body: _body, |
- queryParams: _queryParams, |
- uploadOptions: _uploadOptions, |
- uploadMedia: _uploadMedia, |
- downloadOptions: _downloadOptions); |
+ var _response = _requester.request(_url, "POST", |
+ body: _body, |
+ queryParams: _queryParams, |
+ uploadOptions: _uploadOptions, |
+ uploadMedia: _uploadMedia, |
+ downloadOptions: _downloadOptions); |
return _response.then((data) => new SslCertsInsertResponse.fromJson(data)); |
} |
- /** |
- * Lists all of the current SSL certificates defined for a Cloud SQL instance. |
- * |
- * Request parameters: |
- * |
- * [project] - Project ID of the project for which to list Cloud SQL |
- * instances. |
- * |
- * [instance] - Cloud SQL instance ID. This does not include the project ID. |
- * |
- * Completes with a [SslCertsListResponse]. |
- * |
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
- * error. |
- * |
- * If the used [http.Client] completes with an error when making a REST call, |
- * this method will complete with the same error. |
- */ |
- async.Future<SslCertsListResponse> list(core.String project, core.String instance) { |
+ /// Lists all of the current SSL certificates defined for a Cloud SQL |
+ /// instance. |
+ /// |
+ /// Request parameters: |
+ /// |
+ /// [project] - Project ID of the project for which to list Cloud SQL |
+ /// instances. |
+ /// |
+ /// [instance] - Cloud SQL instance ID. This does not include the project ID. |
+ /// |
+ /// Completes with a [SslCertsListResponse]. |
+ /// |
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
+ /// an error. |
+ /// |
+ /// If the used [http.Client] completes with an error when making a REST |
+ /// call, this method will complete with the same error. |
+ async.Future<SslCertsListResponse> list( |
+ core.String project, core.String instance) { |
var _url = null; |
var _queryParams = new core.Map(); |
var _uploadMedia = null; |
@@ -1198,42 +1232,41 @@ class SslCertsResourceApi { |
throw new core.ArgumentError("Parameter instance is required."); |
} |
- _url = 'projects/' + commons.Escaper.ecapeVariable('$project') + '/instances/' + commons.Escaper.ecapeVariable('$instance') + '/sslCerts'; |
+ _url = 'projects/' + |
+ commons.Escaper.ecapeVariable('$project') + |
+ '/instances/' + |
+ commons.Escaper.ecapeVariable('$instance') + |
+ '/sslCerts'; |
- var _response = _requester.request(_url, |
- "GET", |
- body: _body, |
- queryParams: _queryParams, |
- uploadOptions: _uploadOptions, |
- uploadMedia: _uploadMedia, |
- downloadOptions: _downloadOptions); |
+ var _response = _requester.request(_url, "GET", |
+ body: _body, |
+ queryParams: _queryParams, |
+ uploadOptions: _uploadOptions, |
+ uploadMedia: _uploadMedia, |
+ downloadOptions: _downloadOptions); |
return _response.then((data) => new SslCertsListResponse.fromJson(data)); |
} |
- |
} |
- |
class TiersResourceApi { |
final commons.ApiRequester _requester; |
- TiersResourceApi(commons.ApiRequester client) : |
- _requester = client; |
- |
- /** |
- * Lists service tiers that can be used to create Google Cloud SQL instances. |
- * |
- * Request parameters: |
- * |
- * [project] - Project ID of the project for which to list tiers. |
- * |
- * Completes with a [TiersListResponse]. |
- * |
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
- * error. |
- * |
- * If the used [http.Client] completes with an error when making a REST call, |
- * this method will complete with the same error. |
- */ |
+ TiersResourceApi(commons.ApiRequester client) : _requester = client; |
+ |
+ /// Lists service tiers that can be used to create Google Cloud SQL |
+ /// instances. |
+ /// |
+ /// Request parameters: |
+ /// |
+ /// [project] - Project ID of the project for which to list tiers. |
+ /// |
+ /// Completes with a [TiersListResponse]. |
+ /// |
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
+ /// an error. |
+ /// |
+ /// If the used [http.Client] completes with an error when making a REST |
+ /// call, this method will complete with the same error. |
async.Future<TiersListResponse> list(core.String project) { |
var _url = null; |
var _queryParams = new core.Map(); |
@@ -1248,40 +1281,34 @@ class TiersResourceApi { |
_url = 'projects/' + commons.Escaper.ecapeVariable('$project') + '/tiers'; |
- var _response = _requester.request(_url, |
- "GET", |
- body: _body, |
- queryParams: _queryParams, |
- uploadOptions: _uploadOptions, |
- uploadMedia: _uploadMedia, |
- downloadOptions: _downloadOptions); |
+ var _response = _requester.request(_url, "GET", |
+ body: _body, |
+ queryParams: _queryParams, |
+ uploadOptions: _uploadOptions, |
+ uploadMedia: _uploadMedia, |
+ downloadOptions: _downloadOptions); |
return _response.then((data) => new TiersListResponse.fromJson(data)); |
} |
- |
} |
- |
- |
-/** Database instance backup configuration. */ |
+/// Database instance backup configuration. |
class BackupConfiguration { |
- /** |
- * Whether binary log is enabled. If backup configuration is disabled, binary |
- * log must be disabled as well. |
- */ |
+ /// Whether binary log is enabled. If backup configuration is disabled, |
+ /// binary log must be disabled as well. |
core.bool binaryLogEnabled; |
- /** Whether this configuration is enabled. */ |
+ |
+ /// Whether this configuration is enabled. |
core.bool enabled; |
- /** |
- * Identifier for this configuration. This gets generated automatically when a |
- * backup configuration is created. |
- */ |
+ |
+ /// Identifier for this configuration. This gets generated automatically when |
+ /// a backup configuration is created. |
core.String id; |
- /** This is always sql#backupConfiguration. */ |
+ |
+ /// This is always sql#backupConfiguration. |
core.String kind; |
- /** |
- * Start time for the daily backup configuration in UTC timezone in the 24 |
- * hour format - HH:MM. |
- */ |
+ |
+ /// Start time for the daily backup configuration in UTC timezone in the 24 |
+ /// hour format - HH:MM. |
core.String startTime; |
BackupConfiguration(); |
@@ -1305,7 +1332,8 @@ class BackupConfiguration { |
} |
core.Map<core.String, core.Object> toJson() { |
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
+ final core.Map<core.String, core.Object> _json = |
+ new core.Map<core.String, core.Object>(); |
if (binaryLogEnabled != null) { |
_json["binaryLogEnabled"] = binaryLogEnabled; |
} |
@@ -1325,40 +1353,38 @@ class BackupConfiguration { |
} |
} |
-/** A database instance backup run resource. */ |
+/// A database instance backup run resource. |
class BackupRun { |
- /** Backup Configuration identifier. */ |
+ /// Backup Configuration identifier. |
core.String backupConfiguration; |
- /** |
- * The due time of this run in UTC timezone in RFC 3339 format, for example |
- * 2012-11-15T16:19:00.094Z. |
- */ |
+ |
+ /// The due time of this run in UTC timezone in RFC 3339 format, for example |
+ /// 2012-11-15T16:19:00.094Z. |
core.DateTime dueTime; |
- /** |
- * The time the backup operation completed in UTC timezone in RFC 3339 format, |
- * for example 2012-11-15T16:19:00.094Z. |
- */ |
+ |
+ /// The time the backup operation completed in UTC timezone in RFC 3339 |
+ /// format, for example 2012-11-15T16:19:00.094Z. |
core.DateTime endTime; |
- /** |
- * The time the run was enqueued in UTC timezone in RFC 3339 format, for |
- * example 2012-11-15T16:19:00.094Z. |
- */ |
+ |
+ /// The time the run was enqueued in UTC timezone in RFC 3339 format, for |
+ /// example 2012-11-15T16:19:00.094Z. |
core.DateTime enqueuedTime; |
- /** |
- * Information about why the backup operation failed. This is only present if |
- * the run has the FAILED status. |
- */ |
+ |
+ /// Information about why the backup operation failed. This is only present |
+ /// if the run has the FAILED status. |
OperationError error; |
- /** Name of the database instance. */ |
+ |
+ /// Name of the database instance. |
core.String instance; |
- /** This is always sql#backupRun. */ |
+ |
+ /// This is always sql#backupRun. |
core.String kind; |
- /** |
- * The time the backup operation actually started in UTC timezone in RFC 3339 |
- * format, for example 2012-11-15T16:19:00.094Z. |
- */ |
+ |
+ /// The time the backup operation actually started in UTC timezone in RFC |
+ /// 3339 format, for example 2012-11-15T16:19:00.094Z. |
core.DateTime startTime; |
- /** The status of this run. */ |
+ |
+ /// The status of this run. |
core.String status; |
BackupRun(); |
@@ -1394,7 +1420,8 @@ class BackupRun { |
} |
core.Map<core.String, core.Object> toJson() { |
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
+ final core.Map<core.String, core.Object> _json = |
+ new core.Map<core.String, core.Object>(); |
if (backupConfiguration != null) { |
_json["backupConfiguration"] = backupConfiguration; |
} |
@@ -1426,25 +1453,25 @@ class BackupRun { |
} |
} |
-/** Backup run list results. */ |
+/// Backup run list results. |
class BackupRunsListResponse { |
- /** |
- * A list of backup runs in reverse chronological order of the enqueued time. |
- */ |
+ /// A list of backup runs in reverse chronological order of the enqueued |
+ /// time. |
core.List<BackupRun> items; |
- /** This is always sql#backupRunsList. */ |
+ |
+ /// This is always sql#backupRunsList. |
core.String kind; |
- /** |
- * The continuation token, used to page through large result sets. Provide |
- * this value in a subsequent request to return the next page of results. |
- */ |
+ |
+ /// The continuation token, used to page through large result sets. Provide |
+ /// this value in a subsequent request to return the next page of results. |
core.String nextPageToken; |
BackupRunsListResponse(); |
BackupRunsListResponse.fromJson(core.Map _json) { |
if (_json.containsKey("items")) { |
- items = _json["items"].map((value) => new BackupRun.fromJson(value)).toList(); |
+ items = |
+ _json["items"].map((value) => new BackupRun.fromJson(value)).toList(); |
} |
if (_json.containsKey("kind")) { |
kind = _json["kind"]; |
@@ -1455,7 +1482,8 @@ class BackupRunsListResponse { |
} |
core.Map<core.String, core.Object> toJson() { |
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
+ final core.Map<core.String, core.Object> _json = |
+ new core.Map<core.String, core.Object>(); |
if (items != null) { |
_json["items"] = items.map((value) => (value).toJson()).toList(); |
} |
@@ -1469,13 +1497,15 @@ class BackupRunsListResponse { |
} |
} |
-/** Binary log coordinates. */ |
+/// Binary log coordinates. |
class BinLogCoordinates { |
- /** Name of the binary log file for a Cloud SQL instance. */ |
+ /// Name of the binary log file for a Cloud SQL instance. |
core.String binLogFileName; |
- /** Position (offset) within the binary log file. */ |
+ |
+ /// Position (offset) within the binary log file. |
core.String binLogPosition; |
- /** This is always sql#binLogCoordinates. */ |
+ |
+ /// This is always sql#binLogCoordinates. |
core.String kind; |
BinLogCoordinates(); |
@@ -1493,7 +1523,8 @@ class BinLogCoordinates { |
} |
core.Map<core.String, core.Object> toJson() { |
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
+ final core.Map<core.String, core.Object> _json = |
+ new core.Map<core.String, core.Object>(); |
if (binLogFileName != null) { |
_json["binLogFileName"] = binLogFileName; |
} |
@@ -1507,26 +1538,28 @@ class BinLogCoordinates { |
} |
} |
-/** Database instance clone context. */ |
+/// Database instance clone context. |
class CloneContext { |
- /** |
- * Binary log coordinates, if specified, indentify the position up to which |
- * the source instance should be cloned. If not specified, the source instance |
- * is cloned up to the most recent binary log coordinates. |
- */ |
+ /// Binary log coordinates, if specified, indentify the position up to which |
+ /// the source instance should be cloned. If not specified, the source |
+ /// instance is cloned up to the most recent binary log coordinates. |
BinLogCoordinates binLogCoordinates; |
- /** Name of the Cloud SQL instance to be created as a clone. */ |
+ |
+ /// Name of the Cloud SQL instance to be created as a clone. |
core.String destinationInstanceName; |
- /** This is always sql#cloneContext. */ |
+ |
+ /// This is always sql#cloneContext. |
core.String kind; |
- /** Name of the Cloud SQL instance to be cloned. */ |
+ |
+ /// Name of the Cloud SQL instance to be cloned. |
core.String sourceInstanceName; |
CloneContext(); |
CloneContext.fromJson(core.Map _json) { |
if (_json.containsKey("binLogCoordinates")) { |
- binLogCoordinates = new BinLogCoordinates.fromJson(_json["binLogCoordinates"]); |
+ binLogCoordinates = |
+ new BinLogCoordinates.fromJson(_json["binLogCoordinates"]); |
} |
if (_json.containsKey("destinationInstanceName")) { |
destinationInstanceName = _json["destinationInstanceName"]; |
@@ -1540,7 +1573,8 @@ class CloneContext { |
} |
core.Map<core.String, core.Object> toJson() { |
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
+ final core.Map<core.String, core.Object> _json = |
+ new core.Map<core.String, core.Object>(); |
if (binLogCoordinates != null) { |
_json["binLogCoordinates"] = (binLogCoordinates).toJson(); |
} |
@@ -1557,20 +1591,18 @@ class CloneContext { |
} |
} |
-/** MySQL flags for Cloud SQL instances. */ |
+/// MySQL flags for Cloud SQL instances. |
class DatabaseFlags { |
- /** |
- * The name of the flag. These flags are passed at instance startup, so |
- * include both MySQL server options and MySQL system variables. Flags should |
- * be specified with underscores, not hyphens. For more information, see |
- * Configuring MySQL Flags in the Google Cloud SQL documentation, as well as |
- * the official MySQL documentation for server options and system variables. |
- */ |
+ /// The name of the flag. These flags are passed at instance startup, so |
+ /// include both MySQL server options and MySQL system variables. Flags |
+ /// should be specified with underscores, not hyphens. For more information, |
+ /// see Configuring MySQL Flags in the Google Cloud SQL documentation, as |
+ /// well as the official MySQL documentation for server options and system |
+ /// variables. |
core.String name; |
- /** |
- * The value of the flag. Booleans should be set to on for true and off for |
- * false. This field must be omitted if the flag doesn't take a value. |
- */ |
+ |
+ /// The value of the flag. Booleans should be set to on for true and off for |
+ /// false. This field must be omitted if the flag doesn't take a value. |
core.String value; |
DatabaseFlags(); |
@@ -1585,7 +1617,8 @@ class DatabaseFlags { |
} |
core.Map<core.String, core.Object> toJson() { |
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
+ final core.Map<core.String, core.Object> _json = |
+ new core.Map<core.String, core.Object>(); |
if (name != null) { |
_json["name"] = name; |
} |
@@ -1596,69 +1629,75 @@ class DatabaseFlags { |
} |
} |
-/** A Cloud SQL instance resource. */ |
+/// A Cloud SQL instance resource. |
class DatabaseInstance { |
- /** Connection name of the Cloud SQL instance used in connection strings. */ |
+ /// Connection name of the Cloud SQL instance used in connection strings. |
core.String connectionName; |
- /** The current disk usage of the instance in bytes. */ |
+ |
+ /// The current disk usage of the instance in bytes. |
core.String currentDiskSize; |
- /** |
- * The database engine type and version. Can be MYSQL_5_5 or MYSQL_5_6. |
- * Defaults to MYSQL_5_5. The databaseVersion cannot be changed after instance |
- * creation. |
- */ |
+ |
+ /// The database engine type and version. Can be MYSQL_5_5 or MYSQL_5_6. |
+ /// Defaults to MYSQL_5_5. The databaseVersion cannot be changed after |
+ /// instance creation. |
core.String databaseVersion; |
- /** HTTP 1.1 Entity tag for the resource. */ |
+ |
+ /// HTTP 1.1 Entity tag for the resource. |
core.String etag; |
- /** Name of the Cloud SQL instance. This does not include the project ID. */ |
+ |
+ /// Name of the Cloud SQL instance. This does not include the project ID. |
core.String instance; |
- /** |
- * The instance type. This can be one of the following. |
- * CLOUD_SQL_INSTANCE: Regular Cloud SQL instance. |
- * READ_REPLICA_INSTANCE: Cloud SQL instance acting as a read-replica. |
- */ |
+ |
+ /// The instance type. This can be one of the following. |
+ /// CLOUD_SQL_INSTANCE: Regular Cloud SQL instance. |
+ /// READ_REPLICA_INSTANCE: Cloud SQL instance acting as a read-replica. |
core.String instanceType; |
- /** The assigned IP addresses for the instance. */ |
+ |
+ /// The assigned IP addresses for the instance. |
core.List<IpMapping> ipAddresses; |
- /** The IPv6 address assigned to the instance. */ |
+ |
+ /// The IPv6 address assigned to the instance. |
core.String ipv6Address; |
- /** This is always sql#instance. */ |
+ |
+ /// This is always sql#instance. |
core.String kind; |
- /** |
- * The name of the instance which will act as master in the replication setup. |
- */ |
+ |
+ /// The name of the instance which will act as master in the replication |
+ /// setup. |
core.String masterInstanceName; |
- /** The maximum disk size of the instance in bytes. */ |
+ |
+ /// The maximum disk size of the instance in bytes. |
core.String maxDiskSize; |
- /** |
- * The project ID of the project containing the Cloud SQL instance. The Google |
- * apps domain is prefixed if applicable. |
- */ |
+ |
+ /// The project ID of the project containing the Cloud SQL instance. The |
+ /// Google apps domain is prefixed if applicable. |
core.String project; |
- /** |
- * The geographical region. Can be us-central, asia-east1 or europe-west1. |
- * Defaults to us-central. The region can not be changed after instance |
- * creation. |
- */ |
+ |
+ /// The geographical region. Can be us-central, asia-east1 or europe-west1. |
+ /// Defaults to us-central. The region can not be changed after instance |
+ /// creation. |
core.String region; |
- /** The replicas of the instance. */ |
+ |
+ /// The replicas of the instance. |
core.List<core.String> replicaNames; |
- /** SSL configuration. */ |
+ |
+ /// SSL configuration. |
SslCert serverCaCert; |
- /** The service account email address assigned to the instance. */ |
+ |
+ /// The service account email address assigned to the instance. |
core.String serviceAccountEmailAddress; |
- /** The user settings. */ |
+ |
+ /// The user settings. |
Settings settings; |
- /** |
- * The current serving state of the Cloud SQL instance. This can be one of the |
- * following. |
- * RUNNABLE: The instance is running, or is ready to run when accessed. |
- * SUSPENDED: The instance is not available, for example due to problems with |
- * billing. |
- * PENDING_CREATE: The instance is being created. |
- * MAINTENANCE: The instance is down for maintenance. |
- * UNKNOWN_STATE: The state of the instance is unknown. |
- */ |
+ |
+ /// The current serving state of the Cloud SQL instance. This can be one of |
+ /// the following. |
+ /// RUNNABLE: The instance is running, or is ready to run when accessed. |
+ /// SUSPENDED: The instance is not available, for example due to problems |
+ /// with billing. |
+ /// PENDING_CREATE: The instance is being created. |
+ /// MAINTENANCE: The instance is down for maintenance. |
+ /// UNKNOWN_STATE: The state of the instance is unknown. |
core.String state; |
DatabaseInstance(); |
@@ -1683,7 +1722,9 @@ class DatabaseInstance { |
instanceType = _json["instanceType"]; |
} |
if (_json.containsKey("ipAddresses")) { |
- ipAddresses = _json["ipAddresses"].map((value) => new IpMapping.fromJson(value)).toList(); |
+ ipAddresses = _json["ipAddresses"] |
+ .map((value) => new IpMapping.fromJson(value)) |
+ .toList(); |
} |
if (_json.containsKey("ipv6Address")) { |
ipv6Address = _json["ipv6Address"]; |
@@ -1721,7 +1762,8 @@ class DatabaseInstance { |
} |
core.Map<core.String, core.Object> toJson() { |
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
+ final core.Map<core.String, core.Object> _json = |
+ new core.Map<core.String, core.Object>(); |
if (connectionName != null) { |
_json["connectionName"] = connectionName; |
} |
@@ -1741,7 +1783,8 @@ class DatabaseInstance { |
_json["instanceType"] = instanceType; |
} |
if (ipAddresses != null) { |
- _json["ipAddresses"] = ipAddresses.map((value) => (value).toJson()).toList(); |
+ _json["ipAddresses"] = |
+ ipAddresses.map((value) => (value).toJson()).toList(); |
} |
if (ipv6Address != null) { |
_json["ipv6Address"] = ipv6Address; |
@@ -1780,26 +1823,23 @@ class DatabaseInstance { |
} |
} |
-/** Database instance export context. */ |
+/// Database instance export context. |
class ExportContext { |
- /** |
- * Databases (for example, guestbook) from which the export is made. If |
- * unspecified, all databases are exported. |
- */ |
+ /// Databases (for example, guestbook) from which the export is made. If |
+ /// unspecified, all databases are exported. |
core.List<core.String> database; |
- /** This is always sql#exportContext. */ |
+ |
+ /// This is always sql#exportContext. |
core.String kind; |
- /** |
- * Tables to export, or that were exported, from the specified database. If |
- * you specify tables, specify one and only one database. |
- */ |
+ |
+ /// Tables to export, or that were exported, from the specified database. If |
+ /// you specify tables, specify one and only one database. |
core.List<core.String> table; |
- /** |
- * The path to the file in Google Cloud Storage where the export will be |
- * stored, or where it was already stored. The URI is in the form |
- * gs://bucketName/fileName. If the file already exists, the operation fails. |
- * If the filename ends with .gz, the contents are compressed. |
- */ |
+ |
+ /// The path to the file in Google Cloud Storage where the export will be |
+ /// stored, or where it was already stored. The URI is in the form |
+ /// gs://bucketName/fileName. If the file already exists, the operation |
+ /// fails. If the filename ends with .gz, the contents are compressed. |
core.String uri; |
ExportContext(); |
@@ -1820,7 +1860,8 @@ class ExportContext { |
} |
core.Map<core.String, core.Object> toJson() { |
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
+ final core.Map<core.String, core.Object> _json = |
+ new core.Map<core.String, core.Object>(); |
if (database != null) { |
_json["database"] = database; |
} |
@@ -1837,31 +1878,31 @@ class ExportContext { |
} |
} |
-/** A Google Cloud SQL service flag resource. */ |
+/// A Google Cloud SQL service flag resource. |
class Flag { |
- /** For STRING flags, a list of strings that the value can be set to. */ |
+ /// For STRING flags, a list of strings that the value can be set to. |
core.List<core.String> allowedStringValues; |
- /** |
- * The database version this flag applies to. Currently this can only be |
- * [MYSQL_5_5]. |
- */ |
+ |
+ /// The database version this flag applies to. Currently this can only be |
+ /// [MYSQL_5_5]. |
core.List<core.String> appliesTo; |
- /** This is always sql#flag. */ |
+ |
+ /// This is always sql#flag. |
core.String kind; |
- /** For INTEGER flags, the maximum allowed value. */ |
+ |
+ /// For INTEGER flags, the maximum allowed value. |
core.String maxValue; |
- /** For INTEGER flags, the minimum allowed value. */ |
+ |
+ /// For INTEGER flags, the minimum allowed value. |
core.String minValue; |
- /** |
- * This is the name of the flag. Flag names always use underscores, not |
- * hyphens, e.g. max_allowed_packet |
- */ |
+ |
+ /// This is the name of the flag. Flag names always use underscores, not |
+ /// hyphens, e.g. max_allowed_packet |
core.String name; |
- /** |
- * The type of the flag. Flags are typed to being BOOLEAN, STRING, INTEGER or |
- * NONE. NONE is used for flags which do not take a value, such as |
- * skip_grant_tables. |
- */ |
+ |
+ /// The type of the flag. Flags are typed to being BOOLEAN, STRING, INTEGER |
+ /// or NONE. NONE is used for flags which do not take a value, such as |
+ /// skip_grant_tables. |
core.String type; |
Flag(); |
@@ -1891,7 +1932,8 @@ class Flag { |
} |
core.Map<core.String, core.Object> toJson() { |
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
+ final core.Map<core.String, core.Object> _json = |
+ new core.Map<core.String, core.Object>(); |
if (allowedStringValues != null) { |
_json["allowedStringValues"] = allowedStringValues; |
} |
@@ -1917,11 +1959,12 @@ class Flag { |
} |
} |
-/** Flags list response. */ |
+/// Flags list response. |
class FlagsListResponse { |
- /** List of flags. */ |
+ /// List of flags. |
core.List<Flag> items; |
- /** This is always sql#flagsList. */ |
+ |
+ /// This is always sql#flagsList. |
core.String kind; |
FlagsListResponse(); |
@@ -1936,7 +1979,8 @@ class FlagsListResponse { |
} |
core.Map<core.String, core.Object> toJson() { |
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
+ final core.Map<core.String, core.Object> _json = |
+ new core.Map<core.String, core.Object>(); |
if (items != null) { |
_json["items"] = items.map((value) => (value).toJson()).toList(); |
} |
@@ -1947,21 +1991,19 @@ class FlagsListResponse { |
} |
} |
-/** Database instance import context. */ |
+/// Database instance import context. |
class ImportContext { |
- /** |
- * The database (for example, guestbook) to which the import is made. If not |
- * set, it is assumed that the database is specified in the file to be |
- * imported. |
- */ |
+ /// The database (for example, guestbook) to which the import is made. If not |
+ /// set, it is assumed that the database is specified in the file to be |
+ /// imported. |
core.String database; |
- /** This is always sql#importContext. */ |
+ |
+ /// This is always sql#importContext. |
core.String kind; |
- /** |
- * A path to the MySQL dump file in Google Cloud Storage from which the import |
- * is made. The URI is in the form gs://bucketName/fileName. Compressed gzip |
- * files (.gz) are also supported. |
- */ |
+ |
+ /// A path to the MySQL dump file in Google Cloud Storage from which the |
+ /// import is made. The URI is in the form gs://bucketName/fileName. |
+ /// Compressed gzip files (.gz) are also supported. |
core.List<core.String> uri; |
ImportContext(); |
@@ -1979,7 +2021,8 @@ class ImportContext { |
} |
core.Map<core.String, core.Object> toJson() { |
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
+ final core.Map<core.String, core.Object> _json = |
+ new core.Map<core.String, core.Object>(); |
if (database != null) { |
_json["database"] = database; |
} |
@@ -1993,58 +2036,53 @@ class ImportContext { |
} |
} |
-/** |
- * An Operations resource contains information about database instance |
- * operations such as create, delete, and restart. Operations resources are |
- * created in response to operations that were initiated; you never create them |
- * directly. |
- */ |
+/// An Operations resource contains information about database instance |
+/// operations such as create, delete, and restart. Operations resources are |
+/// created in response to operations that were initiated; you never create |
+/// them directly. |
class InstanceOperation { |
- /** |
- * The time this operation finished in UTC timezone in RFC 3339 format, for |
- * example 2012-11-15T16:19:00.094Z. |
- */ |
+ /// The time this operation finished in UTC timezone in RFC 3339 format, for |
+ /// example 2012-11-15T16:19:00.094Z. |
core.DateTime endTime; |
- /** |
- * The time this operation was enqueued in UTC timezone in RFC 3339 format, |
- * for example 2012-11-15T16:19:00.094Z. |
- */ |
+ |
+ /// The time this operation was enqueued in UTC timezone in RFC 3339 format, |
+ /// for example 2012-11-15T16:19:00.094Z. |
core.DateTime enqueuedTime; |
- /** |
- * The error(s) encountered by this operation. Only set if the operation |
- * results in an error. |
- */ |
+ |
+ /// The error(s) encountered by this operation. Only set if the operation |
+ /// results in an error. |
core.List<OperationError> error; |
- /** The context for export operation, if applicable. */ |
+ |
+ /// The context for export operation, if applicable. |
ExportContext exportContext; |
- /** The context for import operation, if applicable. */ |
+ |
+ /// The context for import operation, if applicable. |
ImportContext importContext; |
- /** Name of the database instance. */ |
+ |
+ /// Name of the database instance. |
core.String instance; |
- /** This is always sql#instanceOperation. */ |
+ |
+ /// This is always sql#instanceOperation. |
core.String kind; |
- /** |
- * An identifier that uniquely identifies the operation. You can use this |
- * identifier to retrieve the Operations resource that has information about |
- * the operation. |
- */ |
+ |
+ /// An identifier that uniquely identifies the operation. You can use this |
+ /// identifier to retrieve the Operations resource that has information about |
+ /// the operation. |
core.String operation; |
- /** |
- * The type of the operation. Valid values are CREATE, DELETE, UPDATE, |
- * RESTART, IMPORT, EXPORT, BACKUP_VOLUME, RESTORE_VOLUME. |
- */ |
+ |
+ /// The type of the operation. Valid values are CREATE, DELETE, UPDATE, |
+ /// RESTART, IMPORT, EXPORT, BACKUP_VOLUME, RESTORE_VOLUME. |
core.String operationType; |
- /** |
- * The time this operation actually started in UTC timezone in RFC 3339 |
- * format, for example 2012-11-15T16:19:00.094Z. |
- */ |
+ |
+ /// The time this operation actually started in UTC timezone in RFC 3339 |
+ /// format, for example 2012-11-15T16:19:00.094Z. |
core.DateTime startTime; |
- /** |
- * The state of an operation. Valid values are PENDING, RUNNING, DONE, |
- * UNKNOWN. |
- */ |
+ |
+ /// The state of an operation. Valid values are PENDING, RUNNING, DONE, |
+ /// UNKNOWN. |
core.String state; |
- /** The email address of the user who initiated this operation. */ |
+ |
+ /// The email address of the user who initiated this operation. |
core.String userEmailAddress; |
InstanceOperation(); |
@@ -2057,7 +2095,9 @@ class InstanceOperation { |
enqueuedTime = core.DateTime.parse(_json["enqueuedTime"]); |
} |
if (_json.containsKey("error")) { |
- error = _json["error"].map((value) => new OperationError.fromJson(value)).toList(); |
+ error = _json["error"] |
+ .map((value) => new OperationError.fromJson(value)) |
+ .toList(); |
} |
if (_json.containsKey("exportContext")) { |
exportContext = new ExportContext.fromJson(_json["exportContext"]); |
@@ -2089,7 +2129,8 @@ class InstanceOperation { |
} |
core.Map<core.String, core.Object> toJson() { |
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
+ final core.Map<core.String, core.Object> _json = |
+ new core.Map<core.String, core.Object>(); |
if (endTime != null) { |
_json["endTime"] = (endTime).toIso8601String(); |
} |
@@ -2130,21 +2171,23 @@ class InstanceOperation { |
} |
} |
-/** Database instance set root password request. */ |
+/// Database instance set root password request. |
class InstanceSetRootPasswordRequest { |
- /** Set Root Password Context. */ |
+ /// Set Root Password Context. |
SetRootPasswordContext setRootPasswordContext; |
InstanceSetRootPasswordRequest(); |
InstanceSetRootPasswordRequest.fromJson(core.Map _json) { |
if (_json.containsKey("setRootPasswordContext")) { |
- setRootPasswordContext = new SetRootPasswordContext.fromJson(_json["setRootPasswordContext"]); |
+ setRootPasswordContext = |
+ new SetRootPasswordContext.fromJson(_json["setRootPasswordContext"]); |
} |
} |
core.Map<core.String, core.Object> toJson() { |
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
+ final core.Map<core.String, core.Object> _json = |
+ new core.Map<core.String, core.Object>(); |
if (setRootPasswordContext != null) { |
_json["setRootPasswordContext"] = (setRootPasswordContext).toJson(); |
} |
@@ -2152,9 +2195,9 @@ class InstanceSetRootPasswordRequest { |
} |
} |
-/** Database instance clone request. */ |
+/// Database instance clone request. |
class InstancesCloneRequest { |
- /** Contains details about the clone operation. */ |
+ /// Contains details about the clone operation. |
CloneContext cloneContext; |
InstancesCloneRequest(); |
@@ -2166,7 +2209,8 @@ class InstancesCloneRequest { |
} |
core.Map<core.String, core.Object> toJson() { |
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
+ final core.Map<core.String, core.Object> _json = |
+ new core.Map<core.String, core.Object>(); |
if (cloneContext != null) { |
_json["cloneContext"] = (cloneContext).toJson(); |
} |
@@ -2174,15 +2218,14 @@ class InstancesCloneRequest { |
} |
} |
-/** Database instance clone response. */ |
+/// Database instance clone response. |
class InstancesCloneResponse { |
- /** This is always sql#instancesClone. */ |
+ /// This is always sql#instancesClone. |
core.String kind; |
- /** |
- * An unique identifier for the operation associated with the cloned instance. |
- * You can use this identifier to retrieve the Operations resource, which has |
- * information about the operation. |
- */ |
+ |
+ /// An unique identifier for the operation associated with the cloned |
+ /// instance. You can use this identifier to retrieve the Operations |
+ /// resource, which has information about the operation. |
core.String operation; |
InstancesCloneResponse(); |
@@ -2197,7 +2240,8 @@ class InstancesCloneResponse { |
} |
core.Map<core.String, core.Object> toJson() { |
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
+ final core.Map<core.String, core.Object> _json = |
+ new core.Map<core.String, core.Object>(); |
if (kind != null) { |
_json["kind"] = kind; |
} |
@@ -2208,15 +2252,14 @@ class InstancesCloneResponse { |
} |
} |
-/** Database instance delete response. */ |
+/// Database instance delete response. |
class InstancesDeleteResponse { |
- /** This is always sql#instancesDelete. */ |
+ /// This is always sql#instancesDelete. |
core.String kind; |
- /** |
- * An identifier that uniquely identifies the operation. You can use this |
- * identifier to retrieve the Operations resource that has information about |
- * the operation. |
- */ |
+ |
+ /// An identifier that uniquely identifies the operation. You can use this |
+ /// identifier to retrieve the Operations resource that has information about |
+ /// the operation. |
core.String operation; |
InstancesDeleteResponse(); |
@@ -2231,7 +2274,8 @@ class InstancesDeleteResponse { |
} |
core.Map<core.String, core.Object> toJson() { |
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
+ final core.Map<core.String, core.Object> _json = |
+ new core.Map<core.String, core.Object>(); |
if (kind != null) { |
_json["kind"] = kind; |
} |
@@ -2242,9 +2286,9 @@ class InstancesDeleteResponse { |
} |
} |
-/** Database instance export request. */ |
+/// Database instance export request. |
class InstancesExportRequest { |
- /** Contains details about the export operation. */ |
+ /// Contains details about the export operation. |
ExportContext exportContext; |
InstancesExportRequest(); |
@@ -2256,7 +2300,8 @@ class InstancesExportRequest { |
} |
core.Map<core.String, core.Object> toJson() { |
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
+ final core.Map<core.String, core.Object> _json = |
+ new core.Map<core.String, core.Object>(); |
if (exportContext != null) { |
_json["exportContext"] = (exportContext).toJson(); |
} |
@@ -2264,15 +2309,14 @@ class InstancesExportRequest { |
} |
} |
-/** Database instance export response. */ |
+/// Database instance export response. |
class InstancesExportResponse { |
- /** This is always sql#instancesExport. */ |
+ /// This is always sql#instancesExport. |
core.String kind; |
- /** |
- * An identifier that uniquely identifies the operation. You can use this |
- * identifier to retrieve the Operations resource that has information about |
- * the operation. |
- */ |
+ |
+ /// An identifier that uniquely identifies the operation. You can use this |
+ /// identifier to retrieve the Operations resource that has information about |
+ /// the operation. |
core.String operation; |
InstancesExportResponse(); |
@@ -2287,7 +2331,8 @@ class InstancesExportResponse { |
} |
core.Map<core.String, core.Object> toJson() { |
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
+ final core.Map<core.String, core.Object> _json = |
+ new core.Map<core.String, core.Object>(); |
if (kind != null) { |
_json["kind"] = kind; |
} |
@@ -2298,9 +2343,9 @@ class InstancesExportResponse { |
} |
} |
-/** Database instance import request. */ |
+/// Database instance import request. |
class InstancesImportRequest { |
- /** Contains details about the import operation. */ |
+ /// Contains details about the import operation. |
ImportContext importContext; |
InstancesImportRequest(); |
@@ -2312,7 +2357,8 @@ class InstancesImportRequest { |
} |
core.Map<core.String, core.Object> toJson() { |
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
+ final core.Map<core.String, core.Object> _json = |
+ new core.Map<core.String, core.Object>(); |
if (importContext != null) { |
_json["importContext"] = (importContext).toJson(); |
} |
@@ -2320,15 +2366,14 @@ class InstancesImportRequest { |
} |
} |
-/** Database instance import response. */ |
+/// Database instance import response. |
class InstancesImportResponse { |
- /** This is always sql#instancesImport. */ |
+ /// This is always sql#instancesImport. |
core.String kind; |
- /** |
- * An identifier that uniquely identifies the operation. You can use this |
- * identifier to retrieve the Operations resource that has information about |
- * the operation. |
- */ |
+ |
+ /// An identifier that uniquely identifies the operation. You can use this |
+ /// identifier to retrieve the Operations resource that has information about |
+ /// the operation. |
core.String operation; |
InstancesImportResponse(); |
@@ -2343,7 +2388,8 @@ class InstancesImportResponse { |
} |
core.Map<core.String, core.Object> toJson() { |
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
+ final core.Map<core.String, core.Object> _json = |
+ new core.Map<core.String, core.Object>(); |
if (kind != null) { |
_json["kind"] = kind; |
} |
@@ -2354,15 +2400,14 @@ class InstancesImportResponse { |
} |
} |
-/** Database instance insert response. */ |
+/// Database instance insert response. |
class InstancesInsertResponse { |
- /** This is always sql#instancesInsert. */ |
+ /// This is always sql#instancesInsert. |
core.String kind; |
- /** |
- * An identifier that uniquely identifies the operation. You can use this |
- * identifier to retrieve the Operations resource that has information about |
- * the operation. |
- */ |
+ |
+ /// An identifier that uniquely identifies the operation. You can use this |
+ /// identifier to retrieve the Operations resource that has information about |
+ /// the operation. |
core.String operation; |
InstancesInsertResponse(); |
@@ -2377,7 +2422,8 @@ class InstancesInsertResponse { |
} |
core.Map<core.String, core.Object> toJson() { |
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
+ final core.Map<core.String, core.Object> _json = |
+ new core.Map<core.String, core.Object>(); |
if (kind != null) { |
_json["kind"] = kind; |
} |
@@ -2388,23 +2434,25 @@ class InstancesInsertResponse { |
} |
} |
-/** Database instances list response. */ |
+/// Database instances list response. |
class InstancesListResponse { |
- /** List of database instance resources. */ |
+ /// List of database instance resources. |
core.List<DatabaseInstance> items; |
- /** This is always sql#instancesList. */ |
+ |
+ /// This is always sql#instancesList. |
core.String kind; |
- /** |
- * The continuation token, used to page through large result sets. Provide |
- * this value in a subsequent request to return the next page of results. |
- */ |
+ |
+ /// The continuation token, used to page through large result sets. Provide |
+ /// this value in a subsequent request to return the next page of results. |
core.String nextPageToken; |
InstancesListResponse(); |
InstancesListResponse.fromJson(core.Map _json) { |
if (_json.containsKey("items")) { |
- items = _json["items"].map((value) => new DatabaseInstance.fromJson(value)).toList(); |
+ items = _json["items"] |
+ .map((value) => new DatabaseInstance.fromJson(value)) |
+ .toList(); |
} |
if (_json.containsKey("kind")) { |
kind = _json["kind"]; |
@@ -2415,7 +2463,8 @@ class InstancesListResponse { |
} |
core.Map<core.String, core.Object> toJson() { |
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
+ final core.Map<core.String, core.Object> _json = |
+ new core.Map<core.String, core.Object>(); |
if (items != null) { |
_json["items"] = items.map((value) => (value).toJson()).toList(); |
} |
@@ -2429,15 +2478,14 @@ class InstancesListResponse { |
} |
} |
-/** Database promote read replica response. */ |
+/// Database promote read replica response. |
class InstancesPromoteReplicaResponse { |
- /** This is always sql#instancesPromoteReplica. */ |
+ /// This is always sql#instancesPromoteReplica. |
core.String kind; |
- /** |
- * An identifier that uniquely identifies the operation. You can use this |
- * identifier to retrieve the Operations resource that has information about |
- * the operation. |
- */ |
+ |
+ /// An identifier that uniquely identifies the operation. You can use this |
+ /// identifier to retrieve the Operations resource that has information about |
+ /// the operation. |
core.String operation; |
InstancesPromoteReplicaResponse(); |
@@ -2452,7 +2500,8 @@ class InstancesPromoteReplicaResponse { |
} |
core.Map<core.String, core.Object> toJson() { |
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
+ final core.Map<core.String, core.Object> _json = |
+ new core.Map<core.String, core.Object>(); |
if (kind != null) { |
_json["kind"] = kind; |
} |
@@ -2463,17 +2512,16 @@ class InstancesPromoteReplicaResponse { |
} |
} |
-/** Database instance resetSslConfig response. */ |
+/// Database instance resetSslConfig response. |
class InstancesResetSslConfigResponse { |
- /** This is always sql#instancesResetSslConfig. */ |
+ /// This is always sql#instancesResetSslConfig. |
core.String kind; |
- /** |
- * An identifier that uniquely identifies the operation. You can use this |
- * identifier to retrieve the Operations resource that has information about |
- * the operation. All ssl client certificates will be deleted and a new server |
- * certificate will be created. Does not take effect until the next instance |
- * restart. |
- */ |
+ |
+ /// An identifier that uniquely identifies the operation. You can use this |
+ /// identifier to retrieve the Operations resource that has information about |
+ /// the operation. All ssl client certificates will be deleted and a new |
+ /// server certificate will be created. Does not take effect until the next |
+ /// instance restart. |
core.String operation; |
InstancesResetSslConfigResponse(); |
@@ -2488,7 +2536,8 @@ class InstancesResetSslConfigResponse { |
} |
core.Map<core.String, core.Object> toJson() { |
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
+ final core.Map<core.String, core.Object> _json = |
+ new core.Map<core.String, core.Object>(); |
if (kind != null) { |
_json["kind"] = kind; |
} |
@@ -2499,15 +2548,14 @@ class InstancesResetSslConfigResponse { |
} |
} |
-/** Database instance restart response. */ |
+/// Database instance restart response. |
class InstancesRestartResponse { |
- /** This is always sql#instancesRestart. */ |
+ /// This is always sql#instancesRestart. |
core.String kind; |
- /** |
- * An identifier that uniquely identifies the operation. You can use this |
- * identifier to retrieve the Operations resource that has information about |
- * the operation. |
- */ |
+ |
+ /// An identifier that uniquely identifies the operation. You can use this |
+ /// identifier to retrieve the Operations resource that has information about |
+ /// the operation. |
core.String operation; |
InstancesRestartResponse(); |
@@ -2522,7 +2570,8 @@ class InstancesRestartResponse { |
} |
core.Map<core.String, core.Object> toJson() { |
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
+ final core.Map<core.String, core.Object> _json = |
+ new core.Map<core.String, core.Object>(); |
if (kind != null) { |
_json["kind"] = kind; |
} |
@@ -2533,15 +2582,14 @@ class InstancesRestartResponse { |
} |
} |
-/** Database instance restore backup response. */ |
+/// Database instance restore backup response. |
class InstancesRestoreBackupResponse { |
- /** This is always sql#instancesRestoreBackup. */ |
+ /// This is always sql#instancesRestoreBackup. |
core.String kind; |
- /** |
- * An identifier that uniquely identifies the operation. You can use this |
- * identifier to retrieve the Operations resource that has information about |
- * the operation. |
- */ |
+ |
+ /// An identifier that uniquely identifies the operation. You can use this |
+ /// identifier to retrieve the Operations resource that has information about |
+ /// the operation. |
core.String operation; |
InstancesRestoreBackupResponse(); |
@@ -2556,7 +2604,8 @@ class InstancesRestoreBackupResponse { |
} |
core.Map<core.String, core.Object> toJson() { |
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
+ final core.Map<core.String, core.Object> _json = |
+ new core.Map<core.String, core.Object>(); |
if (kind != null) { |
_json["kind"] = kind; |
} |
@@ -2567,15 +2616,14 @@ class InstancesRestoreBackupResponse { |
} |
} |
-/** Database instance set root password response. */ |
+/// Database instance set root password response. |
class InstancesSetRootPasswordResponse { |
- /** This is always sql#instancesSetRootPassword. */ |
+ /// This is always sql#instancesSetRootPassword. |
core.String kind; |
- /** |
- * An identifier that uniquely identifies the operation. You can use this |
- * identifier to retrieve the Operations resource that has information about |
- * the operation. |
- */ |
+ |
+ /// An identifier that uniquely identifies the operation. You can use this |
+ /// identifier to retrieve the Operations resource that has information about |
+ /// the operation. |
core.String operation; |
InstancesSetRootPasswordResponse(); |
@@ -2590,7 +2638,8 @@ class InstancesSetRootPasswordResponse { |
} |
core.Map<core.String, core.Object> toJson() { |
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
+ final core.Map<core.String, core.Object> _json = |
+ new core.Map<core.String, core.Object>(); |
if (kind != null) { |
_json["kind"] = kind; |
} |
@@ -2601,14 +2650,13 @@ class InstancesSetRootPasswordResponse { |
} |
} |
-/** Database instance update response. */ |
+/// Database instance update response. |
class InstancesUpdateResponse { |
- /** This is always sql#instancesUpdate. */ |
+ /// This is always sql#instancesUpdate. |
core.String kind; |
- /** |
- * An identifier that uniquely identifies the operation. You can use this |
- * identifier to retrieve information about the operation. |
- */ |
+ |
+ /// An identifier that uniquely identifies the operation. You can use this |
+ /// identifier to retrieve information about the operation. |
core.String operation; |
InstancesUpdateResponse(); |
@@ -2623,7 +2671,8 @@ class InstancesUpdateResponse { |
} |
core.Map<core.String, core.Object> toJson() { |
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
+ final core.Map<core.String, core.Object> _json = |
+ new core.Map<core.String, core.Object>(); |
if (kind != null) { |
_json["kind"] = kind; |
} |
@@ -2634,19 +2683,20 @@ class InstancesUpdateResponse { |
} |
} |
-/** IP Management configuration. */ |
+/// IP Management configuration. |
class IpConfiguration { |
- /** |
- * The list of external networks that are allowed to connect to the instance |
- * using the IP. In CIDR notation, also known as 'slash' notation (e.g. |
- * 192.168.100.0/24). |
- */ |
+ /// The list of external networks that are allowed to connect to the instance |
+ /// using the IP. In CIDR notation, also known as 'slash' notation (e.g. |
+ /// 192.168.100.0/24). |
core.List<core.String> authorizedNetworks; |
- /** Whether the instance should be assigned an IP address or not. */ |
+ |
+ /// Whether the instance should be assigned an IP address or not. |
core.bool enabled; |
- /** This is always sql#ipConfiguration. */ |
+ |
+ /// This is always sql#ipConfiguration. |
core.String kind; |
- /** Whether SSL connections over IP should be enforced or not. */ |
+ |
+ /// Whether SSL connections over IP should be enforced or not. |
core.bool requireSsl; |
IpConfiguration(); |
@@ -2667,7 +2717,8 @@ class IpConfiguration { |
} |
core.Map<core.String, core.Object> toJson() { |
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
+ final core.Map<core.String, core.Object> _json = |
+ new core.Map<core.String, core.Object>(); |
if (authorizedNetworks != null) { |
_json["authorizedNetworks"] = authorizedNetworks; |
} |
@@ -2684,15 +2735,14 @@ class IpConfiguration { |
} |
} |
-/** Database instance IP Mapping. */ |
+/// Database instance IP Mapping. |
class IpMapping { |
- /** The IP address assigned. */ |
+ /// The IP address assigned. |
core.String ipAddress; |
- /** |
- * The due time for this IP to be retired in RFC 3339 format, for example |
- * 2012-11-15T16:19:00.094Z. This field is only available when the IP is |
- * scheduled to be retired. |
- */ |
+ |
+ /// The due time for this IP to be retired in RFC 3339 format, for example |
+ /// 2012-11-15T16:19:00.094Z. This field is only available when the IP is |
+ /// scheduled to be retired. |
core.DateTime timeToRetire; |
IpMapping(); |
@@ -2707,7 +2757,8 @@ class IpMapping { |
} |
core.Map<core.String, core.Object> toJson() { |
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
+ final core.Map<core.String, core.Object> _json = |
+ new core.Map<core.String, core.Object>(); |
if (ipAddress != null) { |
_json["ipAddress"] = ipAddress; |
} |
@@ -2718,24 +2769,21 @@ class IpMapping { |
} |
} |
-/** |
- * Preferred location. This specifies where a Cloud SQL instance should |
- * preferably be located, either in a specific Compute Engine zone, or |
- * co-located with an App Engine application. Note that if the preferred |
- * location is not available, the instance will be located as close as possible |
- * within the region. Only one location may be specified. |
- */ |
+/// Preferred location. This specifies where a Cloud SQL instance should |
+/// preferably be located, either in a specific Compute Engine zone, or |
+/// co-located with an App Engine application. Note that if the preferred |
+/// location is not available, the instance will be located as close as |
+/// possible within the region. Only one location may be specified. |
class LocationPreference { |
- /** |
- * The App Engine application to follow, it must be in the same region as the |
- * Cloud SQL instance. |
- */ |
+ /// The App Engine application to follow, it must be in the same region as |
+ /// the Cloud SQL instance. |
core.String followGaeApplication; |
- /** This is always sql#locationPreference. */ |
+ |
+ /// This is always sql#locationPreference. |
core.String kind; |
- /** |
- * The preferred Compute Engine zone (e.g. us-centra1-a, us-central1-b, etc.). |
- */ |
+ |
+ /// The preferred Compute Engine zone (e.g. us-centra1-a, us-central1-b, |
+ /// etc.). |
core.String zone; |
LocationPreference(); |
@@ -2753,7 +2801,8 @@ class LocationPreference { |
} |
core.Map<core.String, core.Object> toJson() { |
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
+ final core.Map<core.String, core.Object> _json = |
+ new core.Map<core.String, core.Object>(); |
if (followGaeApplication != null) { |
_json["followGaeApplication"] = followGaeApplication; |
} |
@@ -2767,11 +2816,12 @@ class LocationPreference { |
} |
} |
-/** Database instance operation error. */ |
+/// Database instance operation error. |
class OperationError { |
- /** Identifies the specific error that occurred. */ |
+ /// Identifies the specific error that occurred. |
core.String code; |
- /** This is always sql#operationError. */ |
+ |
+ /// This is always sql#operationError. |
core.String kind; |
OperationError(); |
@@ -2786,7 +2836,8 @@ class OperationError { |
} |
core.Map<core.String, core.Object> toJson() { |
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
+ final core.Map<core.String, core.Object> _json = |
+ new core.Map<core.String, core.Object>(); |
if (code != null) { |
_json["code"] = code; |
} |
@@ -2797,23 +2848,25 @@ class OperationError { |
} |
} |
-/** Database instance list operations response. */ |
+/// Database instance list operations response. |
class OperationsListResponse { |
- /** List of operation resources. */ |
+ /// List of operation resources. |
core.List<InstanceOperation> items; |
- /** This is always sql#operationsList. */ |
+ |
+ /// This is always sql#operationsList. |
core.String kind; |
- /** |
- * The continuation token, used to page through large result sets. Provide |
- * this value in a subsequent request to return the next page of results. |
- */ |
+ |
+ /// The continuation token, used to page through large result sets. Provide |
+ /// this value in a subsequent request to return the next page of results. |
core.String nextPageToken; |
OperationsListResponse(); |
OperationsListResponse.fromJson(core.Map _json) { |
if (_json.containsKey("items")) { |
- items = _json["items"].map((value) => new InstanceOperation.fromJson(value)).toList(); |
+ items = _json["items"] |
+ .map((value) => new InstanceOperation.fromJson(value)) |
+ .toList(); |
} |
if (_json.containsKey("kind")) { |
kind = _json["kind"]; |
@@ -2824,7 +2877,8 @@ class OperationsListResponse { |
} |
core.Map<core.String, core.Object> toJson() { |
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
+ final core.Map<core.String, core.Object> _json = |
+ new core.Map<core.String, core.Object>(); |
if (items != null) { |
_json["items"] = items.map((value) => (value).toJson()).toList(); |
} |
@@ -2838,11 +2892,12 @@ class OperationsListResponse { |
} |
} |
-/** Database instance set root password context. */ |
+/// Database instance set root password context. |
class SetRootPasswordContext { |
- /** This is always sql#setRootUserContext. */ |
+ /// This is always sql#setRootUserContext. |
core.String kind; |
- /** The password for the root user. */ |
+ |
+ /// The password for the root user. |
core.String password; |
SetRootPasswordContext(); |
@@ -2857,7 +2912,8 @@ class SetRootPasswordContext { |
} |
core.Map<core.String, core.Object> toJson() { |
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
+ final core.Map<core.String, core.Object> _json = |
+ new core.Map<core.String, core.Object>(); |
if (kind != null) { |
_json["kind"] = kind; |
} |
@@ -2868,61 +2924,58 @@ class SetRootPasswordContext { |
} |
} |
-/** Database instance settings. */ |
+/// Database instance settings. |
class Settings { |
- /** |
- * The activation policy for this instance. This specifies when the instance |
- * should be activated and is applicable only when the instance state is |
- * RUNNABLE. This can be one of the following. |
- * ALWAYS: The instance should always be active. |
- * NEVER: The instance should never be activated. |
- * ON_DEMAND: The instance is activated upon receiving requests. |
- */ |
+ /// The activation policy for this instance. This specifies when the instance |
+ /// should be activated and is applicable only when the instance state is |
+ /// RUNNABLE. This can be one of the following. |
+ /// ALWAYS: The instance should always be active. |
+ /// NEVER: The instance should never be activated. |
+ /// ON_DEMAND: The instance is activated upon receiving requests. |
core.String activationPolicy; |
- /** The App Engine app IDs that can access this instance. */ |
+ |
+ /// The App Engine app IDs that can access this instance. |
core.List<core.String> authorizedGaeApplications; |
- /** The daily backup configuration for the instance. */ |
+ |
+ /// The daily backup configuration for the instance. |
core.List<BackupConfiguration> backupConfiguration; |
- /** The database flags passed to the instance at startup. */ |
+ |
+ /// The database flags passed to the instance at startup. |
core.List<DatabaseFlags> databaseFlags; |
- /** |
- * Configuration specific to read replica instance. Indicates whether |
- * replication is enabled or not. |
- */ |
+ |
+ /// Configuration specific to read replica instance. Indicates whether |
+ /// replication is enabled or not. |
core.bool databaseReplicationEnabled; |
- /** |
- * The settings for IP Management. This allows to enable or disable the |
- * instance IP and manage which external networks can connect to the instance. |
- */ |
+ |
+ /// The settings for IP Management. This allows to enable or disable the |
+ /// instance IP and manage which external networks can connect to the |
+ /// instance. |
IpConfiguration ipConfiguration; |
- /** This is always sql#settings. */ |
+ |
+ /// This is always sql#settings. |
core.String kind; |
- /** |
- * The location preference settings. This allows the instance to be located as |
- * near as possible to either an App Engine app or GCE zone for better |
- * performance. |
- */ |
+ |
+ /// The location preference settings. This allows the instance to be located |
+ /// as near as possible to either an App Engine app or GCE zone for better |
+ /// performance. |
LocationPreference locationPreference; |
- /** |
- * The pricing plan for this instance. This can be either PER_USE or PACKAGE. |
- */ |
+ |
+ /// The pricing plan for this instance. This can be either PER_USE or |
+ /// PACKAGE. |
core.String pricingPlan; |
- /** |
- * The type of replication this instance uses. This can be either ASYNCHRONOUS |
- * or SYNCHRONOUS. |
- */ |
+ |
+ /// The type of replication this instance uses. This can be either |
+ /// ASYNCHRONOUS or SYNCHRONOUS. |
core.String replicationType; |
- /** |
- * The version of instance settings. This is a required field for update |
- * method to make sure concurrent updates are handled properly. During update, |
- * use the most recent settingsVersion value for this instance and do not try |
- * to update this value. |
- */ |
+ |
+ /// The version of instance settings. This is a required field for update |
+ /// method to make sure concurrent updates are handled properly. During |
+ /// update, use the most recent settingsVersion value for this instance and |
+ /// do not try to update this value. |
core.String settingsVersion; |
- /** |
- * The tier of service for this instance, for example D1, D2. For more |
- * information, see pricing. |
- */ |
+ |
+ /// The tier of service for this instance, for example D1, D2. For more |
+ /// information, see pricing. |
core.String tier; |
Settings(); |
@@ -2935,10 +2988,14 @@ class Settings { |
authorizedGaeApplications = _json["authorizedGaeApplications"]; |
} |
if (_json.containsKey("backupConfiguration")) { |
- backupConfiguration = _json["backupConfiguration"].map((value) => new BackupConfiguration.fromJson(value)).toList(); |
+ backupConfiguration = _json["backupConfiguration"] |
+ .map((value) => new BackupConfiguration.fromJson(value)) |
+ .toList(); |
} |
if (_json.containsKey("databaseFlags")) { |
- databaseFlags = _json["databaseFlags"].map((value) => new DatabaseFlags.fromJson(value)).toList(); |
+ databaseFlags = _json["databaseFlags"] |
+ .map((value) => new DatabaseFlags.fromJson(value)) |
+ .toList(); |
} |
if (_json.containsKey("databaseReplicationEnabled")) { |
databaseReplicationEnabled = _json["databaseReplicationEnabled"]; |
@@ -2950,7 +3007,8 @@ class Settings { |
kind = _json["kind"]; |
} |
if (_json.containsKey("locationPreference")) { |
- locationPreference = new LocationPreference.fromJson(_json["locationPreference"]); |
+ locationPreference = |
+ new LocationPreference.fromJson(_json["locationPreference"]); |
} |
if (_json.containsKey("pricingPlan")) { |
pricingPlan = _json["pricingPlan"]; |
@@ -2967,7 +3025,8 @@ class Settings { |
} |
core.Map<core.String, core.Object> toJson() { |
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
+ final core.Map<core.String, core.Object> _json = |
+ new core.Map<core.String, core.Object>(); |
if (activationPolicy != null) { |
_json["activationPolicy"] = activationPolicy; |
} |
@@ -2975,10 +3034,12 @@ class Settings { |
_json["authorizedGaeApplications"] = authorizedGaeApplications; |
} |
if (backupConfiguration != null) { |
- _json["backupConfiguration"] = backupConfiguration.map((value) => (value).toJson()).toList(); |
+ _json["backupConfiguration"] = |
+ backupConfiguration.map((value) => (value).toJson()).toList(); |
} |
if (databaseFlags != null) { |
- _json["databaseFlags"] = databaseFlags.map((value) => (value).toJson()).toList(); |
+ _json["databaseFlags"] = |
+ databaseFlags.map((value) => (value).toJson()).toList(); |
} |
if (databaseReplicationEnabled != null) { |
_json["databaseReplicationEnabled"] = databaseReplicationEnabled; |
@@ -3008,23 +3069,30 @@ class Settings { |
} |
} |
-/** SslCerts Resource */ |
+/// SslCerts Resource |
class SslCert { |
- /** PEM representation. */ |
+ /// PEM representation. |
core.String cert; |
- /** Serial number, as extracted from the certificate. */ |
+ |
+ /// Serial number, as extracted from the certificate. |
core.String certSerialNumber; |
- /** User supplied name. Constrained to [a-zA-Z.-_ ]+. */ |
+ |
+ /// User supplied name. Constrained to [a-zA-Z.-_ ]+. |
core.String commonName; |
- /** Time when the certificate was created. */ |
+ |
+ /// Time when the certificate was created. |
core.DateTime createTime; |
- /** Time when the certificate expires. */ |
+ |
+ /// Time when the certificate expires. |
core.DateTime expirationTime; |
- /** Name of the database instance. */ |
+ |
+ /// Name of the database instance. |
core.String instance; |
- /** This is always sql#sslCert. */ |
+ |
+ /// This is always sql#sslCert. |
core.String kind; |
- /** Sha1 Fingerprint. */ |
+ |
+ /// Sha1 Fingerprint. |
core.String sha1Fingerprint; |
SslCert(); |
@@ -3057,7 +3125,8 @@ class SslCert { |
} |
core.Map<core.String, core.Object> toJson() { |
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
+ final core.Map<core.String, core.Object> _json = |
+ new core.Map<core.String, core.Object>(); |
if (cert != null) { |
_json["cert"] = cert; |
} |
@@ -3086,14 +3155,13 @@ class SslCert { |
} |
} |
-/** SslCertDetail. */ |
+/// SslCertDetail. |
class SslCertDetail { |
- /** The public information about the cert. */ |
+ /// The public information about the cert. |
SslCert certInfo; |
- /** |
- * The private key for the client cert, in pem format. Keep private in order |
- * to protect your security. |
- */ |
+ |
+ /// The private key for the client cert, in pem format. Keep private in order |
+ /// to protect your security. |
core.String certPrivateKey; |
SslCertDetail(); |
@@ -3108,7 +3176,8 @@ class SslCertDetail { |
} |
core.Map<core.String, core.Object> toJson() { |
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
+ final core.Map<core.String, core.Object> _json = |
+ new core.Map<core.String, core.Object>(); |
if (certInfo != null) { |
_json["certInfo"] = (certInfo).toJson(); |
} |
@@ -3119,15 +3188,14 @@ class SslCertDetail { |
} |
} |
-/** SslCert delete response. */ |
+/// SslCert delete response. |
class SslCertsDeleteResponse { |
- /** This is always sql#sslCertsDelete. */ |
+ /// This is always sql#sslCertsDelete. |
core.String kind; |
- /** |
- * An identifier that uniquely identifies the operation. You can use this |
- * identifier to retrieve the Operations resource that has information about |
- * the operation. |
- */ |
+ |
+ /// An identifier that uniquely identifies the operation. You can use this |
+ /// identifier to retrieve the Operations resource that has information about |
+ /// the operation. |
core.String operation; |
SslCertsDeleteResponse(); |
@@ -3142,7 +3210,8 @@ class SslCertsDeleteResponse { |
} |
core.Map<core.String, core.Object> toJson() { |
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
+ final core.Map<core.String, core.Object> _json = |
+ new core.Map<core.String, core.Object>(); |
if (kind != null) { |
_json["kind"] = kind; |
} |
@@ -3153,13 +3222,11 @@ class SslCertsDeleteResponse { |
} |
} |
-/** SslCerts insert request. */ |
+/// SslCerts insert request. |
class SslCertsInsertRequest { |
- /** |
- * User supplied name. Must be a distinct name from the other certificates for |
- * this instance. New certificates will not be usable until the instance is |
- * restarted. |
- */ |
+ /// User supplied name. Must be a distinct name from the other certificates |
+ /// for this instance. New certificates will not be usable until the instance |
+ /// is restarted. |
core.String commonName; |
SslCertsInsertRequest(); |
@@ -3171,7 +3238,8 @@ class SslCertsInsertRequest { |
} |
core.Map<core.String, core.Object> toJson() { |
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
+ final core.Map<core.String, core.Object> _json = |
+ new core.Map<core.String, core.Object>(); |
if (commonName != null) { |
_json["commonName"] = commonName; |
} |
@@ -3179,20 +3247,18 @@ class SslCertsInsertRequest { |
} |
} |
-/** SslCert insert response. */ |
+/// SslCert insert response. |
class SslCertsInsertResponse { |
- /** |
- * The new client certificate and private key. The new certificate will not |
- * work until the instance is restarted. |
- */ |
+ /// The new client certificate and private key. The new certificate will not |
+ /// work until the instance is restarted. |
SslCertDetail clientCert; |
- /** This is always sql#sslCertsInsert. */ |
+ |
+ /// This is always sql#sslCertsInsert. |
core.String kind; |
- /** |
- * The server Certificate Authority's certificate. If this is missing you can |
- * force a new one to be generated by calling resetSslConfig method on |
- * instances resource.. |
- */ |
+ |
+ /// The server Certificate Authority's certificate. If this is missing you |
+ /// can force a new one to be generated by calling resetSslConfig method on |
+ /// instances resource.. |
SslCert serverCaCert; |
SslCertsInsertResponse(); |
@@ -3210,7 +3276,8 @@ class SslCertsInsertResponse { |
} |
core.Map<core.String, core.Object> toJson() { |
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
+ final core.Map<core.String, core.Object> _json = |
+ new core.Map<core.String, core.Object>(); |
if (clientCert != null) { |
_json["clientCert"] = (clientCert).toJson(); |
} |
@@ -3224,18 +3291,20 @@ class SslCertsInsertResponse { |
} |
} |
-/** SslCerts list response. */ |
+/// SslCerts list response. |
class SslCertsListResponse { |
- /** List of client certificates for the instance. */ |
+ /// List of client certificates for the instance. |
core.List<SslCert> items; |
- /** This is always sql#sslCertsList. */ |
+ |
+ /// This is always sql#sslCertsList. |
core.String kind; |
SslCertsListResponse(); |
SslCertsListResponse.fromJson(core.Map _json) { |
if (_json.containsKey("items")) { |
- items = _json["items"].map((value) => new SslCert.fromJson(value)).toList(); |
+ items = |
+ _json["items"].map((value) => new SslCert.fromJson(value)).toList(); |
} |
if (_json.containsKey("kind")) { |
kind = _json["kind"]; |
@@ -3243,7 +3312,8 @@ class SslCertsListResponse { |
} |
core.Map<core.String, core.Object> toJson() { |
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
+ final core.Map<core.String, core.Object> _json = |
+ new core.Map<core.String, core.Object>(); |
if (items != null) { |
_json["items"] = items.map((value) => (value).toJson()).toList(); |
} |
@@ -3254,20 +3324,22 @@ class SslCertsListResponse { |
} |
} |
-/** A Google Cloud SQL service tier resource. */ |
+/// A Google Cloud SQL service tier resource. |
class Tier { |
- /** The maximum disk size of this tier in bytes. */ |
+ /// The maximum disk size of this tier in bytes. |
core.String DiskQuota; |
- /** The maximum RAM usage of this tier in bytes. */ |
+ |
+ /// The maximum RAM usage of this tier in bytes. |
core.String RAM; |
- /** This is always sql#tier. */ |
+ |
+ /// This is always sql#tier. |
core.String kind; |
- /** The applicable regions for this tier. */ |
+ |
+ /// The applicable regions for this tier. |
core.List<core.String> region; |
- /** |
- * An identifier for the service tier, for example D1, D2 etc. For related |
- * information, see Pricing. |
- */ |
+ |
+ /// An identifier for the service tier, for example D1, D2 etc. For related |
+ /// information, see Pricing. |
core.String tier; |
Tier(); |
@@ -3291,7 +3363,8 @@ class Tier { |
} |
core.Map<core.String, core.Object> toJson() { |
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
+ final core.Map<core.String, core.Object> _json = |
+ new core.Map<core.String, core.Object>(); |
if (DiskQuota != null) { |
_json["DiskQuota"] = DiskQuota; |
} |
@@ -3311,11 +3384,12 @@ class Tier { |
} |
} |
-/** Tiers list response. */ |
+/// Tiers list response. |
class TiersListResponse { |
- /** List of tiers. */ |
+ /// List of tiers. |
core.List<Tier> items; |
- /** This is always sql#tiersList. */ |
+ |
+ /// This is always sql#tiersList. |
core.String kind; |
TiersListResponse(); |
@@ -3330,7 +3404,8 @@ class TiersListResponse { |
} |
core.Map<core.String, core.Object> toJson() { |
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
+ final core.Map<core.String, core.Object> _json = |
+ new core.Map<core.String, core.Object>(); |
if (items != null) { |
_json["items"] = items.map((value) => (value).toJson()).toList(); |
} |