Class: Google::Apis::CloudbuildV1::NotifierSecret

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
generated/google/apis/cloudbuild_v1/classes.rb,
generated/google/apis/cloudbuild_v1/representations.rb,
generated/google/apis/cloudbuild_v1/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

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ NotifierSecret

Returns a new instance of NotifierSecret.


1055
1056
1057
# File 'generated/google/apis/cloudbuild_v1/classes.rb', line 1055

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

Instance Attribute Details

#nameString

Name is the local name of the secret, such as the verbatim string "my-smtp- password". Corresponds to the JSON property name

Returns:

  • (String)

1045
1046
1047
# File 'generated/google/apis/cloudbuild_v1/classes.rb', line 1045

def name
  @name
end

#valueString

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

Returns:

  • (String)

1053
1054
1055
# File 'generated/google/apis/cloudbuild_v1/classes.rb', line 1053

def value
  @value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


1060
1061
1062
1063
# File 'generated/google/apis/cloudbuild_v1/classes.rb', line 1060

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