Class: Google::Apis::CloudbuildV1beta1::NotifierConfig
- Inherits:
-
Object
- Object
- Google::Apis::CloudbuildV1beta1::NotifierConfig
- 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
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::CloudbuildV1beta1::NotifierMetadata
NotifierMetadata contains the data which can be used to reference or describe this notifier.
-
#spec ⇒ Google::Apis::CloudbuildV1beta1::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.
1465 1466 1467 |
# File 'lib/google/apis/cloudbuild_v1beta1/classes.rb', line 1465 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
1447 1448 1449 |
# File 'lib/google/apis/cloudbuild_v1beta1/classes.rb', line 1447 def api_version @api_version end |
#kind ⇒ String
The type of notifier to use (e.g. SMTPNotifier).
Corresponds to the JSON property kind
1452 1453 1454 |
# File 'lib/google/apis/cloudbuild_v1beta1/classes.rb', line 1452 def kind @kind end |
#metadata ⇒ Google::Apis::CloudbuildV1beta1::NotifierMetadata
NotifierMetadata contains the data which can be used to reference or describe
this notifier.
Corresponds to the JSON property metadata
1458 1459 1460 |
# File 'lib/google/apis/cloudbuild_v1beta1/classes.rb', line 1458 def @metadata end |
#spec ⇒ Google::Apis::CloudbuildV1beta1::NotifierSpec
NotifierSpec is the configuration container for notifications.
Corresponds to the JSON property spec
1463 1464 1465 |
# File 'lib/google/apis/cloudbuild_v1beta1/classes.rb', line 1463 def spec @spec end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1470 1471 1472 1473 1474 1475 |
# File 'lib/google/apis/cloudbuild_v1beta1/classes.rb', line 1470 def update!(**args) @api_version = args[:api_version] if args.key?(:api_version) @kind = args[:kind] if args.key?(:kind) @metadata = args[:metadata] if args.key?(:metadata) @spec = args[:spec] if args.key?(:spec) end |