# PulpPythonClient::PublicationsPypiApi All URIs are relative to *http://pulp* Method | HTTP request | Description ------------- | ------------- | ------------- [**create**](PublicationsPypiApi.md#create) | **POST** /pulp/api/v3/publications/python/pypi/ | Create a python publication [**delete**](PublicationsPypiApi.md#delete) | **DELETE** {python_publication_href} | Delete a python publication [**list**](PublicationsPypiApi.md#list) | **GET** /pulp/api/v3/publications/python/pypi/ | List python publications [**read**](PublicationsPypiApi.md#read) | **GET** {python_publication_href} | Inspect a python publication ## create > AsyncOperationResponse create(data) Create a python publication Trigger an asynchronous task to publish python content. ### Example ```ruby # load the gem require 'pulp_python_client' # setup authorization PulpPythonClient.configure do |config| # Configure HTTP basic authorization: Basic config.username = 'YOUR USERNAME' config.password = 'YOUR PASSWORD' end api_instance = PulpPythonClient::PublicationsPypiApi.new data = PulpPythonClient::PythonPythonPublication.new # PythonPythonPublication | begin #Create a python publication result = api_instance.create(data) p result rescue PulpPythonClient::ApiError => e puts "Exception when calling PublicationsPypiApi->create: #{e}" end ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **data** | [**PythonPythonPublication**](PythonPythonPublication.md)| | ### Return type [**AsyncOperationResponse**](AsyncOperationResponse.md) ### Authorization [Basic](../README.md#Basic) ### HTTP request headers - **Content-Type**: application/json - **Accept**: application/json ## delete > delete(python_publication_href) Delete a python publication Python Publications refer to the Python Package content in a repository version, and include metadata about that content. ### Example ```ruby # load the gem require 'pulp_python_client' # setup authorization PulpPythonClient.configure do |config| # Configure HTTP basic authorization: Basic config.username = 'YOUR USERNAME' config.password = 'YOUR PASSWORD' end api_instance = PulpPythonClient::PublicationsPypiApi.new python_publication_href = 'python_publication_href_example' # String | URI of Python Publication. e.g.: /pulp/api/v3/publications/python/pypi/1/ begin #Delete a python publication api_instance.delete(python_publication_href) rescue PulpPythonClient::ApiError => e puts "Exception when calling PublicationsPypiApi->delete: #{e}" end ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **python_publication_href** | **String**| URI of Python Publication. e.g.: /pulp/api/v3/publications/python/pypi/1/ | ### Return type nil (empty response body) ### Authorization [Basic](../README.md#Basic) ### HTTP request headers - **Content-Type**: Not defined - **Accept**: Not defined ## list > InlineResponse2002 list(opts) List python publications Python Publications refer to the Python Package content in a repository version, and include metadata about that content. ### Example ```ruby # load the gem require 'pulp_python_client' # setup authorization PulpPythonClient.configure do |config| # Configure HTTP basic authorization: Basic config.username = 'YOUR USERNAME' config.password = 'YOUR PASSWORD' end api_instance = PulpPythonClient::PublicationsPypiApi.new opts = { ordering: 'ordering_example', # String | Which field to use when ordering the results. repository_version: 'repository_version_example', # String | Repository Version referenced by HREF pulp_created__lt: 'pulp_created__lt_example', # String | Filter results where pulp_created is less than value pulp_created__lte: 'pulp_created__lte_example', # String | Filter results where pulp_created is less than or equal to value pulp_created__gt: 'pulp_created__gt_example', # String | Filter results where pulp_created is greater than value pulp_created__gte: 'pulp_created__gte_example', # String | Filter results where pulp_created is greater than or equal to value pulp_created__range: 'pulp_created__range_example', # String | Filter results where pulp_created is between two comma separated values pulp_created: 'pulp_created_example', # String | ISO 8601 formatted dates are supported limit: 56, # Integer | Number of results to return per page. offset: 56, # Integer | The initial index from which to return the results. fields: 'fields_example', # String | A list of fields to include in the response. exclude_fields: 'exclude_fields_example' # String | A list of fields to exclude from the response. } begin #List python publications result = api_instance.list(opts) p result rescue PulpPythonClient::ApiError => e puts "Exception when calling PublicationsPypiApi->list: #{e}" end ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ordering** | **String**| Which field to use when ordering the results. | [optional] **repository_version** | **String**| Repository Version referenced by HREF | [optional] **pulp_created__lt** | **String**| Filter results where pulp_created is less than value | [optional] **pulp_created__lte** | **String**| Filter results where pulp_created is less than or equal to value | [optional] **pulp_created__gt** | **String**| Filter results where pulp_created is greater than value | [optional] **pulp_created__gte** | **String**| Filter results where pulp_created is greater than or equal to value | [optional] **pulp_created__range** | **String**| Filter results where pulp_created is between two comma separated values | [optional] **pulp_created** | **String**| ISO 8601 formatted dates are supported | [optional] **limit** | **Integer**| Number of results to return per page. | [optional] **offset** | **Integer**| The initial index from which to return the results. | [optional] **fields** | **String**| A list of fields to include in the response. | [optional] **exclude_fields** | **String**| A list of fields to exclude from the response. | [optional] ### Return type [**InlineResponse2002**](InlineResponse2002.md) ### Authorization [Basic](../README.md#Basic) ### HTTP request headers - **Content-Type**: Not defined - **Accept**: application/json ## read > PythonPythonPublication read(python_publication_href, opts) Inspect a python publication Python Publications refer to the Python Package content in a repository version, and include metadata about that content. ### Example ```ruby # load the gem require 'pulp_python_client' # setup authorization PulpPythonClient.configure do |config| # Configure HTTP basic authorization: Basic config.username = 'YOUR USERNAME' config.password = 'YOUR PASSWORD' end api_instance = PulpPythonClient::PublicationsPypiApi.new python_publication_href = 'python_publication_href_example' # String | URI of Python Publication. e.g.: /pulp/api/v3/publications/python/pypi/1/ opts = { fields: 'fields_example', # String | A list of fields to include in the response. exclude_fields: 'exclude_fields_example' # String | A list of fields to exclude from the response. } begin #Inspect a python publication result = api_instance.read(python_publication_href, opts) p result rescue PulpPythonClient::ApiError => e puts "Exception when calling PublicationsPypiApi->read: #{e}" end ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **python_publication_href** | **String**| URI of Python Publication. e.g.: /pulp/api/v3/publications/python/pypi/1/ | **fields** | **String**| A list of fields to include in the response. | [optional] **exclude_fields** | **String**| A list of fields to exclude from the response. | [optional] ### Return type [**PythonPythonPublication**](PythonPythonPublication.md) ### Authorization [Basic](../README.md#Basic) ### HTTP request headers - **Content-Type**: Not defined - **Accept**: application/json