Skip to content

Commit

Permalink
feat: Automated regeneration of sqladmin v1 client (#18954)
Browse files Browse the repository at this point in the history
Auto-created at 2024-05-05 10:17:20 +0000 using the toys pull request generator.
  • Loading branch information
yoshi-code-bot committed May 5, 2024
1 parent 43aee04 commit 61c998c
Show file tree
Hide file tree
Showing 4 changed files with 47 additions and 34 deletions.
4 changes: 4 additions & 0 deletions generated/google-apis-sqladmin_v1/CHANGELOG.md
@@ -1,5 +1,9 @@
# Release history for google-apis-sqladmin_v1

### v0.58.0 (2024-05-05)

* Regenerated from discovery document revision 20240425

### v0.57.0 (2024-03-31)

* Regenerated from discovery document revision 20240324
Expand Down
Expand Up @@ -207,7 +207,7 @@ class BackupConfiguration
attr_accessor :transaction_log_retention_days

# Output only. This value contains the storage location of transactional logs
# for the database for point-in-time recovery.
# used to perform point-in-time recovery (PITR) for the database.
# Corresponds to the JSON property `transactionalLogStorageState`
# @return [String]
attr_accessor :transactional_log_storage_state
Expand Down Expand Up @@ -839,7 +839,7 @@ class DatabaseInstance
# @return [String]
attr_accessor :gce_zone

# Gemini configuration.
# Gemini instance configuration.
# Corresponds to the JSON property `geminiConfig`
# @return [Google::Apis::SqladminV1::GeminiInstanceConfig]
attr_accessor :gemini_config
Expand Down Expand Up @@ -929,7 +929,9 @@ class DatabaseInstance
# @return [Array<String>]
attr_accessor :replica_names

# Primary-DR replica pair
# A primary instance and disaster recovery (DR) replica pair. A DR replica is a
# cross-region replica that you designate for failover in the event that the
# primary instance experiences regional failure. Only applicable to MySQL.
# Corresponds to the JSON property `replicationCluster`
# @return [Google::Apis::SqladminV1::ReplicationCluster]
attr_accessor :replication_cluster
Expand Down Expand Up @@ -1741,41 +1743,41 @@ def update!(**args)
end
end

# Gemini configuration.
# Gemini instance configuration.
class GeminiInstanceConfig
include Google::Apis::Core::Hashable

# Output only. Whether active query is enabled.
# Output only. Whether the active query is enabled.
# Corresponds to the JSON property `activeQueryEnabled`
# @return [Boolean]
attr_accessor :active_query_enabled
alias_method :active_query_enabled?, :active_query_enabled

# Output only. Whether gemini is enabled.
# Output only. Whether Gemini is enabled.
# Corresponds to the JSON property `entitled`
# @return [Boolean]
attr_accessor :entitled
alias_method :entitled?, :entitled

# Output only. Whether flag recommender is enabled.
# Output only. Whether the flag recommender is enabled.
# Corresponds to the JSON property `flagRecommenderEnabled`
# @return [Boolean]
attr_accessor :flag_recommender_enabled
alias_method :flag_recommender_enabled?, :flag_recommender_enabled

# Output only. Whether vacuum management is enabled.
# Output only. Whether the vacuum management is enabled.
# Corresponds to the JSON property `googleVacuumMgmtEnabled`
# @return [Boolean]
attr_accessor :google_vacuum_mgmt_enabled
alias_method :google_vacuum_mgmt_enabled?, :google_vacuum_mgmt_enabled

# Output only. Whether index advisor is enabled.
# Output only. Whether the index advisor is enabled.
# Corresponds to the JSON property `indexAdvisorEnabled`
# @return [Boolean]
attr_accessor :index_advisor_enabled
alias_method :index_advisor_enabled?, :index_advisor_enabled

# Output only. Whether oom session cancel is enabled.
# Output only. Whether canceling the out-of-memory (OOM) session is enabled.
# Corresponds to the JSON property `oomSessionCancelEnabled`
# @return [Boolean]
attr_accessor :oom_session_cancel_enabled
Expand Down Expand Up @@ -2532,12 +2534,12 @@ class IpConfiguration
# ENCRYPTED_ONLY` and `require_ssl=false` * `ssl_mode=
# TRUSTED_CLIENT_CERTIFICATE_REQUIRED` and `require_ssl=true` For SQL Server: * `
# ssl_mode=ALLOW_UNENCRYPTED_AND_ENCRYPTED` and `require_ssl=false` * `ssl_mode=
# ENCRYPTED_ONLY` and `require_ssl=true` The value of `ssl_mode` gets priority
# ENCRYPTED_ONLY` and `require_ssl=true` The value of `ssl_mode` has priority
# over the value of `require_ssl`. For example, for the pair `ssl_mode=
# ENCRYPTED_ONLY` and `require_ssl=false`, the `ssl_mode=ENCRYPTED_ONLY` means
# only accept SSL connections, while the `require_ssl=false` means accept both
# non-SSL and SSL connections. MySQL and PostgreSQL databases respect `ssl_mode`
# in this case and accept only SSL connections.
# ENCRYPTED_ONLY` and `require_ssl=false`, `ssl_mode=ENCRYPTED_ONLY` means
# accept only SSL connections, while `require_ssl=false` means accept both non-
# SSL and SSL connections. In this case, MySQL and PostgreSQL databases respect `
# ssl_mode` and accepts only SSL connections.
# Corresponds to the JSON property `sslMode`
# @return [String]
attr_accessor :ssl_mode
Expand Down Expand Up @@ -3306,12 +3308,14 @@ def update!(**args)
end
end

# Primary-DR replica pair
# A primary instance and disaster recovery (DR) replica pair. A DR replica is a
# cross-region replica that you designate for failover in the event that the
# primary instance experiences regional failure. Only applicable to MySQL.
class ReplicationCluster
include Google::Apis::Core::Hashable

# Output only. read-only field that indicates if the replica is a dr_replica;
# not set for a primary.
# Output only. Read-only field that indicates whether the replica is a DR
# replica. This field is not set if the instance is a primary instance.
# Corresponds to the JSON property `drReplica`
# @return [Boolean]
attr_accessor :dr_replica
Expand All @@ -3320,8 +3324,9 @@ class ReplicationCluster
# Optional. If the instance is a primary instance, then this field identifies
# the disaster recovery (DR) replica. A DR replica is an optional configuration
# for Enterprise Plus edition instances. If the instance is a read replica, then
# the field is not set. Users can set this field to set a designated DR replica
# for a primary. Removing this field removes the DR replica.
# the field is not set. Set this field to a replica name to designate a DR
# replica for a primary instance. Remove the replica name to remove the DR
# replica designation.
# Corresponds to the JSON property `failoverDrReplicaName`
# @return [String]
attr_accessor :failover_dr_replica_name
Expand Down Expand Up @@ -3866,8 +3871,9 @@ def update!(**args)
class SqlInstancesStartExternalSyncRequest
include Google::Apis::Core::Hashable

# Optional. MigrationType decides if the migration is a physical file based
# migration or logical migration.
# Optional. MigrationType configures the migration to use physical files or
# logical dump files. If not set, then the logical dump file configuration is
# used. Valid values are `LOGICAL` or `PHYSICAL`. Only applicable to MySQL.
# Corresponds to the JSON property `migrationType`
# @return [String]
attr_accessor :migration_type
Expand Down Expand Up @@ -3912,8 +3918,9 @@ def update!(**args)
class SqlInstancesVerifyExternalSyncSettingsRequest
include Google::Apis::Core::Hashable

# Optional. MigrationType decides if the migration is a physical file based
# migration or logical migration
# Optional. MigrationType configures the migration to use physical files or
# logical dump files. If not set, then the logical dump file configuration is
# used. Valid values are `LOGICAL` or `PHYSICAL`. Only applicable to MySQL.
# Corresponds to the JSON property `migrationType`
# @return [String]
attr_accessor :migration_type
Expand All @@ -3928,8 +3935,7 @@ class SqlInstancesVerifyExternalSyncSettingsRequest
# @return [String]
attr_accessor :sync_mode

# Optional. Parallel level for initial data sync. Currently only applicable for
# PostgreSQL.
# Optional. Parallel level for initial data sync. Only applicable for PostgreSQL.
# Corresponds to the JSON property `syncParallelLevel`
# @return [String]
attr_accessor :sync_parallel_level
Expand Down
Expand Up @@ -16,13 +16,13 @@ module Google
module Apis
module SqladminV1
# Version of the google-apis-sqladmin_v1 gem
GEM_VERSION = "0.57.0"
GEM_VERSION = "0.58.0"

# Version of the code generator used to generate this client
GENERATOR_VERSION = "0.14.0"

# Revision of the discovery document this client was generated from
REVISION = "20240324"
REVISION = "20240425"
end
end
end
Expand Up @@ -1056,16 +1056,19 @@ def patch_instance(project, instance, database_instance_object = nil, fields: ni
execute_or_queue_command(command, &block)
end

# Promotes the read replica instance to be a stand-alone Cloud SQL instance.
# Using this operation might cause your instance to restart.
# Promotes the read replica instance to be an independent Cloud SQL primary
# instance. Using this operation might cause your instance to restart.
# @param [String] project
# ID of the project that contains the read replica.
# @param [String] instance
# Cloud SQL read replica instance name.
# @param [Boolean] failover
# Set to true if the promote operation should attempt to re-add the original
# primary as a replica when it comes back online. Otherwise, if this value is
# false or not set, the original primary will be a standalone instance.
# Set to true to invoke a replica failover to the designated DR replica. As part
# of replica failover, the promote operation attempts to add the original
# primary instance as a replica of the promoted DR replica when the original
# primary instance comes back online. If set to false or not specified, then the
# original primary instance becomes an independent Cloud SQL primary instance.
# Only applicable to MySQL.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
Expand Down Expand Up @@ -1373,7 +1376,7 @@ def stop_instance_replica(project, instance, fields: nil, quota_user: nil, optio
execute_or_queue_command(command, &block)
end

# Switches over from the primary instance to the replica instance.
# Switches over from the primary instance to the designated DR replica instance.
# @param [String] project
# ID of the project that contains the replica.
# @param [String] instance
Expand Down

0 comments on commit 61c998c

Please sign in to comment.