Service Client: Google::Storagetransfer::V1::Transfer::StorageTransferServiceClient
Client stub representing the remote StorageTransferService gRPC service. Delegates call dispatching to Google::gRPC::Client.
target
The endpoint target address. Defaults to storagetransfer.googleapis.com:443.
credentials
The authentication credentials provider. Defaults to application default credentials via Google::Auth.
NAME
Google::Storagetransfer::V1::Transfer - Compiled Protocol Buffers messages for google/storagetransfer/v1/transfer.proto
SYNOPSIS
use Google::Storagetransfer::V1::Transfer;
my $msg = Google::Storagetransfer::V1::Transfer::GetGoogleServiceAccountRequest->new({
project_id => $project_id,
});
# Read or update a field
my $val = $msg->project_id();
# Binary wire-format roundtrip
my $bytes = $msg->serialize();
my $decoded = Google::Storagetransfer::V1::Transfer::GetGoogleServiceAccountRequest->parse($bytes);
# Canonical ProtoJSON
my $json = $msg->to_json();
DESCRIPTION
Auto-generated Protobuf message classes compiled from google/storagetransfer/v1/transfer.proto. All message classes inherit from Protobuf::Message and support new(), serialize(), parse(), to_json(), from_json(), to_text(), and to_perl().
MESSAGES
Google::Storagetransfer::V1::Transfer::GetGoogleServiceAccountRequest
Request passed to GetGoogleServiceAccount.
Inherits from Protobuf::Message.
Accessors
$msg->project_id()/$msg->project_id($value)Type:
StringRequired. The ID of the Google Cloud project that the Google service account is associated with.
Google::Storagetransfer::V1::Transfer::CreateTransferJobRequest
Request passed to CreateTransferJob.
Inherits from Protobuf::Message.
Accessors
$msg->transfer_job()/$msg->transfer_job($value)Type:
Message(Google::Storagetransfer::V1::TransferTypes::TransferJob)Required. The job to create.
Google::Storagetransfer::V1::Transfer::UpdateTransferJobRequest
Request passed to UpdateTransferJob.
Inherits from Protobuf::Message.
Accessors
$msg->job_name()/$msg->job_name($value)Type:
StringRequired. The name of job to update.
$msg->project_id()/$msg->project_id($value)Type:
StringRequired. The ID of the Google Cloud project that owns the job.
$msg->transfer_job()/$msg->transfer_job($value)Type:
Message(Google::Storagetransfer::V1::TransferTypes::TransferJob)Required. The job to update. `transferJob` is expected to specify one or more of five fields: [description][google.storagetransfer.v1.TransferJob.description], [transfer_spec][google.storagetransfer.v1.TransferJob.transfer_spec], [notification_config][google.storagetransfer.v1.TransferJob.notification_config], [logging_config][google.storagetransfer.v1.TransferJob.logging_config], and [status][google.storagetransfer.v1.TransferJob.status]. An `UpdateTransferJobRequest` that specifies other fields are rejected with the error [INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]. Updating a job status to [DELETED][google.storagetransfer.v1.TransferJob.Status.DELETED] requires `storagetransfer.jobs.delete` permission.
$msg->update_transfer_job_field_mask()/$msg->update_transfer_job_field_mask($value)Type:
Message(Google::Protobuf::FieldMask::FieldMask)The field mask of the fields in `transferJob` that are to be updated in this request. Fields in `transferJob` that can be updated are: [description][google.storagetransfer.v1.TransferJob.description], [transfer_spec][google.storagetransfer.v1.TransferJob.transfer_spec], [notification_config][google.storagetransfer.v1.TransferJob.notification_config], [logging_config][google.storagetransfer.v1.TransferJob.logging_config], and [status][google.storagetransfer.v1.TransferJob.status]. To update the `transfer_spec` of the job, a complete transfer specification must be provided. An incomplete specification missing any required fields is rejected with the error [INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT].
Google::Storagetransfer::V1::Transfer::GetTransferJobRequest
Request passed to GetTransferJob.
Inherits from Protobuf::Message.
Accessors
$msg->job_name()/$msg->job_name($value)Type:
StringRequired. The job to get.
$msg->project_id()/$msg->project_id($value)Type:
StringRequired. The ID of the Google Cloud project that owns the job.
Google::Storagetransfer::V1::Transfer::DeleteTransferJobRequest
Request passed to DeleteTransferJob.
Inherits from Protobuf::Message.
Accessors
$msg->job_name()/$msg->job_name($value)Type:
StringRequired. The job to delete.
$msg->project_id()/$msg->project_id($value)Type:
StringRequired. The ID of the Google Cloud project that owns the job.
Google::Storagetransfer::V1::Transfer::ListTransferJobsRequest
`projectId`, `jobNames`, and `jobStatuses` are query parameters that can be specified when listing transfer jobs.
Inherits from Protobuf::Message.
Accessors
$msg->filter()/$msg->filter($value)Type:
StringRequired. A list of query parameters specified as JSON text in the form of:
``` { "projectId":"my_project_id", "jobNames":["jobid1","jobid2",...], "jobStatuses":["status1","status2",...], "dataBackend":"QUERY_REPLICATION_CONFIGS", "sourceBucket":"source-bucket-name", "sinkBucket":"sink-bucket-name", } ```
The JSON formatting in the example is for display only; provide the query parameters without spaces or line breaks.
* `projectId` is required. * Since `jobNames` and `jobStatuses` support multiple values, their values must be specified with array notation. `jobNames` and `jobStatuses` are optional. Valid values are case-insensitive: * [ENABLED][google.storagetransfer.v1.TransferJob.Status.ENABLED] * [DISABLED][google.storagetransfer.v1.TransferJob.Status.DISABLED] * [DELETED][google.storagetransfer.v1.TransferJob.Status.DELETED] * Specify `"dataBackend":"QUERY_REPLICATION_CONFIGS"` to return a list of cross-bucket replication jobs. * Limit the results to jobs from a particular bucket with `sourceBucket` and/or to a particular bucket with `sinkBucket`.
$msg->page_size()/$msg->page_size($value)Type:
Int32The list page size. The max allowed value is 256.
$msg->page_token()/$msg->page_token($value)Type:
StringThe list page token.
Google::Storagetransfer::V1::Transfer::ListTransferJobsResponse
Response from ListTransferJobs.
Inherits from Protobuf::Message.
Accessors
$msg->transfer_jobs()/$msg->transfer_jobs($value)Type:
Message(Google::Storagetransfer::V1::TransferTypes::TransferJob)A list of transfer jobs.
$msg->next_page_token()/$msg->next_page_token($value)Type:
StringThe list next page token.
Google::Storagetransfer::V1::Transfer::PauseTransferOperationRequest
Request passed to PauseTransferOperation.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. The name of the transfer operation.
Google::Storagetransfer::V1::Transfer::ResumeTransferOperationRequest
Request passed to ResumeTransferOperation.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. The name of the transfer operation.
Google::Storagetransfer::V1::Transfer::RunTransferJobRequest
Request passed to RunTransferJob.
Inherits from Protobuf::Message.
Accessors
$msg->job_name()/$msg->job_name($value)Type:
StringRequired. The name of the transfer job.
$msg->project_id()/$msg->project_id($value)Type:
StringRequired. The ID of the Google Cloud project that owns the transfer job.
Google::Storagetransfer::V1::Transfer::CreateAgentPoolRequest
Specifies the request passed to CreateAgentPool.
Inherits from Protobuf::Message.
Accessors
$msg->project_id()/$msg->project_id($value)Type:
StringRequired. The ID of the Google Cloud project that owns the agent pool.
$msg->agent_pool()/$msg->agent_pool($value)Type:
Message(Google::Storagetransfer::V1::TransferTypes::AgentPool)Required. The agent pool to create.
$msg->agent_pool_id()/$msg->agent_pool_id($value)Type:
StringRequired. The ID of the agent pool to create.
The `agent_pool_id` must meet the following requirements:
* Length of 128 characters or less. * Not start with the string `goog`. * Start with a lowercase ASCII character, followed by: * Zero or more: lowercase Latin alphabet characters, numerals, hyphens (`-`), periods (`.`), underscores (`_`), or tildes (`~`). * One or more numerals or lowercase ASCII characters.
As expressed by the regular expression: `^(?!goog)[a-z]([a-z0-9-._~]*[a-z0-9])?$`.
Google::Storagetransfer::V1::Transfer::UpdateAgentPoolRequest
Specifies the request passed to UpdateAgentPool.
Inherits from Protobuf::Message.
Accessors
$msg->agent_pool()/$msg->agent_pool($value)Type:
Message(Google::Storagetransfer::V1::TransferTypes::AgentPool)Required. The agent pool to update. `agent_pool` is expected to specify following fields:
* [name][google.storagetransfer.v1.AgentPool.name]
* [display_name][google.storagetransfer.v1.AgentPool.display_name]
* [bandwidth_limit][google.storagetransfer.v1.AgentPool.bandwidth_limit] An `UpdateAgentPoolRequest` with any other fields is rejected with the error [INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT].
$msg->update_mask()/$msg->update_mask($value)Type:
Message(Google::Protobuf::FieldMask::FieldMask)The [field mask] (https://developers.google.com/protocol-buffers/docs/reference/google.protobuf) of the fields in `agentPool` to update in this request. The following `agentPool` fields can be updated:
* [display_name][google.storagetransfer.v1.AgentPool.display_name]
* [bandwidth_limit][google.storagetransfer.v1.AgentPool.bandwidth_limit]
Google::Storagetransfer::V1::Transfer::GetAgentPoolRequest
Specifies the request passed to GetAgentPool.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. The name of the agent pool to get.
Google::Storagetransfer::V1::Transfer::DeleteAgentPoolRequest
Specifies the request passed to DeleteAgentPool.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. The name of the agent pool to delete.
Google::Storagetransfer::V1::Transfer::ListAgentPoolsRequest
The request passed to ListAgentPools.
Inherits from Protobuf::Message.
Accessors
$msg->project_id()/$msg->project_id($value)Type:
StringRequired. The ID of the Google Cloud project that owns the job.
$msg->filter()/$msg->filter($value)Type:
StringAn optional list of query parameters specified as JSON text in the form of:
`{"agentPoolNames":["agentpool1","agentpool2",...]}`
Since `agentPoolNames` support multiple values, its values must be specified with array notation. When the filter is either empty or not provided, the list returns all agent pools for the project.
$msg->page_size()/$msg->page_size($value)Type:
Int32The list page size. The max allowed value is `256`.
$msg->page_token()/$msg->page_token($value)Type:
StringThe list page token.
Google::Storagetransfer::V1::Transfer::ListAgentPoolsResponse
Response from ListAgentPools.
Inherits from Protobuf::Message.
Accessors
$msg->agent_pools()/$msg->agent_pools($value)Type:
Message(Google::Storagetransfer::V1::TransferTypes::AgentPool)A list of agent pools.
$msg->next_page_token()/$msg->next_page_token($value)Type:
StringThe list next page token.
SEE ALSO
Protobuf, Protobuf::Message, Google::Storagetransfer::V1::Transfer::Types, https://protobuf.dev/
LICENSE AND COPYRIGHT
Copyright (C) 2026 Google LLC
This program is released under the Apache 2.0 license.