Skip to content

Commit cf69654

Browse files
committed
由择仁发起的CCC SDK自动发布, 版本号:1.0.5
发布日志: 1, Add new interface
1 parent 26f4f45 commit cf69654

25 files changed

+1034
-145
lines changed

aliyun-python-sdk-ccc/ChangeLog.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
2018-04-25 Version: 1.0.5
2+
1, Add new interface
3+
14
2018-01-12 Version: 1.0.1
25
1, fix the TypeError while building the repeat params
36

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "1.0.1"
1+
__version__ = "1.0.5"
Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,41 @@
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-
# http://www.apache.org/licenses/LICENSE-2.0
10-
#
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-
class AssignUsersRequest(RpcRequest):
22-
23-
def __init__(self):
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+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
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+
class AssignUsersRequest(RpcRequest):
22+
23+
def __init__(self):
2424
RpcRequest.__init__(self, 'CCC', '2017-07-05', 'AssignUsers','ccc')
2525

2626
def get_UserRamIds(self):
2727
return self.get_query_params().get('UserRamIds')
2828

2929
def set_UserRamIds(self,UserRamIds):
30-
for i in range(len(UserRamIds)):
30+
for i in range(len(UserRamIds)):
3131
if UserRamIds[i] is not None:
3232
self.add_query_param('UserRamId.' + str(i + 1) , UserRamIds[i]);
3333

3434
def get_SkillLevels(self):
3535
return self.get_query_params().get('SkillLevels')
3636

3737
def set_SkillLevels(self,SkillLevels):
38-
for i in range(len(SkillLevels)):
38+
for i in range(len(SkillLevels)):
3939
if SkillLevels[i] is not None:
4040
self.add_query_param('SkillLevel.' + str(i + 1) , SkillLevels[i]);
4141

@@ -49,14 +49,14 @@ def get_RoleIds(self):
4949
return self.get_query_params().get('RoleIds')
5050

5151
def set_RoleIds(self,RoleIds):
52-
for i in range(len(RoleIds)):
52+
for i in range(len(RoleIds)):
5353
if RoleIds[i] is not None:
5454
self.add_query_param('RoleId.' + str(i + 1) , RoleIds[i]);
5555

5656
def get_SkillGroupIds(self):
5757
return self.get_query_params().get('SkillGroupIds')
5858

5959
def set_SkillGroupIds(self,SkillGroupIds):
60-
for i in range(len(SkillGroupIds)):
60+
for i in range(len(SkillGroupIds)):
6161
if SkillGroupIds[i] is not None:
6262
self.add_query_param('SkillGroupId.' + str(i + 1) , SkillGroupIds[i]);
Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
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+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
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+
class CreateJobGroupRequest(RpcRequest):
22+
23+
def __init__(self):
24+
RpcRequest.__init__(self, 'CCC', '2017-07-05', 'CreateJobGroup','ccc')
25+
26+
def get_CallingNumbers(self):
27+
return self.get_query_params().get('CallingNumbers')
28+
29+
def set_CallingNumbers(self,CallingNumbers):
30+
for i in range(len(CallingNumbers)):
31+
if CallingNumbers[i] is not None:
32+
self.add_query_param('CallingNumber.' + str(i + 1) , CallingNumbers[i]);
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)
39+
40+
def get_StrategyJson(self):
41+
return self.get_query_params().get('StrategyJson')
42+
43+
def set_StrategyJson(self,StrategyJson):
44+
self.add_query_param('StrategyJson',StrategyJson)
45+
46+
def get_Name(self):
47+
return self.get_query_params().get('Name')
48+
49+
def set_Name(self,Name):
50+
self.add_query_param('Name',Name)
51+
52+
def get_Description(self):
53+
return self.get_query_params().get('Description')
54+
55+
def set_Description(self,Description):
56+
self.add_query_param('Description',Description)
57+
58+
def get_ScenarioId(self):
59+
return self.get_query_params().get('ScenarioId')
60+
61+
def set_ScenarioId(self,ScenarioId):
62+
self.add_query_param('ScenarioId',ScenarioId)
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
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+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
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+
class CreateScenarioRequest(RpcRequest):
22+
23+
def __init__(self):
24+
RpcRequest.__init__(self, 'CCC', '2017-07-05', 'CreateScenario','ccc')
25+
26+
def get_InstanceId(self):
27+
return self.get_query_params().get('InstanceId')
28+
29+
def set_InstanceId(self,InstanceId):
30+
self.add_query_param('InstanceId',InstanceId)
31+
32+
def get_SurveysJsons(self):
33+
return self.get_query_params().get('SurveysJsons')
34+
35+
def set_SurveysJsons(self,SurveysJsons):
36+
for i in range(len(SurveysJsons)):
37+
if SurveysJsons[i] is not None:
38+
self.add_query_param('SurveysJson.' + str(i + 1) , SurveysJsons[i]);
39+
40+
def get_StrategyJson(self):
41+
return self.get_query_params().get('StrategyJson')
42+
43+
def set_StrategyJson(self,StrategyJson):
44+
self.add_query_param('StrategyJson',StrategyJson)
45+
46+
def get_Name(self):
47+
return self.get_query_params().get('Name')
48+
49+
def set_Name(self,Name):
50+
self.add_query_param('Name',Name)
51+
52+
def get_Description(self):
53+
return self.get_query_params().get('Description')
54+
55+
def set_Description(self,Description):
56+
self.add_query_param('Description',Description)
Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,33 @@
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-
# http://www.apache.org/licenses/LICENSE-2.0
10-
#
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-
class CreateSkillGroupRequest(RpcRequest):
22-
23-
def __init__(self):
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+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
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+
class CreateSkillGroupRequest(RpcRequest):
22+
23+
def __init__(self):
2424
RpcRequest.__init__(self, 'CCC', '2017-07-05', 'CreateSkillGroup','ccc')
2525

