google-apis-sqladmin-v1beta4-0.41.0/0000755000175000017500000000000014410321207016104 5ustar vinayvinaygoogle-apis-sqladmin-v1beta4-0.41.0/LICENSE.md0000644000175000017500000002636114410321207017520 0ustar vinayvinay 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.41.0/google-apis-sqladmin_v1beta4.gemspec0000644000175000017500000000517414410321207025022 0ustar vinayvinay######################################################### # This file has been automatically generated by gem2tgz # ######################################################### # -*- encoding: utf-8 -*- # stub: google-apis-sqladmin_v1beta4 0.41.0 ruby lib Gem::Specification.new do |s| s.name = "google-apis-sqladmin_v1beta4".freeze s.version = "0.41.0" 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.41.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 = "2022-12-12" 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(">= 2.5".freeze) s.rubygems_version = "3.3.15".freeze s.summary = "Simple REST client for Cloud SQL Admin API V1beta4".freeze if s.respond_to? :specification_version then s.specification_version = 4 end if s.respond_to? :add_runtime_dependency then s.add_runtime_dependency(%q.freeze, [">= 0.9.1", "< 2.a"]) else s.add_dependency(%q.freeze, [">= 0.9.1", "< 2.a"]) end end google-apis-sqladmin-v1beta4-0.41.0/CHANGELOG.md0000644000175000017500000000714214410321207017721 0ustar vinayvinay# Release history for google-apis-sqladmin_v1beta4 ### 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 google-apis-sqladmin-v1beta4-0.41.0/OVERVIEW.md0000644000175000017500000001375514410321207017707 0ustar vinayvinay# 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://developers.google.com/cloud-sql/) may provide guidance regarding the preferred client library to use. ## Supported Ruby versions This library is supported on Ruby 2.5+. 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. Currently, this means Ruby 2.5 and later. 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.41.0/lib/0000755000175000017500000000000014410321207016652 5ustar vinayvinaygoogle-apis-sqladmin-v1beta4-0.41.0/lib/google-apis-sqladmin_v1beta4.rb0000644000175000017500000000114714410321207024544 0ustar vinayvinay# 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.41.0/lib/google/0000755000175000017500000000000014410321207020126 5ustar vinayvinaygoogle-apis-sqladmin-v1beta4-0.41.0/lib/google/apis/0000755000175000017500000000000014410321207021062 5ustar vinayvinaygoogle-apis-sqladmin-v1beta4-0.41.0/lib/google/apis/sqladmin_v1beta4/0000755000175000017500000000000014410321207024220 5ustar vinayvinaygoogle-apis-sqladmin-v1beta4-0.41.0/lib/google/apis/sqladmin_v1beta4/service.rb0000644000175000017500000035213014410321207026211 0ustar vinayvinay# 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://developers.google.com/cloud-sql/ class SQLAdminService < Google::Apis::Core::BaseService # @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('https://sqladmin.googleapis.com/', '', 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 # 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. # @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] 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, 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['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. # @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 # 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 [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, 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['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 # 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 # Cloud SQL instance ID. This does not 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 # Promotes the read replica instance to be a stand-alone Cloud SQL 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 [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, 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['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] 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, 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['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. # @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 # 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 # 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 # 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 # 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 [String] host # Optional. 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 update_user(project, instance, user_object = nil, host: nil, name: 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['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 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.41.0/lib/google/apis/sqladmin_v1beta4/gem_version.rb0000644000175000017500000000165414410321207027070 0ustar vinayvinay# 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.41.0" # Version of the code generator used to generate this client GENERATOR_VERSION = "0.11.0" # Revision of the discovery document this client was generated from REVISION = "20221113" end end end google-apis-sqladmin-v1beta4-0.41.0/lib/google/apis/sqladmin_v1beta4/classes.rb0000644000175000017500000046312514410321207026215 0ustar vinayvinay# 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 # 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 # 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 # (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 # (Postgres only) 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 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) @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) 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 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) 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 # 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 # 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) @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) @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 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) 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 # 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 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 # 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 def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) @backend_type = args[:backend_type] if args.key?(:backend_type) @database_version = args[:database_version] if args.key?(:database_version) @ip_addresses = args[:ip_addresses] if args.key?(:ip_addresses) @kind = args[:kind] if args.key?(:kind) @region = args[:region] if args.key?(:region) @server_ca_cert = args[:server_ca_cert] if args.key?(:server_ca_cert) 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 # 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 # 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 # 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 # 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 # 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 # The geographical region. Can be: * `us-central` (`FIRST_GEN` instances only) * # `us-central1` (`SECOND_GEN` instances only) * `asia-east1` or `europe-west1`. # Defaults to `us-central` or `us-central1` depending on the instance type. The # region cannot be changed after instance creation. # 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 # 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 # The status indicating if instance satisfiesPzs. 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 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 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) @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) @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) @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) @project = args[:project] if args.key?(:project) @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) @root_password = args[:root_password] if args.key?(:root_password) @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) @state = args[:state] if args.key?(:state) @suspension_reason = args[:suspension_reason] if args.key?(:suspension_reason) 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 # 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 corresponsing 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 # 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:` You must # specify one database to be exported. 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 # Option for export offload. # 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 # 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) @uri = args[:uri] if args.key?(:uri) end # Options for exporting BAK files (SQL Server-only) class BakExportOptions include Google::Apis::Core::Hashable # 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) @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 # 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 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) @schema_only = args[:schema_only] if args.key?(:schema_only) @tables = args[:tables] if args.key?(:tables) 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 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 # 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 # 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 # 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) @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) @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 # 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. 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 # 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) @uri = args[:uri] if args.key?(:uri) end # Import parameters specific to SQL Server .BAK files class BakImportOptions include Google::Apis::Core::Hashable # # Corresponds to the JSON property `encryptionOptions` # @return [Google::Apis::SqladminV1beta4::ImportContext::BakImportOptions::EncryptionOptions] attr_accessor :encryption_options # 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) @encryption_options = args[:encryption_options] if args.key?(:encryption_options) @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 # 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) @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 end # Insights configuration. This specifies when Cloud SQL Insights feature is # enabled and optional configuration. class InsightsConfig include Google::Apis::Core::Hashable # 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 length more 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) @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 # 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 # 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 # 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 # Database instance restore backup request. class RestoreInstancesBackupRequest include Google::Apis::Core::Hashable # 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 def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) @restore_backup_context = args[:restore_backup_context] if args.key?(:restore_backup_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 # 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 # 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 # 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 # Whether SSL connections over IP are enforced or not. # Corresponds to the JSON property `requireSsl` # @return [Boolean] attr_accessor :require_ssl alias_method :require_ssl?, :require_ssl 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) @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) @require_ssl = args[:require_ssl] if args.key?(:require_ssl) 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 # 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.). # 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 (1-7), starting on Monday. # Corresponds to the JSON property `day` # @return [Fixnum] attr_accessor :day # hour of day - 0 to 23. # 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 setting: `canary` (Earlier) or `stable` (Later). [Learn # more](https://cloud.google.com/sql/docs/mysql/instance-settings#maintenance- # timing-2ndgen). # 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 # 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 corresponsing 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 corresponsing 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 # Reference to another Cloud SQL instance. # Corresponds to the JSON property `sourceInstance` # @return [Google::Apis::SqladminV1beta4::InstanceReference] attr_accessor :source_instance # 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) @source_instance = args[:source_instance] if args.key?(:source_instance) @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 # 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 # 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 # Name of the database instance related to this operation. # 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) @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) @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) @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 # 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 class PasswordValidationPolicy include Google::Apis::Core::Hashable # The complexity of the password. # Corresponds to the JSON property `complexity` # @return [String] attr_accessor :complexity # 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 the password policy is enabled or not. # 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_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 # Read-replica configuration for connecting to the primary instance. class ReplicaConfiguration include Google::Apis::Core::Hashable # 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) @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 # 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 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 # 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 # 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 # 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 # 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 # 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 # 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 # Corresponds to the JSON property `passwordValidationPolicy` # @return [Google::Apis::SqladminV1beta4::PasswordValidationPolicy] attr_accessor :password_validation_policy # 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 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 # 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) @authorized_gae_applications = args[:authorized_gae_applications] if args.key?(:authorized_gae_applications) @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) @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_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) @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) @pricing_plan = args[:pricing_plan] if args.key?(:pricing_plan) @replication_type = args[:replication_type] if args.key?(:replication_type) @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 # 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 def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) @domain = args[:domain] if args.key?(:domain) @kind = args[:kind] if args.key?(:kind) 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 # 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 # class SqlInstancesStartExternalSyncRequest include Google::Apis::Core::Hashable # MySQL-specific external server sync settings. # Corresponds to the JSON property `mysqlSyncConfig` # @return [Google::Apis::SqladminV1beta4::MySqlSyncConfig] attr_accessor :mysql_sync_config # 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 def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) @mysql_sync_config = args[:mysql_sync_config] if args.key?(:mysql_sync_config) @skip_verification = args[:skip_verification] if args.key?(:skip_verification) @sync_mode = args[:sync_mode] if args.key?(:sync_mode) end end # class SqlInstancesVerifyExternalSyncSettingsRequest include Google::Apis::Core::Hashable # MySQL-specific external server sync settings. # Corresponds to the JSON property `mysqlSyncConfig` # @return [Google::Apis::SqladminV1beta4::MySqlSyncConfig] attr_accessor :mysql_sync_config # External sync mode # Corresponds to the JSON property `syncMode` # @return [String] attr_accessor :sync_mode # 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) @mysql_sync_config = args[:mysql_sync_config] if args.key?(:mysql_sync_config) @sync_mode = args[:sync_mode] if args.key?(:sync_mode) @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 # 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 # 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 # 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 # 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 # 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 # 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) @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) @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 # 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 `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 end end end google-apis-sqladmin-v1beta4-0.41.0/lib/google/apis/sqladmin_v1beta4/representations.rb0000644000175000017500000017342314410321207030004 0ustar vinayvinay# 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 ApiWarning 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 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 ConnectSettings 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 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 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 include Google::Apis::Core::JsonObjectSupport end include Google::Apis::Core::JsonObjectSupport end class FailoverContext 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 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 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 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 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 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 RestoreInstancesBackupRequest 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 InstancesTruncateLogRequest 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 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 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 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 ReplicaConfiguration 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 RotateServerCaContext 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 SqlInstancesRescheduleMaintenanceRequestBody 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 SqlServerUserDetails 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 SyncFlags 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 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 ApiWarning # @private class Representation < Google::Apis::Core::JsonRepresentation property :code, as: 'code' property :message, as: 'message' property :region, as: 'region' 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 :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' end end class BackupContext # @private class Representation < Google::Apis::Core::JsonRepresentation property :backup_id, :numeric_string => true, as: 'backupId' property :kind, as: 'kind' 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 :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 :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' end end class ConnectSettings # @private class Representation < Google::Apis::Core::JsonRepresentation property :backend_type, as: 'backendType' property :database_version, as: 'databaseVersion' collection :ip_addresses, as: 'ipAddresses', class: Google::Apis::SqladminV1beta4::IpMapping, decorator: Google::Apis::SqladminV1beta4::IpMapping::Representation property :kind, as: 'kind' property :region, as: 'region' property :server_ca_cert, as: 'serverCaCert', class: Google::Apis::SqladminV1beta4::SslCert, decorator: Google::Apis::SqladminV1beta4::SslCert::Representation 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 :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 :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 :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 :project, as: 'project' 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 :root_password, as: 'rootPassword' 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 :state, as: 'state' collection :suspension_reason, as: 'suspensionReason' 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 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 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 :uri, as: 'uri' end class BakExportOptions # @private class Representation < Google::Apis::Core::JsonRepresentation 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 :schema_only, as: 'schemaOnly' collection :tables, as: 'tables' end class MysqlExportOptions # @private class Representation < Google::Apis::Core::JsonRepresentation property :master_data, as: 'masterData' end end 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 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 :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 :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 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 :uri, as: 'uri' end class BakImportOptions # @private class Representation < Google::Apis::Core::JsonRepresentation property :encryption_options, as: 'encryptionOptions', class: Google::Apis::SqladminV1beta4::ImportContext::BakImportOptions::EncryptionOptions, decorator: Google::Apis::SqladminV1beta4::ImportContext::BakImportOptions::EncryptionOptions::Representation property :striped, as: 'striped' end class EncryptionOptions # @private class Representation < Google::Apis::Core::JsonRepresentation property :cert_path, as: 'certPath' 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 end class InsightsConfig # @private class Representation < Google::Apis::Core::JsonRepresentation 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 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 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 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 RestoreInstancesBackupRequest # @private class Representation < Google::Apis::Core::JsonRepresentation property :restore_backup_context, as: 'restoreBackupContext', class: Google::Apis::SqladminV1beta4::RestoreBackupContext, decorator: Google::Apis::SqladminV1beta4::RestoreBackupContext::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 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 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 property :enable_private_path_for_google_cloud_services, as: 'enablePrivatePathForGoogleCloudServices' property :ipv4_enabled, as: 'ipv4Enabled' property :private_network, as: 'privateNetwork' property :require_ssl, as: 'requireSsl' 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 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 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' property :source_instance, as: 'sourceInstance', class: Google::Apis::SqladminV1beta4::InstanceReference, decorator: Google::Apis::SqladminV1beta4::InstanceReference::Representation property :username, as: 'username' end end class Operation # @private class Representation < Google::Apis::Core::JsonRepresentation 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 :self_link, as: 'selfLink' property :start_time, as: 'startTime' property :status, as: 'status' 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 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_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 ReplicaConfiguration # @private class Representation < Google::Apis::Core::JsonRepresentation 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 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 RotateServerCaContext # @private class Representation < Google::Apis::Core::JsonRepresentation property :kind, as: 'kind' property :next_version, as: 'nextVersion' 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 collection :authorized_gae_applications, as: 'authorizedGaeApplications' 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 :connector_enforcement, as: 'connectorEnforcement' property :crash_safe_replication_enabled, as: 'crashSafeReplicationEnabled' 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 :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 :pricing_plan, as: 'pricingPlan' property :replication_type, as: 'replicationType' 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 :domain, as: 'domain' property :kind, as: 'kind' 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 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 SqlInstancesStartExternalSyncRequest # @private class Representation < Google::Apis::Core::JsonRepresentation property :mysql_sync_config, as: 'mysqlSyncConfig', class: Google::Apis::SqladminV1beta4::MySqlSyncConfig, decorator: Google::Apis::SqladminV1beta4::MySqlSyncConfig::Representation property :skip_verification, as: 'skipVerification' property :sync_mode, as: 'syncMode' end end class SqlInstancesVerifyExternalSyncSettingsRequest # @private class Representation < Google::Apis::Core::JsonRepresentation property :mysql_sync_config, as: 'mysqlSyncConfig', class: Google::Apis::SqladminV1beta4::MySqlSyncConfig, decorator: Google::Apis::SqladminV1beta4::MySqlSyncConfig::Representation property :sync_mode, as: 'syncMode' 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 SqlServerUserDetails # @private class Representation < Google::Apis::Core::JsonRepresentation property :disabled, as: 'disabled' collection :server_roles, as: 'serverRoles' 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 SyncFlags # @private class Representation < Google::Apis::Core::JsonRepresentation property :name, as: 'name' property :value, as: 'value' 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 property :dual_password_type, as: 'dualPasswordType' property :etag, as: 'etag' property :host, as: 'host' 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 end end end google-apis-sqladmin-v1beta4-0.41.0/lib/google/apis/sqladmin_v1beta4.rb0000644000175000017500000000266414410321207024555 0ustar vinayvinay# 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://developers.google.com/cloud-sql/ 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.41.0/.yardopts0000644000175000017500000000040014410321207017744 0ustar vinayvinay--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