Skip to content

Commit 41604de

Browse files
committed
Update DescribeTrails Response.
1 parent 9f4f7c4 commit 41604de

File tree

12 files changed

+98
-70
lines changed

12 files changed

+98
-70
lines changed

aliyun-python-sdk-actiontrail/ChangeLog.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
2019-12-27 Version: 2.0.1
2+
- Update DescribeTrails Response.
3+
14
2019-03-07 Version: 1.0.0
25
1, Release ActionTrail API
36

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,15 @@
1+
=============================================================
12
aliyun-python-sdk-actiontrail
2-
This is the actiontrail module of Aliyun Python SDK.
3+
=============================================================
4+
5+
.. This is the actiontrail module of Aliyun Python SDK.
36
47
Aliyun Python SDK is the official software development kit. It makes things easy to integrate your Python application, library, or script with Aliyun services.
58

69
This module works on Python versions:
710

811
2.6.5 and greater
9-
Documentation:
1012

11-
Please visit http://develop.aliyun.com/sdk/python
13+
**Documentation:**
14+
15+
Please visit `http://develop.aliyun.com/sdk/python <http://develop.aliyun.com/sdk/python>`_
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "1.0.0"
1+
__version__ = '2.0.1'

aliyun-python-sdk-actiontrail/aliyunsdkactiontrail/request/v20171204/CreateTrailRequest.py

Lines changed: 18 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
# "License"); you may not use this file except in compliance
77
# with the License. You may obtain a copy of the License at
88
#
9-
# http://www.apache.org/licenses/LICENSE-2.0
109
#
10+
# http://www.apache.org/licenses/LICENSE-2.0
1111
#
1212
#
1313
# Unless required by applicable law or agreed to in writing,
@@ -18,6 +18,7 @@
1818
# under the License.
1919

2020
from aliyunsdkcore.request import RpcRequest
21+
2122
class CreateTrailRequest(RpcRequest):
2223

2324
def __init__(self):
@@ -35,12 +36,24 @@ def get_SlsWriteRoleArn(self):
3536
def set_SlsWriteRoleArn(self,SlsWriteRoleArn):
3637
self.add_query_param('SlsWriteRoleArn',SlsWriteRoleArn)
3738

39+
def get_OssKeyPrefix(self):
40+
return self.get_query_params().get('OssKeyPrefix')
41+
42+
def set_OssKeyPrefix(self,OssKeyPrefix):
43+
self.add_query_param('OssKeyPrefix',OssKeyPrefix)
44+
3845
def get_RoleName(self):
3946
return self.get_query_params().get('RoleName')
4047

4148
def set_RoleName(self,RoleName):
4249
self.add_query_param('RoleName',RoleName)
4350

51+
def get_EventRW(self):
52+
return self.get_query_params().get('EventRW')
53+
54+
def set_EventRW(self,EventRW):
55+
self.add_query_param('EventRW',EventRW)
56+
4457
def get_Name(self):
4558
return self.get_query_params().get('Name')
4659

@@ -53,14 +66,8 @@ def get_OssBucketName(self):
5366
def set_OssBucketName(self,OssBucketName):
5467
self.add_query_param('OssBucketName',OssBucketName)
5568

56-
def get_OssKeyPrefix(self):
57-
return self.get_query_params().get('OssKeyPrefix')
69+
def get_TrailRegion(self):
70+
return self.get_query_params().get('TrailRegion')
5871

59-
def set_OssKeyPrefix(self,OssKeyPrefix):
60-
self.add_query_param('OssKeyPrefix',OssKeyPrefix)
61-
62-
def get_EventRW(self):
63-
return self.get_query_params().get('EventRW')
64-
65-
def set_EventRW(self,EventRW):
66-
self.add_query_param('EventRW',EventRW)
72+
def set_TrailRegion(self,TrailRegion):
73+
self.add_query_param('TrailRegion',TrailRegion)

aliyun-python-sdk-actiontrail/aliyunsdkactiontrail/request/v20171204/DeleteTrailRequest.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
# "License"); you may not use this file except in compliance
77
# with the License. You may obtain a copy of the License at
88
#
9-
# http://www.apache.org/licenses/LICENSE-2.0
109
#
10+
# http://www.apache.org/licenses/LICENSE-2.0
1111
#
1212
#
1313
# Unless required by applicable law or agreed to in writing,
@@ -18,6 +18,7 @@
1818
# under the License.
1919

