Represents a StorageTransferService
Inheritance
$protobuf.rpc.Service > protos.google.storagetransfer.v1.StorageTransferServicePackage
@google-cloud/storage-transfer!Constructors
(constructor)(rpcImpl, requestDelimited, responseDelimited)
constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);
Constructs a new StorageTransferService service.
Name | Description |
rpcImpl |
$protobuf.RPCImpl
RPC implementation |
requestDelimited |
boolean
Whether requests are length-delimited |
responseDelimited |
boolean
Whether responses are length-delimited |
Methods
create(rpcImpl, requestDelimited, responseDelimited)
public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): StorageTransferService;
Creates new StorageTransferService service using the specified rpc implementation.
Name | Description |
rpcImpl |
$protobuf.RPCImpl
RPC implementation |
requestDelimited |
boolean
Whether requests are length-delimited |
responseDelimited |
boolean
Whether responses are length-delimited |
Type | Description |
StorageTransferService | RPC service. Useful where requests and/or responses are streamed. |
createTransferJob(request, callback)
public createTransferJob(request: google.storagetransfer.v1.ICreateTransferJobRequest, callback: google.storagetransfer.v1.StorageTransferService.CreateTransferJobCallback): void;
Calls CreateTransferJob.
Name | Description |
request |
google.storagetransfer.v1.ICreateTransferJobRequest
CreateTransferJobRequest message or plain object |
callback |
google.storagetransfer.v1.StorageTransferService.CreateTransferJobCallback
Node-style callback called with the error, if any, and TransferJob |
Type | Description |
void |
createTransferJob(request)
public createTransferJob(request: google.storagetransfer.v1.ICreateTransferJobRequest): Promise<google.storagetransfer.v1.TransferJob>;
Calls CreateTransferJob.
Name | Description |
request |
google.storagetransfer.v1.ICreateTransferJobRequest
CreateTransferJobRequest message or plain object |
Type | Description |
Promise<google.storagetransfer.v1.TransferJob> | Promise |
getGoogleServiceAccount(request, callback)
public getGoogleServiceAccount(request: google.storagetransfer.v1.IGetGoogleServiceAccountRequest, callback: google.storagetransfer.v1.StorageTransferService.GetGoogleServiceAccountCallback): void;
Calls GetGoogleServiceAccount.
Name | Description |
request |
google.storagetransfer.v1.IGetGoogleServiceAccountRequest
GetGoogleServiceAccountRequest message or plain object |
callback |
google.storagetransfer.v1.StorageTransferService.GetGoogleServiceAccountCallback
Node-style callback called with the error, if any, and GoogleServiceAccount |
Type | Description |
void |
getGoogleServiceAccount(request)
public getGoogleServiceAccount(request: google.storagetransfer.v1.IGetGoogleServiceAccountRequest): Promise<google.storagetransfer.v1.GoogleServiceAccount>;
Calls GetGoogleServiceAccount.
Name | Description |
request |
google.storagetransfer.v1.IGetGoogleServiceAccountRequest
GetGoogleServiceAccountRequest message or plain object |
Type | Description |
Promise<google.storagetransfer.v1.GoogleServiceAccount> | Promise |
getTransferJob(request, callback)
public getTransferJob(request: google.storagetransfer.v1.IGetTransferJobRequest, callback: google.storagetransfer.v1.StorageTransferService.GetTransferJobCallback): void;
Calls GetTransferJob.
Name | Description |
request |
google.storagetransfer.v1.IGetTransferJobRequest
GetTransferJobRequest message or plain object |
callback |
google.storagetransfer.v1.StorageTransferService.GetTransferJobCallback
Node-style callback called with the error, if any, and TransferJob |
Type | Description |
void |
getTransferJob(request)
public getTransferJob(request: google.storagetransfer.v1.IGetTransferJobRequest): Promise<google.storagetransfer.v1.TransferJob>;
Calls GetTransferJob.
Name | Description |
request |
google.storagetransfer.v1.IGetTransferJobRequest
GetTransferJobRequest message or plain object |
Type | Description |
Promise<google.storagetransfer.v1.TransferJob> | Promise |
listTransferJobs(request, callback)
public listTransferJobs(request: google.storagetransfer.v1.IListTransferJobsRequest, callback: google.storagetransfer.v1.StorageTransferService.ListTransferJobsCallback): void;
Calls ListTransferJobs.
Name | Description |
request |
google.storagetransfer.v1.IListTransferJobsRequest
ListTransferJobsRequest message or plain object |
callback |
google.storagetransfer.v1.StorageTransferService.ListTransferJobsCallback
Node-style callback called with the error, if any, and ListTransferJobsResponse |
Type | Description |
void |
listTransferJobs(request)
public listTransferJobs(request: google.storagetransfer.v1.IListTransferJobsRequest): Promise<google.storagetransfer.v1.ListTransferJobsResponse>;
Calls ListTransferJobs.
Name | Description |
request |
google.storagetransfer.v1.IListTransferJobsRequest
ListTransferJobsRequest message or plain object |
Type | Description |
Promise<google.storagetransfer.v1.ListTransferJobsResponse> | Promise |
pauseTransferOperation(request, callback)
public pauseTransferOperation(request: google.storagetransfer.v1.IPauseTransferOperationRequest, callback: google.storagetransfer.v1.StorageTransferService.PauseTransferOperationCallback): void;
Calls PauseTransferOperation.
Name | Description |
request |
google.storagetransfer.v1.IPauseTransferOperationRequest
PauseTransferOperationRequest message or plain object |
callback |
google.storagetransfer.v1.StorageTransferService.PauseTransferOperationCallback
Node-style callback called with the error, if any, and Empty |
Type | Description |
void |
pauseTransferOperation(request)
public pauseTransferOperation(request: google.storagetransfer.v1.IPauseTransferOperationRequest): Promise<google.protobuf.Empty>;
Calls PauseTransferOperation.
Name | Description |
request |
google.storagetransfer.v1.IPauseTransferOperationRequest
PauseTransferOperationRequest message or plain object |
Type | Description |
Promise<google.protobuf.Empty> | Promise |
resumeTransferOperation(request, callback)
public resumeTransferOperation(request: google.storagetransfer.v1.IResumeTransferOperationRequest, callback: google.storagetransfer.v1.StorageTransferService.ResumeTransferOperationCallback): void;
Calls ResumeTransferOperation.
Name | Description |
request |
google.storagetransfer.v1.IResumeTransferOperationRequest
ResumeTransferOperationRequest message or plain object |
callback |
google.storagetransfer.v1.StorageTransferService.ResumeTransferOperationCallback
Node-style callback called with the error, if any, and Empty |
Type | Description |
void |
resumeTransferOperation(request)
public resumeTransferOperation(request: google.storagetransfer.v1.IResumeTransferOperationRequest): Promise<google.protobuf.Empty>;
Calls ResumeTransferOperation.
Name | Description |
request |
google.storagetransfer.v1.IResumeTransferOperationRequest
ResumeTransferOperationRequest message or plain object |
Type | Description |
Promise<google.protobuf.Empty> | Promise |
runTransferJob(request, callback)
public runTransferJob(request: google.storagetransfer.v1.IRunTransferJobRequest, callback: google.storagetransfer.v1.StorageTransferService.RunTransferJobCallback): void;
Calls RunTransferJob.
Name | Description |
request |
google.storagetransfer.v1.IRunTransferJobRequest
RunTransferJobRequest message or plain object |
callback |
google.storagetransfer.v1.StorageTransferService.RunTransferJobCallback
Node-style callback called with the error, if any, and Operation |
Type | Description |
void |
runTransferJob(request)
public runTransferJob(request: google.storagetransfer.v1.IRunTransferJobRequest): Promise<google.longrunning.Operation>;
Calls RunTransferJob.
Name | Description |
request |
google.storagetransfer.v1.IRunTransferJobRequest
RunTransferJobRequest message or plain object |
Type | Description |
Promise<google.longrunning.Operation> | Promise |
updateTransferJob(request, callback)
public updateTransferJob(request: google.storagetransfer.v1.IUpdateTransferJobRequest, callback: google.storagetransfer.v1.StorageTransferService.UpdateTransferJobCallback): void;
Calls UpdateTransferJob.
Name | Description |
request |
google.storagetransfer.v1.IUpdateTransferJobRequest
UpdateTransferJobRequest message or plain object |
callback |
google.storagetransfer.v1.StorageTransferService.UpdateTransferJobCallback
Node-style callback called with the error, if any, and TransferJob |
Type | Description |
void |
updateTransferJob(request)
public updateTransferJob(request: google.storagetransfer.v1.IUpdateTransferJobRequest): Promise<google.storagetransfer.v1.TransferJob>;
Calls UpdateTransferJob.
Name | Description |
request |
google.storagetransfer.v1.IUpdateTransferJobRequest
UpdateTransferJobRequest message or plain object |
Type | Description |
Promise<google.storagetransfer.v1.TransferJob> | Promise |