pulp_ansible_client 0.21.10 → 0.22.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 +12 -19
- data/docs/{AnsibleCollection.md → AnsibleAnsibleCollectionDeprecated.md} +4 -2
- data/docs/AnsibleAnsibleCollectionDeprecatedResponse.md +25 -0
- data/docs/AnsibleCollectionVersion.md +3 -3
- data/docs/AnsibleCollectionVersionResponse.md +8 -8
- data/docs/AnsibleCollectionsApi.md +61 -1
- data/docs/AnsibleCopyApi.md +1 -1
- data/docs/AnsibleGitRemote.md +30 -30
- data/docs/AnsibleGitRemoteResponse.md +27 -27
- data/docs/AnsibleRole.md +3 -3
- data/docs/AnsibleRoleResponse.md +3 -3
- data/docs/ApiRolesApi.md +1 -1
- data/docs/CollectionImportApi.md +1 -1
- data/docs/CollectionImportDetailResponse.md +2 -2
- data/docs/CollectionMetadataResponse.md +2 -2
- data/docs/CollectionSummaryResponse.md +2 -2
- data/docs/CollectionVersionDocsResponse.md +1 -1
- data/docs/CollectionVersionResponse.md +2 -2
- data/docs/ContentCollectionDeprecationsApi.md +11 -11
- data/docs/ContentCollectionMarksApi.md +1 -1
- data/docs/ContentCollectionSignaturesApi.md +1 -1
- data/docs/ContentCollectionVersionsApi.md +3 -3
- data/docs/ContentNamespacesApi.md +1 -1
- data/docs/ContentRolesApi.md +1 -1
- data/docs/Copy.md +1 -1
- data/docs/DistributionsAnsibleApi.md +1 -1
- data/docs/{PaginatedGalaxyCollectionResponseList.md → PaginatedansibleAnsibleCollectionDeprecatedResponseList.md} +5 -5
- data/docs/PatchedansibleGitRemote.md +30 -30
- data/docs/PulpAnsibleApiApi.md +1 -1
- data/docs/PulpAnsibleApiV3Api.md +1 -1
- data/docs/PulpAnsibleApiV3ArtifactsCollectionsApi.md +1 -1
- data/docs/PulpAnsibleApiV3CollectionVersionsAllApi.md +1 -1
- data/docs/PulpAnsibleApiV3CollectionsAllApi.md +1 -1
- data/docs/PulpAnsibleApiV3CollectionsApi.md +1 -1
- data/docs/PulpAnsibleApiV3CollectionsVersionsApi.md +1 -1
- data/docs/PulpAnsibleApiV3CollectionsVersionsDocsBlobApi.md +1 -1
- data/docs/PulpAnsibleApiV3NamespacesApi.md +1 -1
- data/docs/PulpAnsibleApiV3PluginAnsibleClientConfigurationApi.md +1 -1
- data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsAllCollectionsApi.md +1 -1
- data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsAllVersionsApi.md +1 -1
- data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsApi.md +1 -1
- data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsArtifactsApi.md +1 -1
- data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexApi.md +1 -1
- data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexVersionsApi.md +1 -1
- data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexVersionsDocsBlobApi.md +1 -1
- data/docs/PulpAnsibleApiV3PluginAnsibleContentNamespacesApi.md +1 -1
- data/docs/{ApiPluginAnsibleSearchCollectionVersionsApi.md → PulpAnsibleApiV3PluginAnsibleSearchCollectionVersionsApi.md} +17 -18
- data/docs/PulpAnsibleArtifactsCollectionsV3Api.md +1 -1
- data/docs/PulpAnsibleDefaultApiApi.md +1 -1
- data/docs/PulpAnsibleDefaultApiV3Api.md +1 -1
- data/docs/PulpAnsibleDefaultApiV3ArtifactsCollectionsApi.md +1 -1
- data/docs/PulpAnsibleDefaultApiV3CollectionVersionsAllApi.md +1 -1
- data/docs/PulpAnsibleDefaultApiV3CollectionsAllApi.md +1 -1
- data/docs/PulpAnsibleDefaultApiV3CollectionsApi.md +1 -1
- data/docs/PulpAnsibleDefaultApiV3CollectionsVersionsApi.md +1 -1
- data/docs/PulpAnsibleDefaultApiV3CollectionsVersionsDocsBlobApi.md +1 -1
- data/docs/PulpAnsibleDefaultApiV3NamespacesApi.md +1 -1
- data/docs/PulpAnsibleDefaultApiV3PluginAnsibleClientConfigurationApi.md +1 -1
- data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsAllCollectionsApi.md +1 -1
- data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsAllVersionsApi.md +1 -1
- data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsApi.md +1 -1
- data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsArtifactsApi.md +1 -1
- data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexApi.md +1 -1
- data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexVersionsApi.md +1 -1
- data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexVersionsDocsBlobApi.md +1 -1
- data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentNamespacesApi.md +1 -1
- data/docs/PulpAnsibleDefaultApiV3PluginAnsibleSearchCollectionVersionsApi.md +3 -4
- data/docs/PulpAnsibleTagsApi.md +1 -1
- data/docs/RemotesCollectionApi.md +1 -1
- data/docs/RemotesGitApi.md +1 -1
- data/docs/RemotesRoleApi.md +1 -1
- data/docs/RepositoriesAnsibleApi.md +1 -1
- data/docs/RepositoriesAnsibleVersionsApi.md +1 -1
- data/docs/VersionsApi.md +1 -56
- data/lib/pulp_ansible_client/api/ansible_collections_api.rb +68 -0
- data/lib/pulp_ansible_client/api/content_collection_deprecations_api.rb +20 -20
- data/lib/pulp_ansible_client/api/content_collection_versions_api.rb +3 -3
- data/lib/pulp_ansible_client/api/{api_plugin_ansible_search_collection_versions_api.rb → pulp_ansible_api_v3_plugin_ansible_search_collection_versions_api.rb} +24 -26
- data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_search_collection_versions_api.rb +0 -2
- data/lib/pulp_ansible_client/api/versions_api.rb +0 -69
- data/lib/pulp_ansible_client/configuration.rb +2 -2
- data/lib/pulp_ansible_client/models/{ansible_collection.rb → ansible_ansible_collection_deprecated.rb} +15 -5
- data/lib/pulp_ansible_client/models/{galaxy_collection_version_response.rb → ansible_ansible_collection_deprecated_response.rb} +45 -54
- data/lib/pulp_ansible_client/models/ansible_collection_version.rb +11 -11
- data/lib/pulp_ansible_client/models/ansible_collection_version_response.rb +16 -16
- data/lib/pulp_ansible_client/models/ansible_git_remote.rb +258 -258
- data/lib/pulp_ansible_client/models/ansible_git_remote_response.rb +151 -151
- data/lib/pulp_ansible_client/models/ansible_role.rb +11 -11
- data/lib/pulp_ansible_client/models/ansible_role_response.rb +11 -11
- data/lib/pulp_ansible_client/models/collection_import_detail_response.rb +2 -2
- data/lib/pulp_ansible_client/models/collection_metadata_response.rb +2 -2
- data/lib/pulp_ansible_client/models/collection_summary_response.rb +2 -2
- data/lib/pulp_ansible_client/models/collection_version_docs_response.rb +1 -1
- data/lib/pulp_ansible_client/models/collection_version_response.rb +2 -2
- data/lib/pulp_ansible_client/models/copy.rb +1 -1
- data/lib/pulp_ansible_client/models/{paginated_galaxy_collection_version_response_list.rb → paginatedansible_ansible_collection_deprecated_response_list.rb} +4 -4
- data/lib/pulp_ansible_client/models/patchedansible_git_remote.rb +249 -249
- data/lib/pulp_ansible_client/version.rb +1 -1
- data/lib/pulp_ansible_client.rb +4 -10
- data/spec/api/ansible_collections_api_spec.rb +14 -0
- data/spec/api/content_collection_deprecations_api_spec.rb +5 -5
- data/spec/api/content_collection_versions_api_spec.rb +1 -1
- data/spec/api/{api_plugin_ansible_search_collection_versions_api_spec.rb → pulp_ansible_api_v3_plugin_ansible_search_collection_versions_api_spec.rb} +8 -9
- data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_search_collection_versions_api_spec.rb +0 -1
- data/spec/api/versions_api_spec.rb +0 -14
- data/spec/configuration_spec.rb +3 -3
- data/spec/models/{galaxy_collection_version_response_spec.rb → ansible_ansible_collection_deprecated_response_spec.rb} +11 -17
- data/spec/models/{ansible_collection_spec.rb → ansible_ansible_collection_deprecated_spec.rb} +12 -6
- data/spec/models/ansible_collection_version_response_spec.rb +4 -4
- data/spec/models/ansible_collection_version_spec.rb +4 -4
- data/spec/models/ansible_git_remote_response_spec.rb +18 -18
- data/spec/models/ansible_git_remote_spec.rb +20 -20
- data/spec/models/ansible_role_response_spec.rb +4 -4
- data/spec/models/ansible_role_spec.rb +2 -2
- data/spec/models/{paginated_galaxy_collection_version_response_list_spec.rb → paginatedansible_ansible_collection_deprecated_response_list_spec.rb} +6 -6
- data/spec/models/patchedansible_git_remote_spec.rb +20 -20
- metadata +157 -181
- data/docs/ApiCollectionsApi.md +0 -112
- data/docs/GalaxyCollection.md +0 -23
- data/docs/GalaxyCollectionResponse.md +0 -31
- data/docs/GalaxyCollectionVersionResponse.md +0 -27
- data/docs/GalaxyDetailApi.md +0 -61
- data/docs/PaginatedGalaxyCollectionVersionResponseList.md +0 -23
- data/docs/PulpAnsibleApiV2CollectionsVersionsApi.md +0 -66
- data/lib/pulp_ansible_client/api/api_collections_api.rb +0 -159
- data/lib/pulp_ansible_client/api/galaxy_detail_api.rb +0 -88
- data/lib/pulp_ansible_client/api/pulp_ansible_api_v2_collections_versions_api.rb +0 -104
- data/lib/pulp_ansible_client/models/galaxy_collection.rb +0 -292
- data/lib/pulp_ansible_client/models/galaxy_collection_response.rb +0 -294
- data/lib/pulp_ansible_client/models/paginated_galaxy_collection_response_list.rb +0 -247
- data/spec/api/api_collections_api_spec.rb +0 -61
- data/spec/api/galaxy_detail_api_spec.rb +0 -48
- data/spec/api/pulp_ansible_api_v2_collections_versions_api_spec.rb +0 -51
- data/spec/models/galaxy_collection_response_spec.rb +0 -83
- data/spec/models/galaxy_collection_spec.rb +0 -59
- data/spec/models/paginated_galaxy_collection_response_list_spec.rb +0 -59
data/docs/ApiCollectionsApi.md
DELETED
@@ -1,112 +0,0 @@
|
|
1
|
-
# PulpAnsibleClient::ApiCollectionsApi
|
2
|
-
|
3
|
-
All URIs are relative to *http://localhost:24817*
|
4
|
-
|
5
|
-
Method | HTTP request | Description
|
6
|
-
------------- | ------------- | -------------
|
7
|
-
[**get**](ApiCollectionsApi.md#get) | **GET** {ansible_collection_href}api/v2/collections/ |
|
8
|
-
[**post**](ApiCollectionsApi.md#post) | **POST** {ansible_collection_href}api/v2/collections/ |
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
## get
|
13
|
-
|
14
|
-
> PaginatedGalaxyCollectionResponseList get(ansible_collection_href, opts)
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
View for Collection models.
|
19
|
-
|
20
|
-
### Example
|
21
|
-
|
22
|
-
```ruby
|
23
|
-
# load the gem
|
24
|
-
require 'pulp_ansible_client'
|
25
|
-
|
26
|
-
api_instance = PulpAnsibleClient::ApiCollectionsApi.new
|
27
|
-
ansible_collection_href = 'ansible_collection_href_example' # String |
|
28
|
-
opts = {
|
29
|
-
page: 56, # Integer | A page number within the paginated result set.
|
30
|
-
fields: ['fields_example'], # Array<String> | A list of fields to include in the response.
|
31
|
-
exclude_fields: ['exclude_fields_example'] # Array<String> | A list of fields to exclude from the response.
|
32
|
-
}
|
33
|
-
|
34
|
-
begin
|
35
|
-
result = api_instance.get(ansible_collection_href, opts)
|
36
|
-
p result
|
37
|
-
rescue PulpAnsibleClient::ApiError => e
|
38
|
-
puts "Exception when calling ApiCollectionsApi->get: #{e}"
|
39
|
-
end
|
40
|
-
```
|
41
|
-
|
42
|
-
### Parameters
|
43
|
-
|
44
|
-
|
45
|
-
Name | Type | Description | Notes
|
46
|
-
------------- | ------------- | ------------- | -------------
|
47
|
-
**ansible_collection_href** | **String**| |
|
48
|
-
**page** | **Integer**| A page number within the paginated result set. | [optional]
|
49
|
-
**fields** | [**Array<String>**](String.md)| A list of fields to include in the response. | [optional]
|
50
|
-
**exclude_fields** | [**Array<String>**](String.md)| A list of fields to exclude from the response. | [optional]
|
51
|
-
|
52
|
-
### Return type
|
53
|
-
|
54
|
-
[**PaginatedGalaxyCollectionResponseList**](PaginatedGalaxyCollectionResponseList.md)
|
55
|
-
|
56
|
-
### Authorization
|
57
|
-
|
58
|
-
No authorization required
|
59
|
-
|
60
|
-
### HTTP request headers
|
61
|
-
|
62
|
-
- **Content-Type**: Not defined
|
63
|
-
- **Accept**: application/json
|
64
|
-
|
65
|
-
|
66
|
-
## post
|
67
|
-
|
68
|
-
> GalaxyCollectionResponse post(ansible_collection_href, galaxy_collection)
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
Queues a task that creates a new Collection from an uploaded artifact.
|
73
|
-
|
74
|
-
### Example
|
75
|
-
|
76
|
-
```ruby
|
77
|
-
# load the gem
|
78
|
-
require 'pulp_ansible_client'
|
79
|
-
|
80
|
-
api_instance = PulpAnsibleClient::ApiCollectionsApi.new
|
81
|
-
ansible_collection_href = 'ansible_collection_href_example' # String |
|
82
|
-
galaxy_collection = PulpAnsibleClient::GalaxyCollection.new # GalaxyCollection |
|
83
|
-
|
84
|
-
begin
|
85
|
-
result = api_instance.post(ansible_collection_href, galaxy_collection)
|
86
|
-
p result
|
87
|
-
rescue PulpAnsibleClient::ApiError => e
|
88
|
-
puts "Exception when calling ApiCollectionsApi->post: #{e}"
|
89
|
-
end
|
90
|
-
```
|
91
|
-
|
92
|
-
### Parameters
|
93
|
-
|
94
|
-
|
95
|
-
Name | Type | Description | Notes
|
96
|
-
------------- | ------------- | ------------- | -------------
|
97
|
-
**ansible_collection_href** | **String**| |
|
98
|
-
**galaxy_collection** | [**GalaxyCollection**](GalaxyCollection.md)| |
|
99
|
-
|
100
|
-
### Return type
|
101
|
-
|
102
|
-
[**GalaxyCollectionResponse**](GalaxyCollectionResponse.md)
|
103
|
-
|
104
|
-
### Authorization
|
105
|
-
|
106
|
-
No authorization required
|
107
|
-
|
108
|
-
### HTTP request headers
|
109
|
-
|
110
|
-
- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
|
111
|
-
- **Accept**: application/json
|
112
|
-
|
data/docs/GalaxyCollection.md
DELETED
@@ -1,23 +0,0 @@
|
|
1
|
-
# PulpAnsibleClient::GalaxyCollection
|
2
|
-
|
3
|
-
## Properties
|
4
|
-
|
5
|
-
Name | Type | Description | Notes
|
6
|
-
------------ | ------------- | ------------- | -------------
|
7
|
-
**id** | **String** | |
|
8
|
-
**name** | **String** | |
|
9
|
-
**created** | **DateTime** | |
|
10
|
-
**modified** | **DateTime** | |
|
11
|
-
|
12
|
-
## Code Sample
|
13
|
-
|
14
|
-
```ruby
|
15
|
-
require 'PulpAnsibleClient'
|
16
|
-
|
17
|
-
instance = PulpAnsibleClient::GalaxyCollection.new(id: null,
|
18
|
-
name: null,
|
19
|
-
created: null,
|
20
|
-
modified: null)
|
21
|
-
```
|
22
|
-
|
23
|
-
|
@@ -1,31 +0,0 @@
|
|
1
|
-
# PulpAnsibleClient::GalaxyCollectionResponse
|
2
|
-
|
3
|
-
## Properties
|
4
|
-
|
5
|
-
Name | Type | Description | Notes
|
6
|
-
------------ | ------------- | ------------- | -------------
|
7
|
-
**id** | **String** | |
|
8
|
-
**name** | **String** | |
|
9
|
-
**namespace** | [**Object**](.md) | Create a namespace dict. | [optional] [readonly]
|
10
|
-
**href** | **String** | Get href. | [optional] [readonly]
|
11
|
-
**versions_url** | **String** | Get versions_url. | [optional] [readonly]
|
12
|
-
**created** | **DateTime** | |
|
13
|
-
**modified** | **DateTime** | |
|
14
|
-
**latest_version** | [**Object**](.md) | Get latest version. | [optional] [readonly]
|
15
|
-
|
16
|
-
## Code Sample
|
17
|
-
|
18
|
-
```ruby
|
19
|
-
require 'PulpAnsibleClient'
|
20
|
-
|
21
|
-
instance = PulpAnsibleClient::GalaxyCollectionResponse.new(id: null,
|
22
|
-
name: null,
|
23
|
-
namespace: null,
|
24
|
-
href: null,
|
25
|
-
versions_url: null,
|
26
|
-
created: null,
|
27
|
-
modified: null,
|
28
|
-
latest_version: null)
|
29
|
-
```
|
30
|
-
|
31
|
-
|
@@ -1,27 +0,0 @@
|
|
1
|
-
# PulpAnsibleClient::GalaxyCollectionVersionResponse
|
2
|
-
|
3
|
-
## Properties
|
4
|
-
|
5
|
-
Name | Type | Description | Notes
|
6
|
-
------------ | ------------- | ------------- | -------------
|
7
|
-
**version** | **String** | |
|
8
|
-
**href** | **String** | Get href. | [optional] [readonly]
|
9
|
-
**namespace** | [**Object**](.md) | Create a namespace dict. | [optional] [readonly]
|
10
|
-
**collection** | [**Object**](.md) | Create a collection dict. | [optional] [readonly]
|
11
|
-
**artifact** | [**Object**](.md) | Create an artifact dict. | [optional] [readonly]
|
12
|
-
**metadata** | [**CollectionMetadataResponse**](CollectionMetadataResponse.md) | |
|
13
|
-
|
14
|
-
## Code Sample
|
15
|
-
|
16
|
-
```ruby
|
17
|
-
require 'PulpAnsibleClient'
|
18
|
-
|
19
|
-
instance = PulpAnsibleClient::GalaxyCollectionVersionResponse.new(version: null,
|
20
|
-
href: null,
|
21
|
-
namespace: null,
|
22
|
-
collection: null,
|
23
|
-
artifact: null,
|
24
|
-
metadata: null)
|
25
|
-
```
|
26
|
-
|
27
|
-
|
data/docs/GalaxyDetailApi.md
DELETED
@@ -1,61 +0,0 @@
|
|
1
|
-
# PulpAnsibleClient::GalaxyDetailApi
|
2
|
-
|
3
|
-
All URIs are relative to *http://localhost:24817*
|
4
|
-
|
5
|
-
Method | HTTP request | Description
|
6
|
-
------------- | ------------- | -------------
|
7
|
-
[**get**](GalaxyDetailApi.md#get) | **GET** {ansible_collection_href} |
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
## get
|
12
|
-
|
13
|
-
> GalaxyCollectionResponse get(ansible_collection_href, opts)
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
Get the detail view of a Collection.
|
18
|
-
|
19
|
-
### Example
|
20
|
-
|
21
|
-
```ruby
|
22
|
-
# load the gem
|
23
|
-
require 'pulp_ansible_client'
|
24
|
-
|
25
|
-
api_instance = PulpAnsibleClient::GalaxyDetailApi.new
|
26
|
-
ansible_collection_href = 'ansible_collection_href_example' # String |
|
27
|
-
opts = {
|
28
|
-
fields: ['fields_example'], # Array<String> | A list of fields to include in the response.
|
29
|
-
exclude_fields: ['exclude_fields_example'] # Array<String> | A list of fields to exclude from the response.
|
30
|
-
}
|
31
|
-
|
32
|
-
begin
|
33
|
-
result = api_instance.get(ansible_collection_href, opts)
|
34
|
-
p result
|
35
|
-
rescue PulpAnsibleClient::ApiError => e
|
36
|
-
puts "Exception when calling GalaxyDetailApi->get: #{e}"
|
37
|
-
end
|
38
|
-
```
|
39
|
-
|
40
|
-
### Parameters
|
41
|
-
|
42
|
-
|
43
|
-
Name | Type | Description | Notes
|
44
|
-
------------- | ------------- | ------------- | -------------
|
45
|
-
**ansible_collection_href** | **String**| |
|
46
|
-
**fields** | [**Array<String>**](String.md)| A list of fields to include in the response. | [optional]
|
47
|
-
**exclude_fields** | [**Array<String>**](String.md)| A list of fields to exclude from the response. | [optional]
|
48
|
-
|
49
|
-
### Return type
|
50
|
-
|
51
|
-
[**GalaxyCollectionResponse**](GalaxyCollectionResponse.md)
|
52
|
-
|
53
|
-
### Authorization
|
54
|
-
|
55
|
-
No authorization required
|
56
|
-
|
57
|
-
### HTTP request headers
|
58
|
-
|
59
|
-
- **Content-Type**: Not defined
|
60
|
-
- **Accept**: application/json
|
61
|
-
|
@@ -1,23 +0,0 @@
|
|
1
|
-
# PulpAnsibleClient::PaginatedGalaxyCollectionVersionResponseList
|
2
|
-
|
3
|
-
## Properties
|
4
|
-
|
5
|
-
Name | Type | Description | Notes
|
6
|
-
------------ | ------------- | ------------- | -------------
|
7
|
-
**count** | **Integer** | |
|
8
|
-
**_next** | **String** | | [optional]
|
9
|
-
**previous** | **String** | | [optional]
|
10
|
-
**results** | [**Array<GalaxyCollectionVersionResponse>**](GalaxyCollectionVersionResponse.md) | |
|
11
|
-
|
12
|
-
## Code Sample
|
13
|
-
|
14
|
-
```ruby
|
15
|
-
require 'PulpAnsibleClient'
|
16
|
-
|
17
|
-
instance = PulpAnsibleClient::PaginatedGalaxyCollectionVersionResponseList.new(count: 123,
|
18
|
-
_next: http://api.example.org/accounts/?page=4,
|
19
|
-
previous: http://api.example.org/accounts/?page=2,
|
20
|
-
results: null)
|
21
|
-
```
|
22
|
-
|
23
|
-
|
@@ -1,66 +0,0 @@
|
|
1
|
-
# PulpAnsibleClient::PulpAnsibleApiV2CollectionsVersionsApi
|
2
|
-
|
3
|
-
All URIs are relative to *http://localhost:24817*
|
4
|
-
|
5
|
-
Method | HTTP request | Description
|
6
|
-
------------- | ------------- | -------------
|
7
|
-
[**get**](PulpAnsibleApiV2CollectionsVersionsApi.md#get) | **GET** /pulp_ansible/galaxy/{path}/api/v2/collections/{namespace}/{name}/versions/{version}/ |
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
## get
|
12
|
-
|
13
|
-
> get(name, namespace, path, version, opts)
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
Return a response to the \"GET\" action.
|
18
|
-
|
19
|
-
### Example
|
20
|
-
|
21
|
-
```ruby
|
22
|
-
# load the gem
|
23
|
-
require 'pulp_ansible_client'
|
24
|
-
|
25
|
-
api_instance = PulpAnsibleClient::PulpAnsibleApiV2CollectionsVersionsApi.new
|
26
|
-
name = 'name_example' # String |
|
27
|
-
namespace = 'namespace_example' # String |
|
28
|
-
path = 'path_example' # String |
|
29
|
-
version = 'version_example' # String |
|
30
|
-
opts = {
|
31
|
-
fields: ['fields_example'], # Array<String> | A list of fields to include in the response.
|
32
|
-
exclude_fields: ['exclude_fields_example'] # Array<String> | A list of fields to exclude from the response.
|
33
|
-
}
|
34
|
-
|
35
|
-
begin
|
36
|
-
api_instance.get(name, namespace, path, version, opts)
|
37
|
-
rescue PulpAnsibleClient::ApiError => e
|
38
|
-
puts "Exception when calling PulpAnsibleApiV2CollectionsVersionsApi->get: #{e}"
|
39
|
-
end
|
40
|
-
```
|
41
|
-
|
42
|
-
### Parameters
|
43
|
-
|
44
|
-
|
45
|
-
Name | Type | Description | Notes
|
46
|
-
------------- | ------------- | ------------- | -------------
|
47
|
-
**name** | **String**| |
|
48
|
-
**namespace** | **String**| |
|
49
|
-
**path** | **String**| |
|
50
|
-
**version** | **String**| |
|
51
|
-
**fields** | [**Array<String>**](String.md)| A list of fields to include in the response. | [optional]
|
52
|
-
**exclude_fields** | [**Array<String>**](String.md)| A list of fields to exclude from the response. | [optional]
|
53
|
-
|
54
|
-
### Return type
|
55
|
-
|
56
|
-
nil (empty response body)
|
57
|
-
|
58
|
-
### Authorization
|
59
|
-
|
60
|
-
No authorization required
|
61
|
-
|
62
|
-
### HTTP request headers
|
63
|
-
|
64
|
-
- **Content-Type**: Not defined
|
65
|
-
- **Accept**: Not defined
|
66
|
-
|
@@ -1,159 +0,0 @@
|
|
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.3.1
|
10
|
-
|
11
|
-
=end
|
12
|
-
|
13
|
-
require 'cgi'
|
14
|
-
|
15
|
-
module PulpAnsibleClient
|
16
|
-
class ApiCollectionsApi
|
17
|
-
attr_accessor :api_client
|
18
|
-
|
19
|
-
def initialize(api_client = ApiClient.default)
|
20
|
-
@api_client = api_client
|
21
|
-
end
|
22
|
-
# View for Collection models.
|
23
|
-
# @param ansible_collection_href [String]
|
24
|
-
# @param [Hash] opts the optional parameters
|
25
|
-
# @option opts [Integer] :page A page number within the paginated result set.
|
26
|
-
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
27
|
-
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
28
|
-
# @return [PaginatedGalaxyCollectionResponseList]
|
29
|
-
def get(ansible_collection_href, opts = {})
|
30
|
-
data, _status_code, _headers = get_with_http_info(ansible_collection_href, opts)
|
31
|
-
data
|
32
|
-
end
|
33
|
-
|
34
|
-
# View for Collection models.
|
35
|
-
# @param ansible_collection_href [String]
|
36
|
-
# @param [Hash] opts the optional parameters
|
37
|
-
# @option opts [Integer] :page A page number within the paginated result set.
|
38
|
-
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
39
|
-
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
40
|
-
# @return [Array<(PaginatedGalaxyCollectionResponseList, Integer, Hash)>] PaginatedGalaxyCollectionResponseList data, response status code and response headers
|
41
|
-
def get_with_http_info(ansible_collection_href, opts = {})
|
42
|
-
if @api_client.config.debugging
|
43
|
-
@api_client.config.logger.debug 'Calling API: ApiCollectionsApi.get ...'
|
44
|
-
end
|
45
|
-
# verify the required parameter 'ansible_collection_href' is set
|
46
|
-
if @api_client.config.client_side_validation && ansible_collection_href.nil?
|
47
|
-
fail ArgumentError, "Missing the required parameter 'ansible_collection_href' when calling ApiCollectionsApi.get"
|
48
|
-
end
|
49
|
-
# resource path
|
50
|
-
local_var_path = '{ansible_collection_href}api/v2/collections/'.sub('{' + 'ansible_collection_href' + '}', CGI.escape(ansible_collection_href.to_s).gsub('%2F', '/'))
|
51
|
-
|
52
|
-
# query parameters
|
53
|
-
query_params = opts[:query_params] || {}
|
54
|
-
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
|
55
|
-
query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
|
56
|
-
query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
|
57
|
-
|
58
|
-
# header parameters
|
59
|
-
header_params = opts[:header_params] || {}
|
60
|
-
# HTTP header 'Accept' (if needed)
|
61
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
62
|
-
|
63
|
-
# form parameters
|
64
|
-
form_params = opts[:form_params] || {}
|
65
|
-
|
66
|
-
# http body (model)
|
67
|
-
post_body = opts[:body]
|
68
|
-
|
69
|
-
# return_type
|
70
|
-
return_type = opts[:return_type] || 'PaginatedGalaxyCollectionResponseList'
|
71
|
-
|
72
|
-
# auth_names
|
73
|
-
auth_names = opts[:auth_names] || []
|
74
|
-
|
75
|
-
new_options = opts.merge(
|
76
|
-
:header_params => header_params,
|
77
|
-
:query_params => query_params,
|
78
|
-
:form_params => form_params,
|
79
|
-
:body => post_body,
|
80
|
-
:auth_names => auth_names,
|
81
|
-
:return_type => return_type
|
82
|
-
)
|
83
|
-
|
84
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
85
|
-
if @api_client.config.debugging
|
86
|
-
@api_client.config.logger.debug "API called: ApiCollectionsApi#get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
87
|
-
end
|
88
|
-
return data, status_code, headers
|
89
|
-
end
|
90
|
-
|
91
|
-
# Queues a task that creates a new Collection from an uploaded artifact.
|
92
|
-
# @param ansible_collection_href [String]
|
93
|
-
# @param galaxy_collection [GalaxyCollection]
|
94
|
-
# @param [Hash] opts the optional parameters
|
95
|
-
# @return [GalaxyCollectionResponse]
|
96
|
-
def post(ansible_collection_href, galaxy_collection, opts = {})
|
97
|
-
data, _status_code, _headers = post_with_http_info(ansible_collection_href, galaxy_collection, opts)
|
98
|
-
data
|
99
|
-
end
|
100
|
-
|
101
|
-
# Queues a task that creates a new Collection from an uploaded artifact.
|
102
|
-
# @param ansible_collection_href [String]
|
103
|
-
# @param galaxy_collection [GalaxyCollection]
|
104
|
-
# @param [Hash] opts the optional parameters
|
105
|
-
# @return [Array<(GalaxyCollectionResponse, Integer, Hash)>] GalaxyCollectionResponse data, response status code and response headers
|
106
|
-
def post_with_http_info(ansible_collection_href, galaxy_collection, opts = {})
|
107
|
-
if @api_client.config.debugging
|
108
|
-
@api_client.config.logger.debug 'Calling API: ApiCollectionsApi.post ...'
|
109
|
-
end
|
110
|
-
# verify the required parameter 'ansible_collection_href' is set
|
111
|
-
if @api_client.config.client_side_validation && ansible_collection_href.nil?
|
112
|
-
fail ArgumentError, "Missing the required parameter 'ansible_collection_href' when calling ApiCollectionsApi.post"
|
113
|
-
end
|
114
|
-
# verify the required parameter 'galaxy_collection' is set
|
115
|
-
if @api_client.config.client_side_validation && galaxy_collection.nil?
|
116
|
-
fail ArgumentError, "Missing the required parameter 'galaxy_collection' when calling ApiCollectionsApi.post"
|
117
|
-
end
|
118
|
-
# resource path
|
119
|
-
local_var_path = '{ansible_collection_href}api/v2/collections/'.sub('{' + 'ansible_collection_href' + '}', CGI.escape(ansible_collection_href.to_s).gsub('%2F', '/'))
|
120
|
-
|
121
|
-
# query parameters
|
122
|
-
query_params = opts[:query_params] || {}
|
123
|
-
|
124
|
-
# header parameters
|
125
|
-
header_params = opts[:header_params] || {}
|
126
|
-
# HTTP header 'Accept' (if needed)
|
127
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
128
|
-
# HTTP header 'Content-Type'
|
129
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
130
|
-
|
131
|
-
# form parameters
|
132
|
-
form_params = opts[:form_params] || {}
|
133
|
-
|
134
|
-
# http body (model)
|
135
|
-
post_body = opts[:body] || @api_client.object_to_http_body(galaxy_collection)
|
136
|
-
|
137
|
-
# return_type
|
138
|
-
return_type = opts[:return_type] || 'GalaxyCollectionResponse'
|
139
|
-
|
140
|
-
# auth_names
|
141
|
-
auth_names = opts[:auth_names] || []
|
142
|
-
|
143
|
-
new_options = opts.merge(
|
144
|
-
:header_params => header_params,
|
145
|
-
:query_params => query_params,
|
146
|
-
:form_params => form_params,
|
147
|
-
:body => post_body,
|
148
|
-
:auth_names => auth_names,
|
149
|
-
:return_type => return_type
|
150
|
-
)
|
151
|
-
|
152
|
-
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
153
|
-
if @api_client.config.debugging
|
154
|
-
@api_client.config.logger.debug "API called: ApiCollectionsApi#post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
155
|
-
end
|
156
|
-
return data, status_code, headers
|
157
|
-
end
|
158
|
-
end
|
159
|
-
end
|
@@ -1,88 +0,0 @@
|
|
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.3.1
|
10
|
-
|
11
|
-
=end
|
12
|
-
|
13
|
-
require 'cgi'
|
14
|
-
|
15
|
-
module PulpAnsibleClient
|
16
|
-
class GalaxyDetailApi
|
17
|
-
attr_accessor :api_client
|
18
|
-
|
19
|
-
def initialize(api_client = ApiClient.default)
|
20
|
-
@api_client = api_client
|
21
|
-
end
|
22
|
-
# Get the detail view of a Collection.
|
23
|
-
# @param ansible_collection_href [String]
|
24
|
-
# @param [Hash] opts the optional parameters
|
25
|
-
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
26
|
-
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
27
|
-
# @return [GalaxyCollectionResponse]
|
28
|
-
def get(ansible_collection_href, opts = {})
|
29
|
-
data, _status_code, _headers = get_with_http_info(ansible_collection_href, opts)
|
30
|
-
data
|
31
|
-
end
|
32
|
-
|
33
|
-
# Get the detail view of a Collection.
|
34
|
-
# @param ansible_collection_href [String]
|
35
|
-
# @param [Hash] opts the optional parameters
|
36
|
-
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
37
|
-
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
38
|
-
# @return [Array<(GalaxyCollectionResponse, Integer, Hash)>] GalaxyCollectionResponse data, response status code and response headers
|
39
|
-
def get_with_http_info(ansible_collection_href, opts = {})
|
40
|
-
if @api_client.config.debugging
|
41
|
-
@api_client.config.logger.debug 'Calling API: GalaxyDetailApi.get ...'
|
42
|
-
end
|
43
|
-
# verify the required parameter 'ansible_collection_href' is set
|
44
|
-
if @api_client.config.client_side_validation && ansible_collection_href.nil?
|
45
|
-
fail ArgumentError, "Missing the required parameter 'ansible_collection_href' when calling GalaxyDetailApi.get"
|
46
|
-
end
|
47
|
-
# resource path
|
48
|
-
local_var_path = '{ansible_collection_href}'.sub('{' + 'ansible_collection_href' + '}', CGI.escape(ansible_collection_href.to_s).gsub('%2F', '/'))
|
49
|
-
|
50
|
-
# query parameters
|
51
|
-
query_params = opts[:query_params] || {}
|
52
|
-
query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
|
53
|
-
query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
|
54
|
-
|
55
|
-
# header parameters
|
56
|
-
header_params = opts[:header_params] || {}
|
57
|
-
# HTTP header 'Accept' (if needed)
|
58
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
59
|
-
|
60
|
-
# form parameters
|
61
|
-
form_params = opts[:form_params] || {}
|
62
|
-
|
63
|
-
# http body (model)
|
64
|
-
post_body = opts[:body]
|
65
|
-
|
66
|
-
# return_type
|
67
|
-
return_type = opts[:return_type] || 'GalaxyCollectionResponse'
|
68
|
-
|
69
|
-
# auth_names
|
70
|
-
auth_names = opts[:auth_names] || []
|
71
|
-
|
72
|
-
new_options = opts.merge(
|
73
|
-
:header_params => header_params,
|
74
|
-
:query_params => query_params,
|
75
|
-
:form_params => form_params,
|
76
|
-
:body => post_body,
|
77
|
-
:auth_names => auth_names,
|
78
|
-
:return_type => return_type
|
79
|
-
)
|
80
|
-
|
81
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
82
|
-
if @api_client.config.debugging
|
83
|
-
@api_client.config.logger.debug "API called: GalaxyDetailApi#get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
84
|
-
end
|
85
|
-
return data, status_code, headers
|
86
|
-
end
|
87
|
-
end
|
88
|
-
end
|