Class: Google::Apis::CloudbuildV1alpha2::NotifierConfig
- Inherits:
-
Object
- Object
- Google::Apis::CloudbuildV1alpha2::NotifierConfig
- 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
NotifierConfig is the top-level configuration message.
Instance Attribute Summary collapse
-
#api_version ⇒ String
The API version of this configuration format.
-
#kind ⇒ String
The type of notifier to use (e.g. SMTPNotifier).
-
#metadata ⇒ Google::Apis::CloudbuildV1alpha2::NotifierMetadata
NotifierMetadata contains the data which can be used to reference or describe this notifier.
-
#spec ⇒ Google::Apis::CloudbuildV1alpha2::NotifierSpec
NotifierSpec is the configuration container for notifications.
Instance Method Summary collapse
-
#initialize(**args) ⇒ NotifierConfig
constructor
A new instance of NotifierConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ NotifierConfig
Returns a new instance of NotifierConfig.
1690 1691 1692 |
# File 'lib/google/apis/cloudbuild_v1alpha2/classes.rb', line 1690 def initialize(**args) update!(**args) end |
Instance Attribute Details
#api_version ⇒ String
The API version of this configuration format.
Corresponds to the JSON property apiVersion
1672 1673 1674 |
# File 'lib/google/apis/cloudbuild_v1alpha2/classes.rb', line 1672 def api_version @api_version end |
#kind ⇒ String
The type of notifier to use (e.g. SMTPNotifier).
Corresponds to the JSON property kind
1677 1678 1679 |
# File 'lib/google/apis/cloudbuild_v1alpha2/classes.rb', line 1677 def kind @kind end |
#metadata ⇒ Google::Apis::CloudbuildV1alpha2::NotifierMetadata
NotifierMetadata contains the data which can be used to reference or describe
this notifier.
Corresponds to the JSON property metadata
1683 1684 1685 |
# File 'lib/google/apis/cloudbuild_v1alpha2/classes.rb', line 1683 def end |
#spec ⇒ Google::Apis::CloudbuildV1alpha2::NotifierSpec
NotifierSpec is the configuration container for notifications.
Corresponds to the JSON property spec
1688 1689 1690 |
# File 'lib/google/apis/cloudbuild_v1alpha2/classes.rb', line 1688 def spec @spec end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1695 1696 1697 1698 1699 1700 |
# File 'lib/google/apis/cloudbuild_v1alpha2/classes.rb', line 1695 def update!(**args) @api_version = args[:api_version] if args.key?(:api_version) @kind = args[:kind] if args.key?(:kind) = args[:metadata] if args.key?(:metadata) @spec = args[:spec] if args.key?(:spec) end |