Skip to content

Commit

Permalink
Update DescribeTrails Response.
Browse files Browse the repository at this point in the history
  • Loading branch information
sdk-team committed Dec 27, 2019
1 parent 9f4f7c4 commit 41604de
Show file tree
Hide file tree
Showing 12 changed files with 98 additions and 70 deletions.
3 changes: 3 additions & 0 deletions aliyun-python-sdk-actiontrail/ChangeLog.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
2019-12-27 Version: 2.0.1
- Update DescribeTrails Response.

2019-03-07 Version: 1.0.0
1, Release ActionTrail API

Expand Down
10 changes: 7 additions & 3 deletions aliyun-python-sdk-actiontrail/README.rst
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
=============================================================
aliyun-python-sdk-actiontrail
This is the actiontrail module of Aliyun Python SDK.
=============================================================

.. This is the actiontrail module of Aliyun Python SDK.
Aliyun Python SDK is the official software development kit. It makes things easy to integrate your Python application, library, or script with Aliyun services.

This module works on Python versions:

2.6.5 and greater
Documentation:

Please visit http://develop.aliyun.com/sdk/python
**Documentation:**

Please visit `http://develop.aliyun.com/sdk/python <http://develop.aliyun.com/sdk/python>`_
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "1.0.0"
__version__ = '2.0.1'
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# http://www.apache.org/licenses/LICENSE-2.0
#
#
# Unless required by applicable law or agreed to in writing,
Expand All @@ -18,6 +18,7 @@
# under the License.

from aliyunsdkcore.request import RpcRequest

class CreateTrailRequest(RpcRequest):

def __init__(self):
Expand All @@ -35,12 +36,24 @@ def get_SlsWriteRoleArn(self):
def set_SlsWriteRoleArn(self,SlsWriteRoleArn):
self.add_query_param('SlsWriteRoleArn',SlsWriteRoleArn)

def get_OssKeyPrefix(self):
return self.get_query_params().get('OssKeyPrefix')

def set_OssKeyPrefix(self,OssKeyPrefix):
self.add_query_param('OssKeyPrefix',OssKeyPrefix)

def get_RoleName(self):
return self.get_query_params().get('RoleName')

def set_RoleName(self,RoleName):
self.add_query_param('RoleName',RoleName)

def get_EventRW(self):
return self.get_query_params().get('EventRW')

def set_EventRW(self,EventRW):
self.add_query_param('EventRW',EventRW)

def get_Name(self):
return self.get_query_params().get('Name')

Expand All @@ -53,14 +66,8 @@ def get_OssBucketName(self):
def set_OssBucketName(self,OssBucketName):
self.add_query_param('OssBucketName',OssBucketName)

def get_OssKeyPrefix(self):
return self.get_query_params().get('OssKeyPrefix')
def get_TrailRegion(self):
return self.get_query_params().get('TrailRegion')

def set_OssKeyPrefix(self,OssKeyPrefix):
self.add_query_param('OssKeyPrefix',OssKeyPrefix)

def get_EventRW(self):
return self.get_query_params().get('EventRW')

def set_EventRW(self,EventRW):
self.add_query_param('EventRW',EventRW)
def set_TrailRegion(self,TrailRegion):
self.add_query_param('TrailRegion',TrailRegion)
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# http://www.apache.org/licenses/LICENSE-2.0
#
#
# Unless required by applicable law or agreed to in writing,
Expand All @@ -18,6 +18,7 @@
# under the License.

from aliyunsdkcore.request import RpcRequest

class DeleteTrailRequest(RpcRequest):

def __init__(self):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# http://www.apache.org/licenses/LICENSE-2.0
#
#
# Unless required by applicable law or agreed to in writing,
Expand All @@ -18,6 +18,7 @@
# under the License.

from aliyunsdkcore.request import RpcRequest

class DescribeRegionsRequest(RpcRequest):

def __init__(self):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# http://www.apache.org/licenses/LICENSE-2.0
#
#
# Unless required by applicable law or agreed to in writing,
Expand All @@ -18,19 +18,20 @@
# under the License.

from aliyunsdkcore.request import RpcRequest

class DescribeTrailsRequest(RpcRequest):

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

def get_NameList(self):
return self.get_query_params().get('NameList')

def set_NameList(self,NameList):
self.add_query_param('NameList',NameList)

