VariableArgs

data class VariableArgs(val configId: Output<String>? = null, val name: Output<String>? = null, val project: Output<String>? = null, val requestId: Output<String>? = null, val text: Output<String>? = null, val value: Output<String>? = null) : ConvertibleToJava<VariableArgs>

Creates a variable within the given configuration. You cannot create a variable with a name that is a prefix of an existing variable name, or a name that has an existing variable name as a prefix. To learn more about creating a variable, read the /deployment-manager/runtime-configurator/set-and-get-variables documentation.

Constructors

Link copied to clipboard
fun VariableArgs(configId: Output<String>? = null, name: Output<String>? = null, project: Output<String>? = null, requestId: Output<String>? = null, text: Output<String>? = null, value: Output<String>? = null)

Functions

Link copied to clipboard
open override fun toJava(): VariableArgs

Properties

Link copied to clipboard
val configId: Output<String>? = null
Link copied to clipboard
val name: Output<String>? = null

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 ?:[_.A-Za-z0-9-]{0,62}[_.A-Za-z0-9]? 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.

Link copied to clipboard
val project: Output<String>? = null
Link copied to clipboard
val requestId: Output<String>? = null

An optional but recommended unique request_id. If the server receives two create() requests with the same request_id, then the second request will be ignored and the first resource created and stored in the backend is returned. Empty request_id fields are ignored. It is responsibility of the client to ensure uniqueness of the request_id strings. request_id strings are limited to 64 characters.

Link copied to clipboard
val text: Output<String>? = null

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.

Link copied to clipboard
val value: Output<String>? = null

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.