Skip to content

Commit 7e19e8f

Browse files
committed
Add Alert Init API.
1 parent 89525c9 commit 7e19e8f

12 files changed

+426
-107
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
2021-09-01 Version: 1.0.9
2+
- Add Alert Init API.
3+
14
2021-01-18 Version: 1.0.8
25
- OpenSlsService and GetSlsService support RAM subaccount.
36

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = '1.0.8'
1+
__version__ = '1.0.9'

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

Lines changed: 0 additions & 92 deletions
This file was deleted.

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

Whitespace-only changes.
Lines changed: 104 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,104 @@
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 CreateImportIngestionJobRequest(RpcRequest):
24+
25+
def __init__(self):
26+
RpcRequest.__init__(self, 'Sls', '2019-10-23', 'CreateImportIngestionJob')
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_Args(self):
35+
return self.get_body_params().get('Args')
36+
37+
def set_Args(self,Args):
38+
self.add_body_params('Args', Args)
39+
40+
def get_Image(self):
41+
return self.get_body_params().get('Image')
42+
43+
def set_Image(self,Image):
44+
self.add_body_params('Image', Image)
45+
46+
def get_EnvFromSecret(self):
47+
return self.get_body_params().get('EnvFromSecret')
48+
49+
def set_EnvFromSecret(self,EnvFromSecret):
50+
self.add_body_params('EnvFromSecret', EnvFromSecret)
51+
52+
def get_RestartPolicy(self):
53+
return self.get_body_params().get('RestartPolicy')
54+
55+
def set_RestartPolicy(self,RestartPolicy):
56+
self.add_body_params('RestartPolicy', RestartPolicy)
57+
58+
def get_Parallelism(self):
59+
return self.get_body_params().get('Parallelism')
60+
61+
def set_Parallelism(self,Parallelism):
62+
self.add_body_params('Parallelism', Parallelism)
63+
64+
def get_Namespace(self):
65+
return self.get_body_params().get('Namespace')
66+
67+
def set_Namespace(self,Namespace):
68+
self.add_body_params('Namespace', Namespace)
69+
70+
def get_Completions(self):
71+
return self.get_body_params().get('Completions')
72+
73+
def set_Completions(self,Completions):
74+
self.add_body_params('Completions', Completions)
75+
76+
def get_EnvVars(self):
77+
return self.get_body_params().get('EnvVars')
78+
79+
def set_EnvVars(self,EnvVars):
80+
self.add_body_params('EnvVars', EnvVars)
81+
82+
def get_ImagePullSecret(self):
83+
return self.get_body_params().get('ImagePullSecret')
84+
85+
def set_ImagePullSecret(self,ImagePullSecret):
86+
self.add_body_params('ImagePullSecret', ImagePullSecret)
87+
88+
def get_CallerId(self):
89+
return self.get_body_params().get('CallerId')
90+
91+
def set_CallerId(self,CallerId):
92+
self.add_body_params('CallerId', CallerId)
93+
94+
def get_Region(self):
95+
return self.get_body_params().get('Region')
96+
97+
def set_Region(self,Region):
98+
self.add_body_params('Region', Region)
99+
100+
def get_JobName(self):
101+
return self.get_body_params().get('JobName')
102+
103+
def set_JobName(self,JobName):
104+
self.add_body_params('JobName', JobName)
Lines changed: 104 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,104 @@
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 CreateIngestionJobRequest(RpcRequest):
24+
25+
def __init__(self):
26+
RpcRequest.__init__(self, 'Sls', '2019-10-23', 'CreateIngestionJob')
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_Args(self):
35+
return self.get_body_params().get('Args')
36+
37+
def set_Args(self,Args):
38+
self.add_body_params('Args', Args)
39+
40+
def get_Image(self):
41+
return self.get_body_params().get('Image')
42+
43+
def set_Image(self,Image):
44+
self.add_body_params('Image', Image)
45+
46+
def get_EnvFromSecret(self):
47+
return self.get_body_params().get('EnvFromSecret')
48+
49+
def set_EnvFromSecret(self,EnvFromSecret):
50+
self.add_body_params('EnvFromSecret', EnvFromSecret)
51+
52+
def get_RestartPolicy(self):
53+
return self.get_body_params().get('RestartPolicy')
54+
55+
def set_RestartPolicy(self,RestartPolicy):
56+
self.add_body_params('RestartPolicy', RestartPolicy)
57+
58+
def get_Parallelism(self):
59+
return self.get_body_params().get('Parallelism')
60+
61+
def set_Parallelism(self,Parallelism):
62+
self.add_body_params('Parallelism', Parallelism)
63+
64+
def get_Namespace(self):
65+
return self.get_body_params().get('Namespace')
66+
67+
def set_Namespace(self,Namespace):
68+
self.add_body_params('Namespace', Namespace)
69+
70+
def get_Completions(self):
71+
return self.get_body_params().get('Completions')
72+
73+
def set_Completions(self,Completions):
74+
self.add_body_params('Completions', Completions)
75+
76+
def get_EnvVars(self):
77+
return self.get_body_params().get('EnvVars')
78+
79+
def set_EnvVars(self,EnvVars):
80+
self.add_body_params('EnvVars', EnvVars)
81+
82+
def get_ImagePullSecret(self):
83+
return self.get_body_params().get('ImagePullSecret')
84+
85+
def set_ImagePullSecret(self,ImagePullSecret):
86+
self.add_body_params('ImagePullSecret', ImagePullSecret)
87+
88+
def get_CallerId(self):
89+
return self.get_body_params().get('CallerId')
90+
91+
def set_CallerId(self,CallerId):
92+
self.add_body_params('CallerId', CallerId)
93+
94+
def get_Region(self):
95+
return self.get_body_params().get('Region')
96+
97+
def set_Region(self,Region):
98+
self.add_body_params('Region', Region)
99+
100+
def get_JobName(self):
101+
return self.get_body_params().get('JobName')
102+
103+
def set_JobName(self,JobName):
104+
self.add_body_params('JobName', JobName)
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 DeleteImportIngestionJobRequest(RpcRequest):
24+
25+
def __init__(self):
26+
RpcRequest.__init__(self, 'Sls', '2019-10-23', 'DeleteImportIngestionJob')
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_Namespace(self):
35+
return self.get_body_params().get('Namespace')
36+
37+
def set_Namespace(self,Namespace):
38+
self.add_body_params('Namespace', Namespace)
39+
40+
def get_Region(self):
41+
return self.get_body_params().get('Region')
42+
43+
def set_Region(self,Region):
44+
self.add_body_params('Region', Region)
45+
46+
def get_JobName(self):
47+
return self.get_body_params().get('JobName')
48+
49+
def set_JobName(self,JobName):
50+
self.add_body_params('JobName', JobName)

0 commit comments

Comments
 (0)