This repository contains Aspose.Storage Cloud SDK for Python source code. This SDK allows you to work with Aspose.Storage Cloud REST APIs in your Python applications quickly and easily, with zero initial cost. See API Reference for full API specification.
This Python package is automatically generated by the Swagger Codegen project:
- API version: 1.1
- Package version: 1.0.6
- Build package: io.swagger.codegen.languages.PythonClientCodegen
Python 2.7 and 3.4+
If the python package is hosted on Github, you can install directly from Github
pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git
(you may need to run pip
with root permission: sudo pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git
)
Then import the package:
import asposestoragecloud
Install via Setuptools.
python setup.py install --user
(or sudo python setup.py install
to install the package for all users)
Then import the package:
import asposestoragecloud
Please follow the installation procedure and then run the following:
from __future__ import print_function
import time
import asposestoragecloud
from asposestoragecloud.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = asposestoragecloud.StorageApi()
path = 'path_example' # str | Path of the file including file name and extension e.g. /Folder1/file.ext
version_id = 'version_id_example' # str | File's version (optional)
storage = 'storage_example' # str | User's storage name (optional)
try:
# Remove a specific file
api_response = api_instance.delete_file(path, version_id=version_id, storage=storage)
pprint(api_response)
except ApiException as e:
print("Exception when calling StorageApi->delete_file: %s\n" % e)
All URIs are relative to https://api.aspose.cloud/v1.1.
Class | Method | HTTP request | Description |
---|---|---|---|
StorageApi | delete_file | DELETE /storage/file | Remove a specific file |
StorageApi | delete_folder | DELETE /storage/folder | Remove a specific folder |
StorageApi | get_disc_usage | GET /storage/disc | Check the disk usage of the current account |
StorageApi | get_download | GET /storage/file | Download a specific file |
StorageApi | get_is_exist | GET /storage/exist | Check if a specific file or folder exists |
StorageApi | get_is_storage_exist | GET /storage/{name}/exist | Check if storage exists |
StorageApi | get_list_file_versions | GET /storage/version | Get the file's versions list |
StorageApi | get_list_files | GET /storage/folder | Get the file listing of a specific folder |
StorageApi | post_move_file | POST /storage/file | Move a specific file |
StorageApi | post_move_folder | POST /storage/folder | Move a specific folder |
StorageApi | put_create | PUT /storage/file | Upload a specific file |
StorageApi | put_create_folder | PUT /storage/folder | Create the folder |
- Type: API key
- API key parameter name: appsid
- Location: URL query string
- Type: OAuth
- Flow: application
- Authorization URL: http://api.aspose.cloud/oauth2/token
- Scopes: N/A
- Type: API key
- API key parameter name: signature
- Location: URL query string