Skip to content

Commit

Permalink
Supported Apis for Dataphin V3_11_2.
Browse files Browse the repository at this point in the history
  • Loading branch information
sdk-team committed Oct 19, 2023
1 parent 7079f99 commit 7099b38
Show file tree
Hide file tree
Showing 7 changed files with 201 additions and 1 deletion.
5 changes: 5 additions & 0 deletions aliyun-python-sdk-dataphin-public/ChangeLog.txt
Original file line number Diff line number Diff line change
@@ -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.

Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '1.0.0'
__version__ = '1.0.1'
Original file line number Diff line number Diff line change
@@ -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))
Original file line number Diff line number Diff line change
@@ -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))
Original file line number Diff line number Diff line change
@@ -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))
Original file line number Diff line number Diff line change
@@ -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))
Original file line number Diff line number Diff line change
@@ -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))

0 comments on commit 7099b38

Please sign in to comment.