Class: Google::Apis::CloudbuildV1alpha2::Secrets

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

Overview

Secrets and secret environment variables.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Secrets

Returns a new instance of Secrets.



2062
2063
2064
# File 'lib/google/apis/cloudbuild_v1alpha2/classes.rb', line 2062

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

Instance Attribute Details

#inlineArray<Google::Apis::CloudbuildV1alpha2::InlineSecret>

Secrets encrypted with KMS key and the associated secret environment variable. Corresponds to the JSON property inline



2055
2056
2057
# File 'lib/google/apis/cloudbuild_v1alpha2/classes.rb', line 2055

def inline
  @inline
end

#secret_managerArray<Google::Apis::CloudbuildV1alpha2::SecretManagerSecret>

Secrets in Secret Manager and associated secret environment variable. Corresponds to the JSON property secretManager



2060
2061
2062
# File 'lib/google/apis/cloudbuild_v1alpha2/classes.rb', line 2060

def secret_manager
  @secret_manager
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2067
2068
2069
2070
# File 'lib/google/apis/cloudbuild_v1alpha2/classes.rb', line 2067

def update!(**args)
  @inline = args[:inline] if args.key?(:inline)
  @secret_manager = args[:secret_manager] if args.key?(:secret_manager)
end