Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions generated/google-apis-sqladmin_v1/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Release history for google-apis-sqladmin_v1

### v0.106.0 (2026-10-28)

* Regenerated from discovery document revision 20261006

### v0.105.0 (2026-10-21)

* Regenerated from discovery document revision 20260929
Expand Down
4 changes: 2 additions & 2 deletions generated/google-apis-sqladmin_v1/Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
google-apis-sqladmin_v1 (0.105.0)
google-apis-sqladmin_v1 (0.106.0)
google-apis-core (>= 0.15.0, < 2.a)

GEM
Expand Down Expand Up @@ -106,7 +106,7 @@ CHECKSUMS
faraday-follow_redirects (0.5.0) sha256=5cde93c894b30943a5d2b93c2fe9284216a6b756f7af406a1e55f211d97d10ad
faraday-net_http (3.4.4) sha256=0e78af151747ed1b00f33e25973b4bc220d7f16c00c39676817c8b12331eb588
google-apis-core (1.2.1) sha256=3739030455277e3be90f2d07321ad4d0bf0d6b1ed820b2d092916d6cdef05337
google-apis-sqladmin_v1 (0.105.0)
google-apis-sqladmin_v1 (0.106.0)
google-cloud-env (2.3.1) sha256=0faac01eb27be78c2591d64433663b1a114f8f7af55a4f819755426cac9178e7
google-logging-utils (0.2.0) sha256=675462b4ea5affa825a3442694ca2d75d0069455a1d0956127207498fca3df7b
googleauth (1.17.1) sha256=0f7e6fc70e204cee1b2d71f1e1de2d3b349d432404197fe68ebf7fa23d0821b9
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4498,9 +4498,9 @@ class Operation
# @return [Google::Apis::SqladminV1::StopWorkloadCaptureContext]
attr_accessor :stop_workload_capture_context

# The context for the `StopWorkloadReplay` operation, which contains details
# about stopping the execution of a captured workload (recorded read and write
# SQL queries) on a replay instance.
# The context for the `StopWorkloadReplay` operation, which represents an
# operation that stops an active workload replay on a target Cloud SQL replay
# instance.
# Corresponds to the JSON property `stopWorkloadReplayContext`
# @return [Google::Apis::SqladminV1::StopWorkloadReplayContext]
attr_accessor :stop_workload_replay_context
Expand Down Expand Up @@ -6806,13 +6806,14 @@ def update!(**args)
end
end

# Request to stop executing a captured workload on a replay instance.
# Request to stop an active workload replay on a target Cloud SQL replay
# instance.
class SqlWorkloadCapturesStopReplayRequest
include Google::Apis::Core::Hashable

# The context for the `StopWorkloadReplay` operation, which contains details
# about stopping the execution of a captured workload (recorded read and write
# SQL queries) on a replay instance.
# The context for the `StopWorkloadReplay` operation, which represents an
# operation that stops an active workload replay on a target Cloud SQL replay
# instance.
# Corresponds to the JSON property `stopWorkloadReplayContext`
# @return [Google::Apis::SqladminV1::StopWorkloadReplayContext]
attr_accessor :stop_workload_replay_context
Expand Down Expand Up @@ -7187,37 +7188,18 @@ def update!(**args)
end
end

# The context for the `StopWorkloadReplay` operation, which contains details
# about stopping the execution of a captured workload (recorded read and write
# SQL queries) on a replay instance.
# The context for the `StopWorkloadReplay` operation, which represents an
# operation that stops an active workload replay on a target Cloud SQL replay
# instance.
class StopWorkloadReplayContext
include Google::Apis::Core::Hashable

# Required. The name of the Cloud SQL instance where the captured workload (SQL
# queries) is being executed, excluding the project ID (for example, `my-replay-
# instance`). The instance name must start with a lowercase letter and contain
# only lowercase letters, numbers, and hyphens. The combined length of `project-
# ID:instance-name` must be 98 characters or less.
# Corresponds to the JSON property `replayInstance`
# @return [String]
attr_accessor :replay_instance

# Output only. The ID of the workload to stop executing on the replay instance.
# Each workload capture generates a unique ID in the format `workload-` (for
# example, `workload-1786046400`). Use this ID to stop executing the recorded
# SQL queries.
# Corresponds to the JSON property `workloadId`
# @return [String]
attr_accessor :workload_id

def initialize(**args)
update!(**args)
end

# Update properties of this object
def update!(**args)
@replay_instance = args[:replay_instance] if args.key?(:replay_instance)
@workload_id = args[:workload_id] if args.key?(:workload_id)
end
end

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ module Google
module Apis
module SqladminV1
# Version of the google-apis-sqladmin_v1 gem
GEM_VERSION = "0.105.0"
GEM_VERSION = "0.106.0"

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

# Revision of the discovery document this client was generated from
REVISION = "20260929"
REVISION = "20261006"
end
end
end
Original file line number Diff line number Diff line change
Expand Up @@ -2889,8 +2889,6 @@ class Representation < Google::Apis::Core::JsonRepresentation
class StopWorkloadReplayContext
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :replay_instance, as: 'replayInstance'
property :workload_id, as: 'workloadId'
end
end

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3344,13 +3344,12 @@ def stop_workload_capture(project, instance, sql_workload_captures_stop_request_
execute_or_queue_command(command, &block)
end

# Stops executing a captured workload on the separate Cloud SQL instance.
# Stops an active workload replay on the target Cloud SQL replay instance.
# @param [String] project
# Required. Project ID of the project that contains the instance.
# Required. Project ID of the project that contains the target replay instance.
# @param [String] instance
# Required. Cloud SQL instance ID. This does not include the project ID.
# @param [String] workload_id
# Required. The ID of the workload to replay.
# Required. Cloud SQL instance ID of the target replay instance. This does not
# include the project ID.
# @param [Google::Apis::SqladminV1::SqlWorkloadCapturesStopReplayRequest] sql_workload_captures_stop_replay_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
Expand All @@ -3369,15 +3368,14 @@ def stop_workload_capture(project, instance, sql_workload_captures_stop_request_
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def stop_workload_capture_replay(project, instance, workload_id, sql_workload_captures_stop_replay_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1/projects/{project}/instances/{instance}/workloadCaptures/{workloadId}:stopReplay', options)
def stop_workload_capture_replay(project, instance, sql_workload_captures_stop_replay_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1/projects/{project}/instances/{instance}/workloadCaptures:stopReplay', options)
command.request_representation = Google::Apis::SqladminV1::SqlWorkloadCapturesStopReplayRequest::Representation
command.request_object = sql_workload_captures_stop_replay_request_object
command.response_representation = Google::Apis::SqladminV1::Operation::Representation
command.response_class = Google::Apis::SqladminV1::Operation
command.params['project'] = project unless project.nil?
command.params['instance'] = instance unless instance.nil?
command.params['workloadId'] = workload_id unless workload_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
Expand Down
Loading