Class: Google::Apis::CloudbuildV1alpha1::NotifierSecretRef

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

Overview

NotifierSecretRef contains the reference to a secret stored in the corresponding NotifierSpec.

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) ⇒ NotifierSecretRef

Returns a new instance of NotifierSecretRef.


907
908
909
# File 'generated/google/apis/cloudbuild_v1alpha1/classes.rb', line 907

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

Instance Attribute Details

#secret_refString

The value of secret_ref should be a name that is registered in a Secret in the secrets list of the Spec. Corresponds to the JSON property secretRef

Returns:

  • (String)

905
906
907
# File 'generated/google/apis/cloudbuild_v1alpha1/classes.rb', line 905

def secret_ref
  @secret_ref
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


912
913
914
# File 'generated/google/apis/cloudbuild_v1alpha1/classes.rb', line 912

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