Skip to content

Commit b486fb1

Browse files
committed
Support ListDataLakeCatalog, ListDataLakeDatabase, ListDataLakeTablebaseInfo, GetDataLakeCatalog, GetDataLakeDatabase, GetDataLakeTable API.
1 parent 403a16b commit b486fb1

28 files changed

+1363
-8
lines changed

aliyun-python-sdk-dms-enterprise/ChangeLog.txt

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
2024-11-27 Version: 1.53.11
2+
- Support ListDataLakeCatalog, ListDataLakeDatabase, ListDataLakeTablebaseInfo, GetDataLakeCatalog, GetDataLakeDatabase, GetDataLakeTable API.
3+
14
2024-08-02 Version: 1.53.10
25
- Support switch login user
36

aliyun-python-sdk-dms-enterprise/README.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Aliyun Python SDK is the official software development kit. It makes things easy
88

99
This module works on Python versions:
1010

11-
2.6.5 and greater
11+
3.7 and greater
1212

1313
**Documentation:**
1414

Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = '1.53.10'
1+
__version__ = '1.53.11'
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
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+
from aliyunsdkdms_enterprise.endpoint import endpoint_data
22+
import json
23+
24+
class AddAuthorityTemplateItemsRequest(RpcRequest):
25+
26+
def __init__(self):
27+
RpcRequest.__init__(self, 'dms-enterprise', '2018-11-01', 'AddAuthorityTemplateItems','dms-enterprise')
28+
self.set_protocol_type('https')
29+
self.set_method('POST')
30+
31+
if hasattr(self, "endpoint_map"):
32+
setattr(self, "endpoint_map", endpoint_data.getEndpointMap())
33+
if hasattr(self, "endpoint_regional"):
34+
setattr(self, "endpoint_regional", endpoint_data.getEndpointRegional())
35+
36+
def get_Tid(self): # Long
37+
return self.get_query_params().get('Tid')
38+
39+
def set_Tid(self, Tid): # Long
40+
self.add_query_param('Tid', Tid)
41+
def get_TemplateId(self): # Long
42+
return self.get_query_params().get('TemplateId')
43+
44+
def set_TemplateId(self, TemplateId): # Long
45+
self.add_query_param('TemplateId', TemplateId)
46+
def get_Items(self): # Array
47+
return self.get_query_params().get('Items')
48+
49+
def set_Items(self, Items): # Array
50+
self.add_query_param("Items", json.dumps(Items))
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
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+
from aliyunsdkdms_enterprise.endpoint import endpoint_data
22+
23+
class CreateAbacAuthorizationRequest(RpcRequest):
24+
25+
def __init__(self):
26+
RpcRequest.__init__(self, 'dms-enterprise', '2018-11-01', 'CreateAbacAuthorization','dms-enterprise')
27+
self.set_protocol_type('https')
28+
self.set_method('POST')
29+
30+
if hasattr(self, "endpoint_map"):
31+
setattr(self, "endpoint_map", endpoint_data.getEndpointMap())
32+
if hasattr(self, "endpoint_regional"):
33+
setattr(self, "endpoint_regional", endpoint_data.getEndpointRegional())
34+
35+
def get_RoleId(self): # Long
36+
return self.get_query_params().get('RoleId')
37+
38+
def set_RoleId(self, RoleId): # Long
39+
self.add_query_param('RoleId', RoleId)
40+
def get_UserId(self): # Long
41+
return self.get_query_params().get('UserId')
42+
43+
def set_UserId(self, UserId): # Long
44+
self.add_query_param('UserId', UserId)
45+
def get_Tid(self): # Long
46+
return self.get_query_params().get('Tid')
47+
48+
def set_Tid(self, Tid): # Long
49+
self.add_query_param('Tid', Tid)
50+
def get_PolicyId(self): # Long
51+
return self.get_query_params().get('PolicyId')
52+
53+
def set_PolicyId(self, PolicyId): # Long
54+
self.add_query_param('PolicyId', PolicyId)
55+
def get_IdentityType(self): # String
56+
return self.get_query_params().get('IdentityType')
57+
58+
def set_IdentityType(self, IdentityType): # String
59+
self.add_query_param('IdentityType', IdentityType)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
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+
from aliyunsdkdms_enterprise.endpoint import endpoint_data
22+
23+
class CreateAbacPolicyRequest(RpcRequest):
24+
25+
def __init__(self):
26+
RpcRequest.__init__(self, 'dms-enterprise', '2018-11-01', 'CreateAbacPolicy','dms-enterprise')
27+
self.set_protocol_type('https')
28+
self.set_method('POST')
29+
30+
if hasattr(self, "endpoint_map"):
31+
setattr(self, "endpoint_map", endpoint_data.getEndpointMap())
32+
if hasattr(self, "endpoint_regional"):
33+
setattr(self, "endpoint_regional", endpoint_data.getEndpointRegional())
34+
35+
def get_AbacPolicyContent(self): # String
36+
return self.get_query_params().get('AbacPolicyContent')
37+
38+
def set_AbacPolicyContent(self, AbacPolicyContent): # String
39+
self.add_query_param('AbacPolicyContent', AbacPolicyContent)
40+
def get_Tid(self): # Long
41+
return self.get_query_params().get('Tid')
42+
43+
def set_Tid(self, Tid): # Long
44+
self.add_query_param('Tid', Tid)
45+
def get_AbacPolicyDesc(self): # String
46+
return self.get_query_params().get('AbacPolicyDesc')
47+
48+
def set_AbacPolicyDesc(self, AbacPolicyDesc): # String
49+
self.add_query_param('AbacPolicyDesc', AbacPolicyDesc)
50+
def get_AbacPolicyName(self): # String
51+
return self.get_query_params().get('AbacPolicyName')
52+
53+
def set_AbacPolicyName(self, AbacPolicyName): # String
54+
self.add_query_param('AbacPolicyName', AbacPolicyName)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
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+
from aliyunsdkdms_enterprise.endpoint import endpoint_data
22+
23+
class DeleteAbacAuthorizationRequest(RpcRequest):
24+
25+
def __init__(self):
26+
RpcRequest.__init__(self, 'dms-enterprise', '2018-11-01', 'DeleteAbacAuthorization','dms-enterprise')
27+
self.set_protocol_type('https')
28+
self.set_method('POST')
29+
30+
if hasattr(self, "endpoint_map"):
31+
setattr(self, "endpoint_map", endpoint_data.getEndpointMap())
32+
if hasattr(self, "endpoint_regional"):
33+
setattr(self, "endpoint_regional", endpoint_data.getEndpointRegional())
34+
35+
def get_Tid(self): # Long
36+
return self.get_query_params().get('Tid')
37+
38+
def set_Tid(self, Tid): # Long
39+
self.add_query_param('Tid', Tid)
40+
def get_IdentityType(self): # String
41+
return self.get_query_params().get('IdentityType')
42+
43+
def set_IdentityType(self, IdentityType): # String
44+
self.add_query_param('IdentityType', IdentityType)
45+
def get_AuthorizationId(self): # Long
46+
return self.get_query_params().get('AuthorizationId')
47+
48+
def set_AuthorizationId(self, AuthorizationId): # Long
49+
self.add_query_param('AuthorizationId', AuthorizationId)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
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+
from aliyunsdkdms_enterprise.endpoint import endpoint_data
22+
23+
class DeleteAbacPolicyRequest(RpcRequest):
24+
25+
def __init__(self):
26+
RpcRequest.__init__(self, 'dms-enterprise', '2018-11-01', 'DeleteAbacPolicy','dms-enterprise')
27+
self.set_protocol_type('https')
28+
self.set_method('POST')
29+
30+
if hasattr(self, "endpoint_map"):
31+
setattr(self, "endpoint_map", endpoint_data.getEndpointMap())
32+
if hasattr(self, "endpoint_regional"):
33+
setattr(self, "endpoint_regional", endpoint_data.getEndpointRegional())
34+
35+
def get_Tid(self): # Long
36+
return self.get_query_params().get('Tid')
37+
38+
def set_Tid(self, Tid): # Long
39+
self.add_query_param('Tid', Tid)
40+
def get_AbacPolicyId(self): # Long
41+
return self.get_query_params().get('AbacPolicyId')
42+
43+
def set_AbacPolicyId(self, AbacPolicyId): # Long
44+
self.add_query_param('AbacPolicyId', AbacPolicyId)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
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+
from aliyunsdkdms_enterprise.endpoint import endpoint_data
22+
23+
class GetAbacPolicyRequest(RpcRequest):
24+
25+
def __init__(self):
26+
RpcRequest.__init__(self, 'dms-enterprise', '2018-11-01', 'GetAbacPolicy','dms-enterprise')
27+
self.set_protocol_type('https')
28+
self.set_method('POST')
29+
30+
if hasattr(self, "endpoint_map"):
31+
setattr(self, "endpoint_map", endpoint_data.getEndpointMap())
32+
if hasattr(self, "endpoint_regional"):
33+
setattr(self, "endpoint_regional", endpoint_data.getEndpointRegional())
34+
35+
def get_Tid(self): # Long
36+
return self.get_query_params().get('Tid')
37+
38+
def set_Tid(self, Tid): # Long
39+
self.add_query_param('Tid', Tid)
40+
def get_AbacPolicyId(self): # Long
41+
return self.get_query_params().get('AbacPolicyId')
42+
43+
def set_AbacPolicyId(self, AbacPolicyId): # Long
44+
self.add_query_param('AbacPolicyId', AbacPolicyId)
45+
def get_AbacPolicyName(self): # String
46+
return self.get_query_params().get('AbacPolicyName')
47+
48+
def set_AbacPolicyName(self, AbacPolicyName): # String
49+
self.add_query_param('AbacPolicyName', AbacPolicyName)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
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+
from aliyunsdkdms_enterprise.endpoint import endpoint_data
22+
23+
class GetDataLakeCatalogRequest(RpcRequest):
24+
25+
def __init__(self):
26+
RpcRequest.__init__(self, 'dms-enterprise', '2018-11-01', 'GetDataLakeCatalog','dms-enterprise')
27+
self.set_protocol_type('https')
28+
self.set_method('POST')
29+
30+
if hasattr(self, "endpoint_map"):
31+
setattr(self, "endpoint_map", endpoint_data.getEndpointMap())
32+
if hasattr(self, "endpoint_regional"):
33+
setattr(self, "endpoint_regional", endpoint_data.getEndpointRegional())
34+
35+
def get_Tid(self): # Long
36+
return self.get_query_params().get('Tid')
37+
38+
def set_Tid(self, Tid): # Long
39+
self.add_query_param('Tid', Tid)
40+
def get_CatalogName(self): # String
41+
return self.get_query_params().get('CatalogName')
42+
43+
def set_CatalogName(self, CatalogName): # String
44+
self.add_query_param('CatalogName', CatalogName)
45+
def get_DataRegion(self): # String
46+
return self.get_query_params().get('DataRegion')
47+
48+
def set_DataRegion(self, DataRegion): # String
49+
self.add_query_param('DataRegion', DataRegion)

0 commit comments

Comments
 (0)