Struct google_runtimeconfig1_beta1::api::Variable [−][src]
Describes a single variable within a RuntimeConfig resource. The name denotes the hierarchical variable name. For example, ports/serving_port
is a valid variable name. The variable value is an opaque string and only leaf variables can have values (that is, variables that do not have any child variables).
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).
- configs variables create projects (request|response)
- configs variables get projects (response)
- configs variables update projects (request|response)
- configs variables watch projects (response)
Fields
name: Option<String>
The name of the variable resource, in the format: projects/[PROJECT_ID]/configs/[CONFIG_NAME]/variables/[VARIABLE_NAME] The [PROJECT_ID]
must be a valid project ID, [CONFIG_NAME]
must be a valid RuntimeConfig resource and [VARIABLE_NAME]
follows Unix file system file path naming. The [VARIABLE_NAME]
can contain ASCII letters, numbers, slashes and dashes. Slashes are used as path element separators and are not part of the [VARIABLE_NAME]
itself, so [VARIABLE_NAME]
must contain at least one non-slash character. Multiple slashes are coalesced into single slash character. Each path segment should match 0-9A-Za-z? regular expression. The length of a [VARIABLE_NAME]
must be less than 256 characters. Once you create a variable, you cannot change the variable name.
state: Option<String>
Output only. The current state of the variable. The variable state indicates the outcome of the variables().watch
call and is visible through the get
and list
calls.
text: Option<String>
The string value of the variable. The length of the value must be less than 4096 bytes. Empty values are also accepted. For example, text: "my text value"
. The string must be valid UTF-8.
update_time: Option<String>
Output only. The time of the last variable update. Timestamp will be UTC timestamp.
value: Option<String>
The binary value of the variable. The length of the value must be less than 4096 bytes. Empty values are also accepted. The value must be base64 encoded, and must comply with IETF RFC4648 (https://www.ietf.org/rfc/rfc4648.txt). Only one of value
or text
can be set.
Trait Implementations
impl Clone for Variable
[src]
impl Debug for Variable
[src]
impl Default for Variable
[src]
impl<'de> Deserialize<'de> for Variable
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl RequestValue for Variable
[src]
impl ResponseResult for Variable
[src]
impl Serialize for Variable
[src]
Auto Trait Implementations
impl RefUnwindSafe for Variable
impl Send for Variable
impl Sync for Variable
impl Unpin for Variable
impl UnwindSafe for Variable
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,