Skip to content

Commit 9ec5650

Browse files
committed
Supported Open Api.
1 parent ef628a4 commit 9ec5650

File tree

9 files changed

+345
-0
lines changed

9 files changed

+345
-0
lines changed

aliyun-python-sdk-openanalytics-open/ChangeLog.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
2021-03-30 Version: 2.0.2
2+
- Supported Open Api.
3+
14
2020-12-01 Version: 2.0.2
25
- Supported Open Api.
36

Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
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 aliyunsdkopenanalytics_open.endpoint import endpoint_data
22+
23+
class CancelQueryByExecuteIdRequest(RpcRequest):
24+
25+
def __init__(self):
26+
RpcRequest.__init__(self, 'openanalytics-open', '2018-06-19', 'CancelQueryByExecuteId','openanalytics')
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_ExecuteId(self):
35+
return self.get_body_params().get('ExecuteId')
36+
37+
def set_ExecuteId(self,ExecuteId):
38+
self.add_body_params('ExecuteId', ExecuteId)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
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 aliyunsdkopenanalytics_open.endpoint import endpoint_data
22+
23+
class CancelQueryByIdRequest(RpcRequest):
24+
25+
def __init__(self):
26+
RpcRequest.__init__(self, 'openanalytics-open', '2018-06-19', 'CancelQueryById','openanalytics')
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_QueryId(self):
35+
return self.get_body_params().get('QueryId')
36+
37+
def set_QueryId(self,QueryId):
38+
self.add_body_params('QueryId', QueryId)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
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 aliyunsdkopenanalytics_open.endpoint import endpoint_data
22+
23+
class DescribeTagsRequest(RpcRequest):
24+
25+
def __init__(self):
26+
RpcRequest.__init__(self, 'openanalytics-open', '2018-06-19', 'DescribeTags','openanalytics')
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_ResourceType(self):
35+
return self.get_query_params().get('ResourceType')
36+
37+
def set_ResourceType(self,ResourceType):
38+
self.add_query_param('ResourceType',ResourceType)

aliyun-python-sdk-openanalytics-open/aliyunsdkopenanalytics_open/request/v20180619/ListSparkJobRequest.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,12 @@ def get_PageNumber(self):
3737
def set_PageNumber(self,PageNumber):
3838
self.add_query_param('PageNumber',PageNumber)
3939