2020
from aliyunsdkcore.request import RpcRequest
21+
2122
class DeleteTrailRequest(RpcRequest):
2223

2324
def __init__(self):

aliyun-python-sdk-actiontrail/aliyunsdkactiontrail/request/v20171204/DescribeRegionsRequest.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
# "License"); you may not use this file except in compliance
77
# with the License. You may obtain a copy of the License at
88
#
9-
# http://www.apache.org/licenses/LICENSE-2.0
109
#
10+
# http://www.apache.org/licenses/LICENSE-2.0
1111
#
1212
#
1313
# Unless required by applicable law or agreed to in writing,
@@ -18,6 +18,7 @@
1818
# under the License.
1919

2020
from aliyunsdkcore.request import RpcRequest
21+
2122
class DescribeRegionsRequest(RpcRequest):
2223

2324
def __init__(self):

aliyun-python-sdk-actiontrail/aliyunsdkactiontrail/request/v20171204/DescribeTrailsRequest.py

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
# "License"); you may not use this file except in compliance
77
# with the License. You may obtain a copy of the License at
88
#
9-
# http://www.apache.org/licenses/LICENSE-2.0
109
#
10+
# http://www.apache.org/licenses/LICENSE-2.0
1111
#
1212
#
1313
# Unless required by applicable law or agreed to in writing,
@@ -18,19 +18,20 @@
1818
# under the License.
1919

2020
from aliyunsdkcore.request import RpcRequest
21+
2122
class DescribeTrailsRequest(RpcRequest):
2223

2324
def __init__(self):
2425
RpcRequest.__init__(self, 'Actiontrail', '2017-12-04', 'DescribeTrails','actiontrail')
2526

26-
def get_NameList(self):
27-
return self.get_query_params().get('NameList')
28-
29-
def set_NameList(self,NameList):
30-
self.add_query_param('NameList',NameList)
31-
3227
def get_IncludeShadowTrails(self):
3328
return self.get_query_params().get('IncludeShadowTrails')
3429

3530
def set_IncludeShadowTrails(self,IncludeShadowTrails):
36-
self.add_query_param('IncludeShadowTrails',IncludeShadowTrails)
31+
self.add_query_param('IncludeShadowTrails',IncludeShadowTrails)
32+
33+
def get_NameList(self):
34+
return self.get_query_params().get('NameList')
35+
36+
def set_NameList(self,NameList):
37+
self.add_query_param('NameList',NameList)

aliyun-python-sdk-actiontrail/aliyunsdkactiontrail/request/v20171204/GetTrailStatusRequest.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
# "License"); you may not use this file except in compliance
77
# with the License. You may obtain a copy of the License at
88
#
9-
# http://www.apache.org/licenses/LICENSE-2.0
109
#
10+
# http://www.apache.org/licenses/LICENSE-2.0
1111
#
1212
#
1313
# Unless required by applicable law or agreed to in writing,
@@ -18,6 +18,7 @@
1818
# under the License.
1919

2020
from aliyunsdkcore.request import RpcRequest
21+
2122
class GetTrailStatusRequest(RpcRequest):
2223

2324
def __init__(self):

aliyun-python-sdk-actiontrail/aliyunsdkactiontrail/request/v20171204/LookupEventsRequest.py

Lines changed: 32 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
# "License"); you may not use this file except in compliance
77
# with the License. You may obtain a copy of the License at
88
#
9-
# http://www.apache.org/licenses/LICENSE-2.0
109
#
10+
# http://www.apache.org/licenses/LICENSE-2.0
1111
#
1212
#
1313
# Unless required by applicable law or agreed to in writing,
@@ -18,6 +18,7 @@
1818
# under the License.
1919

2020
from aliyunsdkcore.request import RpcRequest
21+
2122
class LookupEventsRequest(RpcRequest):
2223

2324
def __init__(self):
@@ -29,6 +30,36 @@ def get_Request(self):
2930
def set_Request(self,Request):
3031
self.add_query_param('Request',Request)
3132

