Skip to content

Commit bae57b6

Browse files
committed
由厚勇发起的ECS SDK自动发布, 版本号:4.8.0
发布日志: 1, Add new interface InstallCloudAssistant, support Cloud Assistant client installation. 2, Add new interface DescribeCloudAssistantStatus, support Cloud Assistant client status detection.
1 parent 04365b7 commit bae57b6

File tree

4 files changed

+117
-1
lines changed

4 files changed

+117
-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+
2018-05-02 Version: 4.8.0
2+
1, Add new interface InstallCloudAssistant, support Cloud Assistant client installation.
3+
2, Add new interface DescribeCloudAssistantStatus, support Cloud Assistant client status detection.
4+
15
2018-04-23 Version: 4.7.1
26
1, DescribeInstanceHistoryEvents adds parameter instanceEventTypes and instanceEventCycleStatuss.
37
2, InstanceId parameter is not necessary for DescribeInstanceHistoryEvents now.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "4.7.1"
1+
__version__ = "4.8.0"
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 DescribeCloudAssistantStatusRequest(RpcRequest):
22+
23+
def __init__(self):
24+
RpcRequest.__init__(self, 'Ecs', '2014-05-26', 'DescribeCloudAssistantStatus','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_InstanceIds(self):
51+
return self.get_query_params().get('InstanceIds')
52+
53+
def set_InstanceIds(self,InstanceIds):
54+
for i in range(len(InstanceIds)):
55+
if InstanceIds[i] is not None:
56+
self.add_query_param('InstanceId.' + str(i + 1) , InstanceIds[i]);
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 InstallCloudAssistantRequest(RpcRequest):
22+
23+
def __init__(self):
24+
RpcRequest.__init__(self, 'Ecs', '2014-05-26', 'InstallCloudAssistant','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_InstanceIds(self):
51+
return self.get_query_params().get('InstanceIds')
52+
53+
def set_InstanceIds(self,InstanceIds):
54+
for i in range(len(InstanceIds)):
55+
if InstanceIds[i] is not None:
56+
self.add_query_param('InstanceId.' + str(i + 1) , InstanceIds[i]);

0 commit comments

Comments
 (0)