google-apis-sqladmin_v1beta4-0.96.0/0000755000004100000410000000000015137265343017211 5ustar www-datawww-datagoogle-apis-sqladmin_v1beta4-0.96.0/OVERVIEW.md0000644000004100000410000001367415137265343021014 0ustar www-datawww-data# Simple REST client for version V1beta4 of the Cloud SQL Admin API This is a simple client library for version V1beta4 of the Cloud SQL Admin API. It provides: * A client object that connects to the HTTP/JSON REST endpoint for the service. * Ruby objects for data structures related to the service. * Integration with the googleauth gem for authentication using OAuth, API keys, and service accounts. * Control of retry, pagination, and timeouts. Note that although this client library is supported and will continue to be updated to track changes to the service, it is otherwise considered complete and not under active development. Many Google services, especially Google Cloud Platform services, may provide a more modern client that is under more active development and improvement. See the section below titled *Which client should I use?* for more information. ## Getting started ### Before you begin There are a few setup steps you need to complete before you can use this library: 1. If you don't already have a Google account, [sign up](https://www.google.com/accounts). 2. If you have never created a Google APIs Console project, read about [Managing Projects](https://cloud.google.com/resource-manager/docs/creating-managing-projects) and create a project in the [Google API Console](https://console.cloud.google.com/). 3. Most APIs need to be enabled for your project. [Enable it](https://console.cloud.google.com/apis/library/sqladmin.googleapis.com) in the console. ### Installation Add this line to your application's Gemfile: ```ruby gem 'google-apis-sqladmin_v1beta4', '~> 0.1' ``` And then execute: ``` $ bundle ``` Or install it yourself as: ``` $ gem install google-apis-sqladmin_v1beta4 ``` ### Creating a client object Once the gem is installed, you can load the client code and instantiate a client. ```ruby # Load the client require "google/apis/sqladmin_v1beta4" # Create a client object client = Google::Apis::SqladminV1beta4::SQLAdminService.new # Authenticate calls client.authorization = # ... use the googleauth gem to create credentials ``` See the class reference docs for information on the methods you can call from a client. ## Documentation More detailed descriptions of the Google simple REST clients are available in two documents. * The [Usage Guide](https://github.com/googleapis/google-api-ruby-client/blob/main/docs/usage-guide.md) discusses how to make API calls, how to use the provided data structures, and how to work the various features of the client library, including media upload and download, error handling, retries, pagination, and logging. * The [Auth Guide](https://github.com/googleapis/google-api-ruby-client/blob/main/docs/auth-guide.md) discusses authentication in the client libraries, including API keys, OAuth 2.0, service accounts, and environment variables. (Note: the above documents are written for the simple REST clients in general, and their examples may not reflect the Sqladmin service in particular.) For reference information on specific calls in the Cloud SQL Admin API, see the {Google::Apis::SqladminV1beta4::SQLAdminService class reference docs}. ## Which client should I use? Google provides two types of Ruby API client libraries: **simple REST clients** and **modern clients**. This library, `google-apis-sqladmin_v1beta4`, is a simple REST client. You can identify these clients by their gem names, which are always in the form `google-apis-_`. The simple REST clients connect to HTTP/JSON REST endpoints and are automatically generated from service discovery documents. They support most API functionality, but their class interfaces are sometimes awkward. Modern clients are produced by a modern code generator, sometimes combined with hand-crafted functionality. Most modern clients connect to high-performance gRPC endpoints, although a few are backed by REST services. Modern clients are available for many Google services, especially Google Cloud Platform services, but do not yet support all the services covered by the simple clients. Gem names for modern clients are often of the form `google-cloud-`. (For example, [google-cloud-pubsub](https://rubygems.org/gems/google-cloud-pubsub).) Note that most modern clients also have corresponding "versioned" gems with names like `google-cloud--`. (For example, [google-cloud-pubsub-v1](https://rubygems.org/gems/google-cloud-pubsub-v1).) The "versioned" gems can be used directly, but often provide lower-level interfaces. In most cases, the main gem is recommended. **For most users, we recommend the modern client, if one is available.** Compared with simple clients, modern clients are generally much easier to use and more Ruby-like, support more advanced features such as streaming and long-running operations, and often provide much better performance. You may consider using a simple client instead, if a modern client is not yet available for the service you want to use, or if you are not able to use gRPC on your infrastructure. The [product documentation](https://cloud.google.com/sql/docs) may provide guidance regarding the preferred client library to use. ## Supported Ruby versions This library is supported on Ruby 3.1+. Google provides official support for Ruby versions that are actively supported by Ruby Core -- that is, Ruby versions that are either in normal maintenance or in security maintenance, and not end of life. Older versions of Ruby _may_ still work, but are unsupported and not recommended. See https://www.ruby-lang.org/en/downloads/branches/ for details about the Ruby support schedule. ## License This library is licensed under Apache 2.0. Full license text is available in the {file:LICENSE.md LICENSE}. ## Support Please [report bugs at the project on Github](https://github.com/google/google-api-ruby-client/issues). Don't hesitate to [ask questions](http://stackoverflow.com/questions/tagged/google-api-ruby-client) about the client or APIs on [StackOverflow](http://stackoverflow.com). google-apis-sqladmin_v1beta4-0.96.0/lib/0000755000004100000410000000000015137265343017757 5ustar www-datawww-datagoogle-apis-sqladmin_v1beta4-0.96.0/lib/google/0000755000004100000410000000000015137265343021233 5ustar www-datawww-datagoogle-apis-sqladmin_v1beta4-0.96.0/lib/google/apis/0000755000004100000410000000000015137265343022167 5ustar www-datawww-datagoogle-apis-sqladmin_v1beta4-0.96.0/lib/google/apis/sqladmin_v1beta4/0000755000004100000410000000000015137265343025325 5ustar www-datawww-datagoogle-apis-sqladmin_v1beta4-0.96.0/lib/google/apis/sqladmin_v1beta4/gem_version.rb0000644000004100000410000000165415137265343030175 0ustar www-datawww-data# Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. module Google module Apis module SqladminV1beta4 # Version of the google-apis-sqladmin_v1beta4 gem GEM_VERSION = "0.96.0" # Version of the code generator used to generate this client GENERATOR_VERSION = "0.18.0" # Revision of the discovery document this client was generated from REVISION = "20260106" end end end google-apis-sqladmin_v1beta4-0.96.0/lib/google/apis/sqladmin_v1beta4/service.rb0000644000004100000410000054137215137265343027326 0ustar www-datawww-data# Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. require 'google/apis/core/base_service' require 'google/apis/core/json_representation' require 'google/apis/core/hashable' require 'google/apis/errors' module Google module Apis module SqladminV1beta4 # Cloud SQL Admin API # # API for Cloud SQL database instance management # # @example # require 'google/apis/sqladmin_v1beta4' # # Sqladmin = Google::Apis::SqladminV1beta4 # Alias the module # service = Sqladmin::SQLAdminService.new # # @see https://cloud.google.com/sql/docs class SQLAdminService < Google::Apis::Core::BaseService DEFAULT_ENDPOINT_TEMPLATE = "https://sqladmin.$UNIVERSE_DOMAIN$/" # @return [String] # API key. Your API key identifies your project and provides you with API access, # quota, and reports. Required unless you provide an OAuth 2.0 token. attr_accessor :key # @return [String] # 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. attr_accessor :quota_user def initialize super(DEFAULT_ENDPOINT_TEMPLATE, '', client_name: 'google-apis-sqladmin_v1beta4', client_version: Google::Apis::SqladminV1beta4::GEM_VERSION) @batch_path = 'batch' end # Deletes the backup taken by a backup run. # @param [String] project # Project ID of the project that contains the instance. # @param [String] instance # Cloud SQL instance ID. This does not include the project ID. # @param [Fixnum] id # The ID of the backup run to delete. To find a backup run ID, use the [list]( # https://cloud.google.com/sql/docs/mysql/admin-api/rest/v1beta4/backupRuns/list) # method. # @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. # @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 delete_backup_run(project, instance, id, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'sql/v1beta4/projects/{project}/instances/{instance}/backupRuns/{id}', options) 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.params['id'] = id unless id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end # Retrieves a resource containing information about a backup run. # @param [String] project # Project ID of the project that contains the instance. # @param [String] instance # Cloud SQL instance ID. This does not include the project ID. # @param [Fixnum] id # The ID of this backup run. # @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. # @param [Google::Apis::RequestOptions] options # Request-specific options # # @yield [result, err] Result & error if block supplied # @yieldparam result [Google::Apis::SqladminV1beta4::BackupRun] parsed result object # @yieldparam err [StandardError] error object if request failed # # @return [Google::Apis::SqladminV1beta4::BackupRun] # # @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 get_backup_run(project, instance, id, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'sql/v1beta4/projects/{project}/instances/{instance}/backupRuns/{id}', options) command.response_representation = Google::Apis::SqladminV1beta4::BackupRun::Representation command.response_class = Google::Apis::SqladminV1beta4::BackupRun command.params['project'] = project unless project.nil? command.params['instance'] = instance unless instance.nil? command.params['id'] = id unless id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end # Creates a new backup run on demand. # @param [String] project # Project ID of the project that contains the instance. # @param [String] instance # Cloud SQL instance ID. This does not include the project ID. # @param [Google::Apis::SqladminV1beta4::BackupRun] backup_run_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. # @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 insert_backup_run(project, instance, backup_run_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'sql/v1beta4/projects/{project}/instances/{instance}/backupRuns', options) command.request_representation = Google::Apis::SqladminV1beta4::BackupRun::Representation command.request_object = backup_run_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? execute_or_queue_command(command, &block) end # Lists all backup runs associated with the project or a given instance and # configuration in the reverse chronological order of the backup initiation time. # @param [String] project # Project ID of the project that contains the instance. # @param [String] instance # Cloud SQL instance ID, or "-" for all instances. This does not include the # project ID. # @param [Fixnum] max_results # Maximum number of backup runs per response. # @param [String] page_token # A previously-returned page token representing part of the larger set of # results to view. # @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. # @param [Google::Apis::RequestOptions] options # Request-specific options # # @yield [result, err] Result & error if block supplied # @yieldparam result [Google::Apis::SqladminV1beta4::ListBackupRunsResponse] parsed result object # @yieldparam err [StandardError] error object if request failed # # @return [Google::Apis::SqladminV1beta4::ListBackupRunsResponse] # # @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 list_backup_runs(project, instance, max_results: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'sql/v1beta4/projects/{project}/instances/{instance}/backupRuns', options) command.response_representation = Google::Apis::SqladminV1beta4::ListBackupRunsResponse::Representation command.response_class = Google::Apis::SqladminV1beta4::ListBackupRunsResponse command.params['project'] = project unless project.nil? command.params['instance'] = instance unless instance.nil? command.query['maxResults'] = max_results unless max_results.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end # Creates a backup for a Cloud SQL instance. This API can be used only to create # on-demand backups. # @param [String] parent # Required. The parent resource where this backup is created. Format: projects/` # project` # @param [Google::Apis::SqladminV1beta4::Backup] backup_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. # @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 create_backup_backup(parent, backup_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'sql/v1beta4/{+parent}/backups', options) command.request_representation = Google::Apis::SqladminV1beta4::Backup::Representation command.request_object = backup_object command.response_representation = Google::Apis::SqladminV1beta4::Operation::Representation command.response_class = Google::Apis::SqladminV1beta4::Operation command.params['parent'] = parent unless parent.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end # Deletes the backup. # @param [String] name # Required. The name of the backup to delete. Format: projects/`project`/backups/ # `backup` # @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. # @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 delete_backup_backup(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'sql/v1beta4/{+name}', options) command.response_representation = Google::Apis::SqladminV1beta4::Operation::Representation command.response_class = Google::Apis::SqladminV1beta4::Operation command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end # Retrieves a resource containing information about a backup. # @param [String] name # Required. The name of the backup to retrieve. Format: projects/`project`/ # backups/`backup` # @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. # @param [Google::Apis::RequestOptions] options # Request-specific options # # @yield [result, err] Result & error if block supplied # @yieldparam result [Google::Apis::SqladminV1beta4::Backup] parsed result object # @yieldparam err [StandardError] error object if request failed # # @return [Google::Apis::SqladminV1beta4::Backup] # # @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 get_backup_backup(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'sql/v1beta4/{+name}', options) command.response_representation = Google::Apis::SqladminV1beta4::Backup::Representation command.response_class = Google::Apis::SqladminV1beta4::Backup command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end # Lists all backups associated with the project. # @param [String] parent # Required. The parent that owns this collection of backups. Format: projects/` # project` # @param [String] filter # Multiple filter queries are separated by spaces. For example, 'instance:abc # AND type:FINAL, 'location:us', 'backupInterval.startTime>=1950-01-01T01:01:25. # 771Z'. You can filter by type, instance, backupInterval.startTime (creation # time), or location. # @param [Fixnum] page_size # The maximum number of backups to return per response. The service might return # fewer backups than this value. If a value for this parameter isn't specified, # then, at most, 500 backups are returned. The maximum value is 2,000. Any # values that you set, which are greater than 2,000, are changed to 2,000. # @param [String] page_token # A page token, received from a previous `ListBackups` call. Provide this to # retrieve the subsequent page. When paginating, all other parameters provided # to `ListBackups` must match the call that provided the page token. # @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. # @param [Google::Apis::RequestOptions] options # Request-specific options # # @yield [result, err] Result & error if block supplied # @yieldparam result [Google::Apis::SqladminV1beta4::ListBackupsResponse] parsed result object # @yieldparam err [StandardError] error object if request failed # # @return [Google::Apis::SqladminV1beta4::ListBackupsResponse] # # @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 list_backup_backups(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'sql/v1beta4/{+parent}/backups', options) command.response_representation = Google::Apis::SqladminV1beta4::ListBackupsResponse::Representation command.response_class = Google::Apis::SqladminV1beta4::ListBackupsResponse command.params['parent'] = parent unless parent.nil? command.query['filter'] = filter unless filter.nil? command.query['pageSize'] = page_size unless page_size.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end # Updates the retention period and the description of the backup. You can use # this API to update final backups only. # @param [String] name # Output only. The resource name of the backup. Format: projects/`project`/ # backups/`backup`. # @param [Google::Apis::SqladminV1beta4::Backup] backup_object # @param [String] update_mask # The list of fields that you can update. You can update only the description # and retention period of the final backup. # @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. # @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 update_backup_backup(name, backup_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:patch, 'sql/v1beta4/{+name}', options) command.request_representation = Google::Apis::SqladminV1beta4::Backup::Representation command.request_object = backup_object command.response_representation = Google::Apis::SqladminV1beta4::Operation::Representation command.response_class = Google::Apis::SqladminV1beta4::Operation command.params['name'] = name unless name.nil? command.query['updateMask'] = update_mask unless update_mask.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end # Generates a short-lived X509 certificate containing the provided public key # and signed by a private key specific to the target instance. Users may use the # certificate to authenticate as themselves when connecting to the database. # @param [String] project # Project ID of the project that contains the instance. # @param [String] instance # Cloud SQL instance ID. This does not include the project ID. # @param [Google::Apis::SqladminV1beta4::GenerateEphemeralCertRequest] generate_ephemeral_cert_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. # @param [Google::Apis::RequestOptions] options # Request-specific options # # @yield [result, err] Result & error if block supplied # @yieldparam result [Google::Apis::SqladminV1beta4::GenerateEphemeralCertResponse] parsed result object # @yieldparam err [StandardError] error object if request failed # # @return [Google::Apis::SqladminV1beta4::GenerateEphemeralCertResponse] # # @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 generate_connect_ephemeral_cert(project, instance, generate_ephemeral_cert_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'sql/v1beta4/projects/{project}/instances/{instance}:generateEphemeralCert', options) command.request_representation = Google::Apis::SqladminV1beta4::GenerateEphemeralCertRequest::Representation command.request_object = generate_ephemeral_cert_request_object command.response_representation = Google::Apis::SqladminV1beta4::GenerateEphemeralCertResponse::Representation command.response_class = Google::Apis::SqladminV1beta4::GenerateEphemeralCertResponse 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? execute_or_queue_command(command, &block) end # Retrieves connect settings about a Cloud SQL instance. # @param [String] project # Project ID of the project that contains the instance. # @param [String] instance # Cloud SQL instance ID. This does not include the project ID. # @param [String] read_time # Optional. Optional snapshot read timestamp to trade freshness for performance. # @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. # @param [Google::Apis::RequestOptions] options # Request-specific options # # @yield [result, err] Result & error if block supplied # @yieldparam result [Google::Apis::SqladminV1beta4::ConnectSettings] parsed result object # @yieldparam err [StandardError] error object if request failed # # @return [Google::Apis::SqladminV1beta4::ConnectSettings] # # @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 get_connect(project, instance, read_time: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'sql/v1beta4/projects/{project}/instances/{instance}/connectSettings', options) command.response_representation = Google::Apis::SqladminV1beta4::ConnectSettings::Representation command.response_class = Google::Apis::SqladminV1beta4::ConnectSettings command.params['project'] = project unless project.nil? command.params['instance'] = instance unless instance.nil? command.query['readTime'] = read_time unless read_time.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end # Deletes a database from a Cloud SQL instance. # @param [String] project # Project ID of the project that contains the instance. # @param [String] instance # Database instance ID. This does not include the project ID. # @param [String] database # Name of the database to be deleted in the instance. # @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. # @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 delete_database(project, instance, database, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'sql/v1beta4/projects/{project}/instances/{instance}/databases/{database}', options) 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.params['database'] = database unless database.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end # Retrieves a resource containing information about a database inside a Cloud # SQL instance. # @param [String] project # Project ID of the project that contains the instance. # @param [String] instance # Database instance ID. This does not include the project ID. # @param [String] database # Name of the database in the instance. # @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. # @param [Google::Apis::RequestOptions] options # Request-specific options # # @yield [result, err] Result & error if block supplied # @yieldparam result [Google::Apis::SqladminV1beta4::Database] parsed result object # @yieldparam err [StandardError] error object if request failed # # @return [Google::Apis::SqladminV1beta4::Database] # # @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 get_database(project, instance, database, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'sql/v1beta4/projects/{project}/instances/{instance}/databases/{database}', options) command.response_representation = Google::Apis::SqladminV1beta4::Database::Representation command.response_class = Google::Apis::SqladminV1beta4::Database command.params['project'] = project unless project.nil? command.params['instance'] = instance unless instance.nil? command.params['database'] = database unless database.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end # Inserts a resource containing information about a database inside a Cloud SQL # instance. **Note:** You can't modify the default character set and collation. # @param [String] project # Project ID of the project that contains the instance. # @param [String] instance # Database instance ID. This does not include the project ID. # @param [Google::Apis::SqladminV1beta4::Database] database_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. # @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 insert_database(project, instance, database_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'sql/v1beta4/projects/{project}/instances/{instance}/databases', options) command.request_representation = Google::Apis::SqladminV1beta4::Database::Representation command.request_object = database_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? execute_or_queue_command(command, &block) end # Lists databases in the specified Cloud SQL instance. # @param [String] project # Project ID of the project that contains the instance. # @param [String] instance # Cloud SQL instance ID. This does not include the project ID. # @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. # @param [Google::Apis::RequestOptions] options # Request-specific options # # @yield [result, err] Result & error if block supplied # @yieldparam result [Google::Apis::SqladminV1beta4::ListDatabasesResponse] parsed result object # @yieldparam err [StandardError] error object if request failed # # @return [Google::Apis::SqladminV1beta4::ListDatabasesResponse] # # @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 list_databases(project, instance, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'sql/v1beta4/projects/{project}/instances/{instance}/databases', options) command.response_representation = Google::Apis::SqladminV1beta4::ListDatabasesResponse::Representation command.response_class = Google::Apis::SqladminV1beta4::ListDatabasesResponse 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? execute_or_queue_command(command, &block) end # Partially updates a resource containing information about a database inside a # Cloud SQL instance. This method supports patch semantics. # @param [String] project # Project ID of the project that contains the instance. # @param [String] instance # Database instance ID. This does not include the project ID. # @param [String] database # Name of the database to be updated in the instance. # @param [Google::Apis::SqladminV1beta4::Database] database_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. # @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 patch_database(project, instance, database, database_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:patch, 'sql/v1beta4/projects/{project}/instances/{instance}/databases/{database}', options) command.request_representation = Google::Apis::SqladminV1beta4::Database::Representation command.request_object = database_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.params['database'] = database unless database.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end # Updates a resource containing information about a database inside a Cloud SQL # instance. # @param [String] project # Project ID of the project that contains the instance. # @param [String] instance # Database instance ID. This does not include the project ID. # @param [String] database # Name of the database to be updated in the instance. # @param [Google::Apis::SqladminV1beta4::Database] database_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. # @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 update_database(project, instance, database, database_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:put, 'sql/v1beta4/projects/{project}/instances/{instance}/databases/{database}', options) command.request_representation = Google::Apis::SqladminV1beta4::Database::Representation command.request_object = database_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.params['database'] = database unless database.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end # Lists all available database flags for Cloud SQL instances. # @param [String] database_version # Database type and version you want to retrieve flags for. By default, this # method returns flags for all database types and versions. # @param [String] flag_scope # Optional. Specify the scope of flags to be returned by SqlFlagsListService. # Return list of database flags if unspecified. # @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. # @param [Google::Apis::RequestOptions] options # Request-specific options # # @yield [result, err] Result & error if block supplied # @yieldparam result [Google::Apis::SqladminV1beta4::ListFlagsResponse] parsed result object # @yieldparam err [StandardError] error object if request failed # # @return [Google::Apis::SqladminV1beta4::ListFlagsResponse] # # @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 list_flags(database_version: nil, flag_scope: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'sql/v1beta4/flags', options) command.response_representation = Google::Apis::SqladminV1beta4::ListFlagsResponse::Representation command.response_class = Google::Apis::SqladminV1beta4::ListFlagsResponse command.query['databaseVersion'] = database_version unless database_version.nil? command.query['flagScope'] = flag_scope unless flag_scope.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end # Lists all versions of EntraID certificates for the specified instance. There # can be up to three sets of certificates listed: the certificate that is # currently in use, a future that has been added but not yet used to sign a # certificate, and a certificate that has been rotated out. # @param [String] project # Required. Project ID of the project that contains the instance. # @param [String] instance # Required. Cloud SQL instance ID. This does not include the project ID. # @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. # @param [Google::Apis::RequestOptions] options # Request-specific options # # @yield [result, err] Result & error if block supplied # @yieldparam result [Google::Apis::SqladminV1beta4::InstancesListEntraIdCertificatesResponse] parsed result object # @yieldparam err [StandardError] error object if request failed # # @return [Google::Apis::SqladminV1beta4::InstancesListEntraIdCertificatesResponse] # # @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 list_instance_entra_id_certificates(project, instance, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'sql/v1beta4/projects/{project}/instances/{instance}/listEntraIdCertificates', options) command.response_representation = Google::Apis::SqladminV1beta4::InstancesListEntraIdCertificatesResponse::Representation command.response_class = Google::Apis::SqladminV1beta4::InstancesListEntraIdCertificatesResponse 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? execute_or_queue_command(command, &block) end # Lists all versions of server certificates and certificate authorities (CAs) # for the specified instance. There can be up to three sets of certs listed: the # certificate that is currently in use, a future that has been added but not yet # used to sign a certificate, and a certificate that has been rotated out. For # instances not using Certificate Authority Service (CAS) server CA, use # ListServerCas instead. # @param [String] project # Required. Project ID of the project that contains the instance. # @param [String] instance # Required. Cloud SQL instance ID. This does not include the project ID. # @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. # @param [Google::Apis::RequestOptions] options # Request-specific options # # @yield [result, err] Result & error if block supplied # @yieldparam result [Google::Apis::SqladminV1beta4::InstancesListServerCertificatesResponse] parsed result object # @yieldparam err [StandardError] error object if request failed # # @return [Google::Apis::SqladminV1beta4::InstancesListServerCertificatesResponse] # # @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 list_instance_server_certificates(project, instance, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'sql/v1beta4/projects/{project}/instances/{instance}/listServerCertificates', options) command.response_representation = Google::Apis::SqladminV1beta4::InstancesListServerCertificatesResponse::Representation command.response_class = Google::Apis::SqladminV1beta4::InstancesListServerCertificatesResponse 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? execute_or_queue_command(command, &block) end # Rotates the Entra Id certificate version to one previously added with the # addEntraIdCertificate method. # @param [String] project # Required. Project ID of the project that contains the instance. # @param [String] instance # Required. Cloud SQL instance ID. This does not include the project ID. # @param [Google::Apis::SqladminV1beta4::InstancesRotateEntraIdCertificateRequest] instances_rotate_entra_id_certificate_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. # @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 rotate_instance_entra_id_certificate(project, instance, instances_rotate_entra_id_certificate_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'sql/v1beta4/projects/{project}/instances/{instance}/rotateEntraIdCertificate', options) command.request_representation = Google::Apis::SqladminV1beta4::InstancesRotateEntraIdCertificateRequest::Representation command.request_object = instances_rotate_entra_id_certificate_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? execute_or_queue_command(command, &block) end # Rotates the server certificate version to one previously added with the # addServerCertificate method. For instances not using Certificate Authority # Service (CAS) server CA, use RotateServerCa instead. # @param [String] project # Required. Project ID of the project that contains the instance. # @param [String] instance # Required. Cloud SQL instance ID. This does not include the project ID. # @param [Google::Apis::SqladminV1beta4::InstancesRotateServerCertificateRequest] instances_rotate_server_certificate_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. # @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 rotate_instance_server_certificate(project, instance, instances_rotate_server_certificate_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'sql/v1beta4/projects/{project}/instances/{instance}/rotateServerCertificate', options) command.request_representation = Google::Apis::SqladminV1beta4::InstancesRotateServerCertificateRequest::Representation command.request_object = instances_rotate_server_certificate_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? execute_or_queue_command(command, &block) end # Acquire a lease for the setup of SQL Server Reporting Services (SSRS). # @param [String] project # Required. ID of the project that contains the instance (Example: project-id). # @param [String] instance # Required. Cloud SQL instance ID. This doesn't include the project ID. It's # composed of lowercase letters, numbers, and hyphens, and it must start with a # letter. The total length must be 98 characters or less (Example: instance-id). # @param [Google::Apis::SqladminV1beta4::InstancesAcquireSsrsLeaseRequest] instances_acquire_ssrs_lease_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. # @param [Google::Apis::RequestOptions] options # Request-specific options # # @yield [result, err] Result & error if block supplied # @yieldparam result [Google::Apis::SqladminV1beta4::SqlInstancesAcquireSsrsLeaseResponse] parsed result object # @yieldparam err [StandardError] error object if request failed # # @return [Google::Apis::SqladminV1beta4::SqlInstancesAcquireSsrsLeaseResponse] # # @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 acquire_instance_ssrs_lease(project, instance, instances_acquire_ssrs_lease_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'sql/v1beta4/projects/{project}/instances/{instance}/acquireSsrsLease', options) command.request_representation = Google::Apis::SqladminV1beta4::InstancesAcquireSsrsLeaseRequest::Representation command.request_object = instances_acquire_ssrs_lease_request_object command.response_representation = Google::Apis::SqladminV1beta4::SqlInstancesAcquireSsrsLeaseResponse::Representation command.response_class = Google::Apis::SqladminV1beta4::SqlInstancesAcquireSsrsLeaseResponse 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? execute_or_queue_command(command, &block) end # Adds a new Entra ID certificate for the specified instance. If an Entra ID # certificate was previously added but never used in a certificate rotation, # this operation replaces that version. # @param [String] project # Required. Project ID of the project that contains the instance. # @param [String] instance # Required. Cloud SQL instance ID. This does not include the project ID. # @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. # @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 add_instance_entra_id_certificate(project, instance, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'sql/v1beta4/projects/{project}/instances/{instance}/addEntraIdCertificate', options) 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? execute_or_queue_command(command, &block) end # Add a new trusted Certificate Authority (CA) version for the specified # instance. Required to prepare for a certificate rotation. If a CA version was # previously added but never used in a certificate rotation, this operation # replaces that version. There cannot be more than one CA version waiting to be # rotated in. For instances that have enabled Certificate Authority Service (CAS) # based server CA, use AddServerCertificate to add a new server certificate. # @param [String] project # Project ID of the project that contains the instance. # @param [String] instance # Cloud SQL instance ID. This does not include the project ID. # @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. # @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 add_instance_server_ca(project, instance, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'sql/v1beta4/projects/{project}/instances/{instance}/addServerCa', options) 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? execute_or_queue_command(command, &block) end # Add a new trusted server certificate version for the specified instance using # Certificate Authority Service (CAS) server CA. Required to prepare for a # certificate rotation. If a server certificate version was previously added but # never used in a certificate rotation, this operation replaces that version. # There cannot be more than one certificate version waiting to be rotated in. # For instances not using CAS server CA, use AddServerCa instead. # @param [String] project # Required. Project ID of the project that contains the instance. # @param [String] instance # Required. Cloud SQL instance ID. This does not include the project ID. # @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. # @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 add_instance_server_certificate(project, instance, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'sql/v1beta4/projects/{project}/instances/{instance}/addServerCertificate', options) 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? execute_or_queue_command(command, &block) end # Creates a Cloud SQL instance as a clone of the source instance. Using this # operation might cause your instance to restart. # @param [String] project # Project ID of the source as well as the clone Cloud SQL instance. # @param [String] instance # The ID of the Cloud SQL instance to be cloned (source). This does not include # the project ID. # @param [Google::Apis::SqladminV1beta4::CloneInstancesRequest] clone_instances_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. # @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 clone_instance(project, instance, clone_instances_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'sql/v1beta4/projects/{project}/instances/{instance}/clone', options) command.request_representation = Google::Apis::SqladminV1beta4::CloneInstancesRequest::Representation command.request_object = clone_instances_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? execute_or_queue_command(command, &block) end # Deletes a Cloud SQL instance. # @param [String] project # Project ID of the project that contains the instance to be deleted. # @param [String] instance # Cloud SQL instance ID. This does not include the project ID. # @param [Boolean] enable_final_backup # Flag to opt-in for final backup. By default, it is turned off. # @param [String] final_backup_description # Optional. The description of the final backup. # @param [String] final_backup_expiry_time # Optional. Final Backup expiration time. Timestamp in UTC of when this resource # is considered expired. # @param [Fixnum] final_backup_ttl_days # Optional. Retention period of the final backup. # @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. # @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 delete_instance(project, instance, enable_final_backup: nil, final_backup_description: nil, final_backup_expiry_time: nil, final_backup_ttl_days: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'sql/v1beta4/projects/{project}/instances/{instance}', options) 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['enableFinalBackup'] = enable_final_backup unless enable_final_backup.nil? command.query['finalBackupDescription'] = final_backup_description unless final_backup_description.nil? command.query['finalBackupExpiryTime'] = final_backup_expiry_time unless final_backup_expiry_time.nil? command.query['finalBackupTtlDays'] = final_backup_ttl_days unless final_backup_ttl_days.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end # Demotes an existing standalone instance to be a Cloud SQL read replica for an # external database server. # @param [String] project # Required. The project ID of the project that contains the instance. # @param [String] instance # Required. The name of the Cloud SQL instance. # @param [Google::Apis::SqladminV1beta4::InstancesDemoteRequest] instances_demote_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. # @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 demote_instance(project, instance, instances_demote_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'sql/v1beta4/projects/{project}/instances/{instance}/demote', options) command.request_representation = Google::Apis::SqladminV1beta4::InstancesDemoteRequest::Representation command.request_object = instances_demote_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? execute_or_queue_command(command, &block) end # Demotes the stand-alone instance to be a Cloud SQL read replica for an # external database server. # @param [String] project # ID of the project that contains the instance. # @param [String] instance # Cloud SQL instance name. # @param [Google::Apis::SqladminV1beta4::InstancesDemoteMasterRequest] instances_demote_master_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. # @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 demote_instance_master(project, instance, instances_demote_master_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'sql/v1beta4/projects/{project}/instances/{instance}/demoteMaster', options) command.request_representation = Google::Apis::SqladminV1beta4::InstancesDemoteMasterRequest::Representation command.request_object = instances_demote_master_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? execute_or_queue_command(command, &block) end # Execute SQL statements. # @param [String] project # Required. Project ID of the project that contains the instance. # @param [String] instance # Required. Database instance ID. This does not include the project ID. # @param [Google::Apis::SqladminV1beta4::ExecuteSqlPayload] execute_sql_payload_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. # @param [Google::Apis::RequestOptions] options # Request-specific options # # @yield [result, err] Result & error if block supplied # @yieldparam result [Google::Apis::SqladminV1beta4::SqlInstancesExecuteSqlResponse] parsed result object # @yieldparam err [StandardError] error object if request failed # # @return [Google::Apis::SqladminV1beta4::SqlInstancesExecuteSqlResponse] # # @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 execute_instance_sql(project, instance, execute_sql_payload_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'sql/v1beta4/projects/{project}/instances/{instance}/executeSql', options) command.request_representation = Google::Apis::SqladminV1beta4::ExecuteSqlPayload::Representation command.request_object = execute_sql_payload_object command.response_representation = Google::Apis::SqladminV1beta4::SqlInstancesExecuteSqlResponse::Representation command.response_class = Google::Apis::SqladminV1beta4::SqlInstancesExecuteSqlResponse 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? execute_or_queue_command(command, &block) end # Exports data from a Cloud SQL instance to a Cloud Storage bucket as a SQL dump # or CSV file. # @param [String] project # Project ID of the project that contains the instance to be exported. # @param [String] instance # The Cloud SQL instance ID. This doesn't include the project ID. # @param [Google::Apis::SqladminV1beta4::ExportInstancesRequest] export_instances_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. # @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 export_instance(project, instance, export_instances_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'sql/v1beta4/projects/{project}/instances/{instance}/export', options) command.request_representation = Google::Apis::SqladminV1beta4::ExportInstancesRequest::Representation command.request_object = export_instances_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? execute_or_queue_command(command, &block) end # Initiates a manual failover of a high availability (HA) primary instance to a # standby instance, which becomes the primary instance. Users are then rerouted # to the new primary. For more information, see the [Overview of high # availability](https://cloud.google.com/sql/docs/mysql/high-availability) page # in the Cloud SQL documentation. If using Legacy HA (MySQL only), this causes # the instance to failover to its failover replica instance. # @param [String] project # ID of the project that contains the read replica. # @param [String] instance # Cloud SQL instance ID. This does not include the project ID. # @param [Google::Apis::SqladminV1beta4::InstancesFailoverRequest] instances_failover_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. # @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 failover_instance(project, instance, instances_failover_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'sql/v1beta4/projects/{project}/instances/{instance}/failover', options) command.request_representation = Google::Apis::SqladminV1beta4::InstancesFailoverRequest::Representation command.request_object = instances_failover_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? execute_or_queue_command(command, &block) end # Retrieves a resource containing information about a Cloud SQL instance. # @param [String] project # Project ID of the project that contains the instance. # @param [String] instance # Database instance ID. This does not include the project ID. # @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. # @param [Google::Apis::RequestOptions] options # Request-specific options # # @yield [result, err] Result & error if block supplied # @yieldparam result [Google::Apis::SqladminV1beta4::DatabaseInstance] parsed result object # @yieldparam err [StandardError] error object if request failed # # @return [Google::Apis::SqladminV1beta4::DatabaseInstance] # # @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 get_instance(project, instance, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'sql/v1beta4/projects/{project}/instances/{instance}', options) command.response_representation = Google::Apis::SqladminV1beta4::DatabaseInstance::Representation command.response_class = Google::Apis::SqladminV1beta4::DatabaseInstance 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? execute_or_queue_command(command, &block) end # Imports data into a Cloud SQL instance from a SQL dump or CSV file in Cloud # Storage. # @param [String] project # Project ID of the project that contains the instance. # @param [String] instance # Cloud SQL instance ID. This does not include the project ID. # @param [Google::Apis::SqladminV1beta4::ImportInstancesRequest] import_instances_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. # @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 import_instance(project, instance, import_instances_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'sql/v1beta4/projects/{project}/instances/{instance}/import', options) command.request_representation = Google::Apis::SqladminV1beta4::ImportInstancesRequest::Representation command.request_object = import_instances_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? execute_or_queue_command(command, &block) end # Creates a new Cloud SQL instance. # @param [String] project # Project ID of the project to which the newly created Cloud SQL instances # should belong. # @param [Google::Apis::SqladminV1beta4::DatabaseInstance] database_instance_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. # @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 insert_instance(project, database_instance_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'sql/v1beta4/projects/{project}/instances', options) command.request_representation = Google::Apis::SqladminV1beta4::DatabaseInstance::Representation command.request_object = database_instance_object command.response_representation = Google::Apis::SqladminV1beta4::Operation::Representation command.response_class = Google::Apis::SqladminV1beta4::Operation command.params['project'] = project unless project.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end # Lists instances under a given project. # @param [String] project # Project ID of the project for which to list Cloud SQL instances. # @param [String] filter # A filter expression that filters resources listed in the response. The # expression is in the form of field:value. For example, 'instanceType: # CLOUD_SQL_INSTANCE'. Fields can be nested as needed as per their JSON # representation, such as 'settings.userLabels.auto_start:true'. Multiple filter # queries are space-separated. For example. 'state:RUNNABLE instanceType: # CLOUD_SQL_INSTANCE'. By default, each expression is an AND expression. However, # you can include AND and OR expressions explicitly. # @param [Fixnum] max_results # The maximum number of instances to return. The service may return fewer than # this value. If unspecified, at most 500 instances are returned. The maximum # value is 1000; values above 1000 are coerced to 1000. # @param [String] page_token # A previously-returned page token representing part of the larger set of # results to view. # @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. # @param [Google::Apis::RequestOptions] options # Request-specific options # # @yield [result, err] Result & error if block supplied # @yieldparam result [Google::Apis::SqladminV1beta4::ListInstancesResponse] parsed result object # @yieldparam err [StandardError] error object if request failed # # @return [Google::Apis::SqladminV1beta4::ListInstancesResponse] # # @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 list_instances(project, filter: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'sql/v1beta4/projects/{project}/instances', options) command.response_representation = Google::Apis::SqladminV1beta4::ListInstancesResponse::Representation command.response_class = Google::Apis::SqladminV1beta4::ListInstancesResponse command.params['project'] = project unless project.nil? command.query['filter'] = filter unless filter.nil? command.query['maxResults'] = max_results unless max_results.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end # Lists all of the trusted Certificate Authorities (CAs) for the specified # instance. There can be up to three CAs listed: the CA that was used to sign # the certificate that is currently in use, a CA that has been added but not yet # used to sign a certificate, and a CA used to sign a certificate that has # previously rotated out. # @param [String] project # Project ID of the project that contains the instance. # @param [String] instance # Cloud SQL instance ID. This does not include the project ID. # @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. # @param [Google::Apis::RequestOptions] options # Request-specific options # # @yield [result, err] Result & error if block supplied # @yieldparam result [Google::Apis::SqladminV1beta4::InstancesListServerCasResponse] parsed result object # @yieldparam err [StandardError] error object if request failed # # @return [Google::Apis::SqladminV1beta4::InstancesListServerCasResponse] # # @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 list_instance_server_cas(project, instance, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'sql/v1beta4/projects/{project}/instances/{instance}/listServerCas', options) command.response_representation = Google::Apis::SqladminV1beta4::InstancesListServerCasResponse::Representation command.response_class = Google::Apis::SqladminV1beta4::InstancesListServerCasResponse 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? execute_or_queue_command(command, &block) end # Partially updates settings of a Cloud SQL instance by merging the request with # the current configuration. This method supports patch semantics. # @param [String] project # Project ID of the project that contains the instance. # @param [String] instance # Cloud SQL instance ID. This does not include the project ID. # @param [Google::Apis::SqladminV1beta4::DatabaseInstance] database_instance_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. # @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 patch_instance(project, instance, database_instance_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:patch, 'sql/v1beta4/projects/{project}/instances/{instance}', options) command.request_representation = Google::Apis::SqladminV1beta4::DatabaseInstance::Representation command.request_object = database_instance_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? execute_or_queue_command(command, &block) end # Point in time restore for an instance managed by Google Cloud Backup and # Disaster Recovery. # @param [String] parent # Required. The parent resource where you created this instance. Format: # projects/`project` # @param [Google::Apis::SqladminV1beta4::PointInTimeRestoreContext] point_in_time_restore_context_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. # @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 point_instance_in_time_restore(parent, point_in_time_restore_context_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'sql/v1beta4/{+parent}:pointInTimeRestore', options) command.request_representation = Google::Apis::SqladminV1beta4::PointInTimeRestoreContext::Representation command.request_object = point_in_time_restore_context_object command.response_representation = Google::Apis::SqladminV1beta4::Operation::Representation command.response_class = Google::Apis::SqladminV1beta4::Operation command.params['parent'] = parent unless parent.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end # Execute MVU Pre-checks # @param [String] project # Required. Project ID of the project that contains the instance. # @param [String] instance # Required. Cloud SQL instance ID. This does not include the project ID. # @param [Google::Apis::SqladminV1beta4::InstancesPreCheckMajorVersionUpgradeRequest] instances_pre_check_major_version_upgrade_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. # @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 pre_instance_check_major_version_upgrade(project, instance, instances_pre_check_major_version_upgrade_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'sql/v1beta4/projects/{project}/instances/{instance}/preCheckMajorVersionUpgrade', options) command.request_representation = Google::Apis::SqladminV1beta4::InstancesPreCheckMajorVersionUpgradeRequest::Representation command.request_object = instances_pre_check_major_version_upgrade_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? execute_or_queue_command(command, &block) end # Promotes the read replica instance to be an independent Cloud SQL primary # instance. Using this operation might cause your instance to restart. # @param [String] project # ID of the project that contains the read replica. # @param [String] instance # Cloud SQL read replica instance name. # @param [Boolean] failover # Set to true to invoke a replica failover to the DR replica. As part of replica # failover, the promote operation attempts to add the original primary instance # as a replica of the promoted DR replica when the original primary instance # comes back online. If set to false or not specified, then the original primary # instance becomes an independent Cloud SQL primary instance. # @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. # @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 promote_instance_replica(project, instance, failover: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'sql/v1beta4/projects/{project}/instances/{instance}/promoteReplica', options) 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['failover'] = failover unless failover.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end # Reencrypt CMEK instance with latest key version. # @param [String] project # ID of the project that contains the instance. # @param [String] instance # Cloud SQL instance ID. This does not include the project ID. # @param [Google::Apis::SqladminV1beta4::InstancesReencryptRequest] instances_reencrypt_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. # @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 reencrypt_instance(project, instance, instances_reencrypt_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'sql/v1beta4/projects/{project}/instances/{instance}/reencrypt', options) command.request_representation = Google::Apis::SqladminV1beta4::InstancesReencryptRequest::Representation command.request_object = instances_reencrypt_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? execute_or_queue_command(command, &block) end # Release a lease for the setup of SQL Server Reporting Services (SSRS). # @param [String] project # Required. The ID of the project that contains the instance (Example: project- # id). # @param [String] instance # Required. The Cloud SQL instance ID. This doesn't include the project ID. It's # composed of lowercase letters, numbers, and hyphens, and it must start with a # letter. The total length must be 98 characters or less (Example: instance-id). # @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. # @param [Google::Apis::RequestOptions] options # Request-specific options # # @yield [result, err] Result & error if block supplied # @yieldparam result [Google::Apis::SqladminV1beta4::SqlInstancesReleaseSsrsLeaseResponse] parsed result object # @yieldparam err [StandardError] error object if request failed # # @return [Google::Apis::SqladminV1beta4::SqlInstancesReleaseSsrsLeaseResponse] # # @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 release_instance_ssrs_lease(project, instance, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'sql/v1beta4/projects/{project}/instances/{instance}/releaseSsrsLease', options) command.response_representation = Google::Apis::SqladminV1beta4::SqlInstancesReleaseSsrsLeaseResponse::Representation command.response_class = Google::Apis::SqladminV1beta4::SqlInstancesReleaseSsrsLeaseResponse 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? execute_or_queue_command(command, &block) end # Deletes all client certificates and generates a new server SSL certificate for # the instance. # @param [String] project # Project ID of the project that contains the instance. # @param [String] instance # Cloud SQL instance ID. This does not include the project ID. # @param [String] mode # Optional. Reset SSL mode to use. # @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. # @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 reset_instance_ssl_config(project, instance, mode: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'sql/v1beta4/projects/{project}/instances/{instance}/resetSslConfig', options) 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['mode'] = mode unless mode.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end # Restarts a Cloud SQL instance. # @param [String] project # Project ID of the project that contains the instance to be restarted. # @param [String] instance # Cloud SQL instance ID. This does not include the project ID. # @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. # @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 restart_instance(project, instance, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'sql/v1beta4/projects/{project}/instances/{instance}/restart', options) 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? execute_or_queue_command(command, &block) end # Restores a backup of a Cloud SQL instance. Using this operation might cause # your instance to restart. # @param [String] project # Project ID of the project that contains the instance. # @param [String] instance # Cloud SQL instance ID. This does not include the project ID. # @param [Google::Apis::SqladminV1beta4::RestoreInstancesBackupRequest] restore_instances_backup_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. # @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 restore_instance_backup(project, instance, restore_instances_backup_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'sql/v1beta4/projects/{project}/instances/{instance}/restoreBackup', options) command.request_representation = Google::Apis::SqladminV1beta4::RestoreInstancesBackupRequest::Representation command.request_object = restore_instances_backup_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? execute_or_queue_command(command, &block) end # Rotates the server certificate to one signed by the Certificate Authority (CA) # version previously added with the addServerCA method. For instances that have # enabled Certificate Authority Service (CAS) based server CA, use # RotateServerCertificate to rotate the server certificate. # @param [String] project # Project ID of the project that contains the instance. # @param [String] instance # Cloud SQL instance ID. This does not include the project ID. # @param [Google::Apis::SqladminV1beta4::InstancesRotateServerCaRequest] instances_rotate_server_ca_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. # @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 rotate_instance_server_ca(project, instance, instances_rotate_server_ca_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'sql/v1beta4/projects/{project}/instances/{instance}/rotateServerCa', options) command.request_representation = Google::Apis::SqladminV1beta4::InstancesRotateServerCaRequest::Representation command.request_object = instances_rotate_server_ca_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? execute_or_queue_command(command, &block) end # Starts the replication in the read replica instance. # @param [String] project # ID of the project that contains the read replica. # @param [String] instance # Cloud SQL read replica instance name. # @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. # @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 start_instance_replica(project, instance, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'sql/v1beta4/projects/{project}/instances/{instance}/startReplica', options) 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? execute_or_queue_command(command, &block) end # Stops the replication in the read replica instance. # @param [String] project # ID of the project that contains the read replica. # @param [String] instance # Cloud SQL read replica instance name. # @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. # @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 stop_instance_replica(project, instance, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'sql/v1beta4/projects/{project}/instances/{instance}/stopReplica', options) 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? execute_or_queue_command(command, &block) end # Switches over from the primary instance to the DR replica instance. # @param [String] project # ID of the project that contains the replica. # @param [String] instance # Cloud SQL read replica instance name. # @param [String] db_timeout # Optional. (MySQL and PostgreSQL only) Cloud SQL instance operations timeout, # which is a sum of all database operations. Default value is 10 minutes and can # be modified to a maximum value of 24 hours. # @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. # @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 switchover_instance(project, instance, db_timeout: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'sql/v1beta4/projects/{project}/instances/{instance}/switchover', options) 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['dbTimeout'] = db_timeout unless db_timeout.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end # Truncate MySQL general and slow query log tables MySQL only. # @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. # @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, options: nil, &block) command = make_simple_command(:post, 'sql/v1beta4/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? execute_or_queue_command(command, &block) end # Updates settings of a Cloud SQL instance. Using this operation might cause # your instance to restart. # @param [String] project # Project ID of the project that contains the instance. # @param [String] instance # Cloud SQL instance ID. This does not include the project ID. # @param [Google::Apis::SqladminV1beta4::DatabaseInstance] database_instance_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. # @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 update_instance(project, instance, database_instance_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:put, 'sql/v1beta4/projects/{project}/instances/{instance}', options) command.request_representation = Google::Apis::SqladminV1beta4::DatabaseInstance::Representation command.request_object = database_instance_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? execute_or_queue_command(command, &block) end # Cancels an instance operation that has been performed on an instance. # Ordinarily, this method name should be `CancelSqlOperation`. # @param [String] project # Project ID of the project that contains the instance. # @param [String] operation # Instance operation ID. # @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. # @param [Google::Apis::RequestOptions] options # Request-specific options # # @yield [result, err] Result & error if block supplied # @yieldparam result [Google::Apis::SqladminV1beta4::Empty] parsed result object # @yieldparam err [StandardError] error object if request failed # # @return [Google::Apis::SqladminV1beta4::Empty] # # @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 cancel_operation(project, operation, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'sql/v1beta4/projects/{project}/operations/{operation}/cancel', options) command.response_representation = Google::Apis::SqladminV1beta4::Empty::Representation command.response_class = Google::Apis::SqladminV1beta4::Empty command.params['project'] = project unless project.nil? command.params['operation'] = operation unless operation.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end # Retrieves an instance operation that has been performed on an instance. # @param [String] project # Project ID of the project that contains the instance. # @param [String] operation # Instance operation ID. # @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. # @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 get_operation(project, operation, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'sql/v1beta4/projects/{project}/operations/{operation}', options) command.response_representation = Google::Apis::SqladminV1beta4::Operation::Representation command.response_class = Google::Apis::SqladminV1beta4::Operation command.params['project'] = project unless project.nil? command.params['operation'] = operation unless operation.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end # Lists all instance operations that have been performed on the given Cloud SQL # instance in the reverse chronological order of the start time. # @param [String] project # Project ID of the project that contains the instance. # @param [String] instance # Cloud SQL instance ID. This does not include the project ID. # @param [Fixnum] max_results # Maximum number of operations per response. # @param [String] page_token # A previously-returned page token representing part of the larger set of # results to view. # @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. # @param [Google::Apis::RequestOptions] options # Request-specific options # # @yield [result, err] Result & error if block supplied # @yieldparam result [Google::Apis::SqladminV1beta4::ListOperationsResponse] parsed result object # @yieldparam err [StandardError] error object if request failed # # @return [Google::Apis::SqladminV1beta4::ListOperationsResponse] # # @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 list_operations(project, instance: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'sql/v1beta4/projects/{project}/operations', options) command.response_representation = Google::Apis::SqladminV1beta4::ListOperationsResponse::Representation command.response_class = Google::Apis::SqladminV1beta4::ListOperationsResponse command.params['project'] = project unless project.nil? command.query['instance'] = instance unless instance.nil? command.query['maxResults'] = max_results unless max_results.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end # Get Disk Shrink Config for a given instance. # @param [String] project # Project ID of the project that contains the instance. # @param [String] instance # Cloud SQL instance ID. This does not include the project ID. # @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. # @param [Google::Apis::RequestOptions] options # Request-specific options # # @yield [result, err] Result & error if block supplied # @yieldparam result [Google::Apis::SqladminV1beta4::SqlInstancesGetDiskShrinkConfigResponse] parsed result object # @yieldparam err [StandardError] error object if request failed # # @return [Google::Apis::SqladminV1beta4::SqlInstancesGetDiskShrinkConfigResponse] # # @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 get_project_instance_disk_shrink_config(project, instance, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'sql/v1beta4/projects/{project}/instances/{instance}/getDiskShrinkConfig', options) command.response_representation = Google::Apis::SqladminV1beta4::SqlInstancesGetDiskShrinkConfigResponse::Representation command.response_class = Google::Apis::SqladminV1beta4::SqlInstancesGetDiskShrinkConfigResponse 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? execute_or_queue_command(command, &block) end # Get Latest Recovery Time for a given instance. # @param [String] project # Project ID of the project that contains the instance. # @param [String] instance # Cloud SQL instance ID. This does not include the project ID. # @param [String] source_instance_deletion_time # The timestamp used to identify the time when the source instance is deleted. # If this instance is deleted, then you must set the timestamp. # @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. # @param [Google::Apis::RequestOptions] options # Request-specific options # # @yield [result, err] Result & error if block supplied # @yieldparam result [Google::Apis::SqladminV1beta4::SqlInstancesGetLatestRecoveryTimeResponse] parsed result object # @yieldparam err [StandardError] error object if request failed # # @return [Google::Apis::SqladminV1beta4::SqlInstancesGetLatestRecoveryTimeResponse] # # @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 get_project_instance_latest_recovery_time(project, instance, source_instance_deletion_time: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'sql/v1beta4/projects/{project}/instances/{instance}/getLatestRecoveryTime', options) command.response_representation = Google::Apis::SqladminV1beta4::SqlInstancesGetLatestRecoveryTimeResponse::Representation command.response_class = Google::Apis::SqladminV1beta4::SqlInstancesGetLatestRecoveryTimeResponse command.params['project'] = project unless project.nil? command.params['instance'] = instance unless instance.nil? command.query['sourceInstanceDeletionTime'] = source_instance_deletion_time unless source_instance_deletion_time.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end # Perform Disk Shrink on primary instance. # @param [String] project # Project ID of the project that contains the instance. # @param [String] instance # Cloud SQL instance ID. This does not include the project ID. # @param [Google::Apis::SqladminV1beta4::PerformDiskShrinkContext] perform_disk_shrink_context_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. # @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 perform_project_instance_disk_shrink(project, instance, perform_disk_shrink_context_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'sql/v1beta4/projects/{project}/instances/{instance}/performDiskShrink', options) command.request_representation = Google::Apis::SqladminV1beta4::PerformDiskShrinkContext::Representation command.request_object = perform_disk_shrink_context_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? execute_or_queue_command(command, &block) end # Reschedules the maintenance on the given instance. # @param [String] project # ID of the project that contains the instance. # @param [String] instance # Cloud SQL instance ID. This does not include the project ID. # @param [Google::Apis::SqladminV1beta4::SqlInstancesRescheduleMaintenanceRequestBody] sql_instances_reschedule_maintenance_request_body_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. # @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 reschedule_project_instance_maintenance(project, instance, sql_instances_reschedule_maintenance_request_body_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'sql/v1beta4/projects/{project}/instances/{instance}/rescheduleMaintenance', options) command.request_representation = Google::Apis::SqladminV1beta4::SqlInstancesRescheduleMaintenanceRequestBody::Representation command.request_object = sql_instances_reschedule_maintenance_request_body_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? execute_or_queue_command(command, &block) end # Reset Replica Size to primary instance disk size. # @param [String] project # ID of the project that contains the read replica. # @param [String] instance # Cloud SQL read replica instance name. # @param [Google::Apis::SqladminV1beta4::SqlInstancesResetReplicaSizeRequest] sql_instances_reset_replica_size_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. # @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 reset_project_instance_replica_size(project, instance, sql_instances_reset_replica_size_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'sql/v1beta4/projects/{project}/instances/{instance}/resetReplicaSize', options) command.request_representation = Google::Apis::SqladminV1beta4::SqlInstancesResetReplicaSizeRequest::Representation command.request_object = sql_instances_reset_replica_size_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? execute_or_queue_command(command, &block) end # Start External primary instance migration. # @param [String] project # ID of the project that contains the instance. # @param [String] instance # Cloud SQL instance ID. This does not include the project ID. # @param [Google::Apis::SqladminV1beta4::SqlInstancesStartExternalSyncRequest] sql_instances_start_external_sync_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. # @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 start_project_instance_external_sync(project, instance, sql_instances_start_external_sync_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'sql/v1beta4/projects/{project}/instances/{instance}/startExternalSync', options) command.request_representation = Google::Apis::SqladminV1beta4::SqlInstancesStartExternalSyncRequest::Representation command.request_object = sql_instances_start_external_sync_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? execute_or_queue_command(command, &block) end # Verify External primary instance external sync settings. # @param [String] project # Project ID of the project that contains the instance. # @param [String] instance # Cloud SQL instance ID. This does not include the project ID. # @param [Google::Apis::SqladminV1beta4::SqlInstancesVerifyExternalSyncSettingsRequest] sql_instances_verify_external_sync_settings_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. # @param [Google::Apis::RequestOptions] options # Request-specific options # # @yield [result, err] Result & error if block supplied # @yieldparam result [Google::Apis::SqladminV1beta4::SqlInstancesVerifyExternalSyncSettingsResponse] parsed result object # @yieldparam err [StandardError] error object if request failed # # @return [Google::Apis::SqladminV1beta4::SqlInstancesVerifyExternalSyncSettingsResponse] # # @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 verify_project_instance_external_sync_settings(project, instance, sql_instances_verify_external_sync_settings_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'sql/v1beta4/projects/{project}/instances/{instance}/verifyExternalSyncSettings', options) command.request_representation = Google::Apis::SqladminV1beta4::SqlInstancesVerifyExternalSyncSettingsRequest::Representation command.request_object = sql_instances_verify_external_sync_settings_request_object command.response_representation = Google::Apis::SqladminV1beta4::SqlInstancesVerifyExternalSyncSettingsResponse::Representation command.response_class = Google::Apis::SqladminV1beta4::SqlInstancesVerifyExternalSyncSettingsResponse 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? execute_or_queue_command(command, &block) end # Generates a short-lived X509 certificate containing the provided public key # and signed by a private key specific to the target instance. Users may use the # certificate to authenticate as themselves when connecting to the database. # @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::SslCertsCreateEphemeralRequest] ssl_certs_create_ephemeral_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. # @param [Google::Apis::RequestOptions] options # Request-specific options # # @yield [result, err] Result & error if block supplied # @yieldparam result [Google::Apis::SqladminV1beta4::SslCert] parsed result object # @yieldparam err [StandardError] error object if request failed # # @return [Google::Apis::SqladminV1beta4::SslCert] # # @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 create_ssl_cert_ephemeral(project, instance, ssl_certs_create_ephemeral_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'sql/v1beta4/projects/{project}/instances/{instance}/createEphemeral', options) command.request_representation = Google::Apis::SqladminV1beta4::SslCertsCreateEphemeralRequest::Representation command.request_object = ssl_certs_create_ephemeral_request_object command.response_representation = Google::Apis::SqladminV1beta4::SslCert::Representation command.response_class = Google::Apis::SqladminV1beta4::SslCert 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? execute_or_queue_command(command, &block) end # Deletes the SSL certificate. For First Generation instances, the certificate # remains valid until the instance is restarted. # @param [String] project # Project ID of the project that contains the instance. # @param [String] instance # Cloud SQL instance ID. This does not include the project ID. # @param [String] sha1_fingerprint # Sha1 FingerPrint. # @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. # @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 delete_ssl_cert(project, instance, sha1_fingerprint, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'sql/v1beta4/projects/{project}/instances/{instance}/sslCerts/{sha1Fingerprint}', options) 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.params['sha1Fingerprint'] = sha1_fingerprint unless sha1_fingerprint.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end # Retrieves a particular SSL certificate. Does not include the private key ( # required for usage). The private key must be saved from the response to # initial creation. # @param [String] project # Project ID of the project that contains the instance. # @param [String] instance # Cloud SQL instance ID. This does not include the project ID. # @param [String] sha1_fingerprint # Sha1 FingerPrint. # @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. # @param [Google::Apis::RequestOptions] options # Request-specific options # # @yield [result, err] Result & error if block supplied # @yieldparam result [Google::Apis::SqladminV1beta4::SslCert] parsed result object # @yieldparam err [StandardError] error object if request failed # # @return [Google::Apis::SqladminV1beta4::SslCert] # # @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 get_ssl_cert(project, instance, sha1_fingerprint, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'sql/v1beta4/projects/{project}/instances/{instance}/sslCerts/{sha1Fingerprint}', options) command.response_representation = Google::Apis::SqladminV1beta4::SslCert::Representation command.response_class = Google::Apis::SqladminV1beta4::SslCert command.params['project'] = project unless project.nil? command.params['instance'] = instance unless instance.nil? command.params['sha1Fingerprint'] = sha1_fingerprint unless sha1_fingerprint.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end # Creates an SSL certificate and returns it along with the private key and # server certificate authority. The new certificate will not be usable until the # instance is restarted. # @param [String] project # Project ID of the project that contains the instance. # @param [String] instance # Cloud SQL instance ID. This does not include the project ID. # @param [Google::Apis::SqladminV1beta4::InsertSslCertsRequest] insert_ssl_certs_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. # @param [Google::Apis::RequestOptions] options # Request-specific options # # @yield [result, err] Result & error if block supplied # @yieldparam result [Google::Apis::SqladminV1beta4::InsertSslCertsResponse] parsed result object # @yieldparam err [StandardError] error object if request failed # # @return [Google::Apis::SqladminV1beta4::InsertSslCertsResponse] # # @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 insert_ssl_cert(project, instance, insert_ssl_certs_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'sql/v1beta4/projects/{project}/instances/{instance}/sslCerts', options) command.request_representation = Google::Apis::SqladminV1beta4::InsertSslCertsRequest::Representation command.request_object = insert_ssl_certs_request_object command.response_representation = Google::Apis::SqladminV1beta4::InsertSslCertsResponse::Representation command.response_class = Google::Apis::SqladminV1beta4::InsertSslCertsResponse 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? execute_or_queue_command(command, &block) end # Lists all of the current SSL certificates for the instance. # @param [String] project # Project ID of the project that contains the instance. # @param [String] instance # Cloud SQL instance ID. This does not include the project ID. # @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. # @param [Google::Apis::RequestOptions] options # Request-specific options # # @yield [result, err] Result & error if block supplied # @yieldparam result [Google::Apis::SqladminV1beta4::ListSslCertsResponse] parsed result object # @yieldparam err [StandardError] error object if request failed # # @return [Google::Apis::SqladminV1beta4::ListSslCertsResponse] # # @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 list_ssl_certs(project, instance, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'sql/v1beta4/projects/{project}/instances/{instance}/sslCerts', options) command.response_representation = Google::Apis::SqladminV1beta4::ListSslCertsResponse::Representation command.response_class = Google::Apis::SqladminV1beta4::ListSslCertsResponse 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? execute_or_queue_command(command, &block) end # Lists all available machine types (tiers) for Cloud SQL, for example, `db- # custom-1-3840`. For related information, see [Pricing](/sql/pricing). # @param [String] project # Project ID of the project for which to list tiers. # @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. # @param [Google::Apis::RequestOptions] options # Request-specific options # # @yield [result, err] Result & error if block supplied # @yieldparam result [Google::Apis::SqladminV1beta4::ListTiersResponse] parsed result object # @yieldparam err [StandardError] error object if request failed # # @return [Google::Apis::SqladminV1beta4::ListTiersResponse] # # @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 list_tiers(project, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'sql/v1beta4/projects/{project}/tiers', options) command.response_representation = Google::Apis::SqladminV1beta4::ListTiersResponse::Representation command.response_class = Google::Apis::SqladminV1beta4::ListTiersResponse command.params['project'] = project unless project.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end # Deletes a user from a Cloud SQL instance. # @param [String] project # Project ID of the project that contains the instance. # @param [String] instance # Database instance ID. This does not include the project ID. # @param [String] host # Host of the user in the instance. # @param [String] name # Name of the user in the instance. # @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. # @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 delete_user(project, instance, host: nil, name: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'sql/v1beta4/projects/{project}/instances/{instance}/users', options) 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['host'] = host unless host.nil? command.query['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end # Retrieves a resource containing information about a user. # @param [String] project # Project ID of the project that contains the instance. # @param [String] instance # Database instance ID. This does not include the project ID. # @param [String] name # User of the instance. # @param [String] host # Host of a user of the instance. # @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. # @param [Google::Apis::RequestOptions] options # Request-specific options # # @yield [result, err] Result & error if block supplied # @yieldparam result [Google::Apis::SqladminV1beta4::User] parsed result object # @yieldparam err [StandardError] error object if request failed # # @return [Google::Apis::SqladminV1beta4::User] # # @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 get_user(project, instance, name, host: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'sql/v1beta4/projects/{project}/instances/{instance}/users/{name}', options) command.response_representation = Google::Apis::SqladminV1beta4::User::Representation command.response_class = Google::Apis::SqladminV1beta4::User command.params['project'] = project unless project.nil? command.params['instance'] = instance unless instance.nil? command.params['name'] = name unless name.nil? command.query['host'] = host unless host.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end # Creates a new user in a Cloud SQL instance. # @param [String] project # Project ID of the project that contains the instance. # @param [String] instance # Database instance ID. This does not include the project ID. # @param [Google::Apis::SqladminV1beta4::User] user_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. # @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 insert_user(project, instance, user_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'sql/v1beta4/projects/{project}/instances/{instance}/users', options) command.request_representation = Google::Apis::SqladminV1beta4::User::Representation command.request_object = user_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? execute_or_queue_command(command, &block) end # Lists users in the specified Cloud SQL instance. # @param [String] project # Project ID of the project that contains the instance. # @param [String] instance # Database instance ID. This does not include the project ID. # @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. # @param [Google::Apis::RequestOptions] options # Request-specific options # # @yield [result, err] Result & error if block supplied # @yieldparam result [Google::Apis::SqladminV1beta4::ListUsersResponse] parsed result object # @yieldparam err [StandardError] error object if request failed # # @return [Google::Apis::SqladminV1beta4::ListUsersResponse] # # @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 list_users(project, instance, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'sql/v1beta4/projects/{project}/instances/{instance}/users', options) command.response_representation = Google::Apis::SqladminV1beta4::ListUsersResponse::Representation command.response_class = Google::Apis::SqladminV1beta4::ListUsersResponse 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? execute_or_queue_command(command, &block) end # Updates an existing user in a Cloud SQL instance. # @param [String] project # Project ID of the project that contains the instance. # @param [String] instance # Database instance ID. This does not include the project ID. # @param [Google::Apis::SqladminV1beta4::User] user_object # @param [Array, String] database_roles # Optional. List of database roles to grant to the user. body.database_roles # will be ignored for update request. # @param [String] host # Optional. Host of the user in the instance. # @param [String] name # Name of the user in the instance. # @param [Boolean] revoke_existing_roles # Optional. revoke the existing roles granted to the user. # @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. # @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 update_user(project, instance, user_object = nil, database_roles: nil, host: nil, name: nil, revoke_existing_roles: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:put, 'sql/v1beta4/projects/{project}/instances/{instance}/users', options) command.request_representation = Google::Apis::SqladminV1beta4::User::Representation command.request_object = user_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['databaseRoles'] = database_roles unless database_roles.nil? command.query['host'] = host unless host.nil? command.query['name'] = name unless name.nil? command.query['revokeExistingRoles'] = revoke_existing_roles unless revoke_existing_roles.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end protected def apply_command_defaults(command) command.query['key'] = key unless key.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? end end end end end google-apis-sqladmin_v1beta4-0.96.0/lib/google/apis/sqladmin_v1beta4/classes.rb0000644000004100000410000105075415137265343027323 0ustar www-datawww-data# Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. require 'date' require 'google/apis/core/base_service' require 'google/apis/core/json_representation' require 'google/apis/core/hashable' require 'google/apis/errors' module Google module Apis module SqladminV1beta4 # An entry for an Access Control list. class AclEntry include Google::Apis::Core::Hashable # The time when this access control entry expires in [RFC 3339](https://tools. # ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`. # Corresponds to the JSON property `expirationTime` # @return [String] attr_accessor :expiration_time # This is always `sql#aclEntry`. # Corresponds to the JSON property `kind` # @return [String] attr_accessor :kind # Optional. A label to identify this entry. # Corresponds to the JSON property `name` # @return [String] attr_accessor :name # The allowlisted value for the access control list. # Corresponds to the JSON property `value` # @return [String] attr_accessor :value def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) @expiration_time = args[:expiration_time] if args.key?(:expiration_time) @kind = args[:kind] if args.key?(:kind) @name = args[:name] if args.key?(:name) @value = args[:value] if args.key?(:value) end end # Acquire SSRS lease context. class AcquireSsrsLeaseContext include Google::Apis::Core::Hashable # Lease duration needed for the SSRS setup. # Corresponds to the JSON property `duration` # @return [String] attr_accessor :duration # The report database to be used for the SSRS setup. # Corresponds to the JSON property `reportDatabase` # @return [String] attr_accessor :report_database # The username to be used as the service login to connect to the report database # for SSRS setup. # Corresponds to the JSON property `serviceLogin` # @return [String] attr_accessor :service_login # The username to be used as the setup login to connect to the database server # for SSRS setup. # Corresponds to the JSON property `setupLogin` # @return [String] attr_accessor :setup_login def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) @duration = args[:duration] if args.key?(:duration) @report_database = args[:report_database] if args.key?(:report_database) @service_login = args[:service_login] if args.key?(:service_login) @setup_login = args[:setup_login] if args.key?(:setup_login) end end # Specifies options for controlling advanced machine features. class AdvancedMachineFeatures include Google::Apis::Core::Hashable # The number of threads per physical core. # Corresponds to the JSON property `threadsPerCore` # @return [Fixnum] attr_accessor :threads_per_core def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) @threads_per_core = args[:threads_per_core] if args.key?(:threads_per_core) end end # An Admin API warning message. class ApiWarning include Google::Apis::Core::Hashable # Code to uniquely identify the warning type. # Corresponds to the JSON property `code` # @return [String] attr_accessor :code # The warning message. # Corresponds to the JSON property `message` # @return [String] attr_accessor :message # The region name for REGION_UNREACHABLE warning. # Corresponds to the JSON property `region` # @return [String] attr_accessor :region def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) @code = args[:code] if args.key?(:code) @message = args[:message] if args.key?(:message) @region = args[:region] if args.key?(:region) end end # An available database version. It can be a major or a minor version. class AvailableDatabaseVersion include Google::Apis::Core::Hashable # The database version's display name. # Corresponds to the JSON property `displayName` # @return [String] attr_accessor :display_name # The version's major version name. # Corresponds to the JSON property `majorVersion` # @return [String] attr_accessor :major_version # The database version name. For MySQL 8.0, this string provides the database # major and minor version. # Corresponds to the JSON property `name` # @return [String] attr_accessor :name def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) @display_name = args[:display_name] if args.key?(:display_name) @major_version = args[:major_version] if args.key?(:major_version) @name = args[:name] if args.key?(:name) end end # A backup resource. class Backup include Google::Apis::Core::Hashable # Represents a time interval, encoded as a Timestamp start (inclusive) and a # Timestamp end (exclusive). The start must be less than or equal to the end. # When the start equals the end, the interval is empty (matches no time). When # both start and end are unspecified, the interval matches any time. # Corresponds to the JSON property `backupInterval` # @return [Google::Apis::SqladminV1beta4::Interval] attr_accessor :backup_interval # Output only. Specifies the kind of backup, PHYSICAL or DEFAULT_SNAPSHOT. # Corresponds to the JSON property `backupKind` # @return [String] attr_accessor :backup_kind # Output only. The mapping to backup run resource used for IAM validations. # Corresponds to the JSON property `backupRun` # @return [String] attr_accessor :backup_run # Output only. The database version of the instance of at the time this backup # was made. # Corresponds to the JSON property `databaseVersion` # @return [String] attr_accessor :database_version # The description of this backup. # Corresponds to the JSON property `description` # @return [String] attr_accessor :description # Database instance operation error. # Corresponds to the JSON property `error` # @return [Google::Apis::SqladminV1beta4::OperationError] attr_accessor :error # Backup expiration time. A UTC timestamp of when this resource expired. # Corresponds to the JSON property `expiryTime` # @return [String] attr_accessor :expiry_time # The name of the database instance. # Corresponds to the JSON property `instance` # @return [String] attr_accessor :instance # Optional. Output only. Timestamp in UTC of when the instance associated with # this backup is deleted. # Corresponds to the JSON property `instanceDeletionTime` # @return [String] attr_accessor :instance_deletion_time # A Cloud SQL instance resource. # Corresponds to the JSON property `instanceSettings` # @return [Google::Apis::SqladminV1beta4::DatabaseInstance] attr_accessor :instance_settings # Output only. This is always `sql#backup`. # Corresponds to the JSON property `kind` # @return [String] attr_accessor :kind # Output only. This output contains the encryption configuration for a backup # and the resource name of the KMS key for disk encryption. # Corresponds to the JSON property `kmsKey` # @return [String] attr_accessor :kms_key # Output only. This output contains the encryption status for a backup and the # version of the KMS key that's used to encrypt the Cloud SQL instance. # Corresponds to the JSON property `kmsKeyVersion` # @return [String] attr_accessor :kms_key_version # The storage location of the backups. The location can be multi-regional. # Corresponds to the JSON property `location` # @return [String] attr_accessor :location # Output only. The maximum chargeable bytes for the backup. # Corresponds to the JSON property `maxChargeableBytes` # @return [Fixnum] attr_accessor :max_chargeable_bytes # Output only. The resource name of the backup. Format: projects/`project`/ # backups/`backup`. # Corresponds to the JSON property `name` # @return [String] attr_accessor :name # Output only. This status indicates whether the backup satisfies PZI. The # status is reserved for future use. # Corresponds to the JSON property `satisfiesPzi` # @return [Boolean] attr_accessor :satisfies_pzi alias_method :satisfies_pzi?, :satisfies_pzi # Output only. This status indicates whether the backup satisfies PZS. The # status is reserved for future use. # Corresponds to the JSON property `satisfiesPzs` # @return [Boolean] attr_accessor :satisfies_pzs alias_method :satisfies_pzs?, :satisfies_pzs # Output only. The URI of this resource. # Corresponds to the JSON property `selfLink` # @return [String] attr_accessor :self_link # Output only. The state of this backup. # Corresponds to the JSON property `state` # @return [String] attr_accessor :state # Output only. This output contains a backup time zone. If a Cloud SQL for SQL # Server instance has a different time zone from the backup's time zone, then # the restore to the instance doesn't happen. # Corresponds to the JSON property `timeZone` # @return [String] attr_accessor :time_zone # Input only. The time-to-live (TTL) interval for this resource (in days). For # example: ttlDays:7, means 7 days from the current time. The expiration time # can't exceed 365 days from the time that the backup is created. # Corresponds to the JSON property `ttlDays` # @return [Fixnum] attr_accessor :ttl_days # Output only. The type of this backup. The type can be "AUTOMATED", "ON_DEMAND", # or “FINAL”. # Corresponds to the JSON property `type` # @return [String] attr_accessor :type def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) @backup_interval = args[:backup_interval] if args.key?(:backup_interval) @backup_kind = args[:backup_kind] if args.key?(:backup_kind) @backup_run = args[:backup_run] if args.key?(:backup_run) @database_version = args[:database_version] if args.key?(:database_version) @description = args[:description] if args.key?(:description) @error = args[:error] if args.key?(:error) @expiry_time = args[:expiry_time] if args.key?(:expiry_time) @instance = args[:instance] if args.key?(:instance) @instance_deletion_time = args[:instance_deletion_time] if args.key?(:instance_deletion_time) @instance_settings = args[:instance_settings] if args.key?(:instance_settings) @kind = args[:kind] if args.key?(:kind) @kms_key = args[:kms_key] if args.key?(:kms_key) @kms_key_version = args[:kms_key_version] if args.key?(:kms_key_version) @location = args[:location] if args.key?(:location) @max_chargeable_bytes = args[:max_chargeable_bytes] if args.key?(:max_chargeable_bytes) @name = args[:name] if args.key?(:name) @satisfies_pzi = args[:satisfies_pzi] if args.key?(:satisfies_pzi) @satisfies_pzs = args[:satisfies_pzs] if args.key?(:satisfies_pzs) @self_link = args[:self_link] if args.key?(:self_link) @state = args[:state] if args.key?(:state) @time_zone = args[:time_zone] if args.key?(:time_zone) @ttl_days = args[:ttl_days] if args.key?(:ttl_days) @type = args[:type] if args.key?(:type) end end # Database instance backup configuration. class BackupConfiguration include Google::Apis::Core::Hashable # We currently only support backup retention by specifying the number of backups # we will retain. # Corresponds to the JSON property `backupRetentionSettings` # @return [Google::Apis::SqladminV1beta4::BackupRetentionSettings] attr_accessor :backup_retention_settings # Output only. Backup tier that manages the backups for the instance. # Corresponds to the JSON property `backupTier` # @return [String] attr_accessor :backup_tier # (MySQL only) Whether binary log is enabled. If backup configuration is # disabled, binarylog must be disabled as well. # Corresponds to the JSON property `binaryLogEnabled` # @return [Boolean] attr_accessor :binary_log_enabled alias_method :binary_log_enabled?, :binary_log_enabled # Whether this configuration is enabled. # Corresponds to the JSON property `enabled` # @return [Boolean] attr_accessor :enabled alias_method :enabled?, :enabled # This is always `sql#backupConfiguration`. # Corresponds to the JSON property `kind` # @return [String] attr_accessor :kind # Location of the backup # Corresponds to the JSON property `location` # @return [String] attr_accessor :location # Whether point in time recovery is enabled. # Corresponds to the JSON property `pointInTimeRecoveryEnabled` # @return [Boolean] attr_accessor :point_in_time_recovery_enabled alias_method :point_in_time_recovery_enabled?, :point_in_time_recovery_enabled # Reserved for future use. # Corresponds to the JSON property `replicationLogArchivingEnabled` # @return [Boolean] attr_accessor :replication_log_archiving_enabled alias_method :replication_log_archiving_enabled?, :replication_log_archiving_enabled # Start time for the daily backup configuration in UTC timezone in the 24 hour # format - `HH:MM`. # Corresponds to the JSON property `startTime` # @return [String] attr_accessor :start_time # The number of days of transaction logs we retain for point in time restore, # from 1-7. # Corresponds to the JSON property `transactionLogRetentionDays` # @return [Fixnum] attr_accessor :transaction_log_retention_days # Output only. This value contains the storage location of transactional logs # for the database for point-in-time recovery. # Corresponds to the JSON property `transactionalLogStorageState` # @return [String] attr_accessor :transactional_log_storage_state def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) @backup_retention_settings = args[:backup_retention_settings] if args.key?(:backup_retention_settings) @backup_tier = args[:backup_tier] if args.key?(:backup_tier) @binary_log_enabled = args[:binary_log_enabled] if args.key?(:binary_log_enabled) @enabled = args[:enabled] if args.key?(:enabled) @kind = args[:kind] if args.key?(:kind) @location = args[:location] if args.key?(:location) @point_in_time_recovery_enabled = args[:point_in_time_recovery_enabled] if args.key?(:point_in_time_recovery_enabled) @replication_log_archiving_enabled = args[:replication_log_archiving_enabled] if args.key?(:replication_log_archiving_enabled) @start_time = args[:start_time] if args.key?(:start_time) @transaction_log_retention_days = args[:transaction_log_retention_days] if args.key?(:transaction_log_retention_days) @transactional_log_storage_state = args[:transactional_log_storage_state] if args.key?(:transactional_log_storage_state) end end # Backup context. class BackupContext include Google::Apis::Core::Hashable # The identifier of the backup. # Corresponds to the JSON property `backupId` # @return [Fixnum] attr_accessor :backup_id # This is always `sql#backupContext`. # Corresponds to the JSON property `kind` # @return [String] attr_accessor :kind # The name of the backup. Format: projects/`project`/backups/`backup` # Corresponds to the JSON property `name` # @return [String] attr_accessor :name def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) @backup_id = args[:backup_id] if args.key?(:backup_id) @kind = args[:kind] if args.key?(:kind) @name = args[:name] if args.key?(:name) end end # Backup Reencryption Config class BackupReencryptionConfig include Google::Apis::Core::Hashable # Backup re-encryption limit # Corresponds to the JSON property `backupLimit` # @return [Fixnum] attr_accessor :backup_limit # Type of backups users want to re-encrypt. # Corresponds to the JSON property `backupType` # @return [String] attr_accessor :backup_type def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) @backup_limit = args[:backup_limit] if args.key?(:backup_limit) @backup_type = args[:backup_type] if args.key?(:backup_type) end end # We currently only support backup retention by specifying the number of backups # we will retain. class BackupRetentionSettings include Google::Apis::Core::Hashable # Depending on the value of retention_unit, this is used to determine if a # backup needs to be deleted. If retention_unit is 'COUNT', we will retain this # many backups. # Corresponds to the JSON property `retainedBackups` # @return [Fixnum] attr_accessor :retained_backups # The unit that 'retained_backups' represents. # Corresponds to the JSON property `retentionUnit` # @return [String] attr_accessor :retention_unit def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) @retained_backups = args[:retained_backups] if args.key?(:retained_backups) @retention_unit = args[:retention_unit] if args.key?(:retention_unit) end end # A BackupRun resource. class BackupRun include Google::Apis::Core::Hashable # Specifies the kind of backup, PHYSICAL or DEFAULT_SNAPSHOT. # Corresponds to the JSON property `backupKind` # @return [String] attr_accessor :backup_kind # Output only. The instance database version at the time this backup was made. # Corresponds to the JSON property `databaseVersion` # @return [String] attr_accessor :database_version # The description of this run, only applicable to on-demand backups. # Corresponds to the JSON property `description` # @return [String] attr_accessor :description # Disk encryption configuration for an instance. # Corresponds to the JSON property `diskEncryptionConfiguration` # @return [Google::Apis::SqladminV1beta4::DiskEncryptionConfiguration] attr_accessor :disk_encryption_configuration # Disk encryption status for an instance. # Corresponds to the JSON property `diskEncryptionStatus` # @return [Google::Apis::SqladminV1beta4::DiskEncryptionStatus] attr_accessor :disk_encryption_status # The time the backup operation completed in UTC timezone in [RFC 3339](https:// # tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`. # Corresponds to the JSON property `endTime` # @return [String] attr_accessor :end_time # The time the run was enqueued in UTC timezone in [RFC 3339](https://tools.ietf. # org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`. # Corresponds to the JSON property `enqueuedTime` # @return [String] attr_accessor :enqueued_time # Database instance operation error. # Corresponds to the JSON property `error` # @return [Google::Apis::SqladminV1beta4::OperationError] attr_accessor :error # The identifier for this backup run. Unique only for a specific Cloud SQL # instance. # Corresponds to the JSON property `id` # @return [Fixnum] attr_accessor :id # Name of the database instance. # Corresponds to the JSON property `instance` # @return [String] attr_accessor :instance # This is always `sql#backupRun`. # Corresponds to the JSON property `kind` # @return [String] attr_accessor :kind # Location of the backups. # Corresponds to the JSON property `location` # @return [String] attr_accessor :location # Output only. The maximum chargeable bytes for the backup. # Corresponds to the JSON property `maxChargeableBytes` # @return [Fixnum] attr_accessor :max_chargeable_bytes # The URI of this resource. # Corresponds to the JSON property `selfLink` # @return [String] attr_accessor :self_link # The time the backup operation actually started in UTC timezone in [RFC 3339]( # https://tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00. # 094Z`. # Corresponds to the JSON property `startTime` # @return [String] attr_accessor :start_time # The status of this run. # Corresponds to the JSON property `status` # @return [String] attr_accessor :status # Backup time zone to prevent restores to an instance with a different time zone. # Now relevant only for SQL Server. # Corresponds to the JSON property `timeZone` # @return [String] attr_accessor :time_zone # The type of this run; can be either "AUTOMATED" or "ON_DEMAND" or "FINAL". # This field defaults to "ON_DEMAND" and is ignored, when specified for insert # requests. # Corresponds to the JSON property `type` # @return [String] attr_accessor :type # The start time of the backup window during which this the backup was attempted # in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2012- # 11-15T16:19:00.094Z`. # Corresponds to the JSON property `windowStartTime` # @return [String] attr_accessor :window_start_time def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) @backup_kind = args[:backup_kind] if args.key?(:backup_kind) @database_version = args[:database_version] if args.key?(:database_version) @description = args[:description] if args.key?(:description) @disk_encryption_configuration = args[:disk_encryption_configuration] if args.key?(:disk_encryption_configuration) @disk_encryption_status = args[:disk_encryption_status] if args.key?(:disk_encryption_status) @end_time = args[:end_time] if args.key?(:end_time) @enqueued_time = args[:enqueued_time] if args.key?(:enqueued_time) @error = args[:error] if args.key?(:error) @id = args[:id] if args.key?(:id) @instance = args[:instance] if args.key?(:instance) @kind = args[:kind] if args.key?(:kind) @location = args[:location] if args.key?(:location) @max_chargeable_bytes = args[:max_chargeable_bytes] if args.key?(:max_chargeable_bytes) @self_link = args[:self_link] if args.key?(:self_link) @start_time = args[:start_time] if args.key?(:start_time) @status = args[:status] if args.key?(:status) @time_zone = args[:time_zone] if args.key?(:time_zone) @type = args[:type] if args.key?(:type) @window_start_time = args[:window_start_time] if args.key?(:window_start_time) end end # Backup run list results. class ListBackupRunsResponse include Google::Apis::Core::Hashable # A list of backup runs in reverse chronological order of the enqueued time. # Corresponds to the JSON property `items` # @return [Array] attr_accessor :items # This is always `sql#backupRunsList`. # Corresponds to the JSON property `kind` # @return [String] attr_accessor :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. # Corresponds to the JSON property `nextPageToken` # @return [String] attr_accessor :next_page_token def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) @items = args[:items] if args.key?(:items) @kind = args[:kind] if args.key?(:kind) @next_page_token = args[:next_page_token] if args.key?(:next_page_token) end end # Binary log coordinates. class BinLogCoordinates include Google::Apis::Core::Hashable # Name of the binary log file for a Cloud SQL instance. # Corresponds to the JSON property `binLogFileName` # @return [String] attr_accessor :bin_log_file_name # Position (offset) within the binary log file. # Corresponds to the JSON property `binLogPosition` # @return [Fixnum] attr_accessor :bin_log_position # This is always `sql#binLogCoordinates`. # Corresponds to the JSON property `kind` # @return [String] attr_accessor :kind def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) @bin_log_file_name = args[:bin_log_file_name] if args.key?(:bin_log_file_name) @bin_log_position = args[:bin_log_position] if args.key?(:bin_log_position) @kind = args[:kind] if args.key?(:kind) end end # Database instance clone context. class CloneContext include Google::Apis::Core::Hashable # The name of the allocated ip range for the private ip Cloud SQL instance. For # example: "google-managed-services-default". If set, the cloned instance ip # will be created in the allocated range. The range name must comply with [RFC # 1035](https://tools.ietf.org/html/rfc1035). Specifically, the name must be 1- # 63 characters long and match the regular expression [a-z]([-a-z0-9]*[a-z0-9])?. # Reserved for future use. # Corresponds to the JSON property `allocatedIpRange` # @return [String] attr_accessor :allocated_ip_range # Binary log coordinates. # Corresponds to the JSON property `binLogCoordinates` # @return [Google::Apis::SqladminV1beta4::BinLogCoordinates] attr_accessor :bin_log_coordinates # (SQL Server only) Clone only the specified databases from the source instance. # Clone all databases if empty. # Corresponds to the JSON property `databaseNames` # @return [Array] attr_accessor :database_names # Name of the Cloud SQL instance to be created as a clone. # Corresponds to the JSON property `destinationInstanceName` # @return [String] attr_accessor :destination_instance_name # This is always `sql#cloneContext`. # Corresponds to the JSON property `kind` # @return [String] attr_accessor :kind # Reserved for future use. # Corresponds to the JSON property `pitrTimestampMs` # @return [Fixnum] attr_accessor :pitr_timestamp_ms # Timestamp, if specified, identifies the time to which the source instance is # cloned. # Corresponds to the JSON property `pointInTime` # @return [String] attr_accessor :point_in_time # Optional. Copy clone and point-in-time recovery clone of a regional instance # in the specified zones. If not specified, clone to the same secondary zone as # the source instance. This value cannot be the same as the preferred_zone field. # Corresponds to the JSON property `preferredSecondaryZone` # @return [String] attr_accessor :preferred_secondary_zone # Optional. Copy clone and point-in-time recovery clone of an instance to the # specified zone. If no zone is specified, clone to the same primary zone as the # source instance. # Corresponds to the JSON property `preferredZone` # @return [String] attr_accessor :preferred_zone # The timestamp used to identify the time when the source instance is deleted. # If this instance is deleted, then you must set the timestamp. # Corresponds to the JSON property `sourceInstanceDeletionTime` # @return [String] attr_accessor :source_instance_deletion_time def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) @allocated_ip_range = args[:allocated_ip_range] if args.key?(:allocated_ip_range) @bin_log_coordinates = args[:bin_log_coordinates] if args.key?(:bin_log_coordinates) @database_names = args[:database_names] if args.key?(:database_names) @destination_instance_name = args[:destination_instance_name] if args.key?(:destination_instance_name) @kind = args[:kind] if args.key?(:kind) @pitr_timestamp_ms = args[:pitr_timestamp_ms] if args.key?(:pitr_timestamp_ms) @point_in_time = args[:point_in_time] if args.key?(:point_in_time) @preferred_secondary_zone = args[:preferred_secondary_zone] if args.key?(:preferred_secondary_zone) @preferred_zone = args[:preferred_zone] if args.key?(:preferred_zone) @source_instance_deletion_time = args[:source_instance_deletion_time] if args.key?(:source_instance_deletion_time) end end # Contains the name and datatype of a column. class Column include Google::Apis::Core::Hashable # Name of the column. # Corresponds to the JSON property `name` # @return [String] attr_accessor :name # Datatype of the column. # Corresponds to the JSON property `type` # @return [String] attr_accessor :type def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) @name = args[:name] if args.key?(:name) @type = args[:type] if args.key?(:type) end end # Details of a single read pool node of a read pool. class ConnectPoolNodeConfig include Google::Apis::Core::Hashable # Output only. The DNS name of the read pool node. # Corresponds to the JSON property `dnsName` # @return [String] attr_accessor :dns_name # Output only. The list of DNS names used by this read pool node. # Corresponds to the JSON property `dnsNames` # @return [Array] attr_accessor :dns_names # Output only. Mappings containing IP addresses that can be used to connect to # the read pool node. # Corresponds to the JSON property `ipAddresses` # @return [Array] attr_accessor :ip_addresses # Output only. The name of the read pool node. Doesn't include the project ID. # Corresponds to the JSON property `name` # @return [String] attr_accessor :name def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) @dns_name = args[:dns_name] if args.key?(:dns_name) @dns_names = args[:dns_names] if args.key?(:dns_names) @ip_addresses = args[:ip_addresses] if args.key?(:ip_addresses) @name = args[:name] if args.key?(:name) end end # Connect settings retrieval response. class ConnectSettings include Google::Apis::Core::Hashable # `SECOND_GEN`: Cloud SQL database instance. `EXTERNAL`: A database server that # is not managed by Google. This property is read-only; use the `tier` property # in the `settings` object to determine the database type. # Corresponds to the JSON property `backendType` # @return [String] attr_accessor :backend_type # Custom subject alternative names for the server certificate. # Corresponds to the JSON property `customSubjectAlternativeNames` # @return [Array] attr_accessor :custom_subject_alternative_names # The database engine type and version. The `databaseVersion` field cannot be # changed after instance creation. MySQL instances: `MYSQL_8_0`, `MYSQL_5_7` ( # default), or `MYSQL_5_6`. PostgreSQL instances: `POSTGRES_9_6`, `POSTGRES_10`, # `POSTGRES_11` or `POSTGRES_12` (default), `POSTGRES_13`, or `POSTGRES_14`. SQL # Server instances: `SQLSERVER_2017_STANDARD` (default), ` # SQLSERVER_2017_ENTERPRISE`, `SQLSERVER_2017_EXPRESS`, `SQLSERVER_2017_WEB`, ` # SQLSERVER_2019_STANDARD`, `SQLSERVER_2019_ENTERPRISE`, `SQLSERVER_2019_EXPRESS` # , or `SQLSERVER_2019_WEB`. # Corresponds to the JSON property `databaseVersion` # @return [String] attr_accessor :database_version # The dns name of the instance. # Corresponds to the JSON property `dnsName` # @return [String] attr_accessor :dns_name # Output only. The list of DNS names used by this instance. # Corresponds to the JSON property `dnsNames` # @return [Array] attr_accessor :dns_names # The assigned IP addresses for the instance. # Corresponds to the JSON property `ipAddresses` # @return [Array] attr_accessor :ip_addresses # This is always `sql#connectSettings`. # Corresponds to the JSON property `kind` # @return [String] attr_accessor :kind # Optional. Output only. mdx_protocol_support controls how the client uses # metadata exchange when connecting to the instance. The values in the list # representing parts of the MDX protocol that are supported by this instance. # When the list is empty, the instance does not support MDX, so the client must # not send an MDX request. The default is empty. # Corresponds to the JSON property `mdxProtocolSupport` # @return [Array] attr_accessor :mdx_protocol_support # The number of read pool nodes in a read pool. # Corresponds to the JSON property `nodeCount` # @return [Fixnum] attr_accessor :node_count # Output only. Entries containing information about each read pool node of the # read pool. # Corresponds to the JSON property `nodes` # @return [Array] attr_accessor :nodes # Whether PSC connectivity is enabled for this instance. # Corresponds to the JSON property `pscEnabled` # @return [Boolean] attr_accessor :psc_enabled alias_method :psc_enabled?, :psc_enabled # The cloud region for the instance. e.g. `us-central1`, `europe-west1`. The # region cannot be changed after instance creation. # Corresponds to the JSON property `region` # @return [String] attr_accessor :region # SslCerts Resource # Corresponds to the JSON property `serverCaCert` # @return [Google::Apis::SqladminV1beta4::SslCert] attr_accessor :server_ca_cert # Specify what type of CA is used for the server certificate. # Corresponds to the JSON property `serverCaMode` # @return [String] attr_accessor :server_ca_mode def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) @backend_type = args[:backend_type] if args.key?(:backend_type) @custom_subject_alternative_names = args[:custom_subject_alternative_names] if args.key?(:custom_subject_alternative_names) @database_version = args[:database_version] if args.key?(:database_version) @dns_name = args[:dns_name] if args.key?(:dns_name) @dns_names = args[:dns_names] if args.key?(:dns_names) @ip_addresses = args[:ip_addresses] if args.key?(:ip_addresses) @kind = args[:kind] if args.key?(:kind) @mdx_protocol_support = args[:mdx_protocol_support] if args.key?(:mdx_protocol_support) @node_count = args[:node_count] if args.key?(:node_count) @nodes = args[:nodes] if args.key?(:nodes) @psc_enabled = args[:psc_enabled] if args.key?(:psc_enabled) @region = args[:region] if args.key?(:region) @server_ca_cert = args[:server_ca_cert] if args.key?(:server_ca_cert) @server_ca_mode = args[:server_ca_mode] if args.key?(:server_ca_mode) end end # The managed connection pooling configuration. class ConnectionPoolConfig include Google::Apis::Core::Hashable # Whether managed connection pooling is enabled. # Corresponds to the JSON property `connectionPoolingEnabled` # @return [Boolean] attr_accessor :connection_pooling_enabled alias_method :connection_pooling_enabled?, :connection_pooling_enabled # Optional. List of connection pool configuration flags. # Corresponds to the JSON property `flags` # @return [Array] attr_accessor :flags # Output only. Number of connection poolers. # Corresponds to the JSON property `poolerCount` # @return [Fixnum] attr_accessor :pooler_count def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) @connection_pooling_enabled = args[:connection_pooling_enabled] if args.key?(:connection_pooling_enabled) @flags = args[:flags] if args.key?(:flags) @pooler_count = args[:pooler_count] if args.key?(:pooler_count) end end # Connection pool flags for Cloud SQL instances managed connection pool # configuration. class ConnectionPoolFlags include Google::Apis::Core::Hashable # Required. The name of the flag. # Corresponds to the JSON property `name` # @return [String] attr_accessor :name # Required. The value of the flag. Boolean flags are set to `on` for true and ` # off` for false. This field must be omitted if the flag doesn't take a value. # Corresponds to the JSON property `value` # @return [String] attr_accessor :value def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) @name = args[:name] if args.key?(:name) @value = args[:value] if args.key?(:value) end end # Data cache configurations. class DataCacheConfig include Google::Apis::Core::Hashable # Whether data cache is enabled for the instance. # Corresponds to the JSON property `dataCacheEnabled` # @return [Boolean] attr_accessor :data_cache_enabled alias_method :data_cache_enabled?, :data_cache_enabled def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) @data_cache_enabled = args[:data_cache_enabled] if args.key?(:data_cache_enabled) end end # Represents a SQL database on the Cloud SQL instance. class Database include Google::Apis::Core::Hashable # The Cloud SQL charset value. # Corresponds to the JSON property `charset` # @return [String] attr_accessor :charset # The Cloud SQL collation value. # Corresponds to the JSON property `collation` # @return [String] attr_accessor :collation # This field is deprecated and will be removed from a future version of the API. # Corresponds to the JSON property `etag` # @return [String] attr_accessor :etag # The name of the Cloud SQL instance. This does not include the project ID. # Corresponds to the JSON property `instance` # @return [String] attr_accessor :instance # This is always `sql#database`. # Corresponds to the JSON property `kind` # @return [String] attr_accessor :kind # The name of the database in the Cloud SQL instance. This does not include the # project ID or instance name. # Corresponds to the JSON property `name` # @return [String] attr_accessor :name # The project ID of the project containing the Cloud SQL database. The Google # apps domain is prefixed if applicable. # Corresponds to the JSON property `project` # @return [String] attr_accessor :project # The URI of this resource. # Corresponds to the JSON property `selfLink` # @return [String] attr_accessor :self_link # Represents a Sql Server database on the Cloud SQL instance. # Corresponds to the JSON property `sqlserverDatabaseDetails` # @return [Google::Apis::SqladminV1beta4::SqlServerDatabaseDetails] attr_accessor :sqlserver_database_details def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) @charset = args[:charset] if args.key?(:charset) @collation = args[:collation] if args.key?(:collation) @etag = args[:etag] if args.key?(:etag) @instance = args[:instance] if args.key?(:instance) @kind = args[:kind] if args.key?(:kind) @name = args[:name] if args.key?(:name) @project = args[:project] if args.key?(:project) @self_link = args[:self_link] if args.key?(:self_link) @sqlserver_database_details = args[:sqlserver_database_details] if args.key?(:sqlserver_database_details) end end # Database flags for Cloud SQL instances. class DatabaseFlags include Google::Apis::Core::Hashable # The name of the flag. These flags are passed at instance startup, so include # both server options and system variables. Flags are specified with underscores, # not hyphens. For more information, see [Configuring Database Flags](https:// # cloud.google.com/sql/docs/mysql/flags) in the Cloud SQL documentation. # Corresponds to the JSON property `name` # @return [String] attr_accessor :name # The value of the flag. Boolean flags are set to `on` for true and `off` for # false. This field must be omitted if the flag doesn't take a value. # Corresponds to the JSON property `value` # @return [String] attr_accessor :value def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) @name = args[:name] if args.key?(:name) @value = args[:value] if args.key?(:value) end end # A Cloud SQL instance resource. class DatabaseInstance include Google::Apis::Core::Hashable # Output only. List all maintenance versions applicable on the instance # Corresponds to the JSON property `availableMaintenanceVersions` # @return [Array] attr_accessor :available_maintenance_versions # The backend type. `SECOND_GEN`: Cloud SQL database instance. `EXTERNAL`: A # database server that is not managed by Google. This property is read-only; use # the `tier` property in the `settings` object to determine the database type. # Corresponds to the JSON property `backendType` # @return [String] attr_accessor :backend_type # Connection name of the Cloud SQL instance used in connection strings. # Corresponds to the JSON property `connectionName` # @return [String] attr_accessor :connection_name # Output only. The time when the instance was created in [RFC 3339](https:// # tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`. # Corresponds to the JSON property `createTime` # @return [String] attr_accessor :create_time # The current disk usage of the instance in bytes. This property has been # deprecated. Use the "cloudsql.googleapis.com/database/disk/bytes_used" metric # in Cloud Monitoring API instead. Please see [this announcement](https://groups. # google.com/d/msg/google-cloud-sql-announce/I_7-F9EBhT0/BtvFtdFeAgAJ) for # details. # Corresponds to the JSON property `currentDiskSize` # @return [Fixnum] attr_accessor :current_disk_size # Output only. Stores the current database version running on the instance # including minor version such as `MYSQL_8_0_18`. # Corresponds to the JSON property `databaseInstalledVersion` # @return [String] attr_accessor :database_installed_version # The database engine type and version. The `databaseVersion` field cannot be # changed after instance creation. # Corresponds to the JSON property `databaseVersion` # @return [String] attr_accessor :database_version # Disk encryption configuration for an instance. # Corresponds to the JSON property `diskEncryptionConfiguration` # @return [Google::Apis::SqladminV1beta4::DiskEncryptionConfiguration] attr_accessor :disk_encryption_configuration # Disk encryption status for an instance. # Corresponds to the JSON property `diskEncryptionStatus` # @return [Google::Apis::SqladminV1beta4::DiskEncryptionStatus] attr_accessor :disk_encryption_status # Output only. The dns name of the instance. # Corresponds to the JSON property `dnsName` # @return [String] attr_accessor :dns_name # Output only. The list of DNS names used by this instance. # Corresponds to the JSON property `dnsNames` # @return [Array] attr_accessor :dns_names # This field is deprecated and will be removed from a future version of the API. # Use the `settings.settingsVersion` field instead. # Corresponds to the JSON property `etag` # @return [String] attr_accessor :etag # The name and status of the failover replica. # Corresponds to the JSON property `failoverReplica` # @return [Google::Apis::SqladminV1beta4::DatabaseInstance::FailoverReplica] attr_accessor :failover_replica # The Compute Engine zone that the instance is currently serving from. This # value could be different from the zone that was specified when the instance # was created if the instance has failed over to its secondary zone. WARNING: # Changing this might restart the instance. # Corresponds to the JSON property `gceZone` # @return [String] attr_accessor :gce_zone # Gemini instance configuration. # Corresponds to the JSON property `geminiConfig` # @return [Google::Apis::SqladminV1beta4::GeminiInstanceConfig] attr_accessor :gemini_config # Input only. Determines whether an in-place major version upgrade of replicas # happens when an in-place major version upgrade of a primary instance is # initiated. # Corresponds to the JSON property `includeReplicasForMajorVersionUpgrade` # @return [Boolean] attr_accessor :include_replicas_for_major_version_upgrade alias_method :include_replicas_for_major_version_upgrade?, :include_replicas_for_major_version_upgrade # The instance type. # Corresponds to the JSON property `instanceType` # @return [String] attr_accessor :instance_type # The assigned IP addresses for the instance. # Corresponds to the JSON property `ipAddresses` # @return [Array] attr_accessor :ip_addresses # The IPv6 address assigned to the instance. (Deprecated) This property was # applicable only to First Generation instances. # Corresponds to the JSON property `ipv6Address` # @return [String] attr_accessor :ipv6_address # This is always `sql#instance`. # Corresponds to the JSON property `kind` # @return [String] attr_accessor :kind # The current software version on the instance. # Corresponds to the JSON property `maintenanceVersion` # @return [String] attr_accessor :maintenance_version # The name of the instance which will act as primary in the replication setup. # Corresponds to the JSON property `masterInstanceName` # @return [String] attr_accessor :master_instance_name # The maximum disk size of the instance in bytes. # Corresponds to the JSON property `maxDiskSize` # @return [Fixnum] attr_accessor :max_disk_size # Name of the Cloud SQL instance. This does not include the project ID. # Corresponds to the JSON property `name` # @return [String] attr_accessor :name # The number of read pool nodes in a read pool. # Corresponds to the JSON property `nodeCount` # @return [Fixnum] attr_accessor :node_count # Output only. Entries containing information about each read pool node of the # read pool. # Corresponds to the JSON property `nodes` # @return [Array] attr_accessor :nodes # On-premises instance configuration. # Corresponds to the JSON property `onPremisesConfiguration` # @return [Google::Apis::SqladminV1beta4::OnPremisesConfiguration] attr_accessor :on_premises_configuration # This message wraps up the information written by out-of-disk detection job. # Corresponds to the JSON property `outOfDiskReport` # @return [Google::Apis::SqladminV1beta4::SqlOutOfDiskReport] attr_accessor :out_of_disk_report # Output only. DEPRECATED: please use write_endpoint instead. # Corresponds to the JSON property `primaryDnsName` # @return [String] attr_accessor :primary_dns_name # The project ID of the project containing the Cloud SQL instance. The Google # apps domain is prefixed if applicable. # Corresponds to the JSON property `project` # @return [String] attr_accessor :project # Output only. The link to service attachment of PSC instance. # Corresponds to the JSON property `pscServiceAttachmentLink` # @return [String] attr_accessor :psc_service_attachment_link # The geographical region of the Cloud SQL instance. It can be one of the [ # regions](https://cloud.google.com/sql/docs/mysql/locations#location-r) where # Cloud SQL operates: For example, `asia-east1`, `europe-west1`, and `us- # central1`. The default value is `us-central1`. # Corresponds to the JSON property `region` # @return [String] attr_accessor :region # Read-replica configuration for connecting to the primary instance. # Corresponds to the JSON property `replicaConfiguration` # @return [Google::Apis::SqladminV1beta4::ReplicaConfiguration] attr_accessor :replica_configuration # The replicas of the instance. # Corresponds to the JSON property `replicaNames` # @return [Array] attr_accessor :replica_names # A primary instance and disaster recovery (DR) replica pair. A DR replica is a # cross-region replica that you designate for failover in the event that the # primary instance has regional failure. Applicable to MySQL and PostgreSQL. # Corresponds to the JSON property `replicationCluster` # @return [Google::Apis::SqladminV1beta4::ReplicationCluster] attr_accessor :replication_cluster # Initial root password. Use only on creation. You must set root passwords # before you can connect to PostgreSQL instances. # Corresponds to the JSON property `rootPassword` # @return [String] attr_accessor :root_password # Output only. This status indicates whether the instance satisfies PZI. The # status is reserved for future use. # Corresponds to the JSON property `satisfiesPzi` # @return [Boolean] attr_accessor :satisfies_pzi alias_method :satisfies_pzi?, :satisfies_pzi # This status indicates whether the instance satisfies PZS. The status is # reserved for future use. # Corresponds to the JSON property `satisfiesPzs` # @return [Boolean] attr_accessor :satisfies_pzs alias_method :satisfies_pzs?, :satisfies_pzs # Any scheduled maintenance for this instance. # Corresponds to the JSON property `scheduledMaintenance` # @return [Google::Apis::SqladminV1beta4::SqlScheduledMaintenance] attr_accessor :scheduled_maintenance # The Compute Engine zone that the failover instance is currently serving from # for a regional instance. This value could be different from the zone that was # specified when the instance was created if the instance has failed over to its # secondary/failover zone. # Corresponds to the JSON property `secondaryGceZone` # @return [String] attr_accessor :secondary_gce_zone # The URI of this resource. # Corresponds to the JSON property `selfLink` # @return [String] attr_accessor :self_link # SslCerts Resource # Corresponds to the JSON property `serverCaCert` # @return [Google::Apis::SqladminV1beta4::SslCert] attr_accessor :server_ca_cert # The service account email address assigned to the instance. \This property is # read-only. # Corresponds to the JSON property `serviceAccountEmailAddress` # @return [String] attr_accessor :service_account_email_address # Database instance settings. # Corresponds to the JSON property `settings` # @return [Google::Apis::SqladminV1beta4::Settings] attr_accessor :settings # The SQL network architecture for the instance. # Corresponds to the JSON property `sqlNetworkArchitecture` # @return [String] attr_accessor :sql_network_architecture # The current serving state of the Cloud SQL instance. # Corresponds to the JSON property `state` # @return [String] attr_accessor :state # If the instance state is SUSPENDED, the reason for the suspension. # Corresponds to the JSON property `suspensionReason` # @return [Array] attr_accessor :suspension_reason # Input only. Whether Cloud SQL is enabled to switch storing point-in-time # recovery log files from a data disk to Cloud Storage. # Corresponds to the JSON property `switchTransactionLogsToCloudStorageEnabled` # @return [Boolean] attr_accessor :switch_transaction_logs_to_cloud_storage_enabled alias_method :switch_transaction_logs_to_cloud_storage_enabled?, :switch_transaction_logs_to_cloud_storage_enabled # Optional. Input only. Immutable. Tag keys and tag values that are bound to # this instance. You must represent each item in the map as: `"" : ""`. For # example, a single resource can have the following tags: ``` "123/environment": # "production", "123/costCenter": "marketing", ``` For more information on tag # creation and management, see https://cloud.google.com/resource-manager/docs/ # tags/tags-overview. # Corresponds to the JSON property `tags` # @return [Hash] attr_accessor :tags # Output only. All database versions that are available for upgrade. # Corresponds to the JSON property `upgradableDatabaseVersions` # @return [Array] attr_accessor :upgradable_database_versions # Output only. The dns name of the primary instance in a replication group. # Corresponds to the JSON property `writeEndpoint` # @return [String] attr_accessor :write_endpoint def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) @available_maintenance_versions = args[:available_maintenance_versions] if args.key?(:available_maintenance_versions) @backend_type = args[:backend_type] if args.key?(:backend_type) @connection_name = args[:connection_name] if args.key?(:connection_name) @create_time = args[:create_time] if args.key?(:create_time) @current_disk_size = args[:current_disk_size] if args.key?(:current_disk_size) @database_installed_version = args[:database_installed_version] if args.key?(:database_installed_version) @database_version = args[:database_version] if args.key?(:database_version) @disk_encryption_configuration = args[:disk_encryption_configuration] if args.key?(:disk_encryption_configuration) @disk_encryption_status = args[:disk_encryption_status] if args.key?(:disk_encryption_status) @dns_name = args[:dns_name] if args.key?(:dns_name) @dns_names = args[:dns_names] if args.key?(:dns_names) @etag = args[:etag] if args.key?(:etag) @failover_replica = args[:failover_replica] if args.key?(:failover_replica) @gce_zone = args[:gce_zone] if args.key?(:gce_zone) @gemini_config = args[:gemini_config] if args.key?(:gemini_config) @include_replicas_for_major_version_upgrade = args[:include_replicas_for_major_version_upgrade] if args.key?(:include_replicas_for_major_version_upgrade) @instance_type = args[:instance_type] if args.key?(:instance_type) @ip_addresses = args[:ip_addresses] if args.key?(:ip_addresses) @ipv6_address = args[:ipv6_address] if args.key?(:ipv6_address) @kind = args[:kind] if args.key?(:kind) @maintenance_version = args[:maintenance_version] if args.key?(:maintenance_version) @master_instance_name = args[:master_instance_name] if args.key?(:master_instance_name) @max_disk_size = args[:max_disk_size] if args.key?(:max_disk_size) @name = args[:name] if args.key?(:name) @node_count = args[:node_count] if args.key?(:node_count) @nodes = args[:nodes] if args.key?(:nodes) @on_premises_configuration = args[:on_premises_configuration] if args.key?(:on_premises_configuration) @out_of_disk_report = args[:out_of_disk_report] if args.key?(:out_of_disk_report) @primary_dns_name = args[:primary_dns_name] if args.key?(:primary_dns_name) @project = args[:project] if args.key?(:project) @psc_service_attachment_link = args[:psc_service_attachment_link] if args.key?(:psc_service_attachment_link) @region = args[:region] if args.key?(:region) @replica_configuration = args[:replica_configuration] if args.key?(:replica_configuration) @replica_names = args[:replica_names] if args.key?(:replica_names) @replication_cluster = args[:replication_cluster] if args.key?(:replication_cluster) @root_password = args[:root_password] if args.key?(:root_password) @satisfies_pzi = args[:satisfies_pzi] if args.key?(:satisfies_pzi) @satisfies_pzs = args[:satisfies_pzs] if args.key?(:satisfies_pzs) @scheduled_maintenance = args[:scheduled_maintenance] if args.key?(:scheduled_maintenance) @secondary_gce_zone = args[:secondary_gce_zone] if args.key?(:secondary_gce_zone) @self_link = args[:self_link] if args.key?(:self_link) @server_ca_cert = args[:server_ca_cert] if args.key?(:server_ca_cert) @service_account_email_address = args[:service_account_email_address] if args.key?(:service_account_email_address) @settings = args[:settings] if args.key?(:settings) @sql_network_architecture = args[:sql_network_architecture] if args.key?(:sql_network_architecture) @state = args[:state] if args.key?(:state) @suspension_reason = args[:suspension_reason] if args.key?(:suspension_reason) @switch_transaction_logs_to_cloud_storage_enabled = args[:switch_transaction_logs_to_cloud_storage_enabled] if args.key?(:switch_transaction_logs_to_cloud_storage_enabled) @tags = args[:tags] if args.key?(:tags) @upgradable_database_versions = args[:upgradable_database_versions] if args.key?(:upgradable_database_versions) @write_endpoint = args[:write_endpoint] if args.key?(:write_endpoint) end # The name and status of the failover replica. class FailoverReplica include Google::Apis::Core::Hashable # The availability status of the failover replica. A false status indicates that # the failover replica is out of sync. The primary instance can only failover to # the failover replica when the status is true. # Corresponds to the JSON property `available` # @return [Boolean] attr_accessor :available alias_method :available?, :available # The name of the failover replica. If specified at instance creation, a # failover replica is created for the instance. The name doesn't include the # project ID. # Corresponds to the JSON property `name` # @return [String] attr_accessor :name def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) @available = args[:available] if args.key?(:available) @name = args[:name] if args.key?(:name) end end end # Database list response. class ListDatabasesResponse include Google::Apis::Core::Hashable # List of database resources in the instance. # Corresponds to the JSON property `items` # @return [Array] attr_accessor :items # This is always `sql#databasesList`. # Corresponds to the JSON property `kind` # @return [String] attr_accessor :kind def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) @items = args[:items] if args.key?(:items) @kind = args[:kind] if args.key?(:kind) end end # This context is used to demote an existing standalone instance to be a Cloud # SQL read replica for an external database server. class DemoteContext include Google::Apis::Core::Hashable # This is always `sql#demoteContext`. # Corresponds to the JSON property `kind` # @return [String] attr_accessor :kind # Required. The name of the instance which acts as an on-premises primary # instance in the replication setup. # Corresponds to the JSON property `sourceRepresentativeInstanceName` # @return [String] attr_accessor :source_representative_instance_name def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) @kind = args[:kind] if args.key?(:kind) @source_representative_instance_name = args[:source_representative_instance_name] if args.key?(:source_representative_instance_name) end end # Read-replica configuration for connecting to the on-premises primary instance. class DemoteMasterConfiguration include Google::Apis::Core::Hashable # This is always `sql#demoteMasterConfiguration`. # Corresponds to the JSON property `kind` # @return [String] attr_accessor :kind # Read-replica configuration specific to MySQL databases. # Corresponds to the JSON property `mysqlReplicaConfiguration` # @return [Google::Apis::SqladminV1beta4::DemoteMasterMySqlReplicaConfiguration] attr_accessor :mysql_replica_configuration def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) @kind = args[:kind] if args.key?(:kind) @mysql_replica_configuration = args[:mysql_replica_configuration] if args.key?(:mysql_replica_configuration) end end # Database instance demote primary instance context. class DemoteMasterContext include Google::Apis::Core::Hashable # This is always `sql#demoteMasterContext`. # Corresponds to the JSON property `kind` # @return [String] attr_accessor :kind # The name of the instance which will act as on-premises primary instance in the # replication setup. # Corresponds to the JSON property `masterInstanceName` # @return [String] attr_accessor :master_instance_name # Read-replica configuration for connecting to the on-premises primary instance. # Corresponds to the JSON property `replicaConfiguration` # @return [Google::Apis::SqladminV1beta4::DemoteMasterConfiguration] attr_accessor :replica_configuration # Flag to skip replication setup on the instance. # Corresponds to the JSON property `skipReplicationSetup` # @return [Boolean] attr_accessor :skip_replication_setup alias_method :skip_replication_setup?, :skip_replication_setup # Verify the GTID consistency for demote operation. Default value: `True`. # Setting this flag to `false` enables you to bypass the GTID consistency check # between on-premises primary instance and Cloud SQL instance during the # demotion operation but also exposes you to the risk of future replication # failures. Change the value only if you know the reason for the GTID divergence # and are confident that doing so will not cause any replication issues. # Corresponds to the JSON property `verifyGtidConsistency` # @return [Boolean] attr_accessor :verify_gtid_consistency alias_method :verify_gtid_consistency?, :verify_gtid_consistency def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) @kind = args[:kind] if args.key?(:kind) @master_instance_name = args[:master_instance_name] if args.key?(:master_instance_name) @replica_configuration = args[:replica_configuration] if args.key?(:replica_configuration) @skip_replication_setup = args[:skip_replication_setup] if args.key?(:skip_replication_setup) @verify_gtid_consistency = args[:verify_gtid_consistency] if args.key?(:verify_gtid_consistency) end end # Read-replica configuration specific to MySQL databases. class DemoteMasterMySqlReplicaConfiguration include Google::Apis::Core::Hashable # PEM representation of the trusted CA's x509 certificate. # Corresponds to the JSON property `caCertificate` # @return [String] attr_accessor :ca_certificate # PEM representation of the replica's x509 certificate. # Corresponds to the JSON property `clientCertificate` # @return [String] attr_accessor :client_certificate # PEM representation of the replica's private key. The corresponding public key # is encoded in the client's certificate. The format of the replica's private # key can be either PKCS #1 or PKCS #8. # Corresponds to the JSON property `clientKey` # @return [String] attr_accessor :client_key # This is always `sql#demoteMasterMysqlReplicaConfiguration`. # Corresponds to the JSON property `kind` # @return [String] attr_accessor :kind # The password for the replication connection. # Corresponds to the JSON property `password` # @return [String] attr_accessor :password # The username for the replication connection. # Corresponds to the JSON property `username` # @return [String] attr_accessor :username def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) @ca_certificate = args[:ca_certificate] if args.key?(:ca_certificate) @client_certificate = args[:client_certificate] if args.key?(:client_certificate) @client_key = args[:client_key] if args.key?(:client_key) @kind = args[:kind] if args.key?(:kind) @password = args[:password] if args.key?(:password) @username = args[:username] if args.key?(:username) end end # Deny Maintenance Periods. This specifies a date range during when all CSA # rollout will be denied. class DenyMaintenancePeriod include Google::Apis::Core::Hashable # "deny maintenance period" end date. If the year of the end date is empty, the # year of the start date also must be empty. In this case, it means the deny # maintenance period recurs every year. The date is in format yyyy-mm-dd i.e., # 2020-11-01, or mm-dd, i.e., 11-01 # Corresponds to the JSON property `endDate` # @return [String] attr_accessor :end_date # "deny maintenance period" start date. If the year of the start date is empty, # the year of the end date also must be empty. In this case, it means the deny # maintenance period recurs every year. The date is in format yyyy-mm-dd i.e., # 2020-11-01, or mm-dd, i.e., 11-01 # Corresponds to the JSON property `startDate` # @return [String] attr_accessor :start_date # Time in UTC when the "deny maintenance period" starts on start_date and ends # on end_date. The time is in format: HH:mm:SS, i.e., 00:00:00 # Corresponds to the JSON property `time` # @return [String] attr_accessor :time def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) @end_date = args[:end_date] if args.key?(:end_date) @start_date = args[:start_date] if args.key?(:start_date) @time = args[:time] if args.key?(:time) end end # Disk encryption configuration for an instance. class DiskEncryptionConfiguration include Google::Apis::Core::Hashable # This is always `sql#diskEncryptionConfiguration`. # Corresponds to the JSON property `kind` # @return [String] attr_accessor :kind # Resource name of KMS key for disk encryption # Corresponds to the JSON property `kmsKeyName` # @return [String] attr_accessor :kms_key_name def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) @kind = args[:kind] if args.key?(:kind) @kms_key_name = args[:kms_key_name] if args.key?(:kms_key_name) end end # Disk encryption status for an instance. class DiskEncryptionStatus include Google::Apis::Core::Hashable # This is always `sql#diskEncryptionStatus`. # Corresponds to the JSON property `kind` # @return [String] attr_accessor :kind # KMS key version used to encrypt the Cloud SQL instance resource # Corresponds to the JSON property `kmsKeyVersionName` # @return [String] attr_accessor :kms_key_version_name def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) @kind = args[:kind] if args.key?(:kind) @kms_key_version_name = args[:kms_key_version_name] if args.key?(:kms_key_version_name) end end # DNS metadata. class DnsNameMapping include Google::Apis::Core::Hashable # Output only. The connection type of the DNS name. # Corresponds to the JSON property `connectionType` # @return [String] attr_accessor :connection_type # Output only. The scope that the DNS name applies to. # Corresponds to the JSON property `dnsScope` # @return [String] attr_accessor :dns_scope # Output only. The DNS name. # Corresponds to the JSON property `name` # @return [String] attr_accessor :name # Output only. The manager for this DNS record. # Corresponds to the JSON property `recordManager` # @return [String] attr_accessor :record_manager def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) @connection_type = args[:connection_type] if args.key?(:connection_type) @dns_scope = args[:dns_scope] if args.key?(:dns_scope) @name = args[:name] if args.key?(:name) @record_manager = args[:record_manager] if args.key?(:record_manager) end end # A generic empty message that you can re-use to avoid defining duplicated empty # messages in your APIs. A typical example is to use it as the request or the # response type of an API method. For instance: service Foo ` rpc Bar(google. # protobuf.Empty) returns (google.protobuf.Empty); ` class Empty include Google::Apis::Core::Hashable def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) end end # The request payload used to execute SQL statements. class ExecuteSqlPayload include Google::Apis::Core::Hashable # Optional. Specifies the name of the application that is making the request. # This field is used for telemetry. Only alphanumeric characters, dashes, and # underscores are allowed. The maximum length is 32 characters. # Corresponds to the JSON property `application` # @return [String] attr_accessor :application # Optional. When set to true, the API caller identity associated with the # request is used for database authentication. The API caller must be an IAM # user in the database. # Corresponds to the JSON property `autoIamAuthn` # @return [Boolean] attr_accessor :auto_iam_authn alias_method :auto_iam_authn?, :auto_iam_authn # Optional. Name of the database on which the statement will be executed. # Corresponds to the JSON property `database` # @return [String] attr_accessor :database # Optional. Controls how the API should respond when the SQL execution result is # incomplete due to the size limit or another error. The default mode is to # throw an error. # Corresponds to the JSON property `partialResultMode` # @return [String] attr_accessor :partial_result_mode # Optional. The maximum number of rows returned per SQL statement. # Corresponds to the JSON property `rowLimit` # @return [Fixnum] attr_accessor :row_limit # Required. SQL statements to run on the database. It can be a single statement # or a sequence of statements separated by semicolons. # Corresponds to the JSON property `sqlStatement` # @return [String] attr_accessor :sql_statement # Optional. The name of an existing database user to connect to the database. # When `auto_iam_authn` is set to true, this field is ignored and the API caller' # s IAM user is used. # Corresponds to the JSON property `user` # @return [String] attr_accessor :user def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) @application = args[:application] if args.key?(:application) @auto_iam_authn = args[:auto_iam_authn] if args.key?(:auto_iam_authn) @database = args[:database] if args.key?(:database) @partial_result_mode = args[:partial_result_mode] if args.key?(:partial_result_mode) @row_limit = args[:row_limit] if args.key?(:row_limit) @sql_statement = args[:sql_statement] if args.key?(:sql_statement) @user = args[:user] if args.key?(:user) end end # Database instance export context. class ExportContext include Google::Apis::Core::Hashable # Options for exporting BAK files (SQL Server-only) # Corresponds to the JSON property `bakExportOptions` # @return [Google::Apis::SqladminV1beta4::ExportContext::BakExportOptions] attr_accessor :bak_export_options # Options for exporting data as CSV. `MySQL` and `PostgreSQL` instances only. # Corresponds to the JSON property `csvExportOptions` # @return [Google::Apis::SqladminV1beta4::ExportContext::CsvExportOptions] attr_accessor :csv_export_options # Databases to be exported. `MySQL instances:` If `fileType` is `SQL` and no # database is specified, all databases are exported, except for the `mysql` # system database. If `fileType` is `CSV`, you can specify one database, either # by using this property or by using the `csvExportOptions.selectQuery` property, # which takes precedence over this property. `PostgreSQL instances:` If you don' # t specify a database by name, all user databases in the instance are exported. # This excludes system databases and Cloud SQL databases used to manage internal # operations. Exporting all user databases is only available for directory- # formatted parallel export. If `fileType` is `CSV`, this database must match # the one specified in the `csvExportOptions.selectQuery` property. `SQL Server # instances:` You must specify one database to be exported, and the `fileType` # must be `BAK`. # Corresponds to the JSON property `databases` # @return [Array] attr_accessor :databases # The file type for the specified uri. # Corresponds to the JSON property `fileType` # @return [String] attr_accessor :file_type # This is always `sql#exportContext`. # Corresponds to the JSON property `kind` # @return [String] attr_accessor :kind # Whether to perform a serverless export. # Corresponds to the JSON property `offload` # @return [Boolean] attr_accessor :offload alias_method :offload?, :offload # Options for exporting data as SQL statements. # Corresponds to the JSON property `sqlExportOptions` # @return [Google::Apis::SqladminV1beta4::ExportContext::SqlExportOptions] attr_accessor :sql_export_options # Optional. Export parameters specific to SQL Server TDE certificates # Corresponds to the JSON property `tdeExportOptions` # @return [Google::Apis::SqladminV1beta4::ExportContext::TdeExportOptions] attr_accessor :tde_export_options # The path to the file in Google Cloud Storage where the export will be stored. # The URI is in the form `gs://bucketName/fileName`. If the file already exists, # the request succeeds, but the operation fails. If `fileType` is `SQL` and the # filename ends with .gz, the contents are compressed. # Corresponds to the JSON property `uri` # @return [String] attr_accessor :uri def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) @bak_export_options = args[:bak_export_options] if args.key?(:bak_export_options) @csv_export_options = args[:csv_export_options] if args.key?(:csv_export_options) @databases = args[:databases] if args.key?(:databases) @file_type = args[:file_type] if args.key?(:file_type) @kind = args[:kind] if args.key?(:kind) @offload = args[:offload] if args.key?(:offload) @sql_export_options = args[:sql_export_options] if args.key?(:sql_export_options) @tde_export_options = args[:tde_export_options] if args.key?(:tde_export_options) @uri = args[:uri] if args.key?(:uri) end # Options for exporting BAK files (SQL Server-only) class BakExportOptions include Google::Apis::Core::Hashable # Type of this bak file will be export, FULL or DIFF, SQL Server only # Corresponds to the JSON property `bakType` # @return [String] attr_accessor :bak_type # Deprecated: copy_only is deprecated. Use differential_base instead # Corresponds to the JSON property `copyOnly` # @return [Boolean] attr_accessor :copy_only alias_method :copy_only?, :copy_only # Whether or not the backup can be used as a differential base copy_only backup # can not be served as differential base # Corresponds to the JSON property `differentialBase` # @return [Boolean] attr_accessor :differential_base alias_method :differential_base?, :differential_base # Optional. The end timestamp when transaction log will be included in the # export operation. [RFC 3339](https://tools.ietf.org/html/rfc3339) format (for # example, `2023-10-01T16:19:00.094`) in UTC. When omitted, all available logs # until current time will be included. Only applied to Cloud SQL for SQL Server. # Corresponds to the JSON property `exportLogEndTime` # @return [String] attr_accessor :export_log_end_time # Optional. The begin timestamp when transaction log will be included in the # export operation. [RFC 3339](https://tools.ietf.org/html/rfc3339) format (for # example, `2023-10-01T16:19:00.094`) in UTC. When omitted, all available logs # from the beginning of retention period will be included. Only applied to Cloud # SQL for SQL Server. # Corresponds to the JSON property `exportLogStartTime` # @return [String] attr_accessor :export_log_start_time # Option for specifying how many stripes to use for the export. If blank, and # the value of the striped field is true, the number of stripes is automatically # chosen. # Corresponds to the JSON property `stripeCount` # @return [Fixnum] attr_accessor :stripe_count # Whether or not the export should be striped. # Corresponds to the JSON property `striped` # @return [Boolean] attr_accessor :striped alias_method :striped?, :striped def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) @bak_type = args[:bak_type] if args.key?(:bak_type) @copy_only = args[:copy_only] if args.key?(:copy_only) @differential_base = args[:differential_base] if args.key?(:differential_base) @export_log_end_time = args[:export_log_end_time] if args.key?(:export_log_end_time) @export_log_start_time = args[:export_log_start_time] if args.key?(:export_log_start_time) @stripe_count = args[:stripe_count] if args.key?(:stripe_count) @striped = args[:striped] if args.key?(:striped) end end # Options for exporting data as CSV. `MySQL` and `PostgreSQL` instances only. class CsvExportOptions include Google::Apis::Core::Hashable # Specifies the character that should appear before a data character that needs # to be escaped. # Corresponds to the JSON property `escapeCharacter` # @return [String] attr_accessor :escape_character # Specifies the character that separates columns within each row (line) of the # file. # Corresponds to the JSON property `fieldsTerminatedBy` # @return [String] attr_accessor :fields_terminated_by # This is used to separate lines. If a line does not contain all fields, the # rest of the columns are set to their default values. # Corresponds to the JSON property `linesTerminatedBy` # @return [String] attr_accessor :lines_terminated_by # Specifies the quoting character to be used when a data value is quoted. # Corresponds to the JSON property `quoteCharacter` # @return [String] attr_accessor :quote_character # The select query used to extract the data. # Corresponds to the JSON property `selectQuery` # @return [String] attr_accessor :select_query def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) @escape_character = args[:escape_character] if args.key?(:escape_character) @fields_terminated_by = args[:fields_terminated_by] if args.key?(:fields_terminated_by) @lines_terminated_by = args[:lines_terminated_by] if args.key?(:lines_terminated_by) @quote_character = args[:quote_character] if args.key?(:quote_character) @select_query = args[:select_query] if args.key?(:select_query) end end # Options for exporting data as SQL statements. class SqlExportOptions include Google::Apis::Core::Hashable # Options for exporting from MySQL. # Corresponds to the JSON property `mysqlExportOptions` # @return [Google::Apis::SqladminV1beta4::ExportContext::SqlExportOptions::MysqlExportOptions] attr_accessor :mysql_export_options # Optional. Whether or not the export should be parallel. # Corresponds to the JSON property `parallel` # @return [Boolean] attr_accessor :parallel alias_method :parallel?, :parallel # Options for exporting from a Cloud SQL for PostgreSQL instance. # Corresponds to the JSON property `postgresExportOptions` # @return [Google::Apis::SqladminV1beta4::ExportContext::SqlExportOptions::PostgresExportOptions] attr_accessor :postgres_export_options # Export only schemas. # Corresponds to the JSON property `schemaOnly` # @return [Boolean] attr_accessor :schema_only alias_method :schema_only?, :schema_only # Tables to export, or that were exported, from the specified database. If you # specify tables, specify one and only one database. For PostgreSQL instances, # you can specify only one table. # Corresponds to the JSON property `tables` # @return [Array] attr_accessor :tables # Optional. The number of threads to use for parallel export. # Corresponds to the JSON property `threads` # @return [Fixnum] attr_accessor :threads def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) @mysql_export_options = args[:mysql_export_options] if args.key?(:mysql_export_options) @parallel = args[:parallel] if args.key?(:parallel) @postgres_export_options = args[:postgres_export_options] if args.key?(:postgres_export_options) @schema_only = args[:schema_only] if args.key?(:schema_only) @tables = args[:tables] if args.key?(:tables) @threads = args[:threads] if args.key?(:threads) end # Options for exporting from MySQL. class MysqlExportOptions include Google::Apis::Core::Hashable # Option to include SQL statement required to set up replication. If set to `1`, # the dump file includes a CHANGE MASTER TO statement with the binary log # coordinates, and --set-gtid-purged is set to ON. If set to `2`, the CHANGE # MASTER TO statement is written as a SQL comment and has no effect. If set to # any value other than `1`, --set-gtid-purged is set to OFF. # Corresponds to the JSON property `masterData` # @return [Fixnum] attr_accessor :master_data def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) @master_data = args[:master_data] if args.key?(:master_data) end end # Options for exporting from a Cloud SQL for PostgreSQL instance. class PostgresExportOptions include Google::Apis::Core::Hashable # Optional. Use this option to include DROP SQL statements. Use these # statements to delete database objects before running the import operation. # Corresponds to the JSON property `clean` # @return [Boolean] attr_accessor :clean alias_method :clean?, :clean # Optional. Option to include an IF EXISTS SQL statement with each DROP # statement produced by clean. # Corresponds to the JSON property `ifExists` # @return [Boolean] attr_accessor :if_exists alias_method :if_exists?, :if_exists def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) @clean = args[:clean] if args.key?(:clean) @if_exists = args[:if_exists] if args.key?(:if_exists) end end end # Optional. Export parameters specific to SQL Server TDE certificates class TdeExportOptions include Google::Apis::Core::Hashable # Required. Path to the TDE certificate public key in the form gs://bucketName/ # fileName. The instance must have write access to the location. Applicable only # for SQL Server instances. # Corresponds to the JSON property `certificatePath` # @return [String] attr_accessor :certificate_path # Required. Certificate name. Applicable only for SQL Server instances. # Corresponds to the JSON property `name` # @return [String] attr_accessor :name # Required. Password that encrypts the private key. # Corresponds to the JSON property `privateKeyPassword` # @return [String] attr_accessor :private_key_password # Required. Path to the TDE certificate private key in the form gs://bucketName/ # fileName. The instance must have write access to the location. Applicable only # for SQL Server instances. # Corresponds to the JSON property `privateKeyPath` # @return [String] attr_accessor :private_key_path def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) @certificate_path = args[:certificate_path] if args.key?(:certificate_path) @name = args[:name] if args.key?(:name) @private_key_password = args[:private_key_password] if args.key?(:private_key_password) @private_key_path = args[:private_key_path] if args.key?(:private_key_path) end end end # The selected object that Cloud SQL migrates. class ExternalSyncSelectedObject include Google::Apis::Core::Hashable # The name of the database that Cloud SQL migrates. # Corresponds to the JSON property `database` # @return [String] attr_accessor :database def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) @database = args[:database] if args.key?(:database) end end # Database instance failover context. class FailoverContext include Google::Apis::Core::Hashable # This is always `sql#failoverContext`. # Corresponds to the JSON property `kind` # @return [String] attr_accessor :kind # The current settings version of this instance. Request will be rejected if # this version doesn't match the current settings version. # Corresponds to the JSON property `settingsVersion` # @return [Fixnum] attr_accessor :settings_version def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) @kind = args[:kind] if args.key?(:kind) @settings_version = args[:settings_version] if args.key?(:settings_version) end end # Config used to determine the final backup settings for the instance. class FinalBackupConfig include Google::Apis::Core::Hashable # Whether the final backup is enabled for the instance. # Corresponds to the JSON property `enabled` # @return [Boolean] attr_accessor :enabled alias_method :enabled?, :enabled # The number of days to retain the final backup after the instance deletion. The # final backup will be purged at (time_of_instance_deletion + retention_days). # Corresponds to the JSON property `retentionDays` # @return [Fixnum] attr_accessor :retention_days def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) @enabled = args[:enabled] if args.key?(:enabled) @retention_days = args[:retention_days] if args.key?(:retention_days) end end # A flag resource. class Flag include Google::Apis::Core::Hashable # Use this field if only certain integers are accepted. Can be combined with # min_value and max_value to add additional values. # Corresponds to the JSON property `allowedIntValues` # @return [Array] attr_accessor :allowed_int_values # For `STRING` flags, a list of strings that the value can be set to. # Corresponds to the JSON property `allowedStringValues` # @return [Array] attr_accessor :allowed_string_values # The database version this flag applies to. Can be MySQL instances: `MYSQL_8_0`, # `MYSQL_8_0_18`, `MYSQL_8_0_26`, `MYSQL_5_7`, or `MYSQL_5_6`. PostgreSQL # instances: `POSTGRES_9_6`, `POSTGRES_10`, `POSTGRES_11` or `POSTGRES_12`. SQL # Server instances: `SQLSERVER_2017_STANDARD`, `SQLSERVER_2017_ENTERPRISE`, ` # SQLSERVER_2017_EXPRESS`, `SQLSERVER_2017_WEB`, `SQLSERVER_2019_STANDARD`, ` # SQLSERVER_2019_ENTERPRISE`, `SQLSERVER_2019_EXPRESS`, or `SQLSERVER_2019_WEB`. # See [the complete list](/sql/docs/mysql/admin-api/rest/v1/SqlDatabaseVersion). # Corresponds to the JSON property `appliesTo` # @return [Array] attr_accessor :applies_to # Scope of flag. # Corresponds to the JSON property `flagScope` # @return [String] attr_accessor :flag_scope # Whether or not the flag is considered in beta. # Corresponds to the JSON property `inBeta` # @return [Boolean] attr_accessor :in_beta alias_method :in_beta?, :in_beta # This is always `sql#flag`. # Corresponds to the JSON property `kind` # @return [String] attr_accessor :kind # For `INTEGER` flags, the maximum allowed value. # Corresponds to the JSON property `maxValue` # @return [Fixnum] attr_accessor :max_value # For `INTEGER` flags, the minimum allowed value. # Corresponds to the JSON property `minValue` # @return [Fixnum] attr_accessor :min_value # This is the name of the flag. Flag names always use underscores, not hyphens, # for example: `max_allowed_packet` # Corresponds to the JSON property `name` # @return [String] attr_accessor :name # Recommended flag value in integer format for UI display. # Corresponds to the JSON property `recommendedIntValue` # @return [Fixnum] attr_accessor :recommended_int_value # Recommended flag value in string format for UI display. # Corresponds to the JSON property `recommendedStringValue` # @return [String] attr_accessor :recommended_string_value # Indicates whether changing this flag will trigger a database restart. Only # applicable to Second Generation instances. # Corresponds to the JSON property `requiresRestart` # @return [Boolean] attr_accessor :requires_restart alias_method :requires_restart?, :requires_restart # 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`. # Corresponds to the JSON property `type` # @return [String] attr_accessor :type def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) @allowed_int_values = args[:allowed_int_values] if args.key?(:allowed_int_values) @allowed_string_values = args[:allowed_string_values] if args.key?(:allowed_string_values) @applies_to = args[:applies_to] if args.key?(:applies_to) @flag_scope = args[:flag_scope] if args.key?(:flag_scope) @in_beta = args[:in_beta] if args.key?(:in_beta) @kind = args[:kind] if args.key?(:kind) @max_value = args[:max_value] if args.key?(:max_value) @min_value = args[:min_value] if args.key?(:min_value) @name = args[:name] if args.key?(:name) @recommended_int_value = args[:recommended_int_value] if args.key?(:recommended_int_value) @recommended_string_value = args[:recommended_string_value] if args.key?(:recommended_string_value) @requires_restart = args[:requires_restart] if args.key?(:requires_restart) @type = args[:type] if args.key?(:type) end end # Flags list response. class ListFlagsResponse include Google::Apis::Core::Hashable # List of flags. # Corresponds to the JSON property `items` # @return [Array] attr_accessor :items # This is always `sql#flagsList`. # Corresponds to the JSON property `kind` # @return [String] attr_accessor :kind def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) @items = args[:items] if args.key?(:items) @kind = args[:kind] if args.key?(:kind) end end # Gemini instance configuration. class GeminiInstanceConfig include Google::Apis::Core::Hashable # Output only. Whether the active query is enabled. # Corresponds to the JSON property `activeQueryEnabled` # @return [Boolean] attr_accessor :active_query_enabled alias_method :active_query_enabled?, :active_query_enabled # Output only. Whether Gemini is enabled. # Corresponds to the JSON property `entitled` # @return [Boolean] attr_accessor :entitled alias_method :entitled?, :entitled # Output only. Whether the flag recommender is enabled. # Corresponds to the JSON property `flagRecommenderEnabled` # @return [Boolean] attr_accessor :flag_recommender_enabled alias_method :flag_recommender_enabled?, :flag_recommender_enabled # Output only. Whether the vacuum management is enabled. # Corresponds to the JSON property `googleVacuumMgmtEnabled` # @return [Boolean] attr_accessor :google_vacuum_mgmt_enabled alias_method :google_vacuum_mgmt_enabled?, :google_vacuum_mgmt_enabled # Output only. Whether the index advisor is enabled. # Corresponds to the JSON property `indexAdvisorEnabled` # @return [Boolean] attr_accessor :index_advisor_enabled alias_method :index_advisor_enabled?, :index_advisor_enabled # Output only. Whether canceling the out-of-memory (OOM) session is enabled. # Corresponds to the JSON property `oomSessionCancelEnabled` # @return [Boolean] attr_accessor :oom_session_cancel_enabled alias_method :oom_session_cancel_enabled?, :oom_session_cancel_enabled def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) @active_query_enabled = args[:active_query_enabled] if args.key?(:active_query_enabled) @entitled = args[:entitled] if args.key?(:entitled) @flag_recommender_enabled = args[:flag_recommender_enabled] if args.key?(:flag_recommender_enabled) @google_vacuum_mgmt_enabled = args[:google_vacuum_mgmt_enabled] if args.key?(:google_vacuum_mgmt_enabled) @index_advisor_enabled = args[:index_advisor_enabled] if args.key?(:index_advisor_enabled) @oom_session_cancel_enabled = args[:oom_session_cancel_enabled] if args.key?(:oom_session_cancel_enabled) end end # Ephemeral certificate creation request. class GenerateEphemeralCertRequest include Google::Apis::Core::Hashable # Optional. Access token to include in the signed certificate. # Corresponds to the JSON property `access_token` # @return [String] attr_accessor :access_token # PEM encoded public key to include in the signed certificate. # Corresponds to the JSON property `public_key` # @return [String] attr_accessor :public_key # Optional. Optional snapshot read timestamp to trade freshness for performance. # Corresponds to the JSON property `readTime` # @return [String] attr_accessor :read_time # Optional. If set, it will contain the cert valid duration. # Corresponds to the JSON property `validDuration` # @return [String] attr_accessor :valid_duration def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) @access_token = args[:access_token] if args.key?(:access_token) @public_key = args[:public_key] if args.key?(:public_key) @read_time = args[:read_time] if args.key?(:read_time) @valid_duration = args[:valid_duration] if args.key?(:valid_duration) end end # Ephemeral certificate creation request. class GenerateEphemeralCertResponse include Google::Apis::Core::Hashable # SslCerts Resource # Corresponds to the JSON property `ephemeralCert` # @return [Google::Apis::SqladminV1beta4::SslCert] attr_accessor :ephemeral_cert def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) @ephemeral_cert = args[:ephemeral_cert] if args.key?(:ephemeral_cert) end end # Database instance import context. class ImportContext include Google::Apis::Core::Hashable # Import parameters specific to SQL Server .BAK files # Corresponds to the JSON property `bakImportOptions` # @return [Google::Apis::SqladminV1beta4::ImportContext::BakImportOptions] attr_accessor :bak_import_options # Options for importing data as CSV. # Corresponds to the JSON property `csvImportOptions` # @return [Google::Apis::SqladminV1beta4::ImportContext::CsvImportOptions] attr_accessor :csv_import_options # The target database for the import. If `fileType` is `SQL`, this field is # required only if the import file does not specify a database, and is # overridden by any database specification in the import file. For entire # instance parallel import operations, the database is overridden by the # database name stored in subdirectory name. If `fileType` is `CSV`, one # database must be specified. # Corresponds to the JSON property `database` # @return [String] attr_accessor :database # The file type for the specified uri. * `SQL`: The file contains SQL statements. # * `CSV`: The file contains CSV data. * `BAK`: The file contains backup data # for a SQL Server instance. # Corresponds to the JSON property `fileType` # @return [String] attr_accessor :file_type # The PostgreSQL user for this import operation. PostgreSQL instances only. # Corresponds to the JSON property `importUser` # @return [String] attr_accessor :import_user # This is always `sql#importContext`. # Corresponds to the JSON property `kind` # @return [String] attr_accessor :kind # Optional. Options for importing data from SQL statements. # Corresponds to the JSON property `sqlImportOptions` # @return [Google::Apis::SqladminV1beta4::ImportContext::SqlImportOptions] attr_accessor :sql_import_options # Optional. Import parameters specific to SQL Server .TDE files Import # parameters specific to SQL Server TDE certificates # Corresponds to the JSON property `tdeImportOptions` # @return [Google::Apis::SqladminV1beta4::ImportContext::TdeImportOptions] attr_accessor :tde_import_options # Path to the import file in Cloud Storage, in the form `gs://bucketName/ # fileName`. Compressed gzip files (.gz) are supported when `fileType` is `SQL`. # The instance must have write permissions to the bucket and read access to the # file. # Corresponds to the JSON property `uri` # @return [String] attr_accessor :uri def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) @bak_import_options = args[:bak_import_options] if args.key?(:bak_import_options) @csv_import_options = args[:csv_import_options] if args.key?(:csv_import_options) @database = args[:database] if args.key?(:database) @file_type = args[:file_type] if args.key?(:file_type) @import_user = args[:import_user] if args.key?(:import_user) @kind = args[:kind] if args.key?(:kind) @sql_import_options = args[:sql_import_options] if args.key?(:sql_import_options) @tde_import_options = args[:tde_import_options] if args.key?(:tde_import_options) @uri = args[:uri] if args.key?(:uri) end # Import parameters specific to SQL Server .BAK files class BakImportOptions include Google::Apis::Core::Hashable # Type of the bak content, FULL or DIFF. # Corresponds to the JSON property `bakType` # @return [String] attr_accessor :bak_type # # Corresponds to the JSON property `encryptionOptions` # @return [Google::Apis::SqladminV1beta4::ImportContext::BakImportOptions::EncryptionOptions] attr_accessor :encryption_options # Whether or not the backup importing will restore database with NORECOVERY # option. Applies only to Cloud SQL for SQL Server. # Corresponds to the JSON property `noRecovery` # @return [Boolean] attr_accessor :no_recovery alias_method :no_recovery?, :no_recovery # Whether or not the backup importing request will just bring database online # without downloading Bak content only one of "no_recovery" and "recovery_only" # can be true otherwise error will return. Applies only to Cloud SQL for SQL # Server. # Corresponds to the JSON property `recoveryOnly` # @return [Boolean] attr_accessor :recovery_only alias_method :recovery_only?, :recovery_only # Optional. The timestamp when the import should stop. This timestamp is in the [ # RFC 3339](https://tools.ietf.org/html/rfc3339) format (for example, `2023-10- # 01T16:19:00.094`). This field is equivalent to the STOPAT keyword and applies # to Cloud SQL for SQL Server only. # Corresponds to the JSON property `stopAt` # @return [String] attr_accessor :stop_at # Optional. The marked transaction where the import should stop. This field is # equivalent to the STOPATMARK keyword and applies to Cloud SQL for SQL Server # only. # Corresponds to the JSON property `stopAtMark` # @return [String] attr_accessor :stop_at_mark # Whether or not the backup set being restored is striped. Applies only to Cloud # SQL for SQL Server. # Corresponds to the JSON property `striped` # @return [Boolean] attr_accessor :striped alias_method :striped?, :striped def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) @bak_type = args[:bak_type] if args.key?(:bak_type) @encryption_options = args[:encryption_options] if args.key?(:encryption_options) @no_recovery = args[:no_recovery] if args.key?(:no_recovery) @recovery_only = args[:recovery_only] if args.key?(:recovery_only) @stop_at = args[:stop_at] if args.key?(:stop_at) @stop_at_mark = args[:stop_at_mark] if args.key?(:stop_at_mark) @striped = args[:striped] if args.key?(:striped) end # class EncryptionOptions include Google::Apis::Core::Hashable # Path to the Certificate (.cer) in Cloud Storage, in the form `gs://bucketName/ # fileName`. The instance must have write permissions to the bucket and read # access to the file. # Corresponds to the JSON property `certPath` # @return [String] attr_accessor :cert_path # Optional. Whether the imported file remains encrypted. # Corresponds to the JSON property `keepEncrypted` # @return [Boolean] attr_accessor :keep_encrypted alias_method :keep_encrypted?, :keep_encrypted # Password that encrypts the private key # Corresponds to the JSON property `pvkPassword` # @return [String] attr_accessor :pvk_password # Path to the Certificate Private Key (.pvk) in Cloud Storage, in the form `gs:// # bucketName/fileName`. The instance must have write permissions to the bucket # and read access to the file. # Corresponds to the JSON property `pvkPath` # @return [String] attr_accessor :pvk_path def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) @cert_path = args[:cert_path] if args.key?(:cert_path) @keep_encrypted = args[:keep_encrypted] if args.key?(:keep_encrypted) @pvk_password = args[:pvk_password] if args.key?(:pvk_password) @pvk_path = args[:pvk_path] if args.key?(:pvk_path) end end end # Options for importing data as CSV. class CsvImportOptions include Google::Apis::Core::Hashable # The columns to which CSV data is imported. If not specified, all columns of # the database table are loaded with CSV data. # Corresponds to the JSON property `columns` # @return [Array] attr_accessor :columns # Specifies the character that should appear before a data character that needs # to be escaped. # Corresponds to the JSON property `escapeCharacter` # @return [String] attr_accessor :escape_character # Specifies the character that separates columns within each row (line) of the # file. # Corresponds to the JSON property `fieldsTerminatedBy` # @return [String] attr_accessor :fields_terminated_by # This is used to separate lines. If a line does not contain all fields, the # rest of the columns are set to their default values. # Corresponds to the JSON property `linesTerminatedBy` # @return [String] attr_accessor :lines_terminated_by # Specifies the quoting character to be used when a data value is quoted. # Corresponds to the JSON property `quoteCharacter` # @return [String] attr_accessor :quote_character # The table to which CSV data is imported. # Corresponds to the JSON property `table` # @return [String] attr_accessor :table def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) @columns = args[:columns] if args.key?(:columns) @escape_character = args[:escape_character] if args.key?(:escape_character) @fields_terminated_by = args[:fields_terminated_by] if args.key?(:fields_terminated_by) @lines_terminated_by = args[:lines_terminated_by] if args.key?(:lines_terminated_by) @quote_character = args[:quote_character] if args.key?(:quote_character) @table = args[:table] if args.key?(:table) end end # Optional. Options for importing data from SQL statements. class SqlImportOptions include Google::Apis::Core::Hashable # Optional. Whether or not the import should be parallel. # Corresponds to the JSON property `parallel` # @return [Boolean] attr_accessor :parallel alias_method :parallel?, :parallel # Optional. Options for importing from a Cloud SQL for PostgreSQL instance. # Corresponds to the JSON property `postgresImportOptions` # @return [Google::Apis::SqladminV1beta4::ImportContext::SqlImportOptions::PostgresImportOptions] attr_accessor :postgres_import_options # Optional. The number of threads to use for parallel import. # Corresponds to the JSON property `threads` # @return [Fixnum] attr_accessor :threads def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) @parallel = args[:parallel] if args.key?(:parallel) @postgres_import_options = args[:postgres_import_options] if args.key?(:postgres_import_options) @threads = args[:threads] if args.key?(:threads) end # Optional. Options for importing from a Cloud SQL for PostgreSQL instance. class PostgresImportOptions include Google::Apis::Core::Hashable # Optional. The --clean flag for the pg_restore utility. This flag applies only # if you enabled Cloud SQL to import files in parallel. # Corresponds to the JSON property `clean` # @return [Boolean] attr_accessor :clean alias_method :clean?, :clean # Optional. The --if-exists flag for the pg_restore utility. This flag applies # only if you enabled Cloud SQL to import files in parallel. # Corresponds to the JSON property `ifExists` # @return [Boolean] attr_accessor :if_exists alias_method :if_exists?, :if_exists def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) @clean = args[:clean] if args.key?(:clean) @if_exists = args[:if_exists] if args.key?(:if_exists) end end end # Optional. Import parameters specific to SQL Server .TDE files Import # parameters specific to SQL Server TDE certificates class TdeImportOptions include Google::Apis::Core::Hashable # Required. Path to the TDE certificate public key in the form gs://bucketName/ # fileName. The instance must have read access to the file. Applicable only for # SQL Server instances. # Corresponds to the JSON property `certificatePath` # @return [String] attr_accessor :certificate_path # Required. Certificate name. Applicable only for SQL Server instances. # Corresponds to the JSON property `name` # @return [String] attr_accessor :name # Required. Password that encrypts the private key. # Corresponds to the JSON property `privateKeyPassword` # @return [String] attr_accessor :private_key_password # Required. Path to the TDE certificate private key in the form gs://bucketName/ # fileName. The instance must have read access to the file. Applicable only for # SQL Server instances. # Corresponds to the JSON property `privateKeyPath` # @return [String] attr_accessor :private_key_path def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) @certificate_path = args[:certificate_path] if args.key?(:certificate_path) @name = args[:name] if args.key?(:name) @private_key_password = args[:private_key_password] if args.key?(:private_key_password) @private_key_path = args[:private_key_path] if args.key?(:private_key_path) end end end # Insights configuration. This specifies when Cloud SQL Insights feature is # enabled and optional configuration. class InsightsConfig include Google::Apis::Core::Hashable # Optional. Whether enhanced query insights feature is enabled. # Corresponds to the JSON property `enhancedQueryInsightsEnabled` # @return [Boolean] attr_accessor :enhanced_query_insights_enabled alias_method :enhanced_query_insights_enabled?, :enhanced_query_insights_enabled # Whether Query Insights feature is enabled. # Corresponds to the JSON property `queryInsightsEnabled` # @return [Boolean] attr_accessor :query_insights_enabled alias_method :query_insights_enabled?, :query_insights_enabled # Number of query execution plans captured by Insights per minute for all # queries combined. Default is 5. # Corresponds to the JSON property `queryPlansPerMinute` # @return [Fixnum] attr_accessor :query_plans_per_minute # Maximum query length stored in bytes. Default value: 1024 bytes. Range: 256- # 4500 bytes. Query lengths greater than this field value will be truncated to # this value. When unset, query length will be the default value. Changing query # length will restart the database. # Corresponds to the JSON property `queryStringLength` # @return [Fixnum] attr_accessor :query_string_length # Whether Query Insights will record application tags from query when enabled. # Corresponds to the JSON property `recordApplicationTags` # @return [Boolean] attr_accessor :record_application_tags alias_method :record_application_tags?, :record_application_tags # Whether Query Insights will record client address when enabled. # Corresponds to the JSON property `recordClientAddress` # @return [Boolean] attr_accessor :record_client_address alias_method :record_client_address?, :record_client_address def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) @enhanced_query_insights_enabled = args[:enhanced_query_insights_enabled] if args.key?(:enhanced_query_insights_enabled) @query_insights_enabled = args[:query_insights_enabled] if args.key?(:query_insights_enabled) @query_plans_per_minute = args[:query_plans_per_minute] if args.key?(:query_plans_per_minute) @query_string_length = args[:query_string_length] if args.key?(:query_string_length) @record_application_tags = args[:record_application_tags] if args.key?(:record_application_tags) @record_client_address = args[:record_client_address] if args.key?(:record_client_address) end end # Reference to another Cloud SQL instance. class InstanceReference include Google::Apis::Core::Hashable # The name of the Cloud SQL instance being referenced. This does not include the # project ID. # Corresponds to the JSON property `name` # @return [String] attr_accessor :name # The project ID of the Cloud SQL instance being referenced. The default is the # same project ID as the instance references it. # Corresponds to the JSON property `project` # @return [String] attr_accessor :project # The region of the Cloud SQL instance being referenced. # Corresponds to the JSON property `region` # @return [String] attr_accessor :region def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) @name = args[:name] if args.key?(:name) @project = args[:project] if args.key?(:project) @region = args[:region] if args.key?(:region) end end # Request to acquire an SSRS lease for an instance. class InstancesAcquireSsrsLeaseRequest include Google::Apis::Core::Hashable # Acquire SSRS lease context. # Corresponds to the JSON property `acquireSsrsLeaseContext` # @return [Google::Apis::SqladminV1beta4::AcquireSsrsLeaseContext] attr_accessor :acquire_ssrs_lease_context def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) @acquire_ssrs_lease_context = args[:acquire_ssrs_lease_context] if args.key?(:acquire_ssrs_lease_context) end end # Database instance clone request. class CloneInstancesRequest include Google::Apis::Core::Hashable # Database instance clone context. # Corresponds to the JSON property `cloneContext` # @return [Google::Apis::SqladminV1beta4::CloneContext] attr_accessor :clone_context def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) @clone_context = args[:clone_context] if args.key?(:clone_context) end end # Database demote primary instance request. class InstancesDemoteMasterRequest include Google::Apis::Core::Hashable # Database instance demote primary instance context. # Corresponds to the JSON property `demoteMasterContext` # @return [Google::Apis::SqladminV1beta4::DemoteMasterContext] attr_accessor :demote_master_context def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) @demote_master_context = args[:demote_master_context] if args.key?(:demote_master_context) end end # This request is used to demote an existing standalone instance to be a Cloud # SQL read replica for an external database server. class InstancesDemoteRequest include Google::Apis::Core::Hashable # This context is used to demote an existing standalone instance to be a Cloud # SQL read replica for an external database server. # Corresponds to the JSON property `demoteContext` # @return [Google::Apis::SqladminV1beta4::DemoteContext] attr_accessor :demote_context def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) @demote_context = args[:demote_context] if args.key?(:demote_context) end end # Database instance export request. class ExportInstancesRequest include Google::Apis::Core::Hashable # Database instance export context. # Corresponds to the JSON property `exportContext` # @return [Google::Apis::SqladminV1beta4::ExportContext] attr_accessor :export_context def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) @export_context = args[:export_context] if args.key?(:export_context) end end # Instance failover request. class InstancesFailoverRequest include Google::Apis::Core::Hashable # Database instance failover context. # Corresponds to the JSON property `failoverContext` # @return [Google::Apis::SqladminV1beta4::FailoverContext] attr_accessor :failover_context def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) @failover_context = args[:failover_context] if args.key?(:failover_context) end end # Database instance import request. class ImportInstancesRequest include Google::Apis::Core::Hashable # Database instance import context. # Corresponds to the JSON property `importContext` # @return [Google::Apis::SqladminV1beta4::ImportContext] attr_accessor :import_context def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) @import_context = args[:import_context] if args.key?(:import_context) end end # Instances ListEntraIdCertificates response. class InstancesListEntraIdCertificatesResponse include Google::Apis::Core::Hashable # The `sha1_fingerprint` of the active certificate from `certs`. # Corresponds to the JSON property `activeVersion` # @return [String] attr_accessor :active_version # List of Entra ID certificates for the instance. # Corresponds to the JSON property `certs` # @return [Array] attr_accessor :certs # This is always `sql#instancesListEntraIdCertificates`. # Corresponds to the JSON property `kind` # @return [String] attr_accessor :kind def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) @active_version = args[:active_version] if args.key?(:active_version) @certs = args[:certs] if args.key?(:certs) @kind = args[:kind] if args.key?(:kind) end end # Database instances list response. class ListInstancesResponse include Google::Apis::Core::Hashable # List of database instance resources. # Corresponds to the JSON property `items` # @return [Array] attr_accessor :items # This is always `sql#instancesList`. # Corresponds to the JSON property `kind` # @return [String] attr_accessor :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. # Corresponds to the JSON property `nextPageToken` # @return [String] attr_accessor :next_page_token # List of warnings that occurred while handling the request. # Corresponds to the JSON property `warnings` # @return [Array] attr_accessor :warnings def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) @items = args[:items] if args.key?(:items) @kind = args[:kind] if args.key?(:kind) @next_page_token = args[:next_page_token] if args.key?(:next_page_token) @warnings = args[:warnings] if args.key?(:warnings) end end # Instances ListServerCas response. class InstancesListServerCasResponse include Google::Apis::Core::Hashable # # Corresponds to the JSON property `activeVersion` # @return [String] attr_accessor :active_version # List of server CA certificates for the instance. # Corresponds to the JSON property `certs` # @return [Array] attr_accessor :certs # This is always `sql#instancesListServerCas`. # Corresponds to the JSON property `kind` # @return [String] attr_accessor :kind def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) @active_version = args[:active_version] if args.key?(:active_version) @certs = args[:certs] if args.key?(:certs) @kind = args[:kind] if args.key?(:kind) end end # Instances ListServerCertificatess response. class InstancesListServerCertificatesResponse include Google::Apis::Core::Hashable # The `sha1_fingerprint` of the active certificate from `server_certs`. # Corresponds to the JSON property `activeVersion` # @return [String] attr_accessor :active_version # List of server CA certificates for the instance. # Corresponds to the JSON property `caCerts` # @return [Array] attr_accessor :ca_certs # This is always `sql#instancesListServerCertificates`. # Corresponds to the JSON property `kind` # @return [String] attr_accessor :kind # List of server certificates for the instance, signed by the corresponding CA # from the `ca_certs` list. # Corresponds to the JSON property `serverCerts` # @return [Array] attr_accessor :server_certs def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) @active_version = args[:active_version] if args.key?(:active_version) @ca_certs = args[:ca_certs] if args.key?(:ca_certs) @kind = args[:kind] if args.key?(:kind) @server_certs = args[:server_certs] if args.key?(:server_certs) end end # Request for Pre-checks for MVU class InstancesPreCheckMajorVersionUpgradeRequest include Google::Apis::Core::Hashable # Pre-check major version upgrade context. # Corresponds to the JSON property `preCheckMajorVersionUpgradeContext` # @return [Google::Apis::SqladminV1beta4::PreCheckMajorVersionUpgradeContext] attr_accessor :pre_check_major_version_upgrade_context def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) @pre_check_major_version_upgrade_context = args[:pre_check_major_version_upgrade_context] if args.key?(:pre_check_major_version_upgrade_context) end end # Database Instance reencrypt request. class InstancesReencryptRequest include Google::Apis::Core::Hashable # Backup Reencryption Config # Corresponds to the JSON property `backupReencryptionConfig` # @return [Google::Apis::SqladminV1beta4::BackupReencryptionConfig] attr_accessor :backup_reencryption_config def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) @backup_reencryption_config = args[:backup_reencryption_config] if args.key?(:backup_reencryption_config) end end # Database instance restore backup request. class RestoreInstancesBackupRequest include Google::Apis::Core::Hashable # The name of the backup that's used to restore a Cloud SQL instance: Format: # projects/`project-id`/backups/`backup-uid`. Only one of restore_backup_context, # backup, backupdr_backup can be passed to the input. # Corresponds to the JSON property `backup` # @return [String] attr_accessor :backup # The name of the backup that's used to restore a Cloud SQL instance: Format: " # projects/`project-id`/locations/`location`/backupVaults/`backupvault`/ # dataSources/`datasource`/backups/`backup-uid`". Only one of # restore_backup_context, backup, backupdr_backup can be passed to the input. # Corresponds to the JSON property `backupdrBackup` # @return [String] attr_accessor :backupdr_backup # Database instance restore from backup context. Backup context contains source # instance id and project id. # Corresponds to the JSON property `restoreBackupContext` # @return [Google::Apis::SqladminV1beta4::RestoreBackupContext] attr_accessor :restore_backup_context # Optional. This field has the same purpose as restore_instance_settings, # changes any instance settings stored in the backup you are restoring from. # With the difference that these fields are cleared in the settings. # Corresponds to the JSON property `restoreInstanceClearOverridesFieldNames` # @return [Array] attr_accessor :restore_instance_clear_overrides_field_names # A Cloud SQL instance resource. # Corresponds to the JSON property `restoreInstanceSettings` # @return [Google::Apis::SqladminV1beta4::DatabaseInstance] attr_accessor :restore_instance_settings def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) @backup = args[:backup] if args.key?(:backup) @backupdr_backup = args[:backupdr_backup] if args.key?(:backupdr_backup) @restore_backup_context = args[:restore_backup_context] if args.key?(:restore_backup_context) @restore_instance_clear_overrides_field_names = args[:restore_instance_clear_overrides_field_names] if args.key?(:restore_instance_clear_overrides_field_names) @restore_instance_settings = args[:restore_instance_settings] if args.key?(:restore_instance_settings) end end # Rotate Entra ID Certificate request. class InstancesRotateEntraIdCertificateRequest include Google::Apis::Core::Hashable # Instance rotate Entra ID certificate context. # Corresponds to the JSON property `rotateEntraIdCertificateContext` # @return [Google::Apis::SqladminV1beta4::RotateEntraIdCertificateContext] attr_accessor :rotate_entra_id_certificate_context def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) @rotate_entra_id_certificate_context = args[:rotate_entra_id_certificate_context] if args.key?(:rotate_entra_id_certificate_context) end end # Rotate Server CA request. class InstancesRotateServerCaRequest include Google::Apis::Core::Hashable # Instance rotate server CA context. # Corresponds to the JSON property `rotateServerCaContext` # @return [Google::Apis::SqladminV1beta4::RotateServerCaContext] attr_accessor :rotate_server_ca_context def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) @rotate_server_ca_context = args[:rotate_server_ca_context] if args.key?(:rotate_server_ca_context) end end # Rotate Server Certificate request. class InstancesRotateServerCertificateRequest include Google::Apis::Core::Hashable # Instance rotate server certificate context. # Corresponds to the JSON property `rotateServerCertificateContext` # @return [Google::Apis::SqladminV1beta4::RotateServerCertificateContext] attr_accessor :rotate_server_certificate_context def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) @rotate_server_certificate_context = args[:rotate_server_certificate_context] if args.key?(:rotate_server_certificate_context) end end # Instance truncate log request. class InstancesTruncateLogRequest include Google::Apis::Core::Hashable # Database Instance truncate log context. # Corresponds to the JSON property `truncateLogContext` # @return [Google::Apis::SqladminV1beta4::TruncateLogContext] attr_accessor :truncate_log_context def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) @truncate_log_context = args[:truncate_log_context] if args.key?(:truncate_log_context) end end # Represents a time interval, encoded as a Timestamp start (inclusive) and a # Timestamp end (exclusive). The start must be less than or equal to the end. # When the start equals the end, the interval is empty (matches no time). When # both start and end are unspecified, the interval matches any time. class Interval include Google::Apis::Core::Hashable # Optional. Exclusive end of the interval. If specified, a Timestamp matching # this interval will have to be before the end. # Corresponds to the JSON property `endTime` # @return [String] attr_accessor :end_time # Optional. Inclusive start of the interval. If specified, a Timestamp matching # this interval will have to be the same or after the start. # Corresponds to the JSON property `startTime` # @return [String] attr_accessor :start_time def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) @end_time = args[:end_time] if args.key?(:end_time) @start_time = args[:start_time] if args.key?(:start_time) end end # IP Management configuration. class IpConfiguration include Google::Apis::Core::Hashable # The name of the allocated ip range for the private ip Cloud SQL instance. For # example: "google-managed-services-default". If set, the instance ip will be # created in the allocated range. The range name must comply with [RFC 1035]( # https://tools.ietf.org/html/rfc1035). Specifically, the name must be 1-63 # characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?.` # Corresponds to the JSON property `allocatedIpRange` # @return [String] attr_accessor :allocated_ip_range # The list of external networks that are allowed to connect to the instance # using the IP. In 'CIDR' notation, also known as 'slash' notation (for example: # `157.197.200.0/24`). # Corresponds to the JSON property `authorizedNetworks` # @return [Array] attr_accessor :authorized_networks # Optional. Custom Subject Alternative Name(SAN)s for a Cloud SQL instance. # Corresponds to the JSON property `customSubjectAlternativeNames` # @return [Array] attr_accessor :custom_subject_alternative_names # Controls connectivity to private IP instances from Google services, such as # BigQuery. # Corresponds to the JSON property `enablePrivatePathForGoogleCloudServices` # @return [Boolean] attr_accessor :enable_private_path_for_google_cloud_services alias_method :enable_private_path_for_google_cloud_services?, :enable_private_path_for_google_cloud_services # Whether the instance is assigned a public IP address or not. # Corresponds to the JSON property `ipv4Enabled` # @return [Boolean] attr_accessor :ipv4_enabled alias_method :ipv4_enabled?, :ipv4_enabled # The resource link for the VPC network from which the Cloud SQL instance is # accessible for private IP. For example, `/projects/myProject/global/networks/ # default`. This setting can be updated, but it cannot be removed after it is # set. # Corresponds to the JSON property `privateNetwork` # @return [String] attr_accessor :private_network # PSC settings for a Cloud SQL instance. # Corresponds to the JSON property `pscConfig` # @return [Google::Apis::SqladminV1beta4::PscConfig] attr_accessor :psc_config # Use `ssl_mode` instead. Whether SSL/TLS connections over IP are enforced. If # set to false, then allow both non-SSL/non-TLS and SSL/TLS connections. For SSL/ # TLS connections, the client certificate won't be verified. If set to true, # then only allow connections encrypted with SSL/TLS and with valid client # certificates. If you want to enforce SSL/TLS without enforcing the requirement # for valid client certificates, then use the `ssl_mode` flag instead of the # legacy `require_ssl` flag. # Corresponds to the JSON property `requireSsl` # @return [Boolean] attr_accessor :require_ssl alias_method :require_ssl?, :require_ssl # Specify what type of CA is used for the server certificate. # Corresponds to the JSON property `serverCaMode` # @return [String] attr_accessor :server_ca_mode # Optional. The resource name of the server CA pool for an instance with ` # CUSTOMER_MANAGED_CAS_CA` as the `server_ca_mode`. Format: projects/`PROJECT`/ # locations/`REGION`/caPools/`CA_POOL_ID` # Corresponds to the JSON property `serverCaPool` # @return [String] attr_accessor :server_ca_pool # Optional. Controls the automatic server certificate rotation feature. This # feature is disabled by default. When enabled, the server certificate will be # automatically rotated during Cloud SQL scheduled maintenance or self-service # maintenance updates up to six months before it expires. This setting can only # be set if server_ca_mode is either GOOGLE_MANAGED_CAS_CA or # CUSTOMER_MANAGED_CAS_CA. # Corresponds to the JSON property `serverCertificateRotationMode` # @return [String] attr_accessor :server_certificate_rotation_mode # Specify how SSL/TLS is enforced in database connections. If you must use the ` # require_ssl` flag for backward compatibility, then only the following value # pairs are valid: For PostgreSQL and MySQL: * `ssl_mode= # ALLOW_UNENCRYPTED_AND_ENCRYPTED` and `require_ssl=false` * `ssl_mode= # ENCRYPTED_ONLY` and `require_ssl=false` * `ssl_mode= # TRUSTED_CLIENT_CERTIFICATE_REQUIRED` and `require_ssl=true` For SQL Server: * ` # ssl_mode=ALLOW_UNENCRYPTED_AND_ENCRYPTED` and `require_ssl=false` * `ssl_mode= # ENCRYPTED_ONLY` and `require_ssl=true` The value of `ssl_mode` has priority # over the value of `require_ssl`. For example, for the pair `ssl_mode= # ENCRYPTED_ONLY` and `require_ssl=false`, `ssl_mode=ENCRYPTED_ONLY` means # accept only SSL connections, while `require_ssl=false` means accept both non- # SSL and SSL connections. In this case, MySQL and PostgreSQL databases respect ` # ssl_mode` and accepts only SSL connections. # Corresponds to the JSON property `sslMode` # @return [String] attr_accessor :ssl_mode def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) @allocated_ip_range = args[:allocated_ip_range] if args.key?(:allocated_ip_range) @authorized_networks = args[:authorized_networks] if args.key?(:authorized_networks) @custom_subject_alternative_names = args[:custom_subject_alternative_names] if args.key?(:custom_subject_alternative_names) @enable_private_path_for_google_cloud_services = args[:enable_private_path_for_google_cloud_services] if args.key?(:enable_private_path_for_google_cloud_services) @ipv4_enabled = args[:ipv4_enabled] if args.key?(:ipv4_enabled) @private_network = args[:private_network] if args.key?(:private_network) @psc_config = args[:psc_config] if args.key?(:psc_config) @require_ssl = args[:require_ssl] if args.key?(:require_ssl) @server_ca_mode = args[:server_ca_mode] if args.key?(:server_ca_mode) @server_ca_pool = args[:server_ca_pool] if args.key?(:server_ca_pool) @server_certificate_rotation_mode = args[:server_certificate_rotation_mode] if args.key?(:server_certificate_rotation_mode) @ssl_mode = args[:ssl_mode] if args.key?(:ssl_mode) end end # Database instance IP mapping class IpMapping include Google::Apis::Core::Hashable # The IP address assigned. # Corresponds to the JSON property `ipAddress` # @return [String] attr_accessor :ip_address # The due time for this IP to be retired in [RFC 3339](https://tools.ietf.org/ # html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`. This field is # only available when the IP is scheduled to be retired. # Corresponds to the JSON property `timeToRetire` # @return [String] attr_accessor :time_to_retire # The type of this IP address. A `PRIMARY` address is a public address that can # accept incoming connections. A `PRIVATE` address is a private address that can # accept incoming connections. An `OUTGOING` address is the source address of # connections originating from the instance, if supported. # Corresponds to the JSON property `type` # @return [String] attr_accessor :type def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) @ip_address = args[:ip_address] if args.key?(:ip_address) @time_to_retire = args[:time_to_retire] if args.key?(:time_to_retire) @type = args[:type] if args.key?(:type) end end # The response payload containing a list of the backups. class ListBackupsResponse include Google::Apis::Core::Hashable # A list of backups. # Corresponds to the JSON property `backups` # @return [Array] attr_accessor :backups # A token, which can be sent as `page_token` to retrieve the next page. If this # field is omitted, then there aren't subsequent pages. # Corresponds to the JSON property `nextPageToken` # @return [String] attr_accessor :next_page_token # If a region isn't unavailable or if an unknown error occurs, then a warning # message is returned. # Corresponds to the JSON property `warnings` # @return [Array] attr_accessor :warnings def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) @backups = args[:backups] if args.key?(:backups) @next_page_token = args[:next_page_token] if args.key?(:next_page_token) @warnings = args[:warnings] if args.key?(:warnings) end end # Preferred location. This specifies where a Cloud SQL instance is located. 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 include Google::Apis::Core::Hashable # The App Engine application to follow, it must be in the same region as the # Cloud SQL instance. WARNING: Changing this might restart the instance. # Corresponds to the JSON property `followGaeApplication` # @return [String] attr_accessor :follow_gae_application # This is always `sql#locationPreference`. # Corresponds to the JSON property `kind` # @return [String] attr_accessor :kind # The preferred Compute Engine zone for the secondary/failover (for example: us- # central1-a, us-central1-b, etc.). To disable this field, set it to ' # no_secondary_zone'. # Corresponds to the JSON property `secondaryZone` # @return [String] attr_accessor :secondary_zone # The preferred Compute Engine zone (for example: us-central1-a, us-central1-b, # etc.). WARNING: Changing this might restart the instance. # Corresponds to the JSON property `zone` # @return [String] attr_accessor :zone def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) @follow_gae_application = args[:follow_gae_application] if args.key?(:follow_gae_application) @kind = args[:kind] if args.key?(:kind) @secondary_zone = args[:secondary_zone] if args.key?(:secondary_zone) @zone = args[:zone] if args.key?(:zone) end end # Maintenance window. This specifies when a Cloud SQL instance is restarted for # system maintenance purposes. class MaintenanceWindow include Google::Apis::Core::Hashable # Day of week - `MONDAY`, `TUESDAY`, `WEDNESDAY`, `THURSDAY`, `FRIDAY`, ` # SATURDAY`, or `SUNDAY`. Specify in the UTC time zone. Returned in output as an # integer, 1 to 7, where `1` equals Monday. # Corresponds to the JSON property `day` # @return [Fixnum] attr_accessor :day # Hour of day - 0 to 23. Specify in the UTC time zone. # Corresponds to the JSON property `hour` # @return [Fixnum] attr_accessor :hour # This is always `sql#maintenanceWindow`. # Corresponds to the JSON property `kind` # @return [String] attr_accessor :kind # Maintenance timing settings: `canary`, `stable`, or `week5`. For more # information, see [About maintenance on Cloud SQL instances](https://cloud. # google.com/sql/docs/mysql/maintenance). # Corresponds to the JSON property `updateTrack` # @return [String] attr_accessor :update_track def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) @day = args[:day] if args.key?(:day) @hour = args[:hour] if args.key?(:hour) @kind = args[:kind] if args.key?(:kind) @update_track = args[:update_track] if args.key?(:update_track) end end # Represents a notice or warning message from the database. class Message include Google::Apis::Core::Hashable # The full message string. For PostgreSQL, this is a formatted string that may # include severity, code, and the notice/warning message. For MySQL, this # contains the warning message. # Corresponds to the JSON property `message` # @return [String] attr_accessor :message # The severity of the message (e.g., "NOTICE" for PostgreSQL, "WARNING" for # MySQL). # Corresponds to the JSON property `severity` # @return [String] attr_accessor :severity def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) @message = args[:message] if args.key?(:message) @severity = args[:severity] if args.key?(:severity) end end # The additional metadata information regarding the execution of the SQL # statements. class Metadata include Google::Apis::Core::Hashable # The time taken to execute the SQL statements. # Corresponds to the JSON property `sqlStatementExecutionTime` # @return [String] attr_accessor :sql_statement_execution_time def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) @sql_statement_execution_time = args[:sql_statement_execution_time] if args.key?(:sql_statement_execution_time) end end # Read-replica configuration specific to MySQL databases. class MySqlReplicaConfiguration include Google::Apis::Core::Hashable # PEM representation of the trusted CA's x509 certificate. # Corresponds to the JSON property `caCertificate` # @return [String] attr_accessor :ca_certificate # PEM representation of the replica's x509 certificate. # Corresponds to the JSON property `clientCertificate` # @return [String] attr_accessor :client_certificate # PEM representation of the replica's private key. The corresponding public key # is encoded in the client's certificate. # Corresponds to the JSON property `clientKey` # @return [String] attr_accessor :client_key # Seconds to wait between connect retries. MySQL's default is 60 seconds. # Corresponds to the JSON property `connectRetryInterval` # @return [Fixnum] attr_accessor :connect_retry_interval # Path to a SQL dump file in Google Cloud Storage from which the replica # instance is to be created. The URI is in the form gs://bucketName/fileName. # Compressed gzip files (.gz) are also supported. Dumps have the binlog co- # ordinates from which replication begins. This can be accomplished by setting -- # master-data to 1 when using mysqldump. # Corresponds to the JSON property `dumpFilePath` # @return [String] attr_accessor :dump_file_path # This is always `sql#mysqlReplicaConfiguration`. # Corresponds to the JSON property `kind` # @return [String] attr_accessor :kind # Interval in milliseconds between replication heartbeats. # Corresponds to the JSON property `masterHeartbeatPeriod` # @return [Fixnum] attr_accessor :master_heartbeat_period # The password for the replication connection. # Corresponds to the JSON property `password` # @return [String] attr_accessor :password # A list of permissible ciphers to use for SSL encryption. # Corresponds to the JSON property `sslCipher` # @return [String] attr_accessor :ssl_cipher # The username for the replication connection. # Corresponds to the JSON property `username` # @return [String] attr_accessor :username # Whether or not to check the primary instance's Common Name value in the # certificate that it sends during the SSL handshake. # Corresponds to the JSON property `verifyServerCertificate` # @return [Boolean] attr_accessor :verify_server_certificate alias_method :verify_server_certificate?, :verify_server_certificate def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) @ca_certificate = args[:ca_certificate] if args.key?(:ca_certificate) @client_certificate = args[:client_certificate] if args.key?(:client_certificate) @client_key = args[:client_key] if args.key?(:client_key) @connect_retry_interval = args[:connect_retry_interval] if args.key?(:connect_retry_interval) @dump_file_path = args[:dump_file_path] if args.key?(:dump_file_path) @kind = args[:kind] if args.key?(:kind) @master_heartbeat_period = args[:master_heartbeat_period] if args.key?(:master_heartbeat_period) @password = args[:password] if args.key?(:password) @ssl_cipher = args[:ssl_cipher] if args.key?(:ssl_cipher) @username = args[:username] if args.key?(:username) @verify_server_certificate = args[:verify_server_certificate] if args.key?(:verify_server_certificate) end end # MySQL-specific external server sync settings. class MySqlSyncConfig include Google::Apis::Core::Hashable # Flags to use for the initial dump. # Corresponds to the JSON property `initialSyncFlags` # @return [Array] attr_accessor :initial_sync_flags def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) @initial_sync_flags = args[:initial_sync_flags] if args.key?(:initial_sync_flags) end end # On-premises instance configuration. class OnPremisesConfiguration include Google::Apis::Core::Hashable # PEM representation of the trusted CA's x509 certificate. # Corresponds to the JSON property `caCertificate` # @return [String] attr_accessor :ca_certificate # PEM representation of the replica's x509 certificate. # Corresponds to the JSON property `clientCertificate` # @return [String] attr_accessor :client_certificate # PEM representation of the replica's private key. The corresponding public key # is encoded in the client's certificate. # Corresponds to the JSON property `clientKey` # @return [String] attr_accessor :client_key # The dump file to create the Cloud SQL replica. # Corresponds to the JSON property `dumpFilePath` # @return [String] attr_accessor :dump_file_path # The host and port of the on-premises instance in host:port format # Corresponds to the JSON property `hostPort` # @return [String] attr_accessor :host_port # This is always `sql#onPremisesConfiguration`. # Corresponds to the JSON property `kind` # @return [String] attr_accessor :kind # The password for connecting to on-premises instance. # Corresponds to the JSON property `password` # @return [String] attr_accessor :password # Optional. A list of objects that the user selects for replication from an # external source instance. # Corresponds to the JSON property `selectedObjects` # @return [Array] attr_accessor :selected_objects # Reference to another Cloud SQL instance. # Corresponds to the JSON property `sourceInstance` # @return [Google::Apis::SqladminV1beta4::InstanceReference] attr_accessor :source_instance # Optional. SslOption for replica connection to the on-premises source. # Corresponds to the JSON property `sslOption` # @return [String] attr_accessor :ssl_option # The username for connecting to on-premises instance. # Corresponds to the JSON property `username` # @return [String] attr_accessor :username def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) @ca_certificate = args[:ca_certificate] if args.key?(:ca_certificate) @client_certificate = args[:client_certificate] if args.key?(:client_certificate) @client_key = args[:client_key] if args.key?(:client_key) @dump_file_path = args[:dump_file_path] if args.key?(:dump_file_path) @host_port = args[:host_port] if args.key?(:host_port) @kind = args[:kind] if args.key?(:kind) @password = args[:password] if args.key?(:password) @selected_objects = args[:selected_objects] if args.key?(:selected_objects) @source_instance = args[:source_instance] if args.key?(:source_instance) @ssl_option = args[:ssl_option] if args.key?(:ssl_option) @username = args[:username] if args.key?(:username) end end # An Operation resource. For successful operations that return an Operation # resource, only the fields relevant to the operation are populated in the # resource. class Operation include Google::Apis::Core::Hashable # Acquire SSRS lease context. # Corresponds to the JSON property `acquireSsrsLeaseContext` # @return [Google::Apis::SqladminV1beta4::AcquireSsrsLeaseContext] attr_accessor :acquire_ssrs_lease_context # An Admin API warning message. # Corresponds to the JSON property `apiWarning` # @return [Google::Apis::SqladminV1beta4::ApiWarning] attr_accessor :api_warning # Backup context. # Corresponds to the JSON property `backupContext` # @return [Google::Apis::SqladminV1beta4::BackupContext] attr_accessor :backup_context # The time this operation finished in UTC timezone in [RFC 3339](https://tools. # ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`. # Corresponds to the JSON property `endTime` # @return [String] attr_accessor :end_time # Database instance operation errors list wrapper. # Corresponds to the JSON property `error` # @return [Google::Apis::SqladminV1beta4::OperationErrors] attr_accessor :error # Database instance export context. # Corresponds to the JSON property `exportContext` # @return [Google::Apis::SqladminV1beta4::ExportContext] attr_accessor :export_context # Database instance import context. # Corresponds to the JSON property `importContext` # @return [Google::Apis::SqladminV1beta4::ImportContext] attr_accessor :import_context # The time this operation was enqueued in UTC timezone in [RFC 3339](https:// # tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`. # Corresponds to the JSON property `insertTime` # @return [String] attr_accessor :insert_time # This is always `sql#operation`. # Corresponds to the JSON property `kind` # @return [String] attr_accessor :kind # An identifier that uniquely identifies the operation. You can use this # identifier to retrieve the Operations resource that has information about the # operation. # Corresponds to the JSON property `name` # @return [String] attr_accessor :name # The type of the operation. Valid values are: * `CREATE` * `DELETE` * `UPDATE` * # `RESTART` * `IMPORT` * `EXPORT` * `BACKUP_VOLUME` * `RESTORE_VOLUME` * ` # CREATE_USER` * `DELETE_USER` * `CREATE_DATABASE` * `DELETE_DATABASE` # Corresponds to the JSON property `operationType` # @return [String] attr_accessor :operation_type # Pre-check major version upgrade context. # Corresponds to the JSON property `preCheckMajorVersionUpgradeContext` # @return [Google::Apis::SqladminV1beta4::PreCheckMajorVersionUpgradeContext] attr_accessor :pre_check_major_version_upgrade_context # The URI of this resource. # Corresponds to the JSON property `selfLink` # @return [String] attr_accessor :self_link # The time this operation actually started in UTC timezone in [RFC 3339](https:// # tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`. # Corresponds to the JSON property `startTime` # @return [String] attr_accessor :start_time # The status of an operation. # Corresponds to the JSON property `status` # @return [String] attr_accessor :status # The sub operation type based on the operation type. # Corresponds to the JSON property `subOperationType` # @return [Google::Apis::SqladminV1beta4::SqlSubOperationType] attr_accessor :sub_operation_type # Name of the resource on which this operation runs. # Corresponds to the JSON property `targetId` # @return [String] attr_accessor :target_id # # Corresponds to the JSON property `targetLink` # @return [String] attr_accessor :target_link # The project ID of the target instance related to this operation. # Corresponds to the JSON property `targetProject` # @return [String] attr_accessor :target_project # The email address of the user who initiated this operation. # Corresponds to the JSON property `user` # @return [String] attr_accessor :user def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) @acquire_ssrs_lease_context = args[:acquire_ssrs_lease_context] if args.key?(:acquire_ssrs_lease_context) @api_warning = args[:api_warning] if args.key?(:api_warning) @backup_context = args[:backup_context] if args.key?(:backup_context) @end_time = args[:end_time] if args.key?(:end_time) @error = args[:error] if args.key?(:error) @export_context = args[:export_context] if args.key?(:export_context) @import_context = args[:import_context] if args.key?(:import_context) @insert_time = args[:insert_time] if args.key?(:insert_time) @kind = args[:kind] if args.key?(:kind) @name = args[:name] if args.key?(:name) @operation_type = args[:operation_type] if args.key?(:operation_type) @pre_check_major_version_upgrade_context = args[:pre_check_major_version_upgrade_context] if args.key?(:pre_check_major_version_upgrade_context) @self_link = args[:self_link] if args.key?(:self_link) @start_time = args[:start_time] if args.key?(:start_time) @status = args[:status] if args.key?(:status) @sub_operation_type = args[:sub_operation_type] if args.key?(:sub_operation_type) @target_id = args[:target_id] if args.key?(:target_id) @target_link = args[:target_link] if args.key?(:target_link) @target_project = args[:target_project] if args.key?(:target_project) @user = args[:user] if args.key?(:user) end end # Database instance operation error. class OperationError include Google::Apis::Core::Hashable # Identifies the specific error that occurred. # Corresponds to the JSON property `code` # @return [String] attr_accessor :code # This is always `sql#operationError`. # Corresponds to the JSON property `kind` # @return [String] attr_accessor :kind # Additional information about the error encountered. # Corresponds to the JSON property `message` # @return [String] attr_accessor :message def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) @code = args[:code] if args.key?(:code) @kind = args[:kind] if args.key?(:kind) @message = args[:message] if args.key?(:message) end end # Database instance operation errors list wrapper. class OperationErrors include Google::Apis::Core::Hashable # The list of errors encountered while processing this operation. # Corresponds to the JSON property `errors` # @return [Array] attr_accessor :errors # This is always `sql#operationErrors`. # Corresponds to the JSON property `kind` # @return [String] attr_accessor :kind def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) @errors = args[:errors] if args.key?(:errors) @kind = args[:kind] if args.key?(:kind) end end # Represents the metadata of the long-running operation. class OperationMetadata include Google::Apis::Core::Hashable # Output only. API version used to start the operation. # Corresponds to the JSON property `apiVersion` # @return [String] attr_accessor :api_version # Output only. Identifies whether the user has requested cancellation of the # operation. Operations that have been cancelled successfully have google. # longrunning.Operation.error value with a google.rpc.Status.code of `1`, # corresponding to `Code.CANCELLED`. # Corresponds to the JSON property `cancelRequested` # @return [Boolean] attr_accessor :cancel_requested alias_method :cancel_requested?, :cancel_requested # Output only. The time the operation was created. # Corresponds to the JSON property `createTime` # @return [String] attr_accessor :create_time # Output only. The time the operation finished running. # Corresponds to the JSON property `endTime` # @return [String] attr_accessor :end_time # Output only. Human-readable status of the operation, if any. # Corresponds to the JSON property `statusDetail` # @return [String] attr_accessor :status_detail # Output only. Server-defined resource path for the target of the operation. # Corresponds to the JSON property `target` # @return [String] attr_accessor :target # Output only. Name of the verb executed by the operation. # Corresponds to the JSON property `verb` # @return [String] attr_accessor :verb def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) @api_version = args[:api_version] if args.key?(:api_version) @cancel_requested = args[:cancel_requested] if args.key?(:cancel_requested) @create_time = args[:create_time] if args.key?(:create_time) @end_time = args[:end_time] if args.key?(:end_time) @status_detail = args[:status_detail] if args.key?(:status_detail) @target = args[:target] if args.key?(:target) @verb = args[:verb] if args.key?(:verb) end end # Operations list response. class ListOperationsResponse include Google::Apis::Core::Hashable # List of operation resources. # Corresponds to the JSON property `items` # @return [Array] attr_accessor :items # This is always `sql#operationsList`. # Corresponds to the JSON property `kind` # @return [String] attr_accessor :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. # Corresponds to the JSON property `nextPageToken` # @return [String] attr_accessor :next_page_token def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) @items = args[:items] if args.key?(:items) @kind = args[:kind] if args.key?(:kind) @next_page_token = args[:next_page_token] if args.key?(:next_page_token) end end # Read-only password status. class PasswordStatus include Google::Apis::Core::Hashable # If true, user does not have login privileges. # Corresponds to the JSON property `locked` # @return [Boolean] attr_accessor :locked alias_method :locked?, :locked # The expiration time of the current password. # Corresponds to the JSON property `passwordExpirationTime` # @return [String] attr_accessor :password_expiration_time def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) @locked = args[:locked] if args.key?(:locked) @password_expiration_time = args[:password_expiration_time] if args.key?(:password_expiration_time) end end # Database instance local user password validation policy. This message defines # the password policy for local database users. When enabled, it enforces # constraints on password complexity, length, and reuse. Keep this policy # enabled to help prevent unauthorized access. class PasswordValidationPolicy include Google::Apis::Core::Hashable # The complexity of the password. # Corresponds to the JSON property `complexity` # @return [String] attr_accessor :complexity # This field is deprecated and will be removed in a future version of the API. # Corresponds to the JSON property `disallowCompromisedCredentials` # @return [Boolean] attr_accessor :disallow_compromised_credentials alias_method :disallow_compromised_credentials?, :disallow_compromised_credentials # Disallow username as a part of the password. # Corresponds to the JSON property `disallowUsernameSubstring` # @return [Boolean] attr_accessor :disallow_username_substring alias_method :disallow_username_substring?, :disallow_username_substring # Whether to enable the password policy or not. When enabled, passwords must # meet complexity requirements. Keep this policy enabled to help prevent # unauthorized access. Disabling this policy allows weak passwords. # Corresponds to the JSON property `enablePasswordPolicy` # @return [Boolean] attr_accessor :enable_password_policy alias_method :enable_password_policy?, :enable_password_policy # Minimum number of characters allowed. # Corresponds to the JSON property `minLength` # @return [Fixnum] attr_accessor :min_length # Minimum interval after which the password can be changed. This flag is only # supported for PostgreSQL. # Corresponds to the JSON property `passwordChangeInterval` # @return [String] attr_accessor :password_change_interval # Number of previous passwords that cannot be reused. # Corresponds to the JSON property `reuseInterval` # @return [Fixnum] attr_accessor :reuse_interval def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) @complexity = args[:complexity] if args.key?(:complexity) @disallow_compromised_credentials = args[:disallow_compromised_credentials] if args.key?(:disallow_compromised_credentials) @disallow_username_substring = args[:disallow_username_substring] if args.key?(:disallow_username_substring) @enable_password_policy = args[:enable_password_policy] if args.key?(:enable_password_policy) @min_length = args[:min_length] if args.key?(:min_length) @password_change_interval = args[:password_change_interval] if args.key?(:password_change_interval) @reuse_interval = args[:reuse_interval] if args.key?(:reuse_interval) end end # Perform disk shrink context. class PerformDiskShrinkContext include Google::Apis::Core::Hashable # The target disk shrink size in GigaBytes. # Corresponds to the JSON property `targetSizeGb` # @return [Fixnum] attr_accessor :target_size_gb def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) @target_size_gb = args[:target_size_gb] if args.key?(:target_size_gb) end end # Performance Capture configuration. class PerformanceCaptureConfig include Google::Apis::Core::Hashable # Optional. Enable or disable the Performance Capture. # Corresponds to the JSON property `enabled` # @return [Boolean] attr_accessor :enabled alias_method :enabled?, :enabled # Optional. The minimum number of consecutive readings above threshold that # triggers instance state capture. # Corresponds to the JSON property `probeThreshold` # @return [Fixnum] attr_accessor :probe_threshold # Optional. The time interval in seconds between any two probes. # Corresponds to the JSON property `probingIntervalSeconds` # @return [Fixnum] attr_accessor :probing_interval_seconds # Optional. The minimum number of server threads running to trigger the capture # on primary. # Corresponds to the JSON property `runningThreadsThreshold` # @return [Fixnum] attr_accessor :running_threads_threshold # Optional. The minimum number of seconds replica must be lagging behind primary # to trigger capture on replica. # Corresponds to the JSON property `secondsBehindSourceThreshold` # @return [Fixnum] attr_accessor :seconds_behind_source_threshold # Optional. The amount of time in seconds that a transaction needs to have been # open before the watcher starts recording it. # Corresponds to the JSON property `transactionDurationThreshold` # @return [Fixnum] attr_accessor :transaction_duration_threshold def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) @enabled = args[:enabled] if args.key?(:enabled) @probe_threshold = args[:probe_threshold] if args.key?(:probe_threshold) @probing_interval_seconds = args[:probing_interval_seconds] if args.key?(:probing_interval_seconds) @running_threads_threshold = args[:running_threads_threshold] if args.key?(:running_threads_threshold) @seconds_behind_source_threshold = args[:seconds_behind_source_threshold] if args.key?(:seconds_behind_source_threshold) @transaction_duration_threshold = args[:transaction_duration_threshold] if args.key?(:transaction_duration_threshold) end end # Context to perform a point-in-time restore of an instance managed by Backup # and Disaster Recovery (DR) Service. class PointInTimeRestoreContext include Google::Apis::Core::Hashable # Optional. The name of the allocated IP range for the internal IP Cloud SQL # instance. For example: "google-managed-services-default". If you set this, # then Cloud SQL creates the IP address for the cloned instance in the allocated # range. This range must comply with [RFC 1035](https://tools.ietf.org/html/ # rfc1035) standards. Specifically, the name must be 1-63 characters long and # match the regular expression [a-z]([-a-z0-9]*[a-z0-9])?. Reserved for future # use. # Corresponds to the JSON property `allocatedIpRange` # @return [String] attr_accessor :allocated_ip_range # The Backup and Disaster Recovery (DR) Service Datasource URI. Format: projects/ # `project`/locations/`region`/backupVaults/`backupvault`/dataSources/` # datasource`. # Corresponds to the JSON property `datasource` # @return [String] attr_accessor :datasource # Required. The date and time to which you want to restore the instance. # Corresponds to the JSON property `pointInTime` # @return [String] attr_accessor :point_in_time # Optional. Point-in-time recovery of a regional instance in the specified zones. # If not specified, clone to the same secondary zone as the source instance. # This value cannot be the same as the preferred_zone field. # Corresponds to the JSON property `preferredSecondaryZone` # @return [String] attr_accessor :preferred_secondary_zone # Optional. Point-in-time recovery of an instance to the specified zone. If no # zone is specified, then clone to the same primary zone as the source instance. # Corresponds to the JSON property `preferredZone` # @return [String] attr_accessor :preferred_zone # Optional. The resource link for the VPC network from which the Cloud SQL # instance is accessible for private IP. For example, `/projects/myProject/ # global/networks/default`. # Corresponds to the JSON property `privateNetwork` # @return [String] attr_accessor :private_network # Target instance name. # Corresponds to the JSON property `targetInstance` # @return [String] attr_accessor :target_instance def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) @allocated_ip_range = args[:allocated_ip_range] if args.key?(:allocated_ip_range) @datasource = args[:datasource] if args.key?(:datasource) @point_in_time = args[:point_in_time] if args.key?(:point_in_time) @preferred_secondary_zone = args[:preferred_secondary_zone] if args.key?(:preferred_secondary_zone) @preferred_zone = args[:preferred_zone] if args.key?(:preferred_zone) @private_network = args[:private_network] if args.key?(:private_network) @target_instance = args[:target_instance] if args.key?(:target_instance) end end # Details of a single read pool node of a read pool. class PoolNodeConfig include Google::Apis::Core::Hashable # Output only. The DNS name of the read pool node. # Corresponds to the JSON property `dnsName` # @return [String] attr_accessor :dns_name # Output only. The list of DNS names used by this read pool node. # Corresponds to the JSON property `dnsNames` # @return [Array] attr_accessor :dns_names # Output only. The zone of the read pool node. # Corresponds to the JSON property `gceZone` # @return [String] attr_accessor :gce_zone # Output only. Mappings containing IP addresses that can be used to connect to # the read pool node. # Corresponds to the JSON property `ipAddresses` # @return [Array] attr_accessor :ip_addresses # Output only. The name of the read pool node, to be used for retrieving metrics # and logs. # Corresponds to the JSON property `name` # @return [String] attr_accessor :name # Output only. The list of settings for requested automatically-setup Private # Service Connect (PSC) consumer endpoints that can be used to connect to this # read pool node. # Corresponds to the JSON property `pscAutoConnections` # @return [Array] attr_accessor :psc_auto_connections # Output only. The Private Service Connect (PSC) service attachment of the read # pool node. # Corresponds to the JSON property `pscServiceAttachmentLink` # @return [String] attr_accessor :psc_service_attachment_link # Output only. The current state of the read pool node. # Corresponds to the JSON property `state` # @return [String] attr_accessor :state def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) @dns_name = args[:dns_name] if args.key?(:dns_name) @dns_names = args[:dns_names] if args.key?(:dns_names) @gce_zone = args[:gce_zone] if args.key?(:gce_zone) @ip_addresses = args[:ip_addresses] if args.key?(:ip_addresses) @name = args[:name] if args.key?(:name) @psc_auto_connections = args[:psc_auto_connections] if args.key?(:psc_auto_connections) @psc_service_attachment_link = args[:psc_service_attachment_link] if args.key?(:psc_service_attachment_link) @state = args[:state] if args.key?(:state) end end # Pre-check major version upgrade context. class PreCheckMajorVersionUpgradeContext include Google::Apis::Core::Hashable # Optional. This is always `sql#preCheckMajorVersionUpgradeContext`. # Corresponds to the JSON property `kind` # @return [String] attr_accessor :kind # Output only. The responses from the precheck operation. # Corresponds to the JSON property `preCheckResponse` # @return [Array] attr_accessor :pre_check_response # Required. The target database version to upgrade to. # Corresponds to the JSON property `targetDatabaseVersion` # @return [String] attr_accessor :target_database_version def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) @kind = args[:kind] if args.key?(:kind) @pre_check_response = args[:pre_check_response] if args.key?(:pre_check_response) @target_database_version = args[:target_database_version] if args.key?(:target_database_version) end end # Structured PreCheckResponse containing message, type, and required actions. class PreCheckResponse include Google::Apis::Core::Hashable # The actions that the user needs to take. Use repeated for multiple actions. # Corresponds to the JSON property `actionsRequired` # @return [Array] attr_accessor :actions_required # The message to be displayed to the user. # Corresponds to the JSON property `message` # @return [String] attr_accessor :message # The type of message whether it is an info, warning, or error. # Corresponds to the JSON property `messageType` # @return [String] attr_accessor :message_type def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) @actions_required = args[:actions_required] if args.key?(:actions_required) @message = args[:message] if args.key?(:message) @message_type = args[:message_type] if args.key?(:message_type) end end # Settings for an automatically-setup Private Service Connect consumer endpoint # that is used to connect to a Cloud SQL instance. class PscAutoConnectionConfig include Google::Apis::Core::Hashable # Optional. The consumer network of this consumer endpoint. This must be a # resource path that includes both the host project and the network name. For # example, `projects/project1/global/networks/network1`. The consumer host # project of this network might be different from the consumer service project. # Corresponds to the JSON property `consumerNetwork` # @return [String] attr_accessor :consumer_network # The connection policy status of the consumer network. # Corresponds to the JSON property `consumerNetworkStatus` # @return [String] attr_accessor :consumer_network_status # Optional. This is the project ID of consumer service project of this consumer # endpoint. Optional. This is only applicable if consumer_network is a shared # vpc network. # Corresponds to the JSON property `consumerProject` # @return [String] attr_accessor :consumer_project # The IP address of the consumer endpoint. # Corresponds to the JSON property `ipAddress` # @return [String] attr_accessor :ip_address # The connection status of the consumer endpoint. # Corresponds to the JSON property `status` # @return [String] attr_accessor :status def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) @consumer_network = args[:consumer_network] if args.key?(:consumer_network) @consumer_network_status = args[:consumer_network_status] if args.key?(:consumer_network_status) @consumer_project = args[:consumer_project] if args.key?(:consumer_project) @ip_address = args[:ip_address] if args.key?(:ip_address) @status = args[:status] if args.key?(:status) end end # PSC settings for a Cloud SQL instance. class PscConfig include Google::Apis::Core::Hashable # Optional. The list of consumer projects that are allow-listed for PSC # connections to this instance. This instance can be connected to with PSC from # any network in these projects. Each consumer project in this list may be # represented by a project number (numeric) or by a project id (alphanumeric). # Corresponds to the JSON property `allowedConsumerProjects` # @return [Array] attr_accessor :allowed_consumer_projects # Optional. The network attachment of the consumer network that the Private # Service Connect enabled Cloud SQL instance is authorized to connect via PSC # interface. format: projects/PROJECT/regions/REGION/networkAttachments/ID # Corresponds to the JSON property `networkAttachmentUri` # @return [String] attr_accessor :network_attachment_uri # Optional. The list of settings for requested Private Service Connect consumer # endpoints that can be used to connect to this Cloud SQL instance. # Corresponds to the JSON property `pscAutoConnections` # @return [Array] attr_accessor :psc_auto_connections # Whether PSC connectivity is enabled for this instance. # Corresponds to the JSON property `pscEnabled` # @return [Boolean] attr_accessor :psc_enabled alias_method :psc_enabled?, :psc_enabled def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) @allowed_consumer_projects = args[:allowed_consumer_projects] if args.key?(:allowed_consumer_projects) @network_attachment_uri = args[:network_attachment_uri] if args.key?(:network_attachment_uri) @psc_auto_connections = args[:psc_auto_connections] if args.key?(:psc_auto_connections) @psc_enabled = args[:psc_enabled] if args.key?(:psc_enabled) end end # QueryResult contains the result of executing a single SQL statement. class QueryResult include Google::Apis::Core::Hashable # List of columns included in the result. This also includes the data type of # the column. # Corresponds to the JSON property `columns` # @return [Array] attr_accessor :columns # Message related to the SQL execution result. # Corresponds to the JSON property `message` # @return [String] attr_accessor :message # Set to true if the SQL execution's result is truncated due to size limits or # an error retrieving results. # Corresponds to the JSON property `partialResult` # @return [Boolean] attr_accessor :partial_result alias_method :partial_result?, :partial_result # Rows returned by the SQL statement. # Corresponds to the JSON property `rows` # @return [Array] attr_accessor :rows # The `Status` type defines a logical error model that is suitable for different # programming environments, including REST APIs and RPC APIs. It is used by [ # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of # data: error code, error message, and error details. You can find out more # about this error model and how to work with it in the [API Design Guide](https: # //cloud.google.com/apis/design/errors). # Corresponds to the JSON property `status` # @return [Google::Apis::SqladminV1beta4::Status] attr_accessor :status def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) @columns = args[:columns] if args.key?(:columns) @message = args[:message] if args.key?(:message) @partial_result = args[:partial_result] if args.key?(:partial_result) @rows = args[:rows] if args.key?(:rows) @status = args[:status] if args.key?(:status) end end # The read pool auto-scale configuration. class ReadPoolAutoScaleConfig include Google::Apis::Core::Hashable # Indicates whether read pool auto scaling supports scale in operations ( # removing nodes). # Corresponds to the JSON property `disableScaleIn` # @return [Boolean] attr_accessor :disable_scale_in alias_method :disable_scale_in?, :disable_scale_in # Indicates whether read pool auto scaling is enabled. # Corresponds to the JSON property `enabled` # @return [Boolean] attr_accessor :enabled alias_method :enabled?, :enabled # Maximum number of read pool nodes to be maintained. # Corresponds to the JSON property `maxNodeCount` # @return [Fixnum] attr_accessor :max_node_count # Minimum number of read pool nodes to be maintained. # Corresponds to the JSON property `minNodeCount` # @return [Fixnum] attr_accessor :min_node_count # The cooldown period for scale in operations. # Corresponds to the JSON property `scaleInCooldownSeconds` # @return [Fixnum] attr_accessor :scale_in_cooldown_seconds # The cooldown period for scale out operations. # Corresponds to the JSON property `scaleOutCooldownSeconds` # @return [Fixnum] attr_accessor :scale_out_cooldown_seconds # Optional. Target metrics for read pool auto scaling. # Corresponds to the JSON property `targetMetrics` # @return [Array] attr_accessor :target_metrics def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) @disable_scale_in = args[:disable_scale_in] if args.key?(:disable_scale_in) @enabled = args[:enabled] if args.key?(:enabled) @max_node_count = args[:max_node_count] if args.key?(:max_node_count) @min_node_count = args[:min_node_count] if args.key?(:min_node_count) @scale_in_cooldown_seconds = args[:scale_in_cooldown_seconds] if args.key?(:scale_in_cooldown_seconds) @scale_out_cooldown_seconds = args[:scale_out_cooldown_seconds] if args.key?(:scale_out_cooldown_seconds) @target_metrics = args[:target_metrics] if args.key?(:target_metrics) end end # Read-replica configuration for connecting to the primary instance. class ReplicaConfiguration include Google::Apis::Core::Hashable # Optional. Specifies if a SQL Server replica is a cascadable replica. A # cascadable replica is a SQL Server cross region replica that supports replica( # s) under it. # Corresponds to the JSON property `cascadableReplica` # @return [Boolean] attr_accessor :cascadable_replica alias_method :cascadable_replica?, :cascadable_replica # Specifies if the replica is the failover target. If the field is set to `true` # the replica will be designated as a failover replica. In case the primary # instance fails, the replica instance will be promoted as the new primary # instance. Only one replica can be specified as failover target, and the # replica has to be in different zone with the primary instance. # Corresponds to the JSON property `failoverTarget` # @return [Boolean] attr_accessor :failover_target alias_method :failover_target?, :failover_target # This is always `sql#replicaConfiguration`. # Corresponds to the JSON property `kind` # @return [String] attr_accessor :kind # Read-replica configuration specific to MySQL databases. # Corresponds to the JSON property `mysqlReplicaConfiguration` # @return [Google::Apis::SqladminV1beta4::MySqlReplicaConfiguration] attr_accessor :mysql_replica_configuration def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) @cascadable_replica = args[:cascadable_replica] if args.key?(:cascadable_replica) @failover_target = args[:failover_target] if args.key?(:failover_target) @kind = args[:kind] if args.key?(:kind) @mysql_replica_configuration = args[:mysql_replica_configuration] if args.key?(:mysql_replica_configuration) end end # A primary instance and disaster recovery (DR) replica pair. A DR replica is a # cross-region replica that you designate for failover in the event that the # primary instance has regional failure. Applicable to MySQL and PostgreSQL. class ReplicationCluster include Google::Apis::Core::Hashable # Output only. Read-only field that indicates whether the replica is a DR # replica. This field is not set if the instance is a primary instance. # Corresponds to the JSON property `drReplica` # @return [Boolean] attr_accessor :dr_replica alias_method :dr_replica?, :dr_replica # Optional. If the instance is a primary instance, then this field identifies # the disaster recovery (DR) replica. A DR replica is an optional configuration # for Enterprise Plus edition instances. If the instance is a read replica, then # the field is not set. Set this field to a replica name to designate a DR # replica for a primary instance. Remove the replica name to remove the DR # replica designation. # Corresponds to the JSON property `failoverDrReplicaName` # @return [String] attr_accessor :failover_dr_replica_name # Output only. If set, this field indicates this instance has a private service # access (PSA) DNS endpoint that is pointing to the primary instance of the # cluster. If this instance is the primary, then the DNS endpoint points to this # instance. After a switchover or replica failover operation, this DNS endpoint # points to the promoted instance. This is a read-only field, returned to the # user as information. This field can exist even if a standalone instance doesn' # t have a DR replica yet or the DR replica is deleted. # Corresponds to the JSON property `psaWriteEndpoint` # @return [String] attr_accessor :psa_write_endpoint def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) @dr_replica = args[:dr_replica] if args.key?(:dr_replica) @failover_dr_replica_name = args[:failover_dr_replica_name] if args.key?(:failover_dr_replica_name) @psa_write_endpoint = args[:psa_write_endpoint] if args.key?(:psa_write_endpoint) end end # class Reschedule include Google::Apis::Core::Hashable # Required. The type of the reschedule. # Corresponds to the JSON property `rescheduleType` # @return [String] attr_accessor :reschedule_type # Optional. Timestamp when the maintenance shall be rescheduled to if # reschedule_type=SPECIFIC_TIME, in [RFC 3339](https://tools.ietf.org/html/ # rfc3339) format, for example `2012-11-15T16:19:00.094Z`. # Corresponds to the JSON property `scheduleTime` # @return [String] attr_accessor :schedule_time def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) @reschedule_type = args[:reschedule_type] if args.key?(:reschedule_type) @schedule_time = args[:schedule_time] if args.key?(:schedule_time) end end # Database instance restore from backup context. Backup context contains source # instance id and project id. class RestoreBackupContext include Google::Apis::Core::Hashable # The ID of the backup run to restore from. # Corresponds to the JSON property `backupRunId` # @return [Fixnum] attr_accessor :backup_run_id # The ID of the instance that the backup was taken from. # Corresponds to the JSON property `instanceId` # @return [String] attr_accessor :instance_id # This is always `sql#restoreBackupContext`. # Corresponds to the JSON property `kind` # @return [String] attr_accessor :kind # The full project ID of the source instance. # Corresponds to the JSON property `project` # @return [String] attr_accessor :project def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) @backup_run_id = args[:backup_run_id] if args.key?(:backup_run_id) @instance_id = args[:instance_id] if args.key?(:instance_id) @kind = args[:kind] if args.key?(:kind) @project = args[:project] if args.key?(:project) end end # Instance rotate Entra ID certificate context. class RotateEntraIdCertificateContext include Google::Apis::Core::Hashable # Optional. This is always `sql#rotateEntraIdCertificateContext`. # Corresponds to the JSON property `kind` # @return [String] attr_accessor :kind # Optional. The fingerprint of the next version to be rotated to. If left # unspecified, will be rotated to the most recently added Entra ID certificate # version. # Corresponds to the JSON property `nextVersion` # @return [String] attr_accessor :next_version def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) @kind = args[:kind] if args.key?(:kind) @next_version = args[:next_version] if args.key?(:next_version) end end # Instance rotate server CA context. class RotateServerCaContext include Google::Apis::Core::Hashable # This is always `sql#rotateServerCaContext`. # Corresponds to the JSON property `kind` # @return [String] attr_accessor :kind # The fingerprint of the next version to be rotated to. If left unspecified, # will be rotated to the most recently added server CA version. # Corresponds to the JSON property `nextVersion` # @return [String] attr_accessor :next_version def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) @kind = args[:kind] if args.key?(:kind) @next_version = args[:next_version] if args.key?(:next_version) end end # Instance rotate server certificate context. class RotateServerCertificateContext include Google::Apis::Core::Hashable # Optional. This is always `sql#rotateServerCertificateContext`. # Corresponds to the JSON property `kind` # @return [String] attr_accessor :kind # Optional. The fingerprint of the next version to be rotated to. If left # unspecified, will be rotated to the most recently added server certificate # version. # Corresponds to the JSON property `nextVersion` # @return [String] attr_accessor :next_version def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) @kind = args[:kind] if args.key?(:kind) @next_version = args[:next_version] if args.key?(:next_version) end end # Contains the values for a row. class Row include Google::Apis::Core::Hashable # The values for the row. # Corresponds to the JSON property `values` # @return [Array] attr_accessor :values def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) @values = args[:values] if args.key?(:values) end end # A list of objects that the user selects for replication from an external # source instance. class SelectedObjects include Google::Apis::Core::Hashable # Required. The name of the database to migrate. # Corresponds to the JSON property `database` # @return [String] attr_accessor :database def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) @database = args[:database] if args.key?(:database) end end # Database instance settings. class Settings include Google::Apis::Core::Hashable # The activation policy specifies when the instance is activated; it is # applicable only when the instance state is RUNNABLE. Valid values: * `ALWAYS`: # The instance is on, and remains so even in the absence of connection requests. # * `NEVER`: The instance is off; it is not activated, even if a connection # request arrives. # Corresponds to the JSON property `activationPolicy` # @return [String] attr_accessor :activation_policy # Active Directory configuration, relevant only for Cloud SQL for SQL Server. # Corresponds to the JSON property `activeDirectoryConfig` # @return [Google::Apis::SqladminV1beta4::SqlActiveDirectoryConfig] attr_accessor :active_directory_config # Specifies options for controlling advanced machine features. # Corresponds to the JSON property `advancedMachineFeatures` # @return [Google::Apis::SqladminV1beta4::AdvancedMachineFeatures] attr_accessor :advanced_machine_features # The App Engine app IDs that can access this instance. (Deprecated) Applied to # First Generation instances only. # Corresponds to the JSON property `authorizedGaeApplications` # @return [Array] attr_accessor :authorized_gae_applications # Optional. Cloud SQL for MySQL auto-upgrade configuration. When this parameter # is set to true, auto-upgrade is enabled for MySQL 8.0 minor versions. The # MySQL version must be 8.0.35 or higher. # Corresponds to the JSON property `autoUpgradeEnabled` # @return [Boolean] attr_accessor :auto_upgrade_enabled alias_method :auto_upgrade_enabled?, :auto_upgrade_enabled # Availability type. Potential values: * `ZONAL`: The instance serves data from # only one zone. Outages in that zone affect data accessibility. * `REGIONAL`: # The instance can serve data from more than one zone in a region (it is highly # available)./ For more information, see [Overview of the High Availability # Configuration](https://cloud.google.com/sql/docs/mysql/high-availability). # Corresponds to the JSON property `availabilityType` # @return [String] attr_accessor :availability_type # Database instance backup configuration. # Corresponds to the JSON property `backupConfiguration` # @return [Google::Apis::SqladminV1beta4::BackupConfiguration] attr_accessor :backup_configuration # The name of server Instance collation. # Corresponds to the JSON property `collation` # @return [String] attr_accessor :collation # The managed connection pooling configuration. # Corresponds to the JSON property `connectionPoolConfig` # @return [Google::Apis::SqladminV1beta4::ConnectionPoolConfig] attr_accessor :connection_pool_config # Specifies if connections must use Cloud SQL connectors. Option values include # the following: `NOT_REQUIRED` (Cloud SQL instances can be connected without # Cloud SQL Connectors) and `REQUIRED` (Only allow connections that use Cloud # SQL Connectors) Note that using REQUIRED disables all existing authorized # networks. If this field is not specified when creating a new instance, # NOT_REQUIRED is used. If this field is not specified when patching or updating # an existing instance, it is left unchanged in the instance. # Corresponds to the JSON property `connectorEnforcement` # @return [String] attr_accessor :connector_enforcement # Configuration specific to read replica instances. Indicates whether database # flags for crash-safe replication are enabled. This property was only # applicable to First Generation instances. # Corresponds to the JSON property `crashSafeReplicationEnabled` # @return [Boolean] attr_accessor :crash_safe_replication_enabled alias_method :crash_safe_replication_enabled?, :crash_safe_replication_enabled # This parameter controls whether to allow using ExecuteSql API to connect to # the instance. Not allowed by default. # Corresponds to the JSON property `dataApiAccess` # @return [String] attr_accessor :data_api_access # Data cache configurations. # Corresponds to the JSON property `dataCacheConfig` # @return [Google::Apis::SqladminV1beta4::DataCacheConfig] attr_accessor :data_cache_config # Optional. Provisioned number of I/O operations per second for the data disk. # This field is only used for hyperdisk-balanced disk types. # Corresponds to the JSON property `dataDiskProvisionedIops` # @return [Fixnum] attr_accessor :data_disk_provisioned_iops # Optional. Provisioned throughput measured in MiB per second for the data disk. # This field is only used for hyperdisk-balanced disk types. # Corresponds to the JSON property `dataDiskProvisionedThroughput` # @return [Fixnum] attr_accessor :data_disk_provisioned_throughput # The size of data disk, in GB. The data disk size minimum is 10GB. # Corresponds to the JSON property `dataDiskSizeGb` # @return [Fixnum] attr_accessor :data_disk_size_gb # The type of data disk: `PD_SSD` (default) or `PD_HDD`. Not used for First # Generation instances. # Corresponds to the JSON property `dataDiskType` # @return [String] attr_accessor :data_disk_type # The database flags passed to the instance at startup. # Corresponds to the JSON property `databaseFlags` # @return [Array] attr_accessor :database_flags # Configuration specific to read replica instances. Indicates whether # replication is enabled or not. WARNING: Changing this restarts the instance. # Corresponds to the JSON property `databaseReplicationEnabled` # @return [Boolean] attr_accessor :database_replication_enabled alias_method :database_replication_enabled?, :database_replication_enabled # Configuration to protect against accidental instance deletion. # Corresponds to the JSON property `deletionProtectionEnabled` # @return [Boolean] attr_accessor :deletion_protection_enabled alias_method :deletion_protection_enabled?, :deletion_protection_enabled # Deny maintenance periods # Corresponds to the JSON property `denyMaintenancePeriods` # @return [Array] attr_accessor :deny_maintenance_periods # Optional. The edition of the instance. # Corresponds to the JSON property `edition` # @return [String] attr_accessor :edition # Optional. By default, Cloud SQL instances have schema extraction disabled for # Dataplex. When this parameter is set to true, schema extraction for Dataplex # on Cloud SQL instances is activated. # Corresponds to the JSON property `enableDataplexIntegration` # @return [Boolean] attr_accessor :enable_dataplex_integration alias_method :enable_dataplex_integration?, :enable_dataplex_integration # Optional. When this parameter is set to true, Cloud SQL instances can connect # to Vertex AI to pass requests for real-time predictions and insights to the AI. # The default value is false. This applies only to Cloud SQL for MySQL and # Cloud SQL for PostgreSQL instances. # Corresponds to the JSON property `enableGoogleMlIntegration` # @return [Boolean] attr_accessor :enable_google_ml_integration alias_method :enable_google_ml_integration?, :enable_google_ml_integration # SQL Server Entra ID configuration. # Corresponds to the JSON property `entraidConfig` # @return [Google::Apis::SqladminV1beta4::SqlServerEntraIdConfig] attr_accessor :entraid_config # Config used to determine the final backup settings for the instance. # Corresponds to the JSON property `finalBackupConfig` # @return [Google::Apis::SqladminV1beta4::FinalBackupConfig] attr_accessor :final_backup_config # Insights configuration. This specifies when Cloud SQL Insights feature is # enabled and optional configuration. # Corresponds to the JSON property `insightsConfig` # @return [Google::Apis::SqladminV1beta4::InsightsConfig] attr_accessor :insights_config # IP Management configuration. # Corresponds to the JSON property `ipConfiguration` # @return [Google::Apis::SqladminV1beta4::IpConfiguration] attr_accessor :ip_configuration # This is always `sql#settings`. # Corresponds to the JSON property `kind` # @return [String] attr_accessor :kind # Preferred location. This specifies where a Cloud SQL instance is located. 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. # Corresponds to the JSON property `locationPreference` # @return [Google::Apis::SqladminV1beta4::LocationPreference] attr_accessor :location_preference # Maintenance window. This specifies when a Cloud SQL instance is restarted for # system maintenance purposes. # Corresponds to the JSON property `maintenanceWindow` # @return [Google::Apis::SqladminV1beta4::MaintenanceWindow] attr_accessor :maintenance_window # Database instance local user password validation policy. This message defines # the password policy for local database users. When enabled, it enforces # constraints on password complexity, length, and reuse. Keep this policy # enabled to help prevent unauthorized access. # Corresponds to the JSON property `passwordValidationPolicy` # @return [Google::Apis::SqladminV1beta4::PasswordValidationPolicy] attr_accessor :password_validation_policy # Performance Capture configuration. # Corresponds to the JSON property `performanceCaptureConfig` # @return [Google::Apis::SqladminV1beta4::PerformanceCaptureConfig] attr_accessor :performance_capture_config # The pricing plan for this instance. This can be either `PER_USE` or `PACKAGE`. # Only `PER_USE` is supported for Second Generation instances. # Corresponds to the JSON property `pricingPlan` # @return [String] attr_accessor :pricing_plan # The read pool auto-scale configuration. # Corresponds to the JSON property `readPoolAutoScaleConfig` # @return [Google::Apis::SqladminV1beta4::ReadPoolAutoScaleConfig] attr_accessor :read_pool_auto_scale_config # Optional. Configuration value for recreation of replica after certain # replication lag. # Corresponds to the JSON property `replicationLagMaxSeconds` # @return [Fixnum] attr_accessor :replication_lag_max_seconds # The type of replication this instance uses. This can be either `ASYNCHRONOUS` # or `SYNCHRONOUS`. (Deprecated) This property was only applicable to First # Generation instances. # Corresponds to the JSON property `replicationType` # @return [String] attr_accessor :replication_type # Optional. When this parameter is set to true, Cloud SQL retains backups of the # instance even after the instance is deleted. The ON_DEMAND backup will be # retained until customer deletes the backup or the project. The AUTOMATED # backup will be retained based on the backups retention setting. # Corresponds to the JSON property `retainBackupsOnDelete` # @return [Boolean] attr_accessor :retain_backups_on_delete alias_method :retain_backups_on_delete?, :retain_backups_on_delete # 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. # Corresponds to the JSON property `settingsVersion` # @return [Fixnum] attr_accessor :settings_version # SQL Server specific audit configuration. # Corresponds to the JSON property `sqlServerAuditConfig` # @return [Google::Apis::SqladminV1beta4::SqlServerAuditConfig] attr_accessor :sql_server_audit_config # Configuration to increase storage size automatically. The default value is # true. # Corresponds to the JSON property `storageAutoResize` # @return [Boolean] attr_accessor :storage_auto_resize alias_method :storage_auto_resize?, :storage_auto_resize # The maximum size to which storage capacity can be automatically increased. The # default value is 0, which specifies that there is no limit. # Corresponds to the JSON property `storageAutoResizeLimit` # @return [Fixnum] attr_accessor :storage_auto_resize_limit # The tier (or machine type) for this instance, for example `db-custom-1-3840`. # WARNING: Changing this restarts the instance. # Corresponds to the JSON property `tier` # @return [String] attr_accessor :tier # Server timezone, relevant only for Cloud SQL for SQL Server. # Corresponds to the JSON property `timeZone` # @return [String] attr_accessor :time_zone # User-provided labels, represented as a dictionary where each label is a single # key value pair. # Corresponds to the JSON property `userLabels` # @return [Hash] attr_accessor :user_labels def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) @activation_policy = args[:activation_policy] if args.key?(:activation_policy) @active_directory_config = args[:active_directory_config] if args.key?(:active_directory_config) @advanced_machine_features = args[:advanced_machine_features] if args.key?(:advanced_machine_features) @authorized_gae_applications = args[:authorized_gae_applications] if args.key?(:authorized_gae_applications) @auto_upgrade_enabled = args[:auto_upgrade_enabled] if args.key?(:auto_upgrade_enabled) @availability_type = args[:availability_type] if args.key?(:availability_type) @backup_configuration = args[:backup_configuration] if args.key?(:backup_configuration) @collation = args[:collation] if args.key?(:collation) @connection_pool_config = args[:connection_pool_config] if args.key?(:connection_pool_config) @connector_enforcement = args[:connector_enforcement] if args.key?(:connector_enforcement) @crash_safe_replication_enabled = args[:crash_safe_replication_enabled] if args.key?(:crash_safe_replication_enabled) @data_api_access = args[:data_api_access] if args.key?(:data_api_access) @data_cache_config = args[:data_cache_config] if args.key?(:data_cache_config) @data_disk_provisioned_iops = args[:data_disk_provisioned_iops] if args.key?(:data_disk_provisioned_iops) @data_disk_provisioned_throughput = args[:data_disk_provisioned_throughput] if args.key?(:data_disk_provisioned_throughput) @data_disk_size_gb = args[:data_disk_size_gb] if args.key?(:data_disk_size_gb) @data_disk_type = args[:data_disk_type] if args.key?(:data_disk_type) @database_flags = args[:database_flags] if args.key?(:database_flags) @database_replication_enabled = args[:database_replication_enabled] if args.key?(:database_replication_enabled) @deletion_protection_enabled = args[:deletion_protection_enabled] if args.key?(:deletion_protection_enabled) @deny_maintenance_periods = args[:deny_maintenance_periods] if args.key?(:deny_maintenance_periods) @edition = args[:edition] if args.key?(:edition) @enable_dataplex_integration = args[:enable_dataplex_integration] if args.key?(:enable_dataplex_integration) @enable_google_ml_integration = args[:enable_google_ml_integration] if args.key?(:enable_google_ml_integration) @entraid_config = args[:entraid_config] if args.key?(:entraid_config) @final_backup_config = args[:final_backup_config] if args.key?(:final_backup_config) @insights_config = args[:insights_config] if args.key?(:insights_config) @ip_configuration = args[:ip_configuration] if args.key?(:ip_configuration) @kind = args[:kind] if args.key?(:kind) @location_preference = args[:location_preference] if args.key?(:location_preference) @maintenance_window = args[:maintenance_window] if args.key?(:maintenance_window) @password_validation_policy = args[:password_validation_policy] if args.key?(:password_validation_policy) @performance_capture_config = args[:performance_capture_config] if args.key?(:performance_capture_config) @pricing_plan = args[:pricing_plan] if args.key?(:pricing_plan) @read_pool_auto_scale_config = args[:read_pool_auto_scale_config] if args.key?(:read_pool_auto_scale_config) @replication_lag_max_seconds = args[:replication_lag_max_seconds] if args.key?(:replication_lag_max_seconds) @replication_type = args[:replication_type] if args.key?(:replication_type) @retain_backups_on_delete = args[:retain_backups_on_delete] if args.key?(:retain_backups_on_delete) @settings_version = args[:settings_version] if args.key?(:settings_version) @sql_server_audit_config = args[:sql_server_audit_config] if args.key?(:sql_server_audit_config) @storage_auto_resize = args[:storage_auto_resize] if args.key?(:storage_auto_resize) @storage_auto_resize_limit = args[:storage_auto_resize_limit] if args.key?(:storage_auto_resize_limit) @tier = args[:tier] if args.key?(:tier) @time_zone = args[:time_zone] if args.key?(:time_zone) @user_labels = args[:user_labels] if args.key?(:user_labels) end end # Active Directory configuration, relevant only for Cloud SQL for SQL Server. class SqlActiveDirectoryConfig include Google::Apis::Core::Hashable # Optional. The secret manager key storing the administrator credential. (e.g., # projects/`project`/secrets/`secret`). # Corresponds to the JSON property `adminCredentialSecretName` # @return [String] attr_accessor :admin_credential_secret_name # Optional. Domain controller IPv4 addresses used to bootstrap Active Directory. # Corresponds to the JSON property `dnsServers` # @return [Array] attr_accessor :dns_servers # The name of the domain (e.g., mydomain.com). # Corresponds to the JSON property `domain` # @return [String] attr_accessor :domain # This is always sql#activeDirectoryConfig. # Corresponds to the JSON property `kind` # @return [String] attr_accessor :kind # Optional. The mode of the Active Directory configuration. # Corresponds to the JSON property `mode` # @return [String] attr_accessor :mode # Optional. The organizational unit distinguished name. This is the full # hierarchical path to the organizational unit. # Corresponds to the JSON property `organizationalUnit` # @return [String] attr_accessor :organizational_unit def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) @admin_credential_secret_name = args[:admin_credential_secret_name] if args.key?(:admin_credential_secret_name) @dns_servers = args[:dns_servers] if args.key?(:dns_servers) @domain = args[:domain] if args.key?(:domain) @kind = args[:kind] if args.key?(:kind) @mode = args[:mode] if args.key?(:mode) @organizational_unit = args[:organizational_unit] if args.key?(:organizational_unit) end end # External primary instance migration setting error/warning. class SqlExternalSyncSettingError include Google::Apis::Core::Hashable # Additional information about the error encountered. # Corresponds to the JSON property `detail` # @return [String] attr_accessor :detail # Can be `sql#externalSyncSettingError` or `sql#externalSyncSettingWarning`. # Corresponds to the JSON property `kind` # @return [String] attr_accessor :kind # Identifies the specific error that occurred. # Corresponds to the JSON property `type` # @return [String] attr_accessor :type def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) @detail = args[:detail] if args.key?(:detail) @kind = args[:kind] if args.key?(:kind) @type = args[:type] if args.key?(:type) end end # Acquire SSRS lease response. class SqlInstancesAcquireSsrsLeaseResponse include Google::Apis::Core::Hashable # The unique identifier for this operation. # Corresponds to the JSON property `operationId` # @return [String] attr_accessor :operation_id def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) @operation_id = args[:operation_id] if args.key?(:operation_id) end end # Execute SQL statements response. class SqlInstancesExecuteSqlResponse include Google::Apis::Core::Hashable # A list of notices and warnings generated during query execution. For # PostgreSQL, this includes all notices and warnings. For MySQL, this includes # warnings generated by the last executed statement. To retrieve all warnings # for a multi-statement query, `SHOW WARNINGS` must be executed after each # statement. # Corresponds to the JSON property `messages` # @return [Array] attr_accessor :messages # The additional metadata information regarding the execution of the SQL # statements. # Corresponds to the JSON property `metadata` # @return [Google::Apis::SqladminV1beta4::Metadata] attr_accessor :metadata # The list of results after executing all the SQL statements. # Corresponds to the JSON property `results` # @return [Array] attr_accessor :results # The `Status` type defines a logical error model that is suitable for different # programming environments, including REST APIs and RPC APIs. It is used by [ # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of # data: error code, error message, and error details. You can find out more # about this error model and how to work with it in the [API Design Guide](https: # //cloud.google.com/apis/design/errors). # Corresponds to the JSON property `status` # @return [Google::Apis::SqladminV1beta4::Status] attr_accessor :status def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) @messages = args[:messages] if args.key?(:messages) @metadata = args[:metadata] if args.key?(:metadata) @results = args[:results] if args.key?(:results) @status = args[:status] if args.key?(:status) end end # Instance get disk shrink config response. class SqlInstancesGetDiskShrinkConfigResponse include Google::Apis::Core::Hashable # This is always `sql#getDiskShrinkConfig`. # Corresponds to the JSON property `kind` # @return [String] attr_accessor :kind # Additional message to customers. # Corresponds to the JSON property `message` # @return [String] attr_accessor :message # The minimum size to which a disk can be shrunk in GigaBytes. # Corresponds to the JSON property `minimalTargetSizeGb` # @return [Fixnum] attr_accessor :minimal_target_size_gb def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) @kind = args[:kind] if args.key?(:kind) @message = args[:message] if args.key?(:message) @minimal_target_size_gb = args[:minimal_target_size_gb] if args.key?(:minimal_target_size_gb) end end # Instance get latest recovery time response. class SqlInstancesGetLatestRecoveryTimeResponse include Google::Apis::Core::Hashable # Timestamp, identifies the earliest recovery time of the source instance. # Corresponds to the JSON property `earliestRecoveryTime` # @return [String] attr_accessor :earliest_recovery_time # This is always `sql#getLatestRecoveryTime`. # Corresponds to the JSON property `kind` # @return [String] attr_accessor :kind # Timestamp, identifies the latest recovery time of the source instance. # Corresponds to the JSON property `latestRecoveryTime` # @return [String] attr_accessor :latest_recovery_time def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) @earliest_recovery_time = args[:earliest_recovery_time] if args.key?(:earliest_recovery_time) @kind = args[:kind] if args.key?(:kind) @latest_recovery_time = args[:latest_recovery_time] if args.key?(:latest_recovery_time) end end # The response for the release of the SSRS lease. class SqlInstancesReleaseSsrsLeaseResponse include Google::Apis::Core::Hashable # The operation ID. # Corresponds to the JSON property `operationId` # @return [String] attr_accessor :operation_id def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) @operation_id = args[:operation_id] if args.key?(:operation_id) end end # Reschedule options for maintenance windows. class SqlInstancesRescheduleMaintenanceRequestBody include Google::Apis::Core::Hashable # Required. The type of the reschedule the user wants. # Corresponds to the JSON property `reschedule` # @return [Google::Apis::SqladminV1beta4::Reschedule] attr_accessor :reschedule def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) @reschedule = args[:reschedule] if args.key?(:reschedule) end end # Instance reset replica size request. class SqlInstancesResetReplicaSizeRequest include Google::Apis::Core::Hashable def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) end end # class SqlInstancesStartExternalSyncRequest include Google::Apis::Core::Hashable # Optional. MigrationType configures the migration to use physical files or # logical dump files. If not set, then the logical dump file configuration is # used. Valid values are `LOGICAL` or `PHYSICAL`. Only applicable to MySQL. # Corresponds to the JSON property `migrationType` # @return [String] attr_accessor :migration_type # MySQL-specific external server sync settings. # Corresponds to the JSON property `mysqlSyncConfig` # @return [Google::Apis::SqladminV1beta4::MySqlSyncConfig] attr_accessor :mysql_sync_config # Optional. MySQL only. True if end-user has confirmed that this SES call will # wipe replica databases overlapping with the proposed selected_objects. If this # field is not set and there are both overlapping and additional databases # proposed, an error will be returned. # Corresponds to the JSON property `replicaOverwriteEnabled` # @return [Boolean] attr_accessor :replica_overwrite_enabled alias_method :replica_overwrite_enabled?, :replica_overwrite_enabled # Whether to skip the verification step (VESS). # Corresponds to the JSON property `skipVerification` # @return [Boolean] attr_accessor :skip_verification alias_method :skip_verification?, :skip_verification # External sync mode. # Corresponds to the JSON property `syncMode` # @return [String] attr_accessor :sync_mode # Optional. Parallel level for initial data sync. Currently only applicable for # MySQL. # Corresponds to the JSON property `syncParallelLevel` # @return [String] attr_accessor :sync_parallel_level def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) @migration_type = args[:migration_type] if args.key?(:migration_type) @mysql_sync_config = args[:mysql_sync_config] if args.key?(:mysql_sync_config) @replica_overwrite_enabled = args[:replica_overwrite_enabled] if args.key?(:replica_overwrite_enabled) @skip_verification = args[:skip_verification] if args.key?(:skip_verification) @sync_mode = args[:sync_mode] if args.key?(:sync_mode) @sync_parallel_level = args[:sync_parallel_level] if args.key?(:sync_parallel_level) end end # class SqlInstancesVerifyExternalSyncSettingsRequest include Google::Apis::Core::Hashable # Optional. MigrationType configures the migration to use physical files or # logical dump files. If not set, then the logical dump file configuration is # used. Valid values are `LOGICAL` or `PHYSICAL`. Only applicable to MySQL. # Corresponds to the JSON property `migrationType` # @return [String] attr_accessor :migration_type # MySQL-specific external server sync settings. # Corresponds to the JSON property `mysqlSyncConfig` # @return [Google::Apis::SqladminV1beta4::MySqlSyncConfig] attr_accessor :mysql_sync_config # Optional. Migrate only the specified objects from the source instance. If this # field is empty, then migrate all objects. # Corresponds to the JSON property `selectedObjects` # @return [Array] attr_accessor :selected_objects # External sync mode # Corresponds to the JSON property `syncMode` # @return [String] attr_accessor :sync_mode # Optional. Parallel level for initial data sync. Only applicable for PostgreSQL. # Corresponds to the JSON property `syncParallelLevel` # @return [String] attr_accessor :sync_parallel_level # Flag to enable verifying connection only # Corresponds to the JSON property `verifyConnectionOnly` # @return [Boolean] attr_accessor :verify_connection_only alias_method :verify_connection_only?, :verify_connection_only # Optional. Flag to verify settings required by replication setup only # Corresponds to the JSON property `verifyReplicationOnly` # @return [Boolean] attr_accessor :verify_replication_only alias_method :verify_replication_only?, :verify_replication_only def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) @migration_type = args[:migration_type] if args.key?(:migration_type) @mysql_sync_config = args[:mysql_sync_config] if args.key?(:mysql_sync_config) @selected_objects = args[:selected_objects] if args.key?(:selected_objects) @sync_mode = args[:sync_mode] if args.key?(:sync_mode) @sync_parallel_level = args[:sync_parallel_level] if args.key?(:sync_parallel_level) @verify_connection_only = args[:verify_connection_only] if args.key?(:verify_connection_only) @verify_replication_only = args[:verify_replication_only] if args.key?(:verify_replication_only) end end # Instance verify external sync settings response. class SqlInstancesVerifyExternalSyncSettingsResponse include Google::Apis::Core::Hashable # List of migration violations. # Corresponds to the JSON property `errors` # @return [Array] attr_accessor :errors # This is always `sql#migrationSettingErrorList`. # Corresponds to the JSON property `kind` # @return [String] attr_accessor :kind # List of migration warnings. # Corresponds to the JSON property `warnings` # @return [Array] attr_accessor :warnings def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) @errors = args[:errors] if args.key?(:errors) @kind = args[:kind] if args.key?(:kind) @warnings = args[:warnings] if args.key?(:warnings) end end # This message wraps up the information written by out-of-disk detection job. class SqlOutOfDiskReport include Google::Apis::Core::Hashable # The minimum recommended increase size in GigaBytes This field is consumed by # the frontend * Writers: * the proactive database wellness job for OOD. * # Readers: # Corresponds to the JSON property `sqlMinRecommendedIncreaseSizeGb` # @return [Fixnum] attr_accessor :sql_min_recommended_increase_size_gb # This field represents the state generated by the proactive database wellness # job for OutOfDisk issues. * Writers: * the proactive database wellness job for # OOD. * Readers: * the proactive database wellness job # Corresponds to the JSON property `sqlOutOfDiskState` # @return [String] attr_accessor :sql_out_of_disk_state def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) @sql_min_recommended_increase_size_gb = args[:sql_min_recommended_increase_size_gb] if args.key?(:sql_min_recommended_increase_size_gb) @sql_out_of_disk_state = args[:sql_out_of_disk_state] if args.key?(:sql_out_of_disk_state) end end # Any scheduled maintenance for this instance. class SqlScheduledMaintenance include Google::Apis::Core::Hashable # # Corresponds to the JSON property `canDefer` # @return [Boolean] attr_accessor :can_defer alias_method :can_defer?, :can_defer # If the scheduled maintenance can be rescheduled. # Corresponds to the JSON property `canReschedule` # @return [Boolean] attr_accessor :can_reschedule alias_method :can_reschedule?, :can_reschedule # Maintenance cannot be rescheduled to start beyond this deadline. # Corresponds to the JSON property `scheduleDeadlineTime` # @return [String] attr_accessor :schedule_deadline_time # The start time of any upcoming scheduled maintenance for this instance. # Corresponds to the JSON property `startTime` # @return [String] attr_accessor :start_time def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) @can_defer = args[:can_defer] if args.key?(:can_defer) @can_reschedule = args[:can_reschedule] if args.key?(:can_reschedule) @schedule_deadline_time = args[:schedule_deadline_time] if args.key?(:schedule_deadline_time) @start_time = args[:start_time] if args.key?(:start_time) end end # SQL Server specific audit configuration. class SqlServerAuditConfig include Google::Apis::Core::Hashable # The name of the destination bucket (e.g., gs://mybucket). # Corresponds to the JSON property `bucket` # @return [String] attr_accessor :bucket # This is always sql#sqlServerAuditConfig # Corresponds to the JSON property `kind` # @return [String] attr_accessor :kind # How long to keep generated audit files. # Corresponds to the JSON property `retentionInterval` # @return [String] attr_accessor :retention_interval # How often to upload generated audit files. # Corresponds to the JSON property `uploadInterval` # @return [String] attr_accessor :upload_interval def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) @bucket = args[:bucket] if args.key?(:bucket) @kind = args[:kind] if args.key?(:kind) @retention_interval = args[:retention_interval] if args.key?(:retention_interval) @upload_interval = args[:upload_interval] if args.key?(:upload_interval) end end # Represents a Sql Server database on the Cloud SQL instance. class SqlServerDatabaseDetails include Google::Apis::Core::Hashable # The version of SQL Server with which the database is to be made compatible # Corresponds to the JSON property `compatibilityLevel` # @return [Fixnum] attr_accessor :compatibility_level # The recovery model of a SQL Server database # Corresponds to the JSON property `recoveryModel` # @return [String] attr_accessor :recovery_model def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) @compatibility_level = args[:compatibility_level] if args.key?(:compatibility_level) @recovery_model = args[:recovery_model] if args.key?(:recovery_model) end end # SQL Server Entra ID configuration. class SqlServerEntraIdConfig include Google::Apis::Core::Hashable # Optional. The application ID for the Entra ID configuration. # Corresponds to the JSON property `applicationId` # @return [String] attr_accessor :application_id # Output only. This is always sql#sqlServerEntraIdConfig # Corresponds to the JSON property `kind` # @return [String] attr_accessor :kind # Optional. The tenant ID for the Entra ID configuration. # Corresponds to the JSON property `tenantId` # @return [String] attr_accessor :tenant_id def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) @application_id = args[:application_id] if args.key?(:application_id) @kind = args[:kind] if args.key?(:kind) @tenant_id = args[:tenant_id] if args.key?(:tenant_id) end end # Represents a Sql Server user on the Cloud SQL instance. class SqlServerUserDetails include Google::Apis::Core::Hashable # If the user has been disabled # Corresponds to the JSON property `disabled` # @return [Boolean] attr_accessor :disabled alias_method :disabled?, :disabled # The server roles for this user # Corresponds to the JSON property `serverRoles` # @return [Array] attr_accessor :server_roles def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) @disabled = args[:disabled] if args.key?(:disabled) @server_roles = args[:server_roles] if args.key?(:server_roles) end end # The sub operation type based on the operation type. class SqlSubOperationType include Google::Apis::Core::Hashable # The type of maintenance to be performed on the instance. # Corresponds to the JSON property `maintenanceType` # @return [String] attr_accessor :maintenance_type def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) @maintenance_type = args[:maintenance_type] if args.key?(:maintenance_type) end end # SslCerts Resource class SslCert include Google::Apis::Core::Hashable # PEM representation. # Corresponds to the JSON property `cert` # @return [String] attr_accessor :cert # Serial number, as extracted from the certificate. # Corresponds to the JSON property `certSerialNumber` # @return [String] attr_accessor :cert_serial_number # User supplied name. Constrained to [a-zA-Z.-_ ]+. # Corresponds to the JSON property `commonName` # @return [String] attr_accessor :common_name # The time when the certificate was created in [RFC 3339](https://tools.ietf.org/ # html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`. # Corresponds to the JSON property `createTime` # @return [String] attr_accessor :create_time # The time when the certificate expires in [RFC 3339](https://tools.ietf.org/ # html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`. # Corresponds to the JSON property `expirationTime` # @return [String] attr_accessor :expiration_time # Name of the database instance. # Corresponds to the JSON property `instance` # @return [String] attr_accessor :instance # This is always `sql#sslCert`. # Corresponds to the JSON property `kind` # @return [String] attr_accessor :kind # The URI of this resource. # Corresponds to the JSON property `selfLink` # @return [String] attr_accessor :self_link # Sha1 Fingerprint. # Corresponds to the JSON property `sha1Fingerprint` # @return [String] attr_accessor :sha1_fingerprint def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) @cert = args[:cert] if args.key?(:cert) @cert_serial_number = args[:cert_serial_number] if args.key?(:cert_serial_number) @common_name = args[:common_name] if args.key?(:common_name) @create_time = args[:create_time] if args.key?(:create_time) @expiration_time = args[:expiration_time] if args.key?(:expiration_time) @instance = args[:instance] if args.key?(:instance) @kind = args[:kind] if args.key?(:kind) @self_link = args[:self_link] if args.key?(:self_link) @sha1_fingerprint = args[:sha1_fingerprint] if args.key?(:sha1_fingerprint) end end # SslCertDetail. class SslCertDetail include Google::Apis::Core::Hashable # SslCerts Resource # Corresponds to the JSON property `certInfo` # @return [Google::Apis::SqladminV1beta4::SslCert] attr_accessor :cert_info # The private key for the client cert, in pem format. Keep private in order to # protect your security. # Corresponds to the JSON property `certPrivateKey` # @return [String] attr_accessor :cert_private_key def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) @cert_info = args[:cert_info] if args.key?(:cert_info) @cert_private_key = args[:cert_private_key] if args.key?(:cert_private_key) end end # SslCerts create ephemeral certificate request. class SslCertsCreateEphemeralRequest include Google::Apis::Core::Hashable # Access token to include in the signed certificate. # Corresponds to the JSON property `access_token` # @return [String] attr_accessor :access_token # PEM encoded public key to include in the signed certificate. # Corresponds to the JSON property `public_key` # @return [String] attr_accessor :public_key def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) @access_token = args[:access_token] if args.key?(:access_token) @public_key = args[:public_key] if args.key?(:public_key) end end # SslCerts insert request. class InsertSslCertsRequest include Google::Apis::Core::Hashable # User supplied name. Must be a distinct name from the other certificates for # this instance. # Corresponds to the JSON property `commonName` # @return [String] attr_accessor :common_name def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) @common_name = args[:common_name] if args.key?(:common_name) end end # SslCert insert response. class InsertSslCertsResponse include Google::Apis::Core::Hashable # SslCertDetail. # Corresponds to the JSON property `clientCert` # @return [Google::Apis::SqladminV1beta4::SslCertDetail] attr_accessor :client_cert # This is always `sql#sslCertsInsert`. # Corresponds to the JSON property `kind` # @return [String] attr_accessor :kind # An Operation resource. For successful operations that return an Operation # resource, only the fields relevant to the operation are populated in the # resource. # Corresponds to the JSON property `operation` # @return [Google::Apis::SqladminV1beta4::Operation] attr_accessor :operation # SslCerts Resource # Corresponds to the JSON property `serverCaCert` # @return [Google::Apis::SqladminV1beta4::SslCert] attr_accessor :server_ca_cert def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) @client_cert = args[:client_cert] if args.key?(:client_cert) @kind = args[:kind] if args.key?(:kind) @operation = args[:operation] if args.key?(:operation) @server_ca_cert = args[:server_ca_cert] if args.key?(:server_ca_cert) end end # SslCerts list response. class ListSslCertsResponse include Google::Apis::Core::Hashable # List of client certificates for the instance. # Corresponds to the JSON property `items` # @return [Array] attr_accessor :items # This is always `sql#sslCertsList`. # Corresponds to the JSON property `kind` # @return [String] attr_accessor :kind def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) @items = args[:items] if args.key?(:items) @kind = args[:kind] if args.key?(:kind) end end # The `Status` type defines a logical error model that is suitable for different # programming environments, including REST APIs and RPC APIs. It is used by [ # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of # data: error code, error message, and error details. You can find out more # about this error model and how to work with it in the [API Design Guide](https: # //cloud.google.com/apis/design/errors). class Status include Google::Apis::Core::Hashable # The status code, which should be an enum value of google.rpc.Code. # Corresponds to the JSON property `code` # @return [Fixnum] attr_accessor :code # A list of messages that carry the error details. There is a common set of # message types for APIs to use. # Corresponds to the JSON property `details` # @return [Array>] attr_accessor :details # A developer-facing error message, which should be in English. Any user-facing # error message should be localized and sent in the google.rpc.Status.details # field, or localized by the client. # Corresponds to the JSON property `message` # @return [String] attr_accessor :message def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) @code = args[:code] if args.key?(:code) @details = args[:details] if args.key?(:details) @message = args[:message] if args.key?(:message) end end # Initial sync flags for certain Cloud SQL APIs. Currently used for the MySQL # external server initial dump. class SyncFlags include Google::Apis::Core::Hashable # The name of the flag. # Corresponds to the JSON property `name` # @return [String] attr_accessor :name # The value of the flag. This field must be omitted if the flag doesn't take a # value. # Corresponds to the JSON property `value` # @return [String] attr_accessor :value def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) @name = args[:name] if args.key?(:name) @value = args[:value] if args.key?(:value) end end # Target metric for read pool auto scaling. class TargetMetric include Google::Apis::Core::Hashable # The metric name to be used for auto scaling. # Corresponds to the JSON property `metric` # @return [String] attr_accessor :metric # The target value for the metric. # Corresponds to the JSON property `targetValue` # @return [Float] attr_accessor :target_value def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) @metric = args[:metric] if args.key?(:metric) @target_value = args[:target_value] if args.key?(:target_value) end end # A Google Cloud SQL service tier resource. class Tier include Google::Apis::Core::Hashable # The maximum disk size of this tier in bytes. # Corresponds to the JSON property `DiskQuota` # @return [Fixnum] attr_accessor :disk_quota # The maximum RAM usage of this tier in bytes. # Corresponds to the JSON property `RAM` # @return [Fixnum] attr_accessor :ram # This is always `sql#tier`. # Corresponds to the JSON property `kind` # @return [String] attr_accessor :kind # The applicable regions for this tier. # Corresponds to the JSON property `region` # @return [Array] attr_accessor :region # An identifier for the machine type, for example, `db-custom-1-3840`. For # related information, see [Pricing](/sql/pricing). # Corresponds to the JSON property `tier` # @return [String] attr_accessor :tier def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) @disk_quota = args[:disk_quota] if args.key?(:disk_quota) @ram = args[:ram] if args.key?(:ram) @kind = args[:kind] if args.key?(:kind) @region = args[:region] if args.key?(:region) @tier = args[:tier] if args.key?(:tier) end end # Tiers list response. class ListTiersResponse include Google::Apis::Core::Hashable # List of tiers. # Corresponds to the JSON property `items` # @return [Array] attr_accessor :items # This is always `sql#tiersList`. # Corresponds to the JSON property `kind` # @return [String] attr_accessor :kind def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) @items = args[:items] if args.key?(:items) @kind = args[:kind] if args.key?(:kind) end end # Database Instance truncate log context. class TruncateLogContext include Google::Apis::Core::Hashable # This is always `sql#truncateLogContext`. # Corresponds to the JSON property `kind` # @return [String] attr_accessor :kind # The type of log to truncate. Valid values are `MYSQL_GENERAL_TABLE` and ` # MYSQL_SLOW_TABLE`. # Corresponds to the JSON property `logType` # @return [String] attr_accessor :log_type def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) @kind = args[:kind] if args.key?(:kind) @log_type = args[:log_type] if args.key?(:log_type) end end # A Cloud SQL user resource. class User include Google::Apis::Core::Hashable # Optional. Role memberships of the user # Corresponds to the JSON property `databaseRoles` # @return [Array] attr_accessor :database_roles # Dual password status for the user. # Corresponds to the JSON property `dualPasswordType` # @return [String] attr_accessor :dual_password_type # This field is deprecated and will be removed from a future version of the API. # Corresponds to the JSON property `etag` # @return [String] attr_accessor :etag # Optional. The host from which the user can connect. For `insert` operations, # host defaults to an empty string. For `update` operations, host is specified # as part of the request URL. The host name cannot be updated after insertion. # For a MySQL instance, it's required; for a PostgreSQL or SQL Server instance, # it's optional. # Corresponds to the JSON property `host` # @return [String] attr_accessor :host # Optional. The full email for an IAM user. For normal database users, this will # not be filled. Only applicable to MySQL database users. # Corresponds to the JSON property `iamEmail` # @return [String] attr_accessor :iam_email # Indicates if a group is active or inactive for IAM database authentication. # Corresponds to the JSON property `iamStatus` # @return [String] attr_accessor :iam_status # The name of the Cloud SQL instance. This does not include the project ID. Can # be omitted for *update* because it is already specified on the URL. # Corresponds to the JSON property `instance` # @return [String] attr_accessor :instance # This is always `sql#user`. # Corresponds to the JSON property `kind` # @return [String] attr_accessor :kind # The name of the user in the Cloud SQL instance. Can be omitted for `update` # because it is already specified in the URL. # Corresponds to the JSON property `name` # @return [String] attr_accessor :name # The password for the user. # Corresponds to the JSON property `password` # @return [String] attr_accessor :password # User level password validation policy. # Corresponds to the JSON property `passwordPolicy` # @return [Google::Apis::SqladminV1beta4::UserPasswordValidationPolicy] attr_accessor :password_policy # The project ID of the project containing the Cloud SQL database. The Google # apps domain is prefixed if applicable. Can be omitted for *update* because it # is already specified on the URL. # Corresponds to the JSON property `project` # @return [String] attr_accessor :project # Represents a Sql Server user on the Cloud SQL instance. # Corresponds to the JSON property `sqlserverUserDetails` # @return [Google::Apis::SqladminV1beta4::SqlServerUserDetails] attr_accessor :sqlserver_user_details # The user type. It determines the method to authenticate the user during login. # The default is the database's built-in user type. # Corresponds to the JSON property `type` # @return [String] attr_accessor :type def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) @database_roles = args[:database_roles] if args.key?(:database_roles) @dual_password_type = args[:dual_password_type] if args.key?(:dual_password_type) @etag = args[:etag] if args.key?(:etag) @host = args[:host] if args.key?(:host) @iam_email = args[:iam_email] if args.key?(:iam_email) @iam_status = args[:iam_status] if args.key?(:iam_status) @instance = args[:instance] if args.key?(:instance) @kind = args[:kind] if args.key?(:kind) @name = args[:name] if args.key?(:name) @password = args[:password] if args.key?(:password) @password_policy = args[:password_policy] if args.key?(:password_policy) @project = args[:project] if args.key?(:project) @sqlserver_user_details = args[:sqlserver_user_details] if args.key?(:sqlserver_user_details) @type = args[:type] if args.key?(:type) end end # User level password validation policy. class UserPasswordValidationPolicy include Google::Apis::Core::Hashable # Number of failed login attempts allowed before user get locked. # Corresponds to the JSON property `allowedFailedAttempts` # @return [Fixnum] attr_accessor :allowed_failed_attempts # If true, failed login attempts check will be enabled. # Corresponds to the JSON property `enableFailedAttemptsCheck` # @return [Boolean] attr_accessor :enable_failed_attempts_check alias_method :enable_failed_attempts_check?, :enable_failed_attempts_check # If true, the user must specify the current password before changing the # password. This flag is supported only for MySQL. # Corresponds to the JSON property `enablePasswordVerification` # @return [Boolean] attr_accessor :enable_password_verification alias_method :enable_password_verification?, :enable_password_verification # Expiration duration after password is updated. # Corresponds to the JSON property `passwordExpirationDuration` # @return [String] attr_accessor :password_expiration_duration # Read-only password status. # Corresponds to the JSON property `status` # @return [Google::Apis::SqladminV1beta4::PasswordStatus] attr_accessor :status def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) @allowed_failed_attempts = args[:allowed_failed_attempts] if args.key?(:allowed_failed_attempts) @enable_failed_attempts_check = args[:enable_failed_attempts_check] if args.key?(:enable_failed_attempts_check) @enable_password_verification = args[:enable_password_verification] if args.key?(:enable_password_verification) @password_expiration_duration = args[:password_expiration_duration] if args.key?(:password_expiration_duration) @status = args[:status] if args.key?(:status) end end # User list response. class ListUsersResponse include Google::Apis::Core::Hashable # List of user resources in the instance. # Corresponds to the JSON property `items` # @return [Array] attr_accessor :items # This is always *sql#usersList*. # Corresponds to the JSON property `kind` # @return [String] attr_accessor :kind # Unused. # Corresponds to the JSON property `nextPageToken` # @return [String] attr_accessor :next_page_token def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) @items = args[:items] if args.key?(:items) @kind = args[:kind] if args.key?(:kind) @next_page_token = args[:next_page_token] if args.key?(:next_page_token) end end # The cell value of the table. class Value include Google::Apis::Core::Hashable # If cell value is null, then this flag will be set to true. # Corresponds to the JSON property `nullValue` # @return [Boolean] attr_accessor :null_value alias_method :null_value?, :null_value # The cell value represented in string format. # Corresponds to the JSON property `value` # @return [String] attr_accessor :value def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) @null_value = args[:null_value] if args.key?(:null_value) @value = args[:value] if args.key?(:value) end end end end end google-apis-sqladmin_v1beta4-0.96.0/lib/google/apis/sqladmin_v1beta4/representations.rb0000644000004100000410000032525715137265343031115 0ustar www-datawww-data# Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. require 'date' require 'google/apis/core/base_service' require 'google/apis/core/json_representation' require 'google/apis/core/hashable' require 'google/apis/errors' module Google module Apis module SqladminV1beta4 class AclEntry class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end class AcquireSsrsLeaseContext class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end class AdvancedMachineFeatures class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end class ApiWarning class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end class AvailableDatabaseVersion class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end class Backup class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end class BackupConfiguration class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end class BackupContext class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end class BackupReencryptionConfig class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end class BackupRetentionSettings class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end class BackupRun class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end class ListBackupRunsResponse class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end class BinLogCoordinates class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end class CloneContext class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end class Column class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end class ConnectPoolNodeConfig class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end class ConnectSettings class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end class ConnectionPoolConfig class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end class ConnectionPoolFlags class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end class DataCacheConfig class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end class Database class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end class DatabaseFlags class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end class DatabaseInstance class Representation < Google::Apis::Core::JsonRepresentation; end class FailoverReplica class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end include Google::Apis::Core::JsonObjectSupport end class ListDatabasesResponse class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end class DemoteContext class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end class DemoteMasterConfiguration class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end class DemoteMasterContext class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end class DemoteMasterMySqlReplicaConfiguration class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end class DenyMaintenancePeriod class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end class DiskEncryptionConfiguration class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end class DiskEncryptionStatus class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end class DnsNameMapping class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end class Empty class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end class ExecuteSqlPayload class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end class ExportContext class Representation < Google::Apis::Core::JsonRepresentation; end class BakExportOptions class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end class CsvExportOptions class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end class SqlExportOptions class Representation < Google::Apis::Core::JsonRepresentation; end class MysqlExportOptions class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end class PostgresExportOptions class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end include Google::Apis::Core::JsonObjectSupport end class TdeExportOptions class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end include Google::Apis::Core::JsonObjectSupport end class ExternalSyncSelectedObject class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end class FailoverContext class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end class FinalBackupConfig class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end class Flag class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end class ListFlagsResponse class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end class GeminiInstanceConfig class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end class GenerateEphemeralCertRequest class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end class GenerateEphemeralCertResponse class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end class ImportContext class Representation < Google::Apis::Core::JsonRepresentation; end class BakImportOptions class Representation < Google::Apis::Core::JsonRepresentation; end class EncryptionOptions class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end include Google::Apis::Core::JsonObjectSupport end class CsvImportOptions class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end class SqlImportOptions class Representation < Google::Apis::Core::JsonRepresentation; end class PostgresImportOptions class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end include Google::Apis::Core::JsonObjectSupport end class TdeImportOptions class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end include Google::Apis::Core::JsonObjectSupport end class InsightsConfig class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end class InstanceReference class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end class InstancesAcquireSsrsLeaseRequest class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end class CloneInstancesRequest class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end class InstancesDemoteMasterRequest class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end class InstancesDemoteRequest class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end class ExportInstancesRequest class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end class InstancesFailoverRequest class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end class ImportInstancesRequest class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end class InstancesListEntraIdCertificatesResponse class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end class ListInstancesResponse class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end class InstancesListServerCasResponse class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end class InstancesListServerCertificatesResponse class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end class InstancesPreCheckMajorVersionUpgradeRequest class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end class InstancesReencryptRequest class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end class RestoreInstancesBackupRequest class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end class InstancesRotateEntraIdCertificateRequest class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end class InstancesRotateServerCaRequest class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end class InstancesRotateServerCertificateRequest class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end class InstancesTruncateLogRequest class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end class Interval class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end class IpConfiguration class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end class IpMapping class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end class ListBackupsResponse class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end class LocationPreference class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end class MaintenanceWindow class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end class Message class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end class Metadata class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end class MySqlReplicaConfiguration class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end class MySqlSyncConfig class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end class OnPremisesConfiguration class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end class Operation class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end class OperationError class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end class OperationErrors class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end class OperationMetadata class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end class ListOperationsResponse class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end class PasswordStatus class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end class PasswordValidationPolicy class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end class PerformDiskShrinkContext class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end class PerformanceCaptureConfig class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end class PointInTimeRestoreContext class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end class PoolNodeConfig class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end class PreCheckMajorVersionUpgradeContext class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end class PreCheckResponse class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end class PscAutoConnectionConfig class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end class PscConfig class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end class QueryResult class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end class ReadPoolAutoScaleConfig class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end class ReplicaConfiguration class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end class ReplicationCluster class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end class Reschedule class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end class RestoreBackupContext class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end class RotateEntraIdCertificateContext class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end class RotateServerCaContext class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end class RotateServerCertificateContext class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end class Row class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end class SelectedObjects class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end class Settings class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end class SqlActiveDirectoryConfig class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end class SqlExternalSyncSettingError class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end class SqlInstancesAcquireSsrsLeaseResponse class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end class SqlInstancesExecuteSqlResponse class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end class SqlInstancesGetDiskShrinkConfigResponse class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end class SqlInstancesGetLatestRecoveryTimeResponse class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end class SqlInstancesReleaseSsrsLeaseResponse class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end class SqlInstancesRescheduleMaintenanceRequestBody class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end class SqlInstancesResetReplicaSizeRequest class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end class SqlInstancesStartExternalSyncRequest class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end class SqlInstancesVerifyExternalSyncSettingsRequest class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end class SqlInstancesVerifyExternalSyncSettingsResponse class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end class SqlOutOfDiskReport class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end class SqlScheduledMaintenance class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end class SqlServerAuditConfig class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end class SqlServerDatabaseDetails class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end class SqlServerEntraIdConfig class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end class SqlServerUserDetails class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end class SqlSubOperationType class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end class SslCert class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end class SslCertDetail class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end class SslCertsCreateEphemeralRequest class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end class InsertSslCertsRequest class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end class InsertSslCertsResponse class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end class ListSslCertsResponse class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end class Status class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end class SyncFlags class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end class TargetMetric class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end class Tier class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end class ListTiersResponse class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end class TruncateLogContext class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end class User class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end class UserPasswordValidationPolicy class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end class ListUsersResponse class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end class Value class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end class AclEntry # @private class Representation < Google::Apis::Core::JsonRepresentation property :expiration_time, as: 'expirationTime' property :kind, as: 'kind' property :name, as: 'name' property :value, as: 'value' end end class AcquireSsrsLeaseContext # @private class Representation < Google::Apis::Core::JsonRepresentation property :duration, as: 'duration' property :report_database, as: 'reportDatabase' property :service_login, as: 'serviceLogin' property :setup_login, as: 'setupLogin' end end class AdvancedMachineFeatures # @private class Representation < Google::Apis::Core::JsonRepresentation property :threads_per_core, as: 'threadsPerCore' end end class ApiWarning # @private class Representation < Google::Apis::Core::JsonRepresentation property :code, as: 'code' property :message, as: 'message' property :region, as: 'region' end end class AvailableDatabaseVersion # @private class Representation < Google::Apis::Core::JsonRepresentation property :display_name, as: 'displayName' property :major_version, as: 'majorVersion' property :name, as: 'name' end end class Backup # @private class Representation < Google::Apis::Core::JsonRepresentation property :backup_interval, as: 'backupInterval', class: Google::Apis::SqladminV1beta4::Interval, decorator: Google::Apis::SqladminV1beta4::Interval::Representation property :backup_kind, as: 'backupKind' property :backup_run, as: 'backupRun' property :database_version, as: 'databaseVersion' property :description, as: 'description' property :error, as: 'error', class: Google::Apis::SqladminV1beta4::OperationError, decorator: Google::Apis::SqladminV1beta4::OperationError::Representation property :expiry_time, as: 'expiryTime' property :instance, as: 'instance' property :instance_deletion_time, as: 'instanceDeletionTime' property :instance_settings, as: 'instanceSettings', class: Google::Apis::SqladminV1beta4::DatabaseInstance, decorator: Google::Apis::SqladminV1beta4::DatabaseInstance::Representation property :kind, as: 'kind' property :kms_key, as: 'kmsKey' property :kms_key_version, as: 'kmsKeyVersion' property :location, as: 'location' property :max_chargeable_bytes, :numeric_string => true, as: 'maxChargeableBytes' property :name, as: 'name' property :satisfies_pzi, as: 'satisfiesPzi' property :satisfies_pzs, as: 'satisfiesPzs' property :self_link, as: 'selfLink' property :state, as: 'state' property :time_zone, as: 'timeZone' property :ttl_days, :numeric_string => true, as: 'ttlDays' property :type, as: 'type' end end class BackupConfiguration # @private class Representation < Google::Apis::Core::JsonRepresentation property :backup_retention_settings, as: 'backupRetentionSettings', class: Google::Apis::SqladminV1beta4::BackupRetentionSettings, decorator: Google::Apis::SqladminV1beta4::BackupRetentionSettings::Representation property :backup_tier, as: 'backupTier' property :binary_log_enabled, as: 'binaryLogEnabled' property :enabled, as: 'enabled' property :kind, as: 'kind' property :location, as: 'location' property :point_in_time_recovery_enabled, as: 'pointInTimeRecoveryEnabled' property :replication_log_archiving_enabled, as: 'replicationLogArchivingEnabled' property :start_time, as: 'startTime' property :transaction_log_retention_days, as: 'transactionLogRetentionDays' property :transactional_log_storage_state, as: 'transactionalLogStorageState' end end class BackupContext # @private class Representation < Google::Apis::Core::JsonRepresentation property :backup_id, :numeric_string => true, as: 'backupId' property :kind, as: 'kind' property :name, as: 'name' end end class BackupReencryptionConfig # @private class Representation < Google::Apis::Core::JsonRepresentation property :backup_limit, as: 'backupLimit' property :backup_type, as: 'backupType' end end class BackupRetentionSettings # @private class Representation < Google::Apis::Core::JsonRepresentation property :retained_backups, as: 'retainedBackups' property :retention_unit, as: 'retentionUnit' end end class BackupRun # @private class Representation < Google::Apis::Core::JsonRepresentation property :backup_kind, as: 'backupKind' property :database_version, as: 'databaseVersion' property :description, as: 'description' property :disk_encryption_configuration, as: 'diskEncryptionConfiguration', class: Google::Apis::SqladminV1beta4::DiskEncryptionConfiguration, decorator: Google::Apis::SqladminV1beta4::DiskEncryptionConfiguration::Representation property :disk_encryption_status, as: 'diskEncryptionStatus', class: Google::Apis::SqladminV1beta4::DiskEncryptionStatus, decorator: Google::Apis::SqladminV1beta4::DiskEncryptionStatus::Representation property :end_time, as: 'endTime' property :enqueued_time, as: 'enqueuedTime' property :error, as: 'error', class: Google::Apis::SqladminV1beta4::OperationError, decorator: Google::Apis::SqladminV1beta4::OperationError::Representation property :id, :numeric_string => true, as: 'id' property :instance, as: 'instance' property :kind, as: 'kind' property :location, as: 'location' property :max_chargeable_bytes, :numeric_string => true, as: 'maxChargeableBytes' property :self_link, as: 'selfLink' property :start_time, as: 'startTime' property :status, as: 'status' property :time_zone, as: 'timeZone' property :type, as: 'type' property :window_start_time, as: 'windowStartTime' end end class ListBackupRunsResponse # @private class Representation < Google::Apis::Core::JsonRepresentation collection :items, as: 'items', class: Google::Apis::SqladminV1beta4::BackupRun, decorator: Google::Apis::SqladminV1beta4::BackupRun::Representation property :kind, as: 'kind' property :next_page_token, as: 'nextPageToken' end end class BinLogCoordinates # @private class Representation < Google::Apis::Core::JsonRepresentation property :bin_log_file_name, as: 'binLogFileName' property :bin_log_position, :numeric_string => true, as: 'binLogPosition' property :kind, as: 'kind' end end class CloneContext # @private class Representation < Google::Apis::Core::JsonRepresentation property :allocated_ip_range, as: 'allocatedIpRange' property :bin_log_coordinates, as: 'binLogCoordinates', class: Google::Apis::SqladminV1beta4::BinLogCoordinates, decorator: Google::Apis::SqladminV1beta4::BinLogCoordinates::Representation collection :database_names, as: 'databaseNames' property :destination_instance_name, as: 'destinationInstanceName' property :kind, as: 'kind' property :pitr_timestamp_ms, :numeric_string => true, as: 'pitrTimestampMs' property :point_in_time, as: 'pointInTime' property :preferred_secondary_zone, as: 'preferredSecondaryZone' property :preferred_zone, as: 'preferredZone' property :source_instance_deletion_time, as: 'sourceInstanceDeletionTime' end end class Column # @private class Representation < Google::Apis::Core::JsonRepresentation property :name, as: 'name' property :type, as: 'type' end end class ConnectPoolNodeConfig # @private class Representation < Google::Apis::Core::JsonRepresentation property :dns_name, as: 'dnsName' collection :dns_names, as: 'dnsNames', class: Google::Apis::SqladminV1beta4::DnsNameMapping, decorator: Google::Apis::SqladminV1beta4::DnsNameMapping::Representation collection :ip_addresses, as: 'ipAddresses', class: Google::Apis::SqladminV1beta4::IpMapping, decorator: Google::Apis::SqladminV1beta4::IpMapping::Representation property :name, as: 'name' end end class ConnectSettings # @private class Representation < Google::Apis::Core::JsonRepresentation property :backend_type, as: 'backendType' collection :custom_subject_alternative_names, as: 'customSubjectAlternativeNames' property :database_version, as: 'databaseVersion' property :dns_name, as: 'dnsName' collection :dns_names, as: 'dnsNames', class: Google::Apis::SqladminV1beta4::DnsNameMapping, decorator: Google::Apis::SqladminV1beta4::DnsNameMapping::Representation collection :ip_addresses, as: 'ipAddresses', class: Google::Apis::SqladminV1beta4::IpMapping, decorator: Google::Apis::SqladminV1beta4::IpMapping::Representation property :kind, as: 'kind' collection :mdx_protocol_support, as: 'mdxProtocolSupport' property :node_count, as: 'nodeCount' collection :nodes, as: 'nodes', class: Google::Apis::SqladminV1beta4::ConnectPoolNodeConfig, decorator: Google::Apis::SqladminV1beta4::ConnectPoolNodeConfig::Representation property :psc_enabled, as: 'pscEnabled' property :region, as: 'region' property :server_ca_cert, as: 'serverCaCert', class: Google::Apis::SqladminV1beta4::SslCert, decorator: Google::Apis::SqladminV1beta4::SslCert::Representation property :server_ca_mode, as: 'serverCaMode' end end class ConnectionPoolConfig # @private class Representation < Google::Apis::Core::JsonRepresentation property :connection_pooling_enabled, as: 'connectionPoolingEnabled' collection :flags, as: 'flags', class: Google::Apis::SqladminV1beta4::ConnectionPoolFlags, decorator: Google::Apis::SqladminV1beta4::ConnectionPoolFlags::Representation property :pooler_count, as: 'poolerCount' end end class ConnectionPoolFlags # @private class Representation < Google::Apis::Core::JsonRepresentation property :name, as: 'name' property :value, as: 'value' end end class DataCacheConfig # @private class Representation < Google::Apis::Core::JsonRepresentation property :data_cache_enabled, as: 'dataCacheEnabled' end end class Database # @private class Representation < Google::Apis::Core::JsonRepresentation property :charset, as: 'charset' property :collation, as: 'collation' property :etag, as: 'etag' property :instance, as: 'instance' property :kind, as: 'kind' property :name, as: 'name' property :project, as: 'project' property :self_link, as: 'selfLink' property :sqlserver_database_details, as: 'sqlserverDatabaseDetails', class: Google::Apis::SqladminV1beta4::SqlServerDatabaseDetails, decorator: Google::Apis::SqladminV1beta4::SqlServerDatabaseDetails::Representation end end class DatabaseFlags # @private class Representation < Google::Apis::Core::JsonRepresentation property :name, as: 'name' property :value, as: 'value' end end class DatabaseInstance # @private class Representation < Google::Apis::Core::JsonRepresentation collection :available_maintenance_versions, as: 'availableMaintenanceVersions' property :backend_type, as: 'backendType' property :connection_name, as: 'connectionName' property :create_time, as: 'createTime' property :current_disk_size, :numeric_string => true, as: 'currentDiskSize' property :database_installed_version, as: 'databaseInstalledVersion' property :database_version, as: 'databaseVersion' property :disk_encryption_configuration, as: 'diskEncryptionConfiguration', class: Google::Apis::SqladminV1beta4::DiskEncryptionConfiguration, decorator: Google::Apis::SqladminV1beta4::DiskEncryptionConfiguration::Representation property :disk_encryption_status, as: 'diskEncryptionStatus', class: Google::Apis::SqladminV1beta4::DiskEncryptionStatus, decorator: Google::Apis::SqladminV1beta4::DiskEncryptionStatus::Representation property :dns_name, as: 'dnsName' collection :dns_names, as: 'dnsNames', class: Google::Apis::SqladminV1beta4::DnsNameMapping, decorator: Google::Apis::SqladminV1beta4::DnsNameMapping::Representation property :etag, as: 'etag' property :failover_replica, as: 'failoverReplica', class: Google::Apis::SqladminV1beta4::DatabaseInstance::FailoverReplica, decorator: Google::Apis::SqladminV1beta4::DatabaseInstance::FailoverReplica::Representation property :gce_zone, as: 'gceZone' property :gemini_config, as: 'geminiConfig', class: Google::Apis::SqladminV1beta4::GeminiInstanceConfig, decorator: Google::Apis::SqladminV1beta4::GeminiInstanceConfig::Representation property :include_replicas_for_major_version_upgrade, as: 'includeReplicasForMajorVersionUpgrade' property :instance_type, as: 'instanceType' collection :ip_addresses, as: 'ipAddresses', class: Google::Apis::SqladminV1beta4::IpMapping, decorator: Google::Apis::SqladminV1beta4::IpMapping::Representation property :ipv6_address, as: 'ipv6Address' property :kind, as: 'kind' property :maintenance_version, as: 'maintenanceVersion' property :master_instance_name, as: 'masterInstanceName' property :max_disk_size, :numeric_string => true, as: 'maxDiskSize' property :name, as: 'name' property :node_count, as: 'nodeCount' collection :nodes, as: 'nodes', class: Google::Apis::SqladminV1beta4::PoolNodeConfig, decorator: Google::Apis::SqladminV1beta4::PoolNodeConfig::Representation property :on_premises_configuration, as: 'onPremisesConfiguration', class: Google::Apis::SqladminV1beta4::OnPremisesConfiguration, decorator: Google::Apis::SqladminV1beta4::OnPremisesConfiguration::Representation property :out_of_disk_report, as: 'outOfDiskReport', class: Google::Apis::SqladminV1beta4::SqlOutOfDiskReport, decorator: Google::Apis::SqladminV1beta4::SqlOutOfDiskReport::Representation property :primary_dns_name, as: 'primaryDnsName' property :project, as: 'project' property :psc_service_attachment_link, as: 'pscServiceAttachmentLink' property :region, as: 'region' property :replica_configuration, as: 'replicaConfiguration', class: Google::Apis::SqladminV1beta4::ReplicaConfiguration, decorator: Google::Apis::SqladminV1beta4::ReplicaConfiguration::Representation collection :replica_names, as: 'replicaNames' property :replication_cluster, as: 'replicationCluster', class: Google::Apis::SqladminV1beta4::ReplicationCluster, decorator: Google::Apis::SqladminV1beta4::ReplicationCluster::Representation property :root_password, as: 'rootPassword' property :satisfies_pzi, as: 'satisfiesPzi' property :satisfies_pzs, as: 'satisfiesPzs' property :scheduled_maintenance, as: 'scheduledMaintenance', class: Google::Apis::SqladminV1beta4::SqlScheduledMaintenance, decorator: Google::Apis::SqladminV1beta4::SqlScheduledMaintenance::Representation property :secondary_gce_zone, as: 'secondaryGceZone' property :self_link, as: 'selfLink' property :server_ca_cert, as: 'serverCaCert', class: Google::Apis::SqladminV1beta4::SslCert, decorator: Google::Apis::SqladminV1beta4::SslCert::Representation property :service_account_email_address, as: 'serviceAccountEmailAddress' property :settings, as: 'settings', class: Google::Apis::SqladminV1beta4::Settings, decorator: Google::Apis::SqladminV1beta4::Settings::Representation property :sql_network_architecture, as: 'sqlNetworkArchitecture' property :state, as: 'state' collection :suspension_reason, as: 'suspensionReason' property :switch_transaction_logs_to_cloud_storage_enabled, as: 'switchTransactionLogsToCloudStorageEnabled' hash :tags, as: 'tags' collection :upgradable_database_versions, as: 'upgradableDatabaseVersions', class: Google::Apis::SqladminV1beta4::AvailableDatabaseVersion, decorator: Google::Apis::SqladminV1beta4::AvailableDatabaseVersion::Representation property :write_endpoint, as: 'writeEndpoint' end class FailoverReplica # @private class Representation < Google::Apis::Core::JsonRepresentation property :available, as: 'available' property :name, as: 'name' end end end class ListDatabasesResponse # @private class Representation < Google::Apis::Core::JsonRepresentation collection :items, as: 'items', class: Google::Apis::SqladminV1beta4::Database, decorator: Google::Apis::SqladminV1beta4::Database::Representation property :kind, as: 'kind' end end class DemoteContext # @private class Representation < Google::Apis::Core::JsonRepresentation property :kind, as: 'kind' property :source_representative_instance_name, as: 'sourceRepresentativeInstanceName' end end class DemoteMasterConfiguration # @private class Representation < Google::Apis::Core::JsonRepresentation property :kind, as: 'kind' property :mysql_replica_configuration, as: 'mysqlReplicaConfiguration', class: Google::Apis::SqladminV1beta4::DemoteMasterMySqlReplicaConfiguration, decorator: Google::Apis::SqladminV1beta4::DemoteMasterMySqlReplicaConfiguration::Representation end end class DemoteMasterContext # @private class Representation < Google::Apis::Core::JsonRepresentation property :kind, as: 'kind' property :master_instance_name, as: 'masterInstanceName' property :replica_configuration, as: 'replicaConfiguration', class: Google::Apis::SqladminV1beta4::DemoteMasterConfiguration, decorator: Google::Apis::SqladminV1beta4::DemoteMasterConfiguration::Representation property :skip_replication_setup, as: 'skipReplicationSetup' property :verify_gtid_consistency, as: 'verifyGtidConsistency' end end class DemoteMasterMySqlReplicaConfiguration # @private class Representation < Google::Apis::Core::JsonRepresentation property :ca_certificate, as: 'caCertificate' property :client_certificate, as: 'clientCertificate' property :client_key, as: 'clientKey' property :kind, as: 'kind' property :password, as: 'password' property :username, as: 'username' end end class DenyMaintenancePeriod # @private class Representation < Google::Apis::Core::JsonRepresentation property :end_date, as: 'endDate' property :start_date, as: 'startDate' property :time, as: 'time' end end class DiskEncryptionConfiguration # @private class Representation < Google::Apis::Core::JsonRepresentation property :kind, as: 'kind' property :kms_key_name, as: 'kmsKeyName' end end class DiskEncryptionStatus # @private class Representation < Google::Apis::Core::JsonRepresentation property :kind, as: 'kind' property :kms_key_version_name, as: 'kmsKeyVersionName' end end class DnsNameMapping # @private class Representation < Google::Apis::Core::JsonRepresentation property :connection_type, as: 'connectionType' property :dns_scope, as: 'dnsScope' property :name, as: 'name' property :record_manager, as: 'recordManager' end end class Empty # @private class Representation < Google::Apis::Core::JsonRepresentation end end class ExecuteSqlPayload # @private class Representation < Google::Apis::Core::JsonRepresentation property :application, as: 'application' property :auto_iam_authn, as: 'autoIamAuthn' property :database, as: 'database' property :partial_result_mode, as: 'partialResultMode' property :row_limit, :numeric_string => true, as: 'rowLimit' property :sql_statement, as: 'sqlStatement' property :user, as: 'user' end end class ExportContext # @private class Representation < Google::Apis::Core::JsonRepresentation property :bak_export_options, as: 'bakExportOptions', class: Google::Apis::SqladminV1beta4::ExportContext::BakExportOptions, decorator: Google::Apis::SqladminV1beta4::ExportContext::BakExportOptions::Representation property :csv_export_options, as: 'csvExportOptions', class: Google::Apis::SqladminV1beta4::ExportContext::CsvExportOptions, decorator: Google::Apis::SqladminV1beta4::ExportContext::CsvExportOptions::Representation collection :databases, as: 'databases' property :file_type, as: 'fileType' property :kind, as: 'kind' property :offload, as: 'offload' property :sql_export_options, as: 'sqlExportOptions', class: Google::Apis::SqladminV1beta4::ExportContext::SqlExportOptions, decorator: Google::Apis::SqladminV1beta4::ExportContext::SqlExportOptions::Representation property :tde_export_options, as: 'tdeExportOptions', class: Google::Apis::SqladminV1beta4::ExportContext::TdeExportOptions, decorator: Google::Apis::SqladminV1beta4::ExportContext::TdeExportOptions::Representation property :uri, as: 'uri' end class BakExportOptions # @private class Representation < Google::Apis::Core::JsonRepresentation property :bak_type, as: 'bakType' property :copy_only, as: 'copyOnly' property :differential_base, as: 'differentialBase' property :export_log_end_time, as: 'exportLogEndTime' property :export_log_start_time, as: 'exportLogStartTime' property :stripe_count, as: 'stripeCount' property :striped, as: 'striped' end end class CsvExportOptions # @private class Representation < Google::Apis::Core::JsonRepresentation property :escape_character, as: 'escapeCharacter' property :fields_terminated_by, as: 'fieldsTerminatedBy' property :lines_terminated_by, as: 'linesTerminatedBy' property :quote_character, as: 'quoteCharacter' property :select_query, as: 'selectQuery' end end class SqlExportOptions # @private class Representation < Google::Apis::Core::JsonRepresentation property :mysql_export_options, as: 'mysqlExportOptions', class: Google::Apis::SqladminV1beta4::ExportContext::SqlExportOptions::MysqlExportOptions, decorator: Google::Apis::SqladminV1beta4::ExportContext::SqlExportOptions::MysqlExportOptions::Representation property :parallel, as: 'parallel' property :postgres_export_options, as: 'postgresExportOptions', class: Google::Apis::SqladminV1beta4::ExportContext::SqlExportOptions::PostgresExportOptions, decorator: Google::Apis::SqladminV1beta4::ExportContext::SqlExportOptions::PostgresExportOptions::Representation property :schema_only, as: 'schemaOnly' collection :tables, as: 'tables' property :threads, as: 'threads' end class MysqlExportOptions # @private class Representation < Google::Apis::Core::JsonRepresentation property :master_data, as: 'masterData' end end class PostgresExportOptions # @private class Representation < Google::Apis::Core::JsonRepresentation property :clean, as: 'clean' property :if_exists, as: 'ifExists' end end end class TdeExportOptions # @private class Representation < Google::Apis::Core::JsonRepresentation property :certificate_path, as: 'certificatePath' property :name, as: 'name' property :private_key_password, as: 'privateKeyPassword' property :private_key_path, as: 'privateKeyPath' end end end class ExternalSyncSelectedObject # @private class Representation < Google::Apis::Core::JsonRepresentation property :database, as: 'database' end end class FailoverContext # @private class Representation < Google::Apis::Core::JsonRepresentation property :kind, as: 'kind' property :settings_version, :numeric_string => true, as: 'settingsVersion' end end class FinalBackupConfig # @private class Representation < Google::Apis::Core::JsonRepresentation property :enabled, as: 'enabled' property :retention_days, as: 'retentionDays' end end class Flag # @private class Representation < Google::Apis::Core::JsonRepresentation collection :allowed_int_values, as: 'allowedIntValues' collection :allowed_string_values, as: 'allowedStringValues' collection :applies_to, as: 'appliesTo' property :flag_scope, as: 'flagScope' property :in_beta, as: 'inBeta' property :kind, as: 'kind' property :max_value, :numeric_string => true, as: 'maxValue' property :min_value, :numeric_string => true, as: 'minValue' property :name, as: 'name' property :recommended_int_value, :numeric_string => true, as: 'recommendedIntValue' property :recommended_string_value, as: 'recommendedStringValue' property :requires_restart, as: 'requiresRestart' property :type, as: 'type' end end class ListFlagsResponse # @private class Representation < Google::Apis::Core::JsonRepresentation collection :items, as: 'items', class: Google::Apis::SqladminV1beta4::Flag, decorator: Google::Apis::SqladminV1beta4::Flag::Representation property :kind, as: 'kind' end end class GeminiInstanceConfig # @private class Representation < Google::Apis::Core::JsonRepresentation property :active_query_enabled, as: 'activeQueryEnabled' property :entitled, as: 'entitled' property :flag_recommender_enabled, as: 'flagRecommenderEnabled' property :google_vacuum_mgmt_enabled, as: 'googleVacuumMgmtEnabled' property :index_advisor_enabled, as: 'indexAdvisorEnabled' property :oom_session_cancel_enabled, as: 'oomSessionCancelEnabled' end end class GenerateEphemeralCertRequest # @private class Representation < Google::Apis::Core::JsonRepresentation property :access_token, as: 'access_token' property :public_key, as: 'public_key' property :read_time, as: 'readTime' property :valid_duration, as: 'validDuration' end end class GenerateEphemeralCertResponse # @private class Representation < Google::Apis::Core::JsonRepresentation property :ephemeral_cert, as: 'ephemeralCert', class: Google::Apis::SqladminV1beta4::SslCert, decorator: Google::Apis::SqladminV1beta4::SslCert::Representation end end class ImportContext # @private class Representation < Google::Apis::Core::JsonRepresentation property :bak_import_options, as: 'bakImportOptions', class: Google::Apis::SqladminV1beta4::ImportContext::BakImportOptions, decorator: Google::Apis::SqladminV1beta4::ImportContext::BakImportOptions::Representation property :csv_import_options, as: 'csvImportOptions', class: Google::Apis::SqladminV1beta4::ImportContext::CsvImportOptions, decorator: Google::Apis::SqladminV1beta4::ImportContext::CsvImportOptions::Representation property :database, as: 'database' property :file_type, as: 'fileType' property :import_user, as: 'importUser' property :kind, as: 'kind' property :sql_import_options, as: 'sqlImportOptions', class: Google::Apis::SqladminV1beta4::ImportContext::SqlImportOptions, decorator: Google::Apis::SqladminV1beta4::ImportContext::SqlImportOptions::Representation property :tde_import_options, as: 'tdeImportOptions', class: Google::Apis::SqladminV1beta4::ImportContext::TdeImportOptions, decorator: Google::Apis::SqladminV1beta4::ImportContext::TdeImportOptions::Representation property :uri, as: 'uri' end class BakImportOptions # @private class Representation < Google::Apis::Core::JsonRepresentation property :bak_type, as: 'bakType' property :encryption_options, as: 'encryptionOptions', class: Google::Apis::SqladminV1beta4::ImportContext::BakImportOptions::EncryptionOptions, decorator: Google::Apis::SqladminV1beta4::ImportContext::BakImportOptions::EncryptionOptions::Representation property :no_recovery, as: 'noRecovery' property :recovery_only, as: 'recoveryOnly' property :stop_at, as: 'stopAt' property :stop_at_mark, as: 'stopAtMark' property :striped, as: 'striped' end class EncryptionOptions # @private class Representation < Google::Apis::Core::JsonRepresentation property :cert_path, as: 'certPath' property :keep_encrypted, as: 'keepEncrypted' property :pvk_password, as: 'pvkPassword' property :pvk_path, as: 'pvkPath' end end end class CsvImportOptions # @private class Representation < Google::Apis::Core::JsonRepresentation collection :columns, as: 'columns' property :escape_character, as: 'escapeCharacter' property :fields_terminated_by, as: 'fieldsTerminatedBy' property :lines_terminated_by, as: 'linesTerminatedBy' property :quote_character, as: 'quoteCharacter' property :table, as: 'table' end end class SqlImportOptions # @private class Representation < Google::Apis::Core::JsonRepresentation property :parallel, as: 'parallel' property :postgres_import_options, as: 'postgresImportOptions', class: Google::Apis::SqladminV1beta4::ImportContext::SqlImportOptions::PostgresImportOptions, decorator: Google::Apis::SqladminV1beta4::ImportContext::SqlImportOptions::PostgresImportOptions::Representation property :threads, as: 'threads' end class PostgresImportOptions # @private class Representation < Google::Apis::Core::JsonRepresentation property :clean, as: 'clean' property :if_exists, as: 'ifExists' end end end class TdeImportOptions # @private class Representation < Google::Apis::Core::JsonRepresentation property :certificate_path, as: 'certificatePath' property :name, as: 'name' property :private_key_password, as: 'privateKeyPassword' property :private_key_path, as: 'privateKeyPath' end end end class InsightsConfig # @private class Representation < Google::Apis::Core::JsonRepresentation property :enhanced_query_insights_enabled, as: 'enhancedQueryInsightsEnabled' property :query_insights_enabled, as: 'queryInsightsEnabled' property :query_plans_per_minute, as: 'queryPlansPerMinute' property :query_string_length, as: 'queryStringLength' property :record_application_tags, as: 'recordApplicationTags' property :record_client_address, as: 'recordClientAddress' end end class InstanceReference # @private class Representation < Google::Apis::Core::JsonRepresentation property :name, as: 'name' property :project, as: 'project' property :region, as: 'region' end end class InstancesAcquireSsrsLeaseRequest # @private class Representation < Google::Apis::Core::JsonRepresentation property :acquire_ssrs_lease_context, as: 'acquireSsrsLeaseContext', class: Google::Apis::SqladminV1beta4::AcquireSsrsLeaseContext, decorator: Google::Apis::SqladminV1beta4::AcquireSsrsLeaseContext::Representation end end class CloneInstancesRequest # @private class Representation < Google::Apis::Core::JsonRepresentation property :clone_context, as: 'cloneContext', class: Google::Apis::SqladminV1beta4::CloneContext, decorator: Google::Apis::SqladminV1beta4::CloneContext::Representation end end class InstancesDemoteMasterRequest # @private class Representation < Google::Apis::Core::JsonRepresentation property :demote_master_context, as: 'demoteMasterContext', class: Google::Apis::SqladminV1beta4::DemoteMasterContext, decorator: Google::Apis::SqladminV1beta4::DemoteMasterContext::Representation end end class InstancesDemoteRequest # @private class Representation < Google::Apis::Core::JsonRepresentation property :demote_context, as: 'demoteContext', class: Google::Apis::SqladminV1beta4::DemoteContext, decorator: Google::Apis::SqladminV1beta4::DemoteContext::Representation end end class ExportInstancesRequest # @private class Representation < Google::Apis::Core::JsonRepresentation property :export_context, as: 'exportContext', class: Google::Apis::SqladminV1beta4::ExportContext, decorator: Google::Apis::SqladminV1beta4::ExportContext::Representation end end class InstancesFailoverRequest # @private class Representation < Google::Apis::Core::JsonRepresentation property :failover_context, as: 'failoverContext', class: Google::Apis::SqladminV1beta4::FailoverContext, decorator: Google::Apis::SqladminV1beta4::FailoverContext::Representation end end class ImportInstancesRequest # @private class Representation < Google::Apis::Core::JsonRepresentation property :import_context, as: 'importContext', class: Google::Apis::SqladminV1beta4::ImportContext, decorator: Google::Apis::SqladminV1beta4::ImportContext::Representation end end class InstancesListEntraIdCertificatesResponse # @private class Representation < Google::Apis::Core::JsonRepresentation property :active_version, as: 'activeVersion' collection :certs, as: 'certs', class: Google::Apis::SqladminV1beta4::SslCert, decorator: Google::Apis::SqladminV1beta4::SslCert::Representation property :kind, as: 'kind' end end class ListInstancesResponse # @private class Representation < Google::Apis::Core::JsonRepresentation collection :items, as: 'items', class: Google::Apis::SqladminV1beta4::DatabaseInstance, decorator: Google::Apis::SqladminV1beta4::DatabaseInstance::Representation property :kind, as: 'kind' property :next_page_token, as: 'nextPageToken' collection :warnings, as: 'warnings', class: Google::Apis::SqladminV1beta4::ApiWarning, decorator: Google::Apis::SqladminV1beta4::ApiWarning::Representation end end class InstancesListServerCasResponse # @private class Representation < Google::Apis::Core::JsonRepresentation property :active_version, as: 'activeVersion' collection :certs, as: 'certs', class: Google::Apis::SqladminV1beta4::SslCert, decorator: Google::Apis::SqladminV1beta4::SslCert::Representation property :kind, as: 'kind' end end class InstancesListServerCertificatesResponse # @private class Representation < Google::Apis::Core::JsonRepresentation property :active_version, as: 'activeVersion' collection :ca_certs, as: 'caCerts', class: Google::Apis::SqladminV1beta4::SslCert, decorator: Google::Apis::SqladminV1beta4::SslCert::Representation property :kind, as: 'kind' collection :server_certs, as: 'serverCerts', class: Google::Apis::SqladminV1beta4::SslCert, decorator: Google::Apis::SqladminV1beta4::SslCert::Representation end end class InstancesPreCheckMajorVersionUpgradeRequest # @private class Representation < Google::Apis::Core::JsonRepresentation property :pre_check_major_version_upgrade_context, as: 'preCheckMajorVersionUpgradeContext', class: Google::Apis::SqladminV1beta4::PreCheckMajorVersionUpgradeContext, decorator: Google::Apis::SqladminV1beta4::PreCheckMajorVersionUpgradeContext::Representation end end class InstancesReencryptRequest # @private class Representation < Google::Apis::Core::JsonRepresentation property :backup_reencryption_config, as: 'backupReencryptionConfig', class: Google::Apis::SqladminV1beta4::BackupReencryptionConfig, decorator: Google::Apis::SqladminV1beta4::BackupReencryptionConfig::Representation end end class RestoreInstancesBackupRequest # @private class Representation < Google::Apis::Core::JsonRepresentation property :backup, as: 'backup' property :backupdr_backup, as: 'backupdrBackup' property :restore_backup_context, as: 'restoreBackupContext', class: Google::Apis::SqladminV1beta4::RestoreBackupContext, decorator: Google::Apis::SqladminV1beta4::RestoreBackupContext::Representation collection :restore_instance_clear_overrides_field_names, as: 'restoreInstanceClearOverridesFieldNames' property :restore_instance_settings, as: 'restoreInstanceSettings', class: Google::Apis::SqladminV1beta4::DatabaseInstance, decorator: Google::Apis::SqladminV1beta4::DatabaseInstance::Representation end end class InstancesRotateEntraIdCertificateRequest # @private class Representation < Google::Apis::Core::JsonRepresentation property :rotate_entra_id_certificate_context, as: 'rotateEntraIdCertificateContext', class: Google::Apis::SqladminV1beta4::RotateEntraIdCertificateContext, decorator: Google::Apis::SqladminV1beta4::RotateEntraIdCertificateContext::Representation end end class InstancesRotateServerCaRequest # @private class Representation < Google::Apis::Core::JsonRepresentation property :rotate_server_ca_context, as: 'rotateServerCaContext', class: Google::Apis::SqladminV1beta4::RotateServerCaContext, decorator: Google::Apis::SqladminV1beta4::RotateServerCaContext::Representation end end class InstancesRotateServerCertificateRequest # @private class Representation < Google::Apis::Core::JsonRepresentation property :rotate_server_certificate_context, as: 'rotateServerCertificateContext', class: Google::Apis::SqladminV1beta4::RotateServerCertificateContext, decorator: Google::Apis::SqladminV1beta4::RotateServerCertificateContext::Representation end end class InstancesTruncateLogRequest # @private class Representation < Google::Apis::Core::JsonRepresentation property :truncate_log_context, as: 'truncateLogContext', class: Google::Apis::SqladminV1beta4::TruncateLogContext, decorator: Google::Apis::SqladminV1beta4::TruncateLogContext::Representation end end class Interval # @private class Representation < Google::Apis::Core::JsonRepresentation property :end_time, as: 'endTime' property :start_time, as: 'startTime' end end class IpConfiguration # @private class Representation < Google::Apis::Core::JsonRepresentation property :allocated_ip_range, as: 'allocatedIpRange' collection :authorized_networks, as: 'authorizedNetworks', class: Google::Apis::SqladminV1beta4::AclEntry, decorator: Google::Apis::SqladminV1beta4::AclEntry::Representation collection :custom_subject_alternative_names, as: 'customSubjectAlternativeNames' property :enable_private_path_for_google_cloud_services, as: 'enablePrivatePathForGoogleCloudServices' property :ipv4_enabled, as: 'ipv4Enabled' property :private_network, as: 'privateNetwork' property :psc_config, as: 'pscConfig', class: Google::Apis::SqladminV1beta4::PscConfig, decorator: Google::Apis::SqladminV1beta4::PscConfig::Representation property :require_ssl, as: 'requireSsl' property :server_ca_mode, as: 'serverCaMode' property :server_ca_pool, as: 'serverCaPool' property :server_certificate_rotation_mode, as: 'serverCertificateRotationMode' property :ssl_mode, as: 'sslMode' end end class IpMapping # @private class Representation < Google::Apis::Core::JsonRepresentation property :ip_address, as: 'ipAddress' property :time_to_retire, as: 'timeToRetire' property :type, as: 'type' end end class ListBackupsResponse # @private class Representation < Google::Apis::Core::JsonRepresentation collection :backups, as: 'backups', class: Google::Apis::SqladminV1beta4::Backup, decorator: Google::Apis::SqladminV1beta4::Backup::Representation property :next_page_token, as: 'nextPageToken' collection :warnings, as: 'warnings', class: Google::Apis::SqladminV1beta4::ApiWarning, decorator: Google::Apis::SqladminV1beta4::ApiWarning::Representation end end class LocationPreference # @private class Representation < Google::Apis::Core::JsonRepresentation property :follow_gae_application, as: 'followGaeApplication' property :kind, as: 'kind' property :secondary_zone, as: 'secondaryZone' property :zone, as: 'zone' end end class MaintenanceWindow # @private class Representation < Google::Apis::Core::JsonRepresentation property :day, as: 'day' property :hour, as: 'hour' property :kind, as: 'kind' property :update_track, as: 'updateTrack' end end class Message # @private class Representation < Google::Apis::Core::JsonRepresentation property :message, as: 'message' property :severity, as: 'severity' end end class Metadata # @private class Representation < Google::Apis::Core::JsonRepresentation property :sql_statement_execution_time, as: 'sqlStatementExecutionTime' end end class MySqlReplicaConfiguration # @private class Representation < Google::Apis::Core::JsonRepresentation property :ca_certificate, as: 'caCertificate' property :client_certificate, as: 'clientCertificate' property :client_key, as: 'clientKey' property :connect_retry_interval, as: 'connectRetryInterval' property :dump_file_path, as: 'dumpFilePath' property :kind, as: 'kind' property :master_heartbeat_period, :numeric_string => true, as: 'masterHeartbeatPeriod' property :password, as: 'password' property :ssl_cipher, as: 'sslCipher' property :username, as: 'username' property :verify_server_certificate, as: 'verifyServerCertificate' end end class MySqlSyncConfig # @private class Representation < Google::Apis::Core::JsonRepresentation collection :initial_sync_flags, as: 'initialSyncFlags', class: Google::Apis::SqladminV1beta4::SyncFlags, decorator: Google::Apis::SqladminV1beta4::SyncFlags::Representation end end class OnPremisesConfiguration # @private class Representation < Google::Apis::Core::JsonRepresentation property :ca_certificate, as: 'caCertificate' property :client_certificate, as: 'clientCertificate' property :client_key, as: 'clientKey' property :dump_file_path, as: 'dumpFilePath' property :host_port, as: 'hostPort' property :kind, as: 'kind' property :password, as: 'password' collection :selected_objects, as: 'selectedObjects', class: Google::Apis::SqladminV1beta4::SelectedObjects, decorator: Google::Apis::SqladminV1beta4::SelectedObjects::Representation property :source_instance, as: 'sourceInstance', class: Google::Apis::SqladminV1beta4::InstanceReference, decorator: Google::Apis::SqladminV1beta4::InstanceReference::Representation property :ssl_option, as: 'sslOption' property :username, as: 'username' end end class Operation # @private class Representation < Google::Apis::Core::JsonRepresentation property :acquire_ssrs_lease_context, as: 'acquireSsrsLeaseContext', class: Google::Apis::SqladminV1beta4::AcquireSsrsLeaseContext, decorator: Google::Apis::SqladminV1beta4::AcquireSsrsLeaseContext::Representation property :api_warning, as: 'apiWarning', class: Google::Apis::SqladminV1beta4::ApiWarning, decorator: Google::Apis::SqladminV1beta4::ApiWarning::Representation property :backup_context, as: 'backupContext', class: Google::Apis::SqladminV1beta4::BackupContext, decorator: Google::Apis::SqladminV1beta4::BackupContext::Representation property :end_time, as: 'endTime' property :error, as: 'error', class: Google::Apis::SqladminV1beta4::OperationErrors, decorator: Google::Apis::SqladminV1beta4::OperationErrors::Representation property :export_context, as: 'exportContext', class: Google::Apis::SqladminV1beta4::ExportContext, decorator: Google::Apis::SqladminV1beta4::ExportContext::Representation property :import_context, as: 'importContext', class: Google::Apis::SqladminV1beta4::ImportContext, decorator: Google::Apis::SqladminV1beta4::ImportContext::Representation property :insert_time, as: 'insertTime' property :kind, as: 'kind' property :name, as: 'name' property :operation_type, as: 'operationType' property :pre_check_major_version_upgrade_context, as: 'preCheckMajorVersionUpgradeContext', class: Google::Apis::SqladminV1beta4::PreCheckMajorVersionUpgradeContext, decorator: Google::Apis::SqladminV1beta4::PreCheckMajorVersionUpgradeContext::Representation property :self_link, as: 'selfLink' property :start_time, as: 'startTime' property :status, as: 'status' property :sub_operation_type, as: 'subOperationType', class: Google::Apis::SqladminV1beta4::SqlSubOperationType, decorator: Google::Apis::SqladminV1beta4::SqlSubOperationType::Representation property :target_id, as: 'targetId' property :target_link, as: 'targetLink' property :target_project, as: 'targetProject' property :user, as: 'user' end end class OperationError # @private class Representation < Google::Apis::Core::JsonRepresentation property :code, as: 'code' property :kind, as: 'kind' property :message, as: 'message' end end class OperationErrors # @private class Representation < Google::Apis::Core::JsonRepresentation collection :errors, as: 'errors', class: Google::Apis::SqladminV1beta4::OperationError, decorator: Google::Apis::SqladminV1beta4::OperationError::Representation property :kind, as: 'kind' end end class OperationMetadata # @private class Representation < Google::Apis::Core::JsonRepresentation property :api_version, as: 'apiVersion' property :cancel_requested, as: 'cancelRequested' property :create_time, as: 'createTime' property :end_time, as: 'endTime' property :status_detail, as: 'statusDetail' property :target, as: 'target' property :verb, as: 'verb' end end class ListOperationsResponse # @private class Representation < Google::Apis::Core::JsonRepresentation collection :items, as: 'items', class: Google::Apis::SqladminV1beta4::Operation, decorator: Google::Apis::SqladminV1beta4::Operation::Representation property :kind, as: 'kind' property :next_page_token, as: 'nextPageToken' end end class PasswordStatus # @private class Representation < Google::Apis::Core::JsonRepresentation property :locked, as: 'locked' property :password_expiration_time, as: 'passwordExpirationTime' end end class PasswordValidationPolicy # @private class Representation < Google::Apis::Core::JsonRepresentation property :complexity, as: 'complexity' property :disallow_compromised_credentials, as: 'disallowCompromisedCredentials' property :disallow_username_substring, as: 'disallowUsernameSubstring' property :enable_password_policy, as: 'enablePasswordPolicy' property :min_length, as: 'minLength' property :password_change_interval, as: 'passwordChangeInterval' property :reuse_interval, as: 'reuseInterval' end end class PerformDiskShrinkContext # @private class Representation < Google::Apis::Core::JsonRepresentation property :target_size_gb, :numeric_string => true, as: 'targetSizeGb' end end class PerformanceCaptureConfig # @private class Representation < Google::Apis::Core::JsonRepresentation property :enabled, as: 'enabled' property :probe_threshold, as: 'probeThreshold' property :probing_interval_seconds, as: 'probingIntervalSeconds' property :running_threads_threshold, as: 'runningThreadsThreshold' property :seconds_behind_source_threshold, as: 'secondsBehindSourceThreshold' property :transaction_duration_threshold, as: 'transactionDurationThreshold' end end class PointInTimeRestoreContext # @private class Representation < Google::Apis::Core::JsonRepresentation property :allocated_ip_range, as: 'allocatedIpRange' property :datasource, as: 'datasource' property :point_in_time, as: 'pointInTime' property :preferred_secondary_zone, as: 'preferredSecondaryZone' property :preferred_zone, as: 'preferredZone' property :private_network, as: 'privateNetwork' property :target_instance, as: 'targetInstance' end end class PoolNodeConfig # @private class Representation < Google::Apis::Core::JsonRepresentation property :dns_name, as: 'dnsName' collection :dns_names, as: 'dnsNames', class: Google::Apis::SqladminV1beta4::DnsNameMapping, decorator: Google::Apis::SqladminV1beta4::DnsNameMapping::Representation property :gce_zone, as: 'gceZone' collection :ip_addresses, as: 'ipAddresses', class: Google::Apis::SqladminV1beta4::IpMapping, decorator: Google::Apis::SqladminV1beta4::IpMapping::Representation property :name, as: 'name' collection :psc_auto_connections, as: 'pscAutoConnections', class: Google::Apis::SqladminV1beta4::PscAutoConnectionConfig, decorator: Google::Apis::SqladminV1beta4::PscAutoConnectionConfig::Representation property :psc_service_attachment_link, as: 'pscServiceAttachmentLink' property :state, as: 'state' end end class PreCheckMajorVersionUpgradeContext # @private class Representation < Google::Apis::Core::JsonRepresentation property :kind, as: 'kind' collection :pre_check_response, as: 'preCheckResponse', class: Google::Apis::SqladminV1beta4::PreCheckResponse, decorator: Google::Apis::SqladminV1beta4::PreCheckResponse::Representation property :target_database_version, as: 'targetDatabaseVersion' end end class PreCheckResponse # @private class Representation < Google::Apis::Core::JsonRepresentation collection :actions_required, as: 'actionsRequired' property :message, as: 'message' property :message_type, as: 'messageType' end end class PscAutoConnectionConfig # @private class Representation < Google::Apis::Core::JsonRepresentation property :consumer_network, as: 'consumerNetwork' property :consumer_network_status, as: 'consumerNetworkStatus' property :consumer_project, as: 'consumerProject' property :ip_address, as: 'ipAddress' property :status, as: 'status' end end class PscConfig # @private class Representation < Google::Apis::Core::JsonRepresentation collection :allowed_consumer_projects, as: 'allowedConsumerProjects' property :network_attachment_uri, as: 'networkAttachmentUri' collection :psc_auto_connections, as: 'pscAutoConnections', class: Google::Apis::SqladminV1beta4::PscAutoConnectionConfig, decorator: Google::Apis::SqladminV1beta4::PscAutoConnectionConfig::Representation property :psc_enabled, as: 'pscEnabled' end end class QueryResult # @private class Representation < Google::Apis::Core::JsonRepresentation collection :columns, as: 'columns', class: Google::Apis::SqladminV1beta4::Column, decorator: Google::Apis::SqladminV1beta4::Column::Representation property :message, as: 'message' property :partial_result, as: 'partialResult' collection :rows, as: 'rows', class: Google::Apis::SqladminV1beta4::Row, decorator: Google::Apis::SqladminV1beta4::Row::Representation property :status, as: 'status', class: Google::Apis::SqladminV1beta4::Status, decorator: Google::Apis::SqladminV1beta4::Status::Representation end end class ReadPoolAutoScaleConfig # @private class Representation < Google::Apis::Core::JsonRepresentation property :disable_scale_in, as: 'disableScaleIn' property :enabled, as: 'enabled' property :max_node_count, as: 'maxNodeCount' property :min_node_count, as: 'minNodeCount' property :scale_in_cooldown_seconds, as: 'scaleInCooldownSeconds' property :scale_out_cooldown_seconds, as: 'scaleOutCooldownSeconds' collection :target_metrics, as: 'targetMetrics', class: Google::Apis::SqladminV1beta4::TargetMetric, decorator: Google::Apis::SqladminV1beta4::TargetMetric::Representation end end class ReplicaConfiguration # @private class Representation < Google::Apis::Core::JsonRepresentation property :cascadable_replica, as: 'cascadableReplica' property :failover_target, as: 'failoverTarget' property :kind, as: 'kind' property :mysql_replica_configuration, as: 'mysqlReplicaConfiguration', class: Google::Apis::SqladminV1beta4::MySqlReplicaConfiguration, decorator: Google::Apis::SqladminV1beta4::MySqlReplicaConfiguration::Representation end end class ReplicationCluster # @private class Representation < Google::Apis::Core::JsonRepresentation property :dr_replica, as: 'drReplica' property :failover_dr_replica_name, as: 'failoverDrReplicaName' property :psa_write_endpoint, as: 'psaWriteEndpoint' end end class Reschedule # @private class Representation < Google::Apis::Core::JsonRepresentation property :reschedule_type, as: 'rescheduleType' property :schedule_time, as: 'scheduleTime' end end class RestoreBackupContext # @private class Representation < Google::Apis::Core::JsonRepresentation property :backup_run_id, :numeric_string => true, as: 'backupRunId' property :instance_id, as: 'instanceId' property :kind, as: 'kind' property :project, as: 'project' end end class RotateEntraIdCertificateContext # @private class Representation < Google::Apis::Core::JsonRepresentation property :kind, as: 'kind' property :next_version, as: 'nextVersion' end end class RotateServerCaContext # @private class Representation < Google::Apis::Core::JsonRepresentation property :kind, as: 'kind' property :next_version, as: 'nextVersion' end end class RotateServerCertificateContext # @private class Representation < Google::Apis::Core::JsonRepresentation property :kind, as: 'kind' property :next_version, as: 'nextVersion' end end class Row # @private class Representation < Google::Apis::Core::JsonRepresentation collection :values, as: 'values', class: Google::Apis::SqladminV1beta4::Value, decorator: Google::Apis::SqladminV1beta4::Value::Representation end end class SelectedObjects # @private class Representation < Google::Apis::Core::JsonRepresentation property :database, as: 'database' end end class Settings # @private class Representation < Google::Apis::Core::JsonRepresentation property :activation_policy, as: 'activationPolicy' property :active_directory_config, as: 'activeDirectoryConfig', class: Google::Apis::SqladminV1beta4::SqlActiveDirectoryConfig, decorator: Google::Apis::SqladminV1beta4::SqlActiveDirectoryConfig::Representation property :advanced_machine_features, as: 'advancedMachineFeatures', class: Google::Apis::SqladminV1beta4::AdvancedMachineFeatures, decorator: Google::Apis::SqladminV1beta4::AdvancedMachineFeatures::Representation collection :authorized_gae_applications, as: 'authorizedGaeApplications' property :auto_upgrade_enabled, as: 'autoUpgradeEnabled' property :availability_type, as: 'availabilityType' property :backup_configuration, as: 'backupConfiguration', class: Google::Apis::SqladminV1beta4::BackupConfiguration, decorator: Google::Apis::SqladminV1beta4::BackupConfiguration::Representation property :collation, as: 'collation' property :connection_pool_config, as: 'connectionPoolConfig', class: Google::Apis::SqladminV1beta4::ConnectionPoolConfig, decorator: Google::Apis::SqladminV1beta4::ConnectionPoolConfig::Representation property :connector_enforcement, as: 'connectorEnforcement' property :crash_safe_replication_enabled, as: 'crashSafeReplicationEnabled' property :data_api_access, as: 'dataApiAccess' property :data_cache_config, as: 'dataCacheConfig', class: Google::Apis::SqladminV1beta4::DataCacheConfig, decorator: Google::Apis::SqladminV1beta4::DataCacheConfig::Representation property :data_disk_provisioned_iops, :numeric_string => true, as: 'dataDiskProvisionedIops' property :data_disk_provisioned_throughput, :numeric_string => true, as: 'dataDiskProvisionedThroughput' property :data_disk_size_gb, :numeric_string => true, as: 'dataDiskSizeGb' property :data_disk_type, as: 'dataDiskType' collection :database_flags, as: 'databaseFlags', class: Google::Apis::SqladminV1beta4::DatabaseFlags, decorator: Google::Apis::SqladminV1beta4::DatabaseFlags::Representation property :database_replication_enabled, as: 'databaseReplicationEnabled' property :deletion_protection_enabled, as: 'deletionProtectionEnabled' collection :deny_maintenance_periods, as: 'denyMaintenancePeriods', class: Google::Apis::SqladminV1beta4::DenyMaintenancePeriod, decorator: Google::Apis::SqladminV1beta4::DenyMaintenancePeriod::Representation property :edition, as: 'edition' property :enable_dataplex_integration, as: 'enableDataplexIntegration' property :enable_google_ml_integration, as: 'enableGoogleMlIntegration' property :entraid_config, as: 'entraidConfig', class: Google::Apis::SqladminV1beta4::SqlServerEntraIdConfig, decorator: Google::Apis::SqladminV1beta4::SqlServerEntraIdConfig::Representation property :final_backup_config, as: 'finalBackupConfig', class: Google::Apis::SqladminV1beta4::FinalBackupConfig, decorator: Google::Apis::SqladminV1beta4::FinalBackupConfig::Representation property :insights_config, as: 'insightsConfig', class: Google::Apis::SqladminV1beta4::InsightsConfig, decorator: Google::Apis::SqladminV1beta4::InsightsConfig::Representation property :ip_configuration, as: 'ipConfiguration', class: Google::Apis::SqladminV1beta4::IpConfiguration, decorator: Google::Apis::SqladminV1beta4::IpConfiguration::Representation property :kind, as: 'kind' property :location_preference, as: 'locationPreference', class: Google::Apis::SqladminV1beta4::LocationPreference, decorator: Google::Apis::SqladminV1beta4::LocationPreference::Representation property :maintenance_window, as: 'maintenanceWindow', class: Google::Apis::SqladminV1beta4::MaintenanceWindow, decorator: Google::Apis::SqladminV1beta4::MaintenanceWindow::Representation property :password_validation_policy, as: 'passwordValidationPolicy', class: Google::Apis::SqladminV1beta4::PasswordValidationPolicy, decorator: Google::Apis::SqladminV1beta4::PasswordValidationPolicy::Representation property :performance_capture_config, as: 'performanceCaptureConfig', class: Google::Apis::SqladminV1beta4::PerformanceCaptureConfig, decorator: Google::Apis::SqladminV1beta4::PerformanceCaptureConfig::Representation property :pricing_plan, as: 'pricingPlan' property :read_pool_auto_scale_config, as: 'readPoolAutoScaleConfig', class: Google::Apis::SqladminV1beta4::ReadPoolAutoScaleConfig, decorator: Google::Apis::SqladminV1beta4::ReadPoolAutoScaleConfig::Representation property :replication_lag_max_seconds, as: 'replicationLagMaxSeconds' property :replication_type, as: 'replicationType' property :retain_backups_on_delete, as: 'retainBackupsOnDelete' property :settings_version, :numeric_string => true, as: 'settingsVersion' property :sql_server_audit_config, as: 'sqlServerAuditConfig', class: Google::Apis::SqladminV1beta4::SqlServerAuditConfig, decorator: Google::Apis::SqladminV1beta4::SqlServerAuditConfig::Representation property :storage_auto_resize, as: 'storageAutoResize' property :storage_auto_resize_limit, :numeric_string => true, as: 'storageAutoResizeLimit' property :tier, as: 'tier' property :time_zone, as: 'timeZone' hash :user_labels, as: 'userLabels' end end class SqlActiveDirectoryConfig # @private class Representation < Google::Apis::Core::JsonRepresentation property :admin_credential_secret_name, as: 'adminCredentialSecretName' collection :dns_servers, as: 'dnsServers' property :domain, as: 'domain' property :kind, as: 'kind' property :mode, as: 'mode' property :organizational_unit, as: 'organizationalUnit' end end class SqlExternalSyncSettingError # @private class Representation < Google::Apis::Core::JsonRepresentation property :detail, as: 'detail' property :kind, as: 'kind' property :type, as: 'type' end end class SqlInstancesAcquireSsrsLeaseResponse # @private class Representation < Google::Apis::Core::JsonRepresentation property :operation_id, as: 'operationId' end end class SqlInstancesExecuteSqlResponse # @private class Representation < Google::Apis::Core::JsonRepresentation collection :messages, as: 'messages', class: Google::Apis::SqladminV1beta4::Message, decorator: Google::Apis::SqladminV1beta4::Message::Representation property :metadata, as: 'metadata', class: Google::Apis::SqladminV1beta4::Metadata, decorator: Google::Apis::SqladminV1beta4::Metadata::Representation collection :results, as: 'results', class: Google::Apis::SqladminV1beta4::QueryResult, decorator: Google::Apis::SqladminV1beta4::QueryResult::Representation property :status, as: 'status', class: Google::Apis::SqladminV1beta4::Status, decorator: Google::Apis::SqladminV1beta4::Status::Representation end end class SqlInstancesGetDiskShrinkConfigResponse # @private class Representation < Google::Apis::Core::JsonRepresentation property :kind, as: 'kind' property :message, as: 'message' property :minimal_target_size_gb, :numeric_string => true, as: 'minimalTargetSizeGb' end end class SqlInstancesGetLatestRecoveryTimeResponse # @private class Representation < Google::Apis::Core::JsonRepresentation property :earliest_recovery_time, as: 'earliestRecoveryTime' property :kind, as: 'kind' property :latest_recovery_time, as: 'latestRecoveryTime' end end class SqlInstancesReleaseSsrsLeaseResponse # @private class Representation < Google::Apis::Core::JsonRepresentation property :operation_id, as: 'operationId' end end class SqlInstancesRescheduleMaintenanceRequestBody # @private class Representation < Google::Apis::Core::JsonRepresentation property :reschedule, as: 'reschedule', class: Google::Apis::SqladminV1beta4::Reschedule, decorator: Google::Apis::SqladminV1beta4::Reschedule::Representation end end class SqlInstancesResetReplicaSizeRequest # @private class Representation < Google::Apis::Core::JsonRepresentation end end class SqlInstancesStartExternalSyncRequest # @private class Representation < Google::Apis::Core::JsonRepresentation property :migration_type, as: 'migrationType' property :mysql_sync_config, as: 'mysqlSyncConfig', class: Google::Apis::SqladminV1beta4::MySqlSyncConfig, decorator: Google::Apis::SqladminV1beta4::MySqlSyncConfig::Representation property :replica_overwrite_enabled, as: 'replicaOverwriteEnabled' property :skip_verification, as: 'skipVerification' property :sync_mode, as: 'syncMode' property :sync_parallel_level, as: 'syncParallelLevel' end end class SqlInstancesVerifyExternalSyncSettingsRequest # @private class Representation < Google::Apis::Core::JsonRepresentation property :migration_type, as: 'migrationType' property :mysql_sync_config, as: 'mysqlSyncConfig', class: Google::Apis::SqladminV1beta4::MySqlSyncConfig, decorator: Google::Apis::SqladminV1beta4::MySqlSyncConfig::Representation collection :selected_objects, as: 'selectedObjects', class: Google::Apis::SqladminV1beta4::ExternalSyncSelectedObject, decorator: Google::Apis::SqladminV1beta4::ExternalSyncSelectedObject::Representation property :sync_mode, as: 'syncMode' property :sync_parallel_level, as: 'syncParallelLevel' property :verify_connection_only, as: 'verifyConnectionOnly' property :verify_replication_only, as: 'verifyReplicationOnly' end end class SqlInstancesVerifyExternalSyncSettingsResponse # @private class Representation < Google::Apis::Core::JsonRepresentation collection :errors, as: 'errors', class: Google::Apis::SqladminV1beta4::SqlExternalSyncSettingError, decorator: Google::Apis::SqladminV1beta4::SqlExternalSyncSettingError::Representation property :kind, as: 'kind' collection :warnings, as: 'warnings', class: Google::Apis::SqladminV1beta4::SqlExternalSyncSettingError, decorator: Google::Apis::SqladminV1beta4::SqlExternalSyncSettingError::Representation end end class SqlOutOfDiskReport # @private class Representation < Google::Apis::Core::JsonRepresentation property :sql_min_recommended_increase_size_gb, as: 'sqlMinRecommendedIncreaseSizeGb' property :sql_out_of_disk_state, as: 'sqlOutOfDiskState' end end class SqlScheduledMaintenance # @private class Representation < Google::Apis::Core::JsonRepresentation property :can_defer, as: 'canDefer' property :can_reschedule, as: 'canReschedule' property :schedule_deadline_time, as: 'scheduleDeadlineTime' property :start_time, as: 'startTime' end end class SqlServerAuditConfig # @private class Representation < Google::Apis::Core::JsonRepresentation property :bucket, as: 'bucket' property :kind, as: 'kind' property :retention_interval, as: 'retentionInterval' property :upload_interval, as: 'uploadInterval' end end class SqlServerDatabaseDetails # @private class Representation < Google::Apis::Core::JsonRepresentation property :compatibility_level, as: 'compatibilityLevel' property :recovery_model, as: 'recoveryModel' end end class SqlServerEntraIdConfig # @private class Representation < Google::Apis::Core::JsonRepresentation property :application_id, as: 'applicationId' property :kind, as: 'kind' property :tenant_id, as: 'tenantId' end end class SqlServerUserDetails # @private class Representation < Google::Apis::Core::JsonRepresentation property :disabled, as: 'disabled' collection :server_roles, as: 'serverRoles' end end class SqlSubOperationType # @private class Representation < Google::Apis::Core::JsonRepresentation property :maintenance_type, as: 'maintenanceType' end end class SslCert # @private class Representation < Google::Apis::Core::JsonRepresentation property :cert, as: 'cert' property :cert_serial_number, as: 'certSerialNumber' property :common_name, as: 'commonName' property :create_time, as: 'createTime' property :expiration_time, as: 'expirationTime' property :instance, as: 'instance' property :kind, as: 'kind' property :self_link, as: 'selfLink' property :sha1_fingerprint, as: 'sha1Fingerprint' end end class SslCertDetail # @private class Representation < Google::Apis::Core::JsonRepresentation property :cert_info, as: 'certInfo', class: Google::Apis::SqladminV1beta4::SslCert, decorator: Google::Apis::SqladminV1beta4::SslCert::Representation property :cert_private_key, as: 'certPrivateKey' end end class SslCertsCreateEphemeralRequest # @private class Representation < Google::Apis::Core::JsonRepresentation property :access_token, as: 'access_token' property :public_key, as: 'public_key' end end class InsertSslCertsRequest # @private class Representation < Google::Apis::Core::JsonRepresentation property :common_name, as: 'commonName' end end class InsertSslCertsResponse # @private class Representation < Google::Apis::Core::JsonRepresentation property :client_cert, as: 'clientCert', class: Google::Apis::SqladminV1beta4::SslCertDetail, decorator: Google::Apis::SqladminV1beta4::SslCertDetail::Representation property :kind, as: 'kind' property :operation, as: 'operation', class: Google::Apis::SqladminV1beta4::Operation, decorator: Google::Apis::SqladminV1beta4::Operation::Representation property :server_ca_cert, as: 'serverCaCert', class: Google::Apis::SqladminV1beta4::SslCert, decorator: Google::Apis::SqladminV1beta4::SslCert::Representation end end class ListSslCertsResponse # @private class Representation < Google::Apis::Core::JsonRepresentation collection :items, as: 'items', class: Google::Apis::SqladminV1beta4::SslCert, decorator: Google::Apis::SqladminV1beta4::SslCert::Representation property :kind, as: 'kind' end end class Status # @private class Representation < Google::Apis::Core::JsonRepresentation property :code, as: 'code' collection :details, as: 'details' property :message, as: 'message' end end class SyncFlags # @private class Representation < Google::Apis::Core::JsonRepresentation property :name, as: 'name' property :value, as: 'value' end end class TargetMetric # @private class Representation < Google::Apis::Core::JsonRepresentation property :metric, as: 'metric' property :target_value, as: 'targetValue' end end class Tier # @private class Representation < Google::Apis::Core::JsonRepresentation property :disk_quota, :numeric_string => true, as: 'DiskQuota' property :ram, :numeric_string => true, as: 'RAM' property :kind, as: 'kind' collection :region, as: 'region' property :tier, as: 'tier' end end class ListTiersResponse # @private class Representation < Google::Apis::Core::JsonRepresentation collection :items, as: 'items', class: Google::Apis::SqladminV1beta4::Tier, decorator: Google::Apis::SqladminV1beta4::Tier::Representation property :kind, as: 'kind' end end class TruncateLogContext # @private class Representation < Google::Apis::Core::JsonRepresentation property :kind, as: 'kind' property :log_type, as: 'logType' end end class User # @private class Representation < Google::Apis::Core::JsonRepresentation collection :database_roles, as: 'databaseRoles' property :dual_password_type, as: 'dualPasswordType' property :etag, as: 'etag' property :host, as: 'host' property :iam_email, as: 'iamEmail' property :iam_status, as: 'iamStatus' property :instance, as: 'instance' property :kind, as: 'kind' property :name, as: 'name' property :password, as: 'password' property :password_policy, as: 'passwordPolicy', class: Google::Apis::SqladminV1beta4::UserPasswordValidationPolicy, decorator: Google::Apis::SqladminV1beta4::UserPasswordValidationPolicy::Representation property :project, as: 'project' property :sqlserver_user_details, as: 'sqlserverUserDetails', class: Google::Apis::SqladminV1beta4::SqlServerUserDetails, decorator: Google::Apis::SqladminV1beta4::SqlServerUserDetails::Representation property :type, as: 'type' end end class UserPasswordValidationPolicy # @private class Representation < Google::Apis::Core::JsonRepresentation property :allowed_failed_attempts, as: 'allowedFailedAttempts' property :enable_failed_attempts_check, as: 'enableFailedAttemptsCheck' property :enable_password_verification, as: 'enablePasswordVerification' property :password_expiration_duration, as: 'passwordExpirationDuration' property :status, as: 'status', class: Google::Apis::SqladminV1beta4::PasswordStatus, decorator: Google::Apis::SqladminV1beta4::PasswordStatus::Representation end end class ListUsersResponse # @private class Representation < Google::Apis::Core::JsonRepresentation collection :items, as: 'items', class: Google::Apis::SqladminV1beta4::User, decorator: Google::Apis::SqladminV1beta4::User::Representation property :kind, as: 'kind' property :next_page_token, as: 'nextPageToken' end end class Value # @private class Representation < Google::Apis::Core::JsonRepresentation property :null_value, as: 'nullValue' property :value, as: 'value' end end end end end google-apis-sqladmin_v1beta4-0.96.0/lib/google/apis/sqladmin_v1beta4.rb0000644000004100000410000000265515137265343025662 0ustar www-datawww-data# Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. require 'google/apis/sqladmin_v1beta4/service.rb' require 'google/apis/sqladmin_v1beta4/classes.rb' require 'google/apis/sqladmin_v1beta4/representations.rb' require 'google/apis/sqladmin_v1beta4/gem_version.rb' module Google module Apis # Cloud SQL Admin API # # API for Cloud SQL database instance management # # @see https://cloud.google.com/sql/docs module SqladminV1beta4 # Version of the Cloud SQL Admin API this client connects to. # This is NOT the gem version. VERSION = 'V1beta4' # See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account. AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' # Manage your Google SQL Service instances AUTH_SQLSERVICE_ADMIN = 'https://www.googleapis.com/auth/sqlservice.admin' end end end google-apis-sqladmin_v1beta4-0.96.0/lib/google-apis-sqladmin_v1beta4.rb0000644000004100000410000000114715137265343025651 0ustar www-datawww-data# Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. require "google/apis/sqladmin_v1beta4" google-apis-sqladmin_v1beta4-0.96.0/.yardopts0000644000004100000410000000040015137265343021051 0ustar www-datawww-data--hide-void-return --no-private --verbose --title=google-apis-sqladmin_v1beta4 --markup-provider=redcarpet --markup=markdown --main OVERVIEW.md lib/google/apis/sqladmin_v1beta4/*.rb lib/google/apis/sqladmin_v1beta4.rb - OVERVIEW.md CHANGELOG.md LICENSE.md google-apis-sqladmin_v1beta4-0.96.0/google-apis-sqladmin_v1beta4.gemspec0000644000004100000410000000472215137265343026125 0ustar www-datawww-data######################################################### # This file has been automatically generated by gem2tgz # ######################################################### # -*- encoding: utf-8 -*- # stub: google-apis-sqladmin_v1beta4 0.96.0 ruby lib Gem::Specification.new do |s| s.name = "google-apis-sqladmin_v1beta4".freeze s.version = "0.96.0".freeze s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version= s.metadata = { "bug_tracker_uri" => "https://github.com/googleapis/google-api-ruby-client/issues", "changelog_uri" => "https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-sqladmin_v1beta4/CHANGELOG.md", "documentation_uri" => "https://googleapis.dev/ruby/google-apis-sqladmin_v1beta4/v0.96.0", "source_code_uri" => "https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-sqladmin_v1beta4" } if s.respond_to? :metadata= s.require_paths = ["lib".freeze] s.authors = ["Google LLC".freeze] s.date = "1980-01-02" s.description = "This is the simple REST client for Cloud SQL Admin API V1beta4. Simple REST clients are Ruby client libraries that provide access to Google services via their HTTP REST API endpoints. These libraries are generated and updated automatically based on the discovery documents published by the service, and they handle most concerns such as authentication, pagination, retry, timeouts, and logging. You can use this client to access the Cloud SQL Admin API, but note that some services may provide a separate modern client that is easier to use.".freeze s.email = "googleapis-packages@google.com".freeze s.files = [".yardopts".freeze, "CHANGELOG.md".freeze, "LICENSE.md".freeze, "OVERVIEW.md".freeze, "lib/google-apis-sqladmin_v1beta4.rb".freeze, "lib/google/apis/sqladmin_v1beta4.rb".freeze, "lib/google/apis/sqladmin_v1beta4/classes.rb".freeze, "lib/google/apis/sqladmin_v1beta4/gem_version.rb".freeze, "lib/google/apis/sqladmin_v1beta4/representations.rb".freeze, "lib/google/apis/sqladmin_v1beta4/service.rb".freeze] s.homepage = "https://github.com/google/google-api-ruby-client".freeze s.licenses = ["Apache-2.0".freeze] s.required_ruby_version = Gem::Requirement.new(">= 3.1".freeze) s.rubygems_version = "3.6.9".freeze s.summary = "Simple REST client for Cloud SQL Admin API V1beta4".freeze s.specification_version = 4 s.add_runtime_dependency(%q.freeze, [">= 0.15.0".freeze, "< 2.a".freeze]) end google-apis-sqladmin_v1beta4-0.96.0/LICENSE.md0000644000004100000410000002636115137265343020625 0ustar www-datawww-data Apache License Version 2.0, January 2004 http://www.apache.org/licenses/ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 1. Definitions. "License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document. "Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License. "Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity. "You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License. "Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files. "Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types. "Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below). "Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof. "Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution." "Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work. 2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form. 3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed. 4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions: (a) You must give any other recipients of the Work or Derivative Works a copy of this License; and (b) You must cause any modified files to carry prominent notices stating that You changed the files; and (c) You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and (d) If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License. You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License. 5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions. 6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file. 7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License. 8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages. 9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability. END OF TERMS AND CONDITIONS APPENDIX: How to apply the Apache License to your work. To apply the Apache License to your work, attach the following boilerplate notice, with the fields enclosed by brackets "[]" replaced with your own identifying information. (Don't include the brackets!) The text should be enclosed in the appropriate comment syntax for the file format. We also recommend that a file or class name and description of purpose be included on the same "printed page" as the copyright notice for easier identification within third-party archives. Copyright [yyyy] [name of copyright owner] Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. google-apis-sqladmin_v1beta4-0.96.0/CHANGELOG.md0000644000004100000410000002070115137265343021022 0ustar www-datawww-data# Release history for google-apis-sqladmin_v1beta4 ### v0.96.0 (2026-01-18) * Regenerated from discovery document revision 20260106 ### v0.95.0 (2025-12-14) * Regenerated from discovery document revision 20251201 ### v0.94.0 (2025-11-16) * Regenerated from discovery document revision 20251107 ### v0.93.0 (2025-10-26) * Regenerated from discovery document revision 20251019 ### v0.92.0 (2025-10-12) * Regenerated from discovery document revision 20251006 ### v0.91.0 (2025-09-28) * Regenerated from discovery document revision 20250915 ### v0.90.0 (2025-09-21) * Regenerated from discovery document revision 20250908 ### v0.89.0 (2025-08-31) * Regenerated from discovery document revision 20250823 ### v0.88.0 (2025-08-17) * Regenerated from discovery document revision 20250807 ### v0.87.0 (2025-06-22) * Regenerated from discovery document revision 20250613 ### v0.86.0 (2025-06-01) * Regenerated from discovery document revision 20250526 * Regenerated using generator version 0.18.0 ### v0.85.0 (2025-05-21) * Regenerated from discovery document revision 20250516 ### v0.84.0 (2025-05-18) * Regenerated from discovery document revision 20250508 ### v0.83.0 (2025-05-11) * Regenerated from discovery document revision 20250502 ### v0.82.0 (2025-05-04) * Regenerated from discovery document revision 20250427 * Regenerated using generator version 0.17.0 ### v0.81.0 (2025-04-27) * Regenerated from discovery document revision 20250412 ### v0.80.0 (2025-03-16) * Regenerated from discovery document revision 20250310 ### v0.79.0 (2025-03-09) * Regenerated from discovery document revision 20250226 ### v0.78.0 (2025-03-02) * Regenerated from discovery document revision 20250216 * Regenerated using generator version 0.16.0 ### v0.77.0 (2025-01-05) * Regenerated from discovery document revision 20241210 ### v0.76.0 (2024-12-15) * Regenerated from discovery document revision 20241204 ### v0.75.0 (2024-12-02) * Regenerated from discovery document revision 20241108 * Regenerated using generator version 0.15.1 ### v0.74.0 (2024-07-25) * Regenerated from discovery document revision 20240711 ### v0.73.0 (2024-06-23) * Regenerated from discovery document revision 20240618 ### v0.72.0 (2024-06-16) * Regenerated from discovery document revision 20240607 ### v0.71.0 (2024-05-26) * Regenerated from discovery document revision 20240521 * Regenerated using generator version 0.15.0 ### v0.70.0 (2024-05-05) * Regenerated from discovery document revision 20240425 ### v0.69.0 (2024-03-31) * Regenerated from discovery document revision 20240324 ### v0.68.0 (2024-03-24) * Regenerated from discovery document revision 20240317 ### v0.67.0 (2024-03-10) * Regenerated from discovery document revision 20240304 ### v0.66.0 (2024-02-24) * Regenerated from discovery document revision 20240211 * Regenerated using generator version 0.14.0 ### v0.65.0 (2024-02-11) * Regenerated from discovery document revision 20240205 ### v0.64.0 (2024-02-04) * Regenerated from discovery document revision 20240201 ### v0.63.0 (2024-01-28) * Regenerated from discovery document revision 20240123 * Regenerated using generator version 0.13.1 ### v0.62.0 (2024-01-22) * Regenerated from discovery document revision 20240115 * Regenerated using generator version 0.13.0 ### v0.61.0 (2024-01-07) * Regenerated from discovery document revision 20240101 ### v0.60.0 (2023-12-17) * Regenerated from discovery document revision 20231211 ### v0.59.0 (2023-11-12) * Regenerated from discovery document revision 20231108 ### v0.58.0 (2023-11-05) * Regenerated from discovery document revision 20231029 ### v0.57.0 (2023-10-22) * Regenerated from discovery document revision 20231017 ### v0.56.0 (2023-10-08) * Regenerated from discovery document revision 20231004 ### v0.55.0 (2023-09-10) * Regenerated from discovery document revision 20230831 ### v0.54.0 (2023-08-03) * Regenerated from discovery document revision 20230721 ### v0.53.0 (2023-07-16) * Regenerated from discovery document revision 20230710 ### v0.52.0 (2023-07-02) * Regenerated from discovery document revision 20230627 ### v0.51.0 (2023-06-25) * Regenerated from discovery document revision 20230621 ### v0.50.0 (2023-06-11) * Regenerated from discovery document revision 20230607 ### v0.49.0 (2023-06-04) * Regenerated from discovery document revision 20230530 ### v0.48.0 (2023-05-14) * Regenerated from discovery document revision 20230505 ### v0.47.0 (2023-04-30) * Regenerated from discovery document revision 20230422 ### v0.46.0 (2023-04-16) * Regenerated from discovery document revision 20230405 ### v0.45.0 (2023-03-12) * Regenerated from discovery document revision 20230309 ### v0.44.0 (2023-03-05) * Regenerated from discovery document revision 20230226 ### v0.43.0 (2023-02-15) * Regenerated using generator version 0.12.0 ### v0.42.0 (2023-01-15) * Regenerated from discovery document revision 20230111 * Regenerated using generator version 0.11.1 ### v0.41.0 (2022-11-16) * Regenerated from discovery document revision 20221113 ### v0.40.0 (2022-11-12) * Regenerated from discovery document revision 20221104 ### v0.39.0 (2022-10-27) * Regenerated from discovery document revision 20221017 * Regenerated using generator version 0.11.0 ### v0.38.0 (2022-09-28) * Regenerated from discovery document revision 20220922 ### v0.37.0 (2022-09-22) * Regenerated using generator version 0.10.0 ### v0.36.0 (2022-09-16) * Unspecified changes ### v0.35.0 (2022-09-07) * Regenerated from discovery document revision 20220905 ### v0.34.0 (2022-08-24) * Regenerated from discovery document revision 20220804 ### v0.33.0 (2022-08-04) * Regenerated from discovery document revision 20220724 ### v0.32.0 (2022-07-06) * Regenerated from discovery document revision 20220623 * Regenerated using generator version 0.9.0 ### v0.31.0 (2022-06-30) * Regenerated using generator version 0.8.0 ### v0.30.0 (2022-06-21) * Regenerated from discovery document revision 20220609 * Regenerated using generator version 0.7.0 ### v0.29.0 (2022-06-10) * Regenerated from discovery document revision 20220604 * Regenerated using generator version 0.5.0 ### v0.28.0 (2022-05-25) * Regenerated from discovery document revision 20220513 ### v0.27.0 (2022-04-02) * Regenerated from discovery document revision 20220323 ### v0.26.0 (2022-03-23) * Regenerated from discovery document revision 20220310 ### v0.25.0 (2022-02-18) * Regenerated from discovery document revision 20220215 ### v0.24.0 (2022-02-05) * Regenerated from discovery document revision 20220127 ### v0.23.0 (2022-01-28) * Regenerated from discovery document revision 20220117 * Regenerated using generator version 0.4.1 ### v0.22.0 (2021-12-16) * Regenerated from discovery document revision 20211206 * Unspecified changes ### v0.21.0 (2021-11-19) * Regenerated from discovery document revision 20211110 ### v0.20.0 (2021-11-04) * Regenerated from discovery document revision 20211023 ### v0.19.0 (2021-10-27) * Regenerated from discovery document revision 20211017 * Unspecified changes ### v0.18.0 (2021-10-08) * Regenerated from discovery document revision 20210929 ### v0.17.0 (2021-09-21) * Regenerated from discovery document revision 20210913 ### v0.16.0 (2021-09-10) * Regenerated from discovery document revision 20210902 ### v0.15.0 (2021-09-01) * Regenerated from discovery document revision 20210816 ### v0.14.0 (2021-07-29) * Regenerated from discovery document revision 20210715 ### v0.13.0 (2021-07-14) * Regenerated from discovery document revision 20210627 ### v0.12.0 (2021-06-29) * Regenerated using generator version 0.4.0 ### v0.11.0 (2021-06-24) * Unspecified changes ### v0.10.0 (2021-06-18) * Regenerated from discovery document revision 20210608 ### v0.9.0 (2021-06-04) * Regenerated from discovery document revision 20210521 * Regenerated using generator version 0.3.0 ### v0.8.0 (2021-05-20) * Unspecified changes ### v0.7.0 (2021-04-29) * Regenerated from discovery document revision 20210420 ### v0.6.0 (2021-03-31) * Regenerated from discovery document revision 20210321 ### v0.5.0 (2021-03-19) * Unspecified changes ### v0.4.0 (2021-03-11) * Regenerated from discovery document revision 20210310 * Regenerated using generator version 0.2.0 ### v0.3.0 (2021-03-04) * Unspecified changes ### v0.2.0 (2021-01-27) * Regenerated from discovery document revision 20210119 * Regenerated using generator version 0.1.2 ### v0.1.0 (2021-01-07) * Regenerated using generator version 0.1.1 * Regenerated from discovery document revision 20201205