public sealed class StorageTransferServiceClientImpl : StorageTransferServiceClient
StorageTransferService client wrapper implementation, for convenient use.
Namespace
Google.Cloud.StorageTransfer.V1Assembly
Google.Cloud.StorageTransfer.V1.dll
Remarks
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.
Constructors
StorageTransferServiceClientImpl(StorageTransferService.StorageTransferServiceClient, StorageTransferServiceSettings)
public StorageTransferServiceClientImpl(StorageTransferService.StorageTransferServiceClient grpcClient, StorageTransferServiceSettings settings)
Constructs a client wrapper for the StorageTransferService service, with the specified gRPC client and settings.
Parameters | |
---|---|
Name | Description |
grpcClient | StorageTransferService.StorageTransferServiceClient The underlying gRPC client. |
settings | StorageTransferServiceSettings The base StorageTransferServiceSettings used within this client. |
Properties
GrpcClient
public override StorageTransferService.StorageTransferServiceClient GrpcClient { get; }
The underlying gRPC StorageTransferService client
Property Value | |
---|---|
Type | Description |
StorageTransferService.StorageTransferServiceClient |
RunTransferJobOperationsClient
public override OperationsClient RunTransferJobOperationsClient { get; }
The long-running operations client for RunTransferJob
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
Methods
CreateTransferJob(CreateTransferJobRequest, CallSettings)
public override TransferJob CreateTransferJob(CreateTransferJobRequest request, CallSettings callSettings = null)
Creates a transfer job that runs periodically.
Parameters | |
---|---|
Name | Description |
request | CreateTransferJobRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TransferJob | The RPC response. |
CreateTransferJobAsync(CreateTransferJobRequest, CallSettings)
public override Task<TransferJob> CreateTransferJobAsync(CreateTransferJobRequest request, CallSettings callSettings = null)
Creates a transfer job that runs periodically.
Parameters | |
---|---|
Name | Description |
request | CreateTransferJobRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<TransferJob> | A Task containing the RPC response. |
GetGoogleServiceAccount(GetGoogleServiceAccountRequest, CallSettings)
public override GoogleServiceAccount GetGoogleServiceAccount(GetGoogleServiceAccountRequest request, CallSettings callSettings = null)
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 Platform Console 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.
Parameters | |
---|---|
Name | Description |
request | GetGoogleServiceAccountRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
GoogleServiceAccount | The RPC response. |
GetGoogleServiceAccountAsync(GetGoogleServiceAccountRequest, CallSettings)
public override Task<GoogleServiceAccount> GetGoogleServiceAccountAsync(GetGoogleServiceAccountRequest request, CallSettings callSettings = null)
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 Platform Console 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.
Parameters | |
---|---|
Name | Description |
request | GetGoogleServiceAccountRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<GoogleServiceAccount> | A Task containing the RPC response. |
GetTransferJob(GetTransferJobRequest, CallSettings)
public override TransferJob GetTransferJob(GetTransferJobRequest request, CallSettings callSettings = null)
Gets a transfer job.
Parameters | |
---|---|
Name | Description |
request | GetTransferJobRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TransferJob | The RPC response. |
GetTransferJobAsync(GetTransferJobRequest, CallSettings)
public override Task<TransferJob> GetTransferJobAsync(GetTransferJobRequest request, CallSettings callSettings = null)
Gets a transfer job.
Parameters | |
---|---|
Name | Description |
request | GetTransferJobRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<TransferJob> | A Task containing the RPC response. |
ListTransferJobs(ListTransferJobsRequest, CallSettings)
public override PagedEnumerable<ListTransferJobsResponse, TransferJob> ListTransferJobs(ListTransferJobsRequest request, CallSettings callSettings = null)
Lists transfer jobs.
Parameters | |
---|---|
Name | Description |
request | ListTransferJobsRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerable<ListTransferJobsResponse, TransferJob> | A pageable sequence of TransferJob resources. |
ListTransferJobsAsync(ListTransferJobsRequest, CallSettings)
public override PagedAsyncEnumerable<ListTransferJobsResponse, TransferJob> ListTransferJobsAsync(ListTransferJobsRequest request, CallSettings callSettings = null)
Lists transfer jobs.
Parameters | |
---|---|
Name | Description |
request | ListTransferJobsRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerable<ListTransferJobsResponse, TransferJob> | A pageable asynchronous sequence of TransferJob resources. |
PauseTransferOperation(PauseTransferOperationRequest, CallSettings)
public override void PauseTransferOperation(PauseTransferOperationRequest request, CallSettings callSettings = null)
Pauses a transfer operation.
Parameters | |
---|---|
Name | Description |
request | PauseTransferOperationRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
PauseTransferOperationAsync(PauseTransferOperationRequest, CallSettings)
public override Task PauseTransferOperationAsync(PauseTransferOperationRequest request, CallSettings callSettings = null)
Pauses a transfer operation.
Parameters | |
---|---|
Name | Description |
request | PauseTransferOperationRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task | A Task containing the RPC response. |
ResumeTransferOperation(ResumeTransferOperationRequest, CallSettings)
public override void ResumeTransferOperation(ResumeTransferOperationRequest request, CallSettings callSettings = null)
Resumes a transfer operation that is paused.
Parameters | |
---|---|
Name | Description |
request | ResumeTransferOperationRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
ResumeTransferOperationAsync(ResumeTransferOperationRequest, CallSettings)
public override Task ResumeTransferOperationAsync(ResumeTransferOperationRequest request, CallSettings callSettings = null)
Resumes a transfer operation that is paused.
Parameters | |
---|---|
Name | Description |
request | ResumeTransferOperationRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task | A Task containing the RPC response. |
RunTransferJob(RunTransferJobRequest, CallSettings)
public override Operation<Empty, TransferOperation> RunTransferJob(RunTransferJobRequest request, CallSettings callSettings = null)
Attempts to start a new TransferOperation for the current TransferJob. A TransferJob has a maximum of one active TransferOperation. If this method is called while a TransferOperation is active, an error wil be returned.
Parameters | |
---|---|
Name | Description |
request | RunTransferJobRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<Empty, TransferOperation> | The RPC response. |
RunTransferJobAsync(RunTransferJobRequest, CallSettings)
public override Task<Operation<Empty, TransferOperation>> RunTransferJobAsync(RunTransferJobRequest request, CallSettings callSettings = null)
Attempts to start a new TransferOperation for the current TransferJob. A TransferJob has a maximum of one active TransferOperation. If this method is called while a TransferOperation is active, an error wil be returned.
Parameters | |
---|---|
Name | Description |
request | RunTransferJobRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Operation<Empty, TransferOperation>> | A Task containing the RPC response. |
UpdateTransferJob(UpdateTransferJobRequest, CallSettings)
public override TransferJob UpdateTransferJob(UpdateTransferJobRequest request, CallSettings callSettings = null)
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]).
Parameters | |
---|---|
Name | Description |
request | UpdateTransferJobRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TransferJob | The RPC response. |
UpdateTransferJobAsync(UpdateTransferJobRequest, CallSettings)
public override Task<TransferJob> UpdateTransferJobAsync(UpdateTransferJobRequest request, CallSettings callSettings = null)
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]).
Parameters | |
---|---|
Name | Description |
request | UpdateTransferJobRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<TransferJob> | A Task containing the RPC response. |