Skip to content

Commit 208d401

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

File tree

14 files changed

+363
-0
lines changed

14 files changed

+363
-0
lines changed

aliyun-python-sdk-dbfs/ChangeLog.txt

Lines changed: 3 additions & 0 deletions
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

Lines changed: 15 additions & 0 deletions
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>`_
Lines changed: 1 addition & 0 deletions
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.
Lines changed: 38 additions & 0 deletions
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)
Lines changed: 56 additions & 0 deletions
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)
Lines changed: 32 additions & 0 deletions
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)
Lines changed: 38 additions & 0 deletions
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)
Lines changed: 32 additions & 0 deletions
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)

0 commit comments

Comments
 (0)