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
data/docs/RemotesAnsibleApi.md
CHANGED
@@ -9,14 +9,13 @@ Method | HTTP request | Description
|
|
9
9
|
[**list**](RemotesAnsibleApi.md#list) | **GET** /pulp/api/v3/remotes/ansible/ansible/ | List ansible remotes
|
10
10
|
[**partial_update**](RemotesAnsibleApi.md#partial_update) | **PATCH** {ansible_remote_href} | Partially update an ansible remote
|
11
11
|
[**read**](RemotesAnsibleApi.md#read) | **GET** {ansible_remote_href} | Inspect an ansible remote
|
12
|
-
[**sync**](RemotesAnsibleApi.md#sync) | **POST** {ansible_remote_href}sync/ |
|
13
12
|
[**update**](RemotesAnsibleApi.md#update) | **PUT** {ansible_remote_href} | Update an ansible remote
|
14
13
|
|
15
14
|
|
16
15
|
|
17
16
|
## create
|
18
17
|
|
19
|
-
>
|
18
|
+
> AnsibleAnsibleRemote create(data)
|
20
19
|
|
21
20
|
Create an ansible remote
|
22
21
|
|
@@ -35,7 +34,7 @@ PulpAnsibleClient.configure do |config|
|
|
35
34
|
end
|
36
35
|
|
37
36
|
api_instance = PulpAnsibleClient::RemotesAnsibleApi.new
|
38
|
-
data = PulpAnsibleClient::
|
37
|
+
data = PulpAnsibleClient::AnsibleAnsibleRemote.new # AnsibleAnsibleRemote |
|
39
38
|
|
40
39
|
begin
|
41
40
|
#Create an ansible remote
|
@@ -51,11 +50,11 @@ end
|
|
51
50
|
|
52
51
|
Name | Type | Description | Notes
|
53
52
|
------------- | ------------- | ------------- | -------------
|
54
|
-
**data** | [**
|
53
|
+
**data** | [**AnsibleAnsibleRemote**](AnsibleAnsibleRemote.md)| |
|
55
54
|
|
56
55
|
### Return type
|
57
56
|
|
58
|
-
[**
|
57
|
+
[**AnsibleAnsibleRemote**](AnsibleAnsibleRemote.md)
|
59
58
|
|
60
59
|
### Authorization
|
61
60
|
|
@@ -122,7 +121,7 @@ Name | Type | Description | Notes
|
|
122
121
|
|
123
122
|
## list
|
124
123
|
|
125
|
-
>
|
124
|
+
> InlineResponse2005 list(opts)
|
126
125
|
|
127
126
|
List ansible remotes
|
128
127
|
|
@@ -144,15 +143,16 @@ api_instance = PulpAnsibleClient::RemotesAnsibleApi.new
|
|
144
143
|
opts = {
|
145
144
|
name: 'name_example', # String |
|
146
145
|
name__in: 'name__in_example', # String | Filter results where name is in a comma-separated list of values
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
146
|
+
pulp_last_updated__lt: 'pulp_last_updated__lt_example', # String | Filter results where pulp_last_updated is less than value
|
147
|
+
pulp_last_updated__lte: 'pulp_last_updated__lte_example', # String | Filter results where pulp_last_updated is less than or equal to value
|
148
|
+
pulp_last_updated__gt: 'pulp_last_updated__gt_example', # String | Filter results where pulp_last_updated is greater than value
|
149
|
+
pulp_last_updated__gte: 'pulp_last_updated__gte_example', # String | Filter results where pulp_last_updated is greater than or equal to value
|
150
|
+
pulp_last_updated__range: 'pulp_last_updated__range_example', # String | Filter results where pulp_last_updated is between two comma separated values
|
151
|
+
pulp_last_updated: 'pulp_last_updated_example', # String | ISO 8601 formatted dates are supported
|
153
152
|
limit: 56, # Integer | Number of results to return per page.
|
154
153
|
offset: 56, # Integer | The initial index from which to return the results.
|
155
|
-
fields: 'fields_example' # String | A list of fields to include in the response.
|
154
|
+
fields: 'fields_example', # String | A list of fields to include in the response.
|
155
|
+
exclude_fields: 'exclude_fields_example' # String | A list of fields to exclude from the response.
|
156
156
|
}
|
157
157
|
|
158
158
|
begin
|
@@ -171,19 +171,20 @@ Name | Type | Description | Notes
|
|
171
171
|
------------- | ------------- | ------------- | -------------
|
172
172
|
**name** | **String**| | [optional]
|
173
173
|
**name__in** | **String**| Filter results where name is in a comma-separated list of values | [optional]
|
174
|
-
**
|
175
|
-
**
|
176
|
-
**
|
177
|
-
**
|
178
|
-
**
|
179
|
-
**
|
174
|
+
**pulp_last_updated__lt** | **String**| Filter results where pulp_last_updated is less than value | [optional]
|
175
|
+
**pulp_last_updated__lte** | **String**| Filter results where pulp_last_updated is less than or equal to value | [optional]
|
176
|
+
**pulp_last_updated__gt** | **String**| Filter results where pulp_last_updated is greater than value | [optional]
|
177
|
+
**pulp_last_updated__gte** | **String**| Filter results where pulp_last_updated is greater than or equal to value | [optional]
|
178
|
+
**pulp_last_updated__range** | **String**| Filter results where pulp_last_updated is between two comma separated values | [optional]
|
179
|
+
**pulp_last_updated** | **String**| ISO 8601 formatted dates are supported | [optional]
|
180
180
|
**limit** | **Integer**| Number of results to return per page. | [optional]
|
181
181
|
**offset** | **Integer**| The initial index from which to return the results. | [optional]
|
182
182
|
**fields** | **String**| A list of fields to include in the response. | [optional]
|
183
|
+
**exclude_fields** | **String**| A list of fields to exclude from the response. | [optional]
|
183
184
|
|
184
185
|
### Return type
|
185
186
|
|
186
|
-
[**
|
187
|
+
[**InlineResponse2005**](InlineResponse2005.md)
|
187
188
|
|
188
189
|
### Authorization
|
189
190
|
|
@@ -217,7 +218,7 @@ end
|
|
217
218
|
|
218
219
|
api_instance = PulpAnsibleClient::RemotesAnsibleApi.new
|
219
220
|
ansible_remote_href = 'ansible_remote_href_example' # String | URI of Ansible Remote. e.g.: /pulp/api/v3/remotes/ansible/ansible/1/
|
220
|
-
data = PulpAnsibleClient::
|
221
|
+
data = PulpAnsibleClient::AnsibleAnsibleRemote.new # AnsibleAnsibleRemote |
|
221
222
|
|
222
223
|
begin
|
223
224
|
#Partially update an ansible remote
|
@@ -234,7 +235,7 @@ end
|
|
234
235
|
Name | Type | Description | Notes
|
235
236
|
------------- | ------------- | ------------- | -------------
|
236
237
|
**ansible_remote_href** | **String**| URI of Ansible Remote. e.g.: /pulp/api/v3/remotes/ansible/ansible/1/ |
|
237
|
-
**data** | [**
|
238
|
+
**data** | [**AnsibleAnsibleRemote**](AnsibleAnsibleRemote.md)| |
|
238
239
|
|
239
240
|
### Return type
|
240
241
|
|
@@ -252,7 +253,7 @@ Name | Type | Description | Notes
|
|
252
253
|
|
253
254
|
## read
|
254
255
|
|
255
|
-
>
|
256
|
+
> AnsibleAnsibleRemote read(ansible_remote_href, opts)
|
256
257
|
|
257
258
|
Inspect an ansible remote
|
258
259
|
|
@@ -273,7 +274,8 @@ end
|
|
273
274
|
api_instance = PulpAnsibleClient::RemotesAnsibleApi.new
|
274
275
|
ansible_remote_href = 'ansible_remote_href_example' # String | URI of Ansible Remote. e.g.: /pulp/api/v3/remotes/ansible/ansible/1/
|
275
276
|
opts = {
|
276
|
-
fields: 'fields_example' # String | A list of fields to include in the response.
|
277
|
+
fields: 'fields_example', # String | A list of fields to include in the response.
|
278
|
+
exclude_fields: 'exclude_fields_example' # String | A list of fields to exclude from the response.
|
277
279
|
}
|
278
280
|
|
279
281
|
begin
|
@@ -292,10 +294,11 @@ Name | Type | Description | Notes
|
|
292
294
|
------------- | ------------- | ------------- | -------------
|
293
295
|
**ansible_remote_href** | **String**| URI of Ansible Remote. e.g.: /pulp/api/v3/remotes/ansible/ansible/1/ |
|
294
296
|
**fields** | **String**| A list of fields to include in the response. | [optional]
|
297
|
+
**exclude_fields** | **String**| A list of fields to exclude from the response. | [optional]
|
295
298
|
|
296
299
|
### Return type
|
297
300
|
|
298
|
-
[**
|
301
|
+
[**AnsibleAnsibleRemote**](AnsibleAnsibleRemote.md)
|
299
302
|
|
300
303
|
### Authorization
|
301
304
|
|
@@ -307,60 +310,6 @@ Name | Type | Description | Notes
|
|
307
310
|
- **Accept**: application/json
|
308
311
|
|
309
312
|
|
310
|
-
## sync
|
311
|
-
|
312
|
-
> AsyncOperationResponse sync(ansible_remote_href, data)
|
313
|
-
|
314
|
-
|
315
|
-
|
316
|
-
Trigger an asynchronous task to sync Ansible content.
|
317
|
-
|
318
|
-
### Example
|
319
|
-
|
320
|
-
```ruby
|
321
|
-
# load the gem
|
322
|
-
require 'pulp_ansible_client'
|
323
|
-
# setup authorization
|
324
|
-
PulpAnsibleClient.configure do |config|
|
325
|
-
# Configure HTTP basic authorization: Basic
|
326
|
-
config.username = 'YOUR USERNAME'
|
327
|
-
config.password = 'YOUR PASSWORD'
|
328
|
-
end
|
329
|
-
|
330
|
-
api_instance = PulpAnsibleClient::RemotesAnsibleApi.new
|
331
|
-
ansible_remote_href = 'ansible_remote_href_example' # String | URI of Ansible Remote. e.g.: /pulp/api/v3/remotes/ansible/ansible/1/
|
332
|
-
data = PulpAnsibleClient::RepositorySyncURL.new # RepositorySyncURL |
|
333
|
-
|
334
|
-
begin
|
335
|
-
result = api_instance.sync(ansible_remote_href, data)
|
336
|
-
p result
|
337
|
-
rescue PulpAnsibleClient::ApiError => e
|
338
|
-
puts "Exception when calling RemotesAnsibleApi->sync: #{e}"
|
339
|
-
end
|
340
|
-
```
|
341
|
-
|
342
|
-
### Parameters
|
343
|
-
|
344
|
-
|
345
|
-
Name | Type | Description | Notes
|
346
|
-
------------- | ------------- | ------------- | -------------
|
347
|
-
**ansible_remote_href** | **String**| URI of Ansible Remote. e.g.: /pulp/api/v3/remotes/ansible/ansible/1/ |
|
348
|
-
**data** | [**RepositorySyncURL**](RepositorySyncURL.md)| |
|
349
|
-
|
350
|
-
### Return type
|
351
|
-
|
352
|
-
[**AsyncOperationResponse**](AsyncOperationResponse.md)
|
353
|
-
|
354
|
-
### Authorization
|
355
|
-
|
356
|
-
[Basic](../README.md#Basic)
|
357
|
-
|
358
|
-
### HTTP request headers
|
359
|
-
|
360
|
-
- **Content-Type**: application/json
|
361
|
-
- **Accept**: application/json
|
362
|
-
|
363
|
-
|
364
313
|
## update
|
365
314
|
|
366
315
|
> AsyncOperationResponse update(ansible_remote_href, data)
|
@@ -383,7 +332,7 @@ end
|
|
383
332
|
|
384
333
|
api_instance = PulpAnsibleClient::RemotesAnsibleApi.new
|
385
334
|
ansible_remote_href = 'ansible_remote_href_example' # String | URI of Ansible Remote. e.g.: /pulp/api/v3/remotes/ansible/ansible/1/
|
386
|
-
data = PulpAnsibleClient::
|
335
|
+
data = PulpAnsibleClient::AnsibleAnsibleRemote.new # AnsibleAnsibleRemote |
|
387
336
|
|
388
337
|
begin
|
389
338
|
#Update an ansible remote
|
@@ -400,7 +349,7 @@ end
|
|
400
349
|
Name | Type | Description | Notes
|
401
350
|
------------- | ------------- | ------------- | -------------
|
402
351
|
**ansible_remote_href** | **String**| URI of Ansible Remote. e.g.: /pulp/api/v3/remotes/ansible/ansible/1/ |
|
403
|
-
**data** | [**
|
352
|
+
**data** | [**AnsibleAnsibleRemote**](AnsibleAnsibleRemote.md)| |
|
404
353
|
|
405
354
|
### Return type
|
406
355
|
|
@@ -9,14 +9,13 @@ Method | HTTP request | Description
|
|
9
9
|
[**list**](RemotesCollectionApi.md#list) | **GET** /pulp/api/v3/remotes/ansible/collection/ | List collection remotes
|
10
10
|
[**partial_update**](RemotesCollectionApi.md#partial_update) | **PATCH** {collection_remote_href} | Partially update a collection remote
|
11
11
|
[**read**](RemotesCollectionApi.md#read) | **GET** {collection_remote_href} | Inspect a collection remote
|
12
|
-
[**sync**](RemotesCollectionApi.md#sync) | **POST** {collection_remote_href}sync/ |
|
13
12
|
[**update**](RemotesCollectionApi.md#update) | **PUT** {collection_remote_href} | Update a collection remote
|
14
13
|
|
15
14
|
|
16
15
|
|
17
16
|
## create
|
18
17
|
|
19
|
-
>
|
18
|
+
> AnsibleCollectionRemote create(data)
|
20
19
|
|
21
20
|
Create a collection remote
|
22
21
|
|
@@ -35,7 +34,7 @@ PulpAnsibleClient.configure do |config|
|
|
35
34
|
end
|
36
35
|
|
37
36
|
api_instance = PulpAnsibleClient::RemotesCollectionApi.new
|
38
|
-
data = PulpAnsibleClient::
|
37
|
+
data = PulpAnsibleClient::AnsibleCollectionRemote.new # AnsibleCollectionRemote |
|
39
38
|
|
40
39
|
begin
|
41
40
|
#Create a collection remote
|
@@ -51,11 +50,11 @@ end
|
|
51
50
|
|
52
51
|
Name | Type | Description | Notes
|
53
52
|
------------- | ------------- | ------------- | -------------
|
54
|
-
**data** | [**
|
53
|
+
**data** | [**AnsibleCollectionRemote**](AnsibleCollectionRemote.md)| |
|
55
54
|
|
56
55
|
### Return type
|
57
56
|
|
58
|
-
[**
|
57
|
+
[**AnsibleCollectionRemote**](AnsibleCollectionRemote.md)
|
59
58
|
|
60
59
|
### Authorization
|
61
60
|
|
@@ -122,7 +121,7 @@ Name | Type | Description | Notes
|
|
122
121
|
|
123
122
|
## list
|
124
123
|
|
125
|
-
>
|
124
|
+
> InlineResponse2006 list(opts)
|
126
125
|
|
127
126
|
List collection remotes
|
128
127
|
|
@@ -144,15 +143,16 @@ api_instance = PulpAnsibleClient::RemotesCollectionApi.new
|
|
144
143
|
opts = {
|
145
144
|
name: 'name_example', # String |
|
146
145
|
name__in: 'name__in_example', # String | Filter results where name is in a comma-separated list of values
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
146
|
+
pulp_last_updated__lt: 'pulp_last_updated__lt_example', # String | Filter results where pulp_last_updated is less than value
|
147
|
+
pulp_last_updated__lte: 'pulp_last_updated__lte_example', # String | Filter results where pulp_last_updated is less than or equal to value
|
148
|
+
pulp_last_updated__gt: 'pulp_last_updated__gt_example', # String | Filter results where pulp_last_updated is greater than value
|
149
|
+
pulp_last_updated__gte: 'pulp_last_updated__gte_example', # String | Filter results where pulp_last_updated is greater than or equal to value
|
150
|
+
pulp_last_updated__range: 'pulp_last_updated__range_example', # String | Filter results where pulp_last_updated is between two comma separated values
|
151
|
+
pulp_last_updated: 'pulp_last_updated_example', # String | ISO 8601 formatted dates are supported
|
153
152
|
limit: 56, # Integer | Number of results to return per page.
|
154
153
|
offset: 56, # Integer | The initial index from which to return the results.
|
155
|
-
fields: 'fields_example' # String | A list of fields to include in the response.
|
154
|
+
fields: 'fields_example', # String | A list of fields to include in the response.
|
155
|
+
exclude_fields: 'exclude_fields_example' # String | A list of fields to exclude from the response.
|
156
156
|
}
|
157
157
|
|
158
158
|
begin
|
@@ -171,19 +171,20 @@ Name | Type | Description | Notes
|
|
171
171
|
------------- | ------------- | ------------- | -------------
|
172
172
|
**name** | **String**| | [optional]
|
173
173
|
**name__in** | **String**| Filter results where name is in a comma-separated list of values | [optional]
|
174
|
-
**
|
175
|
-
**
|
176
|
-
**
|
177
|
-
**
|
178
|
-
**
|
179
|
-
**
|
174
|
+
**pulp_last_updated__lt** | **String**| Filter results where pulp_last_updated is less than value | [optional]
|
175
|
+
**pulp_last_updated__lte** | **String**| Filter results where pulp_last_updated is less than or equal to value | [optional]
|
176
|
+
**pulp_last_updated__gt** | **String**| Filter results where pulp_last_updated is greater than value | [optional]
|
177
|
+
**pulp_last_updated__gte** | **String**| Filter results where pulp_last_updated is greater than or equal to value | [optional]
|
178
|
+
**pulp_last_updated__range** | **String**| Filter results where pulp_last_updated is between two comma separated values | [optional]
|
179
|
+
**pulp_last_updated** | **String**| ISO 8601 formatted dates are supported | [optional]
|
180
180
|
**limit** | **Integer**| Number of results to return per page. | [optional]
|
181
181
|
**offset** | **Integer**| The initial index from which to return the results. | [optional]
|
182
182
|
**fields** | **String**| A list of fields to include in the response. | [optional]
|
183
|
+
**exclude_fields** | **String**| A list of fields to exclude from the response. | [optional]
|
183
184
|
|
184
185
|
### Return type
|
185
186
|
|
186
|
-
[**
|
187
|
+
[**InlineResponse2006**](InlineResponse2006.md)
|
187
188
|
|
188
189
|
### Authorization
|
189
190
|
|
@@ -217,7 +218,7 @@ end
|
|
217
218
|
|
218
219
|
api_instance = PulpAnsibleClient::RemotesCollectionApi.new
|
219
220
|
collection_remote_href = 'collection_remote_href_example' # String | URI of Collection Remote. e.g.: /pulp/api/v3/remotes/ansible/collection/1/
|
220
|
-
data = PulpAnsibleClient::
|
221
|
+
data = PulpAnsibleClient::AnsibleCollectionRemote.new # AnsibleCollectionRemote |
|
221
222
|
|
222
223
|
begin
|
223
224
|
#Partially update a collection remote
|
@@ -234,7 +235,7 @@ end
|
|
234
235
|
Name | Type | Description | Notes
|
235
236
|
------------- | ------------- | ------------- | -------------
|
236
237
|
**collection_remote_href** | **String**| URI of Collection Remote. e.g.: /pulp/api/v3/remotes/ansible/collection/1/ |
|
237
|
-
**data** | [**
|
238
|
+
**data** | [**AnsibleCollectionRemote**](AnsibleCollectionRemote.md)| |
|
238
239
|
|
239
240
|
### Return type
|
240
241
|
|
@@ -252,7 +253,7 @@ Name | Type | Description | Notes
|
|
252
253
|
|
253
254
|
## read
|
254
255
|
|
255
|
-
>
|
256
|
+
> AnsibleCollectionRemote read(collection_remote_href, opts)
|
256
257
|
|
257
258
|
Inspect a collection remote
|
258
259
|
|
@@ -273,7 +274,8 @@ end
|
|
273
274
|
api_instance = PulpAnsibleClient::RemotesCollectionApi.new
|
274
275
|
collection_remote_href = 'collection_remote_href_example' # String | URI of Collection Remote. e.g.: /pulp/api/v3/remotes/ansible/collection/1/
|
275
276
|
opts = {
|
276
|
-
fields: 'fields_example' # String | A list of fields to include in the response.
|
277
|
+
fields: 'fields_example', # String | A list of fields to include in the response.
|
278
|
+
exclude_fields: 'exclude_fields_example' # String | A list of fields to exclude from the response.
|
277
279
|
}
|
278
280
|
|
279
281
|
begin
|
@@ -292,10 +294,11 @@ Name | Type | Description | Notes
|
|
292
294
|
------------- | ------------- | ------------- | -------------
|
293
295
|
**collection_remote_href** | **String**| URI of Collection Remote. e.g.: /pulp/api/v3/remotes/ansible/collection/1/ |
|
294
296
|
**fields** | **String**| A list of fields to include in the response. | [optional]
|
297
|
+
**exclude_fields** | **String**| A list of fields to exclude from the response. | [optional]
|
295
298
|
|
296
299
|
### Return type
|
297
300
|
|
298
|
-
[**
|
301
|
+
[**AnsibleCollectionRemote**](AnsibleCollectionRemote.md)
|
299
302
|
|
300
303
|
### Authorization
|
301
304
|
|
@@ -307,60 +310,6 @@ Name | Type | Description | Notes
|
|
307
310
|
- **Accept**: application/json
|
308
311
|
|
309
312
|
|
310
|
-
## sync
|
311
|
-
|
312
|
-
> AsyncOperationResponse sync(collection_remote_href, data)
|
313
|
-
|
314
|
-
|
315
|
-
|
316
|
-
Trigger an asynchronous task to sync Collection content.
|
317
|
-
|
318
|
-
### Example
|
319
|
-
|
320
|
-
```ruby
|
321
|
-
# load the gem
|
322
|
-
require 'pulp_ansible_client'
|
323
|
-
# setup authorization
|
324
|
-
PulpAnsibleClient.configure do |config|
|
325
|
-
# Configure HTTP basic authorization: Basic
|
326
|
-
config.username = 'YOUR USERNAME'
|
327
|
-
config.password = 'YOUR PASSWORD'
|
328
|
-
end
|
329
|
-
|
330
|
-
api_instance = PulpAnsibleClient::RemotesCollectionApi.new
|
331
|
-
collection_remote_href = 'collection_remote_href_example' # String | URI of Collection Remote. e.g.: /pulp/api/v3/remotes/ansible/collection/1/
|
332
|
-
data = PulpAnsibleClient::RepositorySyncURL.new # RepositorySyncURL |
|
333
|
-
|
334
|
-
begin
|
335
|
-
result = api_instance.sync(collection_remote_href, data)
|
336
|
-
p result
|
337
|
-
rescue PulpAnsibleClient::ApiError => e
|
338
|
-
puts "Exception when calling RemotesCollectionApi->sync: #{e}"
|
339
|
-
end
|
340
|
-
```
|
341
|
-
|
342
|
-
### Parameters
|
343
|
-
|
344
|
-
|
345
|
-
Name | Type | Description | Notes
|
346
|
-
------------- | ------------- | ------------- | -------------
|
347
|
-
**collection_remote_href** | **String**| URI of Collection Remote. e.g.: /pulp/api/v3/remotes/ansible/collection/1/ |
|
348
|
-
**data** | [**RepositorySyncURL**](RepositorySyncURL.md)| |
|
349
|
-
|
350
|
-
### Return type
|
351
|
-
|
352
|
-
[**AsyncOperationResponse**](AsyncOperationResponse.md)
|
353
|
-
|
354
|
-
### Authorization
|
355
|
-
|
356
|
-
[Basic](../README.md#Basic)
|
357
|
-
|
358
|
-
### HTTP request headers
|
359
|
-
|
360
|
-
- **Content-Type**: application/json
|
361
|
-
- **Accept**: application/json
|
362
|
-
|
363
|
-
|
364
313
|
## update
|
365
314
|
|
366
315
|
> AsyncOperationResponse update(collection_remote_href, data)
|
@@ -383,7 +332,7 @@ end
|
|
383
332
|
|
384
333
|
api_instance = PulpAnsibleClient::RemotesCollectionApi.new
|
385
334
|
collection_remote_href = 'collection_remote_href_example' # String | URI of Collection Remote. e.g.: /pulp/api/v3/remotes/ansible/collection/1/
|
386
|
-
data = PulpAnsibleClient::
|
335
|
+
data = PulpAnsibleClient::AnsibleCollectionRemote.new # AnsibleCollectionRemote |
|
387
336
|
|
388
337
|
begin
|
389
338
|
#Update a collection remote
|
@@ -400,7 +349,7 @@ end
|
|
400
349
|
Name | Type | Description | Notes
|
401
350
|
------------- | ------------- | ------------- | -------------
|
402
351
|
**collection_remote_href** | **String**| URI of Collection Remote. e.g.: /pulp/api/v3/remotes/ansible/collection/1/ |
|
403
|
-
**data** | [**
|
352
|
+
**data** | [**AnsibleCollectionRemote**](AnsibleCollectionRemote.md)| |
|
404
353
|
|
405
354
|
### Return type
|
406
355
|
|