pub struct Target {Show 17 fields
pub annotations: Option<HashMap<String, String>>,
pub anthos_cluster: Option<AnthosCluster>,
pub create_time: Option<DateTime<Utc>>,
pub custom_target: Option<CustomTarget>,
pub deploy_parameters: Option<HashMap<String, String>>,
pub description: Option<String>,
pub etag: Option<String>,
pub execution_configs: Option<Vec<ExecutionConfig>>,
pub gke: Option<GkeCluster>,
pub labels: Option<HashMap<String, String>>,
pub multi_target: Option<MultiTarget>,
pub name: Option<String>,
pub require_approval: Option<bool>,
pub run: Option<CloudRunLocation>,
pub target_id: Option<String>,
pub uid: Option<String>,
pub update_time: Option<DateTime<Utc>>,
}
Expand description
A Target
resource in the Cloud Deploy API. A Target
defines a location to which a Skaffold configuration can be deployed.
§Activities
This type is used in activities, which are methods you may call on this type or where this type is involved in. The list links the activity name, along with information about where it is used (one of request and response).
- locations targets create projects (request)
- locations targets get projects (response)
- locations targets patch projects (request)
Fields§
§annotations: Option<HashMap<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.
anthos_cluster: Option<AnthosCluster>
Optional. Information specifying an Anthos Cluster.
create_time: Option<DateTime<Utc>>
Output only. Time at which the Target
was created.
custom_target: Option<CustomTarget>
Optional. Information specifying a Custom Target.
deploy_parameters: Option<HashMap<String, String>>
Optional. The deploy parameters to use for this target.
description: Option<String>
Optional. Description of the Target
. Max length is 255 characters.
etag: Option<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: Option<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
.
gke: Option<GkeCluster>
Optional. Information specifying a GKE Cluster.
labels: Option<HashMap<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.
multi_target: Option<MultiTarget>
Optional. Information specifying a multiTarget.
name: Option<String>
Optional. 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])?
require_approval: Option<bool>
Optional. Whether or not the Target
requires approval.
run: Option<CloudRunLocation>
Optional. Information specifying a Cloud Run deployment target.
target_id: Option<String>
Output only. Resource id of the Target
.
uid: Option<String>
Output only. Unique identifier of the Target
.
update_time: Option<DateTime<Utc>>
Output only. Most recent time at which the Target
was updated.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Target
impl<'de> Deserialize<'de> for Target
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl RequestValue for Target
impl ResponseResult 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more