Skip to content

Commit a0da66f

Browse files
committed
OpenSlsService and GetSlsService support RAM subaccount.
1 parent c6f0bcd commit a0da66f

32 files changed

+1338
-0
lines changed

aliyun-python-sdk-sls/ChangeLog.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
2021-01-18 Version: 1.0.8
2+
- OpenSlsService and GetSlsService support RAM subaccount.
3+

aliyun-python-sdk-sls/LICENSE

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
Copyright 1999-present Alibaba Group Holding Ltd.
2+
3+
Licensed under the Apache License, Version 2.0 (the "License");
4+
you may not use this file except in compliance with the License.
5+
You may obtain a copy of the License at
6+
7+
http://www.apache.org/licenses/LICENSE-2.0
8+
9+
Unless required by applicable law or agreed to in writing, software
10+
distributed under the License is distributed on an "AS IS" BASIS,
11+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
See the License for the specific language governing permissions and
13+
limitations under the License.

aliyun-python-sdk-sls/MANIFEST.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
include LICENSE README.rst ChangeLog.txt

aliyun-python-sdk-sls/README.rst

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
=============================================================
2+
aliyun-python-sdk-sls
3+
=============================================================
4+
5+
.. This is the sls module of Aliyun Python SDK.
6+
7+
Aliyun Python SDK is the official software development kit. It makes things easy to integrate your Python application, library, or script with Aliyun services.
8+
9+
This module works on Python versions:
10+
11+
2.6.5 and greater
12+
13+
**Documentation:**
14+
15+
Please visit `http://develop.aliyun.com/sdk/python <http://develop.aliyun.com/sdk/python>`_
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
__version__ = '1.0.8'
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
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+
# #
10+
# # http://www.apache.org/licenses/LICENSE-2.0
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+
21+
class EndpointData():
22+
def __init__(self):
23+
self.endpoint_map = {
24+
"cn-shenzhen": "sls.cn-shenzhen.aliyuncs.com",
25+
"cn-shanghai": "sls.cn-shanghai.aliyuncs.com",
26+
"cn-hongkong": "sls.cn-hongkong.aliyuncs.com",
27+
"ap-southeast-1": "sls.ap-southeast-1.aliyuncs.com",
28+
"eu-central-1": "sls.eu-central-1.aliyuncs.com",
29+
"cn-huhehaote": "sls.cn-huhehaote.aliyuncs.com",
30+
"cn-zhangjiakou": "sls.cn-zhangjiakou.aliyuncs.com",
31+
"cn-hangzhou": "sls.cn-hangzhou.aliyuncs.com",
32+
}
33+
self.endpoint_regional = "central"
34+
35+
def getEndpointMap(self):
36+
return self.endpoint_map
37+
38+
def getEndpointRegional(self):
39+
return self.endpoint_regional
40+
41+
42+
endpoint_data = EndpointData()

aliyun-python-sdk-sls/aliyunsdksls/request/__init__.py

Whitespace-only changes.
Lines changed: 92 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,92 @@
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+
#
10+
# http://www.apache.org/licenses/LICENSE-2.0
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+
from aliyunsdksls.endpoint import endpoint_data
22+
23+
class AnalyzeProductLogRequest(RpcRequest):
24+
25+
def __init__(self):
26+
RpcRequest.__init__(self, 'Sls', '2018-06-13', 'AnalyzeProductLog')
27+
self.set_method('POST')
28+
if hasattr(self, "endpoint_map"):
29+
setattr(self, "endpoint_map", endpoint_data.getEndpointMap())
30+
if hasattr(self, "endpoint_regional"):
31+
setattr(self, "endpoint_regional", endpoint_data.getEndpointRegional())
32+
33+
34+
def get_Project(self):
35+
return self.get_query_params().get('Project')
36+
37+
def set_Project(self,Project):
38+
self.add_query_param('Project',Project)
39+
40+
def get_CloudProduct(self):
41+
return self.get_query_params().get('CloudProduct')
42+
43+
def set_CloudProduct(self,CloudProduct):
44+
self.add_query_param('CloudProduct',CloudProduct)
45+
46+
def get_ResourceQuota(self):
47+
return self.get_query_params().get('ResourceQuota')
48+
49+
def set_ResourceQuota(self,ResourceQuota):
50+
self.add_query_param('ResourceQuota',ResourceQuota)
51+
52+
def get_VariableMap(self):
53+
return self.get_query_params().get('VariableMap')
54+
55+
def set_VariableMap(self,VariableMap):
56+
self.add_query_param('VariableMap',VariableMap)
57+
58+
def get_TTL(self):
59+
return self.get_query_params().get('TTL')
60+
61+
def set_TTL(self,TTL):
62+
self.add_query_param('TTL',TTL)
63+
64+
def get_ClientIp(self):
65+
return self.get_query_params().get('ClientIp')
66+
67+
def set_ClientIp(self,ClientIp):
68+
self.add_query_param('ClientIp',ClientIp)
69+
70+
def get_Region(self):
71+
return self.get_query_params().get('Region')
72+
73+
def set_Region(self,Region):
74+
self.add_query_param('Region',Region)
75+
76+
def get_Lang(self):
77+
return self.get_query_params().get('Lang')
78+
79+
def set_Lang(self,Lang):
80+
self.add_query_param('Lang',Lang)
81+
82+
def get_Logstore(self):
83+
return self.get_query_params().get('Logstore')
84+
85+
def set_Logstore(self,Logstore):
86+
self.add_query_param('Logstore',Logstore)
87+
88+
def get_Overwrite(self):
89+
return self.get_query_params().get('Overwrite')
90+
91+
def set_Overwrite(self,Overwrite):
92+
self.add_query_param('Overwrite',Overwrite)
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
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+
#
10+
# http://www.apache.org/licenses/LICENSE-2.0
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+
from aliyunsdksls.endpoint import endpoint_data
22+
23+
class DeleteLogResourceRequest(RpcRequest):
24+
25+
def __init__(self):
26+
RpcRequest.__init__(self, 'Sls', '2018-06-13', 'DeleteLogResource')
27+
self.set_method('POST')
28+
if hasattr(self, "endpoint_map"):
29+
setattr(self, "endpoint_map", endpoint_data.getEndpointMap())
30+
if hasattr(self, "endpoint_regional"):
31+
setattr(self, "endpoint_regional", endpoint_data.getEndpointRegional())
32+
33+
34+
def get_Project(self):
35+
return self.get_query_params().get('Project')
36+
37+
def set_Project(self,Project):
38+
self.add_query_param('Project',Project)
39+
40+
def get_Region(self):
41+
return self.get_query_params().get('Region')
42+
43+
def set_Region(self,Region):
44+
self.add_query_param('Region',Region)
45+
46+
def get_Logstore(self):
47+
return self.get_query_params().get('Logstore')
48+
49+
def set_Logstore(self,Logstore):
50+
self.add_query_param('Logstore',Logstore)

aliyun-python-sdk-sls/aliyunsdksls/request/v20180613/__init__.py

Whitespace-only changes.

0 commit comments

Comments
 (0)