# PulpAnsibleClient::ContentCollectionVersionsApi All URIs are relative to *http://localhost:24817* Method | HTTP request | Description ------------- | ------------- | ------------- [**create**](ContentCollectionVersionsApi.md#create) | **POST** /pulp/api/v3/content/ansible/collection_versions/ | Create a collection version [**list**](ContentCollectionVersionsApi.md#list) | **GET** /pulp/api/v3/content/ansible/collection_versions/ | List collection versions [**read**](ContentCollectionVersionsApi.md#read) | **GET** {collection_version_href} | Inspect a collection version ## create > AsyncOperationResponse create(relative_path, opts) Create a collection version Trigger an asynchronous task to create content,optionally create new repository version. ### Example ```ruby # load the gem require 'pulp_ansible_client' # setup authorization PulpAnsibleClient.configure do |config| # Configure HTTP basic authorization: Basic config.username = 'YOUR USERNAME' config.password = 'YOUR PASSWORD' end api_instance = PulpAnsibleClient::ContentCollectionVersionsApi.new relative_path = 'relative_path_example' # String | Path where the artifact is located relative to distributions base_path opts = { artifact: 'artifact_example', # String | Artifact file representing the physical content file: File.new('/path/to/file'), # File | An uploaded file that should be turned into the artifact of the content unit. repository: 'repository_example', # String | A URI of a repository the new content unit should be associated with. expected_name: 'expected_name_example', # String | The expected 'name' of the Collection to be verified against the metadata during import. expected_namespace: 'expected_namespace_example', # String | The expected 'namespace' of the Collection to be verified against the metadata during import. expected_version: 'expected_version_example' # String | The expected version of the Collection to be verified against the metadata during import. } begin #Create a collection version result = api_instance.create(relative_path, opts) p result rescue PulpAnsibleClient::ApiError => e puts "Exception when calling ContentCollectionVersionsApi->create: #{e}" end ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **relative_path** | **String**| Path where the artifact is located relative to distributions base_path | **artifact** | **String**| Artifact file representing the physical content | [optional] **file** | **File**| An uploaded file that should be turned into the artifact of the content unit. | [optional] **repository** | **String**| A URI of a repository the new content unit should be associated with. | [optional] **expected_name** | **String**| The expected 'name' of the Collection to be verified against the metadata during import. | [optional] **expected_namespace** | **String**| The expected 'namespace' of the Collection to be verified against the metadata during import. | [optional] **expected_version** | **String**| The expected version of the Collection to be verified against the metadata during import. | [optional] ### Return type [**AsyncOperationResponse**](AsyncOperationResponse.md) ### Authorization [Basic](../README.md#Basic) ### HTTP request headers - **Content-Type**: multipart/form-data, application/x-www-form-urlencoded - **Accept**: application/json ## list > InlineResponse200 list(opts) List collection versions ViewSet for Ansible Collection. ### Example ```ruby # load the gem require 'pulp_ansible_client' # setup authorization PulpAnsibleClient.configure do |config| # Configure HTTP basic authorization: Basic config.username = 'YOUR USERNAME' config.password = 'YOUR PASSWORD' end api_instance = PulpAnsibleClient::ContentCollectionVersionsApi.new opts = { namespace: 'namespace_example', # String | name: 'name_example', # String | version: 'version_example', # String | Filter results where version matches value q: 'q_example', # String | is_highest: 'is_highest_example', # String | repository_version: 'repository_version_example', # String | Repository Version referenced by HREF repository_version_added: 'repository_version_added_example', # String | Repository Version referenced by HREF repository_version_removed: 'repository_version_removed_example', # String | Repository Version referenced by HREF 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. } begin #List collection versions result = api_instance.list(opts) p result rescue PulpAnsibleClient::ApiError => e puts "Exception when calling ContentCollectionVersionsApi->list: #{e}" end ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **String**| | [optional] **name** | **String**| | [optional] **version** | **String**| Filter results where version matches value | [optional] **q** | **String**| | [optional] **is_highest** | **String**| | [optional] **repository_version** | **String**| Repository Version referenced by HREF | [optional] **repository_version_added** | **String**| Repository Version referenced by HREF | [optional] **repository_version_removed** | **String**| Repository Version referenced by HREF | [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] ### Return type [**InlineResponse200**](InlineResponse200.md) ### Authorization [Basic](../README.md#Basic) ### HTTP request headers - **Content-Type**: Not defined - **Accept**: application/json ## read > CollectionVersion read(collection_version_href, opts) Inspect a collection version ViewSet for Ansible Collection. ### Example ```ruby # load the gem require 'pulp_ansible_client' # setup authorization PulpAnsibleClient.configure do |config| # Configure HTTP basic authorization: Basic config.username = 'YOUR USERNAME' config.password = 'YOUR PASSWORD' end api_instance = PulpAnsibleClient::ContentCollectionVersionsApi.new collection_version_href = 'collection_version_href_example' # String | URI of Collection Version. e.g.: /pulp/api/v3/content/ansible/collection_versions/1/ opts = { fields: 'fields_example' # String | A list of fields to include in the response. } begin #Inspect a collection version result = api_instance.read(collection_version_href, opts) p result rescue PulpAnsibleClient::ApiError => e puts "Exception when calling ContentCollectionVersionsApi->read: #{e}" end ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **collection_version_href** | **String**| URI of Collection Version. e.g.: /pulp/api/v3/content/ansible/collection_versions/1/ | **fields** | **String**| A list of fields to include in the response. | [optional] ### Return type [**CollectionVersion**](CollectionVersion.md) ### Authorization [Basic](../README.md#Basic) ### HTTP request headers - **Content-Type**: Not defined - **Accept**: application/json