Struct google_runtimeconfig1_beta1::Variable[][src]

pub struct Variable {
    pub text: Option<String>,
    pub update_time: Option<String>,
    pub state: Option<String>,
    pub value: Option<String>,
    pub name: Option<String>,
}

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).

Fields

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.

[Output Only] The time of the last variable update.

[Ouput 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.

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. Only one of value or text can be set.

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 reource 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.

Trait Implementations

impl Default for Variable
[src]

Returns the "default value" for a type. Read more

impl Clone for Variable
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Variable
[src]

Formats the value using the given formatter. Read more

impl RequestValue for Variable
[src]

impl ResponseResult for Variable
[src]

Auto Trait Implementations

impl Send for Variable

impl Sync for Variable