RuntimeConfig 리소스 내의 단일 변수를 설명합니다. 이름은 계층적 변수 이름을 나타냅니다. 예를 들어 ports/serving_port은 유효한 변수 이름입니다. 변수 값은 불투명 문자열이며 리프 변수 (하위 변수가 없는 변수)만 값을 가질 수 있습니다.
JSON 표현
{"name": string,"updateTime": string,"state": enum(VariableState),// Union field contents can be only one of the following:"value": string,"text": string// End of list of possible types for union field contents.}
[PROJECT_ID]는 유효한 프로젝트 ID여야 하며, [CONFIG_NAME]는 유효한 RuntimeConfig 리소스여야 하며, [VARIABLE_NAME]는 Unix 파일 시스템 파일 경로 이름 지정을 따라야 합니다.
[VARIABLE_NAME]에는 ASCII 문자, 숫자, 슬래시, 대시가 포함될 수 있습니다. 슬래시는 경로 요소 구분자로 사용되며 [VARIABLE_NAME] 자체의 일부가 아니므로 [VARIABLE_NAME]에는 슬래시가 아닌 문자가 하나 이상 포함되어야 합니다. 여러 개의 슬래시가 단일 슬래시 문자로 병합됩니다. 각 경로 세그먼트는 정규 표현식 0-9A-Za-z와 일치해야 합니다. [VARIABLE_NAME]의 길이는 256자(영문 기준) 미만이어야 합니다.
변수의 바이너리 값입니다. 값의 길이는 4,096바이트 미만이어야 합니다. 빈 값도 허용됩니다. 값은 base64로 인코딩되어야 하며 IETF RFC4648 (https://www.ietf.org/rfc/rfc4648.txt)을 준수해야 합니다. value 또는 text 중 하나만 설정할 수 있습니다.
base64 인코딩 문자열입니다.
text
string
변수의 문자열 값입니다. 값의 길이는 4,096바이트 미만이어야 합니다. 빈 값도 허용됩니다. 예를 들면 text: "my text value"입니다. 문자열은 유효한 UTF-8이어야 합니다.
VariableState
VariableState는 변수의 마지막으로 알려진 상태를 설명하며 variables().watch 호출 중에 변수의 상태를 구별하는 데 사용됩니다.
[[["이해하기 쉬움","easyToUnderstand","thumb-up"],["문제가 해결됨","solvedMyProblem","thumb-up"],["기타","otherUp","thumb-up"]],[["이해하기 어려움","hardToUnderstand","thumb-down"],["잘못된 정보 또는 샘플 코드","incorrectInformationOrSampleCode","thumb-down"],["필요한 정보/샘플이 없음","missingTheInformationSamplesINeed","thumb-down"],["번역 문제","translationIssue","thumb-down"],["기타","otherDown","thumb-down"]],["최종 업데이트: 2025-03-04(UTC)"],[[["A Variable describes a single variable within a RuntimeConfig resource, with a hierarchical name (e.g., `ports/serving_port`), and only leaf variables can have values."],["The JSON representation of a Variable includes its name, update time, state, and either a `value` (binary) or `text` (string) content, but not both."],["`VariableState` indicates the last known state of the variable, and the `variables().watch` call will update its status to either `UPDATED` or `DELETED`, it also has an `VARIABLE_STATE_UNSPECIFIED` state."],["Key fields for a Variable include `name` (the resource name with project, config, and variable identifiers), `updateTime` (last update timestamp), and `state` (current state), along with either a binary `value` or string `text`."],["Several methods can be performed on variables, including create, delete, get, list, testIamPermissions, update, and watch, allowing for managing and monitoring variable changes."]]],[]]