Reference documentation and code samples for the Cloud Run V2 API class Google::Cloud::Run::V2::EnvVar.
EnvVar represents an environment variable present in a Container.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#name
def
name
()
-
>
::
String
- (::String) — Required. Name of the environment variable. Must not exceed 32768 characters.
#name=
def
name=
(
value
)
-
>
::
String
- value(::String) — Required. Name of the environment variable. Must not exceed 32768 characters.
- (::String) — Required. Name of the environment variable. Must not exceed 32768 characters.
#value
def
value
()
-
>
::
String
- (::String) — Literal value of the environment variable.
Defaults to "", and the maximum length is 32768 bytes.
Variable references are not supported in Cloud Run.
Note: The following fields are mutually exclusive:
value,value_source. If a field in that set is populated, all other fields in the set will automatically be cleared.
#value=
def
value=
(
value
)
-
>
::
String
- value(::String) — Literal value of the environment variable.
Defaults to "", and the maximum length is 32768 bytes.
Variable references are not supported in Cloud Run.
Note: The following fields are mutually exclusive:
value,value_source. If a field in that set is populated, all other fields in the set will automatically be cleared.
- (::String) — Literal value of the environment variable.
Defaults to "", and the maximum length is 32768 bytes.
Variable references are not supported in Cloud Run.
Note: The following fields are mutually exclusive:
value,value_source. If a field in that set is populated, all other fields in the set will automatically be cleared.
#value_source
def
value_source
()
-
>
::
Google
::
Cloud
::
Run
::
V2
::
EnvVarSource
- ( ::Google::Cloud::Run::V2::EnvVarSource
) — Source for the environment variable's value.
Note: The following fields are mutually exclusive:
value_source,value. If a field in that set is populated, all other fields in the set will automatically be cleared.
#value_source=
def
value_source=
(
value
)
-
>
::
Google
::
Cloud
::
Run
::
V2
::
EnvVarSource
- value( ::Google::Cloud::Run::V2::EnvVarSource
) — Source for the environment variable's value.
Note: The following fields are mutually exclusive:
value_source,value. If a field in that set is populated, all other fields in the set will automatically be cleared.
- ( ::Google::Cloud::Run::V2::EnvVarSource
) — Source for the environment variable's value.
Note: The following fields are mutually exclusive:
value_source,value. If a field in that set is populated, all other fields in the set will automatically be cleared.

