#[non_exhaustive]pub struct Parameter {
pub name: String,
pub create_time: Option<Timestamp>,
pub update_time: Option<Timestamp>,
pub labels: HashMap<String, String>,
pub format: ParameterFormat,
pub policy_member: Option<ResourcePolicyMember>,
pub kms_key: Option<String>,
/* private fields */
}Expand description
Message describing Parameter resource
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. [Output only] The resource name of the Parameter in the format
projects/*/locations/*/parameters/*.
create_time: Option<Timestamp>Output only. [Output only] Create time stamp
update_time: Option<Timestamp>Output only. [Output only] Update time stamp
labels: HashMap<String, String>Optional. Labels as key value pairs
format: ParameterFormatOptional. Specifies the format of a Parameter.
policy_member: Option<ResourcePolicyMember>Output only. [Output-only] policy member strings of a Google Cloud resource.
kms_key: Option<String>Optional. Customer managed encryption key (CMEK) to use for encrypting the
Parameter Versions. If not set, the default Google-managed encryption key
will be used. Cloud KMS CryptoKeys must reside in the same location as the
Parameter. The expected format is
projects/*/locations/*/keyRings/*/cryptoKeys/*.
Implementations§
Source§impl Parameter
impl Parameter
pub fn new() -> Self
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.
§Example
use wkt::Timestamp;
let x = Parameter::new().set_create_time(Timestamp::default()/* use setters */);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.
§Example
use wkt::Timestamp;
let x = Parameter::new().set_or_clear_create_time(Some(Timestamp::default()/* use setters */));
let x = Parameter::new().set_or_clear_create_time(None::<Timestamp>);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.
§Example
use wkt::Timestamp;
let x = Parameter::new().set_update_time(Timestamp::default()/* use setters */);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.
§Example
use wkt::Timestamp;
let x = Parameter::new().set_or_clear_update_time(Some(Timestamp::default()/* use setters */));
let x = Parameter::new().set_or_clear_update_time(None::<Timestamp>);Sourcepub fn set_labels<T, K, V>(self, v: T) -> Self
pub fn set_labels<T, K, V>(self, v: T) -> Self
Sourcepub fn set_format<T: Into<ParameterFormat>>(self, v: T) -> Self
pub fn set_format<T: Into<ParameterFormat>>(self, v: T) -> Self
Sourcepub fn set_policy_member<T>(self, v: T) -> Selfwhere
T: Into<ResourcePolicyMember>,
pub fn set_policy_member<T>(self, v: T) -> Selfwhere
T: Into<ResourcePolicyMember>,
Sets the value of policy_member.
§Example
use iam_v1::model::ResourcePolicyMember;
let x = Parameter::new().set_policy_member(ResourcePolicyMember::default()/* use setters */);Sourcepub fn set_or_clear_policy_member<T>(self, v: Option<T>) -> Selfwhere
T: Into<ResourcePolicyMember>,
pub fn set_or_clear_policy_member<T>(self, v: Option<T>) -> Selfwhere
T: Into<ResourcePolicyMember>,
Sets or clears the value of policy_member.
§Example
use iam_v1::model::ResourcePolicyMember;
let x = Parameter::new().set_or_clear_policy_member(Some(ResourcePolicyMember::default()/* use setters */));
let x = Parameter::new().set_or_clear_policy_member(None::<ResourcePolicyMember>);