pulp_ansible_client 0.12.1 → 0.13.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +52 -5
- data/docs/AnsibleAnsibleRepository.md +3 -1
- data/docs/AnsibleAnsibleRepositoryResponse.md +3 -1
- data/docs/AnsibleCollectionVersionResponse.md +4 -4
- data/docs/AnsibleCollectionVersionSignature.md +21 -0
- data/docs/AnsibleCollectionVersionSignatureResponse.md +2 -2
- data/docs/AnsibleGitRemote.md +27 -27
- data/docs/AnsibleGitRemoteResponse.md +23 -23
- data/docs/AnsibleRoleResponse.md +4 -4
- data/docs/CollectionVersionListResponse.md +25 -0
- data/docs/ContentCollectionSignaturesApi.md +64 -4
- data/docs/KeyringEnum.md +16 -0
- data/docs/{PaginatedCollectionVersionResponseList.md → PaginatedCollectionVersionListResponseList.md} +3 -3
- data/docs/PatchedansibleAnsibleRepository.md +3 -1
- data/docs/PatchedansibleGitRemote.md +27 -27
- data/docs/PulpAnsibleApiV3Api.md +8 -2
- data/docs/PulpAnsibleApiV3ArtifactsCollectionsApi.md +68 -0
- data/docs/PulpAnsibleApiV3CollectionVersionsAllApi.md +8 -2
- data/docs/PulpAnsibleApiV3CollectionsAllApi.md +8 -2
- data/docs/PulpAnsibleApiV3CollectionsApi.md +81 -6
- data/docs/PulpAnsibleApiV3CollectionsVersionsApi.md +77 -6
- data/docs/PulpAnsibleApiV3CollectionsVersionsDocsBlobApi.md +8 -2
- data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsAllCollectionsApi.md +75 -0
- data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsAllVersionsApi.md +69 -0
- data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsApi.md +69 -0
- data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsArtifactsApi.md +70 -0
- data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexApi.md +264 -0
- data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexVersionsApi.md +223 -0
- data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexVersionsDocsBlobApi.md +75 -0
- data/docs/PulpAnsibleArtifactsCollectionsV3Api.md +205 -1
- data/docs/PulpAnsibleDefaultApiApi.md +50 -0
- data/docs/PulpAnsibleDefaultApiV3Api.md +57 -0
- data/docs/PulpAnsibleDefaultApiV3ArtifactsCollectionsApi.md +68 -0
- data/docs/PulpAnsibleDefaultApiV3CollectionVersionsAllApi.md +57 -0
- data/docs/PulpAnsibleDefaultApiV3CollectionsAllApi.md +71 -0
- data/docs/PulpAnsibleDefaultApiV3CollectionsApi.md +248 -0
- data/docs/PulpAnsibleDefaultApiV3CollectionsVersionsApi.md +211 -0
- data/docs/PulpAnsibleDefaultApiV3CollectionsVersionsDocsBlobApi.md +71 -0
- data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsAllCollectionsApi.md +73 -0
- data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsAllVersionsApi.md +67 -0
- data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsApi.md +67 -0
- data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsArtifactsApi.md +68 -0
- data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexApi.md +256 -0
- data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexVersionsApi.md +217 -0
- data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexVersionsDocsBlobApi.md +73 -0
- data/lib/pulp_ansible_client/api/content_collection_signatures_api.rb +79 -4
- data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_api.rb +3 -3
- data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_artifacts_collections_api.rb +92 -0
- data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_collection_versions_all_api.rb +3 -3
- data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_collections_all_api.rb +3 -3
- data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_collections_api.rb +81 -9
- data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_collections_versions_api.rb +87 -9
- data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_collections_versions_docs_blob_api.rb +3 -3
- data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_collections_all_collections_api.rb +103 -0
- data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_collections_all_versions_api.rb +94 -0
- data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_collections_api.rb +94 -0
- data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_collections_artifacts_api.rb +98 -0
- data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_api.rb +357 -0
- data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_versions_api.rb +313 -0
- data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_versions_docs_blob_api.rb +112 -0
- data/lib/pulp_ansible_client/api/pulp_ansible_artifacts_collections_v3_api.rb +298 -1
- data/lib/pulp_ansible_client/api/pulp_ansible_default_api_api.rb +74 -0
- data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_api.rb +76 -0
- data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_artifacts_collections_api.rb +92 -0
- data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_collection_versions_all_api.rb +76 -0
- data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_collections_all_api.rb +91 -0
- data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_collections_api.rb +309 -0
- data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_collections_versions_api.rb +277 -0
- data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_collections_versions_docs_blob_api.rb +100 -0
- data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_all_collections_api.rb +97 -0
- data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_all_versions_api.rb +88 -0
- data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_api.rb +88 -0
- data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_artifacts_api.rb +92 -0
- data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_api.rb +333 -0
- data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_versions_api.rb +295 -0
- data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_versions_docs_blob_api.rb +106 -0
- data/lib/pulp_ansible_client/models/ansible_ansible_repository.rb +15 -5
- data/lib/pulp_ansible_client/models/ansible_ansible_repository_response.rb +15 -5
- data/lib/pulp_ansible_client/models/ansible_collection_version_response.rb +14 -14
- data/lib/pulp_ansible_client/models/ansible_collection_version_signature.rb +238 -0
- data/lib/pulp_ansible_client/models/ansible_collection_version_signature_response.rb +0 -5
- data/lib/pulp_ansible_client/models/ansible_git_remote.rb +225 -225
- data/lib/pulp_ansible_client/models/ansible_git_remote_response.rb +130 -130
- data/lib/pulp_ansible_client/models/ansible_role_response.rb +14 -14
- data/lib/pulp_ansible_client/models/collection_version_list_response.rb +269 -0
- data/lib/pulp_ansible_client/models/keyring_enum.rb +40 -0
- data/lib/pulp_ansible_client/models/{paginated_collection_version_response_list.rb → paginated_collection_version_list_response_list.rb} +4 -4
- data/lib/pulp_ansible_client/models/patchedansible_ansible_repository.rb +15 -5
- data/lib/pulp_ansible_client/models/patchedansible_git_remote.rb +220 -220
- data/lib/pulp_ansible_client/version.rb +1 -1
- data/lib/pulp_ansible_client.rb +27 -1
- data/spec/api/content_collection_signatures_api_spec.rb +16 -2
- data/spec/api/pulp_ansible_api_v3_api_spec.rb +1 -1
- data/spec/api/pulp_ansible_api_v3_artifacts_collections_api_spec.rb +49 -0
- data/spec/api/pulp_ansible_api_v3_collection_versions_all_api_spec.rb +1 -1
- data/spec/api/pulp_ansible_api_v3_collections_all_api_spec.rb +1 -1
- data/spec/api/pulp_ansible_api_v3_collections_api_spec.rb +16 -3
- data/spec/api/pulp_ansible_api_v3_collections_versions_api_spec.rb +17 -3
- data/spec/api/pulp_ansible_api_v3_collections_versions_docs_blob_api_spec.rb +1 -1
- data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_collections_all_collections_api_spec.rb +52 -0
- data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_collections_all_versions_api_spec.rb +49 -0
- data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_collections_api_spec.rb +49 -0
- data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_collections_artifacts_api_spec.rb +50 -0
- data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_api_spec.rb +99 -0
- data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_versions_api_spec.rb +94 -0
- data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_versions_docs_blob_api_spec.rb +52 -0
- data/spec/api/pulp_ansible_artifacts_collections_v3_api_spec.rb +51 -0
- data/spec/api/pulp_ansible_default_api_api_spec.rb +45 -0
- data/spec/api/pulp_ansible_default_api_v3_api_spec.rb +45 -0
- data/spec/api/pulp_ansible_default_api_v3_artifacts_collections_api_spec.rb +49 -0
- data/spec/api/pulp_ansible_default_api_v3_collection_versions_all_api_spec.rb +45 -0
- data/spec/api/pulp_ansible_default_api_v3_collections_all_api_spec.rb +50 -0
- data/spec/api/pulp_ansible_default_api_v3_collections_api_spec.rb +91 -0
- data/spec/api/pulp_ansible_default_api_v3_collections_versions_api_spec.rb +88 -0
- data/spec/api/pulp_ansible_default_api_v3_collections_versions_docs_blob_api_spec.rb +50 -0
- data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_all_collections_api_spec.rb +51 -0
- data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_all_versions_api_spec.rb +48 -0
- data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_api_spec.rb +48 -0
- data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_artifacts_api_spec.rb +49 -0
- data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_api_spec.rb +95 -0
- data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_versions_api_spec.rb +91 -0
- data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_versions_docs_blob_api_spec.rb +51 -0
- data/spec/models/ansible_ansible_repository_response_spec.rb +6 -0
- data/spec/models/ansible_ansible_repository_spec.rb +6 -0
- data/spec/models/ansible_collection_version_response_spec.rb +2 -2
- data/spec/models/ansible_collection_version_signature_spec.rb +53 -0
- data/spec/models/ansible_git_remote_response_spec.rb +18 -18
- data/spec/models/ansible_git_remote_spec.rb +19 -19
- data/spec/models/ansible_role_response_spec.rb +2 -2
- data/spec/models/collection_version_list_response_spec.rb +65 -0
- data/spec/models/keyring_enum_spec.rb +35 -0
- data/spec/models/{paginated_collection_version_response_list_spec.rb → paginated_collection_version_list_response_list_spec.rb} +6 -6
- data/spec/models/patchedansible_ansible_repository_spec.rb +6 -0
- data/spec/models/patchedansible_git_remote_spec.rb +19 -19
- metadata +109 -5
@@ -0,0 +1,75 @@
|
|
1
|
+
# PulpAnsibleClient::PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexVersionsDocsBlobApi
|
2
|
+
|
3
|
+
All URIs are relative to *https://pulp*
|
4
|
+
|
5
|
+
Method | HTTP request | Description
|
6
|
+
------------- | ------------- | -------------
|
7
|
+
[**read**](PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexVersionsDocsBlobApi.md#read) | **GET** /pulp_ansible/galaxy/{path}/api/v3/plugin/ansible/content/{distro_base_path}/collections/index/{namespace}/{name}/versions/{version}/docs-blob/ |
|
8
|
+
|
9
|
+
|
10
|
+
|
11
|
+
## read
|
12
|
+
|
13
|
+
> CollectionVersionDocsResponse read(distro_base_path, name, namespace, path, version, opts)
|
14
|
+
|
15
|
+
|
16
|
+
|
17
|
+
Returns a CollectionVersion object.
|
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::PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexVersionsDocsBlobApi.new
|
32
|
+
distro_base_path = 'distro_base_path_example' # String |
|
33
|
+
name = 'name_example' # String |
|
34
|
+
namespace = 'namespace_example' # String |
|
35
|
+
path = 'path_example' # String |
|
36
|
+
version = 'version_example' # String |
|
37
|
+
opts = {
|
38
|
+
fields: 'fields_example', # String | A list of fields to include in the response.
|
39
|
+
exclude_fields: 'exclude_fields_example' # String | A list of fields to exclude from the response.
|
40
|
+
}
|
41
|
+
|
42
|
+
begin
|
43
|
+
result = api_instance.read(distro_base_path, name, namespace, path, version, opts)
|
44
|
+
p result
|
45
|
+
rescue PulpAnsibleClient::ApiError => e
|
46
|
+
puts "Exception when calling PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexVersionsDocsBlobApi->read: #{e}"
|
47
|
+
end
|
48
|
+
```
|
49
|
+
|
50
|
+
### Parameters
|
51
|
+
|
52
|
+
|
53
|
+
Name | Type | Description | Notes
|
54
|
+
------------- | ------------- | ------------- | -------------
|
55
|
+
**distro_base_path** | **String**| |
|
56
|
+
**name** | **String**| |
|
57
|
+
**namespace** | **String**| |
|
58
|
+
**path** | **String**| |
|
59
|
+
**version** | **String**| |
|
60
|
+
**fields** | **String**| A list of fields to include in the response. | [optional]
|
61
|
+
**exclude_fields** | **String**| A list of fields to exclude from the response. | [optional]
|
62
|
+
|
63
|
+
### Return type
|
64
|
+
|
65
|
+
[**CollectionVersionDocsResponse**](CollectionVersionDocsResponse.md)
|
66
|
+
|
67
|
+
### Authorization
|
68
|
+
|
69
|
+
[basicAuth](../README.md#basicAuth)
|
70
|
+
|
71
|
+
### HTTP request headers
|
72
|
+
|
73
|
+
- **Content-Type**: Not defined
|
74
|
+
- **Accept**: application/json
|
75
|
+
|
@@ -5,6 +5,9 @@ All URIs are relative to *https://pulp*
|
|
5
5
|
Method | HTTP request | Description
|
6
6
|
------------- | ------------- | -------------
|
7
7
|
[**create**](PulpAnsibleArtifactsCollectionsV3Api.md#create) | **POST** /pulp_ansible/galaxy/{path}/api/v3/artifacts/collections/ | Upload a collection
|
8
|
+
[**create_0**](PulpAnsibleArtifactsCollectionsV3Api.md#create_0) | **POST** /pulp_ansible/galaxy/{path}/api/v3/plugin/ansible/content/{distro_base_path}/collections/artifacts/ | Upload a collection
|
9
|
+
[**create_1**](PulpAnsibleArtifactsCollectionsV3Api.md#create_1) | **POST** /pulp_ansible/galaxy/default/api/v3/artifacts/collections/ | Upload a collection
|
10
|
+
[**create_2**](PulpAnsibleArtifactsCollectionsV3Api.md#create_2) | **POST** /pulp_ansible/galaxy/default/api/v3/plugin/ansible/content/{distro_base_path}/collections/artifacts/ | Upload a collection
|
8
11
|
|
9
12
|
|
10
13
|
|
@@ -21,6 +24,12 @@ Create an artifact and trigger an asynchronous task to create Collection content
|
|
21
24
|
```ruby
|
22
25
|
# load the gem
|
23
26
|
require 'pulp_ansible_client'
|
27
|
+
# setup authorization
|
28
|
+
PulpAnsibleClient.configure do |config|
|
29
|
+
# Configure HTTP basic authorization: basicAuth
|
30
|
+
config.username = 'YOUR USERNAME'
|
31
|
+
config.password = 'YOUR PASSWORD'
|
32
|
+
end
|
24
33
|
|
25
34
|
api_instance = PulpAnsibleClient::PulpAnsibleArtifactsCollectionsV3Api.new
|
26
35
|
path = 'path_example' # String |
|
@@ -59,7 +68,202 @@ Name | Type | Description | Notes
|
|
59
68
|
|
60
69
|
### Authorization
|
61
70
|
|
62
|
-
|
71
|
+
[basicAuth](../README.md#basicAuth)
|
72
|
+
|
73
|
+
### HTTP request headers
|
74
|
+
|
75
|
+
- **Content-Type**: multipart/form-data, application/x-www-form-urlencoded
|
76
|
+
- **Accept**: application/json
|
77
|
+
|
78
|
+
|
79
|
+
## create_0
|
80
|
+
|
81
|
+
> AsyncOperationResponse create_0(distro_base_path, path, file, opts)
|
82
|
+
|
83
|
+
Upload a collection
|
84
|
+
|
85
|
+
Create an artifact and trigger an asynchronous task to create Collection content from it.
|
86
|
+
|
87
|
+
### Example
|
88
|
+
|
89
|
+
```ruby
|
90
|
+
# load the gem
|
91
|
+
require 'pulp_ansible_client'
|
92
|
+
# setup authorization
|
93
|
+
PulpAnsibleClient.configure do |config|
|
94
|
+
# Configure HTTP basic authorization: basicAuth
|
95
|
+
config.username = 'YOUR USERNAME'
|
96
|
+
config.password = 'YOUR PASSWORD'
|
97
|
+
end
|
98
|
+
|
99
|
+
api_instance = PulpAnsibleClient::PulpAnsibleArtifactsCollectionsV3Api.new
|
100
|
+
distro_base_path = 'distro_base_path_example' # String |
|
101
|
+
path = 'path_example' # String |
|
102
|
+
file = File.new('/path/to/file') # File | The Collection tarball.
|
103
|
+
opts = {
|
104
|
+
sha256: 'sha256_example', # String | An optional sha256 checksum of the uploaded file.
|
105
|
+
expected_namespace: 'expected_namespace_example', # String | The expected 'namespace' of the Collection to be verified against the metadata during import.
|
106
|
+
expected_name: 'expected_name_example', # String | The expected 'name' of the Collection to be verified against the metadata during import.
|
107
|
+
expected_version: 'expected_version_example' # String | The expected version of the Collection to be verified against the metadata during import.
|
108
|
+
}
|
109
|
+
|
110
|
+
begin
|
111
|
+
#Upload a collection
|
112
|
+
result = api_instance.create_0(distro_base_path, path, file, opts)
|
113
|
+
p result
|
114
|
+
rescue PulpAnsibleClient::ApiError => e
|
115
|
+
puts "Exception when calling PulpAnsibleArtifactsCollectionsV3Api->create_0: #{e}"
|
116
|
+
end
|
117
|
+
```
|
118
|
+
|
119
|
+
### Parameters
|
120
|
+
|
121
|
+
|
122
|
+
Name | Type | Description | Notes
|
123
|
+
------------- | ------------- | ------------- | -------------
|
124
|
+
**distro_base_path** | **String**| |
|
125
|
+
**path** | **String**| |
|
126
|
+
**file** | **File**| The Collection tarball. |
|
127
|
+
**sha256** | **String**| An optional sha256 checksum of the uploaded file. | [optional]
|
128
|
+
**expected_namespace** | **String**| The expected 'namespace' of the Collection to be verified against the metadata during import. | [optional]
|
129
|
+
**expected_name** | **String**| The expected 'name' of the Collection to be verified against the metadata during import. | [optional]
|
130
|
+
**expected_version** | **String**| The expected version of the Collection to be verified against the metadata during import. | [optional]
|
131
|
+
|
132
|
+
### Return type
|
133
|
+
|
134
|
+
[**AsyncOperationResponse**](AsyncOperationResponse.md)
|
135
|
+
|
136
|
+
### Authorization
|
137
|
+
|
138
|
+
[basicAuth](../README.md#basicAuth)
|
139
|
+
|
140
|
+
### HTTP request headers
|
141
|
+
|
142
|
+
- **Content-Type**: multipart/form-data, application/x-www-form-urlencoded
|
143
|
+
- **Accept**: application/json
|
144
|
+
|
145
|
+
|
146
|
+
## create_1
|
147
|
+
|
148
|
+
> AsyncOperationResponse create_1(file, opts)
|
149
|
+
|
150
|
+
Upload a collection
|
151
|
+
|
152
|
+
Create an artifact and trigger an asynchronous task to create Collection content from it.
|
153
|
+
|
154
|
+
### Example
|
155
|
+
|
156
|
+
```ruby
|
157
|
+
# load the gem
|
158
|
+
require 'pulp_ansible_client'
|
159
|
+
# setup authorization
|
160
|
+
PulpAnsibleClient.configure do |config|
|
161
|
+
# Configure HTTP basic authorization: basicAuth
|
162
|
+
config.username = 'YOUR USERNAME'
|
163
|
+
config.password = 'YOUR PASSWORD'
|
164
|
+
end
|
165
|
+
|
166
|
+
api_instance = PulpAnsibleClient::PulpAnsibleArtifactsCollectionsV3Api.new
|
167
|
+
file = File.new('/path/to/file') # File | The Collection tarball.
|
168
|
+
opts = {
|
169
|
+
sha256: 'sha256_example', # String | An optional sha256 checksum of the uploaded file.
|
170
|
+
expected_namespace: 'expected_namespace_example', # String | The expected 'namespace' of the Collection to be verified against the metadata during import.
|
171
|
+
expected_name: 'expected_name_example', # String | The expected 'name' of the Collection to be verified against the metadata during import.
|
172
|
+
expected_version: 'expected_version_example' # String | The expected version of the Collection to be verified against the metadata during import.
|
173
|
+
}
|
174
|
+
|
175
|
+
begin
|
176
|
+
#Upload a collection
|
177
|
+
result = api_instance.create_1(file, opts)
|
178
|
+
p result
|
179
|
+
rescue PulpAnsibleClient::ApiError => e
|
180
|
+
puts "Exception when calling PulpAnsibleArtifactsCollectionsV3Api->create_1: #{e}"
|
181
|
+
end
|
182
|
+
```
|
183
|
+
|
184
|
+
### Parameters
|
185
|
+
|
186
|
+
|
187
|
+
Name | Type | Description | Notes
|
188
|
+
------------- | ------------- | ------------- | -------------
|
189
|
+
**file** | **File**| The Collection tarball. |
|
190
|
+
**sha256** | **String**| An optional sha256 checksum of the uploaded file. | [optional]
|
191
|
+
**expected_namespace** | **String**| The expected 'namespace' of the Collection to be verified against the metadata during import. | [optional]
|
192
|
+
**expected_name** | **String**| The expected 'name' of the Collection to be verified against the metadata during import. | [optional]
|
193
|
+
**expected_version** | **String**| The expected version of the Collection to be verified against the metadata during import. | [optional]
|
194
|
+
|
195
|
+
### Return type
|
196
|
+
|
197
|
+
[**AsyncOperationResponse**](AsyncOperationResponse.md)
|
198
|
+
|
199
|
+
### Authorization
|
200
|
+
|
201
|
+
[basicAuth](../README.md#basicAuth)
|
202
|
+
|
203
|
+
### HTTP request headers
|
204
|
+
|
205
|
+
- **Content-Type**: multipart/form-data, application/x-www-form-urlencoded
|
206
|
+
- **Accept**: application/json
|
207
|
+
|
208
|
+
|
209
|
+
## create_2
|
210
|
+
|
211
|
+
> AsyncOperationResponse create_2(distro_base_path, file, opts)
|
212
|
+
|
213
|
+
Upload a collection
|
214
|
+
|
215
|
+
Create an artifact and trigger an asynchronous task to create Collection content from it.
|
216
|
+
|
217
|
+
### Example
|
218
|
+
|
219
|
+
```ruby
|
220
|
+
# load the gem
|
221
|
+
require 'pulp_ansible_client'
|
222
|
+
# setup authorization
|
223
|
+
PulpAnsibleClient.configure do |config|
|
224
|
+
# Configure HTTP basic authorization: basicAuth
|
225
|
+
config.username = 'YOUR USERNAME'
|
226
|
+
config.password = 'YOUR PASSWORD'
|
227
|
+
end
|
228
|
+
|
229
|
+
api_instance = PulpAnsibleClient::PulpAnsibleArtifactsCollectionsV3Api.new
|
230
|
+
distro_base_path = 'distro_base_path_example' # String |
|
231
|
+
file = File.new('/path/to/file') # File | The Collection tarball.
|
232
|
+
opts = {
|
233
|
+
sha256: 'sha256_example', # String | An optional sha256 checksum of the uploaded file.
|
234
|
+
expected_namespace: 'expected_namespace_example', # String | The expected 'namespace' of the Collection to be verified against the metadata during import.
|
235
|
+
expected_name: 'expected_name_example', # String | The expected 'name' of the Collection to be verified against the metadata during import.
|
236
|
+
expected_version: 'expected_version_example' # String | The expected version of the Collection to be verified against the metadata during import.
|
237
|
+
}
|
238
|
+
|
239
|
+
begin
|
240
|
+
#Upload a collection
|
241
|
+
result = api_instance.create_2(distro_base_path, file, opts)
|
242
|
+
p result
|
243
|
+
rescue PulpAnsibleClient::ApiError => e
|
244
|
+
puts "Exception when calling PulpAnsibleArtifactsCollectionsV3Api->create_2: #{e}"
|
245
|
+
end
|
246
|
+
```
|
247
|
+
|
248
|
+
### Parameters
|
249
|
+
|
250
|
+
|
251
|
+
Name | Type | Description | Notes
|
252
|
+
------------- | ------------- | ------------- | -------------
|
253
|
+
**distro_base_path** | **String**| |
|
254
|
+
**file** | **File**| The Collection tarball. |
|
255
|
+
**sha256** | **String**| An optional sha256 checksum of the uploaded file. | [optional]
|
256
|
+
**expected_namespace** | **String**| The expected 'namespace' of the Collection to be verified against the metadata during import. | [optional]
|
257
|
+
**expected_name** | **String**| The expected 'name' of the Collection to be verified against the metadata during import. | [optional]
|
258
|
+
**expected_version** | **String**| The expected version of the Collection to be verified against the metadata during import. | [optional]
|
259
|
+
|
260
|
+
### Return type
|
261
|
+
|
262
|
+
[**AsyncOperationResponse**](AsyncOperationResponse.md)
|
263
|
+
|
264
|
+
### Authorization
|
265
|
+
|
266
|
+
[basicAuth](../README.md#basicAuth)
|
63
267
|
|
64
268
|
### HTTP request headers
|
65
269
|
|
@@ -0,0 +1,50 @@
|
|
1
|
+
# PulpAnsibleClient::PulpAnsibleDefaultApiApi
|
2
|
+
|
3
|
+
All URIs are relative to *https://pulp*
|
4
|
+
|
5
|
+
Method | HTTP request | Description
|
6
|
+
------------- | ------------- | -------------
|
7
|
+
[**get**](PulpAnsibleDefaultApiApi.md#get) | **GET** /pulp_ansible/galaxy/default/api/ |
|
8
|
+
|
9
|
+
|
10
|
+
|
11
|
+
## get
|
12
|
+
|
13
|
+
> get
|
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::PulpAnsibleDefaultApiApi.new
|
26
|
+
|
27
|
+
begin
|
28
|
+
api_instance.get
|
29
|
+
rescue PulpAnsibleClient::ApiError => e
|
30
|
+
puts "Exception when calling PulpAnsibleDefaultApiApi->get: #{e}"
|
31
|
+
end
|
32
|
+
```
|
33
|
+
|
34
|
+
### Parameters
|
35
|
+
|
36
|
+
This endpoint does not need any parameter.
|
37
|
+
|
38
|
+
### Return type
|
39
|
+
|
40
|
+
nil (empty response body)
|
41
|
+
|
42
|
+
### Authorization
|
43
|
+
|
44
|
+
No authorization required
|
45
|
+
|
46
|
+
### HTTP request headers
|
47
|
+
|
48
|
+
- **Content-Type**: Not defined
|
49
|
+
- **Accept**: Not defined
|
50
|
+
|
@@ -0,0 +1,57 @@
|
|
1
|
+
# PulpAnsibleClient::PulpAnsibleDefaultApiV3Api
|
2
|
+
|
3
|
+
All URIs are relative to *https://pulp*
|
4
|
+
|
5
|
+
Method | HTTP request | Description
|
6
|
+
------------- | ------------- | -------------
|
7
|
+
[**read**](PulpAnsibleDefaultApiV3Api.md#read) | **GET** /pulp_ansible/galaxy/default/api/v3/ |
|
8
|
+
|
9
|
+
|
10
|
+
|
11
|
+
## read
|
12
|
+
|
13
|
+
> RepoMetadataResponse read
|
14
|
+
|
15
|
+
|
16
|
+
|
17
|
+
Legacy v3 endpoint.
|
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::PulpAnsibleDefaultApiV3Api.new
|
32
|
+
|
33
|
+
begin
|
34
|
+
result = api_instance.read
|
35
|
+
p result
|
36
|
+
rescue PulpAnsibleClient::ApiError => e
|
37
|
+
puts "Exception when calling PulpAnsibleDefaultApiV3Api->read: #{e}"
|
38
|
+
end
|
39
|
+
```
|
40
|
+
|
41
|
+
### Parameters
|
42
|
+
|
43
|
+
This endpoint does not need any parameter.
|
44
|
+
|
45
|
+
### Return type
|
46
|
+
|
47
|
+
[**RepoMetadataResponse**](RepoMetadataResponse.md)
|
48
|
+
|
49
|
+
### Authorization
|
50
|
+
|
51
|
+
[basicAuth](../README.md#basicAuth)
|
52
|
+
|
53
|
+
### HTTP request headers
|
54
|
+
|
55
|
+
- **Content-Type**: Not defined
|
56
|
+
- **Accept**: application/json
|
57
|
+
|
@@ -0,0 +1,68 @@
|
|
1
|
+
# PulpAnsibleClient::PulpAnsibleDefaultApiV3ArtifactsCollectionsApi
|
2
|
+
|
3
|
+
All URIs are relative to *https://pulp*
|
4
|
+
|
5
|
+
Method | HTTP request | Description
|
6
|
+
------------- | ------------- | -------------
|
7
|
+
[**get**](PulpAnsibleDefaultApiV3ArtifactsCollectionsApi.md#get) | **GET** /pulp_ansible/galaxy/default/api/v3/artifacts/collections/{path}/{filename} |
|
8
|
+
|
9
|
+
|
10
|
+
|
11
|
+
## get
|
12
|
+
|
13
|
+
> get(filename, path, opts)
|
14
|
+
|
15
|
+
|
16
|
+
|
17
|
+
Download collection.
|
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::PulpAnsibleDefaultApiV3ArtifactsCollectionsApi.new
|
32
|
+
filename = 'filename_example' # String |
|
33
|
+
path = 'path_example' # String |
|
34
|
+
opts = {
|
35
|
+
fields: 'fields_example', # String | A list of fields to include in the response.
|
36
|
+
exclude_fields: 'exclude_fields_example' # String | A list of fields to exclude from the response.
|
37
|
+
}
|
38
|
+
|
39
|
+
begin
|
40
|
+
api_instance.get(filename, path, opts)
|
41
|
+
rescue PulpAnsibleClient::ApiError => e
|
42
|
+
puts "Exception when calling PulpAnsibleDefaultApiV3ArtifactsCollectionsApi->get: #{e}"
|
43
|
+
end
|
44
|
+
```
|
45
|
+
|
46
|
+
### Parameters
|
47
|
+
|
48
|
+
|
49
|
+
Name | Type | Description | Notes
|
50
|
+
------------- | ------------- | ------------- | -------------
|
51
|
+
**filename** | **String**| |
|
52
|
+
**path** | **String**| |
|
53
|
+
**fields** | **String**| A list of fields to include in the response. | [optional]
|
54
|
+
**exclude_fields** | **String**| A list of fields to exclude from the response. | [optional]
|
55
|
+
|
56
|
+
### Return type
|
57
|
+
|
58
|
+
nil (empty response body)
|
59
|
+
|
60
|
+
### Authorization
|
61
|
+
|
62
|
+
[basicAuth](../README.md#basicAuth)
|
63
|
+
|
64
|
+
### HTTP request headers
|
65
|
+
|
66
|
+
- **Content-Type**: Not defined
|
67
|
+
- **Accept**: Not defined
|
68
|
+
|
@@ -0,0 +1,57 @@
|
|
1
|
+
# PulpAnsibleClient::PulpAnsibleDefaultApiV3CollectionVersionsAllApi
|
2
|
+
|
3
|
+
All URIs are relative to *https://pulp*
|
4
|
+
|
5
|
+
Method | HTTP request | Description
|
6
|
+
------------- | ------------- | -------------
|
7
|
+
[**list**](PulpAnsibleDefaultApiV3CollectionVersionsAllApi.md#list) | **GET** /pulp_ansible/galaxy/default/api/v3/collection_versions/all/ |
|
8
|
+
|
9
|
+
|
10
|
+
|
11
|
+
## list
|
12
|
+
|
13
|
+
> Array<UnpaginatedCollectionVersionResponse> list
|
14
|
+
|
15
|
+
|
16
|
+
|
17
|
+
Legacy v3 endpoint.
|
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::PulpAnsibleDefaultApiV3CollectionVersionsAllApi.new
|
32
|
+
|
33
|
+
begin
|
34
|
+
result = api_instance.list
|
35
|
+
p result
|
36
|
+
rescue PulpAnsibleClient::ApiError => e
|
37
|
+
puts "Exception when calling PulpAnsibleDefaultApiV3CollectionVersionsAllApi->list: #{e}"
|
38
|
+
end
|
39
|
+
```
|
40
|
+
|
41
|
+
### Parameters
|
42
|
+
|
43
|
+
This endpoint does not need any parameter.
|
44
|
+
|
45
|
+
### Return type
|
46
|
+
|
47
|
+
[**Array<UnpaginatedCollectionVersionResponse>**](UnpaginatedCollectionVersionResponse.md)
|
48
|
+
|
49
|
+
### Authorization
|
50
|
+
|
51
|
+
[basicAuth](../README.md#basicAuth)
|
52
|
+
|
53
|
+
### HTTP request headers
|
54
|
+
|
55
|
+
- **Content-Type**: Not defined
|
56
|
+
- **Accept**: application/json
|
57
|
+
|
@@ -0,0 +1,71 @@
|
|
1
|
+
# PulpAnsibleClient::PulpAnsibleDefaultApiV3CollectionsAllApi
|
2
|
+
|
3
|
+
All URIs are relative to *https://pulp*
|
4
|
+
|
5
|
+
Method | HTTP request | Description
|
6
|
+
------------- | ------------- | -------------
|
7
|
+
[**list**](PulpAnsibleDefaultApiV3CollectionsAllApi.md#list) | **GET** /pulp_ansible/galaxy/default/api/v3/collections/all/ |
|
8
|
+
|
9
|
+
|
10
|
+
|
11
|
+
## list
|
12
|
+
|
13
|
+
> Array<CollectionResponse> list(opts)
|
14
|
+
|
15
|
+
|
16
|
+
|
17
|
+
Legacy v3 endpoint.
|
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::PulpAnsibleDefaultApiV3CollectionsAllApi.new
|
32
|
+
opts = {
|
33
|
+
deprecated: true, # Boolean |
|
34
|
+
name: 'name_example', # String |
|
35
|
+
namespace: 'namespace_example', # String |
|
36
|
+
fields: 'fields_example', # String | A list of fields to include in the response.
|
37
|
+
exclude_fields: 'exclude_fields_example' # String | A list of fields to exclude from the response.
|
38
|
+
}
|
39
|
+
|
40
|
+
begin
|
41
|
+
result = api_instance.list(opts)
|
42
|
+
p result
|
43
|
+
rescue PulpAnsibleClient::ApiError => e
|
44
|
+
puts "Exception when calling PulpAnsibleDefaultApiV3CollectionsAllApi->list: #{e}"
|
45
|
+
end
|
46
|
+
```
|
47
|
+
|
48
|
+
### Parameters
|
49
|
+
|
50
|
+
|
51
|
+
Name | Type | Description | Notes
|
52
|
+
------------- | ------------- | ------------- | -------------
|
53
|
+
**deprecated** | **Boolean**| | [optional]
|
54
|
+
**name** | **String**| | [optional]
|
55
|
+
**namespace** | **String**| | [optional]
|
56
|
+
**fields** | **String**| A list of fields to include in the response. | [optional]
|
57
|
+
**exclude_fields** | **String**| A list of fields to exclude from the response. | [optional]
|
58
|
+
|
59
|
+
### Return type
|
60
|
+
|
61
|
+
[**Array<CollectionResponse>**](CollectionResponse.md)
|
62
|
+
|
63
|
+
### Authorization
|
64
|
+
|
65
|
+
[basicAuth](../README.md#basicAuth)
|
66
|
+
|
67
|
+
### HTTP request headers
|
68
|
+
|
69
|
+
- **Content-Type**: Not defined
|
70
|
+
- **Accept**: application/json
|
71
|
+
|