Service Client: Google::Cloud::Sql::V1beta4::CloudSqlWorkloadCaptures::SqlWorkloadCapturesServiceClient

Client stub representing the remote SqlWorkloadCapturesService gRPC service. Delegates call dispatching to Google::gRPC::Client.

target

The endpoint target address. Defaults to sql.googleapis.com:443.

credentials

The authentication credentials provider. Defaults to application default credentials via Google::Auth.

NAME

Google::Cloud::Sql::V1beta4::CloudSqlWorkloadCaptures - Compiled Protocol Buffers messages for google/cloud/sql/v1beta4/cloud_sql_workload_captures.proto

SYNOPSIS

use Google::Cloud::Sql::V1beta4::CloudSqlWorkloadCaptures;

my $msg = Google::Cloud::Sql::V1beta4::CloudSqlWorkloadCaptures::WorkloadCapturesStartRequest->new({
    project => $project,
    instance => $instance,
    start_workload_capture_context => $start_workload_capture_context,
});

# Read or update a field
my $val = $msg->project();

# Binary wire-format roundtrip
my $bytes   = $msg->serialize();
my $decoded = Google::Cloud::Sql::V1beta4::CloudSqlWorkloadCaptures::WorkloadCapturesStartRequest->parse($bytes);

# Canonical ProtoJSON
my $json = $msg->to_json();

DESCRIPTION

Auto-generated Protobuf message classes compiled from google/cloud/sql/v1beta4/cloud_sql_workload_captures.proto. All message classes inherit from Protobuf::Message and support new(), serialize(), parse(), to_json(), from_json(), to_text(), and to_perl().

MESSAGES

Google::Cloud::Sql::V1beta4::CloudSqlWorkloadCaptures::WorkloadCapturesStartRequest

Request to start recording traffic from the primary instance (captured workload).

Inherits from Protobuf::Message.

Accessors

  • $msg->project() / $msg->project($value)

    Type: String

    Required. Project ID of the project that contains the instance.

  • $msg->instance() / $msg->instance($value)

    Type: String

    Required. Cloud SQL instance ID. This does not include the project ID.

  • $msg->start_workload_capture_context() / $msg->start_workload_capture_context($value)

    Type: Message (Google::Cloud::Sql::V1beta4::CloudSqlResources::StartWorkloadCaptureContext)

    Optional. Contains details about the start workload capture operation.

Google::Cloud::Sql::V1beta4::CloudSqlWorkloadCaptures::WorkloadCapturesStopRequest

Request to stop recording traffic from the primary instance.

Inherits from Protobuf::Message.

Accessors

  • $msg->project() / $msg->project($value)

    Type: String

    Required. Project ID of the project that contains the instance.

  • $msg->instance() / $msg->instance($value)

    Type: String

    Required. Cloud SQL instance ID. This does not include the project ID.

  • $msg->stop_workload_capture_context() / $msg->stop_workload_capture_context($value)

    Type: Message (Google::Cloud::Sql::V1beta4::CloudSqlResources::StopWorkloadCaptureContext)

    Optional. Contains details about the stop workload capture operation.

Google::Cloud::Sql::V1beta4::CloudSqlWorkloadCaptures::WorkloadCapturesStartReplayRequest

Request to start executing a captured workload on a replay instance (the Cloud SQL instance where the recorded SQL queries are executed).

Inherits from Protobuf::Message.

Accessors

  • $msg->project() / $msg->project($value)

    Type: String

    Required. Project ID of the project that contains the instance.

  • $msg->instance() / $msg->instance($value)

    Type: String

    Required. Cloud SQL instance ID. This does not include the project ID.

  • $msg->start_workload_replay_context() / $msg->start_workload_replay_context($value)

    Type: Message (Google::Cloud::Sql::V1beta4::CloudSqlResources::StartWorkloadReplayContext)

    Required. Contains details about the start workload replay operation.

  • $msg->workload_id() / $msg->workload_id($value)

    Type: String

    Required. The ID of the workload to replay.

Google::Cloud::Sql::V1beta4::CloudSqlWorkloadCaptures::WorkloadCapturesStopReplayRequest

Request to stop an active workload replay on a target Cloud SQL replay instance.

Inherits from Protobuf::Message.

Accessors

  • $msg->project() / $msg->project($value)

    Type: String

    Required. Project ID of the project that contains the target replay instance.

  • $msg->instance() / $msg->instance($value)

    Type: String

    Required. Cloud SQL instance ID of the target replay instance. This does not include the project ID.

  • $msg->stop_workload_replay_context() / $msg->stop_workload_replay_context($value)

    Type: Message (Google::Cloud::Sql::V1beta4::CloudSqlResources::StopWorkloadReplayContext)

    Optional. Contains details about the stop workload replay operation.

Google::Cloud::Sql::V1beta4::CloudSqlWorkloadCaptures::SqlWorkloadCapturesListRequest

Instance list captured workloads request.

Inherits from Protobuf::Message.

Accessors

  • $msg->project() / $msg->project($value)

    Type: String

    Required. Project ID of the project that contains the instance.

  • $msg->instance() / $msg->instance($value)

    Type: String

    Required. Cloud SQL instance ID. This does not include the project ID.

Google::Cloud::Sql::V1beta4::CloudSqlWorkloadCaptures::WorkloadCapturesListResponse

Instance list captured workloads response.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Sql::V1beta4::CloudSqlWorkloadCaptures::WorkloadCapture

Captured workload for an instance.

Inherits from Protobuf::Message.

Accessors

  • $msg->workload_id() / $msg->workload_id($value)

    Type: String

    Output only. The ID of the captured workload.

  • $msg->source_instance() / $msg->source_instance($value)

    Type: String

    Output only. The name of the source instance.

  • $msg->workload_capture_state() / $msg->workload_capture_state($value)

    Type: Enum (Google::Cloud::Sql::V1beta4::WorkloadCapture::State)

    Output only. The state of the workload capture.

  • $msg->start_time() / $msg->start_time($value)

    Type: Message (Google::Protobuf::Timestamp::Timestamp)

    Output only. The start time of the workload capture.

  • $msg->end_time() / $msg->end_time($value)

    Type: Message (Google::Protobuf::Timestamp::Timestamp)

    Output only. The end time of the workload capture.

  • $msg->replay_instance() / $msg->replay_instance($value)

    Type: String

    Output only. The name of the replay instance, if live replay was enabled.

  • $msg->retention_days() / $msg->retention_days($value)

    Type: Int32

    Output only. The retention period in days for the captured workload.

  • $msg->backup_id() / $msg->backup_id($value)

    Type: String

    Output only. The base backup ID associated with the workload capture.

  • $msg->capture_mode() / $msg->capture_mode($value)

    Type: Enum (Google::Cloud::Sql::V1beta4::WorkloadCapture::WorkloadCaptureMode)

    Output only. The capture mode of the workload capture.

Enum: WorkloadCapture::State

  • STATE_UNSPECIFIED => 0

  • RUNNING => 1

  • COMPLETED => 2

  • FAILED => 3

  • TERMINATED => 4

Enum: WorkloadCapture::WorkloadCaptureMode

  • WORKLOAD_CAPTURE_MODE_UNSPECIFIED => 0

  • CAPTURE_ONLY => 1

  • CAPTURE_AND_LIVE_REPLAY => 2

SEE ALSO

Protobuf, Protobuf::Message, Google::Cloud::Sql::V1beta4::CloudSqlWorkloadCaptures::Types, https://protobuf.dev/

LICENSE AND COPYRIGHT

Copyright (C) 2026 Google LLC

This program is released under the Apache 2.0 license.