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.



2473
2474
2475
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 2473

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)


2455
2456
2457
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 2455

def api_version
  @api_version
end

#kindString

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

Returns:

  • (String)


2460
2461
2462
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 2460

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



2466
2467
2468
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 2466

def 
  @metadata
end

#specGoogle::Apis::CloudbuildV1::NotifierSpec

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



2471
2472
2473
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 2471

def spec
  @spec
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2478
2479
2480
2481
2482
2483
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 2478

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