Class: Google::Apis::CloudbuildV1alpha2::SmtpDelivery

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

Overview

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

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) ⇒ SmtpDelivery

Returns a new instance of SmtpDelivery.


1151
1152
1153
# File 'generated/google/apis/cloudbuild_v1alpha2/classes.rb', line 1151

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)

1122
1123
1124
# File 'generated/google/apis/cloudbuild_v1alpha2/classes.rb', line 1122

def from_address
  @from_address
end

#passwordGoogle::Apis::CloudbuildV1alpha2::NotifierSecretRef

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


1128
1129
1130
# File 'generated/google/apis/cloudbuild_v1alpha2/classes.rb', line 1128

def password
  @password
end

#portString

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

Returns:

  • (String)

1133
1134
1135
# File 'generated/google/apis/cloudbuild_v1alpha2/classes.rb', line 1133

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>)

1139
1140
1141
# File 'generated/google/apis/cloudbuild_v1alpha2/classes.rb', line 1139

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)

1144
1145
1146
# File 'generated/google/apis/cloudbuild_v1alpha2/classes.rb', line 1144

def sender_address
  @sender_address
end

#serverString

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

Returns:

  • (String)

1149
1150
1151
# File 'generated/google/apis/cloudbuild_v1alpha2/classes.rb', line 1149

def server
  @server
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


1156
1157
1158
1159
1160
1161
1162
1163
# File 'generated/google/apis/cloudbuild_v1alpha2/classes.rb', line 1156

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