GetVariableResult class
Result data returned by getVariable.
Constructors
- GetVariableResult({required String name, required String state, required String text, required String updateTime, required String value})
-
Creates a new GetVariableResult.
nameThe name of the variable resource, in the format: projects/PROJECT_ID/configs/CONFIG_NAME/variables/VARIABLE_NAMEThe[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.stateThe current state of the variable. The variable state indicates the outcome of thevariables().watchcall and is visible through thegetandlistcalls.textThe 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.updateTimeThe time of the last variable update. Timestamp will be UTC timestamp.valueThe 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 ofvalueortextcan be set.const -
GetVariableResult.fromMap(Map<
String, dynamic> map) -
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- name → String
-
The name of the variable resource, in the format: projects/
PROJECT_ID/configs/CONFIG_NAME/variables/VARIABLE_NAMEThe[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.final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- state → String
-
The current state of the variable. The variable state indicates the outcome of the
variables().watchcall and is visible through thegetandlistcalls.final - text → 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.final - updateTime → String
-
The time of the last variable update. Timestamp will be UTC timestamp.
final
- value → 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
valueortextcan be set.final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited