#[non_exhaustive]pub struct JobRun {
pub name: String,
pub uid: String,
pub phase_id: String,
pub job_id: String,
pub create_time: Option<Timestamp>,
pub start_time: Option<Timestamp>,
pub end_time: Option<Timestamp>,
pub state: State,
pub etag: String,
pub job_run: Option<JobRun>,
/* private fields */
}Expand description
A JobRun resource in the Cloud Deploy API.
A JobRun contains information of a single Rollout job evaluation.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.name: StringOutput only. Name of the JobRun. Format is
projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{releases}/rollouts/{rollouts}/jobRuns/{uuid}.
uid: StringOutput only. Unique identifier of the JobRun.
phase_id: StringOutput only. ID of the Rollout phase this JobRun belongs in.
job_id: StringOutput only. ID of the Rollout job this JobRun corresponds to.
create_time: Option<Timestamp>Output only. Time at which the JobRun was created.
start_time: Option<Timestamp>Output only. Time at which the JobRun was started.
end_time: Option<Timestamp>Output only. Time at which the JobRun ended.
state: StateOutput only. The current state of the JobRun.
etag: StringOutput only. This checksum is computed by the server based on the value of other fields, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.
job_run: Option<JobRun>The JobRun type and the information for that type.
Implementations§
Source§impl JobRun
impl JobRun
pub fn new() -> Self
Sourcepub fn set_phase_id<T: Into<String>>(self, v: T) -> Self
pub fn set_phase_id<T: Into<String>>(self, v: T) -> Self
Sets the value of phase_id.
Sourcepub fn set_job_id<T: Into<String>>(self, v: T) -> Self
pub fn set_job_id<T: Into<String>>(self, v: T) -> Self
Sets the value of job_id.
Sourcepub fn set_create_time<T>(self, v: T) -> Self
pub fn set_create_time<T>(self, v: T) -> Self
Sets the value of create_time.
Sourcepub fn set_or_clear_create_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_create_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of create_time.
Sourcepub fn set_start_time<T>(self, v: T) -> Self
pub fn set_start_time<T>(self, v: T) -> Self
Sets the value of start_time.
Sourcepub fn set_or_clear_start_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_start_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of start_time.
Sourcepub fn set_end_time<T>(self, v: T) -> Self
pub fn set_end_time<T>(self, v: T) -> Self
Sets the value of end_time.
Sourcepub fn set_or_clear_end_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_end_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of end_time.
Sourcepub fn set_job_run<T: Into<Option<JobRun>>>(self, v: T) -> Self
pub fn set_job_run<T: Into<Option<JobRun>>>(self, v: T) -> Self
Sets the value of job_run.
Note that all the setters affecting job_run are mutually
exclusive.
Sourcepub fn deploy_job_run(&self) -> Option<&Box<DeployJobRun>>
pub fn deploy_job_run(&self) -> Option<&Box<DeployJobRun>>
The value of job_run
if it holds a DeployJobRun, None if the field is not set or
holds a different branch.
Sourcepub fn set_deploy_job_run<T: Into<Box<DeployJobRun>>>(self, v: T) -> Self
pub fn set_deploy_job_run<T: Into<Box<DeployJobRun>>>(self, v: T) -> Self
Sets the value of job_run
to hold a DeployJobRun.
Note that all the setters affecting job_run are
mutually exclusive.
Sourcepub fn verify_job_run(&self) -> Option<&Box<VerifyJobRun>>
pub fn verify_job_run(&self) -> Option<&Box<VerifyJobRun>>
The value of job_run
if it holds a VerifyJobRun, None if the field is not set or
holds a different branch.
Sourcepub fn set_verify_job_run<T: Into<Box<VerifyJobRun>>>(self, v: T) -> Self
pub fn set_verify_job_run<T: Into<Box<VerifyJobRun>>>(self, v: T) -> Self
Sets the value of job_run
to hold a VerifyJobRun.
Note that all the setters affecting job_run are
mutually exclusive.
Sourcepub fn predeploy_job_run(&self) -> Option<&Box<PredeployJobRun>>
pub fn predeploy_job_run(&self) -> Option<&Box<PredeployJobRun>>
The value of job_run
if it holds a PredeployJobRun, None if the field is not set or
holds a different branch.
Sourcepub fn set_predeploy_job_run<T: Into<Box<PredeployJobRun>>>(self, v: T) -> Self
pub fn set_predeploy_job_run<T: Into<Box<PredeployJobRun>>>(self, v: T) -> Self
Sets the value of job_run
to hold a PredeployJobRun.
Note that all the setters affecting job_run are
mutually exclusive.
Sourcepub fn postdeploy_job_run(&self) -> Option<&Box<PostdeployJobRun>>
pub fn postdeploy_job_run(&self) -> Option<&Box<PostdeployJobRun>>
The value of job_run
if it holds a PostdeployJobRun, None if the field is not set or
holds a different branch.
Sourcepub fn set_postdeploy_job_run<T: Into<Box<PostdeployJobRun>>>(
self,
v: T,
) -> Self
pub fn set_postdeploy_job_run<T: Into<Box<PostdeployJobRun>>>( self, v: T, ) -> Self
Sets the value of job_run
to hold a PostdeployJobRun.
Note that all the setters affecting job_run are
mutually exclusive.
Sourcepub fn create_child_rollout_job_run(
&self,
) -> Option<&Box<CreateChildRolloutJobRun>>
pub fn create_child_rollout_job_run( &self, ) -> Option<&Box<CreateChildRolloutJobRun>>
The value of job_run
if it holds a CreateChildRolloutJobRun, None if the field is not set or
holds a different branch.
Sourcepub fn set_create_child_rollout_job_run<T: Into<Box<CreateChildRolloutJobRun>>>(
self,
v: T,
) -> Self
pub fn set_create_child_rollout_job_run<T: Into<Box<CreateChildRolloutJobRun>>>( self, v: T, ) -> Self
Sets the value of job_run
to hold a CreateChildRolloutJobRun.
Note that all the setters affecting job_run are
mutually exclusive.
Sourcepub fn advance_child_rollout_job_run(
&self,
) -> Option<&Box<AdvanceChildRolloutJobRun>>
pub fn advance_child_rollout_job_run( &self, ) -> Option<&Box<AdvanceChildRolloutJobRun>>
The value of job_run
if it holds a AdvanceChildRolloutJobRun, None if the field is not set or
holds a different branch.
Sourcepub fn set_advance_child_rollout_job_run<T: Into<Box<AdvanceChildRolloutJobRun>>>(
self,
v: T,
) -> Self
pub fn set_advance_child_rollout_job_run<T: Into<Box<AdvanceChildRolloutJobRun>>>( self, v: T, ) -> Self
Sets the value of job_run
to hold a AdvanceChildRolloutJobRun.
Note that all the setters affecting job_run are
mutually exclusive.