#[non_exhaustive]pub struct ParameterVersion {
pub name: String,
pub create_time: Option<Timestamp>,
pub update_time: Option<Timestamp>,
pub disabled: bool,
pub payload: Option<ParameterVersionPayload>,
pub kms_key_version: Option<String>,
/* private fields */
}Expand description
Message describing ParameterVersion 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 ParameterVersion in the
format projects/*/locations/*/parameters/*/versions/*.
create_time: Option<Timestamp>Output only. [Output only] Create time stamp
update_time: Option<Timestamp>Output only. [Output only] Update time stamp
disabled: boolOptional. Disabled boolean to determine if a ParameterVersion acts as a metadata only resource (payload is never returned if disabled is true). If true any calls will always default to BASIC view even if the user explicitly passes FULL view as part of the request. A render call on a disabled resource fails with an error. Default value is False.
payload: Option<ParameterVersionPayload>Required. Immutable. Payload content of a ParameterVersion resource. This is only returned when the request provides the View value of FULL (default for GET request).
kms_key_version: Option<String>Optional. Output only. [Output only] The resource name of the KMS key version used to encrypt the ParameterVersion payload. This field is populated only if the Parameter resource has customer managed encryption key (CMEK) configured.
Implementations§
Source§impl ParameterVersion
impl ParameterVersion
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 = ParameterVersion::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 = ParameterVersion::new().set_or_clear_create_time(Some(Timestamp::default()/* use setters */));
let x = ParameterVersion::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 = ParameterVersion::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 = ParameterVersion::new().set_or_clear_update_time(Some(Timestamp::default()/* use setters */));
let x = ParameterVersion::new().set_or_clear_update_time(None::<Timestamp>);Sourcepub fn set_disabled<T: Into<bool>>(self, v: T) -> Self
pub fn set_disabled<T: Into<bool>>(self, v: T) -> Self
Sourcepub fn set_payload<T>(self, v: T) -> Selfwhere
T: Into<ParameterVersionPayload>,
pub fn set_payload<T>(self, v: T) -> Selfwhere
T: Into<ParameterVersionPayload>,
Sourcepub fn set_or_clear_payload<T>(self, v: Option<T>) -> Selfwhere
T: Into<ParameterVersionPayload>,
pub fn set_or_clear_payload<T>(self, v: Option<T>) -> Selfwhere
T: Into<ParameterVersionPayload>,
Sets or clears the value of payload.
§Example
use google_cloud_parametermanager_v1::model::ParameterVersionPayload;
let x = ParameterVersion::new().set_or_clear_payload(Some(ParameterVersionPayload::default()/* use setters */));
let x = ParameterVersion::new().set_or_clear_payload(None::<ParameterVersionPayload>);Sourcepub fn set_kms_key_version<T>(self, v: T) -> Self
pub fn set_kms_key_version<T>(self, v: T) -> Self
Sets the value of kms_key_version.
§Example
let x = ParameterVersion::new().set_kms_key_version("example");Sourcepub fn set_or_clear_kms_key_version<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_kms_key_version<T>(self, v: Option<T>) -> Self
Sets or clears the value of kms_key_version.
§Example
let x = ParameterVersion::new().set_or_clear_kms_key_version(Some("example"));
let x = ParameterVersion::new().set_or_clear_kms_key_version(None::<String>);Trait Implementations§
Source§impl Clone for ParameterVersion
impl Clone for ParameterVersion
Source§fn clone(&self) -> ParameterVersion
fn clone(&self) -> ParameterVersion
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more