# PulpContainerClient::DistributionsContainerApi All URIs are relative to *http://pulp* Method | HTTP request | Description ------------- | ------------- | ------------- [**create**](DistributionsContainerApi.md#create) | **POST** /pulp/api/v3/distributions/container/container/ | Create a container distribution [**delete**](DistributionsContainerApi.md#delete) | **DELETE** {container_distribution_href} | Delete a container distribution [**list**](DistributionsContainerApi.md#list) | **GET** /pulp/api/v3/distributions/container/container/ | List container distributions [**partial_update**](DistributionsContainerApi.md#partial_update) | **PATCH** {container_distribution_href} | Partially update a container distribution [**read**](DistributionsContainerApi.md#read) | **GET** {container_distribution_href} | Inspect a container distribution [**update**](DistributionsContainerApi.md#update) | **PUT** {container_distribution_href} | Update a container distribution ## create > AsyncOperationResponse create(data) Create a container distribution Trigger an asynchronous create task ### Example ```ruby # load the gem require 'pulp_container_client' # setup authorization PulpContainerClient.configure do |config| # Configure HTTP basic authorization: Basic config.username = 'YOUR USERNAME' config.password = 'YOUR PASSWORD' end api_instance = PulpContainerClient::DistributionsContainerApi.new data = PulpContainerClient::ContainerContainerDistribution.new # ContainerContainerDistribution | begin #Create a container distribution result = api_instance.create(data) p result rescue PulpContainerClient::ApiError => e puts "Exception when calling DistributionsContainerApi->create: #{e}" end ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **data** | [**ContainerContainerDistribution**](ContainerContainerDistribution.md)| | ### Return type [**AsyncOperationResponse**](AsyncOperationResponse.md) ### Authorization [Basic](../README.md#Basic) ### HTTP request headers - **Content-Type**: application/json - **Accept**: application/json ## delete > AsyncOperationResponse delete(container_distribution_href) Delete a container distribution Trigger an asynchronous delete task ### Example ```ruby # load the gem require 'pulp_container_client' # setup authorization PulpContainerClient.configure do |config| # Configure HTTP basic authorization: Basic config.username = 'YOUR USERNAME' config.password = 'YOUR PASSWORD' end api_instance = PulpContainerClient::DistributionsContainerApi.new container_distribution_href = 'container_distribution_href_example' # String | URI of Container Distribution. e.g.: /pulp/api/v3/distributions/container/container/1/ begin #Delete a container distribution result = api_instance.delete(container_distribution_href) p result rescue PulpContainerClient::ApiError => e puts "Exception when calling DistributionsContainerApi->delete: #{e}" end ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **container_distribution_href** | **String**| URI of Container Distribution. e.g.: /pulp/api/v3/distributions/container/container/1/ | ### Return type [**AsyncOperationResponse**](AsyncOperationResponse.md) ### Authorization [Basic](../README.md#Basic) ### HTTP request headers - **Content-Type**: Not defined - **Accept**: application/json ## list > InlineResponse2003 list(opts) List container distributions The Container Distribution will serve the latest version of a Repository if ``repository`` is specified. The Container Distribution will serve a specific repository version if ``repository_version``. Note that **either** ``repository`` or ``repository_version`` can be set on a Container Distribution, but not both. ### Example ```ruby # load the gem require 'pulp_container_client' # setup authorization PulpContainerClient.configure do |config| # Configure HTTP basic authorization: Basic config.username = 'YOUR USERNAME' config.password = 'YOUR PASSWORD' end api_instance = PulpContainerClient::DistributionsContainerApi.new opts = { ordering: 'ordering_example', # String | Which field to use when ordering the results. name: 'name_example', # String | name__in: 'name__in_example', # String | Filter results where name is in a comma-separated list of values base_path: 'base_path_example', # String | base_path__contains: 'base_path__contains_example', # String | Filter results where base_path contains value base_path__icontains: 'base_path__icontains_example', # String | Filter results where base_path contains value base_path__in: 'base_path__in_example', # String | Filter results where base_path is in a comma-separated list of values 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 container distributions result = api_instance.list(opts) p result rescue PulpContainerClient::ApiError => e puts "Exception when calling DistributionsContainerApi->list: #{e}" end ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ordering** | **String**| Which field to use when ordering the results. | [optional] **name** | **String**| | [optional] **name__in** | **String**| Filter results where name is in a comma-separated list of values | [optional] **base_path** | **String**| | [optional] **base_path__contains** | **String**| Filter results where base_path contains value | [optional] **base_path__icontains** | **String**| Filter results where base_path contains value | [optional] **base_path__in** | **String**| Filter results where base_path is in a comma-separated list of values | [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 [**InlineResponse2003**](InlineResponse2003.md) ### Authorization [Basic](../README.md#Basic) ### HTTP request headers - **Content-Type**: Not defined - **Accept**: application/json ## partial_update > AsyncOperationResponse partial_update(container_distribution_href, data) Partially update a container distribution Trigger an asynchronous partial update task ### Example ```ruby # load the gem require 'pulp_container_client' # setup authorization PulpContainerClient.configure do |config| # Configure HTTP basic authorization: Basic config.username = 'YOUR USERNAME' config.password = 'YOUR PASSWORD' end api_instance = PulpContainerClient::DistributionsContainerApi.new container_distribution_href = 'container_distribution_href_example' # String | URI of Container Distribution. e.g.: /pulp/api/v3/distributions/container/container/1/ data = PulpContainerClient::ContainerContainerDistribution.new # ContainerContainerDistribution | begin #Partially update a container distribution result = api_instance.partial_update(container_distribution_href, data) p result rescue PulpContainerClient::ApiError => e puts "Exception when calling DistributionsContainerApi->partial_update: #{e}" end ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **container_distribution_href** | **String**| URI of Container Distribution. e.g.: /pulp/api/v3/distributions/container/container/1/ | **data** | [**ContainerContainerDistribution**](ContainerContainerDistribution.md)| | ### Return type [**AsyncOperationResponse**](AsyncOperationResponse.md) ### Authorization [Basic](../README.md#Basic) ### HTTP request headers - **Content-Type**: application/json - **Accept**: application/json ## read > ContainerContainerDistributionRead read(container_distribution_href, opts) Inspect a container distribution The Container Distribution will serve the latest version of a Repository if ``repository`` is specified. The Container Distribution will serve a specific repository version if ``repository_version``. Note that **either** ``repository`` or ``repository_version`` can be set on a Container Distribution, but not both. ### Example ```ruby # load the gem require 'pulp_container_client' # setup authorization PulpContainerClient.configure do |config| # Configure HTTP basic authorization: Basic config.username = 'YOUR USERNAME' config.password = 'YOUR PASSWORD' end api_instance = PulpContainerClient::DistributionsContainerApi.new container_distribution_href = 'container_distribution_href_example' # String | URI of Container Distribution. e.g.: /pulp/api/v3/distributions/container/container/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 container distribution result = api_instance.read(container_distribution_href, opts) p result rescue PulpContainerClient::ApiError => e puts "Exception when calling DistributionsContainerApi->read: #{e}" end ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **container_distribution_href** | **String**| URI of Container Distribution. e.g.: /pulp/api/v3/distributions/container/container/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 [**ContainerContainerDistributionRead**](ContainerContainerDistributionRead.md) ### Authorization [Basic](../README.md#Basic) ### HTTP request headers - **Content-Type**: Not defined - **Accept**: application/json ## update > AsyncOperationResponse update(container_distribution_href, data) Update a container distribution Trigger an asynchronous update task ### Example ```ruby # load the gem require 'pulp_container_client' # setup authorization PulpContainerClient.configure do |config| # Configure HTTP basic authorization: Basic config.username = 'YOUR USERNAME' config.password = 'YOUR PASSWORD' end api_instance = PulpContainerClient::DistributionsContainerApi.new container_distribution_href = 'container_distribution_href_example' # String | URI of Container Distribution. e.g.: /pulp/api/v3/distributions/container/container/1/ data = PulpContainerClient::ContainerContainerDistribution.new # ContainerContainerDistribution | begin #Update a container distribution result = api_instance.update(container_distribution_href, data) p result rescue PulpContainerClient::ApiError => e puts "Exception when calling DistributionsContainerApi->update: #{e}" end ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **container_distribution_href** | **String**| URI of Container Distribution. e.g.: /pulp/api/v3/distributions/container/container/1/ | **data** | [**ContainerContainerDistribution**](ContainerContainerDistribution.md)| | ### Return type [**AsyncOperationResponse**](AsyncOperationResponse.md) ### Authorization [Basic](../README.md#Basic) ### HTTP request headers - **Content-Type**: application/json - **Accept**: application/json