Skip to content

Commit 208d401

Browse files
committed
Generate dbfs sdk.
1 parent 5d57aac commit 208d401

14 files changed

+363
-0
lines changed

aliyun-python-sdk-dbfs/ChangeLog.txt

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
2020-06-08 Version: 1.0.0
2+
- Generate dbfs sdk.
3+

aliyun-python-sdk-dbfs/MANIFEST.in

Whitespace-only changes.

aliyun-python-sdk-dbfs/README.rst

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
=============================================================
2+
aliyun-python-sdk-dbfs
3+
=============================================================
4+
5+
.. This is the dbfs module of Aliyun Python SDK.
6+
7+
Aliyun Python SDK is the official software development kit. It makes things easy to integrate your Python application, library, or script with Aliyun services.
8+
9+
This module works on Python versions:
10+
11+
2.6.5 and greater
12+
13+
**Documentation:**
14+
15+
Please visit `http://develop.aliyun.com/sdk/python <http://develop.aliyun.com/sdk/python>`_
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
__version__ = '1.0.0'

aliyun-python-sdk-dbfs/aliyunsdkdbfs/request/__init__.py

Whitespace-only changes.
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+
22+
class AttachDbfsRequest(RpcRequest):
23+
24+
def __init__(self):
25+
RpcRequest.__init__(self, 'DBFS', '2020-02-19', 'AttachDbfs')
26+
self.set_method('POST')
27+
28+
def get_ECSInstanceId(self):
29+
return self.get_query_params().get('ECSInstanceId')
30+
31+
def set_ECSInstanceId(self,ECSInstanceId):
32+
self.add_query_param('ECSInstanceId',ECSInstanceId)
33+
34+
def get_FsId(self):
35+
return self.get_query_params().get('FsId')
36+
37+
def set_FsId(self,FsId):
38+
self.add_query_param('FsId',FsId)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
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+
22+
class CreateDbfsRequest(RpcRequest):
23+
24+
def __init__(self):
25+
RpcRequest.__init__(self, 'DBFS', '2020-02-19', 'CreateDbfs')
26+
self.set_method('POST')
27+
28+
def get_SizeG(self):
29+
return self.get_query_params().get('SizeG')
30+
31+
def set_SizeG(self,SizeG):
32+
self.add_query_param('SizeG',SizeG)
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_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')
54+
55+
def set_Category(self,Category):
56+
self.add_query_param('Category',Category)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
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+
22+
class DeleteDbfsRequest(RpcRequest):
23+
24+
def __init__(self):
25+
RpcRequest.__init__(self, 'DBFS', '2020-02-19', 'DeleteDbfs')
26+
self.set_method('POST')
27+
28+
def get_FsId(self):
29+
return self.get_query_params().get('FsId')
30+
31+
def set_FsId(self,FsId):
32+
self.add_query_param('FsId',FsId)
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+
22+
class DetachDbfsRequest(RpcRequest):
23+
24+
def __init__(self):
25+
RpcRequest.__init__(self, 'DBFS', '2020-02-19', 'DetachDbfs')
26+
self.set_method('POST')
27+
28+
def get_ECSInstanceId(self):
29+
return self.get_query_params().get('ECSInstanceId')
30+
31+
def set_ECSInstanceId(self,ECSInstanceId):
32+
self.add_query_param('ECSInstanceId',ECSInstanceId)
33+
34+
def get_FsId(self):
35+
return self.get_query_params().get('FsId')
36+
37+
def set_FsId(self,FsId):
38+
self.add_query_param('FsId',FsId)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
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+
22+
class GetDbfsRequest(RpcRequest):
23+
24+
def __init__(self):
25+
RpcRequest.__init__(self, 'DBFS', '2020-02-19', 'GetDbfs')
26+
self.set_method('GET')
27+
28+
def get_FsId(self):
29+
return self.get_query_params().get('FsId')
30+
31+
def set_FsId(self,FsId):
32+
self.add_query_param('FsId',FsId)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
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+
22+
class ListDbfsRequest(RpcRequest):
23+
24+
def __init__(self):
25+
RpcRequest.__init__(self, 'DBFS', '2020-02-19', 'ListDbfs')
26+
self.set_method('POST')
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+
22+
class ResizeDbfsRequest(RpcRequest):
23+
24+
def __init__(self):
25+
RpcRequest.__init__(self, 'DBFS', '2020-02-19', 'ResizeDbfs')
26+
self.set_method('POST')
27+
28+
def get_ClientToken(self):
29+
return self.get_query_params().get('ClientToken')
30+
31+
def set_ClientToken(self,ClientToken):
32+
self.add_query_param('ClientToken',ClientToken)
33+
34+
def get_NewSizeG(self):
35+
return self.get_query_params().get('NewSizeG')
36+
37+
def set_NewSizeG(self,NewSizeG):
38+
self.add_query_param('NewSizeG',NewSizeG)
39+
40+
def get_FsId(self):
41+
return self.get_query_params().get('FsId')
42+
43+
def set_FsId(self,FsId):
44+
self.add_query_param('FsId',FsId)

