class Google::Apis::MlV1::GoogleCloudMlV1EnvVar

Represents an environment variable to be made available in a container. This message is a subset of the [Kubernetes EnvVar v1 core specification](https:// kubernetes.io/docs/reference/generated/kubernetes-api/v1.18/#envvar-v1-core).

Attributes

name[RW]

Name of the environment variable. Must be a [valid C identifier](https:// github.com/kubernetes/kubernetes/blob/v1.18.8/staging/src/k8s.io/apimachinery/ pkg/util/validation/validation.go#L258) and must not begin with the prefix ` AIP_`. Corresponds to the JSON property `name` @return [String]

value[RW]

Value of the environment variable. Defaults to an empty string. In this field, you can reference [environment variables set by AI Platform Prediction](/ai- platform/prediction/docs/custom-container-requirements#aip-variables) and environment variables set earlier in the same env field as where this message occurs. You cannot reference environment variables set in the Docker image. In order for environment variables to be expanded, reference them by using the following syntax: $(VARIABLE_NAME) Note that this differs from Bash variable expansion, which does not use parentheses. If a variable cannot be resolved, the reference in the input string is used unchanged. To avoid variable expansion, you can escape this syntax with `$$`; for example: $$(VARIABLE_NAME) Corresponds to the JSON property `value` @return [String]

Public Class Methods

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

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/ml_v1/classes.rb, line 1045
def update!(**args)
  @name = args[:name] if args.key?(:name)
  @value = args[:value] if args.key?(:value)
end