Skip to content

Commit

Permalink
Support ListDataLakeCatalog, ListDataLakeDatabase, ListDataLakeTableb…
Browse files Browse the repository at this point in the history
…aseInfo, GetDataLakeCatalog, GetDataLakeDatabase, GetDataLakeTable API.
  • Loading branch information
sdk-team committed Nov 27, 2024
1 parent 403a16b commit b486fb1
Show file tree
Hide file tree
Showing 28 changed files with 1,363 additions and 8 deletions.
3 changes: 3 additions & 0 deletions aliyun-python-sdk-dms-enterprise/ChangeLog.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
2024-11-27 Version: 1.53.11
- Support ListDataLakeCatalog, ListDataLakeDatabase, ListDataLakeTablebaseInfo, GetDataLakeCatalog, GetDataLakeDatabase, GetDataLakeTable API.

2024-08-02 Version: 1.53.10
- Support switch login user

Expand Down
2 changes: 1 addition & 1 deletion aliyun-python-sdk-dms-enterprise/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Aliyun Python SDK is the official software development kit. It makes things easy

This module works on Python versions:

2.6.5 and greater
3.7 and greater

**Documentation:**

Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '1.53.10'
__version__ = '1.53.11'
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
# 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
from aliyunsdkdms_enterprise.endpoint import endpoint_data
import json

class AddAuthorityTemplateItemsRequest(RpcRequest):

def __init__(self):
RpcRequest.__init__(self, 'dms-enterprise', '2018-11-01', 'AddAuthorityTemplateItems','dms-enterprise')
self.set_protocol_type('https')
self.set_method('POST')

if hasattr(self, "endpoint_map"):
setattr(self, "endpoint_map", endpoint_data.getEndpointMap())
if hasattr(self, "endpoint_regional"):
setattr(self, "endpoint_regional", endpoint_data.getEndpointRegional())

def get_Tid(self): # Long
return self.get_query_params().get('Tid')

def set_Tid(self, Tid): # Long
self.add_query_param('Tid', Tid)
def get_TemplateId(self): # Long
return self.get_query_params().get('TemplateId')

def set_TemplateId(self, TemplateId): # Long
self.add_query_param('TemplateId', TemplateId)
def get_Items(self): # Array
return self.get_query_params().get('Items')

def set_Items(self, Items): # Array
self.add_query_param("Items", json.dumps(Items))
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
# 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
from aliyunsdkdms_enterprise.endpoint import endpoint_data

class CreateAbacAuthorizationRequest(RpcRequest):

def __init__(self):
RpcRequest.__init__(self, 'dms-enterprise', '2018-11-01', 'CreateAbacAuthorization','dms-enterprise')
self.set_protocol_type('https')
self.set_method('POST')

if hasattr(self, "endpoint_map"):
setattr(self, "endpoint_map", endpoint_data.getEndpointMap())
if hasattr(self, "endpoint_regional"):
setattr(self, "endpoint_regional", endpoint_data.getEndpointRegional())

def get_RoleId(self): # Long
return self.get_query_params().get('RoleId')

def set_RoleId(self, RoleId): # Long
self.add_query_param('RoleId', RoleId)
def get_UserId(self): # Long
return self.get_query_params().get('UserId')

def set_UserId(self, UserId): # Long
self.add_query_param('UserId', UserId)
def get_Tid(self): # Long
return self.get_query_params().get('Tid')

def set_Tid(self, Tid): # Long
self.add_query_param('Tid', Tid)
def get_PolicyId(self): # Long
return self.get_query_params().get('PolicyId')

def set_PolicyId(self, PolicyId): # Long
self.add_query_param('PolicyId', PolicyId)
def get_IdentityType(self): # String
return self.get_query_params().get('IdentityType')

def set_IdentityType(self, IdentityType): # String
self.add_query_param('IdentityType', IdentityType)
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
# 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
from aliyunsdkdms_enterprise.endpoint import endpoint_data

class CreateAbacPolicyRequest(RpcRequest):

def __init__(self):
RpcRequest.__init__(self, 'dms-enterprise', '2018-11-01', 'CreateAbacPolicy','dms-enterprise')
self.set_protocol_type('https')
self.set_method('POST')

if hasattr(self, "endpoint_map"):
setattr(self, "endpoint_map", endpoint_data.getEndpointMap())
if hasattr(self, "endpoint_regional"):
setattr(self, "endpoint_regional", endpoint_data.getEndpointRegional())

def get_AbacPolicyContent(self): # String
return self.get_query_params().get('AbacPolicyContent')

def set_AbacPolicyContent(self, AbacPolicyContent): # String
self.add_query_param('AbacPolicyContent', AbacPolicyContent)
def get_Tid(self): # Long
return self.get_query_params().get('Tid')

def set_Tid(self, Tid): # Long
self.add_query_param('Tid', Tid)
def get_AbacPolicyDesc(self): # String
return self.get_query_params().get('AbacPolicyDesc')

