Struct gapi_grpc::google::storagetransfer::v1::TransferJob[][src]

pub struct TransferJob {
    pub name: String,
    pub description: String,
    pub project_id: String,
    pub transfer_spec: Option<TransferSpec>,
    pub schedule: Option<Schedule>,
    pub status: i32,
    pub creation_time: Option<Timestamp>,
    pub last_modification_time: Option<Timestamp>,
    pub deletion_time: Option<Timestamp>,
}

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

Fields

name: String

A globally unique name assigned by Storage Transfer Service when the job is created. This field should be left empty in requests to create a new transfer job; otherwise, the requests result in an INVALID_ARGUMENT error.

description: String

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

project_id: String

The ID of the Google Cloud Platform Console project that owns the job.

transfer_spec: Option<TransferSpec>

Transfer specification.

schedule: Option<Schedule>

Schedule specification.

status: i32

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 to DISABLED, and an operation spawned by the transfer is running, the status change would not affect the current operation.

creation_time: Option<Timestamp>

This field cannot be changed by user requests.

last_modification_time: Option<Timestamp>

This field cannot be changed by user requests.

deletion_time: Option<Timestamp>

This field cannot be changed by user requests.

Implementations

impl TransferJob[src]

pub fn status(&self) -> Status[src]

Returns the enum value of status, or the default if the field is set to an invalid enum value.

pub fn set_status(&mut self, value: Status)[src]

Sets status to the provided enum value.

Trait Implementations

impl Clone for TransferJob[src]

impl Debug for TransferJob[src]

impl Default for TransferJob[src]

impl Message for TransferJob[src]

impl PartialEq<TransferJob> for TransferJob[src]

impl StructuralPartialEq for TransferJob[src]

Auto Trait Implementations

impl RefUnwindSafe for TransferJob

impl Send for TransferJob

impl Sync for TransferJob

impl Unpin for TransferJob

impl UnwindSafe for TransferJob

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> IntoRequest<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]

impl<T> WithSubscriber for T[src]