Class: Google::Apis::CloudbuildV1alpha1::NotifierConfig

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
generated/google/apis/cloudbuild_v1alpha1/classes.rb,
generated/google/apis/cloudbuild_v1alpha1/representations.rb,
generated/google/apis/cloudbuild_v1alpha1/representations.rb

Overview

NotifierConfig is the top-level configuration message.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ NotifierConfig

Returns a new instance of NotifierConfig.


824
825
826
# File 'generated/google/apis/cloudbuild_v1alpha1/classes.rb', line 824

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)

806
807
808
# File 'generated/google/apis/cloudbuild_v1alpha1/classes.rb', line 806

def api_version
  @api_version
end

#kindString

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

Returns:

  • (String)

811
812
813
# File 'generated/google/apis/cloudbuild_v1alpha1/classes.rb', line 811

def kind
  @kind
end

#metadataGoogle::Apis::CloudbuildV1alpha1::NotifierMetadata

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


817
818
819
# File 'generated/google/apis/cloudbuild_v1alpha1/classes.rb', line 817

def 
  @metadata
end

#specGoogle::Apis::CloudbuildV1alpha1::NotifierSpec

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


822
823
824
# File 'generated/google/apis/cloudbuild_v1alpha1/classes.rb', line 822

def spec
  @spec
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


829
830
831
832
833
834
# File 'generated/google/apis/cloudbuild_v1alpha1/classes.rb', line 829

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