Class: Google::Apis::RunV1alpha1::SecretEnvSource

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/run_v1alpha1/classes.rb,
generated/google/apis/run_v1alpha1/representations.rb,
generated/google/apis/run_v1alpha1/representations.rb

Overview

SecretEnvSource selects a Secret to populate the environment variables with. The contents of the target Secret's Data field will represent the key-value pairs as environment variables.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ SecretEnvSource

Returns a new instance of SecretEnvSource.



3805
3806
3807
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 3805

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#local_object_referenceGoogle::Apis::RunV1alpha1::LocalObjectReference

LocalObjectReference contains enough information to let you locate the referenced object inside the same namespace. Corresponds to the JSON property localObjectReference



3790
3791
3792
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 3790

def local_object_reference
  @local_object_reference
end

#nameString

Cloud Run fully managed: not supported Cloud Run for Anthos: supported The Secret to select from. Corresponds to the JSON property name

Returns:

  • (String)


3796
3797
3798
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 3796

def name
  @name
end

#optionalBoolean Also known as: optional?

Cloud Run fully managed: not supported Cloud Run for Anthos: supported Specify whether the Secret must be defined +optional Corresponds to the JSON property optional

Returns:

  • (Boolean)


3802
3803
3804
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 3802

def optional
  @optional
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3810
3811
3812
3813
3814
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 3810

def update!(**args)
  @local_object_reference = args[:local_object_reference] if args.key?(:local_object_reference)
  @name = args[:name] if args.key?(:name)
  @optional = args[:optional] if args.key?(:optional)
end