Skip to content

Commit f8cd41e

Browse files
committed
Supported new features for outbound.
1 parent 9d06373 commit f8cd41e

File tree

10 files changed

+222
-4
lines changed

10 files changed

+222
-4
lines changed

aliyun-python-sdk-outboundbot/ChangeLog.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
2021-08-19 Version: 1.0.7
2+
- Supported new features for outbound.
3+
14
2021-06-25 Version: 1.0.6
25
- Supported new features for outbound.
36

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = '1.0.6'
1+
__version__ = '1.0.7'

aliyun-python-sdk-outboundbot/aliyunsdkoutboundbot/request/v20191226/CreateInstanceRequest.py

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,14 @@ def get_ResourceGroupId(self):
4343
def set_ResourceGroupId(self,ResourceGroupId):
4444
self.add_query_param('ResourceGroupId',ResourceGroupId)
4545

46+
def get_CallingNumbers(self):
47+
return self.get_query_params().get('CallingNumber')
48+
49+
def set_CallingNumbers(self, CallingNumbers):
50+
for depth1 in range(len(CallingNumbers)):
51+
if CallingNumbers[depth1] is not None:
52+
self.add_query_param('CallingNumber.' + str(depth1 + 1) , CallingNumbers[depth1])
53+
4654
def get_InstanceName(self):
4755
return self.get_query_params().get('InstanceName')
4856

@@ -53,4 +61,10 @@ def get_InstanceDescription(self):
5361
return self.get_query_params().get('InstanceDescription')
5462

5563
def set_InstanceDescription(self,InstanceDescription):
56-
self.add_query_param('InstanceDescription',InstanceDescription)
64+
self.add_query_param('InstanceDescription',InstanceDescription)
65+
66+
def get_NluServiceType(self):
67+
return self.get_query_params().get('NluServiceType')
68+
69+
def set_NluServiceType(self,NluServiceType):
70+
self.add_query_param('NluServiceType',NluServiceType)

aliyun-python-sdk-outboundbot/aliyunsdkoutboundbot/request/v20191226/CreateScriptRequest.py

Lines changed: 35 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,12 @@ def __init__(self):
3131
setattr(self, "endpoint_regional", endpoint_data.getEndpointRegional())
3232

3333

34+
def get_TtsConfig(self):
35+
return self.get_query_params().get('TtsConfig')
36+
37+
def set_TtsConfig(self,TtsConfig):
38+
self.add_query_param('TtsConfig',TtsConfig)
39+
3440
def get_Industry(self):
3541
return self.get_query_params().get('Industry')
3642

@@ -49,14 +55,42 @@ def get_Scene(self):
4955
def set_Scene(self,Scene):
5056
self.add_query_param('Scene',Scene)
5157

58+
def get_ChatbotId(self):
59+
return self.get_query_params().get('ChatbotId')
60+
61+
def set_ChatbotId(self,ChatbotId):
62+
self.add_query_param('ChatbotId',ChatbotId)
63+
5264
def get_InstanceId(self):
5365
return self.get_query_params().get('InstanceId')
5466

5567
def set_InstanceId(self,InstanceId):
5668
self.add_query_param('InstanceId',InstanceId)
5769

70+
def get_ScriptWaveforms(self):
71+
return self.get_query_params().get('ScriptWaveform')
72+
73+
def set_ScriptWaveforms(self, ScriptWaveforms):
74+
for depth1 in range(len(ScriptWaveforms)):
75+
if ScriptWaveforms[depth1] is not None:
76+
self.add_query_param('ScriptWaveform.' + str(depth1 + 1) , ScriptWaveforms[depth1])
77+
78+
def get_AsrConfig(self):
79+
return self.get_query_params().get('AsrConfig')
80+
81+
def set_AsrConfig(self,AsrConfig):
82+
self.add_query_param('AsrConfig',AsrConfig)
83+
5884
def get_ScriptDescription(self):
5985
return self.get_query_params().get('ScriptDescription')
6086

