Class: Google::Apis::CloudbuildV1::NotifierMetadata
- Inherits:
-
Object
- Object
- Google::Apis::CloudbuildV1::NotifierMetadata
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/cloudbuild_v1/classes.rb,
lib/google/apis/cloudbuild_v1/representations.rb,
lib/google/apis/cloudbuild_v1/representations.rb
Overview
NotifierMetadata contains the data which can be used to reference or describe this notifier.
Instance Attribute Summary collapse
-
#name ⇒ String
The human-readable and user-given name for the notifier.
-
#notifier ⇒ String
The string representing the name and version of notifier to deploy.
Instance Method Summary collapse
-
#initialize(**args) ⇒ NotifierMetadata
constructor
A new instance of NotifierMetadata.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ NotifierMetadata
Returns a new instance of NotifierMetadata.
2440 2441 2442 |
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 2440 def initialize(**args) update!(**args) end |
Instance Attribute Details
#name ⇒ String
The human-readable and user-given name for the notifier. For example: "repo-
merge-email-notifier".
Corresponds to the JSON property name
2431 2432 2433 |
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 2431 def name @name end |
#notifier ⇒ String
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
2438 2439 2440 |
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 2438 def notifier @notifier end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2445 2446 2447 2448 |
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 2445 def update!(**args) @name = args[:name] if args.key?(:name) @notifier = args[:notifier] if args.key?(:notifier) end |