Class: Google::Apis::CloudbuildV1::SmtpDelivery

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

SMTPDelivery is the delivery configuration for an SMTP (email) notification.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ SmtpDelivery

Returns a new instance of SmtpDelivery.



3822
3823
3824
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 3822

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

Instance Attribute Details

#from_addressString

This is the SMTP account/email that appears in the From: of the email. If empty, it is assumed to be sender. Corresponds to the JSON property fromAddress

Returns:

  • (String)


3793
3794
3795
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 3793

def from_address
  @from_address
end

#passwordGoogle::Apis::CloudbuildV1::NotifierSecretRef

NotifierSecretRef contains the reference to a secret stored in the corresponding NotifierSpec. Corresponds to the JSON property password



3799
3800
3801
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 3799

def password
  @password
end

#portString

The SMTP port of the server. Corresponds to the JSON property port

Returns:

  • (String)


3804
3805
3806
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 3804

def port
  @port
end

#recipient_addressesArray<String>

This is the list of addresses to which we send the email (i.e. in the To: of the email). Corresponds to the JSON property recipientAddresses

Returns:

  • (Array<String>)


3810
3811
3812
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 3810

def recipient_addresses
  @recipient_addresses
end

#sender_addressString

This is the SMTP account/email that is used to send the message. Corresponds to the JSON property senderAddress

Returns:

  • (String)


3815
3816
3817
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 3815

def sender_address
  @sender_address
end

#serverString

The address of the SMTP server. Corresponds to the JSON property server

Returns:

  • (String)


3820
3821
3822
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 3820

def server
  @server
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3827
3828
3829
3830
3831
3832
3833
3834
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 3827

def update!(**args)
  @from_address = args[:from_address] if args.key?(:from_address)
  @password = args[:password] if args.key?(:password)
  @port = args[:port] if args.key?(:port)
  @recipient_addresses = args[:recipient_addresses] if args.key?(:recipient_addresses)
  @sender_address = args[:sender_address] if args.key?(:sender_address)
  @server = args[:server] if args.key?(:server)
end