TransferJobs
class TransferJobs extends Resource (View source)
The "transferJobs" collection of methods.
Typical usage is:
$storagetransferService = new Google\Service\Storagetransfer(...);
$transferJobs = $storagetransferService->transferJobs;
Methods
Creates a transfer job that runs periodically. (transferJobs.create)
Deletes a transfer job. Deleting a transfer job sets its status to DELETED.
Gets a transfer job. (transferJobs.get)
Lists transfer jobs. (transferJobs.listTransferJobs)
Updates a transfer job. Updating a job's transfer spec does not affect transfer operations that are running already. Note: The job's status field can be modified using this RPC (for example, to set a job's status to DELETED, DISABLED, or ENABLED). (transferJobs.patch)
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. (transferJobs.run)
Details
TransferJob
create(TransferJob $postBody, array $optParams = [])
Creates a transfer job that runs periodically. (transferJobs.create)
StoragetransferEmpty
delete(string $jobName, string $projectId, array $optParams = [])
Deletes a transfer job. Deleting a transfer job sets its status to DELETED.
(transferJobs.delete)
TransferJob
get(string $jobName, string $projectId, array $optParams = [])
Gets a transfer job. (transferJobs.get)
ListTransferJobsResponse
listTransferJobs(string $filter, array $optParams = [])
Lists transfer jobs. (transferJobs.listTransferJobs)
TransferJob
patch(string $jobName, UpdateTransferJobRequest $postBody, array $optParams = [])
Updates a transfer job. Updating a job's transfer spec does not affect transfer operations that are running already. Note: The job's status field can be modified using this RPC (for example, to set a job's status to DELETED, DISABLED, or ENABLED). (transferJobs.patch)
Operation
run(string $jobName, RunTransferJobRequest $postBody, array $optParams = [])
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. (transferJobs.run)