def set_AbacPolicyDesc(self, AbacPolicyDesc): # String
self.add_query_param('AbacPolicyDesc', AbacPolicyDesc)
def get_AbacPolicyName(self): # String
return self.get_query_params().get('AbacPolicyName')

def set_AbacPolicyName(self, AbacPolicyName): # String
self.add_query_param('AbacPolicyName', AbacPolicyName)
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
# 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
from aliyunsdkdms_enterprise.endpoint import endpoint_data

class DeleteAbacAuthorizationRequest(RpcRequest):

def __init__(self):
RpcRequest.__init__(self, 'dms-enterprise', '2018-11-01', 'DeleteAbacAuthorization','dms-enterprise')
self.set_protocol_type('https')
self.set_method('POST')

if hasattr(self, "endpoint_map"):
setattr(self, "endpoint_map", endpoint_data.getEndpointMap())
if hasattr(self, "endpoint_regional"):
setattr(self, "endpoint_regional", endpoint_data.getEndpointRegional())

def get_Tid(self): # Long
return self.get_query_params().get('Tid')

def set_Tid(self, Tid): # Long
self.add_query_param('Tid', Tid)
def get_IdentityType(self): # String
return self.get_query_params().get('IdentityType')

def set_IdentityType(self, IdentityType): # String
self.add_query_param('IdentityType', IdentityType)
def get_AuthorizationId(self): # Long
return self.get_query_params().get('AuthorizationId')

def set_AuthorizationId(self, AuthorizationId): # Long
self.add_query_param('AuthorizationId', AuthorizationId)
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# 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
from aliyunsdkdms_enterprise.endpoint import endpoint_data

class DeleteAbacPolicyRequest(RpcRequest):

def __init__(self):
RpcRequest.__init__(self, 'dms-enterprise', '2018-11-01', 'DeleteAbacPolicy','dms-enterprise')
self.set_protocol_type('https')
self.set_method('POST')

if hasattr(self, "endpoint_map"):
setattr(self, "endpoint_map", endpoint_data.getEndpointMap())
if hasattr(self, "endpoint_regional"):
setattr(self, "endpoint_regional", endpoint_data.getEndpointRegional())

def get_Tid(self): # Long
return self.get_query_params().get('Tid')

def set_Tid(self, Tid): # Long
self.add_query_param('Tid', Tid)
def get_AbacPolicyId(self): # Long
return self.get_query_params().get('AbacPolicyId')

def set_AbacPolicyId(self, AbacPolicyId): # Long
self.add_query_param('AbacPolicyId', AbacPolicyId)
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
# 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
from aliyunsdkdms_enterprise.endpoint import endpoint_data

class GetAbacPolicyRequest(RpcRequest):

def __init__(self):
RpcRequest.__init__(self, 'dms-enterprise', '2018-11-01', 'GetAbacPolicy','dms-enterprise')
self.set_protocol_type('https')
self.set_method('POST')

if hasattr(self, "endpoint_map"):
setattr(self, "endpoint_map", endpoint_data.getEndpointMap())
if hasattr(self, "endpoint_regional"):
setattr(self, "endpoint_regional", endpoint_data.getEndpointRegional())

def get_Tid(self): # Long
return self.get_query_params().get('Tid')

def set_Tid(self, Tid): # Long
self.add_query_param('Tid', Tid)
def get_AbacPolicyId(self): # Long
return self.get_query_params().get('AbacPolicyId')

def set_AbacPolicyId(self, AbacPolicyId): # Long
self.add_query_param('AbacPolicyId', AbacPolicyId)
def get_AbacPolicyName(self): # String
return self.get_query_params().get('AbacPolicyName')

def set_AbacPolicyName(self, AbacPolicyName): # String
self.add_query_param('AbacPolicyName', AbacPolicyName)
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
# 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
from aliyunsdkdms_enterprise.endpoint import endpoint_data

class GetDataLakeCatalogRequest(RpcRequest):

def __init__(self):
RpcRequest.__init__(self, 'dms-enterprise', '2018-11-01', 'GetDataLakeCatalog','dms-enterprise')
self.set_protocol_type('https')
self.set_method('POST')

if hasattr(self, "endpoint_map"):
setattr(self, "endpoint_map", endpoint_data.getEndpointMap())
if hasattr(self, "endpoint_regional"):
setattr(self, "endpoint_regional", endpoint_data.getEndpointRegional())

def get_Tid(self): # Long
return self.get_query_params().get('Tid')

def set_Tid(self, Tid): # Long
self.add_query_param('Tid', Tid)
def get_CatalogName(self): # String
return self.get_query_params().get('CatalogName')

def set_CatalogName(self, CatalogName): # String
self.add_query_param('CatalogName', CatalogName)
def get_DataRegion(self): # String
return self.get_query_params().get('DataRegion')

def set_DataRegion(self, DataRegion): # String
self.add_query_param('DataRegion', DataRegion)
Loading

0 comments on commit b486fb1

Please sign in to comment.