| Index: generated/googleapis_beta/lib/sqladmin/v1beta4.dart
|
| diff --git a/generated/googleapis_beta/lib/sqladmin/v1beta4.dart b/generated/googleapis_beta/lib/sqladmin/v1beta4.dart
|
| index efba91b08cbea2271c8f44f6c27603d3c7936cd0..0b8351f270ff5529a47783ace918fb1ba46eab50 100644
|
| --- a/generated/googleapis_beta/lib/sqladmin/v1beta4.dart
|
| +++ b/generated/googleapis_beta/lib/sqladmin/v1beta4.dart
|
| @@ -1332,6 +1332,55 @@ class InstancesResourceApi {
|
| }
|
|
|
| /**
|
| + * Truncate MySQL general and slow query log tables
|
| + *
|
| + * [request] - The metadata request object.
|
| + *
|
| + * Request parameters:
|
| + *
|
| + * [project] - Project ID of the Cloud SQL project.
|
| + *
|
| + * [instance] - Cloud SQL instance ID. This does not include the project ID.
|
| + *
|
| + * Completes with a [Operation].
|
| + *
|
| + * 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<Operation> truncateLog(InstancesTruncateLogRequest request, core.String project, core.String instance) {
|
| + var _url = null;
|
| + var _queryParams = new core.Map();
|
| + var _uploadMedia = null;
|
| + var _uploadOptions = null;
|
| + var _downloadOptions = commons.DownloadOptions.Metadata;
|
| + var _body = null;
|
| +
|
| + if (request != null) {
|
| + _body = convert.JSON.encode((request).toJson());
|
| + }
|
| + if (project == null) {
|
| + throw new core.ArgumentError("Parameter project is required.");
|
| + }
|
| + if (instance == null) {
|
| + throw new core.ArgumentError("Parameter instance is required.");
|
| + }
|
| +
|
| + _url = 'projects/' + commons.Escaper.ecapeVariable('$project') + '/instances/' + commons.Escaper.ecapeVariable('$instance') + '/truncateLog';
|
| +
|
| + var _response = _requester.request(_url,
|
| + "POST",
|
| + body: _body,
|
| + queryParams: _queryParams,
|
| + uploadOptions: _uploadOptions,
|
| + uploadMedia: _uploadMedia,
|
| + downloadOptions: _downloadOptions);
|
| + return _response.then((data) => new Operation.fromJson(data));
|
| + }
|
| +
|
| + /**
|
| * Updates settings of a Cloud SQL instance. Caution: This is not a partial
|
| * update, so you must include values for all the settings that you want to
|
| * retain. For partial updates, use patch.
|
| @@ -3372,6 +3421,28 @@ class InstancesRestoreBackupRequest {
|
| }
|
| }
|
|
|
| +/** Instance truncate log request. */
|
| +class InstancesTruncateLogRequest {
|
| + /** Contains details about the truncate log operation. */
|
| + TruncateLogContext truncateLogContext;
|
| +
|
| + InstancesTruncateLogRequest();
|
| +
|
| + InstancesTruncateLogRequest.fromJson(core.Map _json) {
|
| + if (_json.containsKey("truncateLogContext")) {
|
| + truncateLogContext = new TruncateLogContext.fromJson(_json["truncateLogContext"]);
|
| + }
|
| + }
|
| +
|
| + core.Map toJson() {
|
| + var _json = new core.Map();
|
| + if (truncateLogContext != null) {
|
| + _json["truncateLogContext"] = (truncateLogContext).toJson();
|
| + }
|
| + return _json;
|
| + }
|
| +}
|
| +
|
| /** IP Management configuration. */
|
| class IpConfiguration {
|
| /**
|
| @@ -4619,6 +4690,39 @@ class TiersListResponse {
|
| }
|
| }
|
|
|
| +/** Database Instance truncate log context. */
|
| +class TruncateLogContext {
|
| + /** This is always sql#truncateLogContext. */
|
| + core.String kind;
|
| + /**
|
| + * The type of log to truncate. Valid values are MYSQL_GENERAL_TABLE and
|
| + * MYSQL_SLOW_TABLE.
|
| + */
|
| + core.String logType;
|
| +
|
| + TruncateLogContext();
|
| +
|
| + TruncateLogContext.fromJson(core.Map _json) {
|
| + if (_json.containsKey("kind")) {
|
| + kind = _json["kind"];
|
| + }
|
| + if (_json.containsKey("logType")) {
|
| + logType = _json["logType"];
|
| + }
|
| + }
|
| +
|
| + core.Map toJson() {
|
| + var _json = new core.Map();
|
| + if (kind != null) {
|
| + _json["kind"] = kind;
|
| + }
|
| + if (logType != null) {
|
| + _json["logType"] = logType;
|
| + }
|
| + return _json;
|
| + }
|
| +}
|
| +
|
| /** A Cloud SQL user resource. */
|
| class User {
|
| /** HTTP 1.1 Entity tag for the resource. */
|
|
|