40+
def get_Condition(self):
41+
return self.get_query_params().get('Condition')
42+
43+
def set_Condition(self,Condition):
44+
self.add_query_param('Condition',Condition)
45+
4046
def get_PageSize(self):
4147
return self.get_query_params().get('PageSize')
4248

Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
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 aliyunsdkopenanalytics_open.endpoint import endpoint_data
22+
23+
class ListTagResourcesRequest(RpcRequest):
24+
25+
def __init__(self):
26+
RpcRequest.__init__(self, 'openanalytics-open', '2018-06-19', 'ListTagResources','openanalytics')
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_ResourceIds(self):
35+
return self.get_query_params().get('ResourceId')
36+
37+
def set_ResourceIds(self, ResourceIds):
38+
for depth1 in range(len(ResourceIds)):
39+
if ResourceIds[depth1] is not None:
40+
self.add_query_param('ResourceId.' + str(depth1 + 1) , ResourceIds[depth1])
41+
42+
def get_ResourceType(self):
43+
return self.get_query_params().get('ResourceType')
44+
45+
def set_ResourceType(self,ResourceType):
46+
self.add_query_param('ResourceType',ResourceType)
47+
48+
def get_NextToken(self):
49+
return self.get_query_params().get('NextToken')
50+
51+
def set_NextToken(self,NextToken):
52+
self.add_query_param('NextToken',NextToken)
53+
54+
def get_Tags(self):
55+
return self.get_query_params().get('Tag')
56+
57+
def set_Tags(self, Tags):
58+
for depth1 in range(len(Tags)):
59+
if Tags[depth1].get('Key') is not None:
60+
self.add_query_param('Tag.' + str(depth1 + 1) + '.Key', Tags[depth1].get('Key'))
61+
if Tags[depth1].get('Value') is not None:
62+
self.add_query_param('Tag.' + str(depth1 + 1) + '.Value', Tags[depth1].get('Value'))
63+
64+
def get_Category(self):
65+
return self.get_query_params().get('Category')
66+
67+
def set_Category(self,Category):
68+
self.add_query_param('Category',Category)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
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 aliyunsdkopenanalytics_open.endpoint import endpoint_data
22+
23+
class TagResourcesRequest(RpcRequest):
24+
25+
def __init__(self):
26+
RpcRequest.__init__(self, 'openanalytics-open', '2018-06-19', 'TagResources','openanalytics')
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_ResourceIds(self):
35+
return self.get_query_params().get('ResourceId')
36+
37+
def set_ResourceIds(self, ResourceIds):
38+
for depth1 in range(len(ResourceIds)):
39+
if ResourceIds[depth1] is not None:
40+
self.add_query_param('ResourceId.' + str(depth1 + 1) , ResourceIds[depth1])
41+
42+
def get_ResourceType(self):
43+
return self.get_query_params().get('ResourceType')
44+
45+
def set_ResourceType(self,ResourceType):
46+
self.add_query_param('ResourceType',ResourceType)
47+
48+
def get_Tags(self):
49+
return self.get_query_params().get('Tag')
50+
51+
def set_Tags(self, Tags):
52+
for depth1 in range(len(Tags)):
53+
if Tags[depth1].get('Key') is not None:
54+
self.add_query_param('Tag.' + str(depth1 + 1) + '.Key', Tags[depth1].get('Key'))
55+
if Tags[depth1].get('Value') is not None:
56+
self.add_query_param('Tag.' + str(depth1 + 1) + '.Value', Tags[depth1].get('Value'))
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
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 aliyunsdkopenanalytics_open.endpoint import endpoint_data
22+
23+
class UntagResourcesRequest(RpcRequest):
24+
25+
def __init__(self):
26+
RpcRequest.__init__(self, 'openanalytics-open', '2018-06-19', 'UntagResources','openanalytics')
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_All(self):
35+
return self.get_query_params().get('All')
36+
37+
def set_All(self,All):
38+
self.add_query_param('All',All)
39+
40+
def get_ResourceIds(self):
41+
return self.get_query_params().get('ResourceId')
42+
43+
def set_ResourceIds(self, ResourceIds):
44+
for depth1 in range(len(ResourceIds)):
45+
if ResourceIds[depth1] is not None:
46+
self.add_query_param('ResourceId.' + str(depth1 + 1) , ResourceIds[depth1])
47+
48+
def get_ResourceType(self):
49+
return self.get_query_params().get('ResourceType')
50+
51+
def set_ResourceType(self,ResourceType):
52+
self.add_query_param('ResourceType',ResourceType)
53+
54+
def get_TagKeys(self):
55+
return self.get_query_params().get('TagKey')
56+
57+
def set_TagKeys(self, TagKeys):
58+
for depth1 in range(len(TagKeys)):
59+
if TagKeys[depth1] is not None:
60+
self.add_query_param('TagKey.' + str(depth1 + 1) , TagKeys[depth1])
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
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 aliyunsdkopenanalytics_open.endpoint import endpoint_data
22+
23+
class ValidateVirtualClusterNameRequest(RpcRequest):
24+
25+
def __init__(self):
26+
RpcRequest.__init__(self, 'openanalytics-open', '2018-06-19', 'ValidateVirtualClusterName','openanalytics')
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_VcName(self):
35+
return self.get_body_params().get('VcName')
36+
37+
def set_VcName(self,VcName):
38+
self.add_body_params('VcName', VcName)

0 commit comments

Comments
 (0)