generated/google/apis/sqladmin_v1beta4/service.rb in google-api-client-0.9.20 vs generated/google/apis/sqladmin_v1beta4/service.rb in google-api-client-0.9.21
- old
+ new
@@ -1110,9 +1110,50 @@
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
+ # Truncate MySQL general and slow query log tables
+ # @param [String] project
+ # Project ID of the Cloud SQL project.
+ # @param [String] instance
+ # Cloud SQL instance ID. This does not include the project ID.
+ # @param [Google::Apis::SqladminV1beta4::InstancesTruncateLogRequest] instances_truncate_log_request_object
+ # @param [String] fields
+ # Selector specifying which fields to include in a partial response.
+ # @param [String] quota_user
+ # Available to use for quota purposes for server-side applications. Can be any
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
+ # Overrides userIp if both are provided.
+ # @param [String] user_ip
+ # IP address of the site where the request originates. Use this if you want to
+ # enforce per-user limits.
+ # @param [Google::Apis::RequestOptions] options
+ # Request-specific options
+ #
+ # @yield [result, err] Result & error if block supplied
+ # @yieldparam result [Google::Apis::SqladminV1beta4::Operation] parsed result object
+ # @yieldparam err [StandardError] error object if request failed
+ #
+ # @return [Google::Apis::SqladminV1beta4::Operation]
+ #
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
+ def truncate_instance_log(project, instance, instances_truncate_log_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
+ command = make_simple_command(:post, 'projects/{project}/instances/{instance}/truncateLog', options)
+ command.request_representation = Google::Apis::SqladminV1beta4::InstancesTruncateLogRequest::Representation
+ command.request_object = instances_truncate_log_request_object
+ command.response_representation = Google::Apis::SqladminV1beta4::Operation::Representation
+ command.response_class = Google::Apis::SqladminV1beta4::Operation
+ command.params['project'] = project unless project.nil?
+ command.params['instance'] = instance unless instance.nil?
+ command.query['fields'] = fields unless fields.nil?
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
+ command.query['userIp'] = user_ip unless user_ip.nil?
+ execute_or_queue_command(command, &block)
+ end
+
# 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.
# @param [String] project
# Project ID of the project that contains the instance.