Skip to content

Commit e710dec

Browse files
committed
OpenAPI release.
1 parent 145abb7 commit e710dec

28 files changed

+935
-42
lines changed

Diff for: aliyun-python-sdk-dbfs/ChangeLog.txt

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
2021-01-19 Version: 1.0.2
2+
- OpenAPI release.
3+
14
2020-06-08 Version: 1.0.0
25
- Generate dbfs sdk.
36

Diff for: aliyun-python-sdk-dbfs/LICENSE

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
Copyright 1999-present Alibaba Group Holding Ltd.
2+
3+
Licensed under the Apache License, Version 2.0 (the "License");
4+
you may not use this file except in compliance with the License.
5+
You may obtain a copy of the License at
6+
7+
http://www.apache.org/licenses/LICENSE-2.0
8+
9+
Unless required by applicable law or agreed to in writing, software
10+
distributed under the License is distributed on an "AS IS" BASIS,
11+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
See the License for the specific language governing permissions and
13+
limitations under the License.

Diff for: aliyun-python-sdk-dbfs/MANIFEST.in

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
include LICENSE README.rst ChangeLog.txt

Diff for: aliyun-python-sdk-dbfs/aliyunsdkdbfs/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = '1.0.0'
1+
__version__ = '1.0.2'

Diff for: aliyun-python-sdk-dbfs/aliyunsdkdbfs/endpoint.py

+71
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
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+
21+
class EndpointData():
22+
def __init__(self):
23+
self.endpoint_map = {
24+
"cn-shanghai-internal-test-1": "dbfs.aliyuncs.com",
25+
"cn-beijing-gov-1": "dbfs.aliyuncs.com",
26+
"cn-shenzhen-su18-b01": "dbfs.aliyuncs.com",
27+
"cn-wulanchabu": "dbfs.aliyuncs.com",
28+
"cn-shanghai-inner": "dbfs.aliyuncs.com",
29+
"cn-shenzhen-st4-d01": "dbfs.aliyuncs.com",
30+
"cn-haidian-cm12-c01": "dbfs.aliyuncs.com",
31+
"cn-hangzhou-internal-prod-1": "dbfs.aliyuncs.com",
32+
"cn-north-2-gov-1": "dbfs.aliyuncs.com",
33+
"cn-yushanfang": "dbfs.aliyuncs.com",
34+
"cn-hongkong-finance-pop": "dbfs.aliyuncs.com",
35+
"cn-qingdao-nebula": "dbfs.aliyuncs.com",
36+
"cn-shanghai-finance-1": "dbfs.aliyuncs.com",
37+
"cn-beijing-finance-pop": "dbfs.aliyuncs.com",
38+
"cn-wuhan": "dbfs.aliyuncs.com",
39+
"cn-zhangbei": "dbfs.aliyuncs.com",
40+
"cn-zhengzhou-nebula-1": "dbfs.aliyuncs.com",
41+
"rus-west-1-pop": "dbfs.aliyuncs.com",
42+
"cn-shanghai-et15-b01": "dbfs.aliyuncs.com",
43+
"cn-hangzhou-bj-b01": "dbfs.aliyuncs.com",
44+
"cn-hangzhou-internal-test-1": "dbfs.aliyuncs.com",
45+
"eu-west-1-oxs": "dbfs.aliyuncs.com",
46+
"cn-zhangbei-na61-b01": "dbfs.aliyuncs.com",
47+
"cn-beijing-finance-1": "dbfs.aliyuncs.com",
48+
"cn-hangzhou-internal-test-3": "dbfs.aliyuncs.com",
49+
"cn-hangzhou-internal-test-2": "dbfs.aliyuncs.com",
50+
"cn-shenzhen-finance-1": "dbfs.aliyuncs.com",
51+
"cn-hangzhou-test-306": "dbfs.aliyuncs.com",
52+
"cn-huhehaote-nebula-1": "dbfs.aliyuncs.com",
53+
"cn-shanghai-et2-b01": "dbfs.aliyuncs.com",
54+
"cn-hangzhou-finance": "dbfs.aliyuncs.com",
55+
"cn-beijing-nu16-b01": "dbfs.aliyuncs.com",
56+
"cn-edge-1": "dbfs.aliyuncs.com",
57+
"cn-fujian": "dbfs.aliyuncs.com",
58+
"ap-northeast-2-pop": "dbfs.aliyuncs.com",
59+
"cn-shenzhen-inner": "dbfs.aliyuncs.com",
60+
"cn-zhangjiakou-na62-a01": "dbfs.aliyuncs.com",
61+
}
62+
self.endpoint_regional = "regional"
63+
64+
def getEndpointMap(self):
65+
return self.endpoint_map
66+
67+
def getEndpointRegional(self):
68+
return self.endpoint_regional
69+
70+
71+
endpoint_data = EndpointData()

