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

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

Overview

Not supported by Cloud Run 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.



1597
1598
1599
# File 'lib/google/apis/run_v1alpha1/classes.rb', line 1597

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

Instance Attribute Details

#local_object_referenceGoogle::Apis::RunV1alpha1::LocalObjectReference

Not supported by Cloud Run LocalObjectReference contains enough information to let you locate the referenced object inside the same namespace. Corresponds to the JSON property localObjectReference



1584
1585
1586
# File 'lib/google/apis/run_v1alpha1/classes.rb', line 1584

def local_object_reference
  @local_object_reference
end

#nameString

The Secret to select from. Corresponds to the JSON property name

Returns:

  • (String)


1589
1590
1591
# File 'lib/google/apis/run_v1alpha1/classes.rb', line 1589

def name
  @name
end

#optionalBoolean Also known as: optional?

(Optional) Specify whether the Secret must be defined Corresponds to the JSON property optional

Returns:

  • (Boolean)


1594
1595
1596
# File 'lib/google/apis/run_v1alpha1/classes.rb', line 1594

def optional
  @optional
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1602
1603
1604
1605
1606
# File 'lib/google/apis/run_v1alpha1/classes.rb', line 1602

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