Class: Google::Apis::CloudbuildV1beta1::NotifierMetadata

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

Overview

NotifierMetadata contains the data which can be used to reference or describe this notifier.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ NotifierMetadata

Returns a new instance of NotifierMetadata.



1724
1725
1726
# File 'lib/google/apis/cloudbuild_v1beta1/classes.rb', line 1724

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

Instance Attribute Details

#nameString

The human-readable and user-given name for the notifier. For example: "repo- merge-email-notifier". Corresponds to the JSON property name

Returns:

  • (String)


1715
1716
1717
# File 'lib/google/apis/cloudbuild_v1beta1/classes.rb', line 1715

def name
  @name
end

#notifierString

The string representing the name and version of notifier to deploy. Expected to be of the form of "/:". For example: "gcr.io/my-project/notifiers/smtp:1.2. 34". Corresponds to the JSON property notifier

Returns:

  • (String)


1722
1723
1724
# File 'lib/google/apis/cloudbuild_v1beta1/classes.rb', line 1722

def notifier
  @notifier
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1729
1730
1731
1732
# File 'lib/google/apis/cloudbuild_v1beta1/classes.rb', line 1729

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