Module: Ovh::Api::Models::EmailExchangeSmartHostAuthMechanismEnum

Defined in:
lib/ovh-api/models/email_exchange_smart_host_auth_mechanism_enum.rb

Constant Summary collapse

BASIC_AUTH =
'basicAuth'
BASIC_AUTH_REQUIRE_TLS =
'basicAuthRequireTLS'
NONE =
'none'

Class Method Summary collapse

Class Method Details

.allObject



15
16
17
18
19
20
21
# File 'lib/ovh-api/models/email_exchange_smart_host_auth_mechanism_enum.rb', line 15

def self.all
  @all ||= [
    BASIC_AUTH,
    BASIC_AUTH_REQUIRE_TLS,
    NONE,
  ].freeze
end

.valid?(value) ⇒ Boolean

Returns:

  • (Boolean)


23
24
25
# File 'lib/ovh-api/models/email_exchange_smart_host_auth_mechanism_enum.rb', line 23

def self.valid?(value)
  all.include?(value)
end