diff --git a/generated/google/apis/jobs_v2.rb b/generated/google/apis/jobs_v2.rb index 25889d526..eb9bf499e 100644 --- a/generated/google/apis/jobs_v2.rb +++ b/generated/google/apis/jobs_v2.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/talent-solution/job-search/docs/ module JobsV2 VERSION = 'V2' - REVISION = '20180821' + REVISION = '20180906' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/sqladmin_v1beta3.rb b/generated/google/apis/sqladmin_v1beta3.rb deleted file mode 100644 index f698394c7..000000000 --- a/generated/google/apis/sqladmin_v1beta3.rb +++ /dev/null @@ -1,38 +0,0 @@ -# Copyright 2015 Google Inc. -# -# 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_v1beta3/service.rb' -require 'google/apis/sqladmin_v1beta3/classes.rb' -require 'google/apis/sqladmin_v1beta3/representations.rb' - -module Google - module Apis - # Cloud SQL Admin API - # - # Cloud SQL provides the Cloud SQL Admin API, a REST API for administering your - # instances programmatically. - # - # @see https://cloud.google.com/sql/docs/reference/latest - module SqladminV1beta3 - VERSION = 'V1beta3' - REVISION = '20180727' - - # View and manage your data across Google Cloud Platform services - 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 diff --git a/generated/google/apis/sqladmin_v1beta3/classes.rb b/generated/google/apis/sqladmin_v1beta3/classes.rb deleted file mode 100644 index 23cc55689..000000000 --- a/generated/google/apis/sqladmin_v1beta3/classes.rb +++ /dev/null @@ -1,1632 +0,0 @@ -# Copyright 2015 Google Inc. -# -# 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 SqladminV1beta3 - - # Database instance backup configuration. - class BackupConfiguration - include Google::Apis::Core::Hashable - - # Whether binary log is enabled. If backup configuration is disabled, binary log - # 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 - - # Identifier for this configuration. This gets generated automatically when a - # backup configuration is created. - # Corresponds to the JSON property `id` - # @return [String] - attr_accessor :id - - # This is always sql#backupConfiguration. - # Corresponds to the JSON property `kind` - # @return [String] - attr_accessor :kind - - # Whether replication log archiving is enabled. Replication log archiving is - # required for the point-in-time recovery (PITR) feature. PostgreSQL instances - # only. - # 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 - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @binary_log_enabled = args[:binary_log_enabled] if args.key?(:binary_log_enabled) - @enabled = args[:enabled] if args.key?(:enabled) - @id = args[:id] if args.key?(:id) - @kind = args[:kind] if args.key?(:kind) - @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) - end - end - - # A database instance backup run resource. - class BackupRun - include Google::Apis::Core::Hashable - - # Backup Configuration identifier. - # Corresponds to the JSON property `backupConfiguration` - # @return [String] - attr_accessor :backup_configuration - - # The due time of this run in UTC timezone in RFC 3339 format, for example 2012- - # 11-15T16:19:00.094Z. - # Corresponds to the JSON property `dueTime` - # @return [DateTime] - attr_accessor :due_time - - # The time the backup operation completed in UTC timezone in RFC 3339 format, - # for example 2012-11-15T16:19:00.094Z. - # Corresponds to the JSON property `endTime` - # @return [DateTime] - attr_accessor :end_time - - # The time the run was enqueued in UTC timezone in RFC 3339 format, for example - # 2012-11-15T16:19:00.094Z. - # Corresponds to the JSON property `enqueuedTime` - # @return [DateTime] - attr_accessor :enqueued_time - - # Database instance operation error. - # Corresponds to the JSON property `error` - # @return [Google::Apis::SqladminV1beta3::OperationError] - attr_accessor :error - - # 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 - - # The time the backup operation actually started in UTC timezone in RFC 3339 - # format, for example 2012-11-15T16:19:00.094Z. - # Corresponds to the JSON property `startTime` - # @return [DateTime] - attr_accessor :start_time - - # The status of this run. - # Corresponds to the JSON property `status` - # @return [String] - attr_accessor :status - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @backup_configuration = args[:backup_configuration] if args.key?(:backup_configuration) - @due_time = args[:due_time] if args.key?(:due_time) - @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) - @instance = args[:instance] if args.key?(:instance) - @kind = args[:kind] if args.key?(:kind) - @start_time = args[:start_time] if args.key?(:start_time) - @status = args[:status] if args.key?(:status) - end - end - - # Backup run list results. - class BackupRunsListResponse - 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 - - # Binary log coordinates. - # Corresponds to the JSON property `binLogCoordinates` - # @return [Google::Apis::SqladminV1beta3::BinLogCoordinates] - attr_accessor :bin_log_coordinates - - # 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 - - # The epoch timestamp, in milliseconds, of the time to which a point-in-time - # recovery (PITR) is performed. PostgreSQL instances only. For MySQL instances, - # use the binLogCoordinates property. - # Corresponds to the JSON property `pitrTimestampMs` - # @return [Fixnum] - attr_accessor :pitr_timestamp_ms - - # Name of the Cloud SQL instance to be cloned. - # Corresponds to the JSON property `sourceInstanceName` - # @return [String] - attr_accessor :source_instance_name - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @bin_log_coordinates = args[:bin_log_coordinates] if args.key?(:bin_log_coordinates) - @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) - @source_instance_name = args[:source_instance_name] if args.key?(:source_instance_name) - end - end - - # MySQL 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 MySQL server options and MySQL system variables. Flags should be - # specified with underscores, not hyphens. For more information, see Configuring - # MySQL Flags in the Google Cloud SQL documentation, as well as the official - # MySQL documentation for server options and system variables. - # Corresponds to the JSON property `name` - # @return [String] - attr_accessor :name - - # The value of the flag. Booleans should be set to on for true and off for false. - # This field must be omitted if the flag doesn't take a value. - # 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 - - # Connection name of the Cloud SQL instance used in connection strings. - # Corresponds to the JSON property `connectionName` - # @return [String] - attr_accessor :connection_name - - # The current disk usage of the instance in bytes. - # Corresponds to the JSON property `currentDiskSize` - # @return [Fixnum] - attr_accessor :current_disk_size - - # The database engine type and version. Can be MYSQL_5_5 or MYSQL_5_6. Defaults - # to MYSQL_5_5. The databaseVersion cannot be changed after instance creation. - # Corresponds to the JSON property `databaseVersion` - # @return [String] - attr_accessor :database_version - - # HTTP 1.1 Entity tag for the resource. - # Corresponds to the JSON property `etag` - # @return [String] - attr_accessor :etag - - # Name of the Cloud SQL instance. This does not include the project ID. - # Corresponds to the JSON property `instance` - # @return [String] - attr_accessor :instance - - # The instance type. This can be one of the following. - # CLOUD_SQL_INSTANCE: Regular Cloud SQL instance. - # READ_REPLICA_INSTANCE: Cloud SQL instance acting as a read-replica. - # 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. - # 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 name of the instance which will act as master 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 - - # 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, asia-east1 or europe-west1. - # Defaults to us-central. The region can not be changed after instance creation. - # Corresponds to the JSON property `region` - # @return [String] - attr_accessor :region - - # The replicas of the instance. - # Corresponds to the JSON property `replicaNames` - # @return [Array] - attr_accessor :replica_names - - # SslCerts Resource - # Corresponds to the JSON property `serverCaCert` - # @return [Google::Apis::SqladminV1beta3::SslCert] - attr_accessor :server_ca_cert - - # The service account email address assigned to the instance. - # 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::SqladminV1beta3::Settings] - attr_accessor :settings - - # The current serving state of the Cloud SQL instance. This can be one of the - # following. - # RUNNABLE: The instance is running, or is ready to run when accessed. - # SUSPENDED: The instance is not available, for example due to problems with - # billing. - # PENDING_CREATE: The instance is being created. - # MAINTENANCE: The instance is down for maintenance. - # UNKNOWN_STATE: The state of the instance is unknown. - # Corresponds to the JSON property `state` - # @return [String] - attr_accessor :state - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @connection_name = args[:connection_name] if args.key?(:connection_name) - @current_disk_size = args[:current_disk_size] if args.key?(:current_disk_size) - @database_version = args[:database_version] if args.key?(:database_version) - @etag = args[:etag] if args.key?(:etag) - @instance = args[:instance] if args.key?(:instance) - @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) - @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) - @project = args[:project] if args.key?(:project) - @region = args[:region] if args.key?(:region) - @replica_names = args[:replica_names] if args.key?(:replica_names) - @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) - end - end - - # Database instance export context. - class ExportContext - include Google::Apis::Core::Hashable - - # Databases (for example, guestbook) from which the export is made. If - # unspecified, all databases are exported. - # Corresponds to the JSON property `database` - # @return [Array] - attr_accessor :database - - # This is always sql#exportContext. - # Corresponds to the JSON property `kind` - # @return [String] - attr_accessor :kind - - # Tables to export, or that were exported, from the specified database. If you - # specify tables, specify one and only one database. - # Corresponds to the JSON property `table` - # @return [Array] - attr_accessor :table - - # The path to the file in Google Cloud Storage where the export will be stored, - # or where it was already stored. The URI is in the form gs://bucketName/ - # fileName. If the file already exists, the operation fails. If the filename - # ends with .gz, the contents are compressed. - # 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) - @database = args[:database] if args.key?(:database) - @kind = args[:kind] if args.key?(:kind) - @table = args[:table] if args.key?(:table) - @uri = args[:uri] if args.key?(:uri) - end - end - - # A Google Cloud SQL service flag resource. - class Flag - include Google::Apis::Core::Hashable - - # 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. Currently this can only be [ - # MYSQL_5_5]. - # Corresponds to the JSON property `appliesTo` - # @return [Array] - attr_accessor :applies_to - - # 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, - # e.g. max_allowed_packet - # Corresponds to the JSON property `name` - # @return [String] - attr_accessor :name - - # The type of the flag. Flags are typed to being BOOLEAN, STRING, INTEGER or - # NONE. NONE is used for flags which do not take a value, such as - # skip_grant_tables. - # 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_string_values = args[:allowed_string_values] if args.key?(:allowed_string_values) - @applies_to = args[:applies_to] if args.key?(:applies_to) - @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) - @type = args[:type] if args.key?(:type) - end - end - - # Flags list response. - class FlagsListResponse - 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 - - # Database instance import context. - class ImportContext - include Google::Apis::Core::Hashable - - # The database (for example, guestbook) to which the import is made. If not set, - # it is assumed that the database is specified in the file to be imported. - # Corresponds to the JSON property `database` - # @return [String] - attr_accessor :database - - # This is always sql#importContext. - # Corresponds to the JSON property `kind` - # @return [String] - attr_accessor :kind - - # A path to the MySQL dump file in Google Cloud Storage from which the import is - # made. The URI is in the form gs://bucketName/fileName. Compressed gzip files (. - # gz) are also supported. - # Corresponds to the JSON property `uri` - # @return [Array] - attr_accessor :uri - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @database = args[:database] if args.key?(:database) - @kind = args[:kind] if args.key?(:kind) - @uri = args[:uri] if args.key?(:uri) - end - end - - # An Operations resource contains information about database instance operations - # such as create, delete, and restart. Operations resources are created in - # response to operations that were initiated; you never create them directly. - class InstanceOperation - include Google::Apis::Core::Hashable - - # The time this operation finished in UTC timezone in RFC 3339 format, for - # example 2012-11-15T16:19:00.094Z. - # Corresponds to the JSON property `endTime` - # @return [DateTime] - attr_accessor :end_time - - # The time this operation was enqueued in UTC timezone in RFC 3339 format, for - # example 2012-11-15T16:19:00.094Z. - # Corresponds to the JSON property `enqueuedTime` - # @return [DateTime] - attr_accessor :enqueued_time - - # The error(s) encountered by this operation. Only set if the operation results - # in an error. - # Corresponds to the JSON property `error` - # @return [Array] - attr_accessor :error - - # Database instance export context. - # Corresponds to the JSON property `exportContext` - # @return [Google::Apis::SqladminV1beta3::ExportContext] - attr_accessor :export_context - - # Database instance import context. - # Corresponds to the JSON property `importContext` - # @return [Google::Apis::SqladminV1beta3::ImportContext] - attr_accessor :import_context - - # Name of the database instance. - # Corresponds to the JSON property `instance` - # @return [String] - attr_accessor :instance - - # This is always sql#instanceOperation. - # 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 `operation` - # @return [String] - attr_accessor :operation - - # The type of the operation. Valid values are CREATE, DELETE, UPDATE, RESTART, - # IMPORT, EXPORT, BACKUP_VOLUME, RESTORE_VOLUME. - # Corresponds to the JSON property `operationType` - # @return [String] - attr_accessor :operation_type - - # The time this operation actually started in UTC timezone in RFC 3339 format, - # for example 2012-11-15T16:19:00.094Z. - # Corresponds to the JSON property `startTime` - # @return [DateTime] - attr_accessor :start_time - - # The state of an operation. Valid values are PENDING, RUNNING, DONE, UNKNOWN. - # Corresponds to the JSON property `state` - # @return [String] - attr_accessor :state - - # The email address of the user who initiated this operation. - # Corresponds to the JSON property `userEmailAddress` - # @return [String] - attr_accessor :user_email_address - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @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) - @export_context = args[:export_context] if args.key?(:export_context) - @import_context = args[:import_context] if args.key?(:import_context) - @instance = args[:instance] if args.key?(:instance) - @kind = args[:kind] if args.key?(:kind) - @operation = args[:operation] if args.key?(:operation) - @operation_type = args[:operation_type] if args.key?(:operation_type) - @start_time = args[:start_time] if args.key?(:start_time) - @state = args[:state] if args.key?(:state) - @user_email_address = args[:user_email_address] if args.key?(:user_email_address) - end - end - - # Database instance set root password request. - class InstanceSetRootPasswordRequest - include Google::Apis::Core::Hashable - - # Database instance set root password context. - # Corresponds to the JSON property `setRootPasswordContext` - # @return [Google::Apis::SqladminV1beta3::SetRootPasswordContext] - attr_accessor :set_root_password_context - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @set_root_password_context = args[:set_root_password_context] if args.key?(:set_root_password_context) - end - end - - # Database instance clone request. - class InstancesCloneRequest - include Google::Apis::Core::Hashable - - # Database instance clone context. - # Corresponds to the JSON property `cloneContext` - # @return [Google::Apis::SqladminV1beta3::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 instance clone response. - class InstancesCloneResponse - include Google::Apis::Core::Hashable - - # This is always sql#instancesClone. - # Corresponds to the JSON property `kind` - # @return [String] - attr_accessor :kind - - # An unique identifier for the operation associated with the cloned instance. - # You can use this identifier to retrieve the Operations resource, which has - # information about the operation. - # Corresponds to the JSON property `operation` - # @return [String] - attr_accessor :operation - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @kind = args[:kind] if args.key?(:kind) - @operation = args[:operation] if args.key?(:operation) - end - end - - # Database instance delete response. - class InstancesDeleteResponse - include Google::Apis::Core::Hashable - - # This is always sql#instancesDelete. - # 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 `operation` - # @return [String] - attr_accessor :operation - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @kind = args[:kind] if args.key?(:kind) - @operation = args[:operation] if args.key?(:operation) - end - end - - # Database instance export request. - class InstancesExportRequest - include Google::Apis::Core::Hashable - - # Database instance export context. - # Corresponds to the JSON property `exportContext` - # @return [Google::Apis::SqladminV1beta3::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 - - # Database instance export response. - class InstancesExportResponse - include Google::Apis::Core::Hashable - - # This is always sql#instancesExport. - # 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 `operation` - # @return [String] - attr_accessor :operation - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @kind = args[:kind] if args.key?(:kind) - @operation = args[:operation] if args.key?(:operation) - end - end - - # Database instance import request. - class InstancesImportRequest - include Google::Apis::Core::Hashable - - # Database instance import context. - # Corresponds to the JSON property `importContext` - # @return [Google::Apis::SqladminV1beta3::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 instance import response. - class InstancesImportResponse - include Google::Apis::Core::Hashable - - # This is always sql#instancesImport. - # 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 `operation` - # @return [String] - attr_accessor :operation - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @kind = args[:kind] if args.key?(:kind) - @operation = args[:operation] if args.key?(:operation) - end - end - - # Database instance insert response. - class InstancesInsertResponse - include Google::Apis::Core::Hashable - - # This is always sql#instancesInsert. - # 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 `operation` - # @return [String] - attr_accessor :operation - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @kind = args[:kind] if args.key?(:kind) - @operation = args[:operation] if args.key?(:operation) - end - end - - # Database instances list response. - class InstancesListResponse - 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 - - 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 - - # Database promote read replica response. - class InstancesPromoteReplicaResponse - include Google::Apis::Core::Hashable - - # This is always sql#instancesPromoteReplica. - # 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 `operation` - # @return [String] - attr_accessor :operation - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @kind = args[:kind] if args.key?(:kind) - @operation = args[:operation] if args.key?(:operation) - end - end - - # Database instance resetSslConfig response. - class InstancesResetSslConfigResponse - include Google::Apis::Core::Hashable - - # This is always sql#instancesResetSslConfig. - # 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. All ssl client certificates will be deleted and a new server - # certificate will be created. Does not take effect until the next instance - # restart. - # Corresponds to the JSON property `operation` - # @return [String] - attr_accessor :operation - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @kind = args[:kind] if args.key?(:kind) - @operation = args[:operation] if args.key?(:operation) - end - end - - # Database instance restart response. - class InstancesRestartResponse - include Google::Apis::Core::Hashable - - # This is always sql#instancesRestart. - # 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 `operation` - # @return [String] - attr_accessor :operation - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @kind = args[:kind] if args.key?(:kind) - @operation = args[:operation] if args.key?(:operation) - end - end - - # Database instance restore backup response. - class InstancesRestoreBackupResponse - include Google::Apis::Core::Hashable - - # This is always sql#instancesRestoreBackup. - # 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 `operation` - # @return [String] - attr_accessor :operation - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @kind = args[:kind] if args.key?(:kind) - @operation = args[:operation] if args.key?(:operation) - end - end - - # Database instance set root password response. - class InstancesSetRootPasswordResponse - include Google::Apis::Core::Hashable - - # This is always sql#instancesSetRootPassword. - # 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 `operation` - # @return [String] - attr_accessor :operation - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @kind = args[:kind] if args.key?(:kind) - @operation = args[:operation] if args.key?(:operation) - end - end - - # Database instance update response. - class InstancesUpdateResponse - include Google::Apis::Core::Hashable - - # This is always sql#instancesUpdate. - # 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 information about the operation. - # Corresponds to the JSON property `operation` - # @return [String] - attr_accessor :operation - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @kind = args[:kind] if args.key?(:kind) - @operation = args[:operation] if args.key?(:operation) - end - end - - # IP Management configuration. - class IpConfiguration - include Google::Apis::Core::Hashable - - # The list of external networks that are allowed to connect to the instance - # using the IP. In CIDR notation, also known as 'slash' notation (e.g. 192.168. - # 100.0/24). - # Corresponds to the JSON property `authorizedNetworks` - # @return [Array] - attr_accessor :authorized_networks - - # Whether the instance should be assigned an IP address or not. - # Corresponds to the JSON property `enabled` - # @return [Boolean] - attr_accessor :enabled - alias_method :enabled?, :enabled - - # This is always sql#ipConfiguration. - # Corresponds to the JSON property `kind` - # @return [String] - attr_accessor :kind - - # Whether SSL connections over IP should be 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) - @authorized_networks = args[:authorized_networks] if args.key?(:authorized_networks) - @enabled = args[:enabled] if args.key?(:enabled) - @kind = args[:kind] if args.key?(:kind) - @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 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 [DateTime] - attr_accessor :time_to_retire - - 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) - end - end - - # Preferred location. This specifies where a Cloud SQL instance should - # preferably be located, either in a specific Compute Engine zone, or co-located - # with an App Engine application. Note that if the preferred location is not - # available, the instance will be located as close as possible within the region. - # Only one location may be specified. - class LocationPreference - include Google::Apis::Core::Hashable - - # The App Engine application to follow, it must be in the same region as the - # Cloud SQL 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 (e.g. us-centra1-a, us-central1-b, etc.). - # 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) - @zone = args[:zone] if args.key?(:zone) - 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 - - 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) - end - end - - # Database instance list operations response. - class OperationsListResponse - 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 - - # Database instance set root password context. - class SetRootPasswordContext - include Google::Apis::Core::Hashable - - # This is always sql#setRootUserContext. - # Corresponds to the JSON property `kind` - # @return [String] - attr_accessor :kind - - # The password for the root user. - # Corresponds to the JSON property `password` - # @return [String] - attr_accessor :password - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @kind = args[:kind] if args.key?(:kind) - @password = args[:password] if args.key?(:password) - end - end - - # Database instance settings. - class Settings - include Google::Apis::Core::Hashable - - # The activation policy for this instance. This specifies when the instance - # should be activated and is applicable only when the instance state is RUNNABLE. - # This can be one of the following. - # ALWAYS: The instance should always be active. - # NEVER: The instance should never be activated. - # ON_DEMAND: The instance is activated upon receiving requests. - # Corresponds to the JSON property `activationPolicy` - # @return [String] - attr_accessor :activation_policy - - # The App Engine app IDs that can access this instance. - # Corresponds to the JSON property `authorizedGaeApplications` - # @return [Array] - attr_accessor :authorized_gae_applications - - # The daily backup configuration for the instance. - # Corresponds to the JSON property `backupConfiguration` - # @return [Array] - attr_accessor :backup_configuration - - # 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 instance. Indicates whether replication - # is enabled or not. - # Corresponds to the JSON property `databaseReplicationEnabled` - # @return [Boolean] - attr_accessor :database_replication_enabled - alias_method :database_replication_enabled?, :database_replication_enabled - - # IP Management configuration. - # Corresponds to the JSON property `ipConfiguration` - # @return [Google::Apis::SqladminV1beta3::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 should - # preferably be located, either in a specific Compute Engine zone, or co-located - # with an App Engine application. Note that if the preferred location is not - # available, the instance will be located as close as possible within the region. - # Only one location may be specified. - # Corresponds to the JSON property `locationPreference` - # @return [Google::Apis::SqladminV1beta3::LocationPreference] - attr_accessor :location_preference - - # The pricing plan for this instance. This can be either PER_USE or PACKAGE. - # 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. - # 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 - - # The tier of service for this instance, for example D1, D2. For more - # information, see 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) - @activation_policy = args[:activation_policy] if args.key?(:activation_policy) - @authorized_gae_applications = args[:authorized_gae_applications] if args.key?(:authorized_gae_applications) - @backup_configuration = args[:backup_configuration] if args.key?(:backup_configuration) - @database_flags = args[:database_flags] if args.key?(:database_flags) - @database_replication_enabled = args[:database_replication_enabled] if args.key?(:database_replication_enabled) - @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) - @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) - @tier = args[:tier] if args.key?(:tier) - 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 - - # Time when the certificate was created. - # Corresponds to the JSON property `createTime` - # @return [DateTime] - attr_accessor :create_time - - # Time when the certificate expires. - # Corresponds to the JSON property `expirationTime` - # @return [DateTime] - 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 - - # 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) - @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::SqladminV1beta3::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 - - # SslCert delete response. - class SslCertsDeleteResponse - include Google::Apis::Core::Hashable - - # This is always sql#sslCertsDelete. - # 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 `operation` - # @return [String] - attr_accessor :operation - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @kind = args[:kind] if args.key?(:kind) - @operation = args[:operation] if args.key?(:operation) - end - end - - # SslCerts insert request. - class SslCertsInsertRequest - include Google::Apis::Core::Hashable - - # User supplied name. Must be a distinct name from the other certificates for - # this instance. New certificates will not be usable until the instance is - # restarted. - # 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 SslCertsInsertResponse - include Google::Apis::Core::Hashable - - # SslCertDetail. - # Corresponds to the JSON property `clientCert` - # @return [Google::Apis::SqladminV1beta3::SslCertDetail] - attr_accessor :client_cert - - # This is always sql#sslCertsInsert. - # Corresponds to the JSON property `kind` - # @return [String] - attr_accessor :kind - - # SslCerts Resource - # Corresponds to the JSON property `serverCaCert` - # @return [Google::Apis::SqladminV1beta3::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) - @server_ca_cert = args[:server_ca_cert] if args.key?(:server_ca_cert) - end - end - - # SslCerts list response. - class SslCertsListResponse - 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 - - # 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 service tier, for example D1, D2 etc. For related - # information, see 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 TiersListResponse - 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 - end - end -end diff --git a/generated/google/apis/sqladmin_v1beta3/representations.rb b/generated/google/apis/sqladmin_v1beta3/representations.rb deleted file mode 100644 index 4c7afe8f2..000000000 --- a/generated/google/apis/sqladmin_v1beta3/representations.rb +++ /dev/null @@ -1,733 +0,0 @@ -# Copyright 2015 Google Inc. -# -# 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 SqladminV1beta3 - - class BackupConfiguration - 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 BackupRunsListResponse - 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 DatabaseFlags - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class DatabaseInstance - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class ExportContext - 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 FlagsListResponse - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class ImportContext - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class InstanceOperation - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class InstanceSetRootPasswordRequest - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class InstancesCloneRequest - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class InstancesCloneResponse - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class InstancesDeleteResponse - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class InstancesExportRequest - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class InstancesExportResponse - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class InstancesImportRequest - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class InstancesImportResponse - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class InstancesInsertResponse - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class InstancesListResponse - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class InstancesPromoteReplicaResponse - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class InstancesResetSslConfigResponse - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class InstancesRestartResponse - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class InstancesRestoreBackupResponse - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class InstancesSetRootPasswordResponse - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class InstancesUpdateResponse - 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 OperationError - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class OperationsListResponse - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class SetRootPasswordContext - 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 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 SslCertsDeleteResponse - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class SslCertsInsertRequest - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class SslCertsInsertResponse - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class SslCertsListResponse - 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 TiersListResponse - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class BackupConfiguration - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :binary_log_enabled, as: 'binaryLogEnabled' - property :enabled, as: 'enabled' - property :id, as: 'id' - property :kind, as: 'kind' - property :replication_log_archiving_enabled, as: 'replicationLogArchivingEnabled' - property :start_time, as: 'startTime' - end - end - - class BackupRun - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :backup_configuration, as: 'backupConfiguration' - property :due_time, as: 'dueTime', type: DateTime - - property :end_time, as: 'endTime', type: DateTime - - property :enqueued_time, as: 'enqueuedTime', type: DateTime - - property :error, as: 'error', class: Google::Apis::SqladminV1beta3::OperationError, decorator: Google::Apis::SqladminV1beta3::OperationError::Representation - - property :instance, as: 'instance' - property :kind, as: 'kind' - property :start_time, as: 'startTime', type: DateTime - - property :status, as: 'status' - end - end - - class BackupRunsListResponse - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :items, as: 'items', class: Google::Apis::SqladminV1beta3::BackupRun, decorator: Google::Apis::SqladminV1beta3::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 :bin_log_coordinates, as: 'binLogCoordinates', class: Google::Apis::SqladminV1beta3::BinLogCoordinates, decorator: Google::Apis::SqladminV1beta3::BinLogCoordinates::Representation - - property :destination_instance_name, as: 'destinationInstanceName' - property :kind, as: 'kind' - property :pitr_timestamp_ms, :numeric_string => true, as: 'pitrTimestampMs' - property :source_instance_name, as: 'sourceInstanceName' - 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 - property :connection_name, as: 'connectionName' - property :current_disk_size, :numeric_string => true, as: 'currentDiskSize' - property :database_version, as: 'databaseVersion' - property :etag, as: 'etag' - property :instance, as: 'instance' - property :instance_type, as: 'instanceType' - collection :ip_addresses, as: 'ipAddresses', class: Google::Apis::SqladminV1beta3::IpMapping, decorator: Google::Apis::SqladminV1beta3::IpMapping::Representation - - property :ipv6_address, as: 'ipv6Address' - property :kind, as: 'kind' - property :master_instance_name, as: 'masterInstanceName' - property :max_disk_size, :numeric_string => true, as: 'maxDiskSize' - property :project, as: 'project' - property :region, as: 'region' - collection :replica_names, as: 'replicaNames' - property :server_ca_cert, as: 'serverCaCert', class: Google::Apis::SqladminV1beta3::SslCert, decorator: Google::Apis::SqladminV1beta3::SslCert::Representation - - property :service_account_email_address, as: 'serviceAccountEmailAddress' - property :settings, as: 'settings', class: Google::Apis::SqladminV1beta3::Settings, decorator: Google::Apis::SqladminV1beta3::Settings::Representation - - property :state, as: 'state' - end - end - - class ExportContext - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :database, as: 'database' - property :kind, as: 'kind' - collection :table, as: 'table' - property :uri, as: 'uri' - end - end - - class Flag - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :allowed_string_values, as: 'allowedStringValues' - collection :applies_to, as: 'appliesTo' - 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 :type, as: 'type' - end - end - - class FlagsListResponse - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :items, as: 'items', class: Google::Apis::SqladminV1beta3::Flag, decorator: Google::Apis::SqladminV1beta3::Flag::Representation - - property :kind, as: 'kind' - end - end - - class ImportContext - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :database, as: 'database' - property :kind, as: 'kind' - collection :uri, as: 'uri' - end - end - - class InstanceOperation - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :end_time, as: 'endTime', type: DateTime - - property :enqueued_time, as: 'enqueuedTime', type: DateTime - - collection :error, as: 'error', class: Google::Apis::SqladminV1beta3::OperationError, decorator: Google::Apis::SqladminV1beta3::OperationError::Representation - - property :export_context, as: 'exportContext', class: Google::Apis::SqladminV1beta3::ExportContext, decorator: Google::Apis::SqladminV1beta3::ExportContext::Representation - - property :import_context, as: 'importContext', class: Google::Apis::SqladminV1beta3::ImportContext, decorator: Google::Apis::SqladminV1beta3::ImportContext::Representation - - property :instance, as: 'instance' - property :kind, as: 'kind' - property :operation, as: 'operation' - property :operation_type, as: 'operationType' - property :start_time, as: 'startTime', type: DateTime - - property :state, as: 'state' - property :user_email_address, as: 'userEmailAddress' - end - end - - class InstanceSetRootPasswordRequest - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :set_root_password_context, as: 'setRootPasswordContext', class: Google::Apis::SqladminV1beta3::SetRootPasswordContext, decorator: Google::Apis::SqladminV1beta3::SetRootPasswordContext::Representation - - end - end - - class InstancesCloneRequest - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :clone_context, as: 'cloneContext', class: Google::Apis::SqladminV1beta3::CloneContext, decorator: Google::Apis::SqladminV1beta3::CloneContext::Representation - - end - end - - class InstancesCloneResponse - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :kind, as: 'kind' - property :operation, as: 'operation' - end - end - - class InstancesDeleteResponse - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :kind, as: 'kind' - property :operation, as: 'operation' - end - end - - class InstancesExportRequest - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :export_context, as: 'exportContext', class: Google::Apis::SqladminV1beta3::ExportContext, decorator: Google::Apis::SqladminV1beta3::ExportContext::Representation - - end - end - - class InstancesExportResponse - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :kind, as: 'kind' - property :operation, as: 'operation' - end - end - - class InstancesImportRequest - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :import_context, as: 'importContext', class: Google::Apis::SqladminV1beta3::ImportContext, decorator: Google::Apis::SqladminV1beta3::ImportContext::Representation - - end - end - - class InstancesImportResponse - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :kind, as: 'kind' - property :operation, as: 'operation' - end - end - - class InstancesInsertResponse - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :kind, as: 'kind' - property :operation, as: 'operation' - end - end - - class InstancesListResponse - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :items, as: 'items', class: Google::Apis::SqladminV1beta3::DatabaseInstance, decorator: Google::Apis::SqladminV1beta3::DatabaseInstance::Representation - - property :kind, as: 'kind' - property :next_page_token, as: 'nextPageToken' - end - end - - class InstancesPromoteReplicaResponse - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :kind, as: 'kind' - property :operation, as: 'operation' - end - end - - class InstancesResetSslConfigResponse - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :kind, as: 'kind' - property :operation, as: 'operation' - end - end - - class InstancesRestartResponse - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :kind, as: 'kind' - property :operation, as: 'operation' - end - end - - class InstancesRestoreBackupResponse - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :kind, as: 'kind' - property :operation, as: 'operation' - end - end - - class InstancesSetRootPasswordResponse - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :kind, as: 'kind' - property :operation, as: 'operation' - end - end - - class InstancesUpdateResponse - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :kind, as: 'kind' - property :operation, as: 'operation' - end - end - - class IpConfiguration - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :authorized_networks, as: 'authorizedNetworks' - property :enabled, as: 'enabled' - property :kind, as: 'kind' - 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', type: DateTime - - end - end - - class LocationPreference - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :follow_gae_application, as: 'followGaeApplication' - property :kind, as: 'kind' - property :zone, as: 'zone' - end - end - - class OperationError - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :code, as: 'code' - property :kind, as: 'kind' - end - end - - class OperationsListResponse - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :items, as: 'items', class: Google::Apis::SqladminV1beta3::InstanceOperation, decorator: Google::Apis::SqladminV1beta3::InstanceOperation::Representation - - property :kind, as: 'kind' - property :next_page_token, as: 'nextPageToken' - end - end - - class SetRootPasswordContext - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :kind, as: 'kind' - property :password, as: 'password' - end - end - - class Settings - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :activation_policy, as: 'activationPolicy' - collection :authorized_gae_applications, as: 'authorizedGaeApplications' - collection :backup_configuration, as: 'backupConfiguration', class: Google::Apis::SqladminV1beta3::BackupConfiguration, decorator: Google::Apis::SqladminV1beta3::BackupConfiguration::Representation - - collection :database_flags, as: 'databaseFlags', class: Google::Apis::SqladminV1beta3::DatabaseFlags, decorator: Google::Apis::SqladminV1beta3::DatabaseFlags::Representation - - property :database_replication_enabled, as: 'databaseReplicationEnabled' - property :ip_configuration, as: 'ipConfiguration', class: Google::Apis::SqladminV1beta3::IpConfiguration, decorator: Google::Apis::SqladminV1beta3::IpConfiguration::Representation - - property :kind, as: 'kind' - property :location_preference, as: 'locationPreference', class: Google::Apis::SqladminV1beta3::LocationPreference, decorator: Google::Apis::SqladminV1beta3::LocationPreference::Representation - - property :pricing_plan, as: 'pricingPlan' - property :replication_type, as: 'replicationType' - property :settings_version, :numeric_string => true, as: 'settingsVersion' - property :tier, as: 'tier' - 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', type: DateTime - - property :expiration_time, as: 'expirationTime', type: DateTime - - property :instance, as: 'instance' - property :kind, as: 'kind' - property :sha1_fingerprint, as: 'sha1Fingerprint' - end - end - - class SslCertDetail - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :cert_info, as: 'certInfo', class: Google::Apis::SqladminV1beta3::SslCert, decorator: Google::Apis::SqladminV1beta3::SslCert::Representation - - property :cert_private_key, as: 'certPrivateKey' - end - end - - class SslCertsDeleteResponse - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :kind, as: 'kind' - property :operation, as: 'operation' - end - end - - class SslCertsInsertRequest - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :common_name, as: 'commonName' - end - end - - class SslCertsInsertResponse - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :client_cert, as: 'clientCert', class: Google::Apis::SqladminV1beta3::SslCertDetail, decorator: Google::Apis::SqladminV1beta3::SslCertDetail::Representation - - property :kind, as: 'kind' - property :server_ca_cert, as: 'serverCaCert', class: Google::Apis::SqladminV1beta3::SslCert, decorator: Google::Apis::SqladminV1beta3::SslCert::Representation - - end - end - - class SslCertsListResponse - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :items, as: 'items', class: Google::Apis::SqladminV1beta3::SslCert, decorator: Google::Apis::SqladminV1beta3::SslCert::Representation - - property :kind, as: 'kind' - 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 TiersListResponse - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :items, as: 'items', class: Google::Apis::SqladminV1beta3::Tier, decorator: Google::Apis::SqladminV1beta3::Tier::Representation - - property :kind, as: 'kind' - end - end - end - end -end diff --git a/generated/google/apis/sqladmin_v1beta3/service.rb b/generated/google/apis/sqladmin_v1beta3/service.rb deleted file mode 100644 index 5fd6fad3e..000000000 --- a/generated/google/apis/sqladmin_v1beta3/service.rb +++ /dev/null @@ -1,995 +0,0 @@ -# Copyright 2015 Google Inc. -# -# 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 SqladminV1beta3 - # Cloud SQL Admin API - # - # Cloud SQL provides the Cloud SQL Admin API, a REST API for administering your - # instances programmatically. - # - # @example - # require 'google/apis/sqladmin_v1beta3' - # - # Sqladmin = Google::Apis::SqladminV1beta3 # Alias the module - # service = Sqladmin::SQLAdminService.new - # - # @see https://cloud.google.com/sql/docs/reference/latest - 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] - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - attr_accessor :quota_user - - # @return [String] - # Deprecated. Please use quotaUser instead. - attr_accessor :user_ip - - def initialize - super('https://www.googleapis.com/', 'sql/v1beta3/') - @batch_path = 'batch/sqladmin/v1beta3' - end - - # Retrieves information about a specified backup run for 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] backup_configuration - # Identifier for the backup configuration. This gets generated automatically - # when a backup configuration is created. - # @param [String] due_time - # The start time of the four-hour backup window. The backup can occur any time - # in the window. The time is in RFC 3339 format, for example 2012-11-15T16:19:00. - # 094Z. - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::SqladminV1beta3::BackupRun] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::SqladminV1beta3::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, backup_configuration, due_time, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, 'projects/{project}/instances/{instance}/backupRuns/{backupConfiguration}', options) - command.response_representation = Google::Apis::SqladminV1beta3::BackupRun::Representation - command.response_class = Google::Apis::SqladminV1beta3::BackupRun - command.params['project'] = project unless project.nil? - command.params['instance'] = instance unless instance.nil? - command.params['backupConfiguration'] = backup_configuration unless backup_configuration.nil? - command.query['dueTime'] = due_time unless due_time.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? - execute_or_queue_command(command, &block) - end - - # Lists all backup runs associated with 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] backup_configuration - # Identifier for the backup configuration. This gets generated automatically - # when a backup configuration is created. - # @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 - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::SqladminV1beta3::BackupRunsListResponse] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::SqladminV1beta3::BackupRunsListResponse] - # - # @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, backup_configuration, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, 'projects/{project}/instances/{instance}/backupRuns', options) - command.response_representation = Google::Apis::SqladminV1beta3::BackupRunsListResponse::Representation - command.response_class = Google::Apis::SqladminV1beta3::BackupRunsListResponse - command.params['project'] = project unless project.nil? - command.params['instance'] = instance unless instance.nil? - command.query['backupConfiguration'] = backup_configuration unless backup_configuration.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? - command.query['userIp'] = user_ip unless user_ip.nil? - execute_or_queue_command(command, &block) - end - - # Lists all database flags that can be set for Google Cloud SQL instances. - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::SqladminV1beta3::FlagsListResponse] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::SqladminV1beta3::FlagsListResponse] - # - # @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(fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, 'flags', options) - command.response_representation = Google::Apis::SqladminV1beta3::FlagsListResponse::Representation - command.response_class = Google::Apis::SqladminV1beta3::FlagsListResponse - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? - execute_or_queue_command(command, &block) - end - - # Creates a Cloud SQL instance as a clone of a source instance. - # @param [String] project - # Project ID of the source as well as the clone Cloud SQL instance. - # @param [Google::Apis::SqladminV1beta3::InstancesCloneRequest] instances_clone_request_object - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::SqladminV1beta3::InstancesCloneResponse] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::SqladminV1beta3::InstancesCloneResponse] - # - # @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, instances_clone_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, 'projects/{project}/instances/clone', options) - command.request_representation = Google::Apis::SqladminV1beta3::InstancesCloneRequest::Representation - command.request_object = instances_clone_request_object - command.response_representation = Google::Apis::SqladminV1beta3::InstancesCloneResponse::Representation - command.response_class = Google::Apis::SqladminV1beta3::InstancesCloneResponse - command.params['project'] = project unless project.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? - execute_or_queue_command(command, &block) - end - - # 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 - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::SqladminV1beta3::InstancesDeleteResponse] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::SqladminV1beta3::InstancesDeleteResponse] - # - # @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, user_ip: nil, options: nil, &block) - command = make_simple_command(:delete, 'projects/{project}/instances/{instance}', options) - command.response_representation = Google::Apis::SqladminV1beta3::InstancesDeleteResponse::Representation - command.response_class = Google::Apis::SqladminV1beta3::InstancesDeleteResponse - command.params['project'] = project unless project.nil? - command.params['instance'] = instance unless instance.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? - execute_or_queue_command(command, &block) - end - - # Exports data from a Cloud SQL instance to a Google Cloud Storage bucket as a - # MySQL dump 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::SqladminV1beta3::InstancesExportRequest] instances_export_request_object - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::SqladminV1beta3::InstancesExportResponse] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::SqladminV1beta3::InstancesExportResponse] - # - # @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, instances_export_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, 'projects/{project}/instances/{instance}/export', options) - command.request_representation = Google::Apis::SqladminV1beta3::InstancesExportRequest::Representation - command.request_object = instances_export_request_object - command.response_representation = Google::Apis::SqladminV1beta3::InstancesExportResponse::Representation - command.response_class = Google::Apis::SqladminV1beta3::InstancesExportResponse - command.params['project'] = project unless project.nil? - command.params['instance'] = instance unless instance.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? - execute_or_queue_command(command, &block) - end - - # Retrieves 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 - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::SqladminV1beta3::DatabaseInstance] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::SqladminV1beta3::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, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, 'projects/{project}/instances/{instance}', options) - command.response_representation = Google::Apis::SqladminV1beta3::DatabaseInstance::Representation - command.response_class = Google::Apis::SqladminV1beta3::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? - command.query['userIp'] = user_ip unless user_ip.nil? - execute_or_queue_command(command, &block) - end - - # Imports data into a Cloud SQL instance from a MySQL dump file stored in a - # Google Cloud Storage bucket. - # @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::SqladminV1beta3::InstancesImportRequest] instances_import_request_object - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::SqladminV1beta3::InstancesImportResponse] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::SqladminV1beta3::InstancesImportResponse] - # - # @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, instances_import_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, 'projects/{project}/instances/{instance}/import', options) - command.request_representation = Google::Apis::SqladminV1beta3::InstancesImportRequest::Representation - command.request_object = instances_import_request_object - command.response_representation = Google::Apis::SqladminV1beta3::InstancesImportResponse::Representation - command.response_class = Google::Apis::SqladminV1beta3::InstancesImportResponse - command.params['project'] = project unless project.nil? - command.params['instance'] = instance unless instance.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? - execute_or_queue_command(command, &block) - end - - # 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::SqladminV1beta3::DatabaseInstance] database_instance_object - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::SqladminV1beta3::InstancesInsertResponse] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::SqladminV1beta3::InstancesInsertResponse] - # - # @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, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, 'projects/{project}/instances', options) - command.request_representation = Google::Apis::SqladminV1beta3::DatabaseInstance::Representation - command.request_object = database_instance_object - command.response_representation = Google::Apis::SqladminV1beta3::InstancesInsertResponse::Representation - command.response_class = Google::Apis::SqladminV1beta3::InstancesInsertResponse - command.params['project'] = project unless project.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? - execute_or_queue_command(command, &block) - end - - # Lists instances for a given project, in alphabetical order by instance name. - # @param [String] project - # Project ID of the project for which to list Cloud SQL instances. - # @param [Fixnum] max_results - # The maximum number of results to return 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 - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::SqladminV1beta3::InstancesListResponse] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::SqladminV1beta3::InstancesListResponse] - # - # @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, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, 'projects/{project}/instances', options) - command.response_representation = Google::Apis::SqladminV1beta3::InstancesListResponse::Representation - command.response_class = Google::Apis::SqladminV1beta3::InstancesListResponse - command.params['project'] = project unless project.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? - command.query['userIp'] = user_ip unless user_ip.nil? - execute_or_queue_command(command, &block) - end - - # Updates the settings of a Cloud SQL instance. 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::SqladminV1beta3::DatabaseInstance] database_instance_object - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::SqladminV1beta3::InstancesUpdateResponse] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::SqladminV1beta3::InstancesUpdateResponse] - # - # @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, user_ip: nil, options: nil, &block) - command = make_simple_command(:patch, 'projects/{project}/instances/{instance}', options) - command.request_representation = Google::Apis::SqladminV1beta3::DatabaseInstance::Representation - command.request_object = database_instance_object - command.response_representation = Google::Apis::SqladminV1beta3::InstancesUpdateResponse::Representation - command.response_class = Google::Apis::SqladminV1beta3::InstancesUpdateResponse - command.params['project'] = project unless project.nil? - command.params['instance'] = instance unless instance.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? - execute_or_queue_command(command, &block) - end - - # Promotes the read replica instance to be a stand-alone Cloud SQL 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 - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::SqladminV1beta3::InstancesPromoteReplicaResponse] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::SqladminV1beta3::InstancesPromoteReplicaResponse] - # - # @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, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, 'projects/{project}/instances/{instance}/promoteReplica', options) - command.response_representation = Google::Apis::SqladminV1beta3::InstancesPromoteReplicaResponse::Representation - command.response_class = Google::Apis::SqladminV1beta3::InstancesPromoteReplicaResponse - command.params['project'] = project unless project.nil? - command.params['instance'] = instance unless instance.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? - execute_or_queue_command(command, &block) - end - - # Deletes all client certificates and generates a new server SSL certificate for - # 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] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::SqladminV1beta3::InstancesResetSslConfigResponse] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::SqladminV1beta3::InstancesResetSslConfigResponse] - # - # @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, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, 'projects/{project}/instances/{instance}/resetSslConfig', options) - command.response_representation = Google::Apis::SqladminV1beta3::InstancesResetSslConfigResponse::Representation - command.response_class = Google::Apis::SqladminV1beta3::InstancesResetSslConfigResponse - command.params['project'] = project unless project.nil? - command.params['instance'] = instance unless instance.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? - execute_or_queue_command(command, &block) - end - - # 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 - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::SqladminV1beta3::InstancesRestartResponse] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::SqladminV1beta3::InstancesRestartResponse] - # - # @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, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, 'projects/{project}/instances/{instance}/restart', options) - command.response_representation = Google::Apis::SqladminV1beta3::InstancesRestartResponse::Representation - command.response_class = Google::Apis::SqladminV1beta3::InstancesRestartResponse - command.params['project'] = project unless project.nil? - command.params['instance'] = instance unless instance.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? - execute_or_queue_command(command, &block) - end - - # Restores a backup of 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] backup_configuration - # The identifier of the backup configuration. This gets generated automatically - # when a backup configuration is created. - # @param [String] due_time - # The start time of the four-hour backup window. The backup can occur any time - # in the window. The time is in RFC 3339 format, for example 2012-11-15T16:19:00. - # 094Z. - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::SqladminV1beta3::InstancesRestoreBackupResponse] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::SqladminV1beta3::InstancesRestoreBackupResponse] - # - # @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, backup_configuration, due_time, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, 'projects/{project}/instances/{instance}/restoreBackup', options) - command.response_representation = Google::Apis::SqladminV1beta3::InstancesRestoreBackupResponse::Representation - command.response_class = Google::Apis::SqladminV1beta3::InstancesRestoreBackupResponse - command.params['project'] = project unless project.nil? - command.params['instance'] = instance unless instance.nil? - command.query['backupConfiguration'] = backup_configuration unless backup_configuration.nil? - command.query['dueTime'] = due_time unless due_time.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? - execute_or_queue_command(command, &block) - end - - # Sets the password for the root user of 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 [Google::Apis::SqladminV1beta3::InstanceSetRootPasswordRequest] instance_set_root_password_request_object - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::SqladminV1beta3::InstancesSetRootPasswordResponse] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::SqladminV1beta3::InstancesSetRootPasswordResponse] - # - # @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 set_instance_root_password(project, instance, instance_set_root_password_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, 'projects/{project}/instances/{instance}/setRootPassword', options) - command.request_representation = Google::Apis::SqladminV1beta3::InstanceSetRootPasswordRequest::Representation - command.request_object = instance_set_root_password_request_object - command.response_representation = Google::Apis::SqladminV1beta3::InstancesSetRootPasswordResponse::Representation - command.response_class = Google::Apis::SqladminV1beta3::InstancesSetRootPasswordResponse - command.params['project'] = project unless project.nil? - command.params['instance'] = instance unless instance.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? - execute_or_queue_command(command, &block) - end - - # Updates the settings of 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 [Google::Apis::SqladminV1beta3::DatabaseInstance] database_instance_object - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::SqladminV1beta3::InstancesUpdateResponse] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::SqladminV1beta3::InstancesUpdateResponse] - # - # @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, user_ip: nil, options: nil, &block) - command = make_simple_command(:put, 'projects/{project}/instances/{instance}', options) - command.request_representation = Google::Apis::SqladminV1beta3::DatabaseInstance::Representation - command.request_object = database_instance_object - command.response_representation = Google::Apis::SqladminV1beta3::InstancesUpdateResponse::Representation - command.response_class = Google::Apis::SqladminV1beta3::InstancesUpdateResponse - command.params['project'] = project unless project.nil? - command.params['instance'] = instance unless instance.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? - execute_or_queue_command(command, &block) - end - - # Retrieves information about a specific operation that was performed on 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] operation - # Instance operation ID. - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::SqladminV1beta3::InstanceOperation] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::SqladminV1beta3::InstanceOperation] - # - # @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, instance, operation, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, 'projects/{project}/instances/{instance}/operations/{operation}', options) - command.response_representation = Google::Apis::SqladminV1beta3::InstanceOperation::Representation - command.response_class = Google::Apis::SqladminV1beta3::InstanceOperation - command.params['project'] = project unless project.nil? - command.params['instance'] = instance unless instance.nil? - command.params['operation'] = operation unless operation.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? - execute_or_queue_command(command, &block) - end - - # Lists all operations that have been performed on 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 [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 - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::SqladminV1beta3::OperationsListResponse] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::SqladminV1beta3::OperationsListResponse] - # - # @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, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, 'projects/{project}/instances/{instance}/operations', options) - command.response_representation = Google::Apis::SqladminV1beta3::OperationsListResponse::Representation - command.response_class = Google::Apis::SqladminV1beta3::OperationsListResponse - 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? - command.query['userIp'] = user_ip unless user_ip.nil? - execute_or_queue_command(command, &block) - end - - # Deletes an SSL certificate from 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] sha1_fingerprint - # Sha1 FingerPrint. - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::SqladminV1beta3::SslCertsDeleteResponse] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::SqladminV1beta3::SslCertsDeleteResponse] - # - # @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, user_ip: nil, options: nil, &block) - command = make_simple_command(:delete, 'projects/{project}/instances/{instance}/sslCerts/{sha1Fingerprint}', options) - command.response_representation = Google::Apis::SqladminV1beta3::SslCertsDeleteResponse::Representation - command.response_class = Google::Apis::SqladminV1beta3::SslCertsDeleteResponse - 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? - command.query['userIp'] = user_ip unless user_ip.nil? - execute_or_queue_command(command, &block) - end - - # Retrieves an SSL certificate as specified by its SHA-1 fingerprint. - # @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 - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::SqladminV1beta3::SslCert] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::SqladminV1beta3::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, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, 'projects/{project}/instances/{instance}/sslCerts/{sha1Fingerprint}', options) - command.response_representation = Google::Apis::SqladminV1beta3::SslCert::Representation - command.response_class = Google::Apis::SqladminV1beta3::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? - command.query['userIp'] = user_ip unless user_ip.nil? - execute_or_queue_command(command, &block) - end - - # Creates an SSL certificate and returns the certificate, the associated private - # key, and the server certificate authority. - # @param [String] project - # Project ID of the project to which the newly created Cloud SQL instances - # should belong. - # @param [String] instance - # Cloud SQL instance ID. This does not include the project ID. - # @param [Google::Apis::SqladminV1beta3::SslCertsInsertRequest] ssl_certs_insert_request_object - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::SqladminV1beta3::SslCertsInsertResponse] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::SqladminV1beta3::SslCertsInsertResponse] - # - # @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, ssl_certs_insert_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, 'projects/{project}/instances/{instance}/sslCerts', options) - command.request_representation = Google::Apis::SqladminV1beta3::SslCertsInsertRequest::Representation - command.request_object = ssl_certs_insert_request_object - command.response_representation = Google::Apis::SqladminV1beta3::SslCertsInsertResponse::Representation - command.response_class = Google::Apis::SqladminV1beta3::SslCertsInsertResponse - command.params['project'] = project unless project.nil? - command.params['instance'] = instance unless instance.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? - execute_or_queue_command(command, &block) - end - - # Lists all of the current SSL certificates defined for a Cloud SQL instance. - # @param [String] project - # Project ID of the project for which to list Cloud SQL instances. - # @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 - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::SqladminV1beta3::SslCertsListResponse] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::SqladminV1beta3::SslCertsListResponse] - # - # @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, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, 'projects/{project}/instances/{instance}/sslCerts', options) - command.response_representation = Google::Apis::SqladminV1beta3::SslCertsListResponse::Representation - command.response_class = Google::Apis::SqladminV1beta3::SslCertsListResponse - command.params['project'] = project unless project.nil? - command.params['instance'] = instance unless instance.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? - execute_or_queue_command(command, &block) - end - - # Lists service tiers that can be used to create Google Cloud SQL instances. - # @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 - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::SqladminV1beta3::TiersListResponse] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::SqladminV1beta3::TiersListResponse] - # - # @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, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, 'projects/{project}/tiers', options) - command.response_representation = Google::Apis::SqladminV1beta3::TiersListResponse::Representation - command.response_class = Google::Apis::SqladminV1beta3::TiersListResponse - command.params['project'] = project unless project.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? - execute_or_queue_command(command, &block) - end - - protected - - def apply_command_defaults(command) - command.query['key'] = key unless key.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? - end - end - end - end -end