Class TransferJob (1.1.0)

public sealed class TransferJob : IMessage<TransferJob>, IEquatable<TransferJob>, IDeepCloneable<TransferJob>, IBufferMessage, IMessage

This resource represents the configuration of a transfer job that runs periodically.

Inheritance

Object > TransferJob

Namespace

Google.Cloud.StorageTransfer.V1

Assembly

Google.Cloud.StorageTransfer.V1.dll

Constructors

TransferJob()

public TransferJob()

TransferJob(TransferJob)

public TransferJob(TransferJob other)
Parameter
NameDescription
otherTransferJob

Properties

CreationTime

public Timestamp CreationTime { get; set; }

Output only. The time that the transfer job was created.

Property Value
TypeDescription
Timestamp

DeletionTime

public Timestamp DeletionTime { get; set; }

Output only. The time that the transfer job was deleted.

Property Value
TypeDescription
Timestamp

Description

public string Description { get; set; }

A description provided by the user for the job. Its max length is 1024 bytes when Unicode-encoded.

Property Value
TypeDescription
String

LastModificationTime

public Timestamp LastModificationTime { get; set; }

Output only. The time that the transfer job was last modified.

Property Value
TypeDescription
Timestamp

LatestOperationName

public string LatestOperationName { get; set; }

The name of the most recently started TransferOperation of this JobConfig. Present if a TransferOperation has been created for this JobConfig.

Property Value
TypeDescription
String

Name

public string Name { get; set; }

A unique name (within the transfer project) assigned when the job is created. If this field is empty in a CreateTransferJobRequest, Storage Transfer Service will assign a unique name. Otherwise, the specified name is used as the unique name for this job.

If the specified name is in use by a job, the creation request fails with an [ALREADY_EXISTS][google.rpc.Code.ALREADY_EXISTS] error.

This name must start with &quot;transferJobs/&quot; prefix and end with a letter or a number, and should be no more than 128 characters. This name must not start with 'transferJobs/OPI'. 'transferJobs/OPI' is a reserved prefix. Example: &quot;transferJobs/^(?!OPI)[A-Za-z0-9-._~]*[A-Za-z0-9]$&quot;

Invalid job names will fail with an [INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT] error.

Property Value
TypeDescription
String

NotificationConfig

public NotificationConfig NotificationConfig { get; set; }

Notification configuration.

Property Value
TypeDescription
NotificationConfig

ProjectId

public string ProjectId { get; set; }

The ID of the Google Cloud Platform Project that owns the job.

Property Value
TypeDescription
String

Schedule

public Schedule Schedule { get; set; }

Specifies schedule for the transfer job. This is an optional field. When the field is not set, the job will never execute a transfer, unless you invoke RunTransferJob or update the job to have a non-empty schedule.

Property Value
TypeDescription
Schedule

Status

public TransferJob.Types.Status Status { get; set; }

Status of the job. This value MUST be specified for CreateTransferJobRequests.

Note: The effect of the new job status takes place during a subsequent job run. For example, if you change the job status from [ENABLED][google.storagetransfer.v1.TransferJob.Status.ENABLED] to [DISABLED][google.storagetransfer.v1.TransferJob.Status.DISABLED], and an operation spawned by the transfer is running, the status change would not affect the current operation.

Property Value
TypeDescription
TransferJob.Types.Status

TransferSpec

public TransferSpec TransferSpec { get; set; }

Transfer specification.

Property Value
TypeDescription
TransferSpec