8000 Add some APIs. · aliyun/aliyun-openapi-python-sdk@0487eb6 · GitHub
[go: up one dir, main page]

Skip to content

Commit 0487eb6

Browse files
committed
Add some APIs.
1 parent 1c96504 commit 0487eb6

10 files changed

+333
-1
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
2025-09-11 Version: 2.1.19
2+
- Add some APIs.
3+
14
2025-08-11 Version: 2.1.18
25
- Add QueryDashboardNl2sql, QueryLastAccelerationEngineJob APIs.
36

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = '2.1.18'
1+
__version__ = '2.1.19'
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 AddDataSourceRequest(RpcRequest):
23+
24+
def __init__(self):
25+
RpcRequest.__init__(self, 'quickbi-public', '2022-01-01', 'AddDataSource','2.2.0')
26+
self.set_protocol_type('https')
27+
self.set_method('POST')
28+
29+
def get_AddModel(self): # String
30+
return self.get_query_params().get('AddModel')
31+
32+
def set_AddModel(self, AddModel): # String
33+
self.add_query_param('AddModel', AddModel)
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 CheckDatasetExistedRequest(RpcRequest):
23+
24+
def __init__(self):
25+
RpcRequest.__init__(self, 'quickbi-public', '2022-01-01', 'CheckDatasetExisted','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 CheckOrganizationMemberRequest(RpcRequest):
23+
24+
def __init__(self):
25+
RpcRequest.__init__(self, 'quickbi-public', '2022-01-01', 'CheckOrganizationMember','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: 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 CreateCubeBySqlRequest(RpcRequest):
23+
24+
def __init__(self):
25+
RpcRequest.__init__(self, 'quickbi-public', '2022-01-01', 'CreateCubeBySql','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)
34+
def get_Caption(self): # String
35+
return self.get_query_params().get('Caption')
36+
37+
def set_Caption(self, Caption): # String
38+
self.add_query_param('Caption', Caption)
39+
def get_UserId(self): # String
40+
return self.get_query_params().get('UserId')
41+
42+
def set_UserId(self, UserId): # String
43+
self.add_query_param('UserId', UserId)
44+
def get_CustomSql(self): # String
45+
return self.get_query_params().get('CustomSql')
46+
47+
def set_CustomSql(self, CustomSql): # String
48+
self.add_query_param('CustomSql', CustomSql)
49+
def get_WorkspaceId(self): # String
50+
return self.get_query_params().get('WorkspaceId')
51+
52+
def set_WorkspaceId(self, WorkspaceId): # String
53+
self.add_query_param('WorkspaceId', WorkspaceId)
Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
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 CreateDatasetRequest(RpcRequest):
23+
24+
def __init__(self):
25+
RpcRequest.__init__(self, 'quickbi-public', '2022-01-01', 'CreateDataset','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)
34+
def get_UserId(self): # String
35+
return self.get_query_params().get('UserId')
36+
37+
def set_UserId(self, UserId): # String
38+
self.add_query_param('UserId', UserId)
39+
def get_TableName(self): # String
40+
return self.get_query_params().get('TableName')
41+
42+
def set_TableName(self, TableName): # String
43+
self.add_query_param('TableName', TableName)
44+
def get_TargetDirectoryId(self): # String
45+
return self.get_query_params().get('TargetDirectoryId')
46+
47+
def set_TargetDirectoryId(self, TargetDirectoryId): # String
48+
self.add_query_param('TargetDirectoryId', TargetDirectoryId)
49+
def get_UserDefineCubeName(self): # String
50+
return self.get_query_params().get('UserDefineCubeName')
51+
52+
def set_UserDefineCubeName(self, UserDefineCubeName): # String
53+
self.add_query_param('UserDefineCubeName', UserDefineCubeName)
54+
def get_WorkspaceId(self): # String
55+
return self.get_query_params().get('WorkspaceId')
56+
57+
def set_WorkspaceId(self, WorkspaceId): # String
58+
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 ListWorkspaceUserRolesByUserIdRequest(RpcRequest):
23+
24+
def __init__(self):
25+
RpcRequest.__init__(self, 'quickbi-public', '2022-01-01', 'ListWorkspaceUserRolesByUserId','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: 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 UpdateCubeBySqlRequest(RpcRequest):
23+
24+
def __init__(self):
25+
RpcRequest.__init__(self, 'quickbi-public', '2022-01-01', 'UpdateCubeBySql','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)
34+
def get_UserId(self): # String
35+
return self.get_query_params().get('UserId')
36+
37+
def set_UserId(self, UserId): # String
38+
self.add_query_param('UserId', UserId)
39+
def get_CubeId(self): # String
40+
return self.get_query_params().get('CubeId')
41+
42+
def set_CubeId(self, CubeId): # String
43+
self.add_query_param('CubeId', CubeId)
44+
def get_CustomSql(self): # String
45+
return self.get_query_params().get('CustomSql')
46+
47+
def set_CustomSql(self, CustomSql): # String
48+
self.add_query_param('CustomSql', CustomSql)
49+
def get_WorkspaceId(self): # String
50+
return self.get_query_params().get('WorkspaceId')
51+
52+
def set_WorkspaceId(self, WorkspaceId): # String
53+
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 UpdateDataSourceRequest(RpcRequest):
23+
24+
def __init__(self):
25+
RpcRequest.__init__(self, 'quickbi-public', '2022-01-01', 'UpdateDataSource','2.2.0')
26+
self.set_protocol_type('https')
27+
self.set_method('POST')
28+
29+
def get_UpdateModel(self): # String
30+
return self.get_query_params().get('UpdateModel')
31+
32+
def set_UpdateModel(self, UpdateModel): # String
33+
self.add_query_param('UpdateModel', UpdateModel)

0 commit comments

Comments
 (0)
0