Skip to content

Commit 2b2d343

Browse files
committed
ECS SDK Auto Released By corey.ql,Version:4.16.1
发布日志: 1, Add DryRun into StartInstance, StopInstance and RebootInstance. 2, Add snapshot operations: ExportSnapshot and ImportSnapshot
1 parent 28abb22 commit 2b2d343

File tree

7 files changed

+149
-1
lines changed

7 files changed

+149
-1
lines changed

aliyun-python-sdk-ecs/ChangeLog.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
2019-02-18 Version: 4.16.1
2+
1, Add DryRun into StartInstance, StopInstance and RebootInstance.
3+
2, Add snapshot operations: ExportSnapshot and ImportSnapshot
4+
15
2019-01-17 Version: 4.16.0
26
1, Add api AcceptInquiredSystemEvent.
37
2, Add ExtendedAttribute to response of api DescribeInstanceHistoryEvents.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "4.16.0"
1+
__version__ = "4.16.1"
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 ExportSnapshotRequest(RpcRequest):
22+
23+
def __init__(self):
24+
RpcRequest.__init__(self, 'Ecs', '2014-05-26', 'ExportSnapshot','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_SnapshotId(self):
33+
return self.get_query_params().get('SnapshotId')
34+
35+
def set_SnapshotId(self,SnapshotId):
36+
self.add_query_param('SnapshotId',SnapshotId)
37+
38+
def get_OssBucket(self):
39+
return self.get_query_params().get('OssBucket')
40+
41+
def set_OssBucket(self,OssBucket):
42+
self.add_query_param('OssBucket',OssBucket)
43+
44+
def get_ResourceOwnerAccount(self):
45+
return self.get_query_params().get('ResourceOwnerAccount')
46+
47+
def set_ResourceOwnerAccount(self,ResourceOwnerAccount):
48+
self.add_query_param('ResourceOwnerAccount',ResourceOwnerAccount)
49+
50+
def get_RoleName(self):
51+
return self.get_query_params().get('RoleName')
52+
53+
def set_RoleName(self,RoleName):
54+
self.add_query_param('RoleName',RoleName)
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)
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 ImportSnapshotRequest(RpcRequest):
22+
23+
def __init__(self):
24+
RpcRequest.__init__(self, 'Ecs', '2014-05-26', 'ImportSnapshot','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_SnapshotName(self):
33+
return self.get_query_params().get('SnapshotName')
34+
35+
def set_SnapshotName(self,SnapshotName):
36+
self.add_query_param('SnapshotName',SnapshotName)
37+
38+
def get_OssObject(self):
39+
return self.get_query_params().get('OssObject')
40+
41+
def set_OssObject(self,OssObject):
42+
self.add_query_param('OssObject',OssObject)
43+
44+
def get_OssBucket(self):
45+
return self.get_query_params().get('OssBucket')
46+
47+
def set_OssBucket(self,OssBucket):
48+
self.add_query_param('OssBucket',OssBucket)
49+
50+
def get_ResourceOwnerAccount(self):
51+
return self.get_query_params().get('ResourceOwnerAccount')
52+
53+
def set_ResourceOwnerAccount(self,ResourceOwnerAccount):
54+
self.add_query_param('ResourceOwnerAccount',ResourceOwnerAccount)
55+
56+
def get_RoleName(self):
57+
return self.get_query_params().get('RoleName')
58+
59+
def set_RoleName(self,RoleName):
60+
self.add_query_param('RoleName',RoleName)
61+
62+
def get_OwnerId(self):
63+
return self.get_query_params().get('OwnerId')
64+
65+
def set_OwnerId(self,OwnerId):
66+
self.add_query_param('OwnerId',OwnerId)

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,12 @@ def get_InstanceId(self):
3535
def set_InstanceId(self,InstanceId):
3636
self.add_query_param('InstanceId',InstanceId)
3737

38+
def get_DryRun(self):
39+
return self.get_query_params().get('DryRun')
40+
41+
def set_DryRun(self,DryRun):
42+
self.add_query_param('DryRun',DryRun)
43+
3844
def get_ResourceOwnerAccount(self):
3945
return self.get_query_params().get('ResourceOwnerAccount')
4046

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,12 @@ def get_InstanceId(self):
4141
def set_InstanceId(self,InstanceId):
4242
self.add_query_param('InstanceId',InstanceId)
4343

44+
def get_DryRun(self):
45+
return self.get_query_params().get('DryRun')
46+
47+
def set_DryRun(self,DryRun):
48+
self.add_query_param('DryRun',DryRun)
49+
4450
def get_ResourceOwnerAccount(self):
4551
return self.get_query_params().get('ResourceOwnerAccount')
4652

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,12 @@ def get_InstanceId(self):
3535
def set_InstanceId(self,InstanceId):
3636
self.add_query_param('InstanceId',InstanceId)
3737

38+
def get_DryRun(self):
39+
return self.get_query_params().get('DryRun')
40+
41+
def set_DryRun(self,DryRun):
42+
self.add_query_param('DryRun',DryRun)
43+
3844
def get_ResourceOwnerAccount(self):
3945
return self.get_query_params().get('ResourceOwnerAccount')
4046

0 commit comments

Comments
 (0)