Skip to content

Commit 9a189ec

Browse files
committed
Add SmartQ APIs.
1 parent db8431c commit 9a189ec

11 files changed

+281
-6
lines changed

aliyun-python-sdk-quickbi-public/ChangeLog.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
2024-12-30 Version: 2.1.12
2+
- Add SmartQ APIs.
3+
- Add GetDataSourceConnectionInfo, QueryDatasetList APIs.
4+
15
2024-11-26 Version: 2.1.11
26
- Add SmartqQueryAbility api.
37

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

aliyun-python-sdk-quickbi-public/aliyunsdkquickbi_public/request/v20220101/CancelAuthorizationMenuRequest.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,11 @@ def get_DataPortalId(self): # String
3030

3131
def set_DataPortalId(self, DataPortalId): # String
3232
self.add_query_param('DataPortalId', DataPortalId)
33+
def get_MenuIds(self): # String
34+
return self.get_query_params().get('MenuIds')
35+
36+
def set_MenuIds(self, MenuIds): # String
37+
self.add_query_param('MenuIds', MenuIds)
3338
def get_UserGroupIds(self): # String
3439
return self.get_query_params().get('UserGroupIds')
3540

@@ -40,8 +45,3 @@ def get_UserIds(self): # String
4045

4146
def set_UserIds(self, UserIds): # String
4247
self.add_query_param('UserIds', UserIds)
43-
def get_MenuIds(self): # String
44-
return self.get_query_params().get('MenuIds')
45-
46-
def set_MenuIds(self, MenuIds): # String
47-
self.add_query_param('MenuIds', MenuIds)
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
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+
22+
class GetDataSourceConnectionInfoRequest(RpcRequest):
23+
24+
def __init__(self):
25+
RpcRequest.__init__(self, 'quickbi-public', '2022-01-01', 'GetDataSourceConnectionInfo','2.2.0')
26+
self.set_protocol_type('https')
27+
self.set_method('POST')
28+
29+
def get_DsId(self): # String
30+
return self.get_query_params().get('DsId')
31+
32+
def set_DsId(self, DsId): # String
33+
self.add_query_param('DsId', DsId)
Lines changed: 38 additions & 0 deletions
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+
22+
class ListDataSourceRequest(RpcRequest):
23+
24+
def __init__(self):
25+
RpcRequest.__init__(self, 'quickbi-public', '2022-01-01', 'ListDataSource','2.2.0')
26+
self.set_protocol_type('https')
27+
self.set_method('POST')
28+
29+
def get_DsType(self): # String
30+
return self.get_query_params().get('DsType')
31+
32+
def set_DsType(self, DsType): # String
33+
self.add_query_param('DsType', DsType)
34+
def get_WorkspaceId(self): # String
35+
return self.get_query_params().get('WorkspaceId')
36+
37+
def set_WorkspaceId(self, WorkspaceId): # String
38+
self.add_query_param('WorkspaceId', WorkspaceId)
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
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+
22+
class QueryDatasetSmartqStatusRequest(RpcRequest):
23+
24+
def __init__(self):
25+
RpcRequest.__init__(self, 'quickbi-public', '2022-01-01', 'QueryDatasetSmartqStatus','2.2.0')
26+
self.set_protocol_type('https')
27+
self.set_method('POST')
28+
29+
def get_CubeId(self): # String
30+
return self.get_query_params().get('CubeId')
31+
32+
def set_CubeId(self, CubeId): # String
33+
self.add_query_param('CubeId', CubeId)
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
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+
22+
class QueryLlmCubeWithThemeListByUserIdRequest(RpcRequest):
23+
24+
def __init__(self):
25+
RpcRequest.__init__(self, 'quickbi-public', '2022-01-01', 'QueryLlmCubeWithThemeListByUserId','2.2.0')
26+
self.set_protocol_type('https')
27+
self.set_method('POST')
28+
29+
def get_UserId(self): # String
30+
return self.get_query_params().get('UserId')
31+
32+
def set_UserId(self, UserId): # String
33+
self.add_query_param('UserId', UserId)
Lines changed: 38 additions & 0 deletions
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+
22+
class QuerySmartqPermissionByCubeIdRequest(RpcRequest):
23+
24+
def __init__(self):
25+
RpcRequest.__init__(self, 'quickbi-public', '2022-01-01', 'QuerySmartqPermissionByCubeId','2.2.0')
26+
self.set_protocol_type('https')
27+
self.set_method('POST')
28+
29+
def get_UserId(self): # String
30+
return self.get_query_params().get('UserId')
31+
32+
def set_UserId(self, UserId): # String
33+
self.add_query_param('UserId', UserId)
34+
def get_CubeId(self): # String
35+
return self.get_query_params().get('CubeId')
36+
37+
def set_CubeId(self, CubeId): # String
38+
self.add_query_param('CubeId', CubeId)
Lines changed: 38 additions & 0 deletions
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+
22+
class SmartqAuthTransferRequest(RpcRequest):
23+
24+
def __init__(self):
25+
RpcRequest.__init__(self, 'quickbi-public', '2022-01-01', 'SmartqAuthTransfer','2.2.0')
26+
self.set_protocol_type('https')
27+
self.set_method('POST')
28+
29+
def get_TargetUserIds(self): # String
30+
return self.get_query_params().get('TargetUserIds')
31+
32+
def set_TargetUserIds(self, TargetUserIds): # String
33+
self.add_query_param('TargetUserIds', TargetUserIds)
34+
def get_OriginUserId(self): # String
35+
return self.get_query_params().get('OriginUserId')
36+
37+
def set_OriginUserId(self, OriginUserId): # String
38+
self.add_query_param('OriginUserId', OriginUserId)
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
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+
22+
class SmartqAuthorizeRequest(RpcRequest):
23+
24+
def __init__(self):
25+
RpcRequest.__init__(self, 'quickbi-public', '2022-01-01', 'SmartqAuthorize','2.2.0')
26+
self.set_protocol_type('https')
27+
self.set_method('POST')
28+
29+
def get_LlmCubeThemes(self): # String
30+
return self.get_query_params().get('LlmCubeThemes')
31+
32+
def set_LlmCubeThemes(self, LlmCubeThemes): # String
33+
self.add_query_param('LlmCubeThemes', LlmCubeThemes)
34+
def get_LlmCubes(self): # String
35+
return self.get_query_params().get('LlmCubes')
36+
37+
def set_LlmCubes(self, LlmCubes): # String
38+
self.add_query_param('LlmCubes', LlmCubes)
39+
def get_OperationType(self): # Integer
40+
return self.get_query_params().get('OperationType')
41+
42+
def set_OperationType(self, OperationType): # Integer
43+
self.add_query_param('OperationType', OperationType)
44+
def get_ExpireDay(self): # String
45+
return self.get_query_params().get('ExpireDay')
46+
47+
def set_ExpireDay(self, ExpireDay): # String
48+
self.add_query_param('ExpireDay', ExpireDay)
49+
def get_UserIds(self): # String
50+
return self.get_query_params().get('UserIds')
51+
52+
def set_UserIds(self, UserIds): # String
53+
self.add_query_param('UserIds', UserIds)

0 commit comments

Comments
 (0)