Skip to content

Commit

Permalink
Support API for Trail.
Browse files Browse the repository at this point in the history
  • Loading branch information
sdk-team committed Jun 15, 2021
1 parent 9525ec6 commit fc1d6ef
Show file tree
Hide file tree
Showing 15 changed files with 53 additions and 146 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 @@
2021-06-15 Version: 2.0.4
- Support API for Trail.

2020-11-26 Version: 2.0.3
- Generated 2020-07-06, 2017-12-04 for `Actiontrail`.

Expand Down
13 changes: 13 additions & 0 deletions aliyun-python-sdk-actiontrail/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
Copyright 1999-present Alibaba Group Holding Ltd.

Licensed under the Apache License, Version 2.0 (the "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

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
1 change: 1 addition & 0 deletions aliyun-python-sdk-actiontrail/MANIFEST.in
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
include LICENSE README.rst ChangeLog.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '2.0.3'
__version__ = '2.0.4'

This file was deleted.

Empty file.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
class CreateTrailRequest(RpcRequest):

def __init__(self):
RpcRequest.__init__(self, 'Actiontrail', '2017-12-04', 'CreateTrail','actiontrail')
RpcRequest.__init__(self, 'Actiontrail', '2020-07-06', 'CreateTrail','actiontrail')
self.set_method('POST')
if hasattr(self, "endpoint_map"):
setattr(self, "endpoint_map", endpoint_data.getEndpointMap())
Expand Down Expand Up @@ -55,17 +55,11 @@ def get_OssKeyPrefix(self):
def set_OssKeyPrefix(self,OssKeyPrefix):
self.add_query_param('OssKeyPrefix',OssKeyPrefix)

def get_MnsTopicArn(self):
return self.get_query_params().get('MnsTopicArn')
def get_OssWriteRoleArn(self):
return self.get_query_params().get('OssWriteRoleArn')

def set_MnsTopicArn(self,MnsTopicArn):
self.add_query_param('MnsTopicArn',MnsTopicArn)

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

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

def get_EventRW(self):
return self.get_query_params().get('EventRW')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
class DeleteTrailRequest(RpcRequest):

def __init__(self):
RpcRequest.__init__(self, 'Actiontrail', '2017-12-04', 'DeleteTrail','actiontrail')
RpcRequest.__init__(self, 'Actiontrail', '2020-07-06', 'DeleteTrail','actiontrail')
self.set_method('POST')
if hasattr(self, "endpoint_map"):
setattr(self, "endpoint_map", endpoint_data.getEndpointMap())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,16 @@
class DescribeRegionsRequest(RpcRequest):

def __init__(self):
RpcRequest.__init__(self, 'Actiontrail', '2017-12-04', 'DescribeRegions','actiontrail')
RpcRequest.__init__(self, 'Actiontrail', '2020-07-06', 'DescribeRegions','actiontrail')
self.set_method('POST')
if hasattr(self, "endpoint_map"):
setattr(self, "endpoint_map", endpoint_data.getEndpointMap())
if hasattr(self, "endpoint_regional"):
setattr(self, "endpoint_regional", endpoint_data.getEndpointRegional())


def get_AcceptLanguage(self):
return self.get_query_params().get('AcceptLanguage')

def set_AcceptLanguage(self,AcceptLanguage):
self.add_query_param('AcceptLanguage',AcceptLanguage)
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,20 @@
class DescribeTrailsRequest(RpcRequest):

def __init__(self):
RpcRequest.__init__(self, 'Actiontrail', '2017-12-04', 'DescribeTrails','actiontrail')
RpcRequest.__init__(self, 'Actiontrail', '2020-07-06', 'DescribeTrails','actiontrail')
self.set_method('POST')
if hasattr(self, "endpoint_map"):
setattr(self, "endpoint_map", endpoint_data.getEndpointMap())
if hasattr(self, "endpoint_regional"):
setattr(self, "endpoint_regional", endpoint_data.getEndpointRegional())


def get_IncludeOrganizationTrail(self):
return self.get_query_params().get('IncludeOrganizationTrail')

def set_IncludeOrganizationTrail(self,IncludeOrganizationTrail):
self.add_query_param('IncludeOrganizationTrail',IncludeOrganizationTrail)

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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
class GetTrailStatusRequest(RpcRequest):

def __init__(self):
RpcRequest.__init__(self, 'Actiontrail', '2017-12-04', 'GetTrailStatus','actiontrail')
RpcRequest.__init__(self, 'Actiontrail', '2020-07-06', 'GetTrailStatus','actiontrail')
self.set_method('POST')
if hasattr(self, "endpoint_map"):
setattr(self, "endpoint_map", endpoint_data.getEndpointMap())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
class StartLoggingRequest(RpcRequest):

def __init__(self):
RpcRequest.__init__(self, 'Actiontrail', '2017-12-04', 'StartLogging','actiontrail')
self.set_method('GET')
RpcRequest.__init__(self, 'Actiontrail', '2020-07-06', 'StartLogging','actiontrail')
self.set_method('POST')
if hasattr(self, "endpoint_map"):
setattr(self, "endpoint_map", endpoint_data.getEndpointMap())
if hasattr(self, "endpoint_regional"):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
class StopLoggingRequest(RpcRequest):

def __init__(self):
RpcRequest.__init__(self, 'Actiontrail', '2017-12-04', 'StopLogging','actiontrail')
RpcRequest.__init__(self, 'Actiontrail', '2020-07-06', 'StopLogging','actiontrail')
self.set_method('GET')
if hasattr(self, "endpoint_map"):
setattr(self, "endpoint_map", endpoint_data.getEndpointMap())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
class UpdateTrailRequest(RpcRequest):

def __init__(self):
RpcRequest.__init__(self, 'Actiontrail', '2017-12-04', 'UpdateTrail','actiontrail')
RpcRequest.__init__(self, 'Actiontrail', '2020-07-06', 'UpdateTrail','actiontrail')
self.set_method('POST')
if hasattr(self, "endpoint_map"):
setattr(self, "endpoint_map", endpoint_data.getEndpointMap())
Expand All @@ -49,17 +49,11 @@ def get_OssKeyPrefix(self):
def set_OssKeyPrefix(self,OssKeyPrefix):
self.add_query_param('OssKeyPrefix',OssKeyPrefix)

def get_MnsTopicArn(self):
return self.get_query_params().get('MnsTopicArn')
def get_OssWriteRoleArn(self):
return self.get_query_params().get('OssWriteRoleArn')

def set_MnsTopicArn(self,MnsTopicArn):
self.add_query_param('MnsTopicArn',MnsTopicArn)

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

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

def get_EventRW(self):
return self.get_query_params().get('EventRW')
Expand Down
5 changes: 5 additions & 0 deletions aliyun-python-sdk-actiontrail/setup.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[metadata]
license_file = LICENSE

[bdist_wheel]
universal = 1

0 comments on commit fc1d6ef

Please sign in to comment.