pub struct Rollout {Show 22 fields
pub name: String,
pub uid: String,
pub description: String,
pub annotations: BTreeMap<String, String>,
pub labels: BTreeMap<String, String>,
pub create_time: Option<Timestamp>,
pub approve_time: Option<Timestamp>,
pub enqueue_time: Option<Timestamp>,
pub deploy_start_time: Option<Timestamp>,
pub deploy_end_time: Option<Timestamp>,
pub target_id: String,
pub approval_state: i32,
pub state: i32,
pub failure_reason: String,
pub deploying_build: String,
pub etag: String,
pub deploy_failure_cause: i32,
pub phases: Vec<Phase>,
pub metadata: Option<Metadata>,
pub controller_rollout: String,
pub rollback_of_rollout: String,
pub rolled_back_by_rollouts: Vec<String>,
}
Expand description
A Rollout
resource in the Cloud Deploy API.
A Rollout
contains information around a specific deployment to a Target
.
Fields§
§name: String
Optional. Name of the Rollout
. Format is
projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}/rollouts/{rollout}
.
The rollout
component must match [a-z](\[a-z0-9-\]{0,61}\[a-z0-9\])?
uid: String
Output only. Unique identifier of the Rollout
.
description: String
Description of the Rollout
for user purposes. Max length is 255
characters.
annotations: BTreeMap<String, String>
User annotations. These attributes can only be set and used by the user, and not by Cloud Deploy. See https://google.aip.dev/128#annotations for more details such as format and size limitations.
labels: BTreeMap<String, String>
Labels are attributes that can be set and used by both the user and by Cloud Deploy. Labels must meet the following constraints:
- Keys and values can contain only lowercase letters, numeric characters, underscores, and dashes.
- All characters must use UTF-8 encoding, and international characters are allowed.
- Keys must start with a lowercase letter or international character.
- Each resource is limited to a maximum of 64 labels.
Both keys and values are additionally constrained to be <= 128 bytes.
create_time: Option<Timestamp>
Output only. Time at which the Rollout
was created.
approve_time: Option<Timestamp>
Output only. Time at which the Rollout
was approved.
enqueue_time: Option<Timestamp>
Output only. Time at which the Rollout
was enqueued.
deploy_start_time: Option<Timestamp>
Output only. Time at which the Rollout
started deploying.
deploy_end_time: Option<Timestamp>
Output only. Time at which the Rollout
finished deploying.
target_id: String
Required. The ID of Target to which this Rollout
is deploying.
approval_state: i32
Output only. Approval state of the Rollout
.
state: i32
Output only. Current state of the Rollout
.
failure_reason: String
Output only. Additional information about the rollout failure, if available.
deploying_build: String
Output only. The resource name of the Cloud Build Build
object that is
used to deploy the Rollout. Format is
projects/{project}/locations/{location}/builds/{build}
.
etag: String
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.
deploy_failure_cause: i32
Output only. The reason this rollout failed. This will always be unspecified while the rollout is in progress.
phases: Vec<Phase>
Output only. The phases that represent the workflows of this Rollout
.
metadata: Option<Metadata>
Output only. Metadata contains information about the rollout.
controller_rollout: String
Output only. Name of the ControllerRollout
. Format is
projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}/rollouts/{rollout}
.
rollback_of_rollout: String
Output only. Name of the Rollout
that is rolled back by this Rollout
.
Empty if this Rollout
wasn’t created as a rollback.
rolled_back_by_rollouts: Vec<String>
Output only. Names of Rollouts
that rolled back this Rollout
.
Implementations§
source§impl Rollout
impl Rollout
sourcepub fn approval_state(&self) -> ApprovalState
pub fn approval_state(&self) -> ApprovalState
Returns the enum value of approval_state
, or the default if the field is set to an invalid enum value.
sourcepub fn set_approval_state(&mut self, value: ApprovalState)
pub fn set_approval_state(&mut self, value: ApprovalState)
Sets approval_state
to the provided enum value.
sourcepub fn state(&self) -> State
pub fn state(&self) -> State
Returns the enum value of state
, or the default if the field is set to an invalid enum value.
sourcepub fn deploy_failure_cause(&self) -> FailureCause
pub fn deploy_failure_cause(&self) -> FailureCause
Returns the enum value of deploy_failure_cause
, or the default if the field is set to an invalid enum value.
sourcepub fn set_deploy_failure_cause(&mut self, value: FailureCause)
pub fn set_deploy_failure_cause(&mut self, value: FailureCause)
Sets deploy_failure_cause
to the provided enum value.
Trait Implementations§
source§impl Message for Rollout
impl Message for Rollout
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moresource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.source§impl PartialEq for Rollout
impl PartialEq for Rollout
impl StructuralPartialEq for Rollout
Auto Trait Implementations§
impl Freeze for Rollout
impl RefUnwindSafe for Rollout
impl Send for Rollout
impl Sync for Rollout
impl Unpin for Rollout
impl UnwindSafe for Rollout
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<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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