pulp_ansible_client 0.2.0b5 → 0.2.0b6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +43 -23
- data/docs/{AnsibleDistribution.md → AnsibleAnsibleDistribution.md} +6 -6
- data/docs/AnsibleAnsibleRemote.md +39 -0
- data/docs/AnsibleAnsibleRepository.md +27 -0
- data/docs/AnsibleCollection.md +19 -0
- data/docs/AnsibleCollectionRemote.md +41 -0
- data/docs/AnsibleCollectionVersion.md +67 -0
- data/docs/AnsibleCollectionsApi.md +80 -18
- data/docs/AnsibleRole.md +27 -0
- data/docs/AnsibleTag.md +17 -0
- data/docs/Collection.md +31 -0
- data/docs/CollectionImportDetail.md +2 -2
- data/docs/CollectionMetadata.md +9 -9
- data/docs/{TagNested.md → CollectionNamespace.md} +3 -3
- data/docs/CollectionRef.md +21 -0
- data/docs/CollectionVersion.md +19 -59
- data/docs/ContentCollectionVersionsApi.md +25 -27
- data/docs/ContentRolesApi.md +17 -25
- data/docs/ContentSummary.md +21 -0
- data/docs/DistributionsAnsibleApi.md +16 -12
- data/docs/GalaxyCollection.md +2 -2
- data/docs/GalaxyCollectionVersion.md +4 -4
- data/docs/GalaxyRole.md +1 -1
- data/docs/GalaxyRoleVersion.md +1 -1
- data/docs/InlineResponse200.md +1 -1
- data/docs/InlineResponse2001.md +1 -1
- data/docs/InlineResponse20010.md +23 -0
- data/docs/InlineResponse20011.md +23 -0
- data/docs/InlineResponse20012.md +23 -0
- data/docs/InlineResponse20013.md +23 -0
- data/docs/InlineResponse2002.md +1 -1
- data/docs/InlineResponse2003.md +1 -1
- data/docs/InlineResponse2004.md +1 -1
- data/docs/InlineResponse2005.md +1 -1
- data/docs/InlineResponse2006.md +1 -1
- data/docs/InlineResponse2007.md +1 -1
- data/docs/InlineResponse2008.md +1 -1
- data/docs/InlineResponse2009.md +1 -1
- data/docs/PulpAnsibleApiApi.md +3 -1
- data/docs/PulpAnsibleGalaxyApiCollectionsApi.md +16 -9
- data/docs/PulpAnsibleGalaxyApiRolesApi.md +5 -3
- data/docs/PulpAnsibleGalaxyApiV1VersionsApi.md +5 -3
- data/docs/PulpAnsibleGalaxyApiV2VersionsApi.md +5 -3
- data/docs/PulpAnsibleGalaxyApiV3CollectionsApi.md +28 -10
- data/docs/PulpAnsibleTagsApi.md +5 -3
- data/docs/RemotesAnsibleApi.md +30 -81
- data/docs/RemotesCollectionApi.md +30 -81
- data/docs/RepositoriesAnsibleApi.md +409 -0
- data/docs/RepositoriesAnsibleVersionsApi.md +214 -0
- data/docs/RepositorySyncURL.md +2 -2
- data/docs/RepositoryVersion.md +25 -0
- data/docs/Tag.md +1 -1
- data/lib/pulp_ansible_client/api/ansible_collections_api.rb +103 -35
- data/lib/pulp_ansible_client/api/content_collection_versions_api.rb +40 -57
- data/lib/pulp_ansible_client/api/content_roles_api.rb +28 -58
- data/lib/pulp_ansible_client/api/distributions_ansible_api.rb +19 -13
- data/lib/pulp_ansible_client/api/pulp_ansible_api_api.rb +4 -1
- data/lib/pulp_ansible_client/api/pulp_ansible_galaxy_api_collections_api.rb +20 -9
- data/lib/pulp_ansible_client/api/pulp_ansible_galaxy_api_roles_api.rb +7 -4
- data/lib/pulp_ansible_client/api/pulp_ansible_galaxy_api_v1_versions_api.rb +7 -4
- data/lib/pulp_ansible_client/api/pulp_ansible_galaxy_api_v2_versions_api.rb +7 -4
- data/lib/pulp_ansible_client/api/pulp_ansible_galaxy_api_v3_collections_api.rb +59 -12
- data/lib/pulp_ansible_client/api/pulp_ansible_tags_api.rb +7 -4
- data/lib/pulp_ansible_client/api/remotes_ansible_api.rb +40 -102
- data/lib/pulp_ansible_client/api/remotes_collection_api.rb +40 -102
- data/lib/pulp_ansible_client/api/repositories_ansible_api.rb +498 -0
- data/lib/pulp_ansible_client/api/repositories_ansible_versions_api.rb +268 -0
- 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 +1 -1
- data/lib/pulp_ansible_client/models/{ansible_distribution.rb → ansible_ansible_distribution.rb} +31 -36
- data/lib/pulp_ansible_client/models/{ansible_remote.rb → ansible_ansible_remote.rb} +87 -147
- data/lib/pulp_ansible_client/models/ansible_ansible_repository.rb +294 -0
- data/lib/pulp_ansible_client/models/ansible_collection.rb +265 -0
- data/lib/pulp_ansible_client/models/{collection_remote.rb → ansible_collection_remote.rb} +88 -147
- data/lib/pulp_ansible_client/models/ansible_collection_version.rb +816 -0
- data/lib/pulp_ansible_client/models/{role.rb → ansible_role.rb} +31 -60
- data/lib/pulp_ansible_client/models/{tag_nested.rb → ansible_tag.rb} +15 -5
- data/lib/pulp_ansible_client/models/async_operation_response.rb +12 -2
- data/lib/pulp_ansible_client/models/collection.rb +314 -0
- data/lib/pulp_ansible_client/models/collection_import_detail.rb +14 -4
- data/lib/pulp_ansible_client/models/collection_metadata.rb +14 -4
- data/lib/pulp_ansible_client/models/collection_namespace.rb +230 -0
- data/lib/pulp_ansible_client/models/collection_ref.rb +272 -0
- data/lib/pulp_ansible_client/models/collection_version.rb +109 -536
- data/lib/pulp_ansible_client/models/content_summary.rb +246 -0
- data/lib/pulp_ansible_client/models/galaxy_collection.rb +12 -2
- data/lib/pulp_ansible_client/models/galaxy_collection_version.rb +12 -2
- data/lib/pulp_ansible_client/models/galaxy_role.rb +12 -2
- data/lib/pulp_ansible_client/models/galaxy_role_version.rb +12 -2
- data/lib/pulp_ansible_client/models/inline_response200.rb +15 -3
- data/lib/pulp_ansible_client/models/inline_response2001.rb +15 -3
- data/lib/pulp_ansible_client/models/inline_response20010.rb +247 -0
- data/lib/pulp_ansible_client/models/inline_response20011.rb +247 -0
- data/lib/pulp_ansible_client/models/inline_response20012.rb +247 -0
- data/lib/pulp_ansible_client/models/inline_response20013.rb +247 -0
- data/lib/pulp_ansible_client/models/inline_response2002.rb +15 -3
- data/lib/pulp_ansible_client/models/inline_response2003.rb +15 -3
- data/lib/pulp_ansible_client/models/inline_response2004.rb +15 -3
- data/lib/pulp_ansible_client/models/inline_response2005.rb +15 -3
- data/lib/pulp_ansible_client/models/inline_response2006.rb +15 -3
- data/lib/pulp_ansible_client/models/inline_response2007.rb +15 -3
- data/lib/pulp_ansible_client/models/inline_response2008.rb +15 -3
- data/lib/pulp_ansible_client/models/inline_response2009.rb +15 -3
- data/lib/pulp_ansible_client/models/repository_sync_url.rb +22 -12
- data/lib/pulp_ansible_client/models/repository_version.rb +244 -0
- data/lib/pulp_ansible_client/models/tag.rb +12 -2
- data/lib/pulp_ansible_client/version.rb +2 -2
- data/lib/pulp_ansible_client.rb +20 -6
- data/pulp_ansible_client.gemspec +1 -1
- data/spec/api/ansible_collections_api_spec.rb +25 -10
- data/spec/api/content_collection_versions_api_spec.rb +12 -12
- data/spec/api/content_roles_api_spec.rb +8 -11
- data/spec/api/distributions_ansible_api_spec.rb +5 -3
- data/spec/api/pulp_ansible_api_api_spec.rb +2 -1
- data/spec/api/pulp_ansible_galaxy_api_collections_api_spec.rb +6 -3
- data/spec/api/pulp_ansible_galaxy_api_roles_api_spec.rb +3 -2
- data/spec/api/pulp_ansible_galaxy_api_v1_versions_api_spec.rb +3 -2
- data/spec/api/pulp_ansible_galaxy_api_v2_versions_api_spec.rb +3 -2
- data/spec/api/pulp_ansible_galaxy_api_v3_collections_api_spec.rb +12 -4
- data/spec/api/pulp_ansible_tags_api_spec.rb +3 -2
- data/spec/api/remotes_ansible_api_spec.rb +12 -22
- data/spec/api/remotes_collection_api_spec.rb +12 -22
- data/spec/api/repositories_ansible_api_spec.rb +128 -0
- data/spec/api/repositories_ansible_versions_api_spec.rb +91 -0
- data/spec/api_client_spec.rb +2 -2
- data/spec/configuration_spec.rb +1 -1
- data/spec/models/{ansible_distribution_spec.rb → ansible_ansible_distribution_spec.rb} +9 -9
- data/spec/models/{collection_remote_spec.rb → ansible_ansible_remote_spec.rb} +14 -38
- data/spec/models/ansible_ansible_repository_spec.rb +71 -0
- data/spec/models/{ansible_remote_spec.rb → ansible_collection_remote_spec.rb} +20 -32
- data/spec/models/ansible_collection_spec.rb +47 -0
- data/spec/models/ansible_collection_version_spec.rb +191 -0
- data/spec/models/ansible_role_spec.rb +71 -0
- data/spec/models/{tag_nested_spec.rb → ansible_tag_spec.rb} +7 -7
- 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 +41 -0
- data/spec/models/collection_ref_spec.rb +53 -0
- data/spec/models/{role_spec.rb → collection_spec.rb} +15 -21
- data/spec/models/collection_version_spec.rb +14 -130
- data/spec/models/content_summary_spec.rb +53 -0
- 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 +59 -0
- data/spec/models/inline_response20011_spec.rb +59 -0
- data/spec/models/inline_response20012_spec.rb +59 -0
- data/spec/models/inline_response20013_spec.rb +59 -0
- 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_sync_url_spec.rb +2 -2
- data/spec/models/repository_version_spec.rb +65 -0
- data/spec/models/tag_spec.rb +1 -1
- data/spec/spec_helper.rb +1 -1
- metadata +78 -22
- data/docs/AnsibleRemote.md +0 -45
- data/docs/CollectionRemote.md +0 -47
- data/docs/Role.md +0 -33
@@ -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.
|
9
|
+
OpenAPI Generator version: 4.2.2-SNAPSHOT
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -21,9 +21,9 @@ module PulpAnsibleClient
|
|
21
21
|
end
|
22
22
|
# Create an ansible remote
|
23
23
|
# ViewSet for Ansible Remotes.
|
24
|
-
# @param data [
|
24
|
+
# @param data [AnsibleAnsibleRemote]
|
25
25
|
# @param [Hash] opts the optional parameters
|
26
|
-
# @return [
|
26
|
+
# @return [AnsibleAnsibleRemote]
|
27
27
|
def create(data, opts = {})
|
28
28
|
data, _status_code, _headers = create_with_http_info(data, opts)
|
29
29
|
data
|
@@ -31,9 +31,9 @@ module PulpAnsibleClient
|
|
31
31
|
|
32
32
|
# Create an ansible remote
|
33
33
|
# ViewSet for Ansible Remotes.
|
34
|
-
# @param data [
|
34
|
+
# @param data [AnsibleAnsibleRemote]
|
35
35
|
# @param [Hash] opts the optional parameters
|
36
|
-
# @return [Array<(
|
36
|
+
# @return [Array<(AnsibleAnsibleRemote, Integer, Hash)>] AnsibleAnsibleRemote data, response status code and response headers
|
37
37
|
def create_with_http_info(data, opts = {})
|
38
38
|
if @api_client.config.debugging
|
39
39
|
@api_client.config.logger.debug 'Calling API: RemotesAnsibleApi.create ...'
|
@@ -62,7 +62,7 @@ module PulpAnsibleClient
|
|
62
62
|
post_body = opts[:body] || @api_client.object_to_http_body(data)
|
63
63
|
|
64
64
|
# return_type
|
65
|
-
return_type = opts[:return_type] || '
|
65
|
+
return_type = opts[:return_type] || 'AnsibleAnsibleRemote'
|
66
66
|
|
67
67
|
# auth_names
|
68
68
|
auth_names = opts[:auth_names] || ['Basic']
|
@@ -150,16 +150,17 @@ module PulpAnsibleClient
|
|
150
150
|
# @param [Hash] opts the optional parameters
|
151
151
|
# @option opts [String] :name
|
152
152
|
# @option opts [String] :name__in Filter results where name is in a comma-separated list of values
|
153
|
-
# @option opts [String] :
|
154
|
-
# @option opts [String] :
|
155
|
-
# @option opts [String] :
|
156
|
-
# @option opts [String] :
|
157
|
-
# @option opts [String] :
|
158
|
-
# @option opts [String] :
|
153
|
+
# @option opts [String] :pulp_last_updated__lt Filter results where pulp_last_updated is less than value
|
154
|
+
# @option opts [String] :pulp_last_updated__lte Filter results where pulp_last_updated is less than or equal to value
|
155
|
+
# @option opts [String] :pulp_last_updated__gt Filter results where pulp_last_updated is greater than value
|
156
|
+
# @option opts [String] :pulp_last_updated__gte Filter results where pulp_last_updated is greater than or equal to value
|
157
|
+
# @option opts [String] :pulp_last_updated__range Filter results where pulp_last_updated is between two comma separated values
|
158
|
+
# @option opts [String] :pulp_last_updated ISO 8601 formatted dates are supported
|
159
159
|
# @option opts [Integer] :limit Number of results to return per page.
|
160
160
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
161
161
|
# @option opts [String] :fields A list of fields to include in the response.
|
162
|
-
# @
|
162
|
+
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
163
|
+
# @return [InlineResponse2005]
|
163
164
|
def list(opts = {})
|
164
165
|
data, _status_code, _headers = list_with_http_info(opts)
|
165
166
|
data
|
@@ -170,16 +171,17 @@ module PulpAnsibleClient
|
|
170
171
|
# @param [Hash] opts the optional parameters
|
171
172
|
# @option opts [String] :name
|
172
173
|
# @option opts [String] :name__in Filter results where name is in a comma-separated list of values
|
173
|
-
# @option opts [String] :
|
174
|
-
# @option opts [String] :
|
175
|
-
# @option opts [String] :
|
176
|
-
# @option opts [String] :
|
177
|
-
# @option opts [String] :
|
178
|
-
# @option opts [String] :
|
174
|
+
# @option opts [String] :pulp_last_updated__lt Filter results where pulp_last_updated is less than value
|
175
|
+
# @option opts [String] :pulp_last_updated__lte Filter results where pulp_last_updated is less than or equal to value
|
176
|
+
# @option opts [String] :pulp_last_updated__gt Filter results where pulp_last_updated is greater than value
|
177
|
+
# @option opts [String] :pulp_last_updated__gte Filter results where pulp_last_updated is greater than or equal to value
|
178
|
+
# @option opts [String] :pulp_last_updated__range Filter results where pulp_last_updated is between two comma separated values
|
179
|
+
# @option opts [String] :pulp_last_updated ISO 8601 formatted dates are supported
|
179
180
|
# @option opts [Integer] :limit Number of results to return per page.
|
180
181
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
181
182
|
# @option opts [String] :fields A list of fields to include in the response.
|
182
|
-
# @
|
183
|
+
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
184
|
+
# @return [Array<(InlineResponse2005, Integer, Hash)>] InlineResponse2005 data, response status code and response headers
|
183
185
|
def list_with_http_info(opts = {})
|
184
186
|
if @api_client.config.debugging
|
185
187
|
@api_client.config.logger.debug 'Calling API: RemotesAnsibleApi.list ...'
|
@@ -191,15 +193,16 @@ module PulpAnsibleClient
|
|
191
193
|
query_params = opts[:query_params] || {}
|
192
194
|
query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
|
193
195
|
query_params[:'name__in'] = opts[:'name__in'] if !opts[:'name__in'].nil?
|
194
|
-
query_params[:'
|
195
|
-
query_params[:'
|
196
|
-
query_params[:'
|
197
|
-
query_params[:'
|
198
|
-
query_params[:'
|
199
|
-
query_params[:'
|
196
|
+
query_params[:'pulp_last_updated__lt'] = opts[:'pulp_last_updated__lt'] if !opts[:'pulp_last_updated__lt'].nil?
|
197
|
+
query_params[:'pulp_last_updated__lte'] = opts[:'pulp_last_updated__lte'] if !opts[:'pulp_last_updated__lte'].nil?
|
198
|
+
query_params[:'pulp_last_updated__gt'] = opts[:'pulp_last_updated__gt'] if !opts[:'pulp_last_updated__gt'].nil?
|
199
|
+
query_params[:'pulp_last_updated__gte'] = opts[:'pulp_last_updated__gte'] if !opts[:'pulp_last_updated__gte'].nil?
|
200
|
+
query_params[:'pulp_last_updated__range'] = opts[:'pulp_last_updated__range'] if !opts[:'pulp_last_updated__range'].nil?
|
201
|
+
query_params[:'pulp_last_updated'] = opts[:'pulp_last_updated'] if !opts[:'pulp_last_updated'].nil?
|
200
202
|
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
201
203
|
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
202
204
|
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
205
|
+
query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
|
203
206
|
|
204
207
|
# header parameters
|
205
208
|
header_params = opts[:header_params] || {}
|
@@ -213,7 +216,7 @@ module PulpAnsibleClient
|
|
213
216
|
post_body = opts[:body]
|
214
217
|
|
215
218
|
# return_type
|
216
|
-
return_type = opts[:return_type] || '
|
219
|
+
return_type = opts[:return_type] || 'InlineResponse2005'
|
217
220
|
|
218
221
|
# auth_names
|
219
222
|
auth_names = opts[:auth_names] || ['Basic']
|
@@ -237,7 +240,7 @@ module PulpAnsibleClient
|
|
237
240
|
# Partially update an ansible remote
|
238
241
|
# Trigger an asynchronous partial update task
|
239
242
|
# @param ansible_remote_href [String] URI of Ansible Remote. e.g.: /pulp/api/v3/remotes/ansible/ansible/1/
|
240
|
-
# @param data [
|
243
|
+
# @param data [AnsibleAnsibleRemote]
|
241
244
|
# @param [Hash] opts the optional parameters
|
242
245
|
# @return [AsyncOperationResponse]
|
243
246
|
def partial_update(ansible_remote_href, data, opts = {})
|
@@ -248,7 +251,7 @@ module PulpAnsibleClient
|
|
248
251
|
# Partially update an ansible remote
|
249
252
|
# Trigger an asynchronous partial update task
|
250
253
|
# @param ansible_remote_href [String] URI of Ansible Remote. e.g.: /pulp/api/v3/remotes/ansible/ansible/1/
|
251
|
-
# @param data [
|
254
|
+
# @param data [AnsibleAnsibleRemote]
|
252
255
|
# @param [Hash] opts the optional parameters
|
253
256
|
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
254
257
|
def partial_update_with_http_info(ansible_remote_href, data, opts = {})
|
@@ -309,7 +312,8 @@ module PulpAnsibleClient
|
|
309
312
|
# @param ansible_remote_href [String] URI of Ansible Remote. e.g.: /pulp/api/v3/remotes/ansible/ansible/1/
|
310
313
|
# @param [Hash] opts the optional parameters
|
311
314
|
# @option opts [String] :fields A list of fields to include in the response.
|
312
|
-
# @
|
315
|
+
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
316
|
+
# @return [AnsibleAnsibleRemote]
|
313
317
|
def read(ansible_remote_href, opts = {})
|
314
318
|
data, _status_code, _headers = read_with_http_info(ansible_remote_href, opts)
|
315
319
|
data
|
@@ -320,7 +324,8 @@ module PulpAnsibleClient
|
|
320
324
|
# @param ansible_remote_href [String] URI of Ansible Remote. e.g.: /pulp/api/v3/remotes/ansible/ansible/1/
|
321
325
|
# @param [Hash] opts the optional parameters
|
322
326
|
# @option opts [String] :fields A list of fields to include in the response.
|
323
|
-
# @
|
327
|
+
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
328
|
+
# @return [Array<(AnsibleAnsibleRemote, Integer, Hash)>] AnsibleAnsibleRemote data, response status code and response headers
|
324
329
|
def read_with_http_info(ansible_remote_href, opts = {})
|
325
330
|
if @api_client.config.debugging
|
326
331
|
@api_client.config.logger.debug 'Calling API: RemotesAnsibleApi.read ...'
|
@@ -335,6 +340,7 @@ module PulpAnsibleClient
|
|
335
340
|
# query parameters
|
336
341
|
query_params = opts[:query_params] || {}
|
337
342
|
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
343
|
+
query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
|
338
344
|
|
339
345
|
# header parameters
|
340
346
|
header_params = opts[:header_params] || {}
|
@@ -348,7 +354,7 @@ module PulpAnsibleClient
|
|
348
354
|
post_body = opts[:body]
|
349
355
|
|
350
356
|
# return_type
|
351
|
-
return_type = opts[:return_type] || '
|
357
|
+
return_type = opts[:return_type] || 'AnsibleAnsibleRemote'
|
352
358
|
|
353
359
|
# auth_names
|
354
360
|
auth_names = opts[:auth_names] || ['Basic']
|
@@ -369,78 +375,10 @@ module PulpAnsibleClient
|
|
369
375
|
return data, status_code, headers
|
370
376
|
end
|
371
377
|
|
372
|
-
# Trigger an asynchronous task to sync Ansible content.
|
373
|
-
# @param ansible_remote_href [String] URI of Ansible Remote. e.g.: /pulp/api/v3/remotes/ansible/ansible/1/
|
374
|
-
# @param data [RepositorySyncURL]
|
375
|
-
# @param [Hash] opts the optional parameters
|
376
|
-
# @return [AsyncOperationResponse]
|
377
|
-
def sync(ansible_remote_href, data, opts = {})
|
378
|
-
data, _status_code, _headers = sync_with_http_info(ansible_remote_href, data, opts)
|
379
|
-
data
|
380
|
-
end
|
381
|
-
|
382
|
-
# Trigger an asynchronous task to sync Ansible content.
|
383
|
-
# @param ansible_remote_href [String] URI of Ansible Remote. e.g.: /pulp/api/v3/remotes/ansible/ansible/1/
|
384
|
-
# @param data [RepositorySyncURL]
|
385
|
-
# @param [Hash] opts the optional parameters
|
386
|
-
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
387
|
-
def sync_with_http_info(ansible_remote_href, data, opts = {})
|
388
|
-
if @api_client.config.debugging
|
389
|
-
@api_client.config.logger.debug 'Calling API: RemotesAnsibleApi.sync ...'
|
390
|
-
end
|
391
|
-
# verify the required parameter 'ansible_remote_href' is set
|
392
|
-
if @api_client.config.client_side_validation && ansible_remote_href.nil?
|
393
|
-
fail ArgumentError, "Missing the required parameter 'ansible_remote_href' when calling RemotesAnsibleApi.sync"
|
394
|
-
end
|
395
|
-
# verify the required parameter 'data' is set
|
396
|
-
if @api_client.config.client_side_validation && data.nil?
|
397
|
-
fail ArgumentError, "Missing the required parameter 'data' when calling RemotesAnsibleApi.sync"
|
398
|
-
end
|
399
|
-
# resource path
|
400
|
-
local_var_path = '{ansible_remote_href}sync/'.sub('{' + 'ansible_remote_href' + '}', CGI.escape(ansible_remote_href.to_s).gsub('%2F', '/'))
|
401
|
-
|
402
|
-
# query parameters
|
403
|
-
query_params = opts[:query_params] || {}
|
404
|
-
|
405
|
-
# header parameters
|
406
|
-
header_params = opts[:header_params] || {}
|
407
|
-
# HTTP header 'Accept' (if needed)
|
408
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
409
|
-
# HTTP header 'Content-Type'
|
410
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
411
|
-
|
412
|
-
# form parameters
|
413
|
-
form_params = opts[:form_params] || {}
|
414
|
-
|
415
|
-
# http body (model)
|
416
|
-
post_body = opts[:body] || @api_client.object_to_http_body(data)
|
417
|
-
|
418
|
-
# return_type
|
419
|
-
return_type = opts[:return_type] || 'AsyncOperationResponse'
|
420
|
-
|
421
|
-
# auth_names
|
422
|
-
auth_names = opts[:auth_names] || ['Basic']
|
423
|
-
|
424
|
-
new_options = opts.merge(
|
425
|
-
:header_params => header_params,
|
426
|
-
:query_params => query_params,
|
427
|
-
:form_params => form_params,
|
428
|
-
:body => post_body,
|
429
|
-
:auth_names => auth_names,
|
430
|
-
:return_type => return_type
|
431
|
-
)
|
432
|
-
|
433
|
-
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
434
|
-
if @api_client.config.debugging
|
435
|
-
@api_client.config.logger.debug "API called: RemotesAnsibleApi#sync\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
436
|
-
end
|
437
|
-
return data, status_code, headers
|
438
|
-
end
|
439
|
-
|
440
378
|
# Update an ansible remote
|
441
379
|
# Trigger an asynchronous update task
|
442
380
|
# @param ansible_remote_href [String] URI of Ansible Remote. e.g.: /pulp/api/v3/remotes/ansible/ansible/1/
|
443
|
-
# @param data [
|
381
|
+
# @param data [AnsibleAnsibleRemote]
|
444
382
|
# @param [Hash] opts the optional parameters
|
445
383
|
# @return [AsyncOperationResponse]
|
446
384
|
def update(ansible_remote_href, data, opts = {})
|
@@ -451,7 +389,7 @@ module PulpAnsibleClient
|
|
451
389
|
# Update an ansible remote
|
452
390
|
# Trigger an asynchronous update task
|
453
391
|
# @param ansible_remote_href [String] URI of Ansible Remote. e.g.: /pulp/api/v3/remotes/ansible/ansible/1/
|
454
|
-
# @param data [
|
392
|
+
# @param data [AnsibleAnsibleRemote]
|
455
393
|
# @param [Hash] opts the optional parameters
|
456
394
|
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
457
395
|
def update_with_http_info(ansible_remote_href, data, opts = {})
|
@@ -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.
|
9
|
+
OpenAPI Generator version: 4.2.2-SNAPSHOT
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -21,9 +21,9 @@ module PulpAnsibleClient
|
|
21
21
|
end
|
22
22
|
# Create a collection remote
|
23
23
|
# ViewSet for Collection Remotes.
|
24
|
-
# @param data [
|
24
|
+
# @param data [AnsibleCollectionRemote]
|
25
25
|
# @param [Hash] opts the optional parameters
|
26
|
-
# @return [
|
26
|
+
# @return [AnsibleCollectionRemote]
|
27
27
|
def create(data, opts = {})
|
28
28
|
data, _status_code, _headers = create_with_http_info(data, opts)
|
29
29
|
data
|
@@ -31,9 +31,9 @@ module PulpAnsibleClient
|
|
31
31
|
|
32
32
|
# Create a collection remote
|
33
33
|
# ViewSet for Collection Remotes.
|
34
|
-
# @param data [
|
34
|
+
# @param data [AnsibleCollectionRemote]
|
35
35
|
# @param [Hash] opts the optional parameters
|
36
|
-
# @return [Array<(
|
36
|
+
# @return [Array<(AnsibleCollectionRemote, Integer, Hash)>] AnsibleCollectionRemote data, response status code and response headers
|
37
37
|
def create_with_http_info(data, opts = {})
|
38
38
|
if @api_client.config.debugging
|
39
39
|
@api_client.config.logger.debug 'Calling API: RemotesCollectionApi.create ...'
|
@@ -62,7 +62,7 @@ module PulpAnsibleClient
|
|
62
62
|
post_body = opts[:body] || @api_client.object_to_http_body(data)
|
63
63
|
|
64
64
|
# return_type
|
65
|
-
return_type = opts[:return_type] || '
|
65
|
+
return_type = opts[:return_type] || 'AnsibleCollectionRemote'
|
66
66
|
|
67
67
|
# auth_names
|
68
68
|
auth_names = opts[:auth_names] || ['Basic']
|
@@ -150,16 +150,17 @@ module PulpAnsibleClient
|
|
150
150
|
# @param [Hash] opts the optional parameters
|
151
151
|
# @option opts [String] :name
|
152
152
|
# @option opts [String] :name__in Filter results where name is in a comma-separated list of values
|
153
|
-
# @option opts [String] :
|
154
|
-
# @option opts [String] :
|
155
|
-
# @option opts [String] :
|
156
|
-
# @option opts [String] :
|
157
|
-
# @option opts [String] :
|
158
|
-
# @option opts [String] :
|
153
|
+
# @option opts [String] :pulp_last_updated__lt Filter results where pulp_last_updated is less than value
|
154
|
+
# @option opts [String] :pulp_last_updated__lte Filter results where pulp_last_updated is less than or equal to value
|
155
|
+
# @option opts [String] :pulp_last_updated__gt Filter results where pulp_last_updated is greater than value
|
156
|
+
# @option opts [String] :pulp_last_updated__gte Filter results where pulp_last_updated is greater than or equal to value
|
157
|
+
# @option opts [String] :pulp_last_updated__range Filter results where pulp_last_updated is between two comma separated values
|
158
|
+
# @option opts [String] :pulp_last_updated ISO 8601 formatted dates are supported
|
159
159
|
# @option opts [Integer] :limit Number of results to return per page.
|
160
160
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
161
161
|
# @option opts [String] :fields A list of fields to include in the response.
|
162
|
-
# @
|
162
|
+
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
163
|
+
# @return [InlineResponse2006]
|
163
164
|
def list(opts = {})
|
164
165
|
data, _status_code, _headers = list_with_http_info(opts)
|
165
166
|
data
|
@@ -170,16 +171,17 @@ module PulpAnsibleClient
|
|
170
171
|
# @param [Hash] opts the optional parameters
|
171
172
|
# @option opts [String] :name
|
172
173
|
# @option opts [String] :name__in Filter results where name is in a comma-separated list of values
|
173
|
-
# @option opts [String] :
|
174
|
-
# @option opts [String] :
|
175
|
-
# @option opts [String] :
|
176
|
-
# @option opts [String] :
|
177
|
-
# @option opts [String] :
|
178
|
-
# @option opts [String] :
|
174
|
+
# @option opts [String] :pulp_last_updated__lt Filter results where pulp_last_updated is less than value
|
175
|
+
# @option opts [String] :pulp_last_updated__lte Filter results where pulp_last_updated is less than or equal to value
|
176
|
+
# @option opts [String] :pulp_last_updated__gt Filter results where pulp_last_updated is greater than value
|
177
|
+
# @option opts [String] :pulp_last_updated__gte Filter results where pulp_last_updated is greater than or equal to value
|
178
|
+
# @option opts [String] :pulp_last_updated__range Filter results where pulp_last_updated is between two comma separated values
|
179
|
+
# @option opts [String] :pulp_last_updated ISO 8601 formatted dates are supported
|
179
180
|
# @option opts [Integer] :limit Number of results to return per page.
|
180
181
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
181
182
|
# @option opts [String] :fields A list of fields to include in the response.
|
182
|
-
# @
|
183
|
+
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
184
|
+
# @return [Array<(InlineResponse2006, Integer, Hash)>] InlineResponse2006 data, response status code and response headers
|
183
185
|
def list_with_http_info(opts = {})
|
184
186
|
if @api_client.config.debugging
|
185
187
|
@api_client.config.logger.debug 'Calling API: RemotesCollectionApi.list ...'
|
@@ -191,15 +193,16 @@ module PulpAnsibleClient
|
|
191
193
|
query_params = opts[:query_params] || {}
|
192
194
|
query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
|
193
195
|
query_params[:'name__in'] = opts[:'name__in'] if !opts[:'name__in'].nil?
|
194
|
-
query_params[:'
|
195
|
-
query_params[:'
|
196
|
-
query_params[:'
|
197
|
-
query_params[:'
|
198
|
-
query_params[:'
|
199
|
-
query_params[:'
|
196
|
+
query_params[:'pulp_last_updated__lt'] = opts[:'pulp_last_updated__lt'] if !opts[:'pulp_last_updated__lt'].nil?
|
197
|
+
query_params[:'pulp_last_updated__lte'] = opts[:'pulp_last_updated__lte'] if !opts[:'pulp_last_updated__lte'].nil?
|
198
|
+
query_params[:'pulp_last_updated__gt'] = opts[:'pulp_last_updated__gt'] if !opts[:'pulp_last_updated__gt'].nil?
|
199
|
+
query_params[:'pulp_last_updated__gte'] = opts[:'pulp_last_updated__gte'] if !opts[:'pulp_last_updated__gte'].nil?
|
200
|
+
query_params[:'pulp_last_updated__range'] = opts[:'pulp_last_updated__range'] if !opts[:'pulp_last_updated__range'].nil?
|
201
|
+
query_params[:'pulp_last_updated'] = opts[:'pulp_last_updated'] if !opts[:'pulp_last_updated'].nil?
|
200
202
|
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
201
203
|
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
202
204
|
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
205
|
+
query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
|
203
206
|
|
204
207
|
# header parameters
|
205
208
|
header_params = opts[:header_params] || {}
|
@@ -213,7 +216,7 @@ module PulpAnsibleClient
|
|
213
216
|
post_body = opts[:body]
|
214
217
|
|
215
218
|
# return_type
|
216
|
-
return_type = opts[:return_type] || '
|
219
|
+
return_type = opts[:return_type] || 'InlineResponse2006'
|
217
220
|
|
218
221
|
# auth_names
|
219
222
|
auth_names = opts[:auth_names] || ['Basic']
|
@@ -237,7 +240,7 @@ module PulpAnsibleClient
|
|
237
240
|
# Partially update a collection remote
|
238
241
|
# Trigger an asynchronous partial update task
|
239
242
|
# @param collection_remote_href [String] URI of Collection Remote. e.g.: /pulp/api/v3/remotes/ansible/collection/1/
|
240
|
-
# @param data [
|
243
|
+
# @param data [AnsibleCollectionRemote]
|
241
244
|
# @param [Hash] opts the optional parameters
|
242
245
|
# @return [AsyncOperationResponse]
|
243
246
|
def partial_update(collection_remote_href, data, opts = {})
|
@@ -248,7 +251,7 @@ module PulpAnsibleClient
|
|
248
251
|
# Partially update a collection remote
|
249
252
|
# Trigger an asynchronous partial update task
|
250
253
|
# @param collection_remote_href [String] URI of Collection Remote. e.g.: /pulp/api/v3/remotes/ansible/collection/1/
|
251
|
-
# @param data [
|
254
|
+
# @param data [AnsibleCollectionRemote]
|
252
255
|
# @param [Hash] opts the optional parameters
|
253
256
|
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
254
257
|
def partial_update_with_http_info(collection_remote_href, data, opts = {})
|
@@ -309,7 +312,8 @@ module PulpAnsibleClient
|
|
309
312
|
# @param collection_remote_href [String] URI of Collection Remote. e.g.: /pulp/api/v3/remotes/ansible/collection/1/
|
310
313
|
# @param [Hash] opts the optional parameters
|
311
314
|
# @option opts [String] :fields A list of fields to include in the response.
|
312
|
-
# @
|
315
|
+
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
316
|
+
# @return [AnsibleCollectionRemote]
|
313
317
|
def read(collection_remote_href, opts = {})
|
314
318
|
data, _status_code, _headers = read_with_http_info(collection_remote_href, opts)
|
315
319
|
data
|
@@ -320,7 +324,8 @@ module PulpAnsibleClient
|
|
320
324
|
# @param collection_remote_href [String] URI of Collection Remote. e.g.: /pulp/api/v3/remotes/ansible/collection/1/
|
321
325
|
# @param [Hash] opts the optional parameters
|
322
326
|
# @option opts [String] :fields A list of fields to include in the response.
|
323
|
-
# @
|
327
|
+
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
328
|
+
# @return [Array<(AnsibleCollectionRemote, Integer, Hash)>] AnsibleCollectionRemote data, response status code and response headers
|
324
329
|
def read_with_http_info(collection_remote_href, opts = {})
|
325
330
|
if @api_client.config.debugging
|
326
331
|
@api_client.config.logger.debug 'Calling API: RemotesCollectionApi.read ...'
|
@@ -335,6 +340,7 @@ module PulpAnsibleClient
|
|
335
340
|
# query parameters
|
336
341
|
query_params = opts[:query_params] || {}
|
337
342
|
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
343
|
+
query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
|
338
344
|
|
339
345
|
# header parameters
|
340
346
|
header_params = opts[:header_params] || {}
|
@@ -348,7 +354,7 @@ module PulpAnsibleClient
|
|
348
354
|
post_body = opts[:body]
|
349
355
|
|
350
356
|
# return_type
|
351
|
-
return_type = opts[:return_type] || '
|
357
|
+
return_type = opts[:return_type] || 'AnsibleCollectionRemote'
|
352
358
|
|
353
359
|
# auth_names
|
354
360
|
auth_names = opts[:auth_names] || ['Basic']
|
@@ -369,78 +375,10 @@ module PulpAnsibleClient
|
|
369
375
|
return data, status_code, headers
|
370
376
|
end
|
371
377
|
|
372
|
-
# Trigger an asynchronous task to sync Collection content.
|
373
|
-
# @param collection_remote_href [String] URI of Collection Remote. e.g.: /pulp/api/v3/remotes/ansible/collection/1/
|
374
|
-
# @param data [RepositorySyncURL]
|
375
|
-
# @param [Hash] opts the optional parameters
|
376
|
-
# @return [AsyncOperationResponse]
|
377
|
-
def sync(collection_remote_href, data, opts = {})
|
378
|
-
data, _status_code, _headers = sync_with_http_info(collection_remote_href, data, opts)
|
379
|
-
data
|
380
|
-
end
|
381
|
-
|
382
|
-
# Trigger an asynchronous task to sync Collection content.
|
383
|
-
# @param collection_remote_href [String] URI of Collection Remote. e.g.: /pulp/api/v3/remotes/ansible/collection/1/
|
384
|
-
# @param data [RepositorySyncURL]
|
385
|
-
# @param [Hash] opts the optional parameters
|
386
|
-
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
387
|
-
def sync_with_http_info(collection_remote_href, data, opts = {})
|
388
|
-
if @api_client.config.debugging
|
389
|
-
@api_client.config.logger.debug 'Calling API: RemotesCollectionApi.sync ...'
|
390
|
-
end
|
391
|
-
# verify the required parameter 'collection_remote_href' is set
|
392
|
-
if @api_client.config.client_side_validation && collection_remote_href.nil?
|
393
|
-
fail ArgumentError, "Missing the required parameter 'collection_remote_href' when calling RemotesCollectionApi.sync"
|
394
|
-
end
|
395
|
-
# verify the required parameter 'data' is set
|
396
|
-
if @api_client.config.client_side_validation && data.nil?
|
397
|
-
fail ArgumentError, "Missing the required parameter 'data' when calling RemotesCollectionApi.sync"
|
398
|
-
end
|
399
|
-
# resource path
|
400
|
-
local_var_path = '{collection_remote_href}sync/'.sub('{' + 'collection_remote_href' + '}', CGI.escape(collection_remote_href.to_s).gsub('%2F', '/'))
|
401
|
-
|
402
|
-
# query parameters
|
403
|
-
query_params = opts[:query_params] || {}
|
404
|
-
|
405
|
-
# header parameters
|
406
|
-
header_params = opts[:header_params] || {}
|
407
|
-
# HTTP header 'Accept' (if needed)
|
408
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
409
|
-
# HTTP header 'Content-Type'
|
410
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
411
|
-
|
412
|
-
# form parameters
|
413
|
-
form_params = opts[:form_params] || {}
|
414
|
-
|
415
|
-
# http body (model)
|
416
|
-
post_body = opts[:body] || @api_client.object_to_http_body(data)
|
417
|
-
|
418
|
-
# return_type
|
419
|
-
return_type = opts[:return_type] || 'AsyncOperationResponse'
|
420
|
-
|
421
|
-
# auth_names
|
422
|
-
auth_names = opts[:auth_names] || ['Basic']
|
423
|
-
|
424
|
-
new_options = opts.merge(
|
425
|
-
:header_params => header_params,
|
426
|
-
:query_params => query_params,
|
427
|
-
:form_params => form_params,
|
428
|
-
:body => post_body,
|
429
|
-
:auth_names => auth_names,
|
430
|
-
:return_type => return_type
|
431
|
-
)
|
432
|
-
|
433
|
-
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
434
|
-
if @api_client.config.debugging
|
435
|
-
@api_client.config.logger.debug "API called: RemotesCollectionApi#sync\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
436
|
-
end
|
437
|
-
return data, status_code, headers
|
438
|
-
end
|
439
|
-
|
440
378
|
# Update a collection remote
|
441
379
|
# Trigger an asynchronous update task
|
442
380
|
# @param collection_remote_href [String] URI of Collection Remote. e.g.: /pulp/api/v3/remotes/ansible/collection/1/
|
443
|
-
# @param data [
|
381
|
+
# @param data [AnsibleCollectionRemote]
|
444
382
|
# @param [Hash] opts the optional parameters
|
445
383
|
# @return [AsyncOperationResponse]
|
446
384
|
def update(collection_remote_href, data, opts = {})
|
@@ -451,7 +389,7 @@ module PulpAnsibleClient
|
|
451
389
|
# Update a collection remote
|
452
390
|
# Trigger an asynchronous update task
|
453
391
|
# @param collection_remote_href [String] URI of Collection Remote. e.g.: /pulp/api/v3/remotes/ansible/collection/1/
|
454
|
-
# @param data [
|
392
|
+
# @param data [AnsibleCollectionRemote]
|
455
393
|
# @param [Hash] opts the optional parameters
|
456
394
|
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
457
395
|
def update_with_http_info(collection_remote_href, data, opts = {})
|