Cloud Run V2 API - Class Google::Cloud::Run::V2::EnvVar (v0.26.0)

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 
 
Returns
  • (::String) — Required. Name of the environment variable. Must not exceed 32768 characters.

#name=

  def 
  
 name= 
 ( 
 value 
 ) 
  
 - 
>  
 :: 
 String 
 
Parameter
  • value(::String) — Required. Name of the environment variable. Must not exceed 32768 characters.
Returns
  • (::String) — Required. Name of the environment variable. Must not exceed 32768 characters.

#value

  def 
  
 value 
 () 
  
 - 
>  
 :: 
 String 
 
Returns
  • (::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 
 
Parameter
  • 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.

Returns
  • (::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 
 
Returns
  • ( ::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 
 
Parameter
  • 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.

Returns
  • ( ::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.

Create a Mobile Website
View Site in Mobile | Classic
Share by: