Class: Google::Apis::CloudbuildV1alpha1::SmtpDelivery
- Inherits:
-
Object
- Object
- Google::Apis::CloudbuildV1alpha1::SmtpDelivery
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/cloudbuild_v1alpha1/classes.rb,
lib/google/apis/cloudbuild_v1alpha1/representations.rb,
lib/google/apis/cloudbuild_v1alpha1/representations.rb
Overview
SMTPDelivery is the delivery configuration for an SMTP (email) notification.
Instance Attribute Summary collapse
-
#from_address ⇒ String
This is the SMTP account/email that appears in the
From:
of the email. -
#password ⇒ Google::Apis::CloudbuildV1alpha1::NotifierSecretRef
NotifierSecretRef contains the reference to a secret stored in the corresponding NotifierSpec.
-
#port ⇒ String
The SMTP port of the server.
-
#recipient_addresses ⇒ Array<String>
This is the list of addresses to which we send the email (i.e. in the
To:
of the email). -
#sender_address ⇒ String
This is the SMTP account/email that is used to send the message.
-
#server ⇒ String
The address of the SMTP server.
Instance Method Summary collapse
-
#initialize(**args) ⇒ SmtpDelivery
constructor
A new instance of SmtpDelivery.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ SmtpDelivery
Returns a new instance of SmtpDelivery.
2312 2313 2314 |
# File 'lib/google/apis/cloudbuild_v1alpha1/classes.rb', line 2312 def initialize(**args) update!(**args) end |
Instance Attribute Details
#from_address ⇒ String
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
2283 2284 2285 |
# File 'lib/google/apis/cloudbuild_v1alpha1/classes.rb', line 2283 def from_address @from_address end |
#password ⇒ Google::Apis::CloudbuildV1alpha1::NotifierSecretRef
NotifierSecretRef contains the reference to a secret stored in the
corresponding NotifierSpec.
Corresponds to the JSON property password
2289 2290 2291 |
# File 'lib/google/apis/cloudbuild_v1alpha1/classes.rb', line 2289 def password @password end |
#port ⇒ String
The SMTP port of the server.
Corresponds to the JSON property port
2294 2295 2296 |
# File 'lib/google/apis/cloudbuild_v1alpha1/classes.rb', line 2294 def port @port end |
#recipient_addresses ⇒ Array<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
2300 2301 2302 |
# File 'lib/google/apis/cloudbuild_v1alpha1/classes.rb', line 2300 def recipient_addresses @recipient_addresses end |
#sender_address ⇒ String
This is the SMTP account/email that is used to send the message.
Corresponds to the JSON property senderAddress
2305 2306 2307 |
# File 'lib/google/apis/cloudbuild_v1alpha1/classes.rb', line 2305 def sender_address @sender_address end |
#server ⇒ String
The address of the SMTP server.
Corresponds to the JSON property server
2310 2311 2312 |
# File 'lib/google/apis/cloudbuild_v1alpha1/classes.rb', line 2310 def server @server end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2317 2318 2319 2320 2321 2322 2323 2324 |
# File 'lib/google/apis/cloudbuild_v1alpha1/classes.rb', line 2317 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 |