Skip to content

Commit dc3e39c

Browse files
committed
由楚俊发起的ECS SDK自动发布, 版本号:4.7.0
发布日志: 1, Add three interfaces CreateNetworkInterfacePermission DeleteNetworkInterfacePermission DescribeNetworkInterfacePermissions.
1 parent c9d2b96 commit dc3e39c

9 files changed

+336
-1
lines changed

aliyun-python-sdk-ecs/ChangeLog.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
2018-04-10 Version: 4.7.0
2+
1, Add three interfaces CreateNetworkInterfacePermission DeleteNetworkInterfacePermission DescribeNetworkInterfacePermissions.
3+
14
2018-03-23 Version: 4.6.7
25
1, interface DescribeInstanceTypes output InstancePpsRx InstancePpsTx
36

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "4.6.7"
1+
__version__ = "4.7.0"

aliyun-python-sdk-ecs/aliyunsdkecs/request/v20140526/CreateInstanceRequest.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,12 @@ def get_VlanId(self):
215215
def set_VlanId(self,VlanId):
216216
self.add_query_param('VlanId',VlanId)
217217

218+
def get_SpotInterruptionBehavior(self):
219+
return self.get_query_params().get('SpotInterruptionBehavior')
220+
221+
def set_SpotInterruptionBehavior(self,SpotInterruptionBehavior):
222+
self.add_query_param('SpotInterruptionBehavior',SpotInterruptionBehavior)
223+
218224
def get_IoOptimized(self):
219225
return self.get_query_params().get('IoOptimized')
220226

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
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 CreateNetworkInterfacePermissionRequest(RpcRequest):
22+
23+
def __init__(self):
24+
RpcRequest.__init__(self, 'Ecs', '2014-05-26', 'CreateNetworkInterfacePermission','ecs')
25+
26+
def get_ResourceOwnerId(self):
27+
return self.get_query_params().get('ResourceOwnerId')
28+
29+
def set_ResourceOwnerId(self,ResourceOwnerId):
30+
self.add_query_param('ResourceOwnerId',ResourceOwnerId)
31+
32+
def get_AccountId(self):
33+
return self.get_query_params().get('AccountId')
34+
35+
def set_AccountId(self,AccountId):
36+
self.add_query_param('AccountId',AccountId)
37+
38+
def get_ResourceOwnerAccount(self):
39+
return self.get_query_params().get('ResourceOwnerAccount')
40+
41+
def set_ResourceOwnerAccount(self,ResourceOwnerAccount):
42+
self.add_query_param('ResourceOwnerAccount',ResourceOwnerAccount)
43+
44+
def get_OwnerAccount(self):
45+
return self.get_query_params().get('OwnerAccount')
46+
47+
def set_OwnerAccount(self,OwnerAccount):
48+
self.add_query_param('OwnerAccount',OwnerAccount)
49+
50+
def get_Permission(self):
51+
return self.get_query_params().get('Permission')
52+
53+
def set_Permission(self,Permission):
54+
self.add_query_param('Permission',Permission)
55+
56+
def get_OwnerId(self):
57+
return self.get_query_params().get('OwnerId')
58+
59+
def set_OwnerId(self,OwnerId):
60+
self.add_query_param('OwnerId',OwnerId)
61+
62+
def get_NetworkInterfaceId(self):
63+
return self.get_query_params().get('NetworkInterfaceId')
64+
65+
def set_NetworkInterfaceId(self,NetworkInterfaceId):
66+
self.add_query_param('NetworkInterfaceId',NetworkInterfaceId)
Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
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 DeleteNetworkInterfacePermissionRequest(RpcRequest):
22+
23+
def __init__(self):
24+
RpcRequest.__init__(self, 'Ecs', '2014-05-26', 'DeleteNetworkInterfacePermission','ecs')
25+
26+
def get_ResourceOwnerId(self):
27+
return self.get_query_params().get('ResourceOwnerId')
28+
29+
def set_ResourceOwnerId(self,ResourceOwnerId):
30+
self.add_query_param('ResourceOwnerId',ResourceOwnerId)
31+
32+
def get_NetworkInterfacePermissionId(self):
33+
return self.get_query_params().get('NetworkInterfacePermissionId')
34+
35+
def set_NetworkInterfacePermissionId(self,NetworkInterfacePermissionId):
36+
self.add_query_param('NetworkInterfacePermissionId',NetworkInterfacePermissionId)
37+
38+
def get_ResourceOwnerAccount(self):
39+
return self.get_query_params().get('ResourceOwnerAccount')
40+
41+
def set_ResourceOwnerAccount(self,ResourceOwnerAccount):
42+
self.add_query_param('ResourceOwnerAccount',ResourceOwnerAccount)
43+
44+
def get_OwnerAccount(self):
45+
return self.get_query_params().get('OwnerAccount')
46+
47+
def set_OwnerAccount(self,OwnerAccount):
48+
self.add_query_param('OwnerAccount',OwnerAccount)
49+
50+
def get_OwnerId(self):
51+
return self.get_query_params().get('OwnerId')
52+
53+
def set_OwnerId(self,OwnerId):
54+
self.add_query_param('OwnerId',OwnerId)
55+
56+
def get_Force(self):
57+
return self.get_query_params().get('Force')
58+
59+
def set_Force(self,Force):
60+
self.add_query_param('Force',Force)
Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
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 DescribeNetworkInterfacePermissionsRequest(RpcRequest):
22+
23+
def __init__(self):
24+
RpcRequest.__init__(self, 'Ecs', '2014-05-26', 'DescribeNetworkInterfacePermissions','ecs')
25+
26+
def get_ResourceOwnerId(self):
27+
return self.get_query_params().get('ResourceOwnerId')
28+
29+
def set_ResourceOwnerId(self,ResourceOwnerId):
30+
self.add_query_param('ResourceOwnerId',ResourceOwnerId)
31+
32+
def get_PageNumber(self):
33+
return self.get_query_params().get('PageNumber')
34+
35+
def set_PageNumber(self,PageNumber):
36+
self.add_query_param('PageNumber',PageNumber)
37+
38+
def get_PageSize(self):
39+
return self.get_query_params().get('PageSize')
40+
41+
def set_PageSize(self,PageSize):
42+
self.add_query_param('PageSize',PageSize)
43+
44+
def get_NetworkInterfacePermissionIds(self):
45+
return self.get_query_params().get('NetworkInterfacePermissionIds')
46+
47+
def set_NetworkInterfacePermissionIds(self,NetworkInterfacePermissionIds):
48+
for i in range(len(NetworkInterfacePermissionIds)):
49+
if NetworkInterfacePermissionIds[i] is not None:
50+
self.add_query_param('NetworkInterfacePermissionId.' + str(i + 1) , NetworkInterfacePermissionIds[i]);
51+
52+
def get_ResourceOwnerAccount(self):
53+
return self.get_query_params().get('ResourceOwnerAccount')
54+
55+
def set_ResourceOwnerAccount(self,ResourceOwnerAccount):
56+
self.add_query_param('ResourceOwnerAccount',ResourceOwnerAccount)
57+
58+
def get_OwnerAccount(self):
59+
return self.get_query_params().get('OwnerAccount')
60+
61+
def set_OwnerAccount(self,OwnerAccount):
62+
self.add_query_param('OwnerAccount',OwnerAccount)
63+
64+
def get_OwnerId(self):
65+
return self.get_query_params().get('OwnerId')
66+
67+
def set_OwnerId(self,OwnerId):
68+
self.add_query_param('OwnerId',OwnerId)
69+
70+
def get_NetworkInterfaceId(self):
71+
return self.get_query_params().get('NetworkInterfaceId')
72+
73+
def set_NetworkInterfaceId(self,NetworkInterfaceId):
74+
self.add_query_param('NetworkInterfaceId',NetworkInterfaceId)
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
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 GetInstanceConsoleOutputRequest(RpcRequest):
22+
23+
def __init__(self):
24+
RpcRequest.__init__(self, 'Ecs', '2014-05-26', 'GetInstanceConsoleOutput','ecs')
25+
26+
def get_ResourceOwnerId(self):
27+
return self.get_query_params().get('ResourceOwnerId')
28+
29+
def set_ResourceOwnerId(self,ResourceOwnerId):
30+
self.add_query_param('ResourceOwnerId',ResourceOwnerId)
31+
32+
def get_ResourceOwnerAccount(self):
33+
return self.get_query_params().get('ResourceOwnerAccount')
34+
35+
def set_ResourceOwnerAccount(self,ResourceOwnerAccount):
36+
self.add_query_param('ResourceOwnerAccount',ResourceOwnerAccount)
37+
38+
def get_OwnerAccount(self):
39+
return self.get_query_params().get('OwnerAccount')
40+
41+
def set_OwnerAccount(self,OwnerAccount):
42+
self.add_query_param('OwnerAccount',OwnerAccount)
43+
44+
def get_OwnerId(self):
45+
return self.get_query_params().get('OwnerId')
46+
47+
def set_OwnerId(self,OwnerId):
48+
self.add_query_param('OwnerId',OwnerId)
49+
50+
def get_InstanceId(self):
51+
return self.get_query_params().get('InstanceId')
52+
53+
def set_InstanceId(self,InstanceId):
54+
self.add_query_param('InstanceId',InstanceId)
Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
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 GetInstanceScreenshotRequest(RpcRequest):
22+
23+
def __init__(self):
24+
RpcRequest.__init__(self, 'Ecs', '2014-05-26', 'GetInstanceScreenshot','ecs')
25+
26+
def get_ResourceOwnerId(self):
27+
return self.get_query_params().get('ResourceOwnerId')
28+
29+
def set_ResourceOwnerId(self,ResourceOwnerId):
30+
self.add_query_param('ResourceOwnerId',ResourceOwnerId)
31+
32+
def get_ResourceOwnerAccount(self):
33+
return self.get_query_params().get('ResourceOwnerAccount')
34+
35+
def set_ResourceOwnerAccount(self,ResourceOwnerAccount):
36+
self.add_query_param('ResourceOwnerAccount',ResourceOwnerAccount)
37+
38+
def get_Wakeup(self):
39+
return self.get_query_params().get('Wakeup')
40+
41+
def set_Wakeup(self,Wakeup):
42+
self.add_query_param('Wakeup',Wakeup)
43+
44+
def get_OwnerAccount(self):
45+
return self.get_query_params().get('OwnerAccount')
46+
47+
def set_OwnerAccount(self,OwnerAccount):
48+
self.add_query_param('OwnerAccount',OwnerAccount)
49+
50+
def get_OwnerId(self):
51+
return self.get_query_params().get('OwnerId')
52+
53+
def set_OwnerId(self,OwnerId):
54+
self.add_query_param('OwnerId',OwnerId)
55+
56+
def get_InstanceId(self):
57+
return self.get_query_params().get('InstanceId')
58+
59+
def set_InstanceId(self,InstanceId):
60+
self.add_query_param('InstanceId',InstanceId)

