Class: Azure::BotService::Mgmt::V2018_07_12_preview::Models::FacebookChannelProperties

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

Overview

The parameters to provide for the Facebook channel.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#app_idString

Returns Facebook application id.

Returns:

  • (String)

    Facebook application id



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

def app_id
  @app_id
end

#app_secretString

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

Returns:

  • (String)

    Facebook application secret. Value only returned



27
28
29
# File 'lib/2018-07-12-preview/generated/azure_mgmt_bot_service/models/facebook_channel_properties.rb', line 27

def app_secret
  @app_secret
end

#callback_urlString

Returns Callback Url.

Returns:

  • (String)

    Callback Url



30
31
32
# File 'lib/2018-07-12-preview/generated/azure_mgmt_bot_service/models/facebook_channel_properties.rb', line 30

def callback_url
  @callback_url
end

#is_enabledBoolean

Returns Whether this channel is enabled for the bot.

Returns:

  • (Boolean)

    Whether this channel is enabled for the bot



33
34
35
# File 'lib/2018-07-12-preview/generated/azure_mgmt_bot_service/models/facebook_channel_properties.rb', line 33

def is_enabled
  @is_enabled
end

#pagesArray<FacebookPage>

Returns The list of Facebook pages.

Returns:



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

def pages
  @pages
end

#verify_tokenString

action Channel List API, otherwise empty.

Returns:

  • (String)

    Verify token. Value only returned through POST to the



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

def verify_token
  @verify_token
end

Class Method Details

.mapperObject

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



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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
# File 'lib/2018-07-12-preview/generated/azure_mgmt_bot_service/models/facebook_channel_properties.rb', line 40

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'FacebookChannelProperties',
    type: {
      name: 'Composite',
      class_name: 'FacebookChannelProperties',
      model_properties: {
        verify_token: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'verifyToken',
          type: {
            name: 'String'
          }
        },
        pages: {
          client_side_validation: true,
          required: false,
          serialized_name: 'pages',
          type: {
            name: 'Sequence',
            element: {
                client_side_validation: true,
                required: false,
                serialized_name: 'FacebookPageElementType',
                type: {
                  name: 'Composite',
                  class_name: 'FacebookPage'
                }
            }
          }
        },
        app_id: {
          client_side_validation: true,
          required: true,
          serialized_name: 'appId',
          type: {
            name: 'String'
          }
        },
        app_secret: {
          client_side_validation: true,
          required: true,
          serialized_name: 'appSecret',
          type: {
            name: 'String'
          }
        },
        callback_url: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'callbackUrl',
          type: {
            name: 'String'
          }
        },
        is_enabled: {
          client_side_validation: true,
          required: true,
          serialized_name: 'isEnabled',
          type: {
            name: 'Boolean'
          }
        }
      }
    }
  }
end