2626
def get_SkillLevels(self):
2727
return self.get_query_params().get('SkillLevels')
2828

2929
def set_SkillLevels(self,SkillLevels):
30-
for i in range(len(SkillLevels)):
30+
for i in range(len(SkillLevels)):
3131
if SkillLevels[i] is not None:
3232
self.add_query_param('SkillLevel.' + str(i + 1) , SkillLevels[i]);
3333

@@ -41,7 +41,7 @@ def get_OutboundPhoneNumberIds(self):
4141
return self.get_query_params().get('OutboundPhoneNumberIds')
4242

4343
def set_OutboundPhoneNumberIds(self,OutboundPhoneNumberIds):
44-
for i in range(len(OutboundPhoneNumberIds)):
44+
for i in range(len(OutboundPhoneNumberIds)):
4545
if OutboundPhoneNumberIds[i] is not None:
4646
self.add_query_param('OutboundPhoneNumberId.' + str(i + 1) , OutboundPhoneNumberIds[i]);
4747

@@ -61,6 +61,6 @@ def get_UserIds(self):
6161
return self.get_query_params().get('UserIds')
6262

6363
def set_UserIds(self,UserIds):
64-
for i in range(len(UserIds)):
64+
for i in range(len(UserIds)):
6565
if UserIds[i] is not None:
6666
self.add_query_param('UserId.' + str(i + 1) , UserIds[i]);

aliyun-python-sdk-ccc/aliyunsdkccc/request/v20170705/CreateUserRequest.py

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,33 @@
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-
# http://www.apache.org/licenses/LICENSE-2.0
10-
#
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-
class CreateUserRequest(RpcRequest):
22-
23-
def __init__(self):
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+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
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+
class CreateUserRequest(RpcRequest):
22+
23+
def __init__(self):
2424
RpcRequest.__init__(self, 'CCC', '2017-07-05', 'CreateUser','ccc')
2525

2626
def get_SkillLevels(self):
2727
return self.get_query_params().get('SkillLevels')
2828

2929
def set_SkillLevels(self,SkillLevels):
30-
for i in range(len(SkillLevels)):
30+
for i in range(len(SkillLevels)):
3131
if SkillLevels[i] is not None:
3232
self.add_query_param('SkillLevel.' + str(i + 1) , SkillLevels[i]);
3333

@@ -53,7 +53,7 @@ def get_RoleIds(self):
5353
return self.get_query_params().get('RoleIds')
5454

5555
def set_RoleIds(self,RoleIds):
56-
for i in range(len(RoleIds)):
56+
for i in range(len(RoleIds)):
5757
if RoleIds[i] is not None:
5858
self.add_query_param('RoleId.' + str(i + 1) , RoleIds[i]);
5959

@@ -67,7 +67,7 @@ def get_SkillGroupIds(self):
6767
return self.get_query_params().get('SkillGroupIds')
6868

6969
def set_SkillGroupIds(self,SkillGroupIds):
70-
for i in range(len(SkillGroupIds)):
70+
for i in range(len(SkillGroupIds)):
7171
if SkillGroupIds[i] is not None:
7272
self.add_query_param('SkillGroupId.' + str(i + 1) , SkillGroupIds[i]);
7373

0 commit comments

Comments
 (0)