# pulpcore-client
Fetch, Upload, Organize, and Distribute Software Packages
This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
- API version: v3
- Package version: 3.19.0.dev1647055788
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
For more information, please visit [https://pulpproject.org](https://pulpproject.org)
## 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
# Defining the host is optional and defaults to https://pulp
# See configuration.py for a list of all supported configuration parameters.
configuration = pulpcore.client.pulpcore.Configuration(
host = "https://pulp"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
# Configure HTTP basic authorization: basicAuth
configuration = pulpcore.client.pulpcore.Configuration(
username = 'YOUR_USERNAME',
password = 'YOUR_PASSWORD'
)
# Configure API key authorization: cookieAuth
configuration = pulpcore.client.pulpcore.Configuration(
host = "https://pulp",
api_key = {
'sessionid': 'YOUR_API_KEY'
}
)
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['sessionid'] = 'Bearer'
# Enter a context with an instance of the API client
with pulpcore.client.pulpcore.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = pulpcore.client.pulpcore.AccessPoliciesApi(api_client)
customized = True # bool | (optional)
limit = 56 # int | Number of results to return per page. (optional)
offset = 56 # int | The initial index from which to return the results. (optional)
ordering = 'ordering_example' # str | Which field to use when ordering the results. (optional)
viewset_name = 'viewset_name_example' # str | Filter results where viewset_name matches value (optional)
viewset_name__contains = 'viewset_name__contains_example' # str | Filter results where viewset_name contains value (optional)
viewset_name__icontains = 'viewset_name__icontains_example' # str | Filter results where viewset_name contains value (optional)
viewset_name__in = ['viewset_name__in_example'] # list[str] | Filter results where viewset_name is in a comma-separated list of values (optional)
viewset_name__startswith = 'viewset_name__startswith_example' # str | Filter results where viewset_name starts with value (optional)
fields = 'fields_example' # str | A list of fields to include in the response. (optional)
exclude_fields = 'exclude_fields_example' # str | A list of fields to exclude from the response. (optional)
try:
# List access policys
api_response = api_instance.list(customized=customized, limit=limit, offset=offset, ordering=ordering, viewset_name=viewset_name, viewset_name__contains=viewset_name__contains, viewset_name__icontains=viewset_name__icontains, viewset_name__in=viewset_name__in, viewset_name__startswith=viewset_name__startswith, fields=fields, exclude_fields=exclude_fields)
pprint(api_response)
except ApiException as e:
print("Exception when calling AccessPoliciesApi->list: %s\n" % e)
```
## Documentation for API Endpoints
All URIs are relative to *https://pulp*
Class | Method | HTTP request | Description
------------ | ------------- | ------------- | -------------
*AccessPoliciesApi* | [**list**](docs/AccessPoliciesApi.md#list) | **GET** /pulp/api/v3/access_policies/ | List access policys
*AccessPoliciesApi* | [**partial_update**](docs/AccessPoliciesApi.md#partial_update) | **PATCH** {access_policy_href} | Update an access policy
*AccessPoliciesApi* | [**read**](docs/AccessPoliciesApi.md#read) | **GET** {access_policy_href} | Inspect an access policy
*AccessPoliciesApi* | [**reset**](docs/AccessPoliciesApi.md#reset) | **POST** {access_policy_href}reset/ |
*AccessPoliciesApi* | [**update**](docs/AccessPoliciesApi.md#update) | **PUT** {access_policy_href} | Update an access policy
*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
*ContentApi* | [**list**](docs/ContentApi.md#list) | **GET** /pulp/api/v3/content/ | List content
*ContentguardsApi* | [**list**](docs/ContentguardsApi.md#list) | **GET** /pulp/api/v3/contentguards/ | List content guards
*ContentguardsContentRedirectApi* | [**create**](docs/ContentguardsContentRedirectApi.md#create) | **POST** /pulp/api/v3/contentguards/core/content_redirect/ | Create a content redirect content guard
*ContentguardsContentRedirectApi* | [**delete**](docs/ContentguardsContentRedirectApi.md#delete) | **DELETE** {content_redirect_content_guard_href} | Delete a content redirect content guard
*ContentguardsContentRedirectApi* | [**list**](docs/ContentguardsContentRedirectApi.md#list) | **GET** /pulp/api/v3/contentguards/core/content_redirect/ | List content redirect content guards
*ContentguardsContentRedirectApi* | [**partial_update**](docs/ContentguardsContentRedirectApi.md#partial_update) | **PATCH** {content_redirect_content_guard_href} | Update a content redirect content guard
*ContentguardsContentRedirectApi* | [**read**](docs/ContentguardsContentRedirectApi.md#read) | **GET** {content_redirect_content_guard_href} | Inspect a content redirect content guard
*ContentguardsContentRedirectApi* | [**update**](docs/ContentguardsContentRedirectApi.md#update) | **PUT** {content_redirect_content_guard_href} | Update a content redirect content guard
*ContentguardsRbacApi* | [**add_role**](docs/ContentguardsRbacApi.md#add_role) | **POST** {r_b_a_c_content_guard_href}add_role/ |
*ContentguardsRbacApi* | [**create**](docs/ContentguardsRbacApi.md#create) | **POST** /pulp/api/v3/contentguards/core/rbac/ | Create a rbac content guard
*ContentguardsRbacApi* | [**delete**](docs/ContentguardsRbacApi.md#delete) | **DELETE** {r_b_a_c_content_guard_href} | Delete a rbac content guard
*ContentguardsRbacApi* | [**list**](docs/ContentguardsRbacApi.md#list) | **GET** /pulp/api/v3/contentguards/core/rbac/ | List rbac content guards
*ContentguardsRbacApi* | [**list_roles**](docs/ContentguardsRbacApi.md#list_roles) | **GET** {r_b_a_c_content_guard_href}list_roles/ |
*ContentguardsRbacApi* | [**my_permissions**](docs/ContentguardsRbacApi.md#my_permissions) | **GET** {r_b_a_c_content_guard_href}my_permissions/ |
*ContentguardsRbacApi* | [**partial_update**](docs/ContentguardsRbacApi.md#partial_update) | **PATCH** {r_b_a_c_content_guard_href} | Update a rbac content guard
*ContentguardsRbacApi* | [**read**](docs/ContentguardsRbacApi.md#read) | **GET** {r_b_a_c_content_gu
没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
共316个文件
py:308个
txt:4个
pkg-info:2个
资源分类:Python库 所属语言:Python 资源全名:pulpcore-client-3.19.0.dev1647055788.tar.gz 资源来源:官方 安装方法:https://lanzao.blog.csdn.net/article/details/101784059
资源推荐
资源详情
资源评论
收起资源包目录
Python库 | pulpcore-client-3.19.0.dev1647055788.tar.gz (316个子文件)
setup.cfg 69B
README.md 27KB
PKG-INFO 367B
PKG-INFO 367B
tasks_api.py 68KB
contentguards_rbac_api.py 63KB
groups_api.py 60KB
users_api.py 49KB
contentguards_content_redirect_api.py 39KB
roles_api.py 38KB
exporters_filesystem_api.py 38KB
task_schedules_api.py 38KB
exporters_pulp_api.py 37KB
importers_pulp_api.py 36KB
artifacts_api.py 35KB
uploads_api.py 35KB
access_policies_api.py 33KB
users_roles_api.py 26KB
groups_roles_api.py 26KB
api_client.py 26KB
exporters_filesystem_exports_api.py 25KB
exporters_pulp_exports_api.py 24KB
importers_pulp_imports_api.py 24KB
groups_object_permissions_api.py 24KB
groups_model_permissions_api.py 24KB
workers_api.py 22KB
groups_users_api.py 18KB
task_groups_api.py 17KB
task_response.py 16KB
configuration.py 14KB
__init__.py 13KB
signing_services_api.py 13KB
publications_api.py 13KB
task_group_response.py 13KB
repository_versions_api.py 12KB
rest.py 12KB
user_response.py 11KB
repository_response.py 10KB
__init__.py 10KB
artifact_response.py 10KB
artifact.py 9KB
access_policy_response.py 9KB
status_response.py 9KB
patched_user.py 9KB
repositories_api.py 9KB
user.py 9KB
task_schedule_response.py 9KB
contentguards_api.py 9KB
minimal_task_response.py 9KB
pulp_export_response.py 8KB
signing_service_response.py 8KB
content_api.py 8KB
pulp_export.py 8KB
repository_version_response.py 8KB
pulp_exporter_response.py 8KB
progress_report_response.py 7KB
role_response.py 7KB
rbac_content_guard_response.py 7KB
importers_pulp_import_check_api.py 7KB
filesystem_exporter_response.py 7KB
filesystem_export_response.py 7KB
worker_response.py 7KB
upload_detail_response.py 7KB
group_progress_report_response.py 7KB
pulp_exporter.py 6KB
pulp_importer_response.py 6KB
patched_pulp_exporter.py 6KB
content_redirect_content_guard_response.py 6KB
orphans_cleanup_api.py 6KB
repositories_reclaim_space_api.py 6KB
repair_api.py 6KB
pulp_import_check.py 6KB
import_response.py 6KB
publication_response.py 6KB
storage_response.py 6KB
group_role_response.py 6KB
access_policy.py 6KB
content_guard_response.py 6KB
user_role_response.py 6KB
paginated_content_redirect_content_guard_response_list.py 6KB
patched_access_policy.py 6KB
upload_response.py 6KB
paginated_multiple_artifact_content_response_list.py 6KB
paginated_filesystem_exporter_response_list.py 6KB
paginated_repository_version_response_list.py 6KB
filesystem_exporter.py 6KB
role.py 6KB
paginated_filesystem_export_response_list.py 6KB
paginated_rbac_content_guard_response_list.py 6KB
evaluation_response.py 6KB
multiple_artifact_content_response.py 6KB
paginated_signing_service_response_list.py 5KB
paginated_task_schedule_response_list.py 5KB
paginated_access_policy_response_list.py 5KB
paginated_content_guard_response_list.py 5KB
paginated_pulp_importer_response_list.py 5KB
paginated_pulp_exporter_response_list.py 5KB
status_api.py 5KB
paginated_publication_response_list.py 5KB
paginated_repository_response_list.py 5KB
共 316 条
- 1
- 2
- 3
- 4
资源评论
挣扎的蓝藻
- 粉丝: 13w+
- 资源: 15万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功