azure_mgmt_bot_service 0.17.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/LICENSE.txt +21 -0
- data/lib/2017-12-01-preview/generated/azure_mgmt_bot_service.rb +82 -0
- data/lib/2017-12-01-preview/generated/azure_mgmt_bot_service/azure_bot_service.rb +144 -0
- data/lib/2017-12-01-preview/generated/azure_mgmt_bot_service/bot_connection.rb +936 -0
- data/lib/2017-12-01-preview/generated/azure_mgmt_bot_service/bots.rb +1000 -0
- data/lib/2017-12-01-preview/generated/azure_mgmt_bot_service/channels.rb +872 -0
- data/lib/2017-12-01-preview/generated/azure_mgmt_bot_service/models/bot.rb +123 -0
- data/lib/2017-12-01-preview/generated/azure_mgmt_bot_service/models/bot_channel.rb +126 -0
- data/lib/2017-12-01-preview/generated/azure_mgmt_bot_service/models/bot_properties.rb +207 -0
- data/lib/2017-12-01-preview/generated/azure_mgmt_bot_service/models/bot_response_list.rb +101 -0
- data/lib/2017-12-01-preview/generated/azure_mgmt_bot_service/models/channel.rb +55 -0
- data/lib/2017-12-01-preview/generated/azure_mgmt_bot_service/models/channel_name.rb +24 -0
- data/lib/2017-12-01-preview/generated/azure_mgmt_bot_service/models/channel_response_list.rb +101 -0
- data/lib/2017-12-01-preview/generated/azure_mgmt_bot_service/models/check_name_availability_request_body.rb +60 -0
- data/lib/2017-12-01-preview/generated/azure_mgmt_bot_service/models/check_name_availability_response_body.rb +59 -0
- data/lib/2017-12-01-preview/generated/azure_mgmt_bot_service/models/connection_item_name.rb +47 -0
- data/lib/2017-12-01-preview/generated/azure_mgmt_bot_service/models/connection_setting.rb +124 -0
- data/lib/2017-12-01-preview/generated/azure_mgmt_bot_service/models/connection_setting_parameter.rb +59 -0
- data/lib/2017-12-01-preview/generated/azure_mgmt_bot_service/models/connection_setting_properties.rb +126 -0
- data/lib/2017-12-01-preview/generated/azure_mgmt_bot_service/models/connection_setting_response_list.rb +101 -0
- data/lib/2017-12-01-preview/generated/azure_mgmt_bot_service/models/direct_line_channel.rb +63 -0
- data/lib/2017-12-01-preview/generated/azure_mgmt_bot_service/models/direct_line_channel_properties.rb +55 -0
- data/lib/2017-12-01-preview/generated/azure_mgmt_bot_service/models/direct_line_site.rb +119 -0
- data/lib/2017-12-01-preview/generated/azure_mgmt_bot_service/models/email_channel.rb +63 -0
- data/lib/2017-12-01-preview/generated/azure_mgmt_bot_service/models/email_channel_properties.rb +69 -0
- data/lib/2017-12-01-preview/generated/azure_mgmt_bot_service/models/error.rb +47 -0
- data/lib/2017-12-01-preview/generated/azure_mgmt_bot_service/models/error_body.rb +57 -0
- data/lib/2017-12-01-preview/generated/azure_mgmt_bot_service/models/facebook_channel.rb +63 -0
- data/lib/2017-12-01-preview/generated/azure_mgmt_bot_service/models/facebook_channel_properties.rb +114 -0
- data/lib/2017-12-01-preview/generated/azure_mgmt_bot_service/models/facebook_page.rb +58 -0
- data/lib/2017-12-01-preview/generated/azure_mgmt_bot_service/models/kik_channel.rb +63 -0
- data/lib/2017-12-01-preview/generated/azure_mgmt_bot_service/models/kik_channel_properties.rb +80 -0
- data/lib/2017-12-01-preview/generated/azure_mgmt_bot_service/models/kind.rb +18 -0
- data/lib/2017-12-01-preview/generated/azure_mgmt_bot_service/models/ms_teams_channel.rb +63 -0
- data/lib/2017-12-01-preview/generated/azure_mgmt_bot_service/models/ms_teams_channel_properties.rb +101 -0
- data/lib/2017-12-01-preview/generated/azure_mgmt_bot_service/models/operation_display_info.rb +80 -0
- data/lib/2017-12-01-preview/generated/azure_mgmt_bot_service/models/operation_entity.rb +81 -0
- data/lib/2017-12-01-preview/generated/azure_mgmt_bot_service/models/operation_entity_list_result.rb +98 -0
- data/lib/2017-12-01-preview/generated/azure_mgmt_bot_service/models/resource.rb +146 -0
- data/lib/2017-12-01-preview/generated/azure_mgmt_bot_service/models/service_provider.rb +48 -0
- data/lib/2017-12-01-preview/generated/azure_mgmt_bot_service/models/service_provider_parameter.rb +107 -0
- data/lib/2017-12-01-preview/generated/azure_mgmt_bot_service/models/service_provider_properties.rb +116 -0
- data/lib/2017-12-01-preview/generated/azure_mgmt_bot_service/models/service_provider_response_list.rb +69 -0
- data/lib/2017-12-01-preview/generated/azure_mgmt_bot_service/models/sku.rb +59 -0
- data/lib/2017-12-01-preview/generated/azure_mgmt_bot_service/models/sku_name.rb +16 -0
- data/lib/2017-12-01-preview/generated/azure_mgmt_bot_service/models/sku_tier.rb +16 -0
- data/lib/2017-12-01-preview/generated/azure_mgmt_bot_service/models/skype_channel.rb +63 -0
- data/lib/2017-12-01-preview/generated/azure_mgmt_bot_service/models/skype_channel_properties.rb +134 -0
- data/lib/2017-12-01-preview/generated/azure_mgmt_bot_service/models/slack_channel.rb +63 -0
- data/lib/2017-12-01-preview/generated/azure_mgmt_bot_service/models/slack_channel_properties.rb +141 -0
- data/lib/2017-12-01-preview/generated/azure_mgmt_bot_service/models/sms_channel.rb +63 -0
- data/lib/2017-12-01-preview/generated/azure_mgmt_bot_service/models/sms_channel_properties.rb +92 -0
- data/lib/2017-12-01-preview/generated/azure_mgmt_bot_service/models/telegram_channel.rb +63 -0
- data/lib/2017-12-01-preview/generated/azure_mgmt_bot_service/models/telegram_channel_properties.rb +69 -0
- data/lib/2017-12-01-preview/generated/azure_mgmt_bot_service/models/web_chat_channel.rb +63 -0
- data/lib/2017-12-01-preview/generated/azure_mgmt_bot_service/models/web_chat_channel_properties.rb +67 -0
- data/lib/2017-12-01-preview/generated/azure_mgmt_bot_service/models/web_chat_site.rb +107 -0
- data/lib/2017-12-01-preview/generated/azure_mgmt_bot_service/module_definition.rb +9 -0
- data/lib/2017-12-01-preview/generated/azure_mgmt_bot_service/operations.rb +219 -0
- data/lib/2018-07-12-preview/generated/azure_mgmt_bot_service.rb +91 -0
- data/lib/2018-07-12-preview/generated/azure_mgmt_bot_service/azure_bot_service.rb +147 -0
- data/lib/2018-07-12-preview/generated/azure_mgmt_bot_service/bot_connection.rb +936 -0
- data/lib/2018-07-12-preview/generated/azure_mgmt_bot_service/bots.rb +1000 -0
- data/lib/2018-07-12-preview/generated/azure_mgmt_bot_service/channels.rb +872 -0
- data/lib/2018-07-12-preview/generated/azure_mgmt_bot_service/enterprise_channels.rb +962 -0
- data/lib/2018-07-12-preview/generated/azure_mgmt_bot_service/models/bot.rb +123 -0
- data/lib/2018-07-12-preview/generated/azure_mgmt_bot_service/models/bot_channel.rb +126 -0
- data/lib/2018-07-12-preview/generated/azure_mgmt_bot_service/models/bot_properties.rb +207 -0
- data/lib/2018-07-12-preview/generated/azure_mgmt_bot_service/models/bot_response_list.rb +101 -0
- data/lib/2018-07-12-preview/generated/azure_mgmt_bot_service/models/channel.rb +55 -0
- data/lib/2018-07-12-preview/generated/azure_mgmt_bot_service/models/channel_name.rb +24 -0
- data/lib/2018-07-12-preview/generated/azure_mgmt_bot_service/models/channel_response_list.rb +101 -0
- data/lib/2018-07-12-preview/generated/azure_mgmt_bot_service/models/check_name_availability_request_body.rb +60 -0
- data/lib/2018-07-12-preview/generated/azure_mgmt_bot_service/models/check_name_availability_response_body.rb +59 -0
- data/lib/2018-07-12-preview/generated/azure_mgmt_bot_service/models/connection_item_name.rb +47 -0
- data/lib/2018-07-12-preview/generated/azure_mgmt_bot_service/models/connection_setting.rb +124 -0
- data/lib/2018-07-12-preview/generated/azure_mgmt_bot_service/models/connection_setting_parameter.rb +59 -0
- data/lib/2018-07-12-preview/generated/azure_mgmt_bot_service/models/connection_setting_properties.rb +126 -0
- data/lib/2018-07-12-preview/generated/azure_mgmt_bot_service/models/connection_setting_response_list.rb +101 -0
- data/lib/2018-07-12-preview/generated/azure_mgmt_bot_service/models/direct_line_channel.rb +63 -0
- data/lib/2018-07-12-preview/generated/azure_mgmt_bot_service/models/direct_line_channel_properties.rb +55 -0
- data/lib/2018-07-12-preview/generated/azure_mgmt_bot_service/models/direct_line_site.rb +151 -0
- data/lib/2018-07-12-preview/generated/azure_mgmt_bot_service/models/email_channel.rb +63 -0
- data/lib/2018-07-12-preview/generated/azure_mgmt_bot_service/models/email_channel_properties.rb +69 -0
- data/lib/2018-07-12-preview/generated/azure_mgmt_bot_service/models/enterprise_channel.rb +124 -0
- data/lib/2018-07-12-preview/generated/azure_mgmt_bot_service/models/enterprise_channel_check_name_availability_request.rb +49 -0
- data/lib/2018-07-12-preview/generated/azure_mgmt_bot_service/models/enterprise_channel_check_name_availability_response.rb +60 -0
- data/lib/2018-07-12-preview/generated/azure_mgmt_bot_service/models/enterprise_channel_node.rb +95 -0
- data/lib/2018-07-12-preview/generated/azure_mgmt_bot_service/models/enterprise_channel_node_state.rb +24 -0
- data/lib/2018-07-12-preview/generated/azure_mgmt_bot_service/models/enterprise_channel_properties.rb +70 -0
- data/lib/2018-07-12-preview/generated/azure_mgmt_bot_service/models/enterprise_channel_response_list.rb +101 -0
- data/lib/2018-07-12-preview/generated/azure_mgmt_bot_service/models/enterprise_channel_state.rb +24 -0
- data/lib/2018-07-12-preview/generated/azure_mgmt_bot_service/models/error.rb +47 -0
- data/lib/2018-07-12-preview/generated/azure_mgmt_bot_service/models/error_body.rb +57 -0
- data/lib/2018-07-12-preview/generated/azure_mgmt_bot_service/models/facebook_channel.rb +63 -0
- data/lib/2018-07-12-preview/generated/azure_mgmt_bot_service/models/facebook_channel_properties.rb +114 -0
- data/lib/2018-07-12-preview/generated/azure_mgmt_bot_service/models/facebook_page.rb +58 -0
- data/lib/2018-07-12-preview/generated/azure_mgmt_bot_service/models/kik_channel.rb +63 -0
- data/lib/2018-07-12-preview/generated/azure_mgmt_bot_service/models/kik_channel_properties.rb +80 -0
- data/lib/2018-07-12-preview/generated/azure_mgmt_bot_service/models/kind.rb +18 -0
- data/lib/2018-07-12-preview/generated/azure_mgmt_bot_service/models/ms_teams_channel.rb +63 -0
- data/lib/2018-07-12-preview/generated/azure_mgmt_bot_service/models/ms_teams_channel_properties.rb +68 -0
- data/lib/2018-07-12-preview/generated/azure_mgmt_bot_service/models/operation_display_info.rb +80 -0
- data/lib/2018-07-12-preview/generated/azure_mgmt_bot_service/models/operation_entity.rb +81 -0
- data/lib/2018-07-12-preview/generated/azure_mgmt_bot_service/models/operation_entity_list_result.rb +98 -0
- data/lib/2018-07-12-preview/generated/azure_mgmt_bot_service/models/resource.rb +146 -0
- data/lib/2018-07-12-preview/generated/azure_mgmt_bot_service/models/service_provider.rb +48 -0
- data/lib/2018-07-12-preview/generated/azure_mgmt_bot_service/models/service_provider_parameter.rb +107 -0
- data/lib/2018-07-12-preview/generated/azure_mgmt_bot_service/models/service_provider_properties.rb +116 -0
- data/lib/2018-07-12-preview/generated/azure_mgmt_bot_service/models/service_provider_response_list.rb +69 -0
- data/lib/2018-07-12-preview/generated/azure_mgmt_bot_service/models/sku.rb +59 -0
- data/lib/2018-07-12-preview/generated/azure_mgmt_bot_service/models/sku_name.rb +16 -0
- data/lib/2018-07-12-preview/generated/azure_mgmt_bot_service/models/sku_tier.rb +16 -0
- data/lib/2018-07-12-preview/generated/azure_mgmt_bot_service/models/skype_channel.rb +63 -0
- data/lib/2018-07-12-preview/generated/azure_mgmt_bot_service/models/skype_channel_properties.rb +134 -0
- data/lib/2018-07-12-preview/generated/azure_mgmt_bot_service/models/slack_channel.rb +63 -0
- data/lib/2018-07-12-preview/generated/azure_mgmt_bot_service/models/slack_channel_properties.rb +141 -0
- data/lib/2018-07-12-preview/generated/azure_mgmt_bot_service/models/sms_channel.rb +63 -0
- data/lib/2018-07-12-preview/generated/azure_mgmt_bot_service/models/sms_channel_properties.rb +92 -0
- data/lib/2018-07-12-preview/generated/azure_mgmt_bot_service/models/telegram_channel.rb +63 -0
- data/lib/2018-07-12-preview/generated/azure_mgmt_bot_service/models/telegram_channel_properties.rb +69 -0
- data/lib/2018-07-12-preview/generated/azure_mgmt_bot_service/models/web_chat_channel.rb +63 -0
- data/lib/2018-07-12-preview/generated/azure_mgmt_bot_service/models/web_chat_channel_properties.rb +67 -0
- data/lib/2018-07-12-preview/generated/azure_mgmt_bot_service/models/web_chat_site.rb +107 -0
- data/lib/2018-07-12-preview/generated/azure_mgmt_bot_service/module_definition.rb +9 -0
- data/lib/2018-07-12-preview/generated/azure_mgmt_bot_service/operations.rb +219 -0
- data/lib/azure_mgmt_bot_service.rb +7 -0
- data/lib/module_definition.rb +7 -0
- data/lib/profiles/latest/botservice_latest_profile_client.rb +40 -0
- data/lib/profiles/latest/botservice_module_definition.rb +8 -0
- data/lib/profiles/latest/modules/botservice_profile_module.rb +305 -0
- data/lib/version.rb +7 -0
- metadata +249 -0
@@ -0,0 +1,101 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator.
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure::BotService::Mgmt::V2017_12_01_preview
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# The list of bot service operation response.
|
10
|
+
#
|
11
|
+
class BotResponseList
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
include MsRest::JSONable
|
16
|
+
# @return [String] The link used to get the next page of bot service
|
17
|
+
# resources.
|
18
|
+
attr_accessor :next_link
|
19
|
+
|
20
|
+
# @return [Array<Bot>] Gets the list of bot service results and their
|
21
|
+
# properties.
|
22
|
+
attr_accessor :value
|
23
|
+
|
24
|
+
# return [Proc] with next page method call.
|
25
|
+
attr_accessor :next_method
|
26
|
+
|
27
|
+
#
|
28
|
+
# Gets the rest of the items for the request, enabling auto-pagination.
|
29
|
+
#
|
30
|
+
# @return [Array<Bot>] operation results.
|
31
|
+
#
|
32
|
+
def get_all_items
|
33
|
+
items = @value
|
34
|
+
page = self
|
35
|
+
while page.next_link != nil && !page.next_link.strip.empty? do
|
36
|
+
page = page.get_next_page
|
37
|
+
items.concat(page.value)
|
38
|
+
end
|
39
|
+
items
|
40
|
+
end
|
41
|
+
|
42
|
+
#
|
43
|
+
# Gets the next page of results.
|
44
|
+
#
|
45
|
+
# @return [BotResponseList] with next page content.
|
46
|
+
#
|
47
|
+
def get_next_page
|
48
|
+
response = @next_method.call(@next_link).value! unless @next_method.nil?
|
49
|
+
unless response.nil?
|
50
|
+
@next_link = response.body.next_link
|
51
|
+
@value = response.body.value
|
52
|
+
self
|
53
|
+
end
|
54
|
+
end
|
55
|
+
|
56
|
+
#
|
57
|
+
# Mapper for BotResponseList class as Ruby Hash.
|
58
|
+
# This will be used for serialization/deserialization.
|
59
|
+
#
|
60
|
+
def self.mapper()
|
61
|
+
{
|
62
|
+
client_side_validation: true,
|
63
|
+
required: false,
|
64
|
+
serialized_name: 'BotResponseList',
|
65
|
+
type: {
|
66
|
+
name: 'Composite',
|
67
|
+
class_name: 'BotResponseList',
|
68
|
+
model_properties: {
|
69
|
+
next_link: {
|
70
|
+
client_side_validation: true,
|
71
|
+
required: false,
|
72
|
+
serialized_name: 'nextLink',
|
73
|
+
type: {
|
74
|
+
name: 'String'
|
75
|
+
}
|
76
|
+
},
|
77
|
+
value: {
|
78
|
+
client_side_validation: true,
|
79
|
+
required: false,
|
80
|
+
read_only: true,
|
81
|
+
serialized_name: 'value',
|
82
|
+
type: {
|
83
|
+
name: 'Sequence',
|
84
|
+
element: {
|
85
|
+
client_side_validation: true,
|
86
|
+
required: false,
|
87
|
+
serialized_name: 'BotElementType',
|
88
|
+
type: {
|
89
|
+
name: 'Composite',
|
90
|
+
class_name: 'Bot'
|
91
|
+
}
|
92
|
+
}
|
93
|
+
}
|
94
|
+
}
|
95
|
+
}
|
96
|
+
}
|
97
|
+
}
|
98
|
+
end
|
99
|
+
end
|
100
|
+
end
|
101
|
+
end
|
@@ -0,0 +1,55 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator.
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure::BotService::Mgmt::V2017_12_01_preview
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Channel definition
|
10
|
+
#
|
11
|
+
class Channel
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
@@discriminatorMap = Hash.new
|
16
|
+
@@discriminatorMap["FacebookChannel"] = "FacebookChannel"
|
17
|
+
@@discriminatorMap["EmailChannel"] = "EmailChannel"
|
18
|
+
@@discriminatorMap["MsTeamsChannel"] = "MsTeamsChannel"
|
19
|
+
@@discriminatorMap["SkypeChannel"] = "SkypeChannel"
|
20
|
+
@@discriminatorMap["KikChannel"] = "KikChannel"
|
21
|
+
@@discriminatorMap["WebChatChannel"] = "WebChatChannel"
|
22
|
+
@@discriminatorMap["DirectLineChannel"] = "DirectLineChannel"
|
23
|
+
@@discriminatorMap["TelegramChannel"] = "TelegramChannel"
|
24
|
+
@@discriminatorMap["SmsChannel"] = "SmsChannel"
|
25
|
+
@@discriminatorMap["SlackChannel"] = "SlackChannel"
|
26
|
+
|
27
|
+
def initialize
|
28
|
+
@channelName = "Channel"
|
29
|
+
end
|
30
|
+
|
31
|
+
attr_accessor :channelName
|
32
|
+
|
33
|
+
|
34
|
+
#
|
35
|
+
# Mapper for Channel class as Ruby Hash.
|
36
|
+
# This will be used for serialization/deserialization.
|
37
|
+
#
|
38
|
+
def self.mapper()
|
39
|
+
{
|
40
|
+
client_side_validation: true,
|
41
|
+
required: false,
|
42
|
+
serialized_name: 'Channel',
|
43
|
+
type: {
|
44
|
+
name: 'Composite',
|
45
|
+
polymorphic_discriminator: 'channelName',
|
46
|
+
uber_parent: 'Channel',
|
47
|
+
class_name: 'Channel',
|
48
|
+
model_properties: {
|
49
|
+
}
|
50
|
+
}
|
51
|
+
}
|
52
|
+
end
|
53
|
+
end
|
54
|
+
end
|
55
|
+
end
|
@@ -0,0 +1,24 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator.
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure::BotService::Mgmt::V2017_12_01_preview
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Defines values for ChannelName
|
10
|
+
#
|
11
|
+
module ChannelName
|
12
|
+
FacebookChannel = "FacebookChannel"
|
13
|
+
EmailChannel = "EmailChannel"
|
14
|
+
KikChannel = "KikChannel"
|
15
|
+
TelegramChannel = "TelegramChannel"
|
16
|
+
SlackChannel = "SlackChannel"
|
17
|
+
MsTeamsChannel = "MsTeamsChannel"
|
18
|
+
SkypeChannel = "SkypeChannel"
|
19
|
+
WebChatChannel = "WebChatChannel"
|
20
|
+
DirectLineChannel = "DirectLineChannel"
|
21
|
+
SmsChannel = "SmsChannel"
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
@@ -0,0 +1,101 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator.
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure::BotService::Mgmt::V2017_12_01_preview
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# The list of bot service channel operation response.
|
10
|
+
#
|
11
|
+
class ChannelResponseList
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
include MsRest::JSONable
|
16
|
+
# @return [String] The link used to get the next page of bot service
|
17
|
+
# channel resources.
|
18
|
+
attr_accessor :next_link
|
19
|
+
|
20
|
+
# @return [Array<BotChannel>] Gets the list of bot service channel
|
21
|
+
# results and their properties.
|
22
|
+
attr_accessor :value
|
23
|
+
|
24
|
+
# return [Proc] with next page method call.
|
25
|
+
attr_accessor :next_method
|
26
|
+
|
27
|
+
#
|
28
|
+
# Gets the rest of the items for the request, enabling auto-pagination.
|
29
|
+
#
|
30
|
+
# @return [Array<BotChannel>] operation results.
|
31
|
+
#
|
32
|
+
def get_all_items
|
33
|
+
items = @value
|
34
|
+
page = self
|
35
|
+
while page.next_link != nil && !page.next_link.strip.empty? do
|
36
|
+
page = page.get_next_page
|
37
|
+
items.concat(page.value)
|
38
|
+
end
|
39
|
+
items
|
40
|
+
end
|
41
|
+
|
42
|
+
#
|
43
|
+
# Gets the next page of results.
|
44
|
+
#
|
45
|
+
# @return [ChannelResponseList] with next page content.
|
46
|
+
#
|
47
|
+
def get_next_page
|
48
|
+
response = @next_method.call(@next_link).value! unless @next_method.nil?
|
49
|
+
unless response.nil?
|
50
|
+
@next_link = response.body.next_link
|
51
|
+
@value = response.body.value
|
52
|
+
self
|
53
|
+
end
|
54
|
+
end
|
55
|
+
|
56
|
+
#
|
57
|
+
# Mapper for ChannelResponseList class as Ruby Hash.
|
58
|
+
# This will be used for serialization/deserialization.
|
59
|
+
#
|
60
|
+
def self.mapper()
|
61
|
+
{
|
62
|
+
client_side_validation: true,
|
63
|
+
required: false,
|
64
|
+
serialized_name: 'ChannelResponseList',
|
65
|
+
type: {
|
66
|
+
name: 'Composite',
|
67
|
+
class_name: 'ChannelResponseList',
|
68
|
+
model_properties: {
|
69
|
+
next_link: {
|
70
|
+
client_side_validation: true,
|
71
|
+
required: false,
|
72
|
+
serialized_name: 'nextLink',
|
73
|
+
type: {
|
74
|
+
name: 'String'
|
75
|
+
}
|
76
|
+
},
|
77
|
+
value: {
|
78
|
+
client_side_validation: true,
|
79
|
+
required: false,
|
80
|
+
read_only: true,
|
81
|
+
serialized_name: 'value',
|
82
|
+
type: {
|
83
|
+
name: 'Sequence',
|
84
|
+
element: {
|
85
|
+
client_side_validation: true,
|
86
|
+
required: false,
|
87
|
+
serialized_name: 'BotChannelElementType',
|
88
|
+
type: {
|
89
|
+
name: 'Composite',
|
90
|
+
class_name: 'BotChannel'
|
91
|
+
}
|
92
|
+
}
|
93
|
+
}
|
94
|
+
}
|
95
|
+
}
|
96
|
+
}
|
97
|
+
}
|
98
|
+
end
|
99
|
+
end
|
100
|
+
end
|
101
|
+
end
|
@@ -0,0 +1,60 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator.
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure::BotService::Mgmt::V2017_12_01_preview
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# The request body for a request to Bot Service Management to check
|
10
|
+
# availability of a bot name.
|
11
|
+
#
|
12
|
+
class CheckNameAvailabilityRequestBody
|
13
|
+
|
14
|
+
include MsRestAzure
|
15
|
+
|
16
|
+
# @return [String] the name of the bot for which availability needs to be
|
17
|
+
# checked.
|
18
|
+
attr_accessor :name
|
19
|
+
|
20
|
+
# @return [String] the type of the bot for which availability needs to be
|
21
|
+
# checked
|
22
|
+
attr_accessor :type
|
23
|
+
|
24
|
+
|
25
|
+
#
|
26
|
+
# Mapper for CheckNameAvailabilityRequestBody class as Ruby Hash.
|
27
|
+
# This will be used for serialization/deserialization.
|
28
|
+
#
|
29
|
+
def self.mapper()
|
30
|
+
{
|
31
|
+
client_side_validation: true,
|
32
|
+
required: false,
|
33
|
+
serialized_name: 'CheckNameAvailabilityRequestBody',
|
34
|
+
type: {
|
35
|
+
name: 'Composite',
|
36
|
+
class_name: 'CheckNameAvailabilityRequestBody',
|
37
|
+
model_properties: {
|
38
|
+
name: {
|
39
|
+
client_side_validation: true,
|
40
|
+
required: false,
|
41
|
+
serialized_name: 'name',
|
42
|
+
type: {
|
43
|
+
name: 'String'
|
44
|
+
}
|
45
|
+
},
|
46
|
+
type: {
|
47
|
+
client_side_validation: true,
|
48
|
+
required: false,
|
49
|
+
serialized_name: 'type',
|
50
|
+
type: {
|
51
|
+
name: 'String'
|
52
|
+
}
|
53
|
+
}
|
54
|
+
}
|
55
|
+
}
|
56
|
+
}
|
57
|
+
end
|
58
|
+
end
|
59
|
+
end
|
60
|
+
end
|
@@ -0,0 +1,59 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator.
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure::BotService::Mgmt::V2017_12_01_preview
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# The response body returned for a request to Bot Service Management to
|
10
|
+
# check availability of a bot name.
|
11
|
+
#
|
12
|
+
class CheckNameAvailabilityResponseBody
|
13
|
+
|
14
|
+
include MsRestAzure
|
15
|
+
|
16
|
+
# @return [Boolean] indicates if the bot name is valid.
|
17
|
+
attr_accessor :valid
|
18
|
+
|
19
|
+
# @return [String] additional message from the bot management api showing
|
20
|
+
# why a bot name is not available
|
21
|
+
attr_accessor :message
|
22
|
+
|
23
|
+
|
24
|
+
#
|
25
|
+
# Mapper for CheckNameAvailabilityResponseBody class as Ruby Hash.
|
26
|
+
# This will be used for serialization/deserialization.
|
27
|
+
#
|
28
|
+
def self.mapper()
|
29
|
+
{
|
30
|
+
client_side_validation: true,
|
31
|
+
required: false,
|
32
|
+
serialized_name: 'CheckNameAvailabilityResponseBody',
|
33
|
+
type: {
|
34
|
+
name: 'Composite',
|
35
|
+
class_name: 'CheckNameAvailabilityResponseBody',
|
36
|
+
model_properties: {
|
37
|
+
valid: {
|
38
|
+
client_side_validation: true,
|
39
|
+
required: false,
|
40
|
+
serialized_name: 'valid',
|
41
|
+
type: {
|
42
|
+
name: 'Boolean'
|
43
|
+
}
|
44
|
+
},
|
45
|
+
message: {
|
46
|
+
client_side_validation: true,
|
47
|
+
required: false,
|
48
|
+
serialized_name: 'message',
|
49
|
+
type: {
|
50
|
+
name: 'String'
|
51
|
+
}
|
52
|
+
}
|
53
|
+
}
|
54
|
+
}
|
55
|
+
}
|
56
|
+
end
|
57
|
+
end
|
58
|
+
end
|
59
|
+
end
|
@@ -0,0 +1,47 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator.
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure::BotService::Mgmt::V2017_12_01_preview
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# The display name of a connection Item Setting registered with the Bot
|
10
|
+
#
|
11
|
+
class ConnectionItemName
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [String] Connection Item name that has been added in the API
|
16
|
+
attr_accessor :name
|
17
|
+
|
18
|
+
|
19
|
+
#
|
20
|
+
# Mapper for ConnectionItemName class as Ruby Hash.
|
21
|
+
# This will be used for serialization/deserialization.
|
22
|
+
#
|
23
|
+
def self.mapper()
|
24
|
+
{
|
25
|
+
client_side_validation: true,
|
26
|
+
required: false,
|
27
|
+
serialized_name: 'ConnectionItemName',
|
28
|
+
type: {
|
29
|
+
name: 'Composite',
|
30
|
+
class_name: 'ConnectionItemName',
|
31
|
+
model_properties: {
|
32
|
+
name: {
|
33
|
+
client_side_validation: true,
|
34
|
+
required: false,
|
35
|
+
read_only: true,
|
36
|
+
serialized_name: 'name',
|
37
|
+
type: {
|
38
|
+
name: 'String'
|
39
|
+
}
|
40
|
+
}
|
41
|
+
}
|
42
|
+
}
|
43
|
+
}
|
44
|
+
end
|
45
|
+
end
|
46
|
+
end
|
47
|
+
end
|