#[non_exhaustive]pub struct CustomTargetType {
pub name: String,
pub custom_target_type_id: String,
pub uid: String,
pub description: String,
pub annotations: HashMap<String, String>,
pub labels: HashMap<String, String>,
pub create_time: Option<Timestamp>,
pub update_time: Option<Timestamp>,
pub etag: String,
pub definition: Option<Definition>,
/* private fields */
}Expand description
A CustomTargetType resource in the Cloud Deploy API.
A CustomTargetType defines a type of custom target that can be referenced
in a Target in order to facilitate deploying to other systems besides the
supported runtimes.
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.name: StringIdentifier. Name of the CustomTargetType. Format is
projects/{project}/locations/{location}/customTargetTypes/{customTargetType}.
The customTargetType component must match
[a-z]([a-z0-9-]{0,61}[a-z0-9])?
custom_target_type_id: StringOutput only. Resource id of the CustomTargetType.
uid: StringOutput only. Unique identifier of the CustomTargetType.
description: StringOptional. Description of the CustomTargetType. 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 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 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 CustomTargetType was created.
update_time: Option<Timestamp>Output only. Most recent time at which the CustomTargetType 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.
definition: Option<Definition>Defines the CustomTargetType renderer and deployer.
Implementations§
Source§impl CustomTargetType
impl CustomTargetType
pub fn new() -> Self
Sourcepub fn set_custom_target_type_id<T: Into<String>>(self, v: T) -> Self
pub fn set_custom_target_type_id<T: Into<String>>(self, v: T) -> Self
Sets the value of custom_target_type_id.
Sourcepub fn set_description<T: Into<String>>(self, v: T) -> Self
pub fn set_description<T: Into<String>>(self, v: T) -> Self
Sets the value of description.
Sourcepub fn set_annotations<T, K, V>(self, v: T) -> Self
pub fn set_annotations<T, K, V>(self, v: T) -> Self
Sets the value of annotations.
Sourcepub fn set_labels<T, K, V>(self, v: T) -> Self
pub fn set_labels<T, K, V>(self, v: T) -> Self
Sets the value of labels.
Sourcepub fn set_create_time<T>(self, v: T) -> Self
pub fn set_create_time<T>(self, v: T) -> Self
Sets the value of create_time.
Sourcepub fn set_or_clear_create_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_create_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of create_time.
Sourcepub fn set_update_time<T>(self, v: T) -> Self
pub fn set_update_time<T>(self, v: T) -> Self
Sets the value of update_time.
Sourcepub fn set_or_clear_update_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_update_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of update_time.
Sourcepub fn set_definition<T: Into<Option<Definition>>>(self, v: T) -> Self
pub fn set_definition<T: Into<Option<Definition>>>(self, v: T) -> Self
Sets the value of definition.
Note that all the setters affecting definition are mutually
exclusive.
Sourcepub fn custom_actions(&self) -> Option<&Box<CustomTargetSkaffoldActions>>
pub fn custom_actions(&self) -> Option<&Box<CustomTargetSkaffoldActions>>
The value of definition
if it holds a CustomActions, None if the field is not set or
holds a different branch.
Sourcepub fn set_custom_actions<T: Into<Box<CustomTargetSkaffoldActions>>>(
self,
v: T,
) -> Self
pub fn set_custom_actions<T: Into<Box<CustomTargetSkaffoldActions>>>( self, v: T, ) -> Self
Sets the value of definition
to hold a CustomActions.
Note that all the setters affecting definition are
mutually exclusive.
Trait Implementations§
Source§impl Clone for CustomTargetType
impl Clone for CustomTargetType
Source§fn clone(&self) -> CustomTargetType
fn clone(&self) -> CustomTargetType
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more