diff --git a/api_names_out.yaml b/api_names_out.yaml index 9570f8efdde..f3396705b43 100644 --- a/api_names_out.yaml +++ b/api_names_out.yaml @@ -407335,6 +407335,7 @@ "/sqladmin:v1beta4/ConnectPoolNodeConfig/name": name "/sqladmin:v1beta4/ConnectSettings": connect_settings "/sqladmin:v1beta4/ConnectSettings/backendType": backend_type +"/sqladmin:v1beta4/ConnectSettings/connectionName": connection_name "/sqladmin:v1beta4/ConnectSettings/customSubjectAlternativeNames": custom_subject_alternative_names "/sqladmin:v1beta4/ConnectSettings/customSubjectAlternativeNames/custom_subject_alternative_name": custom_subject_alternative_name "/sqladmin:v1beta4/ConnectSettings/databaseVersion": database_version @@ -407815,12 +407816,21 @@ "/sqladmin:v1beta4/PerformDiskShrinkContext": perform_disk_shrink_context "/sqladmin:v1beta4/PerformDiskShrinkContext/targetSizeGb": target_size_gb "/sqladmin:v1beta4/PerformanceCaptureConfig": performance_capture_config +"/sqladmin:v1beta4/PerformanceCaptureConfig/cpuUtilizationThresholdPercent": cpu_utilization_threshold_percent "/sqladmin:v1beta4/PerformanceCaptureConfig/enabled": enabled +"/sqladmin:v1beta4/PerformanceCaptureConfig/historyListLengthThresholdCount": history_list_length_threshold_count +"/sqladmin:v1beta4/PerformanceCaptureConfig/memoryUsageThresholdPercent": memory_usage_threshold_percent "/sqladmin:v1beta4/PerformanceCaptureConfig/probeThreshold": probe_threshold "/sqladmin:v1beta4/PerformanceCaptureConfig/probingIntervalSeconds": probing_interval_seconds "/sqladmin:v1beta4/PerformanceCaptureConfig/runningThreadsThreshold": running_threads_threshold "/sqladmin:v1beta4/PerformanceCaptureConfig/secondsBehindSourceThreshold": seconds_behind_source_threshold +"/sqladmin:v1beta4/PerformanceCaptureConfig/semaphoreWaitThresholdCount": semaphore_wait_threshold_count "/sqladmin:v1beta4/PerformanceCaptureConfig/transactionDurationThreshold": transaction_duration_threshold +"/sqladmin:v1beta4/PerformanceCaptureConfig/transactionKillExcludedUserHosts": transaction_kill_excluded_user_hosts +"/sqladmin:v1beta4/PerformanceCaptureConfig/transactionKillExcludedUserHosts/transaction_kill_excluded_user_host": transaction_kill_excluded_user_host +"/sqladmin:v1beta4/PerformanceCaptureConfig/transactionKillThresholdSeconds": transaction_kill_threshold_seconds +"/sqladmin:v1beta4/PerformanceCaptureConfig/transactionKillType": transaction_kill_type +"/sqladmin:v1beta4/PerformanceCaptureConfig/transactionLockWaitThresholdCount": transaction_lock_wait_threshold_count "/sqladmin:v1beta4/PointInTimeRestoreContext": point_in_time_restore_context "/sqladmin:v1beta4/PointInTimeRestoreContext/allocatedIpRange": allocated_ip_range "/sqladmin:v1beta4/PointInTimeRestoreContext/datasource": datasource @@ -407859,10 +407869,12 @@ "/sqladmin:v1beta4/PscAutoConnectionConfig/consumerNetwork": consumer_network "/sqladmin:v1beta4/PscAutoConnectionConfig/consumerNetworkStatus": consumer_network_status "/sqladmin:v1beta4/PscAutoConnectionConfig/consumerProject": consumer_project +"/sqladmin:v1beta4/PscAutoConnectionConfig/instanceAutoDnsStatus": instance_auto_dns_status "/sqladmin:v1beta4/PscAutoConnectionConfig/ipAddress": ip_address "/sqladmin:v1beta4/PscAutoConnectionConfig/serviceConnectionPolicy": service_connection_policy "/sqladmin:v1beta4/PscAutoConnectionConfig/serviceConnectionPolicyCreationResult": service_connection_policy_creation_result "/sqladmin:v1beta4/PscAutoConnectionConfig/status": status +"/sqladmin:v1beta4/PscAutoConnectionConfig/writeEndpointAutoDnsStatus": write_endpoint_auto_dns_status "/sqladmin:v1beta4/PscConfig": psc_config "/sqladmin:v1beta4/PscConfig/allowedConsumerProjects": allowed_consumer_projects "/sqladmin:v1beta4/PscConfig/allowedConsumerProjects/allowed_consumer_project": allowed_consumer_project @@ -408276,6 +408288,8 @@ "/sqladmin:v1beta4/sql.instances.patch": patch_instance "/sqladmin:v1beta4/sql.instances.patch/instance": instance "/sqladmin:v1beta4/sql.instances.patch/project": project +"/sqladmin:v1beta4/sql.instances.patch/reconcilePscNetworking": reconcile_psc_networking +"/sqladmin:v1beta4/sql.instances.patch/reconcilePscNetworkingForce": reconcile_psc_networking_force "/sqladmin:v1beta4/sql.instances.pointInTimeRestore": point_instance_in_time_restore "/sqladmin:v1beta4/sql.instances.pointInTimeRestore/parent": parent "/sqladmin:v1beta4/sql.instances.preCheckMajorVersionUpgrade": pre_instance_check_major_version_upgrade diff --git a/generated/google-apis-sqladmin_v1beta4/CHANGELOG.md b/generated/google-apis-sqladmin_v1beta4/CHANGELOG.md index d48df4152f5..ad5bd5bcd3b 100644 --- a/generated/google-apis-sqladmin_v1beta4/CHANGELOG.md +++ b/generated/google-apis-sqladmin_v1beta4/CHANGELOG.md @@ -1,5 +1,9 @@ # Release history for google-apis-sqladmin_v1beta4 +### v0.103.0 (2026-07-12) + +* Regenerated from discovery document revision 20260627 + ### v0.102.0 (2026-06-14) * Regenerated from discovery document revision 20260529 diff --git a/generated/google-apis-sqladmin_v1beta4/lib/google/apis/sqladmin_v1beta4/classes.rb b/generated/google-apis-sqladmin_v1beta4/lib/google/apis/sqladmin_v1beta4/classes.rb index 071277c4fe0..5989e3dfbde 100644 --- a/generated/google-apis-sqladmin_v1beta4/lib/google/apis/sqladmin_v1beta4/classes.rb +++ b/generated/google-apis-sqladmin_v1beta4/lib/google/apis/sqladmin_v1beta4/classes.rb @@ -393,7 +393,9 @@ class BackupConfiguration attr_accessor :point_in_time_recovery_enabled alias_method :point_in_time_recovery_enabled?, :point_in_time_recovery_enabled - # Reserved for future use. + # Optional. Deprecated: replication_log_archiving_enabled is deprecated and will + # be removed from a future version of the API. Use + # point_in_time_recovery_enabled instead. # Corresponds to the JSON property `replicationLogArchivingEnabled` # @return [Boolean] attr_accessor :replication_log_archiving_enabled @@ -897,6 +899,12 @@ class ConnectSettings # @return [String] attr_accessor :backend_type + # Optional. Output only. Connection name of the Cloud SQL instance used in + # connection strings, in the format project:region:instance. + # Corresponds to the JSON property `connectionName` + # @return [String] + attr_accessor :connection_name + # Custom subject alternative names for the server certificate. # Corresponds to the JSON property `customSubjectAlternativeNames` # @return [Array] @@ -983,6 +991,7 @@ def initialize(**args) # Update properties of this object def update!(**args) @backend_type = args[:backend_type] if args.key?(:backend_type) + @connection_name = args[:connection_name] if args.key?(:connection_name) @custom_subject_alternative_names = args[:custom_subject_alternative_names] if args.key?(:custom_subject_alternative_names) @database_version = args[:database_version] if args.key?(:database_version) @dns_name = args[:dns_name] if args.key?(:dns_name) @@ -4421,12 +4430,33 @@ def update!(**args) class PerformanceCaptureConfig include Google::Apis::Core::Hashable + # Optional. Specifies the minimum percentage of CPU utilization to trigger the + # performance capture. Valid integers range from `10` to `99`. Enter `0` to + # disable the check. + # Corresponds to the JSON property `cpuUtilizationThresholdPercent` + # @return [Fixnum] + attr_accessor :cpu_utilization_threshold_percent + # Optional. Enables or disables the performance capture feature. # Corresponds to the JSON property `enabled` # @return [Boolean] attr_accessor :enabled alias_method :enabled?, :enabled + # Optional. Specifies the minimum number of undo log entries in the history list + # length to trigger the performance capture. Valid integers range from `10000` + # to `10000000`. Enter `0` to disable the check. + # Corresponds to the JSON property `historyListLengthThresholdCount` + # @return [Fixnum] + attr_accessor :history_list_length_threshold_count + + # Optional. Specifies the minimum percentage of memory usage to trigger the + # performance capture. Valid integers range from `10` to `99`. Enter `0` to + # disable the check. + # Corresponds to the JSON property `memoryUsageThresholdPercent` + # @return [Fixnum] + attr_accessor :memory_usage_threshold_percent + # Optional. Specifies the minimum number of consecutive probe threshold that # triggers performance capture. # Corresponds to the JSON property `probeThreshold` @@ -4451,24 +4481,73 @@ class PerformanceCaptureConfig # @return [Fixnum] attr_accessor :seconds_behind_source_threshold + # Optional. Specifies the minimum allowed number of semaphore waits to trigger + # the performance capture. Valid integers range from `10` to `10000`. Enter `0` + # to disable the check. + # Corresponds to the JSON property `semaphoreWaitThresholdCount` + # @return [Fixnum] + attr_accessor :semaphore_wait_threshold_count + # Optional. Specifies the amount of time in seconds that a transaction needs to # have been open before the watcher starts recording it. # Corresponds to the JSON property `transactionDurationThreshold` # @return [Fixnum] attr_accessor :transaction_duration_threshold + # Optional. Specifies a customer-defined list of users to exclude from + # transaction termination. Entries can be in the format 'user@host' or just ' + # user'. A standalone 'user' implies 'user@%', excluding the user from any host. + # Wildcard '%' is allowed in the host part of the 'user@host' format. Example: `[ + # "app_user", "db_admin@10.1.2.3", "report_user@%"]` + # Corresponds to the JSON property `transactionKillExcludedUserHosts` + # @return [Array] + attr_accessor :transaction_kill_excluded_user_hosts + + # Optional. Specifies the amount of time in seconds that a transaction needs to + # have been open before the watcher starts terminating it. Valid integers range + # from `60` to `604800` (7 days). Enter `0` to disable. If enabled (i.e., > 0), + # this value must be greater than or equal to `transaction_duration_threshold`. + # Configurations where `0 < transaction_kill_threshold_seconds < + # transaction_duration_threshold` will be rejected. + # Corresponds to the JSON property `transactionKillThresholdSeconds` + # @return [Fixnum] + attr_accessor :transaction_kill_threshold_seconds + + # Optional. Determines which transactions are allowed to be terminated when they + # exceed `transaction_kill_threshold_seconds`. This allows protecting write- + # heavy transactions from auto-termination if desired. Defaults to ` + # READ_ONLY_TRANSACTIONS` if unspecified. + # Corresponds to the JSON property `transactionKillType` + # @return [String] + attr_accessor :transaction_kill_type + + # Optional. Specifies the minimum allowed number of transactions in lock wait + # state to trigger the performance capture. Valid integers range from `10` to ` + # 10000`. Enter `0` to disable the check. + # Corresponds to the JSON property `transactionLockWaitThresholdCount` + # @return [Fixnum] + attr_accessor :transaction_lock_wait_threshold_count + def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) + @cpu_utilization_threshold_percent = args[:cpu_utilization_threshold_percent] if args.key?(:cpu_utilization_threshold_percent) @enabled = args[:enabled] if args.key?(:enabled) + @history_list_length_threshold_count = args[:history_list_length_threshold_count] if args.key?(:history_list_length_threshold_count) + @memory_usage_threshold_percent = args[:memory_usage_threshold_percent] if args.key?(:memory_usage_threshold_percent) @probe_threshold = args[:probe_threshold] if args.key?(:probe_threshold) @probing_interval_seconds = args[:probing_interval_seconds] if args.key?(:probing_interval_seconds) @running_threads_threshold = args[:running_threads_threshold] if args.key?(:running_threads_threshold) @seconds_behind_source_threshold = args[:seconds_behind_source_threshold] if args.key?(:seconds_behind_source_threshold) + @semaphore_wait_threshold_count = args[:semaphore_wait_threshold_count] if args.key?(:semaphore_wait_threshold_count) @transaction_duration_threshold = args[:transaction_duration_threshold] if args.key?(:transaction_duration_threshold) + @transaction_kill_excluded_user_hosts = args[:transaction_kill_excluded_user_hosts] if args.key?(:transaction_kill_excluded_user_hosts) + @transaction_kill_threshold_seconds = args[:transaction_kill_threshold_seconds] if args.key?(:transaction_kill_threshold_seconds) + @transaction_kill_type = args[:transaction_kill_type] if args.key?(:transaction_kill_type) + @transaction_lock_wait_threshold_count = args[:transaction_lock_wait_threshold_count] if args.key?(:transaction_lock_wait_threshold_count) end end @@ -4714,6 +4793,11 @@ class PscAutoConnectionConfig # @return [String] attr_accessor :consumer_project + # Output only. The status of automated DNS provisioning. + # Corresponds to the JSON property `instanceAutoDnsStatus` + # @return [String] + attr_accessor :instance_auto_dns_status + # The IP address of the consumer endpoint. # Corresponds to the JSON property `ipAddress` # @return [String] @@ -4737,6 +4821,11 @@ class PscAutoConnectionConfig # @return [String] attr_accessor :status + # Output only. The status of automated DNS provisioning for the write endpoint. + # Corresponds to the JSON property `writeEndpointAutoDnsStatus` + # @return [String] + attr_accessor :write_endpoint_auto_dns_status + def initialize(**args) update!(**args) end @@ -4746,10 +4835,12 @@ def update!(**args) @consumer_network = args[:consumer_network] if args.key?(:consumer_network) @consumer_network_status = args[:consumer_network_status] if args.key?(:consumer_network_status) @consumer_project = args[:consumer_project] if args.key?(:consumer_project) + @instance_auto_dns_status = args[:instance_auto_dns_status] if args.key?(:instance_auto_dns_status) @ip_address = args[:ip_address] if args.key?(:ip_address) @service_connection_policy = args[:service_connection_policy] if args.key?(:service_connection_policy) @service_connection_policy_creation_result = args[:service_connection_policy_creation_result] if args.key?(:service_connection_policy_creation_result) @status = args[:status] if args.key?(:status) + @write_endpoint_auto_dns_status = args[:write_endpoint_auto_dns_status] if args.key?(:write_endpoint_auto_dns_status) end end diff --git a/generated/google-apis-sqladmin_v1beta4/lib/google/apis/sqladmin_v1beta4/gem_version.rb b/generated/google-apis-sqladmin_v1beta4/lib/google/apis/sqladmin_v1beta4/gem_version.rb index 7cd37050d62..d10973da740 100644 --- a/generated/google-apis-sqladmin_v1beta4/lib/google/apis/sqladmin_v1beta4/gem_version.rb +++ b/generated/google-apis-sqladmin_v1beta4/lib/google/apis/sqladmin_v1beta4/gem_version.rb @@ -16,13 +16,13 @@ module Google module Apis module SqladminV1beta4 # Version of the google-apis-sqladmin_v1beta4 gem - GEM_VERSION = "0.102.0" + GEM_VERSION = "0.103.0" # Version of the code generator used to generate this client GENERATOR_VERSION = "0.19.0" # Revision of the discovery document this client was generated from - REVISION = "20260529" + REVISION = "20260627" end end end diff --git a/generated/google-apis-sqladmin_v1beta4/lib/google/apis/sqladmin_v1beta4/representations.rb b/generated/google-apis-sqladmin_v1beta4/lib/google/apis/sqladmin_v1beta4/representations.rb index d53961d97d0..55902276151 100644 --- a/generated/google-apis-sqladmin_v1beta4/lib/google/apis/sqladmin_v1beta4/representations.rb +++ b/generated/google-apis-sqladmin_v1beta4/lib/google/apis/sqladmin_v1beta4/representations.rb @@ -1132,6 +1132,7 @@ class ConnectSettings # @private class Representation < Google::Apis::Core::JsonRepresentation property :backend_type, as: 'backendType' + property :connection_name, as: 'connectionName' collection :custom_subject_alternative_names, as: 'customSubjectAlternativeNames' property :database_version, as: 'databaseVersion' property :dns_name, as: 'dnsName' @@ -2046,12 +2047,20 @@ class Representation < Google::Apis::Core::JsonRepresentation class PerformanceCaptureConfig # @private class Representation < Google::Apis::Core::JsonRepresentation + property :cpu_utilization_threshold_percent, as: 'cpuUtilizationThresholdPercent' property :enabled, as: 'enabled' + property :history_list_length_threshold_count, as: 'historyListLengthThresholdCount' + property :memory_usage_threshold_percent, as: 'memoryUsageThresholdPercent' property :probe_threshold, as: 'probeThreshold' property :probing_interval_seconds, as: 'probingIntervalSeconds' property :running_threads_threshold, as: 'runningThreadsThreshold' property :seconds_behind_source_threshold, as: 'secondsBehindSourceThreshold' + property :semaphore_wait_threshold_count, as: 'semaphoreWaitThresholdCount' property :transaction_duration_threshold, as: 'transactionDurationThreshold' + collection :transaction_kill_excluded_user_hosts, as: 'transactionKillExcludedUserHosts' + property :transaction_kill_threshold_seconds, as: 'transactionKillThresholdSeconds' + property :transaction_kill_type, as: 'transactionKillType' + property :transaction_lock_wait_threshold_count, as: 'transactionLockWaitThresholdCount' end end @@ -2114,10 +2123,12 @@ class Representation < Google::Apis::Core::JsonRepresentation property :consumer_network, as: 'consumerNetwork' property :consumer_network_status, as: 'consumerNetworkStatus' property :consumer_project, as: 'consumerProject' + property :instance_auto_dns_status, as: 'instanceAutoDnsStatus' property :ip_address, as: 'ipAddress' property :service_connection_policy, as: 'serviceConnectionPolicy' property :service_connection_policy_creation_result, as: 'serviceConnectionPolicyCreationResult' property :status, as: 'status' + property :write_endpoint_auto_dns_status, as: 'writeEndpointAutoDnsStatus' end end diff --git a/generated/google-apis-sqladmin_v1beta4/lib/google/apis/sqladmin_v1beta4/service.rb b/generated/google-apis-sqladmin_v1beta4/lib/google/apis/sqladmin_v1beta4/service.rb index 4ebfbeb05fb..599bb0c9479 100644 --- a/generated/google-apis-sqladmin_v1beta4/lib/google/apis/sqladmin_v1beta4/service.rb +++ b/generated/google-apis-sqladmin_v1beta4/lib/google/apis/sqladmin_v1beta4/service.rb @@ -463,10 +463,10 @@ def get_connect(project, instance, read_time: nil, fields: nil, quota_user: nil, # Retrieves connect settings about a Cloud SQL instance using the instance DNS # name. - # @param [String] dns_name - # Required. Cloud SQL instance ID. This does not include the project ID. # @param [String] location # Required. The region of the instance. + # @param [String] dns_name + # Required. Cloud SQL instance ID. This does not include the project ID. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -484,12 +484,12 @@ def get_connect(project, instance, read_time: nil, fields: nil, quota_user: nil, # @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 resolve_connect(dns_name, location, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'sql/v1beta4/dns/{dnsName}/locations/{location}:resolveConnectSettings', options) + def resolve_connect(location, dns_name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'sql/v1beta4/locations/{location}/dns/{dnsName}:resolveConnectSettings', options) command.response_representation = Google::Apis::SqladminV1beta4::ConnectSettings::Representation command.response_class = Google::Apis::SqladminV1beta4::ConnectSettings - command.params['dnsName'] = dns_name unless dns_name.nil? command.params['location'] = location unless location.nil? + command.params['dnsName'] = dns_name unless dns_name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) @@ -1519,6 +1519,12 @@ def list_instance_server_cas(project, instance, fields: nil, quota_user: nil, op # @param [String] instance # Cloud SQL instance ID. This does not include the project ID. # @param [Google::Apis::SqladminV1beta4::DatabaseInstance] database_instance_object + # @param [Boolean] reconcile_psc_networking + # Optional. Set PSC config to the same value as the existing config to reconcile + # the PSC networking. + # @param [Boolean] reconcile_psc_networking_force + # Optional. Set PSC config to the same value as the existing config and force + # reconcile the PSC networking. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -1536,7 +1542,7 @@ def list_instance_server_cas(project, instance, fields: nil, quota_user: nil, op # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def patch_instance(project, instance, database_instance_object = nil, fields: nil, quota_user: nil, options: nil, &block) + def patch_instance(project, instance, database_instance_object = nil, reconcile_psc_networking: nil, reconcile_psc_networking_force: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:patch, 'sql/v1beta4/projects/{project}/instances/{instance}', options) command.request_representation = Google::Apis::SqladminV1beta4::DatabaseInstance::Representation command.request_object = database_instance_object @@ -1544,6 +1550,8 @@ def patch_instance(project, instance, database_instance_object = nil, fields: ni command.response_class = Google::Apis::SqladminV1beta4::Operation command.params['project'] = project unless project.nil? command.params['instance'] = instance unless instance.nil? + command.query['reconcilePscNetworking'] = reconcile_psc_networking unless reconcile_psc_networking.nil? + command.query['reconcilePscNetworkingForce'] = reconcile_psc_networking_force unless reconcile_psc_networking_force.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block)