#[non_exhaustive]pub struct ArtifactDeployment {
pub id: String,
pub artifact_reference: String,
pub artifact_alias: String,
pub source_commit_uris: Vec<String>,
pub deploy_time: Option<Timestamp>,
pub undeploy_time: Option<Timestamp>,
pub container_status_summary: String,
/* private fields */
}Expand description
The ArtifactDeployment resource represents the deployment of the artifact within the InsightsConfig resource.
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.id: StringOutput only. Unique identifier of ArtifactDeployment.
artifact_reference: StringOutput only. The artifact that is deployed.
artifact_alias: StringOutput only. The artifact alias in the deployment spec, with Tag/SHA. e.g. us-docker.pkg.dev/my-project/my-repo/image:1.0.0
source_commit_uris: Vec<String>Output only. The source commits at which this artifact was built. Extracted from provenance.
deploy_time: Option<Timestamp>Output only. The time at which the deployment was deployed.
undeploy_time: Option<Timestamp>Output only. The time at which the deployment was undeployed, all artifacts are considered undeployed once this time is set.
container_status_summary: StringOutput only. The summary of container status of the artifact deployment.
Format as ContainerStatusState-Reason : restartCount
e.g. “Waiting-ImagePullBackOff : 3”
Implementations§
Source§impl ArtifactDeployment
impl ArtifactDeployment
Sourcepub fn set_artifact_reference<T: Into<String>>(self, v: T) -> Self
pub fn set_artifact_reference<T: Into<String>>(self, v: T) -> Self
Sets the value of artifact_reference.
§Example
let x = ArtifactDeployment::new().set_artifact_reference("example");Sourcepub fn set_artifact_alias<T: Into<String>>(self, v: T) -> Self
pub fn set_artifact_alias<T: Into<String>>(self, v: T) -> Self
Sets the value of artifact_alias.
§Example
let x = ArtifactDeployment::new().set_artifact_alias("example");Sourcepub fn set_source_commit_uris<T, V>(self, v: T) -> Self
pub fn set_source_commit_uris<T, V>(self, v: T) -> Self
Sets the value of source_commit_uris.
§Example
let x = ArtifactDeployment::new().set_source_commit_uris(["a", "b", "c"]);Sourcepub fn set_deploy_time<T>(self, v: T) -> Self
pub fn set_deploy_time<T>(self, v: T) -> Self
Sets the value of deploy_time.
§Example
use wkt::Timestamp;
let x = ArtifactDeployment::new().set_deploy_time(Timestamp::default()/* use setters */);Sourcepub fn set_or_clear_deploy_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_deploy_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of deploy_time.
§Example
use wkt::Timestamp;
let x = ArtifactDeployment::new().set_or_clear_deploy_time(Some(Timestamp::default()/* use setters */));
let x = ArtifactDeployment::new().set_or_clear_deploy_time(None::<Timestamp>);Sourcepub fn set_undeploy_time<T>(self, v: T) -> Self
pub fn set_undeploy_time<T>(self, v: T) -> Self
Sets the value of undeploy_time.
§Example
use wkt::Timestamp;
let x = ArtifactDeployment::new().set_undeploy_time(Timestamp::default()/* use setters */);Sourcepub fn set_or_clear_undeploy_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_undeploy_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of undeploy_time.
§Example
use wkt::Timestamp;
let x = ArtifactDeployment::new().set_or_clear_undeploy_time(Some(Timestamp::default()/* use setters */));
let x = ArtifactDeployment::new().set_or_clear_undeploy_time(None::<Timestamp>);Sourcepub fn set_container_status_summary<T: Into<String>>(self, v: T) -> Self
pub fn set_container_status_summary<T: Into<String>>(self, v: T) -> Self
Sets the value of container_status_summary.
§Example
let x = ArtifactDeployment::new().set_container_status_summary("example");Trait Implementations§
Source§impl Clone for ArtifactDeployment
impl Clone for ArtifactDeployment
Source§fn clone(&self) -> ArtifactDeployment
fn clone(&self) -> ArtifactDeployment
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ArtifactDeployment
impl Debug for ArtifactDeployment
Source§impl Default for ArtifactDeployment
impl Default for ArtifactDeployment
Source§fn default() -> ArtifactDeployment
fn default() -> ArtifactDeployment
Source§impl Message for ArtifactDeployment
impl Message for ArtifactDeployment
Source§impl PartialEq for ArtifactDeployment
impl PartialEq for ArtifactDeployment
impl StructuralPartialEq for ArtifactDeployment
Auto Trait Implementations§
impl Freeze for ArtifactDeployment
impl RefUnwindSafe for ArtifactDeployment
impl Send for ArtifactDeployment
impl Sync for ArtifactDeployment
impl Unpin for ArtifactDeployment
impl UnsafeUnpin for ArtifactDeployment
impl UnwindSafe for ArtifactDeployment
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request