Reference documentation and code samples for the Storage Transfer Service V1 API class Google::Cloud::StorageTransfer::V1::StorageTransferService::Rest::ServiceStub.
REST service stub for the StorageTransferService service. Service stub contains baseline method implementations including transcoding, making the REST call, and deserialing the response.
Inherits
- Object
Methods
#create_agent_pool
def create_agent_pool(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::StorageTransfer::V1::AgentPool
Baseline implementation for the create_agent_pool REST call
- request_pb (::Google::Cloud::StorageTransfer::V1::CreateAgentPoolRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::StorageTransfer::V1::AgentPool)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::StorageTransfer::V1::AgentPool) — A result object deserialized from the server's reply
- (::ArgumentError)
#create_transfer_job
def create_transfer_job(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::StorageTransfer::V1::TransferJob
Baseline implementation for the create_transfer_job REST call
- request_pb (::Google::Cloud::StorageTransfer::V1::CreateTransferJobRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::StorageTransfer::V1::TransferJob)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::StorageTransfer::V1::TransferJob) — A result object deserialized from the server's reply
- (::ArgumentError)
#delete_agent_pool
def delete_agent_pool(request_pb, options = nil) { |result, operation| ... } -> ::Google::Protobuf::Empty
Baseline implementation for the delete_agent_pool REST call
- request_pb (::Google::Cloud::StorageTransfer::V1::DeleteAgentPoolRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Protobuf::Empty)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Protobuf::Empty) — A result object deserialized from the server's reply
- (::ArgumentError)
#delete_transfer_job
def delete_transfer_job(request_pb, options = nil) { |result, operation| ... } -> ::Google::Protobuf::Empty
Baseline implementation for the delete_transfer_job REST call
- request_pb (::Google::Cloud::StorageTransfer::V1::DeleteTransferJobRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Protobuf::Empty)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Protobuf::Empty) — A result object deserialized from the server's reply
- (::ArgumentError)
#get_agent_pool
def get_agent_pool(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::StorageTransfer::V1::AgentPool
Baseline implementation for the get_agent_pool REST call
- request_pb (::Google::Cloud::StorageTransfer::V1::GetAgentPoolRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::StorageTransfer::V1::AgentPool)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::StorageTransfer::V1::AgentPool) — A result object deserialized from the server's reply
- (::ArgumentError)
#get_google_service_account
def get_google_service_account(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::StorageTransfer::V1::GoogleServiceAccount
Baseline implementation for the get_google_service_account REST call
- request_pb (::Google::Cloud::StorageTransfer::V1::GetGoogleServiceAccountRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::StorageTransfer::V1::GoogleServiceAccount)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::StorageTransfer::V1::GoogleServiceAccount) — A result object deserialized from the server's reply
- (::ArgumentError)
#get_transfer_job
def get_transfer_job(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::StorageTransfer::V1::TransferJob
Baseline implementation for the get_transfer_job REST call
- request_pb (::Google::Cloud::StorageTransfer::V1::GetTransferJobRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::StorageTransfer::V1::TransferJob)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::StorageTransfer::V1::TransferJob) — A result object deserialized from the server's reply
- (::ArgumentError)
#initialize
def initialize(endpoint:, credentials:) -> ServiceStub
- (ServiceStub) — a new instance of ServiceStub
#list_agent_pools
def list_agent_pools(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::StorageTransfer::V1::ListAgentPoolsResponse
Baseline implementation for the list_agent_pools REST call
- request_pb (::Google::Cloud::StorageTransfer::V1::ListAgentPoolsRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::StorageTransfer::V1::ListAgentPoolsResponse)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::StorageTransfer::V1::ListAgentPoolsResponse) — A result object deserialized from the server's reply
- (::ArgumentError)
#list_transfer_jobs
def list_transfer_jobs(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::StorageTransfer::V1::ListTransferJobsResponse
Baseline implementation for the list_transfer_jobs REST call
- request_pb (::Google::Cloud::StorageTransfer::V1::ListTransferJobsRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::StorageTransfer::V1::ListTransferJobsResponse)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::StorageTransfer::V1::ListTransferJobsResponse) — A result object deserialized from the server's reply
- (::ArgumentError)
#pause_transfer_operation
def pause_transfer_operation(request_pb, options = nil) { |result, operation| ... } -> ::Google::Protobuf::Empty
Baseline implementation for the pause_transfer_operation REST call
- request_pb (::Google::Cloud::StorageTransfer::V1::PauseTransferOperationRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Protobuf::Empty)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Protobuf::Empty) — A result object deserialized from the server's reply
- (::ArgumentError)
#resume_transfer_operation
def resume_transfer_operation(request_pb, options = nil) { |result, operation| ... } -> ::Google::Protobuf::Empty
Baseline implementation for the resume_transfer_operation REST call
- request_pb (::Google::Cloud::StorageTransfer::V1::ResumeTransferOperationRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Protobuf::Empty)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Protobuf::Empty) — A result object deserialized from the server's reply
- (::ArgumentError)
#run_transfer_job
def run_transfer_job(request_pb, options = nil) { |result, operation| ... } -> ::Google::Longrunning::Operation
Baseline implementation for the run_transfer_job REST call
- request_pb (::Google::Cloud::StorageTransfer::V1::RunTransferJobRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Longrunning::Operation)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Longrunning::Operation) — A result object deserialized from the server's reply
- (::ArgumentError)
#update_agent_pool
def update_agent_pool(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::StorageTransfer::V1::AgentPool
Baseline implementation for the update_agent_pool REST call
- request_pb (::Google::Cloud::StorageTransfer::V1::UpdateAgentPoolRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::StorageTransfer::V1::AgentPool)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::StorageTransfer::V1::AgentPool) — A result object deserialized from the server's reply
- (::ArgumentError)
#update_transfer_job
def update_transfer_job(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::StorageTransfer::V1::TransferJob
Baseline implementation for the update_transfer_job REST call
- request_pb (::Google::Cloud::StorageTransfer::V1::UpdateTransferJobRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::StorageTransfer::V1::TransferJob)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::StorageTransfer::V1::TransferJob) — A result object deserialized from the server's reply
- (::ArgumentError)