Google Cloud Storage Transfer V1 Client - Class UpdateTransferJobRequest (1.3.1)

Reference documentation and code samples for the Google Cloud Storage Transfer V1 Client class UpdateTransferJobRequest.

Request passed to UpdateTransferJob.

Generated from protobuf message google.storagetransfer.v1.UpdateTransferJobRequest

Namespace

Google \ Cloud \ StorageTransfer \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ job_name string

Required. The name of job to update.

↳ project_id string

Required. The ID of the Google Cloud project that owns the job.

↳ transfer_job Google\Cloud\StorageTransfer\V1\TransferJob

Required. The job to update. transferJob is expected to specify one or more of five fields: description, transfer_spec, notification_config, logging_config, and status. An UpdateTransferJobRequest that specifies other fields are rejected with the error INVALID_ARGUMENT. Updating a job status to DELETED requires storagetransfer.jobs.delete permission.

↳ update_transfer_job_field_mask Google\Protobuf\FieldMask

The field mask of the fields in transferJob that are to be updated in this request. Fields in transferJob that can be updated are: description, transfer_spec, notification_config, logging_config, and status. To update the transfer_spec of the job, a complete transfer specification must be provided. An incomplete specification missing any required fields is rejected with the error INVALID_ARGUMENT.

getJobName

Required. The name of job to update.

Returns
TypeDescription
string

setJobName

Required. The name of job to update.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getProjectId

Required. The ID of the Google Cloud project that owns the job.

Returns
TypeDescription
string

setProjectId

Required. The ID of the Google Cloud project that owns the job.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getTransferJob

Required. The job to update. transferJob is expected to specify one or more of five fields: description, transfer_spec, notification_config, logging_config, and status. An UpdateTransferJobRequest that specifies other fields are rejected with the error INVALID_ARGUMENT. Updating a job status to DELETED requires storagetransfer.jobs.delete permission.

Returns
TypeDescription
Google\Cloud\StorageTransfer\V1\TransferJob|null

hasTransferJob

clearTransferJob

setTransferJob

Required. The job to update. transferJob is expected to specify one or more of five fields: description, transfer_spec, notification_config, logging_config, and status. An UpdateTransferJobRequest that specifies other fields are rejected with the error INVALID_ARGUMENT. Updating a job status to DELETED requires storagetransfer.jobs.delete permission.

Parameter
NameDescription
var Google\Cloud\StorageTransfer\V1\TransferJob
Returns
TypeDescription
$this

getUpdateTransferJobFieldMask

The field mask of the fields in transferJob that are to be updated in this request. Fields in transferJob that can be updated are: description, transfer_spec, notification_config, logging_config, and status. To update the transfer_spec of the job, a complete transfer specification must be provided. An incomplete specification missing any required fields is rejected with the error INVALID_ARGUMENT.

Returns
TypeDescription
Google\Protobuf\FieldMask|null

hasUpdateTransferJobFieldMask

clearUpdateTransferJobFieldMask

setUpdateTransferJobFieldMask

The field mask of the fields in transferJob that are to be updated in this request. Fields in transferJob that can be updated are: description, transfer_spec, notification_config, logging_config, and status. To update the transfer_spec of the job, a complete transfer specification must be provided. An incomplete specification missing any required fields is rejected with the error INVALID_ARGUMENT.

Parameter
NameDescription
var Google\Protobuf\FieldMask
Returns
TypeDescription
$this