Class: Google::Apis::GmailV1::SmtpMsa
- Inherits:
-
Object
- Object
- Google::Apis::GmailV1::SmtpMsa
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/gmail_v1/classes.rb,
generated/google/apis/gmail_v1/representations.rb,
generated/google/apis/gmail_v1/representations.rb
Overview
Configuration for communication with an SMTP service.
Instance Attribute Summary collapse
-
#host ⇒ String
The hostname of the SMTP service.
-
#password ⇒ String
The password that will be used for authentication with the SMTP service.
-
#port ⇒ Fixnum
The port of the SMTP service.
-
#security_mode ⇒ String
The protocol that will be used to secure communication with the SMTP service.
-
#username ⇒ String
The username that will be used for authentication with the SMTP service.
Instance Method Summary collapse
-
#initialize(**args) ⇒ SmtpMsa
constructor
A new instance of SmtpMsa.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ SmtpMsa
Returns a new instance of SmtpMsa
1327 1328 1329 |
# File 'generated/google/apis/gmail_v1/classes.rb', line 1327 def initialize(**args) update!(**args) end |
Instance Attribute Details
#host ⇒ String
The hostname of the SMTP service. Required.
Corresponds to the JSON property host
1300 1301 1302 |
# File 'generated/google/apis/gmail_v1/classes.rb', line 1300 def host @host end |
#password ⇒ String
The password that will be used for authentication with the SMTP service. This
is a write-only field that can be specified in requests to create or update
SendAs settings; it is never populated in responses.
Corresponds to the JSON property password
1307 1308 1309 |
# File 'generated/google/apis/gmail_v1/classes.rb', line 1307 def password @password end |
#port ⇒ Fixnum
The port of the SMTP service. Required.
Corresponds to the JSON property port
1312 1313 1314 |
# File 'generated/google/apis/gmail_v1/classes.rb', line 1312 def port @port end |
#security_mode ⇒ String
The protocol that will be used to secure communication with the SMTP service.
Required.
Corresponds to the JSON property securityMode
1318 1319 1320 |
# File 'generated/google/apis/gmail_v1/classes.rb', line 1318 def security_mode @security_mode end |
#username ⇒ String
The username that will be used for authentication with the SMTP service. This
is a write-only field that can be specified in requests to create or update
SendAs settings; it is never populated in responses.
Corresponds to the JSON property username
1325 1326 1327 |
# File 'generated/google/apis/gmail_v1/classes.rb', line 1325 def username @username end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1332 1333 1334 1335 1336 1337 1338 |
# File 'generated/google/apis/gmail_v1/classes.rb', line 1332 def update!(**args) @host = args[:host] if args.key?(:host) @password = args[:password] if args.key?(:password) @port = args[:port] if args.key?(:port) @security_mode = args[:security_mode] if args.key?(:security_mode) @username = args[:username] if args.key?(:username) end |