Struct gapi_grpc::google::cloud::aiplatform::v1beta1::CustomJob[][src]

pub struct CustomJob {
    pub name: String,
    pub display_name: String,
    pub job_spec: Option<CustomJobSpec>,
    pub state: i32,
    pub create_time: Option<Timestamp>,
    pub start_time: Option<Timestamp>,
    pub end_time: Option<Timestamp>,
    pub update_time: Option<Timestamp>,
    pub error: Option<Status>,
    pub labels: HashMap<String, String>,
    pub encryption_spec: Option<EncryptionSpec>,
}

Represents a job that runs custom workloads such as a Docker container or a Python package. A CustomJob can have multiple worker pools and each worker pool can have its own machine and input spec. A CustomJob will be cleaned up once the job enters terminal state (failed or succeeded).

Fields

name: String

Output only. Resource name of a CustomJob.

display_name: String

Required. The display name of the CustomJob. The name can be up to 128 characters long and can be consist of any UTF-8 characters.

job_spec: Option<CustomJobSpec>

Required. Job spec.

state: i32

Output only. The detailed state of the job.

create_time: Option<Timestamp>

Output only. Time when the CustomJob was created.

start_time: Option<Timestamp>

Output only. Time when the CustomJob for the first time entered the JOB_STATE_RUNNING state.

end_time: Option<Timestamp>

Output only. Time when the CustomJob entered any of the following states: JOB_STATE_SUCCEEDED, JOB_STATE_FAILED, JOB_STATE_CANCELLED.

update_time: Option<Timestamp>

Output only. Time when the CustomJob was most recently updated.

error: Option<Status>

Output only. Only populated when job’s state is JOB_STATE_FAILED or JOB_STATE_CANCELLED.

labels: HashMap<String, String>

The labels with user-defined metadata to organize CustomJobs.

Label keys and values can be no longer than 64 characters (Unicode codepoints), can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed.

See https://goo.gl/xmQnxf for more information and examples of labels.

encryption_spec: Option<EncryptionSpec>

Customer-managed encryption key options for a CustomJob. If this is set, then all resources created by the CustomJob will be encrypted with the provided encryption key.

Implementations

impl CustomJob[src]

pub fn state(&self) -> JobState[src]

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

pub fn set_state(&mut self, value: JobState)[src]

Sets state to the provided enum value.

Trait Implementations

impl Clone for CustomJob[src]

impl Debug for CustomJob[src]

impl Default for CustomJob[src]

impl Message for CustomJob[src]

impl PartialEq<CustomJob> for CustomJob[src]

impl StructuralPartialEq for CustomJob[src]

Auto Trait Implementations

impl RefUnwindSafe for CustomJob

impl Send for CustomJob

impl Sync for CustomJob

impl Unpin for CustomJob

impl UnwindSafe for CustomJob

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]