6187
def set_ScriptDescription(self,ScriptDescription):
62-
self.add_query_param('ScriptDescription',ScriptDescription)
88+
self.add_query_param('ScriptDescription',ScriptDescription)
89+
90+
def get_ScriptContents(self):
91+
return self.get_query_params().get('ScriptContent')
92+
93+
def set_ScriptContents(self, ScriptContents):
94+
for depth1 in range(len(ScriptContents)):
95+
if ScriptContents[depth1] is not None:
96+
self.add_query_param('ScriptContent.' + str(depth1 + 1) , ScriptContents[depth1])
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# Licensed to the Apache Software Foundation (ASF) under one
2+
# or more contributor license agreements. See the NOTICE file
3+
# distributed with this work for additional information
4+
# regarding copyright ownership. The ASF licenses this file
5+
# to you under the Apache License, Version 2.0 (the
6+
# "License"); you may not use this file except in compliance
7+
# with the License. You may obtain a copy of the License at
8+
#
9+
#
10+
# http://www.apache.org/licenses/LICENSE-2.0
11+
#
12+
#
13+
# Unless required by applicable law or agreed to in writing,
14+
# software distributed under the License is distributed on an
15+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16+
# KIND, either express or implied. See the License for the
17+
# specific language governing permissions and limitations
18+
# under the License.
19+
20+
from aliyunsdkcore.request import RpcRequest
21+
from aliyunsdkoutboundbot.endpoint import endpoint_data
22+
23+
class GetConcurrentConversationQuotaRequest(RpcRequest):
24+
25+
def __init__(self):
26+
RpcRequest.__init__(self, 'OutboundBot', '2019-12-26', 'GetConcurrentConversationQuota','outboundbot')
27+
self.set_method('POST')
28+
if hasattr(self, "endpoint_map"):
29+
setattr(self, "endpoint_map", endpoint_data.getEndpointMap())
30+
if hasattr(self, "endpoint_regional"):
31+
setattr(self, "endpoint_regional", endpoint_data.getEndpointRegional())
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# Licensed to the Apache Software Foundation (ASF) under one
2+
# or more contributor license agreements. See the NOTICE file
3+
# distributed with this work for additional information
4+
# regarding copyright ownership. The ASF licenses this file
5+
# to you under the Apache License, Version 2.0 (the
6+
# "License"); you may not use this file except in compliance
7+
# with the License. You may obtain a copy of the License at
8+
#
9+
#
10+
# http://www.apache.org/licenses/LICENSE-2.0
11+
#
12+
#
13+
# Unless required by applicable law or agreed to in writing,
14+
# software distributed under the License is distributed on an
15+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16+
# KIND, either express or implied. See the License for the
17+
# specific language governing permissions and limitations
18+
# under the License.
19+
20+
from aliyunsdkcore.request import RpcRequest
21+
from aliyunsdkoutboundbot.endpoint import endpoint_data
22+
23+
class GetCurrentConcurrencyRequest(RpcRequest):
24+
25+
def __init__(self):
26+
RpcRequest.__init__(self, 'OutboundBot', '2019-12-26', 'GetCurrentConcurrency','outboundbot')
27+
self.set_method('POST')
28+
if hasattr(self, "endpoint_map"):
29+
setattr(self, "endpoint_map", endpoint_data.getEndpointMap())
30+
if hasattr(self, "endpoint_regional"):
31+
setattr(self, "endpoint_regional", endpoint_data.getEndpointRegional())
32+
33+
34+
def get_InstanceId(self):
35+
return self.get_query_params().get('InstanceId')
36+
37+
def set_InstanceId(self,InstanceId):
38+
self.add_query_param('InstanceId',InstanceId)

aliyun-python-sdk-outboundbot/aliyunsdkoutboundbot/request/v20191226/ModifyInstanceRequest.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,14 @@ def get_MaxConcurrentConversation(self):
3737
def set_MaxConcurrentConversation(self,MaxConcurrentConversation):
3838
self.add_query_param('MaxConcurrentConversation',MaxConcurrentConversation)
3939

40+
def get_CallingNumbers(self):
41+
return self.get_query_params().get('CallingNumber')
42+
43+
def set_CallingNumbers(self, CallingNumbers):
44+
for depth1 in range(len(CallingNumbers)):
45+
if CallingNumbers[depth1] is not None:
46+
self.add_query_param('CallingNumber.' + str(depth1 + 1) , CallingNumbers[depth1])
47+
4048
def get_InstanceId(self):
4149
return self.get_query_params().get('InstanceId')
4250

aliyun-python-sdk-outboundbot/aliyunsdkoutboundbot/request/v20191226/ModifyScriptRequest.py

Lines changed: 41 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,12 @@ def __init__(self):
3131
setattr(self, "endpoint_regional", endpoint_data.getEndpointRegional())
3232

3333

34+
def get_TtsConfig(self):
35+
return self.get_query_params().get('TtsConfig')
36+
37+
def set_TtsConfig(self,TtsConfig):
38+
self.add_query_param('TtsConfig',TtsConfig)
39+
3440
def get_Industry(self):
3541
return self.get_query_params().get('Industry')
3642

@@ -55,6 +61,32 @@ def get_ScriptId(self):
5561
def set_ScriptId(self,ScriptId):
5662
self.add_query_param('ScriptId',ScriptId)
5763

