Struct googapis::google::cloud::deploy::v1::Target [−][src]
pub struct Target {
pub name: String,
pub target_id: String,
pub uid: String,
pub description: String,
pub annotations: HashMap<String, String>,
pub labels: HashMap<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 deployment_target: Option<DeploymentTarget>,
}
Expand description
A Target
resource in the Google Cloud Deploy API.
A Target
defines a location to which a Skaffold configuration
can be deployed.
Fields
name: String
Optional. Name of the Target
. Format is projects/{project}/locations/{location}/
deliveryPipelines/{deliveryPipeline}/targets/[a-z][a-z0-9-]{0,62}.
target_id: String
Output only. Resource id of the Target
.
uid: String
Output only. Unique identifier of the Target
.
description: String
Optional. Description of the Target
. Max length is 255 characters.
annotations: HashMap<String, String>
Optional. User annotations. These attributes can only be set and used by the user, and not by Google Cloud Deploy. See https://google.aip.dev/128#annotations for more details such as format and size limitations.
labels: HashMap<String, String>
Optional. Labels are attributes that can be set and used by both the
user and by Google Cloud Deploy. Labels must meet the following
constraints: Each resource is limited to 64 labels. Keys must conform to
the regexp: \[a-zA-Z][a-zA-Z0-9_-\]{0,62}
. Values must conform to the
regexp: \[a-zA-Z0-9_-\]{0,63}
. Both keys and values are additionally
constrained to be <= 128 bytes in size.
require_approval: bool
Optional. 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: String
Optional. 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
.
deployment_target: Option<DeploymentTarget>
Destination to which the Skaffold configuration is applied during a rollout.
Trait Implementations
fn merge_field<B>(
&mut self,
tag: u32,
wire_type: WireType,
buf: &mut B,
ctx: DecodeContext
) -> Result<(), DecodeError> where
B: Buf,
Returns the encoded length of the message without a length delimiter.
Encodes the message to a buffer. Read more
Encodes the message to a newly allocated buffer.
Encodes the message with a length-delimiter to a buffer. Read more
Encodes the message with a length-delimiter to a newly allocated buffer.
Decodes an instance of the message from a buffer. Read more
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError> where
Self: Default,
B: Buf,
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError> where
Self: Default,
B: Buf,
Decodes a length-delimited instance of the message from the buffer.
Decodes an instance of the message from a buffer, and merges it into self
. Read more
Decodes a length-delimited instance of the message from buffer, and
merges it into self
. Read more
Auto Trait Implementations
impl RefUnwindSafe for Target
impl UnwindSafe for Target
Blanket Implementations
Mutably borrows from an owned value. Read more
Wrap the input message T
in a tonic::Request
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more