# pulp_ansible-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: 0.7.0.dev01612236784
- 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.pulp_ansible
```
### 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.pulp_ansible
```
## 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.pulp_ansible
from pulpcore.client.pulp_ansible.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to http://pulp
# See configuration.py for a list of all supported configuration parameters.
configuration = pulpcore.client.pulp_ansible.Configuration(
host = "http://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.pulp_ansible.Configuration(
username = 'YOUR_USERNAME',
password = 'YOUR_PASSWORD'
)
# Configure API key authorization: cookieAuth
configuration = pulpcore.client.pulp_ansible.Configuration(
host = "http://pulp",
api_key = {
'Session': 'YOUR_API_KEY'
}
)
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['Session'] = 'Bearer'
# Enter a context with an instance of the API client
with pulpcore.client.pulp_ansible.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = pulpcore.client.pulp_ansible.AnsibleCollectionsApi(api_client)
limit = 56 # int | Number of results to return per page. (optional)
name = 'name_example' # str | name (optional)
namespace = 'namespace_example' # str | namespace (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)
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 collections
api_response = api_instance.list(limit=limit, name=name, namespace=namespace, offset=offset, ordering=ordering, fields=fields, exclude_fields=exclude_fields)
pprint(api_response)
except ApiException as e:
print("Exception when calling AnsibleCollectionsApi->list: %s\n" % e)
```
## Documentation for API Endpoints
All URIs are relative to *http://pulp*
Class | Method | HTTP request | Description
------------ | ------------- | ------------- | -------------
*AnsibleCollectionsApi* | [**list**](docs/AnsibleCollectionsApi.md#list) | **GET** /pulp/api/v3/ansible/collections/ | List collections
*AnsibleCollectionsApi* | [**upload_collection**](docs/AnsibleCollectionsApi.md#upload_collection) | **POST** /ansible/collections/ | Upload a collection
*AnsibleCopyApi* | [**copy_content**](docs/AnsibleCopyApi.md#copy_content) | **POST** /pulp/api/v3/ansible/copy/ | Copy content
*ApiCollectionsApi* | [**get**](docs/ApiCollectionsApi.md#get) | **GET** {ansible_collection_href}api/v2/collections/ |
*ApiCollectionsApi* | [**post**](docs/ApiCollectionsApi.md#post) | **POST** {ansible_collection_href}api/v2/collections/ |
*ApiRolesApi* | [**get**](docs/ApiRolesApi.md#get) | **GET** {ansible_role_href}api/v1/roles/ |
*CollectionImportApi* | [**read**](docs/CollectionImportApi.md#read) | **GET** {ansible_collection_import_href} | Inspect a collection import
*ContentCollectionVersionsApi* | [**create**](docs/ContentCollectionVersionsApi.md#create) | **POST** /pulp/api/v3/content/ansible/collection_versions/ | Create a collection version
*ContentCollectionVersionsApi* | [**list**](docs/ContentCollectionVersionsApi.md#list) | **GET** /pulp/api/v3/content/ansible/collection_versions/ | List collection versions
*ContentCollectionVersionsApi* | [**read**](docs/ContentCollectionVersionsApi.md#read) | **GET** {ansible_collection_version_href} | Inspect a collection version
*ContentRolesApi* | [**create**](docs/ContentRolesApi.md#create) | **POST** /pulp/api/v3/content/ansible/roles/ | Create a role
*ContentRolesApi* | [**list**](docs/ContentRolesApi.md#list) | **GET** /pulp/api/v3/content/ansible/roles/ | List roles
*ContentRolesApi* | [**read**](docs/ContentRolesApi.md#read) | **GET** {ansible_role_href} | Inspect a role
*DistributionsAnsibleApi* | [**create**](docs/DistributionsAnsibleApi.md#create) | **POST** /pulp/api/v3/distributions/ansible/ansible/ | Create an ansible distribution
*DistributionsAnsibleApi* | [**delete**](docs/DistributionsAnsibleApi.md#delete) | **DELETE** {ansible_ansible_distribution_href} | Delete an ansible distribution
*DistributionsAnsibleApi* | [**list**](docs/DistributionsAnsibleApi.md#list) | **GET** /pulp/api/v3/distributions/ansible/ansible/ | List ansible distributions
*DistributionsAnsibleApi* | [**partial_update**](docs/DistributionsAnsibleApi.md#partial_update) | **PATCH** {ansible_ansible_distribution_href} | Update an ansible distribution
*DistributionsAnsibleApi* | [**read**](docs/DistributionsAnsibleApi.md#read) | **GET** {ansible_ansible_distribution_href} | Inspect an ansible distribution
*DistributionsAnsibleApi* | [**update**](docs/DistributionsAnsibleApi.md#update) | **PUT** {ansible_ansible_distribution_href} | Update an ansible distribution
*GalaxyDetailApi* | [**get**](docs/GalaxyDetailApi.md#get) | **GET** {ansible_collection_href} |
*PulpAnsibleApiApi* | [**get**](docs/PulpAnsibleApiApi.md#get) | **GET** /pulp_ansible/galaxy/{path}/api/ |
*PulpAnsibleGalaxyApiCollectionsApi* | [**list**](docs/PulpAnsibleGalaxyApiCollectionsApi.md#list) | **GET** /pulp_ansible/galaxy/{path}/api/v3/collections/ |
*PulpAnsibleGalaxyApiCollectionsApi* | [**read**](docs/PulpAnsibleGalaxyApiCollectionsApi.md#read) | **GET** /pulp_ansible/galaxy/{path}/api/v3/collections/{namespace}/{name}/ |
*PulpAnsibleGalaxyApiCollectionsApi* | [**update**](docs/PulpAnsibleGalaxyApiCollectionsApi.md#update) | **PATCH** /pulp_ansible/galaxy/{path}/api/v3/collections/{namespace}/{name}/ |
*PulpAnsibleGalaxyApiV2VersionsApi* | [**get**](docs/PulpAnsibleGalaxyApiV2VersionsApi.md#get) | **GET** /pulp_ansible/galaxy/{path}/api/v2/collections/{namespace}/{name}/versions/{version}/ |
*PulpAnsibleGalaxyApiV3CollectionVersionsApi* | [**list**](docs/PulpAnsibleGalaxyApiV3CollectionVersionsApi.md#list) | **GET** /pulp_ansible/galaxy/{path}/api/v3/metadata/collection_versions/ |
*PulpAnsibleGalaxyApiV3CollectionsApi* | [**create**](docs/PulpAnsibleGalaxyApiV3CollectionsApi.md#create) | **POST** /pulp_ansible/galaxy/{path}/api/v3/artifacts/collections/ | Upload a collection
*PulpAnsibleGalaxyApiV3CollectionsApi* | [**list**](docs/PulpAnsibleGalaxyApiV3CollectionsApi.md#list) | **GET** /pulp_ansible/galaxy/{path}/api/v3/metadata/collections/ |
*PulpAnsibleGalaxyApiV3CollectionsDocsBlobA
没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
资源分类:Python库 所属语言:Python 资源全名:pulp_ansible-client-0.7.0.dev1612236784.tar.gz 资源来源:官方 安装方法:https://lanzao.blog.csdn.net/article/details/101784059
资源推荐
资源详情
资源评论
收起资源包目录
Python库 | pulp_ansible-client-0.7.0.dev1612236784.tar.gz (186个子文件)
setup.cfg 69B
README.md 17KB
PKG-INFO 370B
PKG-INFO 370B
repositories_ansible_api.py 51KB
remotes_collection_api.py 40KB
distributions_ansible_api.py 40KB
remotes_role_api.py 39KB
repositories_ansible_versions_api.py 30KB
ansible_collection_version_response.py 29KB
api_client.py 26KB
ansible_collection_remote_response.py 26KB
patchedansible_collection_remote.py 23KB
ansible_collection_remote.py 22KB
ansible_role_remote_response.py 22KB
pulp_ansible_galaxy_api_collections_api.py 21KB
content_collection_versions_api.py 21KB
ansible_collection_version.py 21KB
content_roles_api.py 20KB
patchedansible_role_remote.py 19KB
pulp_ansible_galaxy_api_v3_versions_api.py 19KB
ansible_role_remote.py 19KB
pulp_ansible_galaxy_api_v3_collections_api.py 14KB
ansible_collections_api.py 14KB
configuration.py 14KB
versions_api.py 13KB
api_collections_api.py 13KB
collection_version_response.py 12KB
rest.py 12KB
ansible_ansible_distribution_response.py 10KB
collection_metadata_response.py 10KB
collection_import_detail_response.py 10KB
__init__.py 9KB
pulp_ansible_galaxy_api_v3_collection_versions_api.py 9KB
ansible_ansible_repository_response.py 9KB
galaxy_collection_response.py 9KB
collection_response.py 8KB
pulp_ansible_galaxy_api_v3_collections_docs_blob_api.py 8KB
pulp_ansible_galaxy_api_v2_versions_api.py 8KB
ansible_role_response.py 8KB
ansible_ansible_distribution.py 7KB
galaxy_collection_version_response.py 7KB
patchedansible_ansible_distribution.py 7KB
collection_one_shot.py 7KB
api_roles_api.py 7KB
collection_import_api.py 7KB
repository_version_response.py 7KB
pulp_ansible_tags_api.py 7KB
__init__.py 7KB
galaxy_detail_api.py 7KB
pulp_ansible_galaxy_v3_api.py 6KB
repository_add_remove_content.py 6KB
pulp_ansible_api_api.py 6KB
ansible_copy_api.py 6KB
ansible_role.py 6KB
paginatedansible_ansible_distribution_response_list.py 6KB
ansible_ansible_repository.py 6KB
paginatedansible_collection_version_response_list.py 6KB
paginatedansible_ansible_repository_response_list.py 6KB
patchedansible_ansible_repository.py 6KB
paginatedansible_collection_remote_response_list.py 6KB
paginated_galaxy_collection_version_response_list.py 6KB
galaxy_collection.py 6KB
paginatedansible_collection_response_list.py 6KB
paginated_galaxy_role_version_response_list.py 6KB
paginated_repository_version_response_list.py 6KB
paginatedansible_role_remote_response_list.py 6KB
paginated_galaxy_collection_response_list.py 6KB
paginatedansible_role_response_list.py 5KB
paginated_galaxy_role_response_list.py 5KB
paginated_collection_response_list_links.py 5KB
paginated_tag_response_list.py 5KB
content_summary_response.py 5KB
paginated_collection_version_response_list.py 5KB
artifact_ref_response.py 5KB
content_summary.py 5KB
paginated_collection_response_list.py 5KB
galaxy_role_response.py 5KB
collection_ref_response.py 5KB
ansible_collection_response.py 5KB
repository_sync_url.py 4KB
galaxy_role_version_response.py 4KB
test_ansible_collection_version_response.py 4KB
test_paginatedansible_collection_version_response_list.py 4KB
exceptions.py 4KB
repository_version.py 4KB
collection_version_docs_response.py 4KB
repo_metadata_response.py 4KB
copy.py 4KB
async_operation_response.py 3KB
collection_namespace_response.py 3KB
paginated_collection_response_list_meta.py 3KB
patched_collection.py 3KB
ansible_tag_response.py 3KB
test_paginated_galaxy_collection_version_response_list.py 3KB
test_paginatedansible_collection_remote_response_list.py 3KB
test_galaxy_collection_version_response.py 3KB
tag_response.py 3KB
test_paginatedansible_role_remote_response_list.py 3KB
test_paginated_collection_version_response_list.py 3KB
共 186 条
- 1
- 2
资源评论
挣扎的蓝藻
- 粉丝: 14w+
- 资源: 15万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功