Skip to content

Commit 3b95210

Browse files
committed
由柏霜发起的ECS SDK自动发布, 版本号:4.7.1
发布日志: 1, DescribeInstanceHistoryEvents adds parameter instanceEventTypes and instanceEventCycleStatuss. 2, InstanceId parameter is not necessary for DescribeInstanceHistoryEvents now. 3, DescribeInstancesFullStatus adds parameter instanceEventTypes.
1 parent 8df71c1 commit 3b95210

9 files changed

+178
-1
lines changed

aliyun-python-sdk-ecs/ChangeLog.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
2018-04-23 Version: 4.7.1
2+
1, DescribeInstanceHistoryEvents adds parameter instanceEventTypes and instanceEventCycleStatuss.
3+
2, InstanceId parameter is not necessary for DescribeInstanceHistoryEvents now.
4+
3, DescribeInstancesFullStatus adds parameter instanceEventTypes.
5+
16
2018-04-10 Version: 4.7.0
27
1, Add three interfaces CreateNetworkInterfacePermission DeleteNetworkInterfacePermission DescribeNetworkInterfacePermissions.
38

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "4.7.0"
1+
__version__ = "4.7.1"
Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
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 AssignPrivateIpAddressesRequest(RpcRequest):
22+
23+
def __init__(self):
24+
RpcRequest.__init__(self, 'Ecs', '2014-05-26', 'AssignPrivateIpAddresses','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_SecondaryPrivateIpAddressCount(self):
33+
return self.get_query_params().get('SecondaryPrivateIpAddressCount')
34+
35+
def set_SecondaryPrivateIpAddressCount(self,SecondaryPrivateIpAddressCount):
36+
self.add_query_param('SecondaryPrivateIpAddressCount',SecondaryPrivateIpAddressCount)
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_PrivateIpAddresss(self):
57+
return self.get_query_params().get('PrivateIpAddresss')
58+
59+
def set_PrivateIpAddresss(self,PrivateIpAddresss):
60+
for i in range(len(PrivateIpAddresss)):
61+
if PrivateIpAddresss[i] is not None:
62+
self.add_query_param('PrivateIpAddress.' + str(i + 1) , PrivateIpAddresss[i]);
63+
64+
def get_NetworkInterfaceId(self):
65+
return self.get_query_params().get('NetworkInterfaceId')
66+
67+
def set_NetworkInterfaceId(self,NetworkInterfaceId):
68+
self.add_query_param('NetworkInterfaceId',NetworkInterfaceId)

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -311,6 +311,12 @@ def get_RamRoleName(self):
311311
def set_RamRoleName(self,RamRoleName):
312312
self.add_query_param('RamRoleName',RamRoleName)
313313

314+
def get_DedicatedHostId(self):
315+
return self.get_query_params().get('DedicatedHostId')
316+
317+
def set_DedicatedHostId(self,DedicatedHostId):
318+
self.add_query_param('DedicatedHostId',DedicatedHostId)
319+
314320
def get_ClusterId(self):
315321
return self.get_query_params().get('ClusterId')
316322

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,12 @@ def get_OwnerAccount(self):
7777
def set_OwnerAccount(self,OwnerAccount):
7878
self.add_query_param('OwnerAccount',OwnerAccount)
7979

80+
def get_DedicatedHostId(self):
81+
return self.get_query_params().get('DedicatedHostId')
82+
83+
def set_DedicatedHostId(self,DedicatedHostId):
84+
self.add_query_param('DedicatedHostId',DedicatedHostId)
85+
8086
def get_OwnerId(self):
8187
return self.get_query_params().get('OwnerId')
8288

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

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,12 +55,28 @@ def get_PageSize(self):
5555
def set_PageSize(self,PageSize):
5656
self.add_query_param('PageSize',PageSize)
5757

58+
def get_InstanceEventCycleStatuss(self):
59+
return self.get_query_params().get('InstanceEventCycleStatuss')
60+
61+
def set_InstanceEventCycleStatuss(self,InstanceEventCycleStatuss):
62+
for i in range(len(InstanceEventCycleStatuss)):
63+
if InstanceEventCycleStatuss[i] is not None:
64+
self.add_query_param('InstanceEventCycleStatus.' + str(i + 1) , InstanceEventCycleStatuss[i]);
65+
5866
def get_EventPublishTimeEnd(self):
5967
return self.get_query_params().get('EventPublishTime.End')
6068

6169
def set_EventPublishTimeEnd(self,EventPublishTimeEnd):
6270
self.add_query_param('EventPublishTime.End',EventPublishTimeEnd)
6371

72+
def get_InstanceEventTypes(self):
73+
return self.get_query_params().get('InstanceEventTypes')
74+
75+
def set_InstanceEventTypes(self,InstanceEventTypes):
76+
for i in range(len(InstanceEventTypes)):
77+
if InstanceEventTypes[i] is not None:
78+
self.add_query_param('InstanceEventType.' + str(i + 1) , InstanceEventTypes[i]);
79+
6480
def get_ResourceOwnerAccount(self):
6581
return self.get_query_params().get('ResourceOwnerAccount')
6682

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,14 @@ def get_EventPublishTimeEnd(self):
5555
def set_EventPublishTimeEnd(self,EventPublishTimeEnd):
5656
self.add_query_param('EventPublishTime.End',EventPublishTimeEnd)
5757

58+
def get_InstanceEventTypes(self):
59+
return self.get_query_params().get('InstanceEventTypes')
60+
61+
def set_InstanceEventTypes(self,InstanceEventTypes):
62+
for i in range(len(InstanceEventTypes)):
63+
if InstanceEventTypes[i] is not None:
64+
self.add_query_param('InstanceEventType.' + str(i + 1) , InstanceEventTypes[i]);
65+
5866
def get_ResourceOwnerAccount(self):
5967
return self.get_query_params().get('ResourceOwnerAccount')
6068

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -237,6 +237,12 @@ def get_AutoReleaseTime(self):
237237
def set_AutoReleaseTime(self,AutoReleaseTime):
238238
self.add_query_param('AutoReleaseTime',AutoReleaseTime)
239239

240+
def get_DedicatedHostId(self):
241+
return self.get_query_params().get('DedicatedHostId')
242+
243+
def set_DedicatedHostId(self,DedicatedHostId):
244+
self.add_query_param('DedicatedHostId',DedicatedHostId)
245+
240246
def get_DataDisks(self):
241247
return self.get_query_params().get('DataDisks')
242248

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 UnassignPrivateIpAddressesRequest(RpcRequest):
22+
23+
def __init__(self):
24+
RpcRequest.__init__(self, 'Ecs', '2014-05-26', 'UnassignPrivateIpAddresses','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_PrivateIpAddresss(self):
51+
return self.get_query_params().get('PrivateIpAddresss')
52+
53+
def set_PrivateIpAddresss(self,PrivateIpAddresss):
54+
for i in range(len(PrivateIpAddresss)):
55+
if PrivateIpAddresss[i] is not None:
56+
self.add_query_param('PrivateIpAddress.' + str(i + 1) , PrivateIpAddresss[i]);
57+
58+
def get_NetworkInterfaceId(self):
59+
return self.get_query_params().get('NetworkInterfaceId')
60+
61+
def set_NetworkInterfaceId(self,NetworkInterfaceId):
62+
self.add_query_param('NetworkInterfaceId',NetworkInterfaceId)

0 commit comments

Comments
 (0)