Class StorageTransferServiceGrpc.StorageTransferServiceBlockingStub
- java.lang.Object
-
- io.grpc.stub.AbstractStub<S>
-
- io.grpc.stub.AbstractBlockingStub<StorageTransferServiceGrpc.StorageTransferServiceBlockingStub>
-
- com.google.storagetransfer.v1.proto.StorageTransferServiceGrpc.StorageTransferServiceBlockingStub
-
- Enclosing class:
- StorageTransferServiceGrpc
public static final class StorageTransferServiceGrpc.StorageTransferServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub<StorageTransferServiceGrpc.StorageTransferServiceBlockingStub>
A stub to allow clients to do synchronous rpc calls to service StorageTransferService.Storage Transfer Service and its protos. Transfers data between between Google Cloud Storage buckets or from a data source external to Google to a Cloud Storage bucket.
-
-
Method Summary
-
-
-
Method Detail
-
build
protected StorageTransferServiceGrpc.StorageTransferServiceBlockingStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
- Specified by:
build
in classio.grpc.stub.AbstractStub<StorageTransferServiceGrpc.StorageTransferServiceBlockingStub>
-
getGoogleServiceAccount
public TransferTypes.GoogleServiceAccount getGoogleServiceAccount(TransferProto.GetGoogleServiceAccountRequest request)
Returns the Google service account that is used by Storage Transfer Service to access buckets in the project where transfers run or in other projects. Each Google service account is associated with one Google Cloud project. Users should add this service account to the Google Cloud Storage bucket ACLs to grant access to Storage Transfer Service. This service account is created and owned by Storage Transfer Service and can only be used by Storage Transfer Service.
-
createTransferJob
public TransferTypes.TransferJob createTransferJob(TransferProto.CreateTransferJobRequest request)
Creates a transfer job that runs periodically.
-
updateTransferJob
public TransferTypes.TransferJob updateTransferJob(TransferProto.UpdateTransferJobRequest request)
Updates a transfer job. Updating a job's transfer spec does not affect transfer operations that are running already. **Note:** The job's [status][google.storagetransfer.v1.TransferJob.status] field can be modified using this RPC (for example, to set a job's status to [DELETED][google.storagetransfer.v1.TransferJob.Status.DELETED], [DISABLED][google.storagetransfer.v1.TransferJob.Status.DISABLED], or [ENABLED][google.storagetransfer.v1.TransferJob.Status.ENABLED]).
-
getTransferJob
public TransferTypes.TransferJob getTransferJob(TransferProto.GetTransferJobRequest request)
Gets a transfer job.
-
listTransferJobs
public TransferProto.ListTransferJobsResponse listTransferJobs(TransferProto.ListTransferJobsRequest request)
Lists transfer jobs.
-
pauseTransferOperation
public com.google.protobuf.Empty pauseTransferOperation(TransferProto.PauseTransferOperationRequest request)
Pauses a transfer operation.
-
resumeTransferOperation
public com.google.protobuf.Empty resumeTransferOperation(TransferProto.ResumeTransferOperationRequest request)
Resumes a transfer operation that is paused.
-
runTransferJob
public com.google.longrunning.Operation runTransferJob(TransferProto.RunTransferJobRequest request)
Starts a new operation for the specified transfer job. A `TransferJob` has a maximum of one active `TransferOperation`. If this method is called while a `TransferOperation` is active, an error is returned.
-
deleteTransferJob
public com.google.protobuf.Empty deleteTransferJob(TransferProto.DeleteTransferJobRequest request)
Deletes a transfer job. Deleting a transfer job sets its status to [DELETED][google.storagetransfer.v1.TransferJob.Status.DELETED].
-
createAgentPool
public TransferTypes.AgentPool createAgentPool(TransferProto.CreateAgentPoolRequest request)
Creates an agent pool resource.
-
updateAgentPool
public TransferTypes.AgentPool updateAgentPool(TransferProto.UpdateAgentPoolRequest request)
Updates an existing agent pool resource.
-
getAgentPool
public TransferTypes.AgentPool getAgentPool(TransferProto.GetAgentPoolRequest request)
Gets an agent pool.
-
listAgentPools
public TransferProto.ListAgentPoolsResponse listAgentPools(TransferProto.ListAgentPoolsRequest request)
Lists agent pools.
-
deleteAgentPool
public com.google.protobuf.Empty deleteAgentPool(TransferProto.DeleteAgentPoolRequest request)
Deletes an agent pool.
-
-