Class: Google::Apis::CloudbuildV1::NotifierConfig

Inherits:
Object
  • Object
show all
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

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.



1148
1149
1150
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 1148

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)


1130
1131
1132
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 1130

def api_version
  @api_version
end

#kindString

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

Returns:

  • (String)


1135
1136
1137
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 1135

def kind
  @kind
end

#metadataGoogle::Apis::CloudbuildV1::NotifierMetadata

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



1141
1142
1143
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 1141

def 
  @metadata
end

#specGoogle::Apis::CloudbuildV1::NotifierSpec

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



1146
1147
1148
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 1146

def spec
  @spec
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1153
1154
1155
1156
1157
1158
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 1153

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