Class: Google::Apis::CloudbuildV1alpha2::NotifierConfig

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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ NotifierConfig

Returns a new instance of NotifierConfig.



1241
1242
1243
# File 'lib/google/apis/cloudbuild_v1alpha2/classes.rb', line 1241

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)


1223
1224
1225
# File 'lib/google/apis/cloudbuild_v1alpha2/classes.rb', line 1223

def api_version
  @api_version
end

#kindString

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

Returns:

  • (String)


1228
1229
1230
# File 'lib/google/apis/cloudbuild_v1alpha2/classes.rb', line 1228

def kind
  @kind
end

#metadataGoogle::Apis::CloudbuildV1alpha2::NotifierMetadata

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



1234
1235
1236
# File 'lib/google/apis/cloudbuild_v1alpha2/classes.rb', line 1234

def 
  @metadata
end

#specGoogle::Apis::CloudbuildV1alpha2::NotifierSpec

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



1239
1240
1241
# File 'lib/google/apis/cloudbuild_v1alpha2/classes.rb', line 1239

def spec
  @spec
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1246
1247
1248
1249
1250
1251
# File 'lib/google/apis/cloudbuild_v1alpha2/classes.rb', line 1246

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