aliyun-python-sdk-dbfs/aliyunsdkdbfs/request/v20200219/__init__.py

Whitespace-only changes.

aliyun-python-sdk-dbfs/setup.py

+78
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
#!/usr/bin/python
2+
'''
3+
Licensed to the Apache Software Foundation (ASF) under one
4+
or more contributor license agreements. See the NOTICE file
5+
distributed with this work for additional information
6+
regarding copyright ownership. The ASF licenses this file
7+
to you under the Apache License, Version 2.0 (the
8+
"License"); you may not use this file except in compliance
9+
with the License. You may obtain a copy of the License at
10+
11+
http://www.apache.org/licenses/LICENSE-2.0
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+
from setuptools import setup, find_packages
22+
import os
23+
import sys
24+
25+
"""
26+
setup module for dbfs.
27+
28+
Created on 7/3/2015
29+
30+
@author: alex
31+
"""
32+
33+
PACKAGE = "aliyunsdkdbfs"
34+
NAME = "aliyun-python-sdk-dbfs"
35+
DESCRIPTION = "The dbfs module of Aliyun Python sdk."
36+
AUTHOR = "Aliyun"
37+
AUTHOR_EMAIL = "[email protected]"
38+
URL = "http://develop.aliyun.com/sdk/python"
39+
40+
TOPDIR = os.path.dirname(__file__) or "."
41+
VERSION = __import__(PACKAGE).__version__
42+
43+
desc_file = open("README.rst")
44+
try:
45+
LONG_DESCRIPTION = desc_file.read()
46+
finally:
47+
desc_file.close()
48+
49+
setup(
50+
name=NAME,
51+
version=VERSION,
52+
description=DESCRIPTION,
53+
long_description=LONG_DESCRIPTION,
54+
author=AUTHOR,
55+
author_email=AUTHOR_EMAIL,
56+
license="Apache",
57+
url=URL,
58+
keywords=["aliyun","sdk","dbfs"],
59+
packages=find_packages(exclude=["tests*"]),
60+
include_package_data=True,
61+
platforms="any",
62+
install_requires=["aliyun-python-sdk-core>=2.11.5",],
63+
classifiers=(
64+
"Development Status :: 4 - Beta",
65+
"Intended Audience :: Developers",
66+
"License :: OSI Approved :: Apache Software License",
67+
"Programming Language :: Python",
68+
"Programming Language :: Python :: 2.6",
69+
"Programming Language :: Python :: 2.7",
70+
"Programming Language :: Python :: 3",
71+
"Programming Language :: Python :: 3.3",
72+
"Programming Language :: Python :: 3.4",
73+
"Programming Language :: Python :: 3.5",
74+
"Programming Language :: Python :: 3.6",
75+
"Topic :: Software Development",
76+
)
77+
78+
)

0 commit comments

Comments
 (0)