Skip to content

Commit a560ec7

Browse files
committed
Add API CreateSortScriptValidation.
1 parent 4c651f1 commit a560ec7

File tree

8 files changed

+83
-3
lines changed

8 files changed

+83
-3
lines changed

aliyun-python-sdk-opensearch/ChangeLog.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
2021-01-15 Version: 0.9.0
2+
- Add API CreateSortScriptValidation.
3+
- Add parameter resourceGroupId to API ListAppGroups.
4+
15
2020-10-20 Version: 0.8.0
26
- AddDeleteSortScriptFileApi.
37

aliyun-python-sdk-opensearch/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.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
include LICENSE README.rst ChangeLog.txt
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = '0.8.0'
1+
__version__ = '0.9.0'

aliyun-python-sdk-opensearch/aliyunsdkopensearch/request/v20171225/DescribeUserAnalyzerRequest.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,10 @@ def __init__(self):
3232
setattr(self, "endpoint_regional", endpoint_data.getEndpointRegional())
3333

3434

35-
def get__with(self):
35+
def get_with(self):
3636
return self.get_query_params().get('with')
3737

38-
def set__with(self,_with):
38+
def set_with(self,_with):
3939
self.add_query_param('with',_with)
4040

4141
def get_name(self):
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
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 RoaRequest
21+
from aliyunsdkopensearch.endpoint import endpoint_data
22+
23+
class GetScriptFileNamesRequest(RoaRequest):
24+
25+
def __init__(self):
26+
RoaRequest.__init__(self, 'OpenSearch', '2017-12-25', 'GetScriptFileNames','opensearch')
27+
self.set_uri_pattern('/v4/openapi/app-groups/[appGroupIdentity]/apps/[appVersionId]/sort-scripts/[scriptName]/file-names')
28+
self.set_method('GET')
29+
if hasattr(self, "endpoint_map"):
30+
setattr(self, "endpoint_map", endpoint_data.getEndpointMap())
31+
if hasattr(self, "endpoint_regional"):
32+
setattr(self, "endpoint_regional", endpoint_data.getEndpointRegional())
33+
34+
35+
def get_appVersionId(self):
36+
return self.get_path_params().get('appVersionId')
37+
38+
def set_appVersionId(self,appVersionId):
39+
self.add_path_param('appVersionId',appVersionId)
40+
41+
def get_scriptName(self):
42+
return self.get_path_params().get('scriptName')
43+
44+
def set_scriptName(self,scriptName):
45+
self.add_path_param('scriptName',scriptName)
46+
47+
def get_appGroupIdentity(self):
48+
return self.get_path_params().get('appGroupIdentity')
49+
50+
def set_appGroupIdentity(self,appGroupIdentity):
51+
self.add_path_param('appGroupIdentity',appGroupIdentity)

aliyun-python-sdk-opensearch/aliyunsdkopensearch/request/v20171225/ListAppGroupsRequest.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,12 @@ def __init__(self):
3232
setattr(self, "endpoint_regional", endpoint_data.getEndpointRegional())
3333

3434

35+
def get_resourceGroupId(self):
36+
return self.get_query_params().get('resourceGroupId')
37+
38+
def set_resourceGroupId(self,resourceGroupId):
39+
self.add_query_param('resourceGroupId',resourceGroupId)
40+
3541
def get_instanceId(self):
3642
return self.get_query_params().get('instanceId')
3743

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
[metadata]
2+
license_file = LICENSE
3+
4+
[bdist_wheel]
5+
universal = 1

0 commit comments

Comments
 (0)