Class: Google::Apis::CloudbuildV1alpha2::NotifierSecret
- Inherits:
-
Object
- Object
- Google::Apis::CloudbuildV1alpha2::NotifierSecret
- 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
NotifierSecret is the container that maps a secret name (reference) to its Google Cloud Secret Manager resource path.
Instance Attribute Summary collapse
-
#name ⇒ String
Name is the local name of the secret, such as the verbatim string "my-smtp- password".
-
#value ⇒ String
Value is interpreted to be a resource path for fetching the actual (versioned) secret data for this secret.
Instance Method Summary collapse
-
#initialize(**args) ⇒ NotifierSecret
constructor
A new instance of NotifierSecret.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ NotifierSecret
Returns a new instance of NotifierSecret.
1522 1523 1524 |
# File 'lib/google/apis/cloudbuild_v1alpha2/classes.rb', line 1522 def initialize(**args) update!(**args) end |
Instance Attribute Details
#name ⇒ String
Name is the local name of the secret, such as the verbatim string "my-smtp-
password".
Corresponds to the JSON property name
1512 1513 1514 |
# File 'lib/google/apis/cloudbuild_v1alpha2/classes.rb', line 1512 def name @name end |
#value ⇒ String
Value is interpreted to be a resource path for fetching the actual (versioned)
secret data for this secret. For example, this would be a Google Cloud Secret
Manager secret version resource path like: "projects/my-project/secrets/my-
secret/versions/latest".
Corresponds to the JSON property value
1520 1521 1522 |
# File 'lib/google/apis/cloudbuild_v1alpha2/classes.rb', line 1520 def value @value end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1527 1528 1529 1530 |
# File 'lib/google/apis/cloudbuild_v1alpha2/classes.rb', line 1527 def update!(**args) @name = args[:name] if args.key?(:name) @value = args[:value] if args.key?(:value) end |