pub struct Target {Show 13 fields
pub name: String,
pub target_id: String,
pub uid: String,
pub description: String,
pub annotations: BTreeMap<String, String>,
pub labels: BTreeMap<String, String>,
pub require_approval: bool,
pub create_time: Option<Timestamp>,
pub update_time: Option<Timestamp>,
pub etag: String,
pub execution_configs: Vec<ExecutionConfig>,
pub deploy_parameters: BTreeMap<String, String>,
pub deployment_target: Option<DeploymentTarget>,
}Expand description
A Target resource in the Cloud Deploy API.
A Target defines a location to which a Skaffold configuration
can be deployed.
Fields§
§name: StringOptional. Name of the Target. Format is
projects/{project}/locations/{location}/targets/{target}.
The target component must match [a-z](\[a-z0-9-\]{0,61}\[a-z0-9\])?
target_id: StringOutput only. Resource id of the Target.
uid: StringOutput only. Unique identifier of the Target.
description: StringOptional. Description of the Target. Max length is 255 characters.
annotations: BTreeMap<String, String>Optional. 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>Optional. 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.
require_approval: boolOptional. Whether or not the Target requires approval.
create_time: Option<Timestamp>Output only. Time at which the Target was created.
update_time: Option<Timestamp>Output only. Most recent time at which the Target was updated.
etag: StringOptional. 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.
execution_configs: Vec<ExecutionConfig>Configurations for all execution that relates to this Target.
Each ExecutionEnvironmentUsage value may only be used in a single
configuration; using the same value multiple times is an error.
When one or more configurations are specified, they must include the
RENDER and DEPLOY ExecutionEnvironmentUsage values.
When no configurations are specified, execution will use the default
specified in DefaultPool.
deploy_parameters: BTreeMap<String, String>Optional. The deploy parameters to use for this target.
deployment_target: Option<DeploymentTarget>Destination to which the Skaffold configuration is applied during a rollout.
Trait Implementations§
source§impl Message for Target
impl Message for Target
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 Target
impl PartialEq for Target
impl StructuralPartialEq for Target
Auto Trait Implementations§
impl Freeze for Target
impl RefUnwindSafe for Target
impl Send for Target
impl Sync for Target
impl Unpin for Target
impl UnwindSafe for Target
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