def get_IncludeShadowTrails(self):
return self.get_query_params().get('IncludeShadowTrails')

def set_IncludeShadowTrails(self,IncludeShadowTrails):
self.add_query_param('IncludeShadowTrails',IncludeShadowTrails)
self.add_query_param('IncludeShadowTrails',IncludeShadowTrails)

def get_NameList(self):
return self.get_query_params().get('NameList')

def set_NameList(self,NameList):
self.add_query_param('NameList',NameList)
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# http://www.apache.org/licenses/LICENSE-2.0
#
#
# Unless required by applicable law or agreed to in writing,
Expand All @@ -18,6 +18,7 @@
# under the License.

from aliyunsdkcore.request import RpcRequest

class GetTrailStatusRequest(RpcRequest):

def __init__(self):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# http://www.apache.org/licenses/LICENSE-2.0
#
#
# Unless required by applicable law or agreed to in writing,
Expand All @@ -18,6 +18,7 @@
# under the License.

from aliyunsdkcore.request import RpcRequest

class LookupEventsRequest(RpcRequest):

def __init__(self):
Expand All @@ -29,6 +30,36 @@ def get_Request(self):
def set_Request(self,Request):
self.add_query_param('Request',Request)

def get_StartTime(self):
return self.get_query_params().get('StartTime')

def set_StartTime(self,StartTime):
self.add_query_param('StartTime',StartTime)

def get_EventName(self):
return self.get_query_params().get('EventName')

def set_EventName(self,EventName):
self.add_query_param('EventName',EventName)

def get_NextToken(self):
return self.get_query_params().get('NextToken')

def set_NextToken(self,NextToken):
self.add_query_param('NextToken',NextToken)

def get_ServiceName(self):
return self.get_query_params().get('ServiceName')

def set_ServiceName(self,ServiceName):
self.add_query_param('ServiceName',ServiceName)

def get_Event(self):
return self.get_query_params().get('Event')

def set_Event(self,Event):
self.add_query_param('Event',Event)

def get_EventAccessKeyId(self):
return self.get_query_params().get('EventAccessKeyId')

Expand All @@ -47,30 +78,12 @@ def get_EventRW(self):
def set_EventRW(self,EventRW):
self.add_query_param('EventRW',EventRW)

def get_StartTime(self):
return self.get_query_params().get('StartTime')

def set_StartTime(self,StartTime):
self.add_query_param('StartTime',StartTime)

def get_ResourceType(self):
return self.get_query_params().get('ResourceType')

def set_ResourceType(self,ResourceType):
self.add_query_param('ResourceType',ResourceType)

def get_EventName(self):
return self.get_query_params().get('EventName')

def set_EventName(self,EventName):
self.add_query_param('EventName',EventName)

def get_NextToken(self):
return self.get_query_params().get('NextToken')

def set_NextToken(self,NextToken):
self.add_query_param('NextToken',NextToken)

def get_MaxResults(self):
return self.get_query_params().get('MaxResults')

Expand All @@ -83,24 +96,12 @@ def get_EventType(self):
def set_EventType(self,EventType):
self.add_query_param('EventType',EventType)

def get_ServiceName(self):
return self.get_query_params().get('ServiceName')

def set_ServiceName(self,ServiceName):
self.add_query_param('ServiceName',ServiceName)

def get_ResourceName(self):
return self.get_query_params().get('ResourceName')

def set_ResourceName(self,ResourceName):
self.add_query_param('ResourceName',ResourceName)

def get_Event(self):
return self.get_query_params().get('Event')

def set_Event(self,Event):
self.add_query_param('Event',Event)

def get_User(self):
return self.get_query_params().get('User')

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# http://www.apache.org/licenses/LICENSE-2.0
#
#
# Unless required by applicable law or agreed to in writing,
Expand All @@ -18,6 +18,7 @@
# under the License.

from aliyunsdkcore.request import RpcRequest

class StartLoggingRequest(RpcRequest):

def __init__(self):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# http://www.apache.org/licenses/LICENSE-2.0
#
#
# Unless required by applicable law or agreed to in writing,
Expand All @@ -18,6 +18,7 @@
# under the License.

from aliyunsdkcore.request import RpcRequest

class StopLoggingRequest(RpcRequest):

def __init__(self):
Expand Down
Loading

0 comments on commit 41604de

Please sign in to comment.