64+
def get_ScriptWaveforms(self):
65+
return self.get_query_params().get('ScriptWaveform')
66+
67+
def set_ScriptWaveforms(self, ScriptWaveforms):
68+
for depth1 in range(len(ScriptWaveforms)):
69+
if ScriptWaveforms[depth1] is not None:
70+
self.add_query_param('ScriptWaveform.' + str(depth1 + 1) , ScriptWaveforms[depth1])
71+
72+
def get_AsrConfig(self):
73+
return self.get_query_params().get('AsrConfig')
74+
75+
def set_AsrConfig(self,AsrConfig):
76+
self.add_query_param('AsrConfig',AsrConfig)
77+
78+
def get_MiniPlaybackEnabled(self):
79+
return self.get_query_params().get('MiniPlaybackEnabled')
80+
81+
def set_MiniPlaybackEnabled(self,MiniPlaybackEnabled):
82+
self.add_query_param('MiniPlaybackEnabled',MiniPlaybackEnabled)
83+
84+
def get_ChatbotId(self):
85+
return self.get_query_params().get('ChatbotId')
86+
87+
def set_ChatbotId(self,ChatbotId):
88+
self.add_query_param('ChatbotId',ChatbotId)
89+
5890
def get_InstanceId(self):
5991
return self.get_query_params().get('InstanceId')
6092

@@ -65,4 +97,12 @@ def get_ScriptDescription(self):
6597
return self.get_query_params().get('ScriptDescription')
6698

6799
def set_ScriptDescription(self,ScriptDescription):
68-
self.add_query_param('ScriptDescription',ScriptDescription)
100+
self.add_query_param('ScriptDescription',ScriptDescription)
101+
102+
def get_ScriptContents(self):
103+
return self.get_query_params().get('ScriptContent')
104+
105+
def set_ScriptContents(self, ScriptContents):
106+
for depth1 in range(len(ScriptContents)):
107+
if ScriptContents[depth1] is not None:
108+
self.add_query_param('ScriptContent.' + str(depth1 + 1) , ScriptContents[depth1])

aliyun-python-sdk-outboundbot/aliyunsdkoutboundbot/request/v20191226/StartJobRequest.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,12 @@ def set_CallingNumbers(self, CallingNumbers):
4545
if CallingNumbers[depth1] is not None:
4646
self.add_query_param('CallingNumber.' + str(depth1 + 1) , CallingNumbers[depth1])
4747

48+
def get_ScriptId(self):
49+
return self.get_query_params().get('ScriptId')
50+
51+
def set_ScriptId(self,ScriptId):
52+
self.add_query_param('ScriptId',ScriptId)
53+
4854
def get_InstanceId(self):
4955
return self.get_query_params().get('InstanceId')
5056

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
# Licensed to the Apache Software Foundation (ASF) under one
2+
# or more contributor license agreements. See the NOTICE file
3+
# distributed with this work for additional information
4+
# regarding copyright ownership. The ASF licenses this file
5+
# to you under the Apache License, Version 2.0 (the
6+
# "License"); you may not use this file except in compliance
7+
# with the License. You may obtain a copy of the License at
8+
#
9+
#
10+
# http://www.apache.org/licenses/LICENSE-2.0
11+
#
12+
#
13+
# Unless required by applicable law or agreed to in writing,
14+
# software distributed under the License is distributed on an
15+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16+
# KIND, either express or implied. See the License for the
17+
# specific language governing permissions and limitations
18+
# under the License.
19+
20+
from aliyunsdkcore.request import RpcRequest
21+
from aliyunsdkoutboundbot.endpoint import endpoint_data
22+
23+
class TerminateCallRequest(RpcRequest):
24+
25+
def __init__(self):
26+
RpcRequest.__init__(self, 'OutboundBot', '2019-12-26', 'TerminateCall','outboundbot')
27+
self.set_method('POST')
28+
if hasattr(self, "endpoint_map"):
29+
setattr(self, "endpoint_map", endpoint_data.getEndpointMap())
30+
if hasattr(self, "endpoint_regional"):
31+
setattr(self, "endpoint_regional", endpoint_data.getEndpointRegional())
32+
33+
34+
def get_CallId(self):
35+
return self.get_query_params().get('CallId')
36+
37+
def set_CallId(self,CallId):
38+
self.add_query_param('CallId',CallId)
39+
40+
def get_InstanceId(self):
41+
return self.get_query_params().get('InstanceId')
42+
43+
def set_InstanceId(self,InstanceId):
44+
self.add_query_param('InstanceId',InstanceId)

0 commit comments

Comments
 (0)