33+
def get_StartTime(self):
34+
return self.get_query_params().get('StartTime')
35+
36+
def set_StartTime(self,StartTime):
37+
self.add_query_param('StartTime',StartTime)
38+
39+
def get_EventName(self):
40+
return self.get_query_params().get('EventName')
41+
42+
def set_EventName(self,EventName):
43+
self.add_query_param('EventName',EventName)
44+
45+
def get_NextToken(self):
46+
return self.get_query_params().get('NextToken')
47+
48+
def set_NextToken(self,NextToken):
49+
self.add_query_param('NextToken',NextToken)
50+
51+
def get_ServiceName(self):
52+
return self.get_query_params().get('ServiceName')
53+
54+
def set_ServiceName(self,ServiceName):
55+
self.add_query_param('ServiceName',ServiceName)
56+
57+
def get_Event(self):
58+
return self.get_query_params().get('Event')
59+
60+
def set_Event(self,Event):
61+
self.add_query_param('Event',Event)
62+
3263
def get_EventAccessKeyId(self):
3364
return self.get_query_params().get('EventAccessKeyId')
3465

@@ -47,30 +78,12 @@ def get_EventRW(self):
4778
def set_EventRW(self,EventRW):
4879
self.add_query_param('EventRW',EventRW)
4980

50-
def get_StartTime(self):
51-
return self.get_query_params().get('StartTime')
52-
53-
def set_StartTime(self,StartTime):
54-
self.add_query_param('StartTime',StartTime)
55-
5681
def get_ResourceType(self):
5782
return self.get_query_params().get('ResourceType')
5883

5984
def set_ResourceType(self,ResourceType):
6085
self.add_query_param('ResourceType',ResourceType)
6186

62-
def get_EventName(self):
63-
return self.get_query_params().get('EventName')
64-
65-
def set_EventName(self,EventName):
66-
self.add_query_param('EventName',EventName)
67-
68-
def get_NextToken(self):
69-
return self.get_query_params().get('NextToken')
70-
71-
def set_NextToken(self,NextToken):
72-
self.add_query_param('NextToken',NextToken)
73-
7487
def get_MaxResults(self):
7588
return self.get_query_params().get('MaxResults')
7689

@@ -83,24 +96,12 @@ def get_EventType(self):
8396
def set_EventType(self,EventType):
8497
self.add_query_param('EventType',EventType)
8598

86-
def get_ServiceName(self):
87-
return self.get_query_params().get('ServiceName')
88-
89-
def set_ServiceName(self,ServiceName):
90-
self.add_query_param('ServiceName',ServiceName)
91-
9299
def get_ResourceName(self):
93100
return self.get_query_params().get('ResourceName')
94101

95102
def set_ResourceName(self,ResourceName):
96103
self.add_query_param('ResourceName',ResourceName)
97104

98-
def get_Event(self):
99-
return self.get_query_params().get('Event')
100-
101-
def set_Event(self,Event):
102-
self.add_query_param('Event',Event)
103-
104105
def get_User(self):
105106
return self.get_query_params().get('User')
106107

aliyun-python-sdk-actiontrail/aliyunsdkactiontrail/request/v20171204/StartLoggingRequest.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
# "License"); you may not use this file except in compliance
77
# with the License. You may obtain a copy of the License at
88
#
9-
# http://www.apache.org/licenses/LICENSE-2.0
109
#
10+
# http://www.apache.org/licenses/LICENSE-2.0
1111
#
1212
#
1313
# Unless required by applicable law or agreed to in writing,
@@ -18,6 +18,7 @@
1818
# under the License.
1919

2020
from aliyunsdkcore.request import RpcRequest
21+
2122
class StartLoggingRequest(RpcRequest):
2223

2324
def __init__(self):

aliyun-python-sdk-actiontrail/aliyunsdkactiontrail/request/v20171204/StopLoggingRequest.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
# "License"); you may not use this file except in compliance
77
# with the License. You may obtain a copy of the License at
88
#
9-
# http://www.apache.org/licenses/LICENSE-2.0
109
#
10+
# http://www.apache.org/licenses/LICENSE-2.0
1111
#
1212
#
1313
# Unless required by applicable law or agreed to in writing,
@@ -18,6 +18,7 @@
1818
# under the License.
1919

2020
from aliyunsdkcore.request import RpcRequest
21+
2122
class StopLoggingRequest(RpcRequest):
2223

2324
def __init__(self):

0 commit comments

Comments
 (0)