Class: Google::Apis::CloudbuildV1beta1::NotifierConfig

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

NotifierConfig is the top-level configuration message.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ NotifierConfig

Returns a new instance of NotifierConfig.



1693
1694
1695
# File 'lib/google/apis/cloudbuild_v1beta1/classes.rb', line 1693

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

Instance Attribute Details

#api_versionString

The API version of this configuration format. Corresponds to the JSON property apiVersion

Returns:

  • (String)


1675
1676
1677
# File 'lib/google/apis/cloudbuild_v1beta1/classes.rb', line 1675

def api_version
  @api_version
end

#kindString

The type of notifier to use (e.g. SMTPNotifier). Corresponds to the JSON property kind

Returns:

  • (String)


1680
1681
1682
# File 'lib/google/apis/cloudbuild_v1beta1/classes.rb', line 1680

def kind
  @kind
end

#metadataGoogle::Apis::CloudbuildV1beta1::NotifierMetadata

NotifierMetadata contains the data which can be used to reference or describe this notifier. Corresponds to the JSON property metadata



1686
1687
1688
# File 'lib/google/apis/cloudbuild_v1beta1/classes.rb', line 1686

def 
  @metadata
end

#specGoogle::Apis::CloudbuildV1beta1::NotifierSpec

NotifierSpec is the configuration container for notifications. Corresponds to the JSON property spec



1691
1692
1693
# File 'lib/google/apis/cloudbuild_v1beta1/classes.rb', line 1691

def spec
  @spec
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1698
1699
1700
1701
1702
1703
# File 'lib/google/apis/cloudbuild_v1beta1/classes.rb', line 1698

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