pulp_ansible_client 0.2.0b5 → 0.2.0b6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +43 -23
- data/docs/{AnsibleDistribution.md → AnsibleAnsibleDistribution.md} +6 -6
- data/docs/AnsibleAnsibleRemote.md +39 -0
- data/docs/AnsibleAnsibleRepository.md +27 -0
- data/docs/AnsibleCollection.md +19 -0
- data/docs/AnsibleCollectionRemote.md +41 -0
- data/docs/AnsibleCollectionVersion.md +67 -0
- data/docs/AnsibleCollectionsApi.md +80 -18
- data/docs/AnsibleRole.md +27 -0
- data/docs/AnsibleTag.md +17 -0
- data/docs/Collection.md +31 -0
- data/docs/CollectionImportDetail.md +2 -2
- data/docs/CollectionMetadata.md +9 -9
- data/docs/{TagNested.md → CollectionNamespace.md} +3 -3
- data/docs/CollectionRef.md +21 -0
- data/docs/CollectionVersion.md +19 -59
- data/docs/ContentCollectionVersionsApi.md +25 -27
- data/docs/ContentRolesApi.md +17 -25
- data/docs/ContentSummary.md +21 -0
- data/docs/DistributionsAnsibleApi.md +16 -12
- data/docs/GalaxyCollection.md +2 -2
- data/docs/GalaxyCollectionVersion.md +4 -4
- data/docs/GalaxyRole.md +1 -1
- data/docs/GalaxyRoleVersion.md +1 -1
- data/docs/InlineResponse200.md +1 -1
- data/docs/InlineResponse2001.md +1 -1
- data/docs/InlineResponse20010.md +23 -0
- data/docs/InlineResponse20011.md +23 -0
- data/docs/InlineResponse20012.md +23 -0
- data/docs/InlineResponse20013.md +23 -0
- data/docs/InlineResponse2002.md +1 -1
- data/docs/InlineResponse2003.md +1 -1
- data/docs/InlineResponse2004.md +1 -1
- data/docs/InlineResponse2005.md +1 -1
- data/docs/InlineResponse2006.md +1 -1
- data/docs/InlineResponse2007.md +1 -1
- data/docs/InlineResponse2008.md +1 -1
- data/docs/InlineResponse2009.md +1 -1
- data/docs/PulpAnsibleApiApi.md +3 -1
- data/docs/PulpAnsibleGalaxyApiCollectionsApi.md +16 -9
- data/docs/PulpAnsibleGalaxyApiRolesApi.md +5 -3
- data/docs/PulpAnsibleGalaxyApiV1VersionsApi.md +5 -3
- data/docs/PulpAnsibleGalaxyApiV2VersionsApi.md +5 -3
- data/docs/PulpAnsibleGalaxyApiV3CollectionsApi.md +28 -10
- data/docs/PulpAnsibleTagsApi.md +5 -3
- data/docs/RemotesAnsibleApi.md +30 -81
- data/docs/RemotesCollectionApi.md +30 -81
- data/docs/RepositoriesAnsibleApi.md +409 -0
- data/docs/RepositoriesAnsibleVersionsApi.md +214 -0
- data/docs/RepositorySyncURL.md +2 -2
- data/docs/RepositoryVersion.md +25 -0
- data/docs/Tag.md +1 -1
- data/lib/pulp_ansible_client/api/ansible_collections_api.rb +103 -35
- data/lib/pulp_ansible_client/api/content_collection_versions_api.rb +40 -57
- data/lib/pulp_ansible_client/api/content_roles_api.rb +28 -58
- data/lib/pulp_ansible_client/api/distributions_ansible_api.rb +19 -13
- data/lib/pulp_ansible_client/api/pulp_ansible_api_api.rb +4 -1
- data/lib/pulp_ansible_client/api/pulp_ansible_galaxy_api_collections_api.rb +20 -9
- data/lib/pulp_ansible_client/api/pulp_ansible_galaxy_api_roles_api.rb +7 -4
- data/lib/pulp_ansible_client/api/pulp_ansible_galaxy_api_v1_versions_api.rb +7 -4
- data/lib/pulp_ansible_client/api/pulp_ansible_galaxy_api_v2_versions_api.rb +7 -4
- data/lib/pulp_ansible_client/api/pulp_ansible_galaxy_api_v3_collections_api.rb +59 -12
- data/lib/pulp_ansible_client/api/pulp_ansible_tags_api.rb +7 -4
- data/lib/pulp_ansible_client/api/remotes_ansible_api.rb +40 -102
- data/lib/pulp_ansible_client/api/remotes_collection_api.rb +40 -102
- data/lib/pulp_ansible_client/api/repositories_ansible_api.rb +498 -0
- data/lib/pulp_ansible_client/api/repositories_ansible_versions_api.rb +268 -0
- data/lib/pulp_ansible_client/api_client.rb +1 -1
- data/lib/pulp_ansible_client/api_error.rb +1 -1
- data/lib/pulp_ansible_client/configuration.rb +1 -1
- data/lib/pulp_ansible_client/models/{ansible_distribution.rb → ansible_ansible_distribution.rb} +31 -36
- data/lib/pulp_ansible_client/models/{ansible_remote.rb → ansible_ansible_remote.rb} +87 -147
- data/lib/pulp_ansible_client/models/ansible_ansible_repository.rb +294 -0
- data/lib/pulp_ansible_client/models/ansible_collection.rb +265 -0
- data/lib/pulp_ansible_client/models/{collection_remote.rb → ansible_collection_remote.rb} +88 -147
- data/lib/pulp_ansible_client/models/ansible_collection_version.rb +816 -0
- data/lib/pulp_ansible_client/models/{role.rb → ansible_role.rb} +31 -60
- data/lib/pulp_ansible_client/models/{tag_nested.rb → ansible_tag.rb} +15 -5
- data/lib/pulp_ansible_client/models/async_operation_response.rb +12 -2
- data/lib/pulp_ansible_client/models/collection.rb +314 -0
- data/lib/pulp_ansible_client/models/collection_import_detail.rb +14 -4
- data/lib/pulp_ansible_client/models/collection_metadata.rb +14 -4
- data/lib/pulp_ansible_client/models/collection_namespace.rb +230 -0
- data/lib/pulp_ansible_client/models/collection_ref.rb +272 -0
- data/lib/pulp_ansible_client/models/collection_version.rb +109 -536
- data/lib/pulp_ansible_client/models/content_summary.rb +246 -0
- data/lib/pulp_ansible_client/models/galaxy_collection.rb +12 -2
- data/lib/pulp_ansible_client/models/galaxy_collection_version.rb +12 -2
- data/lib/pulp_ansible_client/models/galaxy_role.rb +12 -2
- data/lib/pulp_ansible_client/models/galaxy_role_version.rb +12 -2
- data/lib/pulp_ansible_client/models/inline_response200.rb +15 -3
- data/lib/pulp_ansible_client/models/inline_response2001.rb +15 -3
- data/lib/pulp_ansible_client/models/inline_response20010.rb +247 -0
- data/lib/pulp_ansible_client/models/inline_response20011.rb +247 -0
- data/lib/pulp_ansible_client/models/inline_response20012.rb +247 -0
- data/lib/pulp_ansible_client/models/inline_response20013.rb +247 -0
- data/lib/pulp_ansible_client/models/inline_response2002.rb +15 -3
- data/lib/pulp_ansible_client/models/inline_response2003.rb +15 -3
- data/lib/pulp_ansible_client/models/inline_response2004.rb +15 -3
- data/lib/pulp_ansible_client/models/inline_response2005.rb +15 -3
- data/lib/pulp_ansible_client/models/inline_response2006.rb +15 -3
- data/lib/pulp_ansible_client/models/inline_response2007.rb +15 -3
- data/lib/pulp_ansible_client/models/inline_response2008.rb +15 -3
- data/lib/pulp_ansible_client/models/inline_response2009.rb +15 -3
- data/lib/pulp_ansible_client/models/repository_sync_url.rb +22 -12
- data/lib/pulp_ansible_client/models/repository_version.rb +244 -0
- data/lib/pulp_ansible_client/models/tag.rb +12 -2
- data/lib/pulp_ansible_client/version.rb +2 -2
- data/lib/pulp_ansible_client.rb +20 -6
- data/pulp_ansible_client.gemspec +1 -1
- data/spec/api/ansible_collections_api_spec.rb +25 -10
- data/spec/api/content_collection_versions_api_spec.rb +12 -12
- data/spec/api/content_roles_api_spec.rb +8 -11
- data/spec/api/distributions_ansible_api_spec.rb +5 -3
- data/spec/api/pulp_ansible_api_api_spec.rb +2 -1
- data/spec/api/pulp_ansible_galaxy_api_collections_api_spec.rb +6 -3
- data/spec/api/pulp_ansible_galaxy_api_roles_api_spec.rb +3 -2
- data/spec/api/pulp_ansible_galaxy_api_v1_versions_api_spec.rb +3 -2
- data/spec/api/pulp_ansible_galaxy_api_v2_versions_api_spec.rb +3 -2
- data/spec/api/pulp_ansible_galaxy_api_v3_collections_api_spec.rb +12 -4
- data/spec/api/pulp_ansible_tags_api_spec.rb +3 -2
- data/spec/api/remotes_ansible_api_spec.rb +12 -22
- data/spec/api/remotes_collection_api_spec.rb +12 -22
- data/spec/api/repositories_ansible_api_spec.rb +128 -0
- data/spec/api/repositories_ansible_versions_api_spec.rb +91 -0
- data/spec/api_client_spec.rb +2 -2
- data/spec/configuration_spec.rb +1 -1
- data/spec/models/{ansible_distribution_spec.rb → ansible_ansible_distribution_spec.rb} +9 -9
- data/spec/models/{collection_remote_spec.rb → ansible_ansible_remote_spec.rb} +14 -38
- data/spec/models/ansible_ansible_repository_spec.rb +71 -0
- data/spec/models/{ansible_remote_spec.rb → ansible_collection_remote_spec.rb} +20 -32
- data/spec/models/ansible_collection_spec.rb +47 -0
- data/spec/models/ansible_collection_version_spec.rb +191 -0
- data/spec/models/ansible_role_spec.rb +71 -0
- data/spec/models/{tag_nested_spec.rb → ansible_tag_spec.rb} +7 -7
- data/spec/models/async_operation_response_spec.rb +1 -1
- data/spec/models/collection_import_detail_spec.rb +1 -1
- data/spec/models/collection_metadata_spec.rb +1 -1
- data/spec/models/collection_namespace_spec.rb +41 -0
- data/spec/models/collection_ref_spec.rb +53 -0
- data/spec/models/{role_spec.rb → collection_spec.rb} +15 -21
- data/spec/models/collection_version_spec.rb +14 -130
- data/spec/models/content_summary_spec.rb +53 -0
- data/spec/models/galaxy_collection_spec.rb +1 -1
- data/spec/models/galaxy_collection_version_spec.rb +1 -1
- data/spec/models/galaxy_role_spec.rb +1 -1
- data/spec/models/galaxy_role_version_spec.rb +1 -1
- data/spec/models/inline_response20010_spec.rb +59 -0
- data/spec/models/inline_response20011_spec.rb +59 -0
- data/spec/models/inline_response20012_spec.rb +59 -0
- data/spec/models/inline_response20013_spec.rb +59 -0
- data/spec/models/inline_response2001_spec.rb +1 -1
- data/spec/models/inline_response2002_spec.rb +1 -1
- data/spec/models/inline_response2003_spec.rb +1 -1
- data/spec/models/inline_response2004_spec.rb +1 -1
- data/spec/models/inline_response2005_spec.rb +1 -1
- data/spec/models/inline_response2006_spec.rb +1 -1
- data/spec/models/inline_response2007_spec.rb +1 -1
- data/spec/models/inline_response2008_spec.rb +1 -1
- data/spec/models/inline_response2009_spec.rb +1 -1
- data/spec/models/inline_response200_spec.rb +1 -1
- data/spec/models/repository_sync_url_spec.rb +2 -2
- data/spec/models/repository_version_spec.rb +65 -0
- data/spec/models/tag_spec.rb +1 -1
- data/spec/spec_helper.rb +1 -1
- metadata +78 -22
- data/docs/AnsibleRemote.md +0 -45
- data/docs/CollectionRemote.md +0 -47
- data/docs/Role.md +0 -33
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e791e26b998581865daf981f93ab91904bbd99d295921669d4033c4fd9b1f25b
|
|
4
|
+
data.tar.gz: 0eee9ea9531ce74d4bd3dd9a6b95efafad10583a81249503e884fdf878165a1c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: cb6d2982d1682fc391ccc47d6e56a7da565b48a219864595eb4328ce04a916f5852d20dd9b013acf8747bdd9cfab746370347d993da1c23863ffc2f76988ed8e
|
|
7
|
+
data.tar.gz: b7acd80f1463f97a99ea87a63ddcc6cd4e4356e91c03c3c834d68e71a2f3d6eab84f324a505e99b65c9820c560147293fb02661a53b3d7b810326ad4d13f047f
|
data/README.md
CHANGED
|
@@ -7,7 +7,7 @@ No description provided (generated by Openapi Generator https://github.com/opena
|
|
|
7
7
|
This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
|
8
8
|
|
|
9
9
|
- API version: v3
|
|
10
|
-
- Package version: 0.2.
|
|
10
|
+
- Package version: 0.2.0b6
|
|
11
11
|
- Build package: org.openapitools.codegen.languages.RubyClientCodegen
|
|
12
12
|
|
|
13
13
|
## Installation
|
|
@@ -23,16 +23,16 @@ gem build pulp_ansible_client.gemspec
|
|
|
23
23
|
Then either install the gem locally:
|
|
24
24
|
|
|
25
25
|
```shell
|
|
26
|
-
gem install ./pulp_ansible_client-0.2.
|
|
26
|
+
gem install ./pulp_ansible_client-0.2.0b6.gem
|
|
27
27
|
```
|
|
28
28
|
|
|
29
|
-
(for development, run `gem install --dev ./pulp_ansible_client-0.2.
|
|
29
|
+
(for development, run `gem install --dev ./pulp_ansible_client-0.2.0b6.gem` to install the development dependencies)
|
|
30
30
|
|
|
31
31
|
or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
|
|
32
32
|
|
|
33
33
|
Finally add this to the Gemfile:
|
|
34
34
|
|
|
35
|
-
gem 'pulp_ansible_client', '~> 0.2.
|
|
35
|
+
gem 'pulp_ansible_client', '~> 0.2.0b6'
|
|
36
36
|
|
|
37
37
|
### Install from Git
|
|
38
38
|
|
|
@@ -64,22 +64,21 @@ PulpAnsibleClient.configure do |config|
|
|
|
64
64
|
end
|
|
65
65
|
|
|
66
66
|
api_instance = PulpAnsibleClient::AnsibleCollectionsApi.new
|
|
67
|
-
relative_path = 'relative_path_example' # String | Path where the artifact is located relative to distributions base_path
|
|
68
67
|
opts = {
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
68
|
+
namespace: 'namespace_example', # String |
|
|
69
|
+
name: 'name_example', # String |
|
|
70
|
+
limit: 56, # Integer | Number of results to return per page.
|
|
71
|
+
offset: 56, # Integer | The initial index from which to return the results.
|
|
72
|
+
fields: 'fields_example', # String | A list of fields to include in the response.
|
|
73
|
+
exclude_fields: 'exclude_fields_example' # String | A list of fields to exclude from the response.
|
|
75
74
|
}
|
|
76
75
|
|
|
77
76
|
begin
|
|
78
|
-
#
|
|
79
|
-
result = api_instance.
|
|
77
|
+
#List collections
|
|
78
|
+
result = api_instance.list(opts)
|
|
80
79
|
p result
|
|
81
80
|
rescue PulpAnsibleClient::ApiError => e
|
|
82
|
-
puts "Exception when calling AnsibleCollectionsApi->
|
|
81
|
+
puts "Exception when calling AnsibleCollectionsApi->list: #{e}"
|
|
83
82
|
end
|
|
84
83
|
|
|
85
84
|
```
|
|
@@ -90,7 +89,8 @@ All URIs are relative to *http://localhost:24817*
|
|
|
90
89
|
|
|
91
90
|
Class | Method | HTTP request | Description
|
|
92
91
|
------------ | ------------- | ------------- | -------------
|
|
93
|
-
*PulpAnsibleClient::AnsibleCollectionsApi* | [**
|
|
92
|
+
*PulpAnsibleClient::AnsibleCollectionsApi* | [**list**](docs/AnsibleCollectionsApi.md#list) | **GET** /pulp/api/v3/ansible/collections/ | List collections
|
|
93
|
+
*PulpAnsibleClient::AnsibleCollectionsApi* | [**upload_collection**](docs/AnsibleCollectionsApi.md#upload_collection) | **POST** /ansible/collections/ | Upload a collection
|
|
94
94
|
*PulpAnsibleClient::ContentCollectionVersionsApi* | [**create**](docs/ContentCollectionVersionsApi.md#create) | **POST** /pulp/api/v3/content/ansible/collection_versions/ | Create a collection version
|
|
95
95
|
*PulpAnsibleClient::ContentCollectionVersionsApi* | [**list**](docs/ContentCollectionVersionsApi.md#list) | **GET** /pulp/api/v3/content/ansible/collection_versions/ | List collection versions
|
|
96
96
|
*PulpAnsibleClient::ContentCollectionVersionsApi* | [**read**](docs/ContentCollectionVersionsApi.md#read) | **GET** {collection_version_href} | Inspect a collection version
|
|
@@ -111,7 +111,7 @@ Class | Method | HTTP request | Description
|
|
|
111
111
|
*PulpAnsibleClient::PulpAnsibleGalaxyApiRolesApi* | [**list**](docs/PulpAnsibleGalaxyApiRolesApi.md#list) | **GET** /pulp_ansible/galaxy/{path}/api/v1/roles/ |
|
|
112
112
|
*PulpAnsibleClient::PulpAnsibleGalaxyApiV1VersionsApi* | [**list**](docs/PulpAnsibleGalaxyApiV1VersionsApi.md#list) | **GET** /pulp_ansible/galaxy/{path}/api/v1/roles/{role_pk}/versions/ |
|
|
113
113
|
*PulpAnsibleClient::PulpAnsibleGalaxyApiV2VersionsApi* | [**list**](docs/PulpAnsibleGalaxyApiV2VersionsApi.md#list) | **GET** {collection_href}versions/ |
|
|
114
|
-
*PulpAnsibleClient::PulpAnsibleGalaxyApiV3CollectionsApi* | [**create**](docs/PulpAnsibleGalaxyApiV3CollectionsApi.md#create) | **POST** /pulp_ansible/galaxy/{path}/api/v3/artifacts/collections/ |
|
|
114
|
+
*PulpAnsibleClient::PulpAnsibleGalaxyApiV3CollectionsApi* | [**create**](docs/PulpAnsibleGalaxyApiV3CollectionsApi.md#create) | **POST** /pulp_ansible/galaxy/{path}/api/v3/artifacts/collections/ | Upload a collection
|
|
115
115
|
*PulpAnsibleClient::PulpAnsibleGalaxyApiV3CollectionsApi* | [**read**](docs/PulpAnsibleGalaxyApiV3CollectionsApi.md#read) | **GET** {collection_import_href} | Inspect a collection import
|
|
116
116
|
*PulpAnsibleClient::PulpAnsibleTagsApi* | [**list**](docs/PulpAnsibleTagsApi.md#list) | **GET** /pulp/api/v3/pulp_ansible/tags/ | List tags
|
|
117
117
|
*PulpAnsibleClient::RemotesAnsibleApi* | [**create**](docs/RemotesAnsibleApi.md#create) | **POST** /pulp/api/v3/remotes/ansible/ansible/ | Create an ansible remote
|
|
@@ -119,32 +119,53 @@ Class | Method | HTTP request | Description
|
|
|
119
119
|
*PulpAnsibleClient::RemotesAnsibleApi* | [**list**](docs/RemotesAnsibleApi.md#list) | **GET** /pulp/api/v3/remotes/ansible/ansible/ | List ansible remotes
|
|
120
120
|
*PulpAnsibleClient::RemotesAnsibleApi* | [**partial_update**](docs/RemotesAnsibleApi.md#partial_update) | **PATCH** {ansible_remote_href} | Partially update an ansible remote
|
|
121
121
|
*PulpAnsibleClient::RemotesAnsibleApi* | [**read**](docs/RemotesAnsibleApi.md#read) | **GET** {ansible_remote_href} | Inspect an ansible remote
|
|
122
|
-
*PulpAnsibleClient::RemotesAnsibleApi* | [**sync**](docs/RemotesAnsibleApi.md#sync) | **POST** {ansible_remote_href}sync/ |
|
|
123
122
|
*PulpAnsibleClient::RemotesAnsibleApi* | [**update**](docs/RemotesAnsibleApi.md#update) | **PUT** {ansible_remote_href} | Update an ansible remote
|
|
124
123
|
*PulpAnsibleClient::RemotesCollectionApi* | [**create**](docs/RemotesCollectionApi.md#create) | **POST** /pulp/api/v3/remotes/ansible/collection/ | Create a collection remote
|
|
125
124
|
*PulpAnsibleClient::RemotesCollectionApi* | [**delete**](docs/RemotesCollectionApi.md#delete) | **DELETE** {collection_remote_href} | Delete a collection remote
|
|
126
125
|
*PulpAnsibleClient::RemotesCollectionApi* | [**list**](docs/RemotesCollectionApi.md#list) | **GET** /pulp/api/v3/remotes/ansible/collection/ | List collection remotes
|
|
127
126
|
*PulpAnsibleClient::RemotesCollectionApi* | [**partial_update**](docs/RemotesCollectionApi.md#partial_update) | **PATCH** {collection_remote_href} | Partially update a collection remote
|
|
128
127
|
*PulpAnsibleClient::RemotesCollectionApi* | [**read**](docs/RemotesCollectionApi.md#read) | **GET** {collection_remote_href} | Inspect a collection remote
|
|
129
|
-
*PulpAnsibleClient::RemotesCollectionApi* | [**sync**](docs/RemotesCollectionApi.md#sync) | **POST** {collection_remote_href}sync/ |
|
|
130
128
|
*PulpAnsibleClient::RemotesCollectionApi* | [**update**](docs/RemotesCollectionApi.md#update) | **PUT** {collection_remote_href} | Update a collection remote
|
|
129
|
+
*PulpAnsibleClient::RepositoriesAnsibleApi* | [**create**](docs/RepositoriesAnsibleApi.md#create) | **POST** /pulp/api/v3/repositories/ansible/ansible/ | Create an ansible repository
|
|
130
|
+
*PulpAnsibleClient::RepositoriesAnsibleApi* | [**delete**](docs/RepositoriesAnsibleApi.md#delete) | **DELETE** {ansible_repository_href} | Delete an ansible repository
|
|
131
|
+
*PulpAnsibleClient::RepositoriesAnsibleApi* | [**list**](docs/RepositoriesAnsibleApi.md#list) | **GET** /pulp/api/v3/repositories/ansible/ansible/ | List ansible repositorys
|
|
132
|
+
*PulpAnsibleClient::RepositoriesAnsibleApi* | [**partial_update**](docs/RepositoriesAnsibleApi.md#partial_update) | **PATCH** {ansible_repository_href} | Partially update an ansible repository
|
|
133
|
+
*PulpAnsibleClient::RepositoriesAnsibleApi* | [**read**](docs/RepositoriesAnsibleApi.md#read) | **GET** {ansible_repository_href} | Inspect an ansible repository
|
|
134
|
+
*PulpAnsibleClient::RepositoriesAnsibleApi* | [**sync**](docs/RepositoriesAnsibleApi.md#sync) | **POST** {ansible_repository_href}sync/ |
|
|
135
|
+
*PulpAnsibleClient::RepositoriesAnsibleApi* | [**update**](docs/RepositoriesAnsibleApi.md#update) | **PUT** {ansible_repository_href} | Update an ansible repository
|
|
136
|
+
*PulpAnsibleClient::RepositoriesAnsibleVersionsApi* | [**delete**](docs/RepositoriesAnsibleVersionsApi.md#delete) | **DELETE** {ansible_repository_version_href} | Delete a repository version
|
|
137
|
+
*PulpAnsibleClient::RepositoriesAnsibleVersionsApi* | [**list**](docs/RepositoriesAnsibleVersionsApi.md#list) | **GET** {ansible_repository_href}versions/ | List repository versions
|
|
138
|
+
*PulpAnsibleClient::RepositoriesAnsibleVersionsApi* | [**read**](docs/RepositoriesAnsibleVersionsApi.md#read) | **GET** {ansible_repository_version_href} | Inspect a repository version
|
|
131
139
|
|
|
132
140
|
|
|
133
141
|
## Documentation for Models
|
|
134
142
|
|
|
135
|
-
- [PulpAnsibleClient::
|
|
136
|
-
- [PulpAnsibleClient::
|
|
143
|
+
- [PulpAnsibleClient::AnsibleAnsibleDistribution](docs/AnsibleAnsibleDistribution.md)
|
|
144
|
+
- [PulpAnsibleClient::AnsibleAnsibleRemote](docs/AnsibleAnsibleRemote.md)
|
|
145
|
+
- [PulpAnsibleClient::AnsibleAnsibleRepository](docs/AnsibleAnsibleRepository.md)
|
|
146
|
+
- [PulpAnsibleClient::AnsibleCollection](docs/AnsibleCollection.md)
|
|
147
|
+
- [PulpAnsibleClient::AnsibleCollectionRemote](docs/AnsibleCollectionRemote.md)
|
|
148
|
+
- [PulpAnsibleClient::AnsibleCollectionVersion](docs/AnsibleCollectionVersion.md)
|
|
149
|
+
- [PulpAnsibleClient::AnsibleRole](docs/AnsibleRole.md)
|
|
150
|
+
- [PulpAnsibleClient::AnsibleTag](docs/AnsibleTag.md)
|
|
137
151
|
- [PulpAnsibleClient::AsyncOperationResponse](docs/AsyncOperationResponse.md)
|
|
152
|
+
- [PulpAnsibleClient::Collection](docs/Collection.md)
|
|
138
153
|
- [PulpAnsibleClient::CollectionImportDetail](docs/CollectionImportDetail.md)
|
|
139
154
|
- [PulpAnsibleClient::CollectionMetadata](docs/CollectionMetadata.md)
|
|
140
|
-
- [PulpAnsibleClient::
|
|
155
|
+
- [PulpAnsibleClient::CollectionNamespace](docs/CollectionNamespace.md)
|
|
156
|
+
- [PulpAnsibleClient::CollectionRef](docs/CollectionRef.md)
|
|
141
157
|
- [PulpAnsibleClient::CollectionVersion](docs/CollectionVersion.md)
|
|
158
|
+
- [PulpAnsibleClient::ContentSummary](docs/ContentSummary.md)
|
|
142
159
|
- [PulpAnsibleClient::GalaxyCollection](docs/GalaxyCollection.md)
|
|
143
160
|
- [PulpAnsibleClient::GalaxyCollectionVersion](docs/GalaxyCollectionVersion.md)
|
|
144
161
|
- [PulpAnsibleClient::GalaxyRole](docs/GalaxyRole.md)
|
|
145
162
|
- [PulpAnsibleClient::GalaxyRoleVersion](docs/GalaxyRoleVersion.md)
|
|
146
163
|
- [PulpAnsibleClient::InlineResponse200](docs/InlineResponse200.md)
|
|
147
164
|
- [PulpAnsibleClient::InlineResponse2001](docs/InlineResponse2001.md)
|
|
165
|
+
- [PulpAnsibleClient::InlineResponse20010](docs/InlineResponse20010.md)
|
|
166
|
+
- [PulpAnsibleClient::InlineResponse20011](docs/InlineResponse20011.md)
|
|
167
|
+
- [PulpAnsibleClient::InlineResponse20012](docs/InlineResponse20012.md)
|
|
168
|
+
- [PulpAnsibleClient::InlineResponse20013](docs/InlineResponse20013.md)
|
|
148
169
|
- [PulpAnsibleClient::InlineResponse2002](docs/InlineResponse2002.md)
|
|
149
170
|
- [PulpAnsibleClient::InlineResponse2003](docs/InlineResponse2003.md)
|
|
150
171
|
- [PulpAnsibleClient::InlineResponse2004](docs/InlineResponse2004.md)
|
|
@@ -154,9 +175,8 @@ Class | Method | HTTP request | Description
|
|
|
154
175
|
- [PulpAnsibleClient::InlineResponse2008](docs/InlineResponse2008.md)
|
|
155
176
|
- [PulpAnsibleClient::InlineResponse2009](docs/InlineResponse2009.md)
|
|
156
177
|
- [PulpAnsibleClient::RepositorySyncURL](docs/RepositorySyncURL.md)
|
|
157
|
-
- [PulpAnsibleClient::
|
|
178
|
+
- [PulpAnsibleClient::RepositoryVersion](docs/RepositoryVersion.md)
|
|
158
179
|
- [PulpAnsibleClient::Tag](docs/Tag.md)
|
|
159
|
-
- [PulpAnsibleClient::TagNested](docs/TagNested.md)
|
|
160
180
|
|
|
161
181
|
|
|
162
182
|
## Documentation for Authorization
|
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
# PulpAnsibleClient::
|
|
1
|
+
# PulpAnsibleClient::AnsibleAnsibleDistribution
|
|
2
2
|
|
|
3
3
|
## Properties
|
|
4
4
|
|
|
5
5
|
Name | Type | Description | Notes
|
|
6
6
|
------------ | ------------- | ------------- | -------------
|
|
7
|
-
**
|
|
8
|
-
**
|
|
7
|
+
**pulp_href** | **String** | | [optional] [readonly]
|
|
8
|
+
**pulp_created** | **DateTime** | Timestamp of creation. | [optional] [readonly]
|
|
9
9
|
**base_path** | **String** | The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\") |
|
|
10
10
|
**content_guard** | **String** | An optional content-guard. | [optional]
|
|
11
11
|
**name** | **String** | A unique name. Ex, `rawhide` and `stable`. |
|
|
12
12
|
**repository** | **String** | The latest RepositoryVersion for this Repository will be served. | [optional]
|
|
13
13
|
**repository_version** | **String** | RepositoryVersion to be served | [optional]
|
|
14
|
-
**client_url** | **String** | The URL of a Collection content source. | [optional]
|
|
14
|
+
**client_url** | **String** | The URL of a Collection content source. | [optional] [readonly]
|
|
15
15
|
|
|
16
16
|
## Code Sample
|
|
17
17
|
|
|
18
18
|
```ruby
|
|
19
19
|
require 'PulpAnsibleClient'
|
|
20
20
|
|
|
21
|
-
instance = PulpAnsibleClient::
|
|
22
|
-
|
|
21
|
+
instance = PulpAnsibleClient::AnsibleAnsibleDistribution.new(pulp_href: null,
|
|
22
|
+
pulp_created: null,
|
|
23
23
|
base_path: null,
|
|
24
24
|
content_guard: null,
|
|
25
25
|
name: null,
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
# PulpAnsibleClient::AnsibleAnsibleRemote
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
Name | Type | Description | Notes
|
|
6
|
+
------------ | ------------- | ------------- | -------------
|
|
7
|
+
**pulp_href** | **String** | | [optional] [readonly]
|
|
8
|
+
**pulp_created** | **DateTime** | Timestamp of creation. | [optional] [readonly]
|
|
9
|
+
**name** | **String** | A unique name for this remote. |
|
|
10
|
+
**url** | **String** | The URL of an external content source. |
|
|
11
|
+
**ca_cert** | **String** | A string containing the PEM encoded CA certificate used to validate the server certificate presented by the remote server. All new line characters must be escaped. Returns SHA256 sum on GET. | [optional]
|
|
12
|
+
**client_cert** | **String** | A string containing the PEM encoded client certificate used for authentication. All new line characters must be escaped. Returns SHA256 sum on GET. | [optional]
|
|
13
|
+
**client_key** | **String** | A PEM encoded private key used for authentication. Returns SHA256 sum on GET. | [optional]
|
|
14
|
+
**tls_validation** | **Boolean** | If True, TLS peer validation must be performed. | [optional]
|
|
15
|
+
**proxy_url** | **String** | The proxy URL. Format: scheme://user:password@host:port | [optional]
|
|
16
|
+
**pulp_last_updated** | **DateTime** | Timestamp of the most recent update of the remote. | [optional] [readonly]
|
|
17
|
+
**download_concurrency** | **Integer** | Total number of simultaneous connections. | [optional]
|
|
18
|
+
**policy** | **String** | The policy to use when downloading content. | [optional] [default to 'immediate']
|
|
19
|
+
|
|
20
|
+
## Code Sample
|
|
21
|
+
|
|
22
|
+
```ruby
|
|
23
|
+
require 'PulpAnsibleClient'
|
|
24
|
+
|
|
25
|
+
instance = PulpAnsibleClient::AnsibleAnsibleRemote.new(pulp_href: null,
|
|
26
|
+
pulp_created: null,
|
|
27
|
+
name: null,
|
|
28
|
+
url: null,
|
|
29
|
+
ca_cert: null,
|
|
30
|
+
client_cert: null,
|
|
31
|
+
client_key: null,
|
|
32
|
+
tls_validation: null,
|
|
33
|
+
proxy_url: null,
|
|
34
|
+
pulp_last_updated: null,
|
|
35
|
+
download_concurrency: null,
|
|
36
|
+
policy: null)
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# PulpAnsibleClient::AnsibleAnsibleRepository
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
Name | Type | Description | Notes
|
|
6
|
+
------------ | ------------- | ------------- | -------------
|
|
7
|
+
**pulp_href** | **String** | | [optional] [readonly]
|
|
8
|
+
**pulp_created** | **DateTime** | Timestamp of creation. | [optional] [readonly]
|
|
9
|
+
**versions_href** | **String** | | [optional] [readonly]
|
|
10
|
+
**latest_version_href** | **String** | | [optional] [readonly]
|
|
11
|
+
**name** | **String** | A unique name for this repository. |
|
|
12
|
+
**description** | **String** | An optional description. | [optional]
|
|
13
|
+
|
|
14
|
+
## Code Sample
|
|
15
|
+
|
|
16
|
+
```ruby
|
|
17
|
+
require 'PulpAnsibleClient'
|
|
18
|
+
|
|
19
|
+
instance = PulpAnsibleClient::AnsibleAnsibleRepository.new(pulp_href: null,
|
|
20
|
+
pulp_created: null,
|
|
21
|
+
versions_href: null,
|
|
22
|
+
latest_version_href: null,
|
|
23
|
+
name: null,
|
|
24
|
+
description: null)
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# PulpAnsibleClient::AnsibleCollection
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
Name | Type | Description | Notes
|
|
6
|
+
------------ | ------------- | ------------- | -------------
|
|
7
|
+
**name** | **String** | The name of the Collection. |
|
|
8
|
+
**namespace** | **String** | The namespace of the Collection. |
|
|
9
|
+
|
|
10
|
+
## Code Sample
|
|
11
|
+
|
|
12
|
+
```ruby
|
|
13
|
+
require 'PulpAnsibleClient'
|
|
14
|
+
|
|
15
|
+
instance = PulpAnsibleClient::AnsibleCollection.new(name: null,
|
|
16
|
+
namespace: null)
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
# PulpAnsibleClient::AnsibleCollectionRemote
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
Name | Type | Description | Notes
|
|
6
|
+
------------ | ------------- | ------------- | -------------
|
|
7
|
+
**pulp_href** | **String** | | [optional] [readonly]
|
|
8
|
+
**pulp_created** | **DateTime** | Timestamp of creation. | [optional] [readonly]
|
|
9
|
+
**name** | **String** | A unique name for this remote. |
|
|
10
|
+
**url** | **String** | The URL of an external content source. |
|
|
11
|
+
**ca_cert** | **String** | A string containing the PEM encoded CA certificate used to validate the server certificate presented by the remote server. All new line characters must be escaped. Returns SHA256 sum on GET. | [optional]
|
|
12
|
+
**client_cert** | **String** | A string containing the PEM encoded client certificate used for authentication. All new line characters must be escaped. Returns SHA256 sum on GET. | [optional]
|
|
13
|
+
**client_key** | **String** | A PEM encoded private key used for authentication. Returns SHA256 sum on GET. | [optional]
|
|
14
|
+
**tls_validation** | **Boolean** | If True, TLS peer validation must be performed. | [optional]
|
|
15
|
+
**proxy_url** | **String** | The proxy URL. Format: scheme://user:password@host:port | [optional]
|
|
16
|
+
**pulp_last_updated** | **DateTime** | Timestamp of the most recent update of the remote. | [optional] [readonly]
|
|
17
|
+
**download_concurrency** | **Integer** | Total number of simultaneous connections. | [optional]
|
|
18
|
+
**policy** | **String** | The policy to use when downloading content. | [optional] [default to 'immediate']
|
|
19
|
+
**requirements_file** | **String** | The string version of Collection requirements yaml. | [optional]
|
|
20
|
+
|
|
21
|
+
## Code Sample
|
|
22
|
+
|
|
23
|
+
```ruby
|
|
24
|
+
require 'PulpAnsibleClient'
|
|
25
|
+
|
|
26
|
+
instance = PulpAnsibleClient::AnsibleCollectionRemote.new(pulp_href: null,
|
|
27
|
+
pulp_created: null,
|
|
28
|
+
name: null,
|
|
29
|
+
url: null,
|
|
30
|
+
ca_cert: null,
|
|
31
|
+
client_cert: null,
|
|
32
|
+
client_key: null,
|
|
33
|
+
tls_validation: null,
|
|
34
|
+
proxy_url: null,
|
|
35
|
+
pulp_last_updated: null,
|
|
36
|
+
download_concurrency: null,
|
|
37
|
+
policy: null,
|
|
38
|
+
requirements_file: null)
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
# PulpAnsibleClient::AnsibleCollectionVersion
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
Name | Type | Description | Notes
|
|
6
|
+
------------ | ------------- | ------------- | -------------
|
|
7
|
+
**pulp_href** | **String** | | [optional] [readonly]
|
|
8
|
+
**pulp_created** | **DateTime** | Timestamp of creation. | [optional] [readonly]
|
|
9
|
+
**artifact** | **String** | Artifact file representing the physical content |
|
|
10
|
+
**md5** | **String** | The MD5 checksum if available. | [optional] [readonly]
|
|
11
|
+
**sha1** | **String** | The SHA-1 checksum if available. | [optional] [readonly]
|
|
12
|
+
**sha224** | **String** | The SHA-224 checksum if available. | [optional] [readonly]
|
|
13
|
+
**sha256** | **String** | The SHA-256 checksum if available. | [optional] [readonly]
|
|
14
|
+
**sha384** | **String** | The SHA-384 checksum if available. | [optional] [readonly]
|
|
15
|
+
**sha512** | **String** | The SHA-512 checksum if available. | [optional] [readonly]
|
|
16
|
+
**id** | **String** | A collection identifier. |
|
|
17
|
+
**authors** | **Array<String>** | A list of the CollectionVersion content's authors. |
|
|
18
|
+
**contents** | **Array<Hash<String, String>>** | A JSON field with data about the contents. |
|
|
19
|
+
**dependencies** | **Hash<String, String>** | A dict declaring Collections that this collection requires to be installed for it to be usable. |
|
|
20
|
+
**description** | **String** | A short summary description of the collection. |
|
|
21
|
+
**docs_blob** | **Hash<String, String>** | A JSON field holding the various documentation blobs in the collection. |
|
|
22
|
+
**documentation** | **String** | The URL to any online docs. |
|
|
23
|
+
**homepage** | **String** | The URL to the homepage of the collection/project. |
|
|
24
|
+
**issues** | **String** | The URL to the collection issue tracker. |
|
|
25
|
+
**certification** | **String** | Indicates that the version is certified |
|
|
26
|
+
**license** | **Array<String>** | A list of licenses for content inside of a collection. |
|
|
27
|
+
**name** | **String** | The name of the collection. |
|
|
28
|
+
**namespace** | **String** | The namespace of the collection. |
|
|
29
|
+
**repository** | **String** | The URL of the originating SCM repository. |
|
|
30
|
+
**tags** | [**Array<AnsibleTag>**](AnsibleTag.md) | | [optional] [readonly]
|
|
31
|
+
**version** | **String** | The version of the collection. |
|
|
32
|
+
**deprecated** | **Boolean** | Whether or not the collection has been deprecated. | [optional] [readonly]
|
|
33
|
+
|
|
34
|
+
## Code Sample
|
|
35
|
+
|
|
36
|
+
```ruby
|
|
37
|
+
require 'PulpAnsibleClient'
|
|
38
|
+
|
|
39
|
+
instance = PulpAnsibleClient::AnsibleCollectionVersion.new(pulp_href: null,
|
|
40
|
+
pulp_created: null,
|
|
41
|
+
artifact: null,
|
|
42
|
+
md5: null,
|
|
43
|
+
sha1: null,
|
|
44
|
+
sha224: null,
|
|
45
|
+
sha256: null,
|
|
46
|
+
sha384: null,
|
|
47
|
+
sha512: null,
|
|
48
|
+
id: null,
|
|
49
|
+
authors: null,
|
|
50
|
+
contents: null,
|
|
51
|
+
dependencies: null,
|
|
52
|
+
description: null,
|
|
53
|
+
docs_blob: null,
|
|
54
|
+
documentation: null,
|
|
55
|
+
homepage: null,
|
|
56
|
+
issues: null,
|
|
57
|
+
certification: null,
|
|
58
|
+
license: null,
|
|
59
|
+
name: null,
|
|
60
|
+
namespace: null,
|
|
61
|
+
repository: null,
|
|
62
|
+
tags: null,
|
|
63
|
+
version: null,
|
|
64
|
+
deprecated: null)
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
|
|
@@ -4,17 +4,18 @@ All URIs are relative to *http://localhost:24817*
|
|
|
4
4
|
|
|
5
5
|
Method | HTTP request | Description
|
|
6
6
|
------------- | ------------- | -------------
|
|
7
|
-
[**
|
|
7
|
+
[**list**](AnsibleCollectionsApi.md#list) | **GET** /pulp/api/v3/ansible/collections/ | List collections
|
|
8
|
+
[**upload_collection**](AnsibleCollectionsApi.md#upload_collection) | **POST** /ansible/collections/ | Upload a collection
|
|
8
9
|
|
|
9
10
|
|
|
10
11
|
|
|
11
|
-
##
|
|
12
|
+
## list
|
|
12
13
|
|
|
13
|
-
>
|
|
14
|
+
> InlineResponse200 list(opts)
|
|
14
15
|
|
|
15
|
-
|
|
16
|
+
List collections
|
|
16
17
|
|
|
17
|
-
|
|
18
|
+
Viewset for Ansible Collections.
|
|
18
19
|
|
|
19
20
|
### Example
|
|
20
21
|
|
|
@@ -29,22 +30,85 @@ PulpAnsibleClient.configure do |config|
|
|
|
29
30
|
end
|
|
30
31
|
|
|
31
32
|
api_instance = PulpAnsibleClient::AnsibleCollectionsApi.new
|
|
32
|
-
relative_path = 'relative_path_example' # String | Path where the artifact is located relative to distributions base_path
|
|
33
33
|
opts = {
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
34
|
+
namespace: 'namespace_example', # String |
|
|
35
|
+
name: 'name_example', # String |
|
|
36
|
+
limit: 56, # Integer | Number of results to return per page.
|
|
37
|
+
offset: 56, # Integer | The initial index from which to return the results.
|
|
38
|
+
fields: 'fields_example', # String | A list of fields to include in the response.
|
|
39
|
+
exclude_fields: 'exclude_fields_example' # String | A list of fields to exclude from the response.
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
begin
|
|
43
|
+
#List collections
|
|
44
|
+
result = api_instance.list(opts)
|
|
45
|
+
p result
|
|
46
|
+
rescue PulpAnsibleClient::ApiError => e
|
|
47
|
+
puts "Exception when calling AnsibleCollectionsApi->list: #{e}"
|
|
48
|
+
end
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
### Parameters
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
Name | Type | Description | Notes
|
|
55
|
+
------------- | ------------- | ------------- | -------------
|
|
56
|
+
**namespace** | **String**| | [optional]
|
|
57
|
+
**name** | **String**| | [optional]
|
|
58
|
+
**limit** | **Integer**| Number of results to return per page. | [optional]
|
|
59
|
+
**offset** | **Integer**| The initial index from which to return the results. | [optional]
|
|
60
|
+
**fields** | **String**| A list of fields to include in the response. | [optional]
|
|
61
|
+
**exclude_fields** | **String**| A list of fields to exclude from the response. | [optional]
|
|
62
|
+
|
|
63
|
+
### Return type
|
|
64
|
+
|
|
65
|
+
[**InlineResponse200**](InlineResponse200.md)
|
|
66
|
+
|
|
67
|
+
### Authorization
|
|
68
|
+
|
|
69
|
+
[Basic](../README.md#Basic)
|
|
70
|
+
|
|
71
|
+
### HTTP request headers
|
|
72
|
+
|
|
73
|
+
- **Content-Type**: Not defined
|
|
74
|
+
- **Accept**: application/json
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
## upload_collection
|
|
78
|
+
|
|
79
|
+
> AsyncOperationResponse upload_collection(file, opts)
|
|
80
|
+
|
|
81
|
+
Upload a collection
|
|
82
|
+
|
|
83
|
+
Create an artifact and trigger an asynchronous task to create Collection content from it.
|
|
84
|
+
|
|
85
|
+
### Example
|
|
86
|
+
|
|
87
|
+
```ruby
|
|
88
|
+
# load the gem
|
|
89
|
+
require 'pulp_ansible_client'
|
|
90
|
+
# setup authorization
|
|
91
|
+
PulpAnsibleClient.configure do |config|
|
|
92
|
+
# Configure HTTP basic authorization: Basic
|
|
93
|
+
config.username = 'YOUR USERNAME'
|
|
94
|
+
config.password = 'YOUR PASSWORD'
|
|
95
|
+
end
|
|
96
|
+
|
|
97
|
+
api_instance = PulpAnsibleClient::AnsibleCollectionsApi.new
|
|
98
|
+
file = File.new('/path/to/file') # File | The Collection tarball.
|
|
99
|
+
opts = {
|
|
100
|
+
sha256: 'sha256_example', # String | An optional sha256 checksum of the uploaded file.
|
|
38
101
|
expected_namespace: 'expected_namespace_example', # String | The expected 'namespace' of the Collection to be verified against the metadata during import.
|
|
102
|
+
expected_name: 'expected_name_example', # String | The expected 'name' of the Collection to be verified against the metadata during import.
|
|
39
103
|
expected_version: 'expected_version_example' # String | The expected version of the Collection to be verified against the metadata during import.
|
|
40
104
|
}
|
|
41
105
|
|
|
42
106
|
begin
|
|
43
|
-
#
|
|
44
|
-
result = api_instance.
|
|
107
|
+
#Upload a collection
|
|
108
|
+
result = api_instance.upload_collection(file, opts)
|
|
45
109
|
p result
|
|
46
110
|
rescue PulpAnsibleClient::ApiError => e
|
|
47
|
-
puts "Exception when calling AnsibleCollectionsApi->
|
|
111
|
+
puts "Exception when calling AnsibleCollectionsApi->upload_collection: #{e}"
|
|
48
112
|
end
|
|
49
113
|
```
|
|
50
114
|
|
|
@@ -53,12 +117,10 @@ end
|
|
|
53
117
|
|
|
54
118
|
Name | Type | Description | Notes
|
|
55
119
|
------------- | ------------- | ------------- | -------------
|
|
56
|
-
**
|
|
57
|
-
**
|
|
58
|
-
**file** | **File**| An uploaded file that should be turned into the artifact of the content unit. | [optional]
|
|
59
|
-
**repository** | **String**| A URI of a repository the new content unit should be associated with. | [optional]
|
|
60
|
-
**expected_name** | **String**| The expected 'name' of the Collection to be verified against the metadata during import. | [optional]
|
|
120
|
+
**file** | **File**| The Collection tarball. |
|
|
121
|
+
**sha256** | **String**| An optional sha256 checksum of the uploaded file. | [optional]
|
|
61
122
|
**expected_namespace** | **String**| The expected 'namespace' of the Collection to be verified against the metadata during import. | [optional]
|
|
123
|
+
**expected_name** | **String**| The expected 'name' of the Collection to be verified against the metadata during import. | [optional]
|
|
62
124
|
**expected_version** | **String**| The expected version of the Collection to be verified against the metadata during import. | [optional]
|
|
63
125
|
|
|
64
126
|
### Return type
|
data/docs/AnsibleRole.md
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# PulpAnsibleClient::AnsibleRole
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
Name | Type | Description | Notes
|
|
6
|
+
------------ | ------------- | ------------- | -------------
|
|
7
|
+
**pulp_href** | **String** | | [optional] [readonly]
|
|
8
|
+
**pulp_created** | **DateTime** | Timestamp of creation. | [optional] [readonly]
|
|
9
|
+
**artifact** | **String** | Artifact file representing the physical content |
|
|
10
|
+
**version** | **String** | |
|
|
11
|
+
**name** | **String** | |
|
|
12
|
+
**namespace** | **String** | |
|
|
13
|
+
|
|
14
|
+
## Code Sample
|
|
15
|
+
|
|
16
|
+
```ruby
|
|
17
|
+
require 'PulpAnsibleClient'
|
|
18
|
+
|
|
19
|
+
instance = PulpAnsibleClient::AnsibleRole.new(pulp_href: null,
|
|
20
|
+
pulp_created: null,
|
|
21
|
+
artifact: null,
|
|
22
|
+
version: null,
|
|
23
|
+
name: null,
|
|
24
|
+
namespace: null)
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
|
data/docs/AnsibleTag.md
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# PulpAnsibleClient::AnsibleTag
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
Name | Type | Description | Notes
|
|
6
|
+
------------ | ------------- | ------------- | -------------
|
|
7
|
+
**name** | **String** | The name of the Tag. | [optional] [readonly]
|
|
8
|
+
|
|
9
|
+
## Code Sample
|
|
10
|
+
|
|
11
|
+
```ruby
|
|
12
|
+
require 'PulpAnsibleClient'
|
|
13
|
+
|
|
14
|
+
instance = PulpAnsibleClient::AnsibleTag.new(name: null)
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
|
data/docs/Collection.md
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# PulpAnsibleClient::Collection
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
Name | Type | Description | Notes
|
|
6
|
+
------------ | ------------- | ------------- | -------------
|
|
7
|
+
**href** | **String** | | [optional] [readonly]
|
|
8
|
+
**created_at** | **DateTime** | |
|
|
9
|
+
**updated_at** | **DateTime** | |
|
|
10
|
+
**namespace** | **String** | | [optional] [readonly]
|
|
11
|
+
**name** | **String** | | [optional] [readonly]
|
|
12
|
+
**deprecated** | **Boolean** | |
|
|
13
|
+
**versions_url** | **String** | | [optional] [readonly]
|
|
14
|
+
**highest_version** | **String** | | [optional] [readonly]
|
|
15
|
+
|
|
16
|
+
## Code Sample
|
|
17
|
+
|
|
18
|
+
```ruby
|
|
19
|
+
require 'PulpAnsibleClient'
|
|
20
|
+
|
|
21
|
+
instance = PulpAnsibleClient::Collection.new(href: null,
|
|
22
|
+
created_at: null,
|
|
23
|
+
updated_at: null,
|
|
24
|
+
namespace: null,
|
|
25
|
+
name: null,
|
|
26
|
+
deprecated: null,
|
|
27
|
+
versions_url: null,
|
|
28
|
+
highest_version: null)
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
|
|
@@ -10,8 +10,8 @@ Name | Type | Description | Notes
|
|
|
10
10
|
**updated_at** | **DateTime** | |
|
|
11
11
|
**started_at** | **DateTime** | |
|
|
12
12
|
**finished_at** | **DateTime** | |
|
|
13
|
-
**error** | **
|
|
14
|
-
**messages** | **
|
|
13
|
+
**error** | [**Object**](.md) | |
|
|
14
|
+
**messages** | [**Object**](.md) | |
|
|
15
15
|
|
|
16
16
|
## Code Sample
|
|
17
17
|
|
data/docs/CollectionMetadata.md
CHANGED
|
@@ -4,15 +4,15 @@
|
|
|
4
4
|
|
|
5
5
|
Name | Type | Description | Notes
|
|
6
6
|
------------ | ------------- | ------------- | -------------
|
|
7
|
-
**authors** | **Array<String>** | | [optional]
|
|
8
|
-
**contents** | **
|
|
9
|
-
**dependencies** | **
|
|
10
|
-
**description** | **String** | | [optional]
|
|
11
|
-
**documentation** | **String** | | [optional]
|
|
12
|
-
**homepage** | **String** | | [optional]
|
|
13
|
-
**issues** | **String** | | [optional]
|
|
14
|
-
**license** | **Array<String>** | | [optional]
|
|
15
|
-
**repository** | **String** | | [optional]
|
|
7
|
+
**authors** | **Array<String>** | | [optional] [readonly]
|
|
8
|
+
**contents** | [**Object**](.md) | | [optional] [readonly]
|
|
9
|
+
**dependencies** | [**Object**](.md) | | [optional] [readonly]
|
|
10
|
+
**description** | **String** | | [optional] [readonly]
|
|
11
|
+
**documentation** | **String** | | [optional] [readonly]
|
|
12
|
+
**homepage** | **String** | | [optional] [readonly]
|
|
13
|
+
**issues** | **String** | | [optional] [readonly]
|
|
14
|
+
**license** | **Array<String>** | | [optional] [readonly]
|
|
15
|
+
**repository** | **String** | | [optional] [readonly]
|
|
16
16
|
**tags** | **Array<String>** | |
|
|
17
17
|
|
|
18
18
|
## Code Sample
|