From 7099b3859c1b0cf04dbd366adc4f084e3219d6d9 Mon Sep 17 00:00:00 2001 From: sdk-team Date: Thu, 19 Oct 2023 03:55:46 +0000 Subject: [PATCH] Supported Apis for Dataphin V3_11_2. --- .../ChangeLog.txt | 5 +++ .../aliyunsdkdataphin_public/__init__.py | 2 +- .../v20230630/BatchAddTenantMemberRequest.py | 39 +++++++++++++++++++ .../request/v20230630/BatchGetUsersRequest.py | 39 +++++++++++++++++++ .../QueryPagedAddableUsersRequest.py | 39 +++++++++++++++++++ .../request/v20230630/RemoveUserRequest.py | 39 +++++++++++++++++++ .../v20230630/UpdateTenantMembersRequest.py | 39 +++++++++++++++++++ 7 files changed, 201 insertions(+), 1 deletion(-) create mode 100644 aliyun-python-sdk-dataphin-public/aliyunsdkdataphin_public/request/v20230630/BatchAddTenantMemberRequest.py create mode 100644 aliyun-python-sdk-dataphin-public/aliyunsdkdataphin_public/request/v20230630/BatchGetUsersRequest.py create mode 100644 aliyun-python-sdk-dataphin-public/aliyunsdkdataphin_public/request/v20230630/QueryPagedAddableUsersRequest.py create mode 100644 aliyun-python-sdk-dataphin-public/aliyunsdkdataphin_public/request/v20230630/RemoveUserRequest.py create mode 100644 aliyun-python-sdk-dataphin-public/aliyunsdkdataphin_public/request/v20230630/UpdateTenantMembersRequest.py diff --git a/aliyun-python-sdk-dataphin-public/ChangeLog.txt b/aliyun-python-sdk-dataphin-public/ChangeLog.txt index 03febe613c..29c2c2bb2d 100644 --- a/aliyun-python-sdk-dataphin-public/ChangeLog.txt +++ b/aliyun-python-sdk-dataphin-public/ChangeLog.txt @@ -1,3 +1,8 @@ +2023-10-19 Version: 1.0.1 +- Supported Apis for Dataphin V3_11_2. +-Add Api ListUsers. +- Fixed Api UpdateTenantMember For Bug xxxx. + 2023-08-09 Version: 1.0.0 - Supported Open Apis for Dataphin. diff --git a/aliyun-python-sdk-dataphin-public/aliyunsdkdataphin_public/__init__.py b/aliyun-python-sdk-dataphin-public/aliyunsdkdataphin_public/__init__.py index 75977e6f41..6c4c011435 100644 --- a/aliyun-python-sdk-dataphin-public/aliyunsdkdataphin_public/__init__.py +++ b/aliyun-python-sdk-dataphin-public/aliyunsdkdataphin_public/__init__.py @@ -1 +1 @@ -__version__ = '1.0.0' \ No newline at end of file +__version__ = '1.0.1' \ No newline at end of file diff --git a/aliyun-python-sdk-dataphin-public/aliyunsdkdataphin_public/request/v20230630/BatchAddTenantMemberRequest.py b/aliyun-python-sdk-dataphin-public/aliyunsdkdataphin_public/request/v20230630/BatchAddTenantMemberRequest.py new file mode 100644 index 0000000000..669fb6da38 --- /dev/null +++ b/aliyun-python-sdk-dataphin-public/aliyunsdkdataphin_public/request/v20230630/BatchAddTenantMemberRequest.py @@ -0,0 +1,39 @@ +# 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 +import json + +class BatchAddTenantMemberRequest(RpcRequest): + + def __init__(self): + RpcRequest.__init__(self, 'dataphin-public', '2023-06-30', 'BatchAddTenantMember') + self.set_protocol_type('https') + self.set_method('POST') + + def get_OpTenantId(self): # Long + return self.get_query_params().get('OpTenantId') + + def set_OpTenantId(self, OpTenantId): # Long + self.add_query_param('OpTenantId', OpTenantId) + def get_BatchAddTenantMemberCommand(self): # Struct + return self.get_query_params().get('BatchAddTenantMemberCommand') + + def set_BatchAddTenantMemberCommand(self, BatchAddTenantMemberCommand): # Struct + self.add_query_param("BatchAddTenantMemberCommand", json.dumps(BatchAddTenantMemberCommand)) diff --git a/aliyun-python-sdk-dataphin-public/aliyunsdkdataphin_public/request/v20230630/BatchGetUsersRequest.py b/aliyun-python-sdk-dataphin-public/aliyunsdkdataphin_public/request/v20230630/BatchGetUsersRequest.py new file mode 100644 index 0000000000..da89b7d856 --- /dev/null +++ b/aliyun-python-sdk-dataphin-public/aliyunsdkdataphin_public/request/v20230630/BatchGetUsersRequest.py @@ -0,0 +1,39 @@ +# 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 +import json + +class BatchGetUsersRequest(RpcRequest): + + def __init__(self): + RpcRequest.__init__(self, 'dataphin-public', '2023-06-30', 'BatchGetUsers') + self.set_protocol_type('https') + self.set_method('POST') + + def get_OpTenantId(self): # Long + return self.get_query_params().get('OpTenantId') + + def set_OpTenantId(self, OpTenantId): # Long + self.add_query_param('OpTenantId', OpTenantId) + def get_UserIdList(self): # Array + return self.get_query_params().get('UserIdList') + + def set_UserIdList(self, UserIdList): # Array + self.add_query_param("UserIdList", json.dumps(UserIdList)) diff --git a/aliyun-python-sdk-dataphin-public/aliyunsdkdataphin_public/request/v20230630/QueryPagedAddableUsersRequest.py b/aliyun-python-sdk-dataphin-public/aliyunsdkdataphin_public/request/v20230630/QueryPagedAddableUsersRequest.py new file mode 100644 index 0000000000..38bcaad55d --- /dev/null +++ b/aliyun-python-sdk-dataphin-public/aliyunsdkdataphin_public/request/v20230630/QueryPagedAddableUsersRequest.py @@ -0,0 +1,39 @@ +# 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 +import json + +class QueryPagedAddableUsersRequest(RpcRequest): + + def __init__(self): + RpcRequest.__init__(self, 'dataphin-public', '2023-06-30', 'QueryPagedAddableUsers') + self.set_protocol_type('https') + self.set_method('POST') + + def get_OpTenantId(self): # Long + return self.get_query_params().get('OpTenantId') + + def set_OpTenantId(self, OpTenantId): # Long + self.add_query_param('OpTenantId', OpTenantId) + def get_AddableUserPagedQuery(self): # Struct + return self.get_query_params().get('AddableUserPagedQuery') + + def set_AddableUserPagedQuery(self, AddableUserPagedQuery): # Struct + self.add_query_param("AddableUserPagedQuery", json.dumps(AddableUserPagedQuery)) diff --git a/aliyun-python-sdk-dataphin-public/aliyunsdkdataphin_public/request/v20230630/RemoveUserRequest.py b/aliyun-python-sdk-dataphin-public/aliyunsdkdataphin_public/request/v20230630/RemoveUserRequest.py new file mode 100644 index 0000000000..417df7192a --- /dev/null +++ b/aliyun-python-sdk-dataphin-public/aliyunsdkdataphin_public/request/v20230630/RemoveUserRequest.py @@ -0,0 +1,39 @@ +# 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 +import json + +class RemoveUserRequest(RpcRequest): + + def __init__(self): + RpcRequest.__init__(self, 'dataphin-public', '2023-06-30', 'RemoveUser') + self.set_protocol_type('https') + self.set_method('POST') + + def get_OpTenantId(self): # Long + return self.get_query_params().get('OpTenantId') + + def set_OpTenantId(self, OpTenantId): # Long + self.add_query_param('OpTenantId', OpTenantId) + def get_RemoveUserCommand(self): # Struct + return self.get_query_params().get('RemoveUserCommand') + + def set_RemoveUserCommand(self, RemoveUserCommand): # Struct + self.add_query_param("RemoveUserCommand", json.dumps(RemoveUserCommand)) diff --git a/aliyun-python-sdk-dataphin-public/aliyunsdkdataphin_public/request/v20230630/UpdateTenantMembersRequest.py b/aliyun-python-sdk-dataphin-public/aliyunsdkdataphin_public/request/v20230630/UpdateTenantMembersRequest.py new file mode 100644 index 0000000000..84e6d08cd9 --- /dev/null +++ b/aliyun-python-sdk-dataphin-public/aliyunsdkdataphin_public/request/v20230630/UpdateTenantMembersRequest.py @@ -0,0 +1,39 @@ +# 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 +import json + +class UpdateTenantMembersRequest(RpcRequest): + + def __init__(self): + RpcRequest.__init__(self, 'dataphin-public', '2023-06-30', 'UpdateTenantMembers') + self.set_protocol_type('https') + self.set_method('POST') + + def get_OpTenantId(self): # Long + return self.get_query_params().get('OpTenantId') + + def set_OpTenantId(self, OpTenantId): # Long + self.add_query_param('OpTenantId', OpTenantId) + def get_UpdateTenantMembersCommand(self): # Struct + return self.get_query_params().get('UpdateTenantMembersCommand') + + def set_UpdateTenantMembersCommand(self, UpdateTenantMembersCommand): # Struct + self.add_query_param("UpdateTenantMembersCommand", json.dumps(UpdateTenantMembersCommand))