Diff for: aliyun-python-sdk-dbfs/aliyunsdkdbfs/request/v20200219/CreateDbfsRequest.py renamed to aliyun-python-sdk-dbfs/aliyunsdkdbfs/request/v20200418/AddTagsBatchRequest.py

+17-23
Original file line numberDiff line numberDiff line change
@@ -18,39 +18,33 @@
1818
# under the License.
1919

2020
from aliyunsdkcore.request import RpcRequest
21+
from aliyunsdkdbfs.endpoint import endpoint_data
2122

22-
class CreateDbfsRequest(RpcRequest):
23+
class AddTagsBatchRequest(RpcRequest):
2324

2425
def __init__(self):
25-
RpcRequest.__init__(self, 'DBFS', '2020-02-19', 'CreateDbfs')
26-
self.set_method('POST')
26+
RpcRequest.__init__(self, 'DBFS', '2020-04-18', 'AddTagsBatch')
27+
self.set_method('POST')
28+
if hasattr(self, "endpoint_map"):
29+
setattr(self, "endpoint_map", endpoint_data.getEndpointMap())
30+
if hasattr(self, "endpoint_regional"):
31+
setattr(self, "endpoint_regional", endpoint_data.getEndpointRegional())
2732

28-
def get_SizeG(self):
29-
return self.get_query_params().get('SizeG')
3033

31-
def set_SizeG(self,SizeG):
32-
self.add_query_param('SizeG',SizeG)
34+
def get_DbfsList(self):
35+
return self.get_query_params().get('DbfsList')
36+
37+
def set_DbfsList(self,DbfsList):
38+
self.add_query_param('DbfsList',DbfsList)
3339

3440
def get_ClientToken(self):
3541
return self.get_query_params().get('ClientToken')
3642

3743
def set_ClientToken(self,ClientToken):
3844
self.add_query_param('ClientToken',ClientToken)
3945

40-
def get_FsName(self):
41-
return self.get_query_params().get('FsName')
42-
43-
def set_FsName(self,FsName):
44-
self.add_query_param('FsName',FsName)
45-
46-
def get_ZoneId(self):
47-
return self.get_query_params().get('ZoneId')
48-
49-
def set_ZoneId(self,ZoneId):
50-
self.add_query_param('ZoneId',ZoneId)
51-
52-
def get_Category(self):
53-
return self.get_query_params().get('Category')
46+
def get_Tags(self):
47+
return self.get_query_params().get('Tags')
5448

55-
def set_Category(self,Category):
56-
self.add_query_param('Category',Category)
49+
def set_Tags(self,Tags):
50+
self.add_query_param('Tags',Tags)

Diff for: aliyun-python-sdk-dbfs/aliyunsdkdbfs/request/v20200219/AttachDbfsRequest.py renamed to aliyun-python-sdk-dbfs/aliyunsdkdbfs/request/v20200418/AttachDbfsRequest.py

+8-2
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,18 @@
1818
# under the License.
1919

2020
from aliyunsdkcore.request import RpcRequest
21+
from aliyunsdkdbfs.endpoint import endpoint_data
2122

2223
class AttachDbfsRequest(RpcRequest):
2324

2425
def __init__(self):
25-
RpcRequest.__init__(self, 'DBFS', '2020-02-19', 'AttachDbfs')
26-
self.set_method('POST')
26+
RpcRequest.__init__(self, 'DBFS', '2020-04-18', 'AttachDbfs')
27+
self.set_method('POST')
28+
if hasattr(self, "endpoint_map"):
29+
setattr(self, "endpoint_map", endpoint_data.getEndpointMap())
30+
if hasattr(self, "endpoint_regional"):
31+
setattr(self, "endpoint_regional", endpoint_data.getEndpointRegional())
32+
2733

