# pulpcore-client
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
- API version: v3
- Package version: 3.1.0
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
## Requirements.
Python 2.7 and 3.4+
## Installation & Usage
### pip install
If the python package is hosted on a repository, you can install directly using:
```sh
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:
```python
import pulpcore.client.pulpcore
```
### Setuptools
Install via [Setuptools](http://pypi.python.org/pypi/setuptools).
```sh
python setup.py install --user
```
(or `sudo python setup.py install` to install the package for all users)
Then import the package:
```python
import pulpcore.client.pulpcore
```
## Getting Started
Please follow the [installation procedure](#installation--usage) and then run the following:
```python
from __future__ import print_function
import time
import pulpcore.client.pulpcore
from pulpcore.client.pulpcore.rest import ApiException
from pprint import pprint
configuration = pulpcore.client.pulpcore.Configuration()
# Configure HTTP basic authorization: Basic
configuration.username = 'YOUR_USERNAME'
configuration.password = 'YOUR_PASSWORD'
# Defining host is optional and default to http://localhost:24817
configuration.host = "http://localhost:24817"
# Create an instance of the API class
api_instance = pulpcore.client.pulpcore.ArtifactsApi(pulpcore.client.pulpcore.ApiClient(configuration))
file = '/path/to/file' # file | The stored file.
size = 56 # int | The size of the file in bytes. (optional)
md5 = 'md5_example' # str | The MD5 checksum of the file if available. (optional)
sha1 = 'sha1_example' # str | The SHA-1 checksum of the file if available. (optional)
sha224 = 'sha224_example' # str | The SHA-224 checksum of the file if available. (optional)
sha256 = 'sha256_example' # str | The SHA-256 checksum of the file if available. (optional)
sha384 = 'sha384_example' # str | The SHA-384 checksum of the file if available. (optional)
sha512 = 'sha512_example' # str | The SHA-512 checksum of the file if available. (optional)
try:
# Create an artifact
api_response = api_instance.create(file, size=size, md5=md5, sha1=sha1, sha224=sha224, sha256=sha256, sha384=sha384, sha512=sha512)
pprint(api_response)
except ApiException as e:
print("Exception when calling ArtifactsApi->create: %s\n" % e)
```
## Documentation for API Endpoints
All URIs are relative to *http://localhost:24817*
Class | Method | HTTP request | Description
------------ | ------------- | ------------- | -------------
*ArtifactsApi* | [**create**](docs/ArtifactsApi.md#create) | **POST** /pulp/api/v3/artifacts/ | Create an artifact
*ArtifactsApi* | [**delete**](docs/ArtifactsApi.md#delete) | **DELETE** {artifact_href} | Delete an artifact
*ArtifactsApi* | [**list**](docs/ArtifactsApi.md#list) | **GET** /pulp/api/v3/artifacts/ | List artifacts
*ArtifactsApi* | [**read**](docs/ArtifactsApi.md#read) | **GET** {artifact_href} | Inspect an artifact
*OrphansApi* | [**delete**](docs/OrphansApi.md#delete) | **DELETE** /pulp/api/v3/orphans/ | Delete orphans
*SigningServicesApi* | [**list**](docs/SigningServicesApi.md#list) | **GET** /pulp/api/v3/signing-services/ | List signing services
*SigningServicesApi* | [**read**](docs/SigningServicesApi.md#read) | **GET** {signing_service_href} | Inspect a signing service
*StatusApi* | [**status_read**](docs/StatusApi.md#status_read) | **GET** /pulp/api/v3/status/ | Inspect status of Pulp
*TasksApi* | [**delete**](docs/TasksApi.md#delete) | **DELETE** {task_href} | Delete a task
*TasksApi* | [**list**](docs/TasksApi.md#list) | **GET** /pulp/api/v3/tasks/ | List tasks
*TasksApi* | [**read**](docs/TasksApi.md#read) | **GET** {task_href} | Inspect a task
*TasksApi* | [**tasks_cancel**](docs/TasksApi.md#tasks_cancel) | **PATCH** {task_href} | Cancel a task
*UploadsApi* | [**commit**](docs/UploadsApi.md#commit) | **POST** {upload_href}commit/ | Finish an Upload
*UploadsApi* | [**create**](docs/UploadsApi.md#create) | **POST** /pulp/api/v3/uploads/ | Create an upload
*UploadsApi* | [**delete**](docs/UploadsApi.md#delete) | **DELETE** {upload_href} | Delete an upload
*UploadsApi* | [**list**](docs/UploadsApi.md#list) | **GET** /pulp/api/v3/uploads/ | List uploads
*UploadsApi* | [**read**](docs/UploadsApi.md#read) | **GET** {upload_href} | Inspect an upload
*UploadsApi* | [**update**](docs/UploadsApi.md#update) | **PUT** {upload_href} | Upload a file chunk
*WorkersApi* | [**list**](docs/WorkersApi.md#list) | **GET** /pulp/api/v3/workers/ | List workers
*WorkersApi* | [**read**](docs/WorkersApi.md#read) | **GET** {worker_href} | Inspect a worker
## Documentation For Models
- [Artifact](docs/Artifact.md)
- [AsyncOperationResponse](docs/AsyncOperationResponse.md)
- [ContentAppStatus](docs/ContentAppStatus.md)
- [DatabaseConnection](docs/DatabaseConnection.md)
- [InlineResponse200](docs/InlineResponse200.md)
- [InlineResponse2001](docs/InlineResponse2001.md)
- [InlineResponse2002](docs/InlineResponse2002.md)
- [InlineResponse2003](docs/InlineResponse2003.md)
- [InlineResponse2004](docs/InlineResponse2004.md)
- [ProgressReport](docs/ProgressReport.md)
- [RedisConnection](docs/RedisConnection.md)
- [SigningService](docs/SigningService.md)
- [Status](docs/Status.md)
- [Storage](docs/Storage.md)
- [Task](docs/Task.md)
- [TaskCancel](docs/TaskCancel.md)
- [Upload](docs/Upload.md)
- [UploadChunk](docs/UploadChunk.md)
- [UploadCommit](docs/UploadCommit.md)
- [UploadDetail](docs/UploadDetail.md)
- [Version](docs/Version.md)
- [Worker](docs/Worker.md)
## Documentation For Authorization
## Basic
- **Type**: HTTP basic authentication
## Author
没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
收起资源包目录
pulpcore-client-3.1.0.tar.gz (76个子文件)
pulpcore-client-3.1.0
PKG-INFO 403B
test
test_worker.py 898B
test_task_cancel.py 932B
test_uploads_api.py 1KB
test_task.py 882B
test_version.py 906B
test_status_api.py 895B
test_upload_commit.py 948B
test_database_connection.py 996B
test_redis_connection.py 972B
test_signing_service.py 964B
test_inline_response2002.py 996B
test_artifact.py 914B
test_tasks_api.py 1KB
test_inline_response2003.py 996B
test_workers_api.py 998B
test_upload_chunk.py 940B
test_artifacts_api.py 1KB
test_upload.py 898B
test_content_app_status.py 982B
test_storage.py 906B
test_orphans_api.py 883B
test_async_operation_response.py 1KB
test_status.py 898B
test_upload_detail.py 948B
test_inline_response200.py 988B
test_inline_response2004.py 996B
test_progress_report.py 964B
test_signing_services_api.py 1KB
test_inline_response2001.py 996B
pulpcore_client.egg-info
PKG-INFO 403B
requires.txt 48B
SOURCES.txt 3KB
top_level.txt 9B
dependency_links.txt 1B
setup.cfg 38B
setup.py 1KB
README.md 6KB
pulpcore
client
__init__.py 75B
pulpcore
models
upload_chunk.py 5KB
inline_response2004.py 5KB
inline_response2002.py 5KB
signing_service.py 6KB
storage.py 6KB
upload_detail.py 6KB
redis_connection.py 4KB
inline_response200.py 5KB
task.py 12KB
artifact.py 11KB
inline_response2003.py 5KB
progress_report.py 8KB
__init__.py 2KB
async_operation_response.py 4KB
content_app_status.py 4KB
database_connection.py 4KB
upload_commit.py 4KB
status.py 9KB
upload.py 6KB
worker.py 6KB
inline_response2001.py 5KB
version.py 5KB
task_cancel.py 4KB
configuration.py 10KB
api
signing_services_api.py 12KB
status_api.py 6KB
orphans_api.py 5KB
artifacts_api.py 28KB
tasks_api.py 30KB
__init__.py 550B
uploads_api.py 35KB
workers_api.py 15KB
__init__.py 3KB
api_client.py 25KB
rest.py 12KB
exceptions.py 4KB
__init__.py 75B
共 76 条
- 1
资源评论
挣扎的蓝藻
- 粉丝: 13w+
- 资源: 15万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功