Class: Google::Apis::GmailV1::SmtpMsa

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ SmtpMsa

Returns a new instance of SmtpMsa



1274
1275
1276
# File 'generated/google/apis/gmail_v1/classes.rb', line 1274

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

Instance Attribute Details

#hostString

The hostname of the SMTP service. Required. Corresponds to the JSON property host

Returns:

  • (String)


1247
1248
1249
# File 'generated/google/apis/gmail_v1/classes.rb', line 1247

def host
  @host
end

#passwordString

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

Returns:

  • (String)


1254
1255
1256
# File 'generated/google/apis/gmail_v1/classes.rb', line 1254

def password
  @password
end

#portFixnum

The port of the SMTP service. Required. Corresponds to the JSON property port

Returns:

  • (Fixnum)


1259
1260
1261
# File 'generated/google/apis/gmail_v1/classes.rb', line 1259

def port
  @port
end

#security_modeString

The protocol that will be used to secure communication with the SMTP service. Required. Corresponds to the JSON property securityMode

Returns:

  • (String)


1265
1266
1267
# File 'generated/google/apis/gmail_v1/classes.rb', line 1265

def security_mode
  @security_mode
end

#usernameString

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

Returns:

  • (String)


1272
1273
1274
# File 'generated/google/apis/gmail_v1/classes.rb', line 1272

def username
  @username
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1279
1280
1281
1282
1283
1284
1285
# File 'generated/google/apis/gmail_v1/classes.rb', line 1279

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