Skip to content

Commit

Permalink
Add SmartQ APIs.
Browse files Browse the repository at this point in the history
  • Loading branch information
sdk-team committed Dec 30, 2024
1 parent db8431c commit 9a189ec
Show file tree
Hide file tree
Showing 11 changed files with 281 additions and 6 deletions.
4 changes: 4 additions & 0 deletions aliyun-python-sdk-quickbi-public/ChangeLog.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
2024-12-30 Version: 2.1.12
- Add SmartQ APIs.
- Add GetDataSourceConnectionInfo, QueryDatasetList APIs.

2024-11-26 Version: 2.1.11
- Add SmartqQueryAbility api.

Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '2.1.11'
__version__ = '2.1.12'
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,11 @@ def get_DataPortalId(self): # String

def set_DataPortalId(self, DataPortalId): # String
self.add_query_param('DataPortalId', DataPortalId)
def get_MenuIds(self): # String
return self.get_query_params().get('MenuIds')

def set_MenuIds(self, MenuIds): # String
self.add_query_param('MenuIds', MenuIds)
def get_UserGroupIds(self): # String
return self.get_query_params().get('UserGroupIds')

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

def set_UserIds(self, UserIds): # String
self.add_query_param('UserIds', UserIds)
def get_MenuIds(self): # String
return self.get_query_params().get('MenuIds')

def set_MenuIds(self, MenuIds): # String
self.add_query_param('MenuIds', MenuIds)
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
#
# http://www.apache.org/licenses/LICENSE-2.0
#
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.

from aliyunsdkcore.request import RpcRequest

class GetDataSourceConnectionInfoRequest(RpcRequest):

def __init__(self):
RpcRequest.__init__(self, 'quickbi-public', '2022-01-01', 'GetDataSourceConnectionInfo','2.2.0')
self.set_protocol_type('https')
self.set_method('POST')

def get_DsId(self): # String
return self.get_query_params().get('DsId')

def set_DsId(self, DsId): # String
self.add_query_param('DsId', DsId)
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
#
# http://www.apache.org/licenses/LICENSE-2.0
#
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.

from aliyunsdkcore.request import RpcRequest

class ListDataSourceRequest(RpcRequest):

def __init__(self):
RpcRequest.__init__(self, 'quickbi-public', '2022-01-01', 'ListDataSource','2.2.0')
self.set_protocol_type('https')
self.set_method('POST')

def get_DsType(self): # String
return self.get_query_params().get('DsType')

def set_DsType(self, DsType): # String
self.add_query_param('DsType', DsType)
def get_WorkspaceId(self): # String
return self.get_query_params().get('WorkspaceId')

def set_WorkspaceId(self, WorkspaceId): # String
self.add_query_param('WorkspaceId', WorkspaceId)
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
#
# http://www.apache.org/licenses/LICENSE-2.0
#
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.

from aliyunsdkcore.request import RpcRequest

class QueryDatasetSmartqStatusRequest(RpcRequest):

def __init__(self):
RpcRequest.__init__(self, 'quickbi-public', '2022-01-01', 'QueryDatasetSmartqStatus','2.2.0')
self.set_protocol_type('https')
self.set_method('POST')

def get_CubeId(self): # String
return self.get_query_params().get('CubeId')

def set_CubeId(self, CubeId): # String
self.add_query_param('CubeId', CubeId)
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
#
# http://www.apache.org/licenses/LICENSE-2.0
#
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.

from aliyunsdkcore.request import RpcRequest

class QueryLlmCubeWithThemeListByUserIdRequest(RpcRequest):

def __init__(self):
RpcRequest.__init__(self, 'quickbi-public', '2022-01-01', 'QueryLlmCubeWithThemeListByUserId','2.2.0')
self.set_protocol_type('https')
self.set_method('POST')

def get_UserId(self): # String
return self.get_query_params().get('UserId')

def set_UserId(self, UserId): # String
self.add_query_param('UserId', UserId)
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
#
# http://www.apache.org/licenses/LICENSE-2.0
#
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.

from aliyunsdkcore.request import RpcRequest

class QuerySmartqPermissionByCubeIdRequest(RpcRequest):

def __init__(self):
RpcRequest.__init__(self, 'quickbi-public', '2022-01-01', 'QuerySmartqPermissionByCubeId','2.2.0')
self.set_protocol_type('https')
self.set_method('POST')

def get_UserId(self): # String
return self.get_query_params().get('UserId')

def set_UserId(self, UserId): # String
self.add_query_param('UserId', UserId)
def get_CubeId(self): # String
return self.get_query_params().get('CubeId')

def set_CubeId(self, CubeId): # String
self.add_query_param('CubeId', CubeId)
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
#
# http://www.apache.org/licenses/LICENSE-2.0
#
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.

from aliyunsdkcore.request import RpcRequest

class SmartqAuthTransferRequest(RpcRequest):

def __init__(self):
RpcRequest.__init__(self, 'quickbi-public', '2022-01-01', 'SmartqAuthTransfer','2.2.0')
self.set_protocol_type('https')
self.set_method('POST')

def get_TargetUserIds(self): # String
return self.get_query_params().get('TargetUserIds')

def set_TargetUserIds(self, TargetUserIds): # String
self.add_query_param('TargetUserIds', TargetUserIds)
def get_OriginUserId(self): # String
return self.get_query_params().get('OriginUserId')

def set_OriginUserId(self, OriginUserId): # String
self.add_query_param('OriginUserId', OriginUserId)
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
#
# http://www.apache.org/licenses/LICENSE-2.0
#
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.

from aliyunsdkcore.request import RpcRequest

class SmartqAuthorizeRequest(RpcRequest):

def __init__(self):
RpcRequest.__init__(self, 'quickbi-public', '2022-01-01', 'SmartqAuthorize','2.2.0')
self.set_protocol_type('https')
self.set_method('POST')

def get_LlmCubeThemes(self): # String
return self.get_query_params().get('LlmCubeThemes')

def set_LlmCubeThemes(self, LlmCubeThemes): # String
self.add_query_param('LlmCubeThemes', LlmCubeThemes)
def get_LlmCubes(self): # String
return self.get_query_params().get('LlmCubes')

def set_LlmCubes(self, LlmCubes): # String
self.add_query_param('LlmCubes', LlmCubes)
def get_OperationType(self): # Integer
return self.get_query_params().get('OperationType')

def set_OperationType(self, OperationType): # Integer
self.add_query_param('OperationType', OperationType)
def get_ExpireDay(self): # String
return self.get_query_params().get('ExpireDay')

def set_ExpireDay(self, ExpireDay): # String
self.add_query_param('ExpireDay', ExpireDay)
def get_UserIds(self): # String
return self.get_query_params().get('UserIds')

def set_UserIds(self, UserIds): # String
self.add_query_param('UserIds', UserIds)
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,11 @@ def get_UserId(self): # String

def set_UserId(self, UserId): # String
self.add_query_param('UserId', UserId)
def get_RoleIds(self): # String
return self.get_query_params().get('RoleIds')

def set_RoleIds(self, RoleIds): # String
self.add_query_param('RoleIds', RoleIds)
def get_WorkspaceId(self): # String
return self.get_query_params().get('WorkspaceId')

Expand Down

0 comments on commit 9a189ec

Please sign in to comment.