2834
def get_ECSInstanceId(self):
2935
return self.get_query_params().get('ECSInstanceId')
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,104 @@
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 aliyunsdkdbfs.endpoint import endpoint_data
22+
23+
class CreateDbfsRequest(RpcRequest):
24+
25+
def __init__(self):
26+
RpcRequest.__init__(self, 'DBFS', '2020-04-18', 'CreateDbfs')
27+
self.set_method('POST')
28+
if hasattr(self, "endpoint_map"):
29+
setattr(self, "endpoint_map", endpoint_data.getEndpointMap())
30+
if hasattr(self, "endpoint_regional"):
31+
setattr(self, "endpoint_regional", endpoint_data.getEndpointRegional())
32+
33+
34+
def get_SizeG(self):
35+
return self.get_query_params().get('SizeG')
36+
37+
def set_SizeG(self,SizeG):
38+
self.add_query_param('SizeG',SizeG)
39+
40+
def get_SnapshotId(self):
41+
return self.get_query_params().get('SnapshotId')
42+
43+
def set_SnapshotId(self,SnapshotId):
44+
self.add_query_param('SnapshotId',SnapshotId)
45+
46+
def get_ClientToken(self):
47+
return self.get_query_params().get('ClientToken')
48+
49+
def set_ClientToken(self,ClientToken):
50+
self.add_query_param('ClientToken',ClientToken)
51+
52+
def get_FsName(self):
53+
return self.get_query_params().get('FsName')
54+
55+
def set_FsName(self,FsName):
56+
self.add_query_param('FsName',FsName)
57+
58+
def get_RaidStripeUnitNumber(self):
59+
return self.get_query_params().get('RaidStripeUnitNumber')
60+
61+
def set_RaidStripeUnitNumber(self,RaidStripeUnitNumber):
62+
self.add_query_param('RaidStripeUnitNumber',RaidStripeUnitNumber)
63+
64+
def get_Encryption(self):
65+
return self.get_query_params().get('Encryption')
66+
67+
def set_Encryption(self,Encryption):
68+
self.add_query_param('Encryption',Encryption)
69+
70+
def get_PerformanceLevel(self):
71+
return self.get_query_params().get('PerformanceLevel')
72+
73+
def set_PerformanceLevel(self,PerformanceLevel):
74+
self.add_query_param('PerformanceLevel',PerformanceLevel)
75+
76+
def get_EnableRaid(self):
77+
return self.get_query_params().get('EnableRaid')
78+
79+
def set_EnableRaid(self,EnableRaid):
80+
self.add_query_param('EnableRaid',EnableRaid)
81+
82+
def get_DeleteSnapshot(self):
83+
return self.get_query_params().get('DeleteSnapshot')
84+
85+
def set_DeleteSnapshot(self,DeleteSnapshot):
86+
self.add_query_param('DeleteSnapshot',DeleteSnapshot)
87+
88+
def get_ZoneId(self):
89+
return self.get_query_params().get('ZoneId')
90+
91+
def set_ZoneId(self,ZoneId):
92+
self.add_query_param('ZoneId',ZoneId)
93+
94+
def get_Category(self):
95+
return self.get_query_params().get('Category')
96+
97+
def set_Category(self,Category):
98+
self.add_query_param('Category',Category)
99+
100+
def get_KMSKeyId(self):
101+
return self.get_query_params().get('KMSKeyId')
102+
103+
def set_KMSKeyId(self,KMSKeyId):
104+
self.add_query_param('KMSKeyId',KMSKeyId)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
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 aliyunsdkdbfs.endpoint import endpoint_data
22+
23+
class CreateServiceLinkedRoleRequest(RpcRequest):
24+
25+
def __init__(self):
26+
RpcRequest.__init__(self, 'DBFS', '2020-04-18', 'CreateServiceLinkedRole')
27+
self.set_method('POST')
28+
if hasattr(self, "endpoint_map"):
29+
setattr(self, "endpoint_map", endpoint_data.getEndpointMap())
30+
if hasattr(self, "endpoint_regional"):
31+
setattr(self, "endpoint_regional", endpoint_data.getEndpointRegional())
32+
33+
34+
def get_ClientToken(self):
35+
return self.get_query_params().get('ClientToken')
36+
37+
def set_ClientToken(self,ClientToken):
38+
self.add_query_param('ClientToken',ClientToken)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
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 aliyunsdkdbfs.endpoint import endpoint_data
22+
23+
class CreateSnapshotRequest(RpcRequest):
24+
25+
def __init__(self):
26+
RpcRequest.__init__(self, 'DBFS', '2020-04-18', 'CreateSnapshot')
27+
self.set_method('POST')
28+
if hasattr(self, "endpoint_map"):
29+
setattr(self, "endpoint_map", endpoint_data.getEndpointMap())
30+
if hasattr(self, "endpoint_regional"):
31+
setattr(self, "endpoint_regional", endpoint_data.getEndpointRegional())
32+
33+
34+
def get_ClientToken(self):
35+
return self.get_query_params().get('ClientToken')
36+
37+
def set_ClientToken(self,ClientToken):
38+
self.add_query_param('ClientToken',ClientToken)
39+
40+
def get_Description(self):
41+
return self.get_query_params().get('Description')
42+
43+
def set_Description(self,Description):
44+
self.add_query_param('Description',Description)
45+
46+
def get_SnapshotName(self):
47+
return self.get_query_params().get('SnapshotName')
48+
49+
def set_SnapshotName(self,SnapshotName):
50+
self.add_query_param('SnapshotName',SnapshotName)
51+
52+
def get_FsId(self):
53+
return self.get_query_params().get('FsId')
54+
55+
def set_FsId(self,FsId):
56+
self.add_query_param('FsId',FsId)
57+
58+
def get_RetentionDays(self):
59+
return self.get_query_params().get('RetentionDays')
60+
61+
def set_RetentionDays(self,RetentionDays):
62+
self.add_query_param('RetentionDays',RetentionDays)

0 commit comments

Comments
 (0)