class Google::Apis::GmailV1::SmtpMsa

Configuration for communication with an SMTP service.

Attributes

host[RW]

The hostname of the SMTP service. Required. Corresponds to the JSON property `host` @return [String]

password[RW]

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` @return [String]

port[RW]

The port of the SMTP service. Required. Corresponds to the JSON property `port` @return [Fixnum]

security_mode[RW]

The protocol that will be used to secure communication with the SMTP service. Required. Corresponds to the JSON property `securityMode` @return [String]

username[RW]

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` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/gmail_v1/classes.rb, line 1422
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/gmail_v1/classes.rb, line 1427
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