pulp_ansible_client 0.2.0b1 → 0.2.0b2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +17 -12
- data/docs/AnsibleDistribution.md +3 -3
- data/docs/CollectionRemote.md +1 -3
- data/docs/CollectionVersion.md +63 -0
- data/docs/ContentCollectionsApi.md +16 -14
- data/docs/{GalaxyCollection.md → GalaxyCollectionVersion.md} +2 -2
- data/docs/InlineResponse200.md +4 -4
- data/docs/InlineResponse2001.md +3 -3
- data/docs/InlineResponse2002.md +3 -3
- data/docs/InlineResponse2003.md +4 -4
- data/docs/InlineResponse2004.md +4 -4
- data/docs/InlineResponse2005.md +4 -4
- data/docs/InlineResponse2006.md +4 -4
- data/docs/InlineResponse2007.md +4 -4
- data/docs/InlineResponse2008.md +23 -0
- data/docs/PulpAnsibleGalaxyApiCollectionsApi.md +64 -6
- data/docs/PulpAnsibleGalaxyApiRolesApi.md +2 -2
- data/docs/PulpAnsibleGalaxyApiV1VersionsApi.md +2 -2
- data/docs/PulpAnsibleGalaxyApiV2VersionsApi.md +6 -6
- data/docs/PulpAnsibleTagsApi.md +66 -0
- data/docs/RemotesAnsibleApi.md +2 -2
- data/docs/RemotesCollectionApi.md +2 -2
- data/docs/Role.md +4 -4
- data/docs/Tag.md +17 -0
- data/docs/TagNested.md +17 -0
- data/lib/pulp_ansible_client/api/ansible_collections_api.rb +2 -2
- data/lib/pulp_ansible_client/api/content_collections_api.rb +19 -16
- data/lib/pulp_ansible_client/api/content_roles_api.rb +3 -3
- data/lib/pulp_ansible_client/api/distributions_ansible_api.rb +6 -6
- data/lib/pulp_ansible_client/api/pulp_ansible_api_api.rb +3 -3
- data/lib/pulp_ansible_client/api/pulp_ansible_galaxy_api_collections_api.rb +79 -15
- data/lib/pulp_ansible_client/api/pulp_ansible_galaxy_api_roles_api.rb +6 -6
- data/lib/pulp_ansible_client/api/pulp_ansible_galaxy_api_v1_versions_api.rb +6 -6
- data/lib/pulp_ansible_client/api/pulp_ansible_galaxy_api_v2_versions_api.rb +14 -14
- data/lib/pulp_ansible_client/api/pulp_ansible_tags_api.rb +84 -0
- data/lib/pulp_ansible_client/api/remotes_ansible_api.rb +10 -10
- data/lib/pulp_ansible_client/api/remotes_collection_api.rb +10 -10
- data/lib/pulp_ansible_client/api_client.rb +77 -62
- data/lib/pulp_ansible_client/api_error.rb +1 -1
- data/lib/pulp_ansible_client/configuration.rb +13 -21
- data/lib/pulp_ansible_client/models/ansible_distribution.rb +15 -30
- data/lib/pulp_ansible_client/models/ansible_remote.rb +1 -1
- data/lib/pulp_ansible_client/models/async_operation_response.rb +1 -1
- data/lib/pulp_ansible_client/models/collection_remote.rb +5 -38
- data/lib/pulp_ansible_client/models/{collection.rb → collection_version.rb} +314 -43
- data/lib/pulp_ansible_client/models/{galaxy_collection.rb → galaxy_collection_version.rb} +4 -4
- data/lib/pulp_ansible_client/models/galaxy_role.rb +1 -1
- data/lib/pulp_ansible_client/models/galaxy_role_version.rb +1 -1
- data/lib/pulp_ansible_client/models/inline_response200.rb +12 -12
- data/lib/pulp_ansible_client/models/inline_response2001.rb +11 -11
- data/lib/pulp_ansible_client/models/inline_response2002.rb +11 -11
- data/lib/pulp_ansible_client/models/inline_response2003.rb +12 -12
- data/lib/pulp_ansible_client/models/inline_response2004.rb +12 -12
- data/lib/pulp_ansible_client/models/inline_response2005.rb +12 -12
- data/lib/pulp_ansible_client/models/inline_response2006.rb +12 -12
- data/lib/pulp_ansible_client/models/inline_response2007.rb +12 -12
- data/lib/pulp_ansible_client/models/inline_response2008.rb +235 -0
- data/lib/pulp_ansible_client/models/repository_sync_url.rb +1 -1
- data/lib/pulp_ansible_client/models/role.rb +18 -18
- data/lib/pulp_ansible_client/models/tag.rb +211 -0
- data/lib/pulp_ansible_client/models/tag_nested.rb +212 -0
- data/lib/pulp_ansible_client/version.rb +2 -2
- data/lib/pulp_ansible_client.rb +7 -3
- data/pulp_ansible_client.gemspec +3 -9
- data/spec/api/ansible_collections_api_spec.rb +1 -1
- data/spec/api/content_collections_api_spec.rb +7 -6
- data/spec/api/content_roles_api_spec.rb +1 -1
- data/spec/api/distributions_ansible_api_spec.rb +1 -1
- data/spec/api/pulp_ansible_api_api_spec.rb +1 -1
- data/spec/api/pulp_ansible_galaxy_api_collections_api_spec.rb +16 -3
- data/spec/api/pulp_ansible_galaxy_api_roles_api_spec.rb +2 -2
- data/spec/api/pulp_ansible_galaxy_api_v1_versions_api_spec.rb +2 -2
- data/spec/api/pulp_ansible_galaxy_api_v2_versions_api_spec.rb +3 -3
- data/spec/api/pulp_ansible_tags_api_spec.rb +48 -0
- data/spec/api/remotes_ansible_api_spec.rb +2 -2
- data/spec/api/remotes_collection_api_spec.rb +2 -2
- data/spec/api_client_spec.rb +1 -39
- data/spec/configuration_spec.rb +1 -1
- data/spec/models/ansible_distribution_spec.rb +6 -6
- data/spec/models/ansible_remote_spec.rb +1 -1
- data/spec/models/async_operation_response_spec.rb +1 -1
- data/spec/models/collection_remote_spec.rb +1 -7
- data/spec/models/{collection_spec.rb → collection_version_spec.rb} +77 -11
- data/spec/models/{galaxy_collection_spec.rb → galaxy_collection_version_spec.rb} +7 -7
- data/spec/models/galaxy_role_spec.rb +1 -1
- data/spec/models/galaxy_role_version_spec.rb +1 -1
- data/spec/models/inline_response2001_spec.rb +4 -4
- data/spec/models/inline_response2002_spec.rb +4 -4
- data/spec/models/inline_response2003_spec.rb +4 -4
- data/spec/models/inline_response2004_spec.rb +4 -4
- data/spec/models/inline_response2005_spec.rb +4 -4
- data/spec/models/inline_response2006_spec.rb +4 -4
- data/spec/models/inline_response2007_spec.rb +4 -4
- data/spec/models/inline_response2008_spec.rb +59 -0
- data/spec/models/inline_response200_spec.rb +4 -4
- data/spec/models/repository_sync_url_spec.rb +1 -1
- data/spec/models/role_spec.rb +4 -4
- data/spec/models/tag_nested_spec.rb +41 -0
- data/spec/models/tag_spec.rb +41 -0
- data/spec/spec_helper.rb +1 -1
- metadata +30 -141
- data/Gemfile.lock +0 -79
- data/docs/Collection.md +0 -41
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bf0d06da41b9cbc0054304ee0556cbc318e3dcd330aff74eef02214f2a3f8e3e
|
4
|
+
data.tar.gz: bf42db27fdec07b7d62dd7727b6ffee21964af4bcd2e00c77163f3098b1fdfcc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a543cc80f43ae78da508d7a1693ac46812449b6f9e1931b0151e6c95cac195461ae3e9c94431ea81a2e282ab6cbd29bd11f6f7ed2b911b0b71f94f1e918f85f7
|
7
|
+
data.tar.gz: 9447d0930882c5f5d6ab85479d48ee5accf856fd56016da5a50dd15a936ddc2eb0f2d6a902379feca4ac5f6a88889f139b684b236e9182ee3fcea8b1a472102b
|
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.0b2
|
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.0b2.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.0b2.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.0b2'
|
36
36
|
|
37
37
|
### Install from Git
|
38
38
|
|
@@ -59,8 +59,8 @@ require 'pulp_ansible_client'
|
|
59
59
|
# Setup authorization
|
60
60
|
PulpAnsibleClient.configure do |config|
|
61
61
|
# Configure HTTP basic authorization: Basic
|
62
|
-
config.username = '
|
63
|
-
config.password = '
|
62
|
+
config.username = 'YOUR_USERNAME'
|
63
|
+
config.password = 'YOUR_PASSWORD'
|
64
64
|
end
|
65
65
|
|
66
66
|
api_instance = PulpAnsibleClient::AnsibleCollectionsApi.new
|
@@ -86,8 +86,8 @@ All URIs are relative to *http://localhost:24817*
|
|
86
86
|
Class | Method | HTTP request | Description
|
87
87
|
------------ | ------------- | ------------- | -------------
|
88
88
|
*PulpAnsibleClient::AnsibleCollectionsApi* | [**upload_collection**](docs/AnsibleCollectionsApi.md#upload_collection) | **POST** /ansible/collections/ | Upload a collection
|
89
|
-
*PulpAnsibleClient::ContentCollectionsApi* | [**create**](docs/ContentCollectionsApi.md#create) | **POST** /pulp/api/v3/content/ansible/collections/ | Create a collection
|
90
|
-
*PulpAnsibleClient::ContentCollectionsApi* | [**list**](docs/ContentCollectionsApi.md#list) | **GET** /pulp/api/v3/content/ansible/collections/ | List
|
89
|
+
*PulpAnsibleClient::ContentCollectionsApi* | [**create**](docs/ContentCollectionsApi.md#create) | **POST** /pulp/api/v3/content/ansible/collections/ | Create a collection version
|
90
|
+
*PulpAnsibleClient::ContentCollectionsApi* | [**list**](docs/ContentCollectionsApi.md#list) | **GET** /pulp/api/v3/content/ansible/collections/ | List collection versions
|
91
91
|
*PulpAnsibleClient::ContentRolesApi* | [**create**](docs/ContentRolesApi.md#create) | **POST** /pulp/api/v3/content/ansible/roles/ | Create a role
|
92
92
|
*PulpAnsibleClient::ContentRolesApi* | [**list**](docs/ContentRolesApi.md#list) | **GET** /pulp/api/v3/content/ansible/roles/ | List roles
|
93
93
|
*PulpAnsibleClient::ContentRolesApi* | [**read**](docs/ContentRolesApi.md#read) | **GET** {role_href} | Inspect a role
|
@@ -99,10 +99,12 @@ Class | Method | HTTP request | Description
|
|
99
99
|
*PulpAnsibleClient::DistributionsAnsibleApi* | [**update**](docs/DistributionsAnsibleApi.md#update) | **PUT** {ansible_distribution_href} | Update an ansible distribution
|
100
100
|
*PulpAnsibleClient::PulpAnsibleApiApi* | [**list**](docs/PulpAnsibleApiApi.md#list) | **GET** /pulp_ansible/galaxy/{path}/api/ |
|
101
101
|
*PulpAnsibleClient::PulpAnsibleGalaxyApiCollectionsApi* | [**create**](docs/PulpAnsibleGalaxyApiCollectionsApi.md#create) | **POST** /pulp_ansible/galaxy/{path}/api/v2/collections/ |
|
102
|
-
*PulpAnsibleClient::PulpAnsibleGalaxyApiCollectionsApi* | [**
|
102
|
+
*PulpAnsibleClient::PulpAnsibleGalaxyApiCollectionsApi* | [**list**](docs/PulpAnsibleGalaxyApiCollectionsApi.md#list) | **GET** /pulp_ansible/galaxy/{path}/api/v3/collections/ |
|
103
|
+
*PulpAnsibleClient::PulpAnsibleGalaxyApiCollectionsApi* | [**read**](docs/PulpAnsibleGalaxyApiCollectionsApi.md#read) | **GET** {collection_version_href} |
|
103
104
|
*PulpAnsibleClient::PulpAnsibleGalaxyApiRolesApi* | [**list**](docs/PulpAnsibleGalaxyApiRolesApi.md#list) | **GET** /pulp_ansible/galaxy/{path}/api/v1/roles/ |
|
104
105
|
*PulpAnsibleClient::PulpAnsibleGalaxyApiV1VersionsApi* | [**list**](docs/PulpAnsibleGalaxyApiV1VersionsApi.md#list) | **GET** /pulp_ansible/galaxy/{path}/api/v1/roles/{role_pk}/versions/ |
|
105
|
-
*PulpAnsibleClient::PulpAnsibleGalaxyApiV2VersionsApi* | [**list**](docs/PulpAnsibleGalaxyApiV2VersionsApi.md#list) | **GET** {
|
106
|
+
*PulpAnsibleClient::PulpAnsibleGalaxyApiV2VersionsApi* | [**list**](docs/PulpAnsibleGalaxyApiV2VersionsApi.md#list) | **GET** {collection_version_href}versions/ |
|
107
|
+
*PulpAnsibleClient::PulpAnsibleTagsApi* | [**list**](docs/PulpAnsibleTagsApi.md#list) | **GET** /pulp/api/v3/pulp_ansible/tags/ | List tags
|
106
108
|
*PulpAnsibleClient::RemotesAnsibleApi* | [**create**](docs/RemotesAnsibleApi.md#create) | **POST** /pulp/api/v3/remotes/ansible/ansible/ | Create an ansible remote
|
107
109
|
*PulpAnsibleClient::RemotesAnsibleApi* | [**delete**](docs/RemotesAnsibleApi.md#delete) | **DELETE** {ansible_remote_href} | Delete an ansible remote
|
108
110
|
*PulpAnsibleClient::RemotesAnsibleApi* | [**list**](docs/RemotesAnsibleApi.md#list) | **GET** /pulp/api/v3/remotes/ansible/ansible/ | List ansible remotes
|
@@ -124,9 +126,9 @@ Class | Method | HTTP request | Description
|
|
124
126
|
- [PulpAnsibleClient::AnsibleDistribution](docs/AnsibleDistribution.md)
|
125
127
|
- [PulpAnsibleClient::AnsibleRemote](docs/AnsibleRemote.md)
|
126
128
|
- [PulpAnsibleClient::AsyncOperationResponse](docs/AsyncOperationResponse.md)
|
127
|
-
- [PulpAnsibleClient::Collection](docs/Collection.md)
|
128
129
|
- [PulpAnsibleClient::CollectionRemote](docs/CollectionRemote.md)
|
129
|
-
- [PulpAnsibleClient::
|
130
|
+
- [PulpAnsibleClient::CollectionVersion](docs/CollectionVersion.md)
|
131
|
+
- [PulpAnsibleClient::GalaxyCollectionVersion](docs/GalaxyCollectionVersion.md)
|
130
132
|
- [PulpAnsibleClient::GalaxyRole](docs/GalaxyRole.md)
|
131
133
|
- [PulpAnsibleClient::GalaxyRoleVersion](docs/GalaxyRoleVersion.md)
|
132
134
|
- [PulpAnsibleClient::InlineResponse200](docs/InlineResponse200.md)
|
@@ -137,8 +139,11 @@ Class | Method | HTTP request | Description
|
|
137
139
|
- [PulpAnsibleClient::InlineResponse2005](docs/InlineResponse2005.md)
|
138
140
|
- [PulpAnsibleClient::InlineResponse2006](docs/InlineResponse2006.md)
|
139
141
|
- [PulpAnsibleClient::InlineResponse2007](docs/InlineResponse2007.md)
|
142
|
+
- [PulpAnsibleClient::InlineResponse2008](docs/InlineResponse2008.md)
|
140
143
|
- [PulpAnsibleClient::RepositorySyncURL](docs/RepositorySyncURL.md)
|
141
144
|
- [PulpAnsibleClient::Role](docs/Role.md)
|
145
|
+
- [PulpAnsibleClient::Tag](docs/Tag.md)
|
146
|
+
- [PulpAnsibleClient::TagNested](docs/TagNested.md)
|
142
147
|
|
143
148
|
|
144
149
|
## Documentation for Authorization
|
data/docs/AnsibleDistribution.md
CHANGED
@@ -7,11 +7,11 @@ Name | Type | Description | Notes
|
|
7
7
|
**_href** | **String** | | [optional]
|
8
8
|
**_created** | **DateTime** | Timestamp of creation. | [optional]
|
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
|
-
**base_url** | **String** | The URL for accessing the publication as defined by this distribution. | [optional]
|
11
10
|
**content_guard** | **String** | An optional content-guard. | [optional]
|
12
11
|
**name** | **String** | A unique name. Ex, `rawhide` and `stable`. |
|
13
12
|
**repository** | **String** | The latest RepositoryVersion for this Repository will be served. | [optional]
|
14
13
|
**repository_version** | **String** | RepositoryVersion to be served | [optional]
|
14
|
+
**mazer_url** | **String** | The URL of a mazer content source. | [optional]
|
15
15
|
|
16
16
|
## Code Sample
|
17
17
|
|
@@ -21,11 +21,11 @@ require 'PulpAnsibleClient'
|
|
21
21
|
instance = PulpAnsibleClient::AnsibleDistribution.new(_href: null,
|
22
22
|
_created: null,
|
23
23
|
base_path: null,
|
24
|
-
base_url: null,
|
25
24
|
content_guard: null,
|
26
25
|
name: null,
|
27
26
|
repository: null,
|
28
|
-
repository_version: null
|
27
|
+
repository_version: null,
|
28
|
+
mazer_url: null)
|
29
29
|
```
|
30
30
|
|
31
31
|
|
data/docs/CollectionRemote.md
CHANGED
@@ -19,7 +19,6 @@ Name | Type | Description | Notes
|
|
19
19
|
**_last_updated** | **DateTime** | Timestamp of the most recent update of the remote. | [optional]
|
20
20
|
**download_concurrency** | **Integer** | Total number of simultaneous connections. | [optional]
|
21
21
|
**policy** | **String** | The policy to use when downloading content. | [optional] [default to 'immediate']
|
22
|
-
**whitelist** | **String** | |
|
23
22
|
|
24
23
|
## Code Sample
|
25
24
|
|
@@ -40,8 +39,7 @@ instance = PulpAnsibleClient::CollectionRemote.new(_href: null,
|
|
40
39
|
password: null,
|
41
40
|
_last_updated: null,
|
42
41
|
download_concurrency: null,
|
43
|
-
policy: null
|
44
|
-
whitelist: null)
|
42
|
+
policy: null)
|
45
43
|
```
|
46
44
|
|
47
45
|
|
@@ -0,0 +1,63 @@
|
|
1
|
+
# PulpAnsibleClient::CollectionVersion
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
Name | Type | Description | Notes
|
6
|
+
------------ | ------------- | ------------- | -------------
|
7
|
+
**_href** | **String** | | [optional]
|
8
|
+
**_artifact** | **String** | Artifact file representing the physical content |
|
9
|
+
**_type** | **String** | | [optional]
|
10
|
+
**_created** | **DateTime** | Timestamp of creation. | [optional]
|
11
|
+
**md5** | **String** | The MD5 checksum if available. | [optional]
|
12
|
+
**sha1** | **String** | The SHA-1 checksum if available. | [optional]
|
13
|
+
**sha224** | **String** | The SHA-224 checksum if available. | [optional]
|
14
|
+
**sha256** | **String** | The SHA-256 checksum if available. | [optional]
|
15
|
+
**sha384** | **String** | The SHA-384 checksum if available. | [optional]
|
16
|
+
**sha512** | **String** | The SHA-512 checksum if available. | [optional]
|
17
|
+
**authors** | **Array<String>** | A list of the CollectionVersion content's authors. |
|
18
|
+
**contents** | **String** | A JSON field with data about the contents. |
|
19
|
+
**dependencies** | **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** | **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
|
+
**license** | **Array<String>** | A list of licenses for content inside of a collection. |
|
26
|
+
**name** | **String** | The name of the collection. |
|
27
|
+
**namespace** | **String** | The namespace of the collection. |
|
28
|
+
**repository** | **String** | The URL of the originating SCM repository. |
|
29
|
+
**tags** | [**Array<TagNested>**](TagNested.md) | | [optional]
|
30
|
+
**version** | **String** | The version of the collection. |
|
31
|
+
|
32
|
+
## Code Sample
|
33
|
+
|
34
|
+
```ruby
|
35
|
+
require 'PulpAnsibleClient'
|
36
|
+
|
37
|
+
instance = PulpAnsibleClient::CollectionVersion.new(_href: null,
|
38
|
+
_artifact: null,
|
39
|
+
_type: null,
|
40
|
+
_created: null,
|
41
|
+
md5: null,
|
42
|
+
sha1: null,
|
43
|
+
sha224: null,
|
44
|
+
sha256: null,
|
45
|
+
sha384: null,
|
46
|
+
sha512: null,
|
47
|
+
authors: null,
|
48
|
+
contents: null,
|
49
|
+
dependencies: null,
|
50
|
+
description: null,
|
51
|
+
docs_blob: null,
|
52
|
+
documentation: null,
|
53
|
+
homepage: null,
|
54
|
+
issues: null,
|
55
|
+
license: null,
|
56
|
+
name: null,
|
57
|
+
namespace: null,
|
58
|
+
repository: null,
|
59
|
+
tags: null,
|
60
|
+
version: null)
|
61
|
+
```
|
62
|
+
|
63
|
+
|
@@ -4,16 +4,16 @@ All URIs are relative to *http://localhost:24817*
|
|
4
4
|
|
5
5
|
Method | HTTP request | Description
|
6
6
|
------------- | ------------- | -------------
|
7
|
-
[**create**](ContentCollectionsApi.md#create) | **POST** /pulp/api/v3/content/ansible/collections/ | Create a collection
|
8
|
-
[**list**](ContentCollectionsApi.md#list) | **GET** /pulp/api/v3/content/ansible/collections/ | List
|
7
|
+
[**create**](ContentCollectionsApi.md#create) | **POST** /pulp/api/v3/content/ansible/collections/ | Create a collection version
|
8
|
+
[**list**](ContentCollectionsApi.md#list) | **GET** /pulp/api/v3/content/ansible/collections/ | List collection versions
|
9
9
|
|
10
10
|
|
11
11
|
|
12
12
|
## create
|
13
13
|
|
14
|
-
>
|
14
|
+
> CollectionVersion create(data)
|
15
15
|
|
16
|
-
Create a collection
|
16
|
+
Create a collection version
|
17
17
|
|
18
18
|
ViewSet for Ansible Collection.
|
19
19
|
|
@@ -30,10 +30,10 @@ PulpAnsibleClient.configure do |config|
|
|
30
30
|
end
|
31
31
|
|
32
32
|
api_instance = PulpAnsibleClient::ContentCollectionsApi.new
|
33
|
-
data = PulpAnsibleClient::
|
33
|
+
data = PulpAnsibleClient::CollectionVersion.new # CollectionVersion |
|
34
34
|
|
35
35
|
begin
|
36
|
-
#Create a collection
|
36
|
+
#Create a collection version
|
37
37
|
result = api_instance.create(data)
|
38
38
|
p result
|
39
39
|
rescue PulpAnsibleClient::ApiError => e
|
@@ -46,11 +46,11 @@ end
|
|
46
46
|
|
47
47
|
Name | Type | Description | Notes
|
48
48
|
------------- | ------------- | ------------- | -------------
|
49
|
-
**data** | [**
|
49
|
+
**data** | [**CollectionVersion**](CollectionVersion.md)| |
|
50
50
|
|
51
51
|
### Return type
|
52
52
|
|
53
|
-
[**
|
53
|
+
[**CollectionVersion**](CollectionVersion.md)
|
54
54
|
|
55
55
|
### Authorization
|
56
56
|
|
@@ -66,7 +66,7 @@ Name | Type | Description | Notes
|
|
66
66
|
|
67
67
|
> InlineResponse200 list(opts)
|
68
68
|
|
69
|
-
List
|
69
|
+
List collection versions
|
70
70
|
|
71
71
|
ViewSet for Ansible Collection.
|
72
72
|
|
@@ -84,19 +84,20 @@ end
|
|
84
84
|
|
85
85
|
api_instance = PulpAnsibleClient::ContentCollectionsApi.new
|
86
86
|
opts = {
|
87
|
-
|
88
|
-
|
87
|
+
namespace: 'namespace_example', # String |
|
88
|
+
name: 'name_example', # String |
|
89
89
|
version: 'version_example', # String | Filter results where version matches value
|
90
90
|
repository_version: 'repository_version_example', # String | Repository Version referenced by HREF
|
91
91
|
repository_version_added: 'repository_version_added_example', # String | Repository Version referenced by HREF
|
92
92
|
repository_version_removed: 'repository_version_removed_example', # String | Repository Version referenced by HREF
|
93
93
|
latest: 'latest_example', # String |
|
94
|
+
q: 'q_example', # String |
|
94
95
|
page: 56, # Integer | A page number within the paginated result set.
|
95
96
|
page_size: 56 # Integer | Number of results to return per page.
|
96
97
|
}
|
97
98
|
|
98
99
|
begin
|
99
|
-
#List
|
100
|
+
#List collection versions
|
100
101
|
result = api_instance.list(opts)
|
101
102
|
p result
|
102
103
|
rescue PulpAnsibleClient::ApiError => e
|
@@ -109,13 +110,14 @@ end
|
|
109
110
|
|
110
111
|
Name | Type | Description | Notes
|
111
112
|
------------- | ------------- | ------------- | -------------
|
112
|
-
**
|
113
|
-
**
|
113
|
+
**namespace** | **String**| | [optional]
|
114
|
+
**name** | **String**| | [optional]
|
114
115
|
**version** | **String**| Filter results where version matches value | [optional]
|
115
116
|
**repository_version** | **String**| Repository Version referenced by HREF | [optional]
|
116
117
|
**repository_version_added** | **String**| Repository Version referenced by HREF | [optional]
|
117
118
|
**repository_version_removed** | **String**| Repository Version referenced by HREF | [optional]
|
118
119
|
**latest** | **String**| | [optional]
|
120
|
+
**q** | **String**| | [optional]
|
119
121
|
**page** | **Integer**| A page number within the paginated result set. | [optional]
|
120
122
|
**page_size** | **Integer**| Number of results to return per page. | [optional]
|
121
123
|
|
@@ -1,4 +1,4 @@
|
|
1
|
-
# PulpAnsibleClient::
|
1
|
+
# PulpAnsibleClient::GalaxyCollectionVersion
|
2
2
|
|
3
3
|
## Properties
|
4
4
|
|
@@ -15,7 +15,7 @@ Name | Type | Description | Notes
|
|
15
15
|
```ruby
|
16
16
|
require 'PulpAnsibleClient'
|
17
17
|
|
18
|
-
instance = PulpAnsibleClient::
|
18
|
+
instance = PulpAnsibleClient::GalaxyCollectionVersion.new(name: null,
|
19
19
|
namespace: null,
|
20
20
|
version: null,
|
21
21
|
href: null,
|
data/docs/InlineResponse200.md
CHANGED
@@ -4,19 +4,19 @@
|
|
4
4
|
|
5
5
|
Name | Type | Description | Notes
|
6
6
|
------------ | ------------- | ------------- | -------------
|
7
|
+
**count** | **Integer** | |
|
7
8
|
**_next** | **String** | | [optional]
|
8
9
|
**previous** | **String** | | [optional]
|
9
|
-
**
|
10
|
-
**results** | [**Array<Collection>**](Collection.md) | |
|
10
|
+
**results** | [**Array<CollectionVersion>**](CollectionVersion.md) | |
|
11
11
|
|
12
12
|
## Code Sample
|
13
13
|
|
14
14
|
```ruby
|
15
15
|
require 'PulpAnsibleClient'
|
16
16
|
|
17
|
-
instance = PulpAnsibleClient::InlineResponse200.new(
|
17
|
+
instance = PulpAnsibleClient::InlineResponse200.new(count: null,
|
18
|
+
_next: null,
|
18
19
|
previous: null,
|
19
|
-
count: null,
|
20
20
|
results: null)
|
21
21
|
```
|
22
22
|
|
data/docs/InlineResponse2001.md
CHANGED
@@ -4,9 +4,9 @@
|
|
4
4
|
|
5
5
|
Name | Type | Description | Notes
|
6
6
|
------------ | ------------- | ------------- | -------------
|
7
|
+
**count** | **Integer** | |
|
7
8
|
**_next** | **String** | | [optional]
|
8
9
|
**previous** | **String** | | [optional]
|
9
|
-
**count** | **Integer** | |
|
10
10
|
**results** | [**Array<Role>**](Role.md) | |
|
11
11
|
|
12
12
|
## Code Sample
|
@@ -14,9 +14,9 @@ Name | Type | Description | Notes
|
|
14
14
|
```ruby
|
15
15
|
require 'PulpAnsibleClient'
|
16
16
|
|
17
|
-
instance = PulpAnsibleClient::InlineResponse2001.new(
|
17
|
+
instance = PulpAnsibleClient::InlineResponse2001.new(count: null,
|
18
|
+
_next: null,
|
18
19
|
previous: null,
|
19
|
-
count: null,
|
20
20
|
results: null)
|
21
21
|
```
|
22
22
|
|
data/docs/InlineResponse2002.md
CHANGED
@@ -4,9 +4,9 @@
|
|
4
4
|
|
5
5
|
Name | Type | Description | Notes
|
6
6
|
------------ | ------------- | ------------- | -------------
|
7
|
+
**count** | **Integer** | |
|
7
8
|
**_next** | **String** | | [optional]
|
8
9
|
**previous** | **String** | | [optional]
|
9
|
-
**count** | **Integer** | |
|
10
10
|
**results** | [**Array<AnsibleDistribution>**](AnsibleDistribution.md) | |
|
11
11
|
|
12
12
|
## Code Sample
|
@@ -14,9 +14,9 @@ Name | Type | Description | Notes
|
|
14
14
|
```ruby
|
15
15
|
require 'PulpAnsibleClient'
|
16
16
|
|
17
|
-
instance = PulpAnsibleClient::InlineResponse2002.new(
|
17
|
+
instance = PulpAnsibleClient::InlineResponse2002.new(count: null,
|
18
|
+
_next: null,
|
18
19
|
previous: null,
|
19
|
-
count: null,
|
20
20
|
results: null)
|
21
21
|
```
|
22
22
|
|
data/docs/InlineResponse2003.md
CHANGED
@@ -4,19 +4,19 @@
|
|
4
4
|
|
5
5
|
Name | Type | Description | Notes
|
6
6
|
------------ | ------------- | ------------- | -------------
|
7
|
+
**count** | **Integer** | |
|
7
8
|
**_next** | **String** | | [optional]
|
8
9
|
**previous** | **String** | | [optional]
|
9
|
-
**
|
10
|
-
**results** | [**Array<AnsibleRemote>**](AnsibleRemote.md) | |
|
10
|
+
**results** | [**Array<Tag>**](Tag.md) | |
|
11
11
|
|
12
12
|
## Code Sample
|
13
13
|
|
14
14
|
```ruby
|
15
15
|
require 'PulpAnsibleClient'
|
16
16
|
|
17
|
-
instance = PulpAnsibleClient::InlineResponse2003.new(
|
17
|
+
instance = PulpAnsibleClient::InlineResponse2003.new(count: null,
|
18
|
+
_next: null,
|
18
19
|
previous: null,
|
19
|
-
count: null,
|
20
20
|
results: null)
|
21
21
|
```
|
22
22
|
|
data/docs/InlineResponse2004.md
CHANGED
@@ -4,19 +4,19 @@
|
|
4
4
|
|
5
5
|
Name | Type | Description | Notes
|
6
6
|
------------ | ------------- | ------------- | -------------
|
7
|
+
**count** | **Integer** | |
|
7
8
|
**_next** | **String** | | [optional]
|
8
9
|
**previous** | **String** | | [optional]
|
9
|
-
**
|
10
|
-
**results** | [**Array<CollectionRemote>**](CollectionRemote.md) | |
|
10
|
+
**results** | [**Array<AnsibleRemote>**](AnsibleRemote.md) | |
|
11
11
|
|
12
12
|
## Code Sample
|
13
13
|
|
14
14
|
```ruby
|
15
15
|
require 'PulpAnsibleClient'
|
16
16
|
|
17
|
-
instance = PulpAnsibleClient::InlineResponse2004.new(
|
17
|
+
instance = PulpAnsibleClient::InlineResponse2004.new(count: null,
|
18
|
+
_next: null,
|
18
19
|
previous: null,
|
19
|
-
count: null,
|
20
20
|
results: null)
|
21
21
|
```
|
22
22
|
|
data/docs/InlineResponse2005.md
CHANGED
@@ -4,19 +4,19 @@
|
|
4
4
|
|
5
5
|
Name | Type | Description | Notes
|
6
6
|
------------ | ------------- | ------------- | -------------
|
7
|
+
**count** | **Integer** | |
|
7
8
|
**_next** | **String** | | [optional]
|
8
9
|
**previous** | **String** | | [optional]
|
9
|
-
**
|
10
|
-
**results** | [**Array<GalaxyRole>**](GalaxyRole.md) | |
|
10
|
+
**results** | [**Array<CollectionRemote>**](CollectionRemote.md) | |
|
11
11
|
|
12
12
|
## Code Sample
|
13
13
|
|
14
14
|
```ruby
|
15
15
|
require 'PulpAnsibleClient'
|
16
16
|
|
17
|
-
instance = PulpAnsibleClient::InlineResponse2005.new(
|
17
|
+
instance = PulpAnsibleClient::InlineResponse2005.new(count: null,
|
18
|
+
_next: null,
|
18
19
|
previous: null,
|
19
|
-
count: null,
|
20
20
|
results: null)
|
21
21
|
```
|
22
22
|
|
data/docs/InlineResponse2006.md
CHANGED
@@ -4,19 +4,19 @@
|
|
4
4
|
|
5
5
|
Name | Type | Description | Notes
|
6
6
|
------------ | ------------- | ------------- | -------------
|
7
|
+
**count** | **Integer** | |
|
7
8
|
**_next** | **String** | | [optional]
|
8
9
|
**previous** | **String** | | [optional]
|
9
|
-
**
|
10
|
-
**results** | [**Array<GalaxyRoleVersion>**](GalaxyRoleVersion.md) | |
|
10
|
+
**results** | [**Array<GalaxyRole>**](GalaxyRole.md) | |
|
11
11
|
|
12
12
|
## Code Sample
|
13
13
|
|
14
14
|
```ruby
|
15
15
|
require 'PulpAnsibleClient'
|
16
16
|
|
17
|
-
instance = PulpAnsibleClient::InlineResponse2006.new(
|
17
|
+
instance = PulpAnsibleClient::InlineResponse2006.new(count: null,
|
18
|
+
_next: null,
|
18
19
|
previous: null,
|
19
|
-
count: null,
|
20
20
|
results: null)
|
21
21
|
```
|
22
22
|
|
data/docs/InlineResponse2007.md
CHANGED
@@ -4,19 +4,19 @@
|
|
4
4
|
|
5
5
|
Name | Type | Description | Notes
|
6
6
|
------------ | ------------- | ------------- | -------------
|
7
|
+
**count** | **Integer** | |
|
7
8
|
**_next** | **String** | | [optional]
|
8
9
|
**previous** | **String** | | [optional]
|
9
|
-
**
|
10
|
-
**results** | [**Array<GalaxyCollection>**](GalaxyCollection.md) | |
|
10
|
+
**results** | [**Array<GalaxyRoleVersion>**](GalaxyRoleVersion.md) | |
|
11
11
|
|
12
12
|
## Code Sample
|
13
13
|
|
14
14
|
```ruby
|
15
15
|
require 'PulpAnsibleClient'
|
16
16
|
|
17
|
-
instance = PulpAnsibleClient::InlineResponse2007.new(
|
17
|
+
instance = PulpAnsibleClient::InlineResponse2007.new(count: null,
|
18
|
+
_next: null,
|
18
19
|
previous: null,
|
19
|
-
count: null,
|
20
20
|
results: null)
|
21
21
|
```
|
22
22
|
|
@@ -0,0 +1,23 @@
|
|
1
|
+
# PulpAnsibleClient::InlineResponse2008
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
Name | Type | Description | Notes
|
6
|
+
------------ | ------------- | ------------- | -------------
|
7
|
+
**count** | **Integer** | |
|
8
|
+
**_next** | **String** | | [optional]
|
9
|
+
**previous** | **String** | | [optional]
|
10
|
+
**results** | [**Array<GalaxyCollectionVersion>**](GalaxyCollectionVersion.md) | |
|
11
|
+
|
12
|
+
## Code Sample
|
13
|
+
|
14
|
+
```ruby
|
15
|
+
require 'PulpAnsibleClient'
|
16
|
+
|
17
|
+
instance = PulpAnsibleClient::InlineResponse2008.new(count: null,
|
18
|
+
_next: null,
|
19
|
+
previous: null,
|
20
|
+
results: null)
|
21
|
+
```
|
22
|
+
|
23
|
+
|
@@ -5,7 +5,8 @@ All URIs are relative to *http://localhost:24817*
|
|
5
5
|
Method | HTTP request | Description
|
6
6
|
------------- | ------------- | -------------
|
7
7
|
[**create**](PulpAnsibleGalaxyApiCollectionsApi.md#create) | **POST** /pulp_ansible/galaxy/{path}/api/v2/collections/ |
|
8
|
-
[**
|
8
|
+
[**list**](PulpAnsibleGalaxyApiCollectionsApi.md#list) | **GET** /pulp_ansible/galaxy/{path}/api/v3/collections/ |
|
9
|
+
[**read**](PulpAnsibleGalaxyApiCollectionsApi.md#read) | **GET** {collection_version_href} |
|
9
10
|
|
10
11
|
|
11
12
|
|
@@ -60,9 +61,66 @@ nil (empty response body)
|
|
60
61
|
- **Accept**: Not defined
|
61
62
|
|
62
63
|
|
64
|
+
## list
|
65
|
+
|
66
|
+
> list(path, opts)
|
67
|
+
|
68
|
+
|
69
|
+
|
70
|
+
ViewSet for Collections.
|
71
|
+
|
72
|
+
### Example
|
73
|
+
|
74
|
+
```ruby
|
75
|
+
# load the gem
|
76
|
+
require 'pulp_ansible_client'
|
77
|
+
# setup authorization
|
78
|
+
PulpAnsibleClient.configure do |config|
|
79
|
+
# Configure HTTP basic authorization: Basic
|
80
|
+
config.username = 'YOUR USERNAME'
|
81
|
+
config.password = 'YOUR PASSWORD'
|
82
|
+
end
|
83
|
+
|
84
|
+
api_instance = PulpAnsibleClient::PulpAnsibleGalaxyApiCollectionsApi.new
|
85
|
+
path = 'path_example' # String |
|
86
|
+
opts = {
|
87
|
+
limit: 56, # Integer | Number of results to return per page.
|
88
|
+
offset: 56 # Integer | The initial index from which to return the results.
|
89
|
+
}
|
90
|
+
|
91
|
+
begin
|
92
|
+
api_instance.list(path, opts)
|
93
|
+
rescue PulpAnsibleClient::ApiError => e
|
94
|
+
puts "Exception when calling PulpAnsibleGalaxyApiCollectionsApi->list: #{e}"
|
95
|
+
end
|
96
|
+
```
|
97
|
+
|
98
|
+
### Parameters
|
99
|
+
|
100
|
+
|
101
|
+
Name | Type | Description | Notes
|
102
|
+
------------- | ------------- | ------------- | -------------
|
103
|
+
**path** | **String**| |
|
104
|
+
**limit** | **Integer**| Number of results to return per page. | [optional]
|
105
|
+
**offset** | **Integer**| The initial index from which to return the results. | [optional]
|
106
|
+
|
107
|
+
### Return type
|
108
|
+
|
109
|
+
nil (empty response body)
|
110
|
+
|
111
|
+
### Authorization
|
112
|
+
|
113
|
+
[Basic](../README.md#Basic)
|
114
|
+
|
115
|
+
### HTTP request headers
|
116
|
+
|
117
|
+
- **Content-Type**: Not defined
|
118
|
+
- **Accept**: Not defined
|
119
|
+
|
120
|
+
|
63
121
|
## read
|
64
122
|
|
65
|
-
>
|
123
|
+
> GalaxyCollectionVersion read(collection_version_href)
|
66
124
|
|
67
125
|
|
68
126
|
|
@@ -81,10 +139,10 @@ PulpAnsibleClient.configure do |config|
|
|
81
139
|
end
|
82
140
|
|
83
141
|
api_instance = PulpAnsibleClient::PulpAnsibleGalaxyApiCollectionsApi.new
|
84
|
-
|
142
|
+
collection_version_href = 'collection_version_href_example' # String | URI of Collection Version. e.g.: /pulp_ansible/galaxy/1/api/v2/collections/1/1/
|
85
143
|
|
86
144
|
begin
|
87
|
-
result = api_instance.read(
|
145
|
+
result = api_instance.read(collection_version_href)
|
88
146
|
p result
|
89
147
|
rescue PulpAnsibleClient::ApiError => e
|
90
148
|
puts "Exception when calling PulpAnsibleGalaxyApiCollectionsApi->read: #{e}"
|
@@ -96,11 +154,11 @@ end
|
|
96
154
|
|
97
155
|
Name | Type | Description | Notes
|
98
156
|
------------- | ------------- | ------------- | -------------
|
99
|
-
**
|
157
|
+
**collection_version_href** | **String**| URI of Collection Version. e.g.: /pulp_ansible/galaxy/1/api/v2/collections/1/1/ |
|
100
158
|
|
101
159
|
### Return type
|
102
160
|
|
103
|
-
[**
|
161
|
+
[**GalaxyCollectionVersion**](GalaxyCollectionVersion.md)
|
104
162
|
|
105
163
|
### Authorization
|
106
164
|
|