docs/ContentCollectionVersionsApi.md in pulp_ansible_client-0.9.0 vs docs/ContentCollectionVersionsApi.md in pulp_ansible_client-0.9.1

- old
+ new

@@ -10,15 +10,15 @@ ## create -> AnsibleCollectionVersionResponse create(ansible_collection_version) +> AsyncOperationResponse create(name, namespace, version, opts) Create a collection version -ViewSet for Ansible Collection. +Trigger an asynchronous task to create content,optionally create new repository version. ### Example ```ruby # load the gem @@ -29,15 +29,21 @@ config.username = 'YOUR USERNAME' config.password = 'YOUR PASSWORD' end api_instance = PulpAnsibleClient::ContentCollectionVersionsApi.new -ansible_collection_version = PulpAnsibleClient::AnsibleCollectionVersion.new # AnsibleCollectionVersion | +name = 'name_example' # String | The name of the collection. +namespace = 'namespace_example' # String | The namespace of the collection. +version = 'version_example' # String | The version of the collection. +opts = { + repository: 'repository_example', # String | A URI of a repository the new content unit should be associated with. + file: File.new('/path/to/file') # File | An uploaded file that may be turned into the artifact of the content unit. +} begin #Create a collection version - result = api_instance.create(ansible_collection_version) + result = api_instance.create(name, namespace, version, opts) p result rescue PulpAnsibleClient::ApiError => e puts "Exception when calling ContentCollectionVersionsApi->create: #{e}" end ``` @@ -45,22 +51,26 @@ ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **ansible_collection_version** | [**AnsibleCollectionVersion**](AnsibleCollectionVersion.md)| | + **name** | **String**| The name of the collection. | + **namespace** | **String**| The namespace of the collection. | + **version** | **String**| The version of the collection. | + **repository** | **String**| A URI of a repository the new content unit should be associated with. | [optional] + **file** | **File**| An uploaded file that may be turned into the artifact of the content unit. | [optional] ### Return type -[**AnsibleCollectionVersionResponse**](AnsibleCollectionVersionResponse.md) +[**AsyncOperationResponse**](AsyncOperationResponse.md) ### Authorization [basicAuth](../README.md#basicAuth) ### HTTP request headers -- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data +- **Content-Type**: multipart/form-data, application/x-www-form-urlencoded - **Accept**: application/json ## list