class Google::Apis::RuntimeconfigV1beta1::Variable

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

Attributes

name[RW]

The name of the variable resource, in the format: projects//configs//variables/ 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 follow RFC 1035 segment specification. The length of a `[VARIABLE_NAME]` must be less than 256 bytes. Once you create a variable, you cannot change the variable name. Corresponds to the JSON property `name` @return [String]

state[RW]
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. Corresponds to the JSON property `state` @return [String]

text[RW]

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. Corresponds to the JSON property `text` @return [String]

update_time[RW]
Output Only

The time of the last variable update.

Corresponds to the JSON property `updateTime` @return [String]

value[RW]

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. Corresponds to the JSON property `value` NOTE: Values are automatically base64 encoded/decoded in the client library. @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/rcloadenv/google/apis/runtimeconfig_v1beta1/classes.rb, line 693
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/rcloadenv/google/apis/runtimeconfig_v1beta1/classes.rb, line 698
def update!(**args)
  @value = args[:value] if args.key?(:value)
  @state = args[:state] if args.key?(:state)
  @update_time = args[:update_time] if args.key?(:update_time)
  @name = args[:name] if args.key?(:name)
  @text = args[:text] if args.key?(:text)
end