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

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/gmail_v1/classes.rb,
lib/google/apis/gmail_v1/representations.rb,
lib/google/apis/gmail_v1/representations.rb

Overview

Configuration for communication with an SMTP service.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ SmtpMsa

Returns a new instance of SmtpMsa.



1822
1823
1824
# File 'lib/google/apis/gmail_v1/classes.rb', line 1822

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)


1795
1796
1797
# File 'lib/google/apis/gmail_v1/classes.rb', line 1795

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)


1802
1803
1804
# File 'lib/google/apis/gmail_v1/classes.rb', line 1802

def password
  @password
end

#portFixnum

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

Returns:

  • (Fixnum)


1807
1808
1809
# File 'lib/google/apis/gmail_v1/classes.rb', line 1807

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)


1813
1814
1815
# File 'lib/google/apis/gmail_v1/classes.rb', line 1813

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)


1820
1821
1822
# File 'lib/google/apis/gmail_v1/classes.rb', line 1820

def username
  @username
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1827
1828
1829
1830
1831
1832
1833
# File 'lib/google/apis/gmail_v1/classes.rb', line 1827

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