pulp_ansible_client 0.4.3 → 0.5.0
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 +8 -12
- data/docs/AnsibleCollectionVersion.md +0 -2
- data/docs/AnsibleCollectionVersionResponse.md +5 -9
- data/docs/AnsibleCopyApi.md +62 -0
- data/docs/AnsibleRoleResponse.md +4 -4
- data/docs/CollectionResponse.md +5 -5
- data/docs/CollectionVersionResponse.md +0 -2
- data/docs/ContentCollectionVersionsApi.md +0 -4
- data/docs/Copy.md +17 -0
- data/docs/{CertificationEnum.md → PatchedCollection.md} +3 -2
- data/docs/PulpAnsibleGalaxyApiCollectionsApi.md +5 -5
- data/docs/PulpAnsibleGalaxyApiV3VersionsApi.md +0 -4
- data/lib/pulp_ansible_client/api/ansible_copy_api.rb +86 -0
- data/lib/pulp_ansible_client/api/content_collection_versions_api.rb +0 -10
- data/lib/pulp_ansible_client/api/pulp_ansible_galaxy_api_collections_api.rb +10 -10
- data/lib/pulp_ansible_client/api/pulp_ansible_galaxy_api_v3_versions_api.rb +0 -10
- data/lib/pulp_ansible_client/models/ansible_collection_version.rb +1 -16
- data/lib/pulp_ansible_client/models/ansible_collection_version_response.rb +17 -42
- data/lib/pulp_ansible_client/models/ansible_role_response.rb +14 -14
- data/lib/pulp_ansible_client/models/collection_response.rb +22 -32
- data/lib/pulp_ansible_client/models/collection_version_response.rb +1 -10
- data/lib/pulp_ansible_client/models/{collection_metadata.rb → copy.rb} +15 -16
- data/lib/pulp_ansible_client/models/{collection_namespace.rb → patched_collection.rb} +11 -16
- data/lib/pulp_ansible_client/version.rb +1 -1
- data/lib/pulp_ansible_client.rb +3 -7
- data/spec/api/{pulp_ansible_galaxy_api_v3_collections_certified_api_spec.rb → ansible_copy_api_spec.rb} +12 -15
- data/spec/api/content_collection_versions_api_spec.rb +0 -2
- data/spec/api/pulp_ansible_galaxy_api_collections_api_spec.rb +1 -1
- data/spec/api/pulp_ansible_galaxy_api_v3_versions_api_spec.rb +0 -2
- data/spec/models/ansible_collection_version_response_spec.rb +2 -14
- data/spec/models/ansible_collection_version_spec.rb +0 -6
- data/spec/models/ansible_role_response_spec.rb +2 -2
- data/spec/models/collection_response_spec.rb +7 -7
- data/spec/models/collection_version_response_spec.rb +0 -6
- data/spec/models/{collection_metadata_spec.rb → copy_spec.rb} +7 -7
- data/spec/models/{collection_namespace_spec.rb → patched_collection_spec.rb} +7 -7
- metadata +14 -30
- data/docs/Collection.md +0 -21
- data/docs/CollectionMetadata.md +0 -17
- data/docs/CollectionNamespace.md +0 -17
- data/docs/CollectionRef.md +0 -19
- data/docs/CollectionVersion.md +0 -21
- data/docs/PulpAnsibleGalaxyApiV3CollectionsCertifiedApi.md +0 -63
- data/lib/pulp_ansible_client/api/pulp_ansible_galaxy_api_v3_collections_certified_api.rb +0 -108
- data/lib/pulp_ansible_client/models/certification_enum.rb +0 -37
- data/lib/pulp_ansible_client/models/collection.rb +0 -240
- data/lib/pulp_ansible_client/models/collection_ref.rb +0 -226
- data/lib/pulp_ansible_client/models/collection_version.rb +0 -235
- data/spec/models/certification_enum_spec.rb +0 -35
- data/spec/models/collection_ref_spec.rb +0 -47
- data/spec/models/collection_spec.rb +0 -53
- data/spec/models/collection_version_spec.rb +0 -53
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 06d49068f4042f95e0a63ef10e4ec541df2c066550753568d01b6b0e539aff28
|
4
|
+
data.tar.gz: 7a221568c195e5ce3441ab85afc253d01ec7c1f46e23f499cd9c19b619d7d624
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f394d3d5f5fa05ed2d8e1696915cc67c7409a302cf523ac7cddbc442d80795c6e9c96bf9955f5b23ee4027e6ad7077e8be5e35738cecce486b0e7f416175557d
|
7
|
+
data.tar.gz: 7f2650d0ee08a3beed65b912bdc536db449193d4f942232bf205c527f69827c35a153a56822d804b3d280a0b33cec28c74b15471199bdb8b7b1276815a6904c0
|
data/README.md
CHANGED
@@ -7,7 +7,7 @@ Fetch, Upload, Organize, and Distribute Software Packages
|
|
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.
|
10
|
+
- Package version: 0.5.0
|
11
11
|
- Build package: org.openapitools.codegen.languages.RubyClientCodegen
|
12
12
|
For more information, please visit [https://pulpproject.org](https://pulpproject.org)
|
13
13
|
|
@@ -24,16 +24,16 @@ gem build pulp_ansible_client.gemspec
|
|
24
24
|
Then either install the gem locally:
|
25
25
|
|
26
26
|
```shell
|
27
|
-
gem install ./pulp_ansible_client-0.
|
27
|
+
gem install ./pulp_ansible_client-0.5.0.gem
|
28
28
|
```
|
29
29
|
|
30
|
-
(for development, run `gem install --dev ./pulp_ansible_client-0.
|
30
|
+
(for development, run `gem install --dev ./pulp_ansible_client-0.5.0.gem` to install the development dependencies)
|
31
31
|
|
32
32
|
or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
|
33
33
|
|
34
34
|
Finally add this to the Gemfile:
|
35
35
|
|
36
|
-
gem 'pulp_ansible_client', '~> 0.
|
36
|
+
gem 'pulp_ansible_client', '~> 0.5.0'
|
37
37
|
|
38
38
|
### Install from Git
|
39
39
|
|
@@ -93,6 +93,7 @@ Class | Method | HTTP request | Description
|
|
93
93
|
------------ | ------------- | ------------- | -------------
|
94
94
|
*PulpAnsibleClient::AnsibleCollectionsApi* | [**list**](docs/AnsibleCollectionsApi.md#list) | **GET** /pulp/api/v3/ansible/collections/ | List collections
|
95
95
|
*PulpAnsibleClient::AnsibleCollectionsApi* | [**upload_collection**](docs/AnsibleCollectionsApi.md#upload_collection) | **POST** /ansible/collections/ | Upload a collection
|
96
|
+
*PulpAnsibleClient::AnsibleCopyApi* | [**copy_content**](docs/AnsibleCopyApi.md#copy_content) | **POST** /pulp/api/v3/ansible/copy/ | Copy content
|
96
97
|
*PulpAnsibleClient::ApiCollectionsApi* | [**get**](docs/ApiCollectionsApi.md#get) | **GET** {ansible_collection_href}api/v2/collections/ |
|
97
98
|
*PulpAnsibleClient::ApiCollectionsApi* | [**post**](docs/ApiCollectionsApi.md#post) | **POST** {ansible_collection_href}api/v2/collections/ |
|
98
99
|
*PulpAnsibleClient::ApiRolesApi* | [**get**](docs/ApiRolesApi.md#get) | **GET** {ansible_role_href}api/v1/roles/ |
|
@@ -113,10 +114,9 @@ Class | Method | HTTP request | Description
|
|
113
114
|
*PulpAnsibleClient::PulpAnsibleApiApi* | [**get**](docs/PulpAnsibleApiApi.md#get) | **GET** /pulp_ansible/galaxy/{path}/api/ |
|
114
115
|
*PulpAnsibleClient::PulpAnsibleGalaxyApiCollectionsApi* | [**list**](docs/PulpAnsibleGalaxyApiCollectionsApi.md#list) | **GET** /pulp_ansible/galaxy/{path}/api/v3/collections/ |
|
115
116
|
*PulpAnsibleClient::PulpAnsibleGalaxyApiCollectionsApi* | [**read**](docs/PulpAnsibleGalaxyApiCollectionsApi.md#read) | **GET** /pulp_ansible/galaxy/{path}/api/v3/collections/{namespace}/{name}/ |
|
116
|
-
*PulpAnsibleClient::PulpAnsibleGalaxyApiCollectionsApi* | [**update**](docs/PulpAnsibleGalaxyApiCollectionsApi.md#update) | **
|
117
|
+
*PulpAnsibleClient::PulpAnsibleGalaxyApiCollectionsApi* | [**update**](docs/PulpAnsibleGalaxyApiCollectionsApi.md#update) | **PATCH** /pulp_ansible/galaxy/{path}/api/v3/collections/{namespace}/{name}/ |
|
117
118
|
*PulpAnsibleClient::PulpAnsibleGalaxyApiV2VersionsApi* | [**get**](docs/PulpAnsibleGalaxyApiV2VersionsApi.md#get) | **GET** /pulp_ansible/galaxy/{path}/api/v2/collections/{namespace}/{name}/versions/{version}/ |
|
118
119
|
*PulpAnsibleClient::PulpAnsibleGalaxyApiV3CollectionsApi* | [**create**](docs/PulpAnsibleGalaxyApiV3CollectionsApi.md#create) | **POST** /pulp_ansible/galaxy/{path}/api/v3/artifacts/collections/ | Upload a collection
|
119
|
-
*PulpAnsibleClient::PulpAnsibleGalaxyApiV3CollectionsCertifiedApi* | [**set_certified**](docs/PulpAnsibleGalaxyApiV3CollectionsCertifiedApi.md#set_certified) | **PUT** /pulp_ansible/galaxy/{path}/api/v3/collections/{namespace}/{name}/versions/{version}/certified/ |
|
120
120
|
*PulpAnsibleClient::PulpAnsibleGalaxyApiV3CollectionsDocsBlobApi* | [**read**](docs/PulpAnsibleGalaxyApiV3CollectionsDocsBlobApi.md#read) | **GET** /pulp_ansible/galaxy/{path}/api/v3/collections/{namespace}/{name}/versions/{version}/docs-blob/ |
|
121
121
|
*PulpAnsibleClient::PulpAnsibleGalaxyApiV3VersionsApi* | [**list**](docs/PulpAnsibleGalaxyApiV3VersionsApi.md#list) | **GET** /pulp_ansible/galaxy/{path}/api/v3/collections/{namespace}/{name}/versions/ |
|
122
122
|
*PulpAnsibleClient::PulpAnsibleGalaxyApiV3VersionsApi* | [**read**](docs/PulpAnsibleGalaxyApiV3VersionsApi.md#read) | **GET** /pulp_ansible/galaxy/{path}/api/v3/collections/{namespace}/{name}/versions/{version}/ |
|
@@ -166,22 +166,17 @@ Class | Method | HTTP request | Description
|
|
166
166
|
- [PulpAnsibleClient::AnsibleRoleResponse](docs/AnsibleRoleResponse.md)
|
167
167
|
- [PulpAnsibleClient::AnsibleTagResponse](docs/AnsibleTagResponse.md)
|
168
168
|
- [PulpAnsibleClient::AsyncOperationResponse](docs/AsyncOperationResponse.md)
|
169
|
-
- [PulpAnsibleClient::CertificationEnum](docs/CertificationEnum.md)
|
170
|
-
- [PulpAnsibleClient::Collection](docs/Collection.md)
|
171
169
|
- [PulpAnsibleClient::CollectionImportDetailResponse](docs/CollectionImportDetailResponse.md)
|
172
|
-
- [PulpAnsibleClient::CollectionMetadata](docs/CollectionMetadata.md)
|
173
170
|
- [PulpAnsibleClient::CollectionMetadataResponse](docs/CollectionMetadataResponse.md)
|
174
|
-
- [PulpAnsibleClient::CollectionNamespace](docs/CollectionNamespace.md)
|
175
171
|
- [PulpAnsibleClient::CollectionNamespaceResponse](docs/CollectionNamespaceResponse.md)
|
176
172
|
- [PulpAnsibleClient::CollectionOneShot](docs/CollectionOneShot.md)
|
177
|
-
- [PulpAnsibleClient::CollectionRef](docs/CollectionRef.md)
|
178
173
|
- [PulpAnsibleClient::CollectionRefResponse](docs/CollectionRefResponse.md)
|
179
174
|
- [PulpAnsibleClient::CollectionResponse](docs/CollectionResponse.md)
|
180
|
-
- [PulpAnsibleClient::CollectionVersion](docs/CollectionVersion.md)
|
181
175
|
- [PulpAnsibleClient::CollectionVersionDocsResponse](docs/CollectionVersionDocsResponse.md)
|
182
176
|
- [PulpAnsibleClient::CollectionVersionResponse](docs/CollectionVersionResponse.md)
|
183
177
|
- [PulpAnsibleClient::ContentSummary](docs/ContentSummary.md)
|
184
178
|
- [PulpAnsibleClient::ContentSummaryResponse](docs/ContentSummaryResponse.md)
|
179
|
+
- [PulpAnsibleClient::Copy](docs/Copy.md)
|
185
180
|
- [PulpAnsibleClient::GalaxyCollection](docs/GalaxyCollection.md)
|
186
181
|
- [PulpAnsibleClient::GalaxyCollectionResponse](docs/GalaxyCollectionResponse.md)
|
187
182
|
- [PulpAnsibleClient::GalaxyCollectionVersionResponse](docs/GalaxyCollectionVersionResponse.md)
|
@@ -202,6 +197,7 @@ Class | Method | HTTP request | Description
|
|
202
197
|
- [PulpAnsibleClient::PaginatedansibleCollectionVersionResponseList](docs/PaginatedansibleCollectionVersionResponseList.md)
|
203
198
|
- [PulpAnsibleClient::PaginatedansibleRoleRemoteResponseList](docs/PaginatedansibleRoleRemoteResponseList.md)
|
204
199
|
- [PulpAnsibleClient::PaginatedansibleRoleResponseList](docs/PaginatedansibleRoleResponseList.md)
|
200
|
+
- [PulpAnsibleClient::PatchedCollection](docs/PatchedCollection.md)
|
205
201
|
- [PulpAnsibleClient::PatchedansibleAnsibleDistribution](docs/PatchedansibleAnsibleDistribution.md)
|
206
202
|
- [PulpAnsibleClient::PatchedansibleAnsibleRepository](docs/PatchedansibleAnsibleRepository.md)
|
207
203
|
- [PulpAnsibleClient::PatchedansibleCollectionRemote](docs/PatchedansibleCollectionRemote.md)
|
@@ -14,7 +14,6 @@ Name | Type | Description | Notes
|
|
14
14
|
**documentation** | **String** | The URL to any online docs. |
|
15
15
|
**homepage** | **String** | The URL to the homepage of the collection/project. |
|
16
16
|
**issues** | **String** | The URL to the collection issue tracker. |
|
17
|
-
**certification** | **String** | Indicates that the version is certified |
|
18
17
|
**license** | **Array<String>** | A list of licenses for content inside of a collection. |
|
19
18
|
**name** | **String** | The name of the collection. |
|
20
19
|
**namespace** | **String** | The namespace of the collection. |
|
@@ -36,7 +35,6 @@ instance = PulpAnsibleClient::AnsibleCollectionVersion.new(artifact: null,
|
|
36
35
|
documentation: null,
|
37
36
|
homepage: null,
|
38
37
|
issues: null,
|
39
|
-
certification: null,
|
40
38
|
license: null,
|
41
39
|
name: null,
|
42
40
|
namespace: null,
|
@@ -4,9 +4,9 @@
|
|
4
4
|
|
5
5
|
Name | Type | Description | Notes
|
6
6
|
------------ | ------------- | ------------- | -------------
|
7
|
-
**artifact** | **String** | Artifact file representing the physical content |
|
8
|
-
**pulp_created** | **DateTime** | Timestamp of creation. | [optional] [readonly]
|
9
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
10
|
**md5** | **String** | The MD5 checksum if available. | [optional] [readonly]
|
11
11
|
**sha1** | **String** | The SHA-1 checksum if available. | [optional] [readonly]
|
12
12
|
**sha224** | **String** | The SHA-224 checksum if available. | [optional] [readonly]
|
@@ -22,23 +22,21 @@ Name | Type | Description | Notes
|
|
22
22
|
**documentation** | **String** | The URL to any online docs. |
|
23
23
|
**homepage** | **String** | The URL to the homepage of the collection/project. |
|
24
24
|
**issues** | **String** | The URL to the collection issue tracker. |
|
25
|
-
**certification** | **String** | Indicates that the version is certified |
|
26
25
|
**license** | **Array<String>** | A list of licenses for content inside of a collection. |
|
27
26
|
**name** | **String** | The name of the collection. |
|
28
27
|
**namespace** | **String** | The namespace of the collection. |
|
29
28
|
**repository** | **String** | The URL of the originating SCM repository. |
|
30
29
|
**tags** | [**Array<AnsibleTagResponse>**](AnsibleTagResponse.md) | | [optional] [readonly]
|
31
30
|
**version** | **String** | The version of the collection. |
|
32
|
-
**deprecated** | **Boolean** | Whether or not the collection has been deprecated. | [optional] [readonly]
|
33
31
|
|
34
32
|
## Code Sample
|
35
33
|
|
36
34
|
```ruby
|
37
35
|
require 'PulpAnsibleClient'
|
38
36
|
|
39
|
-
instance = PulpAnsibleClient::AnsibleCollectionVersionResponse.new(
|
37
|
+
instance = PulpAnsibleClient::AnsibleCollectionVersionResponse.new(pulp_href: null,
|
40
38
|
pulp_created: null,
|
41
|
-
|
39
|
+
artifact: null,
|
42
40
|
md5: null,
|
43
41
|
sha1: null,
|
44
42
|
sha224: null,
|
@@ -54,14 +52,12 @@ instance = PulpAnsibleClient::AnsibleCollectionVersionResponse.new(artifact: nul
|
|
54
52
|
documentation: null,
|
55
53
|
homepage: null,
|
56
54
|
issues: null,
|
57
|
-
certification: null,
|
58
55
|
license: null,
|
59
56
|
name: null,
|
60
57
|
namespace: null,
|
61
58
|
repository: null,
|
62
59
|
tags: null,
|
63
|
-
version: null
|
64
|
-
deprecated: null)
|
60
|
+
version: null)
|
65
61
|
```
|
66
62
|
|
67
63
|
|
@@ -0,0 +1,62 @@
|
|
1
|
+
# PulpAnsibleClient::AnsibleCopyApi
|
2
|
+
|
3
|
+
All URIs are relative to *http://pulp*
|
4
|
+
|
5
|
+
Method | HTTP request | Description
|
6
|
+
------------- | ------------- | -------------
|
7
|
+
[**copy_content**](AnsibleCopyApi.md#copy_content) | **POST** /pulp/api/v3/ansible/copy/ | Copy content
|
8
|
+
|
9
|
+
|
10
|
+
|
11
|
+
## copy_content
|
12
|
+
|
13
|
+
> AsyncOperationResponse copy_content(copy)
|
14
|
+
|
15
|
+
Copy content
|
16
|
+
|
17
|
+
Trigger an asynchronous task to copy ansible content from one repository into another, creating a new repository version.
|
18
|
+
|
19
|
+
### Example
|
20
|
+
|
21
|
+
```ruby
|
22
|
+
# load the gem
|
23
|
+
require 'pulp_ansible_client'
|
24
|
+
# setup authorization
|
25
|
+
PulpAnsibleClient.configure do |config|
|
26
|
+
# Configure HTTP basic authorization: basicAuth
|
27
|
+
config.username = 'YOUR USERNAME'
|
28
|
+
config.password = 'YOUR PASSWORD'
|
29
|
+
end
|
30
|
+
|
31
|
+
api_instance = PulpAnsibleClient::AnsibleCopyApi.new
|
32
|
+
copy = PulpAnsibleClient::Copy.new # Copy |
|
33
|
+
|
34
|
+
begin
|
35
|
+
#Copy content
|
36
|
+
result = api_instance.copy_content(copy)
|
37
|
+
p result
|
38
|
+
rescue PulpAnsibleClient::ApiError => e
|
39
|
+
puts "Exception when calling AnsibleCopyApi->copy_content: #{e}"
|
40
|
+
end
|
41
|
+
```
|
42
|
+
|
43
|
+
### Parameters
|
44
|
+
|
45
|
+
|
46
|
+
Name | Type | Description | Notes
|
47
|
+
------------- | ------------- | ------------- | -------------
|
48
|
+
**copy** | [**Copy**](Copy.md)| |
|
49
|
+
|
50
|
+
### Return type
|
51
|
+
|
52
|
+
[**AsyncOperationResponse**](AsyncOperationResponse.md)
|
53
|
+
|
54
|
+
### Authorization
|
55
|
+
|
56
|
+
[basicAuth](../README.md#basicAuth)
|
57
|
+
|
58
|
+
### HTTP request headers
|
59
|
+
|
60
|
+
- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
|
61
|
+
- **Accept**: application/json
|
62
|
+
|
data/docs/AnsibleRoleResponse.md
CHANGED
@@ -4,9 +4,9 @@
|
|
4
4
|
|
5
5
|
Name | Type | Description | Notes
|
6
6
|
------------ | ------------- | ------------- | -------------
|
7
|
-
**artifact** | **String** | Artifact file representing the physical content |
|
8
|
-
**pulp_created** | **DateTime** | Timestamp of creation. | [optional] [readonly]
|
9
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
10
|
**version** | **String** | |
|
11
11
|
**name** | **String** | |
|
12
12
|
**namespace** | **String** | |
|
@@ -16,9 +16,9 @@ Name | Type | Description | Notes
|
|
16
16
|
```ruby
|
17
17
|
require 'PulpAnsibleClient'
|
18
18
|
|
19
|
-
instance = PulpAnsibleClient::AnsibleRoleResponse.new(
|
19
|
+
instance = PulpAnsibleClient::AnsibleRoleResponse.new(pulp_href: null,
|
20
20
|
pulp_created: null,
|
21
|
-
|
21
|
+
artifact: null,
|
22
22
|
version: null,
|
23
23
|
name: null,
|
24
24
|
namespace: null)
|
data/docs/CollectionResponse.md
CHANGED
@@ -5,13 +5,13 @@
|
|
5
5
|
Name | Type | Description | Notes
|
6
6
|
------------ | ------------- | ------------- | -------------
|
7
7
|
**href** | **String** | | [optional] [readonly]
|
8
|
-
**created_at** | **DateTime** | |
|
9
|
-
**updated_at** | **DateTime** | |
|
10
8
|
**namespace** | **String** | | [optional] [readonly]
|
11
9
|
**name** | **String** | | [optional] [readonly]
|
12
10
|
**deprecated** | **Boolean** | |
|
13
11
|
**versions_url** | **String** | | [optional] [readonly]
|
14
12
|
**highest_version** | [**Object**](.md) | | [optional] [readonly]
|
13
|
+
**created_at** | **String** | | [optional] [readonly]
|
14
|
+
**updated_at** | **String** | | [optional] [readonly]
|
15
15
|
|
16
16
|
## Code Sample
|
17
17
|
|
@@ -19,13 +19,13 @@ Name | Type | Description | Notes
|
|
19
19
|
require 'PulpAnsibleClient'
|
20
20
|
|
21
21
|
instance = PulpAnsibleClient::CollectionResponse.new(href: null,
|
22
|
-
created_at: null,
|
23
|
-
updated_at: null,
|
24
22
|
namespace: null,
|
25
23
|
name: null,
|
26
24
|
deprecated: null,
|
27
25
|
versions_url: null,
|
28
|
-
highest_version: null
|
26
|
+
highest_version: null,
|
27
|
+
created_at: null,
|
28
|
+
updated_at: null)
|
29
29
|
```
|
30
30
|
|
31
31
|
|
@@ -5,7 +5,6 @@
|
|
5
5
|
Name | Type | Description | Notes
|
6
6
|
------------ | ------------- | ------------- | -------------
|
7
7
|
**version** | **String** | | [optional] [readonly]
|
8
|
-
**certification** | [**CertificationEnum**](CertificationEnum.md) | | [optional]
|
9
8
|
**href** | **String** | | [optional] [readonly]
|
10
9
|
**created_at** | **DateTime** | |
|
11
10
|
**updated_at** | **DateTime** | |
|
@@ -22,7 +21,6 @@ Name | Type | Description | Notes
|
|
22
21
|
require 'PulpAnsibleClient'
|
23
22
|
|
24
23
|
instance = PulpAnsibleClient::CollectionVersionResponse.new(version: null,
|
25
|
-
certification: null,
|
26
24
|
href: null,
|
27
25
|
created_at: null,
|
28
26
|
updated_at: null,
|
@@ -85,8 +85,6 @@ end
|
|
85
85
|
|
86
86
|
api_instance = PulpAnsibleClient::ContentCollectionVersionsApi.new
|
87
87
|
opts = {
|
88
|
-
certification: 'certification_example', # String | certification
|
89
|
-
deprecated: 'deprecated_example', # String | deprecated
|
90
88
|
is_highest: 'is_highest_example', # String | is_highest
|
91
89
|
limit: 56, # Integer | Number of results to return per page.
|
92
90
|
name: 'name_example', # String | name
|
@@ -117,8 +115,6 @@ end
|
|
117
115
|
|
118
116
|
Name | Type | Description | Notes
|
119
117
|
------------- | ------------- | ------------- | -------------
|
120
|
-
**certification** | **String**| certification | [optional]
|
121
|
-
**deprecated** | **String**| deprecated | [optional]
|
122
118
|
**is_highest** | **String**| is_highest | [optional]
|
123
119
|
**limit** | **Integer**| Number of results to return per page. | [optional]
|
124
120
|
**name** | **String**| name | [optional]
|
data/docs/Copy.md
ADDED
@@ -0,0 +1,17 @@
|
|
1
|
+
# PulpAnsibleClient::Copy
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
Name | Type | Description | Notes
|
6
|
+
------------ | ------------- | ------------- | -------------
|
7
|
+
**config** | [**Object**](.md) | A JSON document describing sources, destinations, and content to be copied |
|
8
|
+
|
9
|
+
## Code Sample
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
require 'PulpAnsibleClient'
|
13
|
+
|
14
|
+
instance = PulpAnsibleClient::Copy.new(config: null)
|
15
|
+
```
|
16
|
+
|
17
|
+
|
@@ -1,16 +1,17 @@
|
|
1
|
-
# PulpAnsibleClient::
|
1
|
+
# PulpAnsibleClient::PatchedCollection
|
2
2
|
|
3
3
|
## Properties
|
4
4
|
|
5
5
|
Name | Type | Description | Notes
|
6
6
|
------------ | ------------- | ------------- | -------------
|
7
|
+
**deprecated** | **Boolean** | | [optional]
|
7
8
|
|
8
9
|
## Code Sample
|
9
10
|
|
10
11
|
```ruby
|
11
12
|
require 'PulpAnsibleClient'
|
12
13
|
|
13
|
-
instance = PulpAnsibleClient::
|
14
|
+
instance = PulpAnsibleClient::PatchedCollection.new(deprecated: null)
|
14
15
|
```
|
15
16
|
|
16
17
|
|
@@ -6,7 +6,7 @@ Method | HTTP request | Description
|
|
6
6
|
------------- | ------------- | -------------
|
7
7
|
[**list**](PulpAnsibleGalaxyApiCollectionsApi.md#list) | **GET** /pulp_ansible/galaxy/{path}/api/v3/collections/ |
|
8
8
|
[**read**](PulpAnsibleGalaxyApiCollectionsApi.md#read) | **GET** /pulp_ansible/galaxy/{path}/api/v3/collections/{namespace}/{name}/ |
|
9
|
-
[**update**](PulpAnsibleGalaxyApiCollectionsApi.md#update) | **
|
9
|
+
[**update**](PulpAnsibleGalaxyApiCollectionsApi.md#update) | **PATCH** /pulp_ansible/galaxy/{path}/api/v3/collections/{namespace}/{name}/ |
|
10
10
|
|
11
11
|
|
12
12
|
|
@@ -124,7 +124,7 @@ No authorization required
|
|
124
124
|
|
125
125
|
## update
|
126
126
|
|
127
|
-
> CollectionResponse update(name, namespace, path,
|
127
|
+
> CollectionResponse update(name, namespace, path, patched_collection)
|
128
128
|
|
129
129
|
|
130
130
|
|
@@ -140,10 +140,10 @@ api_instance = PulpAnsibleClient::PulpAnsibleGalaxyApiCollectionsApi.new
|
|
140
140
|
name = 'name_example' # String |
|
141
141
|
namespace = 'namespace_example' # String |
|
142
142
|
path = 'path_example' # String |
|
143
|
-
|
143
|
+
patched_collection = PulpAnsibleClient::PatchedCollection.new # PatchedCollection |
|
144
144
|
|
145
145
|
begin
|
146
|
-
result = api_instance.update(name, namespace, path,
|
146
|
+
result = api_instance.update(name, namespace, path, patched_collection)
|
147
147
|
p result
|
148
148
|
rescue PulpAnsibleClient::ApiError => e
|
149
149
|
puts "Exception when calling PulpAnsibleGalaxyApiCollectionsApi->update: #{e}"
|
@@ -158,7 +158,7 @@ Name | Type | Description | Notes
|
|
158
158
|
**name** | **String**| |
|
159
159
|
**namespace** | **String**| |
|
160
160
|
**path** | **String**| |
|
161
|
-
**
|
161
|
+
**patched_collection** | [**PatchedCollection**](PatchedCollection.md)| |
|
162
162
|
|
163
163
|
### Return type
|
164
164
|
|
@@ -28,8 +28,6 @@ name = 'name_example' # String |
|
|
28
28
|
namespace = 'namespace_example' # String |
|
29
29
|
path = 'path_example' # String |
|
30
30
|
opts = {
|
31
|
-
certification: 'certification_example', # String | certification
|
32
|
-
deprecated: 'deprecated_example', # String | deprecated
|
33
31
|
is_highest: 'is_highest_example', # String | is_highest
|
34
32
|
limit: 56, # Integer | Number of results to return per page.
|
35
33
|
name2: 'name_example', # String | name
|
@@ -61,8 +59,6 @@ Name | Type | Description | Notes
|
|
61
59
|
**name** | **String**| |
|
62
60
|
**namespace** | **String**| |
|
63
61
|
**path** | **String**| |
|
64
|
-
**certification** | **String**| certification | [optional]
|
65
|
-
**deprecated** | **String**| deprecated | [optional]
|
66
62
|
**is_highest** | **String**| is_highest | [optional]
|
67
63
|
**limit** | **Integer**| Number of results to return per page. | [optional]
|
68
64
|
**name2** | **String**| name | [optional]
|
@@ -0,0 +1,86 @@
|
|
1
|
+
=begin
|
2
|
+
#Pulp 3 API
|
3
|
+
|
4
|
+
#Fetch, Upload, Organize, and Distribute Software Packages
|
5
|
+
|
6
|
+
The version of the OpenAPI document: v3
|
7
|
+
Contact: pulp-list@redhat.com
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 4.2.3
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'cgi'
|
14
|
+
|
15
|
+
module PulpAnsibleClient
|
16
|
+
class AnsibleCopyApi
|
17
|
+
attr_accessor :api_client
|
18
|
+
|
19
|
+
def initialize(api_client = ApiClient.default)
|
20
|
+
@api_client = api_client
|
21
|
+
end
|
22
|
+
# Copy content
|
23
|
+
# Trigger an asynchronous task to copy ansible content from one repository into another, creating a new repository version.
|
24
|
+
# @param copy [Copy]
|
25
|
+
# @param [Hash] opts the optional parameters
|
26
|
+
# @return [AsyncOperationResponse]
|
27
|
+
def copy_content(copy, opts = {})
|
28
|
+
data, _status_code, _headers = copy_content_with_http_info(copy, opts)
|
29
|
+
data
|
30
|
+
end
|
31
|
+
|
32
|
+
# Copy content
|
33
|
+
# Trigger an asynchronous task to copy ansible content from one repository into another, creating a new repository version.
|
34
|
+
# @param copy [Copy]
|
35
|
+
# @param [Hash] opts the optional parameters
|
36
|
+
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
37
|
+
def copy_content_with_http_info(copy, opts = {})
|
38
|
+
if @api_client.config.debugging
|
39
|
+
@api_client.config.logger.debug 'Calling API: AnsibleCopyApi.copy_content ...'
|
40
|
+
end
|
41
|
+
# verify the required parameter 'copy' is set
|
42
|
+
if @api_client.config.client_side_validation && copy.nil?
|
43
|
+
fail ArgumentError, "Missing the required parameter 'copy' when calling AnsibleCopyApi.copy_content"
|
44
|
+
end
|
45
|
+
# resource path
|
46
|
+
local_var_path = '/pulp/api/v3/ansible/copy/'
|
47
|
+
|
48
|
+
# query parameters
|
49
|
+
query_params = opts[:query_params] || {}
|
50
|
+
|
51
|
+
# header parameters
|
52
|
+
header_params = opts[:header_params] || {}
|
53
|
+
# HTTP header 'Accept' (if needed)
|
54
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
55
|
+
# HTTP header 'Content-Type'
|
56
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
57
|
+
|
58
|
+
# form parameters
|
59
|
+
form_params = opts[:form_params] || {}
|
60
|
+
|
61
|
+
# http body (model)
|
62
|
+
post_body = opts[:body] || @api_client.object_to_http_body(copy)
|
63
|
+
|
64
|
+
# return_type
|
65
|
+
return_type = opts[:return_type] || 'AsyncOperationResponse'
|
66
|
+
|
67
|
+
# auth_names
|
68
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
69
|
+
|
70
|
+
new_options = opts.merge(
|
71
|
+
:header_params => header_params,
|
72
|
+
:query_params => query_params,
|
73
|
+
:form_params => form_params,
|
74
|
+
:body => post_body,
|
75
|
+
:auth_names => auth_names,
|
76
|
+
:return_type => return_type
|
77
|
+
)
|
78
|
+
|
79
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
80
|
+
if @api_client.config.debugging
|
81
|
+
@api_client.config.logger.debug "API called: AnsibleCopyApi#copy_content\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
82
|
+
end
|
83
|
+
return data, status_code, headers
|
84
|
+
end
|
85
|
+
end
|
86
|
+
end
|
@@ -86,8 +86,6 @@ module PulpAnsibleClient
|
|
86
86
|
# List collection versions
|
87
87
|
# ViewSet for Ansible Collection.
|
88
88
|
# @param [Hash] opts the optional parameters
|
89
|
-
# @option opts [String] :certification certification
|
90
|
-
# @option opts [String] :deprecated deprecated
|
91
89
|
# @option opts [String] :is_highest is_highest
|
92
90
|
# @option opts [Integer] :limit Number of results to return per page.
|
93
91
|
# @option opts [String] :name name
|
@@ -111,8 +109,6 @@ module PulpAnsibleClient
|
|
111
109
|
# List collection versions
|
112
110
|
# ViewSet for Ansible Collection.
|
113
111
|
# @param [Hash] opts the optional parameters
|
114
|
-
# @option opts [String] :certification certification
|
115
|
-
# @option opts [String] :deprecated deprecated
|
116
112
|
# @option opts [String] :is_highest is_highest
|
117
113
|
# @option opts [Integer] :limit Number of results to return per page.
|
118
114
|
# @option opts [String] :name name
|
@@ -132,17 +128,11 @@ module PulpAnsibleClient
|
|
132
128
|
if @api_client.config.debugging
|
133
129
|
@api_client.config.logger.debug 'Calling API: ContentCollectionVersionsApi.list ...'
|
134
130
|
end
|
135
|
-
allowable_values = ["certified", "not_certified", "needs_review"]
|
136
|
-
if @api_client.config.client_side_validation && opts[:'certification'] && !allowable_values.include?(opts[:'certification'])
|
137
|
-
fail ArgumentError, "invalid value for \"certification\", must be one of #{allowable_values}"
|
138
|
-
end
|
139
131
|
# resource path
|
140
132
|
local_var_path = '/pulp/api/v3/content/ansible/collection_versions/'
|
141
133
|
|
142
134
|
# query parameters
|
143
135
|
query_params = opts[:query_params] || {}
|
144
|
-
query_params[:'certification'] = opts[:'certification'] if !opts[:'certification'].nil?
|
145
|
-
query_params[:'deprecated'] = opts[:'deprecated'] if !opts[:'deprecated'].nil?
|
146
136
|
query_params[:'is_highest'] = opts[:'is_highest'] if !opts[:'is_highest'].nil?
|
147
137
|
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
148
138
|
query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
|
@@ -173,11 +173,11 @@ module PulpAnsibleClient
|
|
173
173
|
# @param name [String]
|
174
174
|
# @param namespace [String]
|
175
175
|
# @param path [String]
|
176
|
-
# @param
|
176
|
+
# @param patched_collection [PatchedCollection]
|
177
177
|
# @param [Hash] opts the optional parameters
|
178
178
|
# @return [CollectionResponse]
|
179
|
-
def update(name, namespace, path,
|
180
|
-
data, _status_code, _headers = update_with_http_info(name, namespace, path,
|
179
|
+
def update(name, namespace, path, patched_collection, opts = {})
|
180
|
+
data, _status_code, _headers = update_with_http_info(name, namespace, path, patched_collection, opts)
|
181
181
|
data
|
182
182
|
end
|
183
183
|
|
@@ -185,10 +185,10 @@ module PulpAnsibleClient
|
|
185
185
|
# @param name [String]
|
186
186
|
# @param namespace [String]
|
187
187
|
# @param path [String]
|
188
|
-
# @param
|
188
|
+
# @param patched_collection [PatchedCollection]
|
189
189
|
# @param [Hash] opts the optional parameters
|
190
190
|
# @return [Array<(CollectionResponse, Integer, Hash)>] CollectionResponse data, response status code and response headers
|
191
|
-
def update_with_http_info(name, namespace, path,
|
191
|
+
def update_with_http_info(name, namespace, path, patched_collection, opts = {})
|
192
192
|
if @api_client.config.debugging
|
193
193
|
@api_client.config.logger.debug 'Calling API: PulpAnsibleGalaxyApiCollectionsApi.update ...'
|
194
194
|
end
|
@@ -204,9 +204,9 @@ module PulpAnsibleClient
|
|
204
204
|
if @api_client.config.client_side_validation && path.nil?
|
205
205
|
fail ArgumentError, "Missing the required parameter 'path' when calling PulpAnsibleGalaxyApiCollectionsApi.update"
|
206
206
|
end
|
207
|
-
# verify the required parameter '
|
208
|
-
if @api_client.config.client_side_validation &&
|
209
|
-
fail ArgumentError, "Missing the required parameter '
|
207
|
+
# verify the required parameter 'patched_collection' is set
|
208
|
+
if @api_client.config.client_side_validation && patched_collection.nil?
|
209
|
+
fail ArgumentError, "Missing the required parameter 'patched_collection' when calling PulpAnsibleGalaxyApiCollectionsApi.update"
|
210
210
|
end
|
211
211
|
# resource path
|
212
212
|
local_var_path = '/pulp_ansible/galaxy/{path}/api/v3/collections/{namespace}/{name}/'.sub('{' + 'name' + '}', CGI.escape(name.to_s).gsub('%2F', '/')).sub('{' + 'namespace' + '}', CGI.escape(namespace.to_s).gsub('%2F', '/')).sub('{' + 'path' + '}', CGI.escape(path.to_s).gsub('%2F', '/'))
|
@@ -225,7 +225,7 @@ module PulpAnsibleClient
|
|
225
225
|
form_params = opts[:form_params] || {}
|
226
226
|
|
227
227
|
# http body (model)
|
228
|
-
post_body = opts[:body] || @api_client.object_to_http_body(
|
228
|
+
post_body = opts[:body] || @api_client.object_to_http_body(patched_collection)
|
229
229
|
|
230
230
|
# return_type
|
231
231
|
return_type = opts[:return_type] || 'CollectionResponse'
|
@@ -242,7 +242,7 @@ module PulpAnsibleClient
|
|
242
242
|
:return_type => return_type
|
243
243
|
)
|
244
244
|
|
245
|
-
data, status_code, headers = @api_client.call_api(:
|
245
|
+
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
|
246
246
|
if @api_client.config.debugging
|
247
247
|
@api_client.config.logger.debug "API called: PulpAnsibleGalaxyApiCollectionsApi#update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
248
248
|
end
|
@@ -24,8 +24,6 @@ module PulpAnsibleClient
|
|
24
24
|
# @param namespace [String]
|
25
25
|
# @param path [String]
|
26
26
|
# @param [Hash] opts the optional parameters
|
27
|
-
# @option opts [String] :certification certification
|
28
|
-
# @option opts [String] :deprecated deprecated
|
29
27
|
# @option opts [String] :is_highest is_highest
|
30
28
|
# @option opts [Integer] :limit Number of results to return per page.
|
31
29
|
# @option opts [String] :name2 name
|
@@ -50,8 +48,6 @@ module PulpAnsibleClient
|
|
50
48
|
# @param namespace [String]
|
51
49
|
# @param path [String]
|
52
50
|
# @param [Hash] opts the optional parameters
|
53
|
-
# @option opts [String] :certification certification
|
54
|
-
# @option opts [String] :deprecated deprecated
|
55
51
|
# @option opts [String] :is_highest is_highest
|
56
52
|
# @option opts [Integer] :limit Number of results to return per page.
|
57
53
|
# @option opts [String] :name2 name
|
@@ -82,17 +78,11 @@ module PulpAnsibleClient
|
|
82
78
|
if @api_client.config.client_side_validation && path.nil?
|
83
79
|
fail ArgumentError, "Missing the required parameter 'path' when calling PulpAnsibleGalaxyApiV3VersionsApi.list"
|
84
80
|
end
|
85
|
-
allowable_values = ["certified", "not_certified", "needs_review"]
|
86
|
-
if @api_client.config.client_side_validation && opts[:'certification'] && !allowable_values.include?(opts[:'certification'])
|
87
|
-
fail ArgumentError, "invalid value for \"certification\", must be one of #{allowable_values}"
|
88
|
-
end
|
89
81
|
# resource path
|
90
82
|
local_var_path = '/pulp_ansible/galaxy/{path}/api/v3/collections/{namespace}/{name}/versions/'.sub('{' + 'name' + '}', CGI.escape(name.to_s).gsub('%2F', '/')).sub('{' + 'namespace' + '}', CGI.escape(namespace.to_s).gsub('%2F', '/')).sub('{' + 'path' + '}', CGI.escape(path.to_s).gsub('%2F', '/'))
|
91
83
|
|
92
84
|
# query parameters
|
93
85
|
query_params = opts[:query_params] || {}
|
94
|
-
query_params[:'certification'] = opts[:'certification'] if !opts[:'certification'].nil?
|
95
|
-
query_params[:'deprecated'] = opts[:'deprecated'] if !opts[:'deprecated'].nil?
|
96
86
|
query_params[:'is_highest'] = opts[:'is_highest'] if !opts[:'is_highest'].nil?
|
97
87
|
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
98
88
|
query_params[:'name'] = opts[:'name2'] if !opts[:'name2'].nil?
|