Class: Azure::BotService::Mgmt::V2018_07_12_preview::Models::EmailChannelProperties

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2018-07-12-preview/generated/azure_mgmt_bot_service/models/email_channel_properties.rb

Overview

The parameters to provide for the Email channel.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#email_addressString

Returns The email address.

Returns:

  • (String)

    The email address



16
17
18
# File 'lib/2018-07-12-preview/generated/azure_mgmt_bot_service/models/email_channel_properties.rb', line 16

def email_address
  @email_address
end

#is_enabledBoolean

Returns Whether this channel is enabled for the bot.

Returns:

  • (Boolean)

    Whether this channel is enabled for the bot



23
24
25
# File 'lib/2018-07-12-preview/generated/azure_mgmt_bot_service/models/email_channel_properties.rb', line 23

def is_enabled
  @is_enabled
end

#passwordString

returned through POST to the action Channel List API, otherwise empty.

Returns:

  • (String)

    The password for the email address. Value only



20
21
22
# File 'lib/2018-07-12-preview/generated/azure_mgmt_bot_service/models/email_channel_properties.rb', line 20

def password
  @password
end

Class Method Details

.mapperObject

Mapper for EmailChannelProperties class as Ruby Hash. This will be used for serialization/deserialization.



30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
# File 'lib/2018-07-12-preview/generated/azure_mgmt_bot_service/models/email_channel_properties.rb', line 30

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'EmailChannelProperties',
    type: {
      name: 'Composite',
      class_name: 'EmailChannelProperties',
      model_properties: {
        email_address: {
          client_side_validation: true,
          required: true,
          serialized_name: 'emailAddress',
          type: {
            name: 'String'
          }
        },
        password: {
          client_side_validation: true,
          required: true,
          serialized_name: 'password',
          type: {
            name: 'String'
          }
        },
        is_enabled: {
          client_side_validation: true,
          required: true,
          serialized_name: 'isEnabled',
          type: {
            name: 'Boolean'
          }
        }
      }
    }
  }
end