aliyun-python-sdk-ecs/aliyunsdkecs/request/v20140526/RunInstancesRequest.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,12 @@ def get_ResourceOwnerId(self):
2929
def set_ResourceOwnerId(self,ResourceOwnerId):
3030
self.add_query_param('ResourceOwnerId',ResourceOwnerId)
3131

32+
def get_HpcClusterId(self):
33+
return self.get_query_params().get('HpcClusterId')
34+
35+
def set_HpcClusterId(self,HpcClusterId):
36+
self.add_query_param('HpcClusterId',HpcClusterId)
37+
3238
def get_SecurityEnhancementStrategy(self):
3339
return self.get_query_params().get('SecurityEnhancementStrategy')
3440

@@ -124,6 +130,12 @@ def get_ImageId(self):
124130
def set_ImageId(self,ImageId):
125131
self.add_query_param('ImageId',ImageId)
126132

133+
def get_SpotInterruptionBehavior(self):
134+
return self.get_query_params().get('SpotInterruptionBehavior')
135+
136+
def set_SpotInterruptionBehavior(self,SpotInterruptionBehavior):
137+
self.add_query_param('SpotInterruptionBehavior',SpotInterruptionBehavior)
138+
127139
def get_ClientToken(self):
128140
return self.get_query_params().get('ClientToken')
129141

0 commit comments

Comments
 (0)