Class: Google::Apis::RunV1::SecretEnvSource

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

Overview

Cloud Run fully managed: not supported Cloud Run for Anthos: supported 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

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ SecretEnvSource

Returns a new instance of SecretEnvSource



2795
2796
2797
# File 'generated/google/apis/run_v1/classes.rb', line 2795

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

Instance Attribute Details

#local_object_referenceGoogle::Apis::RunV1::LocalObjectReference

Cloud Run fully managed: not supported Cloud Run for Anthos: supported LocalObjectReference contains enough information to let you locate the referenced object inside the same namespace. Corresponds to the JSON property localObjectReference



2777
2778
2779
# File 'generated/google/apis/run_v1/classes.rb', line 2777

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)


2784
2785
2786
# File 'generated/google/apis/run_v1/classes.rb', line 2784

def name
  @name
end

#optionalBoolean Also known as: optional?

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

Returns:

  • (Boolean)


2792
2793
2794
# File 'generated/google/apis/run_v1/classes.rb', line 2792

def optional
  @optional
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2800
2801
2802
2803
2804
# File 'generated/google/apis/run_v1/classes.rb', line 2800

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