pulp_ansible_client 0.2.0b6 → 0.2.0b7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +6 -4
- data/docs/RepositoriesAnsibleApi.md +55 -0
- data/docs/RepositoriesAnsibleVersionsApi.md +4 -4
- data/docs/RepositoryAddRemoveContent.md +21 -0
- data/lib/pulp_ansible_client/api/ansible_collections_api.rb +1 -1
- data/lib/pulp_ansible_client/api/content_collection_versions_api.rb +1 -1
- data/lib/pulp_ansible_client/api/content_roles_api.rb +1 -1
- data/lib/pulp_ansible_client/api/distributions_ansible_api.rb +1 -1
- data/lib/pulp_ansible_client/api/pulp_ansible_api_api.rb +1 -1
- data/lib/pulp_ansible_client/api/pulp_ansible_galaxy_api_collections_api.rb +1 -1
- data/lib/pulp_ansible_client/api/pulp_ansible_galaxy_api_roles_api.rb +1 -1
- data/lib/pulp_ansible_client/api/pulp_ansible_galaxy_api_v1_versions_api.rb +1 -1
- data/lib/pulp_ansible_client/api/pulp_ansible_galaxy_api_v2_versions_api.rb +1 -1
- data/lib/pulp_ansible_client/api/pulp_ansible_galaxy_api_v3_collections_api.rb +1 -1
- data/lib/pulp_ansible_client/api/pulp_ansible_tags_api.rb +1 -1
- data/lib/pulp_ansible_client/api/remotes_ansible_api.rb +1 -1
- data/lib/pulp_ansible_client/api/remotes_collection_api.rb +1 -1
- data/lib/pulp_ansible_client/api/repositories_ansible_api.rb +69 -1
- data/lib/pulp_ansible_client/api/repositories_ansible_versions_api.rb +10 -10
- data/lib/pulp_ansible_client/api_client.rb +1 -1
- data/lib/pulp_ansible_client/api_error.rb +1 -1
- data/lib/pulp_ansible_client/configuration.rb +2 -2
- data/lib/pulp_ansible_client/models/ansible_ansible_distribution.rb +1 -1
- data/lib/pulp_ansible_client/models/ansible_ansible_remote.rb +1 -1
- data/lib/pulp_ansible_client/models/ansible_ansible_repository.rb +1 -1
- data/lib/pulp_ansible_client/models/ansible_collection.rb +1 -1
- data/lib/pulp_ansible_client/models/ansible_collection_remote.rb +1 -1
- data/lib/pulp_ansible_client/models/ansible_collection_version.rb +1 -1
- data/lib/pulp_ansible_client/models/ansible_role.rb +1 -1
- data/lib/pulp_ansible_client/models/ansible_tag.rb +1 -1
- data/lib/pulp_ansible_client/models/async_operation_response.rb +1 -1
- data/lib/pulp_ansible_client/models/collection.rb +1 -1
- data/lib/pulp_ansible_client/models/collection_import_detail.rb +1 -1
- data/lib/pulp_ansible_client/models/collection_metadata.rb +1 -1
- data/lib/pulp_ansible_client/models/collection_namespace.rb +1 -1
- data/lib/pulp_ansible_client/models/collection_ref.rb +1 -1
- data/lib/pulp_ansible_client/models/collection_version.rb +1 -1
- data/lib/pulp_ansible_client/models/content_summary.rb +1 -1
- data/lib/pulp_ansible_client/models/galaxy_collection.rb +1 -1
- data/lib/pulp_ansible_client/models/galaxy_collection_version.rb +1 -1
- data/lib/pulp_ansible_client/models/galaxy_role.rb +1 -1
- data/lib/pulp_ansible_client/models/galaxy_role_version.rb +1 -1
- data/lib/pulp_ansible_client/models/inline_response200.rb +1 -1
- data/lib/pulp_ansible_client/models/inline_response2001.rb +1 -1
- data/lib/pulp_ansible_client/models/inline_response20010.rb +1 -1
- data/lib/pulp_ansible_client/models/inline_response20011.rb +1 -1
- data/lib/pulp_ansible_client/models/inline_response20012.rb +1 -1
- data/lib/pulp_ansible_client/models/inline_response20013.rb +1 -1
- data/lib/pulp_ansible_client/models/inline_response2002.rb +1 -1
- data/lib/pulp_ansible_client/models/inline_response2003.rb +1 -1
- data/lib/pulp_ansible_client/models/inline_response2004.rb +1 -1
- data/lib/pulp_ansible_client/models/inline_response2005.rb +1 -1
- data/lib/pulp_ansible_client/models/inline_response2006.rb +1 -1
- data/lib/pulp_ansible_client/models/inline_response2007.rb +1 -1
- data/lib/pulp_ansible_client/models/inline_response2008.rb +1 -1
- data/lib/pulp_ansible_client/models/inline_response2009.rb +1 -1
- data/lib/pulp_ansible_client/models/repository_add_remove_content.rb +231 -0
- data/lib/pulp_ansible_client/models/repository_sync_url.rb +1 -1
- data/lib/pulp_ansible_client/models/repository_version.rb +1 -1
- data/lib/pulp_ansible_client/models/tag.rb +1 -1
- data/lib/pulp_ansible_client/version.rb +2 -2
- data/lib/pulp_ansible_client.rb +2 -1
- data/pulp_ansible_client.gemspec +2 -2
- data/spec/api/ansible_collections_api_spec.rb +1 -1
- data/spec/api/content_collection_versions_api_spec.rb +1 -1
- data/spec/api/content_roles_api_spec.rb +1 -1
- data/spec/api/distributions_ansible_api_spec.rb +1 -1
- data/spec/api/pulp_ansible_api_api_spec.rb +1 -1
- data/spec/api/pulp_ansible_galaxy_api_collections_api_spec.rb +1 -1
- data/spec/api/pulp_ansible_galaxy_api_roles_api_spec.rb +1 -1
- data/spec/api/pulp_ansible_galaxy_api_v1_versions_api_spec.rb +1 -1
- data/spec/api/pulp_ansible_galaxy_api_v2_versions_api_spec.rb +1 -1
- data/spec/api/pulp_ansible_galaxy_api_v3_collections_api_spec.rb +1 -1
- data/spec/api/pulp_ansible_tags_api_spec.rb +1 -1
- data/spec/api/remotes_ansible_api_spec.rb +1 -1
- data/spec/api/remotes_collection_api_spec.rb +1 -1
- data/spec/api/repositories_ansible_api_spec.rb +13 -1
- data/spec/api/repositories_ansible_versions_api_spec.rb +2 -2
- data/spec/api_client_spec.rb +1 -1
- data/spec/configuration_spec.rb +1 -1
- data/spec/models/ansible_ansible_distribution_spec.rb +1 -1
- data/spec/models/ansible_ansible_remote_spec.rb +1 -1
- data/spec/models/ansible_ansible_repository_spec.rb +1 -1
- data/spec/models/ansible_collection_remote_spec.rb +1 -1
- data/spec/models/ansible_collection_spec.rb +1 -1
- data/spec/models/ansible_collection_version_spec.rb +1 -1
- data/spec/models/ansible_role_spec.rb +1 -1
- data/spec/models/ansible_tag_spec.rb +1 -1
- data/spec/models/async_operation_response_spec.rb +1 -1
- data/spec/models/collection_import_detail_spec.rb +1 -1
- data/spec/models/collection_metadata_spec.rb +1 -1
- data/spec/models/collection_namespace_spec.rb +1 -1
- data/spec/models/collection_ref_spec.rb +1 -1
- data/spec/models/collection_spec.rb +1 -1
- data/spec/models/collection_version_spec.rb +1 -1
- data/spec/models/content_summary_spec.rb +1 -1
- data/spec/models/galaxy_collection_spec.rb +1 -1
- data/spec/models/galaxy_collection_version_spec.rb +1 -1
- data/spec/models/galaxy_role_spec.rb +1 -1
- data/spec/models/galaxy_role_version_spec.rb +1 -1
- data/spec/models/inline_response20010_spec.rb +1 -1
- data/spec/models/inline_response20011_spec.rb +1 -1
- data/spec/models/inline_response20012_spec.rb +1 -1
- data/spec/models/inline_response20013_spec.rb +1 -1
- data/spec/models/inline_response2001_spec.rb +1 -1
- data/spec/models/inline_response2002_spec.rb +1 -1
- data/spec/models/inline_response2003_spec.rb +1 -1
- data/spec/models/inline_response2004_spec.rb +1 -1
- data/spec/models/inline_response2005_spec.rb +1 -1
- data/spec/models/inline_response2006_spec.rb +1 -1
- data/spec/models/inline_response2007_spec.rb +1 -1
- data/spec/models/inline_response2008_spec.rb +1 -1
- data/spec/models/inline_response2009_spec.rb +1 -1
- data/spec/models/inline_response200_spec.rb +1 -1
- data/spec/models/repository_add_remove_content_spec.rb +53 -0
- data/spec/models/repository_sync_url_spec.rb +1 -1
- data/spec/models/repository_version_spec.rb +1 -1
- data/spec/models/tag_spec.rb +1 -1
- data/spec/spec_helper.rb +1 -1
- metadata +7 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c0f2f83f04e2b06daf01b7ceaf19b83154babece375f7f7695702cbaeb6f5fee
|
4
|
+
data.tar.gz: b0ac0af2c11cbed3c827aea6d33ab89ff2e403e0c81e61e5aaa4a6c8d6841d22
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ee467985fc49dc0e03712bd89985a9387f4b9a6e143846519648c6a5a4e91f900bbc38dbc234b0439e2fc91e65223a087511a75900ee206dd8a521d6b5eade72
|
7
|
+
data.tar.gz: 38e625ac1c47a6986e788eef803eb15f0c1415503b6ea1263adbd125338a18711c98a47d72cb45098d1ebc6755a772a564d4d9ec8d7ced53efd730b4ca51a9fb
|
data/README.md
CHANGED
@@ -7,7 +7,7 @@ No description provided (generated by Openapi Generator https://github.com/opena
|
|
7
7
|
This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
8
8
|
|
9
9
|
- API version: v3
|
10
|
-
- Package version: 0.2.
|
10
|
+
- Package version: 0.2.0b7
|
11
11
|
- Build package: org.openapitools.codegen.languages.RubyClientCodegen
|
12
12
|
|
13
13
|
## Installation
|
@@ -23,16 +23,16 @@ gem build pulp_ansible_client.gemspec
|
|
23
23
|
Then either install the gem locally:
|
24
24
|
|
25
25
|
```shell
|
26
|
-
gem install ./pulp_ansible_client-0.2.
|
26
|
+
gem install ./pulp_ansible_client-0.2.0b7.gem
|
27
27
|
```
|
28
28
|
|
29
|
-
(for development, run `gem install --dev ./pulp_ansible_client-0.2.
|
29
|
+
(for development, run `gem install --dev ./pulp_ansible_client-0.2.0b7.gem` to install the development dependencies)
|
30
30
|
|
31
31
|
or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
|
32
32
|
|
33
33
|
Finally add this to the Gemfile:
|
34
34
|
|
35
|
-
gem 'pulp_ansible_client', '~> 0.2.
|
35
|
+
gem 'pulp_ansible_client', '~> 0.2.0b7'
|
36
36
|
|
37
37
|
### Install from Git
|
38
38
|
|
@@ -129,6 +129,7 @@ Class | Method | HTTP request | Description
|
|
129
129
|
*PulpAnsibleClient::RepositoriesAnsibleApi* | [**create**](docs/RepositoriesAnsibleApi.md#create) | **POST** /pulp/api/v3/repositories/ansible/ansible/ | Create an ansible repository
|
130
130
|
*PulpAnsibleClient::RepositoriesAnsibleApi* | [**delete**](docs/RepositoriesAnsibleApi.md#delete) | **DELETE** {ansible_repository_href} | Delete an ansible repository
|
131
131
|
*PulpAnsibleClient::RepositoriesAnsibleApi* | [**list**](docs/RepositoriesAnsibleApi.md#list) | **GET** /pulp/api/v3/repositories/ansible/ansible/ | List ansible repositorys
|
132
|
+
*PulpAnsibleClient::RepositoriesAnsibleApi* | [**modify**](docs/RepositoriesAnsibleApi.md#modify) | **POST** {ansible_repository_href}modify/ |
|
132
133
|
*PulpAnsibleClient::RepositoriesAnsibleApi* | [**partial_update**](docs/RepositoriesAnsibleApi.md#partial_update) | **PATCH** {ansible_repository_href} | Partially update an ansible repository
|
133
134
|
*PulpAnsibleClient::RepositoriesAnsibleApi* | [**read**](docs/RepositoriesAnsibleApi.md#read) | **GET** {ansible_repository_href} | Inspect an ansible repository
|
134
135
|
*PulpAnsibleClient::RepositoriesAnsibleApi* | [**sync**](docs/RepositoriesAnsibleApi.md#sync) | **POST** {ansible_repository_href}sync/ |
|
@@ -174,6 +175,7 @@ Class | Method | HTTP request | Description
|
|
174
175
|
- [PulpAnsibleClient::InlineResponse2007](docs/InlineResponse2007.md)
|
175
176
|
- [PulpAnsibleClient::InlineResponse2008](docs/InlineResponse2008.md)
|
176
177
|
- [PulpAnsibleClient::InlineResponse2009](docs/InlineResponse2009.md)
|
178
|
+
- [PulpAnsibleClient::RepositoryAddRemoveContent](docs/RepositoryAddRemoveContent.md)
|
177
179
|
- [PulpAnsibleClient::RepositorySyncURL](docs/RepositorySyncURL.md)
|
178
180
|
- [PulpAnsibleClient::RepositoryVersion](docs/RepositoryVersion.md)
|
179
181
|
- [PulpAnsibleClient::Tag](docs/Tag.md)
|
@@ -7,6 +7,7 @@ Method | HTTP request | Description
|
|
7
7
|
[**create**](RepositoriesAnsibleApi.md#create) | **POST** /pulp/api/v3/repositories/ansible/ansible/ | Create an ansible repository
|
8
8
|
[**delete**](RepositoriesAnsibleApi.md#delete) | **DELETE** {ansible_repository_href} | Delete an ansible repository
|
9
9
|
[**list**](RepositoriesAnsibleApi.md#list) | **GET** /pulp/api/v3/repositories/ansible/ansible/ | List ansible repositorys
|
10
|
+
[**modify**](RepositoriesAnsibleApi.md#modify) | **POST** {ansible_repository_href}modify/ |
|
10
11
|
[**partial_update**](RepositoriesAnsibleApi.md#partial_update) | **PATCH** {ansible_repository_href} | Partially update an ansible repository
|
11
12
|
[**read**](RepositoriesAnsibleApi.md#read) | **GET** {ansible_repository_href} | Inspect an ansible repository
|
12
13
|
[**sync**](RepositoriesAnsibleApi.md#sync) | **POST** {ansible_repository_href}sync/ |
|
@@ -185,6 +186,60 @@ Name | Type | Description | Notes
|
|
185
186
|
- **Accept**: application/json
|
186
187
|
|
187
188
|
|
189
|
+
## modify
|
190
|
+
|
191
|
+
> AsyncOperationResponse modify(ansible_repository_href, data)
|
192
|
+
|
193
|
+
|
194
|
+
|
195
|
+
Trigger an asynchronous task to create a new repository version.
|
196
|
+
|
197
|
+
### Example
|
198
|
+
|
199
|
+
```ruby
|
200
|
+
# load the gem
|
201
|
+
require 'pulp_ansible_client'
|
202
|
+
# setup authorization
|
203
|
+
PulpAnsibleClient.configure do |config|
|
204
|
+
# Configure HTTP basic authorization: Basic
|
205
|
+
config.username = 'YOUR USERNAME'
|
206
|
+
config.password = 'YOUR PASSWORD'
|
207
|
+
end
|
208
|
+
|
209
|
+
api_instance = PulpAnsibleClient::RepositoriesAnsibleApi.new
|
210
|
+
ansible_repository_href = 'ansible_repository_href_example' # String | URI of Ansible Repository. e.g.: /pulp/api/v3/repositories/ansible/ansible/1/
|
211
|
+
data = PulpAnsibleClient::RepositoryAddRemoveContent.new # RepositoryAddRemoveContent |
|
212
|
+
|
213
|
+
begin
|
214
|
+
result = api_instance.modify(ansible_repository_href, data)
|
215
|
+
p result
|
216
|
+
rescue PulpAnsibleClient::ApiError => e
|
217
|
+
puts "Exception when calling RepositoriesAnsibleApi->modify: #{e}"
|
218
|
+
end
|
219
|
+
```
|
220
|
+
|
221
|
+
### Parameters
|
222
|
+
|
223
|
+
|
224
|
+
Name | Type | Description | Notes
|
225
|
+
------------- | ------------- | ------------- | -------------
|
226
|
+
**ansible_repository_href** | **String**| URI of Ansible Repository. e.g.: /pulp/api/v3/repositories/ansible/ansible/1/ |
|
227
|
+
**data** | [**RepositoryAddRemoveContent**](RepositoryAddRemoveContent.md)| |
|
228
|
+
|
229
|
+
### Return type
|
230
|
+
|
231
|
+
[**AsyncOperationResponse**](AsyncOperationResponse.md)
|
232
|
+
|
233
|
+
### Authorization
|
234
|
+
|
235
|
+
[Basic](../README.md#Basic)
|
236
|
+
|
237
|
+
### HTTP request headers
|
238
|
+
|
239
|
+
- **Content-Type**: application/json
|
240
|
+
- **Accept**: application/json
|
241
|
+
|
242
|
+
|
188
243
|
## partial_update
|
189
244
|
|
190
245
|
> AnsibleAnsibleRepository partial_update(ansible_repository_href, data)
|
@@ -65,7 +65,7 @@ Name | Type | Description | Notes
|
|
65
65
|
|
66
66
|
## list
|
67
67
|
|
68
|
-
> InlineResponse2008 list(
|
68
|
+
> InlineResponse2008 list(ansible_repository_href, opts)
|
69
69
|
|
70
70
|
List repository versions
|
71
71
|
|
@@ -84,7 +84,7 @@ PulpAnsibleClient.configure do |config|
|
|
84
84
|
end
|
85
85
|
|
86
86
|
api_instance = PulpAnsibleClient::RepositoriesAnsibleVersionsApi.new
|
87
|
-
|
87
|
+
ansible_repository_href = 'ansible_repository_href_example' # String | URI of Ansible Repository. e.g.: /pulp/api/v3/repositories/ansible/ansible/1/
|
88
88
|
opts = {
|
89
89
|
ordering: 'ordering_example', # String | Which field to use when ordering the results.
|
90
90
|
number: 3.4, # Float |
|
@@ -108,7 +108,7 @@ opts = {
|
|
108
108
|
|
109
109
|
begin
|
110
110
|
#List repository versions
|
111
|
-
result = api_instance.list(
|
111
|
+
result = api_instance.list(ansible_repository_href, opts)
|
112
112
|
p result
|
113
113
|
rescue PulpAnsibleClient::ApiError => e
|
114
114
|
puts "Exception when calling RepositoriesAnsibleVersionsApi->list: #{e}"
|
@@ -120,7 +120,7 @@ end
|
|
120
120
|
|
121
121
|
Name | Type | Description | Notes
|
122
122
|
------------- | ------------- | ------------- | -------------
|
123
|
-
**
|
123
|
+
**ansible_repository_href** | **String**| URI of Ansible Repository. e.g.: /pulp/api/v3/repositories/ansible/ansible/1/ |
|
124
124
|
**ordering** | **String**| Which field to use when ordering the results. | [optional]
|
125
125
|
**number** | **Float**| | [optional]
|
126
126
|
**number__lt** | **Float**| Filter results where number is less than value | [optional]
|
@@ -0,0 +1,21 @@
|
|
1
|
+
# PulpAnsibleClient::RepositoryAddRemoveContent
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
Name | Type | Description | Notes
|
6
|
+
------------ | ------------- | ------------- | -------------
|
7
|
+
**add_content_units** | **Array<String>** | A list of content units to add to a new repository version. This content is added after remove_content_units are removed. | [optional]
|
8
|
+
**remove_content_units** | **Array<String>** | A list of content units to remove from the latest repository version. You may also specify '*' as an entry to remove all content. This content is removed before add_content_units are added. | [optional]
|
9
|
+
**base_version** | **String** | A repository version whose content will be used as the initial set of content for the new repository version | [optional]
|
10
|
+
|
11
|
+
## Code Sample
|
12
|
+
|
13
|
+
```ruby
|
14
|
+
require 'PulpAnsibleClient'
|
15
|
+
|
16
|
+
instance = PulpAnsibleClient::RepositoryAddRemoveContent.new(add_content_units: null,
|
17
|
+
remove_content_units: null,
|
18
|
+
base_version: null)
|
19
|
+
```
|
20
|
+
|
21
|
+
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: v3
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 4.2.
|
9
|
+
OpenAPI Generator version: 4.2.3-SNAPSHOT
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -219,6 +219,74 @@ module PulpAnsibleClient
|
|
219
219
|
return data, status_code, headers
|
220
220
|
end
|
221
221
|
|
222
|
+
# Trigger an asynchronous task to create a new repository version.
|
223
|
+
# @param ansible_repository_href [String] URI of Ansible Repository. e.g.: /pulp/api/v3/repositories/ansible/ansible/1/
|
224
|
+
# @param data [RepositoryAddRemoveContent]
|
225
|
+
# @param [Hash] opts the optional parameters
|
226
|
+
# @return [AsyncOperationResponse]
|
227
|
+
def modify(ansible_repository_href, data, opts = {})
|
228
|
+
data, _status_code, _headers = modify_with_http_info(ansible_repository_href, data, opts)
|
229
|
+
data
|
230
|
+
end
|
231
|
+
|
232
|
+
# Trigger an asynchronous task to create a new repository version.
|
233
|
+
# @param ansible_repository_href [String] URI of Ansible Repository. e.g.: /pulp/api/v3/repositories/ansible/ansible/1/
|
234
|
+
# @param data [RepositoryAddRemoveContent]
|
235
|
+
# @param [Hash] opts the optional parameters
|
236
|
+
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
237
|
+
def modify_with_http_info(ansible_repository_href, data, opts = {})
|
238
|
+
if @api_client.config.debugging
|
239
|
+
@api_client.config.logger.debug 'Calling API: RepositoriesAnsibleApi.modify ...'
|
240
|
+
end
|
241
|
+
# verify the required parameter 'ansible_repository_href' is set
|
242
|
+
if @api_client.config.client_side_validation && ansible_repository_href.nil?
|
243
|
+
fail ArgumentError, "Missing the required parameter 'ansible_repository_href' when calling RepositoriesAnsibleApi.modify"
|
244
|
+
end
|
245
|
+
# verify the required parameter 'data' is set
|
246
|
+
if @api_client.config.client_side_validation && data.nil?
|
247
|
+
fail ArgumentError, "Missing the required parameter 'data' when calling RepositoriesAnsibleApi.modify"
|
248
|
+
end
|
249
|
+
# resource path
|
250
|
+
local_var_path = '{ansible_repository_href}modify/'.sub('{' + 'ansible_repository_href' + '}', CGI.escape(ansible_repository_href.to_s).gsub('%2F', '/'))
|
251
|
+
|
252
|
+
# query parameters
|
253
|
+
query_params = opts[:query_params] || {}
|
254
|
+
|
255
|
+
# header parameters
|
256
|
+
header_params = opts[:header_params] || {}
|
257
|
+
# HTTP header 'Accept' (if needed)
|
258
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
259
|
+
# HTTP header 'Content-Type'
|
260
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
261
|
+
|
262
|
+
# form parameters
|
263
|
+
form_params = opts[:form_params] || {}
|
264
|
+
|
265
|
+
# http body (model)
|
266
|
+
post_body = opts[:body] || @api_client.object_to_http_body(data)
|
267
|
+
|
268
|
+
# return_type
|
269
|
+
return_type = opts[:return_type] || 'AsyncOperationResponse'
|
270
|
+
|
271
|
+
# auth_names
|
272
|
+
auth_names = opts[:auth_names] || ['Basic']
|
273
|
+
|
274
|
+
new_options = opts.merge(
|
275
|
+
:header_params => header_params,
|
276
|
+
:query_params => query_params,
|
277
|
+
:form_params => form_params,
|
278
|
+
:body => post_body,
|
279
|
+
:auth_names => auth_names,
|
280
|
+
:return_type => return_type
|
281
|
+
)
|
282
|
+
|
283
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
284
|
+
if @api_client.config.debugging
|
285
|
+
@api_client.config.logger.debug "API called: RepositoriesAnsibleApi#modify\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
286
|
+
end
|
287
|
+
return data, status_code, headers
|
288
|
+
end
|
289
|
+
|
222
290
|
# Partially update an ansible repository
|
223
291
|
# ViewSet for Ansible Remotes.
|
224
292
|
# @param ansible_repository_href [String] URI of Ansible Repository. e.g.: /pulp/api/v3/repositories/ansible/ansible/1/
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: v3
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 4.2.
|
9
|
+
OpenAPI Generator version: 4.2.3-SNAPSHOT
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -83,7 +83,7 @@ module PulpAnsibleClient
|
|
83
83
|
|
84
84
|
# List repository versions
|
85
85
|
# RpmRepositoryVersion represents a single file repository version.
|
86
|
-
# @param
|
86
|
+
# @param ansible_repository_href [String] URI of Ansible Repository. e.g.: /pulp/api/v3/repositories/ansible/ansible/1/
|
87
87
|
# @param [Hash] opts the optional parameters
|
88
88
|
# @option opts [String] :ordering Which field to use when ordering the results.
|
89
89
|
# @option opts [Float] :number
|
@@ -104,14 +104,14 @@ module PulpAnsibleClient
|
|
104
104
|
# @option opts [String] :fields A list of fields to include in the response.
|
105
105
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
106
106
|
# @return [InlineResponse2008]
|
107
|
-
def list(
|
108
|
-
data, _status_code, _headers = list_with_http_info(
|
107
|
+
def list(ansible_repository_href, opts = {})
|
108
|
+
data, _status_code, _headers = list_with_http_info(ansible_repository_href, opts)
|
109
109
|
data
|
110
110
|
end
|
111
111
|
|
112
112
|
# List repository versions
|
113
113
|
# RpmRepositoryVersion represents a single file repository version.
|
114
|
-
# @param
|
114
|
+
# @param ansible_repository_href [String] URI of Ansible Repository. e.g.: /pulp/api/v3/repositories/ansible/ansible/1/
|
115
115
|
# @param [Hash] opts the optional parameters
|
116
116
|
# @option opts [String] :ordering Which field to use when ordering the results.
|
117
117
|
# @option opts [Float] :number
|
@@ -132,16 +132,16 @@ module PulpAnsibleClient
|
|
132
132
|
# @option opts [String] :fields A list of fields to include in the response.
|
133
133
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
134
134
|
# @return [Array<(InlineResponse2008, Integer, Hash)>] InlineResponse2008 data, response status code and response headers
|
135
|
-
def list_with_http_info(
|
135
|
+
def list_with_http_info(ansible_repository_href, opts = {})
|
136
136
|
if @api_client.config.debugging
|
137
137
|
@api_client.config.logger.debug 'Calling API: RepositoriesAnsibleVersionsApi.list ...'
|
138
138
|
end
|
139
|
-
# verify the required parameter '
|
140
|
-
if @api_client.config.client_side_validation &&
|
141
|
-
fail ArgumentError, "Missing the required parameter '
|
139
|
+
# verify the required parameter 'ansible_repository_href' is set
|
140
|
+
if @api_client.config.client_side_validation && ansible_repository_href.nil?
|
141
|
+
fail ArgumentError, "Missing the required parameter 'ansible_repository_href' when calling RepositoriesAnsibleVersionsApi.list"
|
142
142
|
end
|
143
143
|
# resource path
|
144
|
-
local_var_path = '{ansible_repository_href}versions/'.sub('{' + '
|
144
|
+
local_var_path = '{ansible_repository_href}versions/'.sub('{' + 'ansible_repository_href' + '}', CGI.escape(ansible_repository_href.to_s).gsub('%2F', '/'))
|
145
145
|
|
146
146
|
# query parameters
|
147
147
|
query_params = opts[:query_params] || {}
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: v3
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 4.2.
|
9
|
+
OpenAPI Generator version: 4.2.3-SNAPSHOT
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -203,7 +203,7 @@ module PulpAnsibleClient
|
|
203
203
|
[
|
204
204
|
{
|
205
205
|
url: "http://localhost:24817/",
|
206
|
-
description: "No
|
206
|
+
description: "No description provided",
|
207
207
|
}
|
208
208
|
]
|
209
209
|
end
|