pulp_ansible_client 0.2.0b1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (103) hide show
  1. checksums.yaml +7 -0
  2. data/Gemfile +9 -0
  3. data/Gemfile.lock +79 -0
  4. data/README.md +150 -0
  5. data/Rakefile +10 -0
  6. data/docs/AnsibleCollectionsApi.md +66 -0
  7. data/docs/AnsibleDistribution.md +31 -0
  8. data/docs/AnsibleRemote.md +45 -0
  9. data/docs/AsyncOperationResponse.md +17 -0
  10. data/docs/Collection.md +41 -0
  11. data/docs/CollectionRemote.md +47 -0
  12. data/docs/ContentCollectionsApi.md +134 -0
  13. data/docs/ContentRolesApi.md +186 -0
  14. data/docs/DistributionsAnsibleApi.md +352 -0
  15. data/docs/GalaxyCollection.md +25 -0
  16. data/docs/GalaxyRole.md +21 -0
  17. data/docs/GalaxyRoleVersion.md +19 -0
  18. data/docs/InlineResponse200.md +23 -0
  19. data/docs/InlineResponse2001.md +23 -0
  20. data/docs/InlineResponse2002.md +23 -0
  21. data/docs/InlineResponse2003.md +23 -0
  22. data/docs/InlineResponse2004.md +23 -0
  23. data/docs/InlineResponse2005.md +23 -0
  24. data/docs/InlineResponse2006.md +23 -0
  25. data/docs/InlineResponse2007.md +23 -0
  26. data/docs/PulpAnsibleApiApi.md +60 -0
  27. data/docs/PulpAnsibleGalaxyApiCollectionsApi.md +113 -0
  28. data/docs/PulpAnsibleGalaxyApiRolesApi.md +67 -0
  29. data/docs/PulpAnsibleGalaxyApiV1VersionsApi.md +69 -0
  30. data/docs/PulpAnsibleGalaxyApiV2VersionsApi.md +67 -0
  31. data/docs/RemotesAnsibleApi.md +411 -0
  32. data/docs/RemotesCollectionApi.md +411 -0
  33. data/docs/RepositorySyncURL.md +19 -0
  34. data/docs/Role.md +29 -0
  35. data/git_push.sh +55 -0
  36. data/lib/pulp_ansible_client/api/ansible_collections_api.rb +94 -0
  37. data/lib/pulp_ansible_client/api/content_collections_api.rb +169 -0
  38. data/lib/pulp_ansible_client/api/content_roles_api.rb +228 -0
  39. data/lib/pulp_ansible_client/api/distributions_ansible_api.rb +430 -0
  40. data/lib/pulp_ansible_client/api/pulp_ansible_api_api.rb +80 -0
  41. data/lib/pulp_ansible_client/api/pulp_ansible_galaxy_api_collections_api.rb +140 -0
  42. data/lib/pulp_ansible_client/api/pulp_ansible_galaxy_api_roles_api.rb +88 -0
  43. data/lib/pulp_ansible_client/api/pulp_ansible_galaxy_api_v1_versions_api.rb +94 -0
  44. data/lib/pulp_ansible_client/api/pulp_ansible_galaxy_api_v2_versions_api.rb +88 -0
  45. data/lib/pulp_ansible_client/api/remotes_ansible_api.rb +504 -0
  46. data/lib/pulp_ansible_client/api/remotes_collection_api.rb +504 -0
  47. data/lib/pulp_ansible_client/api_client.rb +387 -0
  48. data/lib/pulp_ansible_client/api_error.rb +57 -0
  49. data/lib/pulp_ansible_client/configuration.rb +251 -0
  50. data/lib/pulp_ansible_client/models/ansible_distribution.rb +347 -0
  51. data/lib/pulp_ansible_client/models/ansible_remote.rb +539 -0
  52. data/lib/pulp_ansible_client/models/async_operation_response.rb +202 -0
  53. data/lib/pulp_ansible_client/models/collection.rb +494 -0
  54. data/lib/pulp_ansible_client/models/collection_remote.rb +572 -0
  55. data/lib/pulp_ansible_client/models/galaxy_collection.rb +304 -0
  56. data/lib/pulp_ansible_client/models/galaxy_role.rb +262 -0
  57. data/lib/pulp_ansible_client/models/galaxy_role_version.rb +229 -0
  58. data/lib/pulp_ansible_client/models/inline_response200.rb +235 -0
  59. data/lib/pulp_ansible_client/models/inline_response2001.rb +235 -0
  60. data/lib/pulp_ansible_client/models/inline_response2002.rb +235 -0
  61. data/lib/pulp_ansible_client/models/inline_response2003.rb +235 -0
  62. data/lib/pulp_ansible_client/models/inline_response2004.rb +235 -0
  63. data/lib/pulp_ansible_client/models/inline_response2005.rb +235 -0
  64. data/lib/pulp_ansible_client/models/inline_response2006.rb +235 -0
  65. data/lib/pulp_ansible_client/models/inline_response2007.rb +235 -0
  66. data/lib/pulp_ansible_client/models/repository_sync_url.rb +214 -0
  67. data/lib/pulp_ansible_client/models/role.rb +344 -0
  68. data/lib/pulp_ansible_client/version.rb +15 -0
  69. data/lib/pulp_ansible_client.rb +68 -0
  70. data/pulp_ansible_client.gemspec +45 -0
  71. data/spec/api/ansible_collections_api_spec.rb +48 -0
  72. data/spec/api/content_collections_api_spec.rb +67 -0
  73. data/spec/api/content_roles_api_spec.rb +78 -0
  74. data/spec/api/distributions_ansible_api_spec.rb +116 -0
  75. data/spec/api/pulp_ansible_api_api_spec.rb +46 -0
  76. data/spec/api/pulp_ansible_galaxy_api_collections_api_spec.rb +57 -0
  77. data/spec/api/pulp_ansible_galaxy_api_roles_api_spec.rb +48 -0
  78. data/spec/api/pulp_ansible_galaxy_api_v1_versions_api_spec.rb +49 -0
  79. data/spec/api/pulp_ansible_galaxy_api_v2_versions_api_spec.rb +48 -0
  80. data/spec/api/remotes_ansible_api_spec.rb +130 -0
  81. data/spec/api/remotes_collection_api_spec.rb +130 -0
  82. data/spec/api_client_spec.rb +226 -0
  83. data/spec/configuration_spec.rb +42 -0
  84. data/spec/models/ansible_distribution_spec.rb +83 -0
  85. data/spec/models/ansible_remote_spec.rb +129 -0
  86. data/spec/models/async_operation_response_spec.rb +41 -0
  87. data/spec/models/collection_remote_spec.rb +135 -0
  88. data/spec/models/collection_spec.rb +113 -0
  89. data/spec/models/galaxy_collection_spec.rb +65 -0
  90. data/spec/models/galaxy_role_spec.rb +53 -0
  91. data/spec/models/galaxy_role_version_spec.rb +47 -0
  92. data/spec/models/inline_response2001_spec.rb +59 -0
  93. data/spec/models/inline_response2002_spec.rb +59 -0
  94. data/spec/models/inline_response2003_spec.rb +59 -0
  95. data/spec/models/inline_response2004_spec.rb +59 -0
  96. data/spec/models/inline_response2005_spec.rb +59 -0
  97. data/spec/models/inline_response2006_spec.rb +59 -0
  98. data/spec/models/inline_response2007_spec.rb +59 -0
  99. data/spec/models/inline_response200_spec.rb +59 -0
  100. data/spec/models/repository_sync_url_spec.rb +47 -0
  101. data/spec/models/role_spec.rb +77 -0
  102. data/spec/spec_helper.rb +111 -0
  103. metadata +357 -0
@@ -0,0 +1,411 @@
1
+ # PulpAnsibleClient::RemotesAnsibleApi
2
+
3
+ All URIs are relative to *http://localhost:24817*
4
+
5
+ Method | HTTP request | Description
6
+ ------------- | ------------- | -------------
7
+ [**create**](RemotesAnsibleApi.md#create) | **POST** /pulp/api/v3/remotes/ansible/ansible/ | Create an ansible remote
8
+ [**delete**](RemotesAnsibleApi.md#delete) | **DELETE** {ansible_remote_href} | Delete an ansible remote
9
+ [**list**](RemotesAnsibleApi.md#list) | **GET** /pulp/api/v3/remotes/ansible/ansible/ | List ansible remotes
10
+ [**partial_update**](RemotesAnsibleApi.md#partial_update) | **PATCH** {ansible_remote_href} | Partially update an ansible remote
11
+ [**read**](RemotesAnsibleApi.md#read) | **GET** {ansible_remote_href} | Inspect an ansible remote
12
+ [**sync**](RemotesAnsibleApi.md#sync) | **POST** {ansible_remote_href}sync/ |
13
+ [**update**](RemotesAnsibleApi.md#update) | **PUT** {ansible_remote_href} | Update an ansible remote
14
+
15
+
16
+
17
+ ## create
18
+
19
+ > AnsibleRemote create(data)
20
+
21
+ Create an ansible remote
22
+
23
+ ViewSet for Ansible Remotes.
24
+
25
+ ### Example
26
+
27
+ ```ruby
28
+ # load the gem
29
+ require 'pulp_ansible_client'
30
+ # setup authorization
31
+ PulpAnsibleClient.configure do |config|
32
+ # Configure HTTP basic authorization: Basic
33
+ config.username = 'YOUR USERNAME'
34
+ config.password = 'YOUR PASSWORD'
35
+ end
36
+
37
+ api_instance = PulpAnsibleClient::RemotesAnsibleApi.new
38
+ data = PulpAnsibleClient::AnsibleRemote.new # AnsibleRemote |
39
+
40
+ begin
41
+ #Create an ansible remote
42
+ result = api_instance.create(data)
43
+ p result
44
+ rescue PulpAnsibleClient::ApiError => e
45
+ puts "Exception when calling RemotesAnsibleApi->create: #{e}"
46
+ end
47
+ ```
48
+
49
+ ### Parameters
50
+
51
+
52
+ Name | Type | Description | Notes
53
+ ------------- | ------------- | ------------- | -------------
54
+ **data** | [**AnsibleRemote**](AnsibleRemote.md)| |
55
+
56
+ ### Return type
57
+
58
+ [**AnsibleRemote**](AnsibleRemote.md)
59
+
60
+ ### Authorization
61
+
62
+ [Basic](../README.md#Basic)
63
+
64
+ ### HTTP request headers
65
+
66
+ - **Content-Type**: application/json
67
+ - **Accept**: application/json
68
+
69
+
70
+ ## delete
71
+
72
+ > AsyncOperationResponse delete(ansible_remote_href)
73
+
74
+ Delete an ansible remote
75
+
76
+ Trigger an asynchronous delete task
77
+
78
+ ### Example
79
+
80
+ ```ruby
81
+ # load the gem
82
+ require 'pulp_ansible_client'
83
+ # setup authorization
84
+ PulpAnsibleClient.configure do |config|
85
+ # Configure HTTP basic authorization: Basic
86
+ config.username = 'YOUR USERNAME'
87
+ config.password = 'YOUR PASSWORD'
88
+ end
89
+
90
+ api_instance = PulpAnsibleClient::RemotesAnsibleApi.new
91
+ ansible_remote_href = 'ansible_remote_href_example' # String | URI of Ansible Remote. e.g.: /pulp/api/v3/remotes/ansible/ansible/1/
92
+
93
+ begin
94
+ #Delete an ansible remote
95
+ result = api_instance.delete(ansible_remote_href)
96
+ p result
97
+ rescue PulpAnsibleClient::ApiError => e
98
+ puts "Exception when calling RemotesAnsibleApi->delete: #{e}"
99
+ end
100
+ ```
101
+
102
+ ### Parameters
103
+
104
+
105
+ Name | Type | Description | Notes
106
+ ------------- | ------------- | ------------- | -------------
107
+ **ansible_remote_href** | **String**| URI of Ansible Remote. e.g.: /pulp/api/v3/remotes/ansible/ansible/1/ |
108
+
109
+ ### Return type
110
+
111
+ [**AsyncOperationResponse**](AsyncOperationResponse.md)
112
+
113
+ ### Authorization
114
+
115
+ [Basic](../README.md#Basic)
116
+
117
+ ### HTTP request headers
118
+
119
+ - **Content-Type**: Not defined
120
+ - **Accept**: application/json
121
+
122
+
123
+ ## list
124
+
125
+ > InlineResponse2003 list(opts)
126
+
127
+ List ansible remotes
128
+
129
+ ViewSet for Ansible Remotes.
130
+
131
+ ### Example
132
+
133
+ ```ruby
134
+ # load the gem
135
+ require 'pulp_ansible_client'
136
+ # setup authorization
137
+ PulpAnsibleClient.configure do |config|
138
+ # Configure HTTP basic authorization: Basic
139
+ config.username = 'YOUR USERNAME'
140
+ config.password = 'YOUR PASSWORD'
141
+ end
142
+
143
+ api_instance = PulpAnsibleClient::RemotesAnsibleApi.new
144
+ opts = {
145
+ name: 'name_example', # String |
146
+ name__in: 'name__in_example', # String | Filter results where name is in a comma-separated list of values
147
+ _last_updated__lt: '_last_updated__lt_example', # String | Filter results where _last_updated is less than value
148
+ _last_updated__lte: '_last_updated__lte_example', # String | Filter results where _last_updated is less than or equal to value
149
+ _last_updated__gt: '_last_updated__gt_example', # String | Filter results where _last_updated is greater than value
150
+ _last_updated__gte: '_last_updated__gte_example', # String | Filter results where _last_updated is greater than or equal to value
151
+ _last_updated__range: '_last_updated__range_example', # String | Filter results where _last_updated is between two comma separated values
152
+ _last_updated: '_last_updated_example', # String | ISO 8601 formatted dates are supported
153
+ page: 56, # Integer | A page number within the paginated result set.
154
+ page_size: 56 # Integer | Number of results to return per page.
155
+ }
156
+
157
+ begin
158
+ #List ansible remotes
159
+ result = api_instance.list(opts)
160
+ p result
161
+ rescue PulpAnsibleClient::ApiError => e
162
+ puts "Exception when calling RemotesAnsibleApi->list: #{e}"
163
+ end
164
+ ```
165
+
166
+ ### Parameters
167
+
168
+
169
+ Name | Type | Description | Notes
170
+ ------------- | ------------- | ------------- | -------------
171
+ **name** | **String**| | [optional]
172
+ **name__in** | **String**| Filter results where name is in a comma-separated list of values | [optional]
173
+ **_last_updated__lt** | **String**| Filter results where _last_updated is less than value | [optional]
174
+ **_last_updated__lte** | **String**| Filter results where _last_updated is less than or equal to value | [optional]
175
+ **_last_updated__gt** | **String**| Filter results where _last_updated is greater than value | [optional]
176
+ **_last_updated__gte** | **String**| Filter results where _last_updated is greater than or equal to value | [optional]
177
+ **_last_updated__range** | **String**| Filter results where _last_updated is between two comma separated values | [optional]
178
+ **_last_updated** | **String**| ISO 8601 formatted dates are supported | [optional]
179
+ **page** | **Integer**| A page number within the paginated result set. | [optional]
180
+ **page_size** | **Integer**| Number of results to return per page. | [optional]
181
+
182
+ ### Return type
183
+
184
+ [**InlineResponse2003**](InlineResponse2003.md)
185
+
186
+ ### Authorization
187
+
188
+ [Basic](../README.md#Basic)
189
+
190
+ ### HTTP request headers
191
+
192
+ - **Content-Type**: Not defined
193
+ - **Accept**: application/json
194
+
195
+
196
+ ## partial_update
197
+
198
+ > AsyncOperationResponse partial_update(ansible_remote_href, data)
199
+
200
+ Partially update an ansible remote
201
+
202
+ Trigger an asynchronous partial update task
203
+
204
+ ### Example
205
+
206
+ ```ruby
207
+ # load the gem
208
+ require 'pulp_ansible_client'
209
+ # setup authorization
210
+ PulpAnsibleClient.configure do |config|
211
+ # Configure HTTP basic authorization: Basic
212
+ config.username = 'YOUR USERNAME'
213
+ config.password = 'YOUR PASSWORD'
214
+ end
215
+
216
+ api_instance = PulpAnsibleClient::RemotesAnsibleApi.new
217
+ ansible_remote_href = 'ansible_remote_href_example' # String | URI of Ansible Remote. e.g.: /pulp/api/v3/remotes/ansible/ansible/1/
218
+ data = PulpAnsibleClient::AnsibleRemote.new # AnsibleRemote |
219
+
220
+ begin
221
+ #Partially update an ansible remote
222
+ result = api_instance.partial_update(ansible_remote_href, data)
223
+ p result
224
+ rescue PulpAnsibleClient::ApiError => e
225
+ puts "Exception when calling RemotesAnsibleApi->partial_update: #{e}"
226
+ end
227
+ ```
228
+
229
+ ### Parameters
230
+
231
+
232
+ Name | Type | Description | Notes
233
+ ------------- | ------------- | ------------- | -------------
234
+ **ansible_remote_href** | **String**| URI of Ansible Remote. e.g.: /pulp/api/v3/remotes/ansible/ansible/1/ |
235
+ **data** | [**AnsibleRemote**](AnsibleRemote.md)| |
236
+
237
+ ### Return type
238
+
239
+ [**AsyncOperationResponse**](AsyncOperationResponse.md)
240
+
241
+ ### Authorization
242
+
243
+ [Basic](../README.md#Basic)
244
+
245
+ ### HTTP request headers
246
+
247
+ - **Content-Type**: application/json
248
+ - **Accept**: application/json
249
+
250
+
251
+ ## read
252
+
253
+ > AnsibleRemote read(ansible_remote_href)
254
+
255
+ Inspect an ansible remote
256
+
257
+ ViewSet for Ansible Remotes.
258
+
259
+ ### Example
260
+
261
+ ```ruby
262
+ # load the gem
263
+ require 'pulp_ansible_client'
264
+ # setup authorization
265
+ PulpAnsibleClient.configure do |config|
266
+ # Configure HTTP basic authorization: Basic
267
+ config.username = 'YOUR USERNAME'
268
+ config.password = 'YOUR PASSWORD'
269
+ end
270
+
271
+ api_instance = PulpAnsibleClient::RemotesAnsibleApi.new
272
+ ansible_remote_href = 'ansible_remote_href_example' # String | URI of Ansible Remote. e.g.: /pulp/api/v3/remotes/ansible/ansible/1/
273
+
274
+ begin
275
+ #Inspect an ansible remote
276
+ result = api_instance.read(ansible_remote_href)
277
+ p result
278
+ rescue PulpAnsibleClient::ApiError => e
279
+ puts "Exception when calling RemotesAnsibleApi->read: #{e}"
280
+ end
281
+ ```
282
+
283
+ ### Parameters
284
+
285
+
286
+ Name | Type | Description | Notes
287
+ ------------- | ------------- | ------------- | -------------
288
+ **ansible_remote_href** | **String**| URI of Ansible Remote. e.g.: /pulp/api/v3/remotes/ansible/ansible/1/ |
289
+
290
+ ### Return type
291
+
292
+ [**AnsibleRemote**](AnsibleRemote.md)
293
+
294
+ ### Authorization
295
+
296
+ [Basic](../README.md#Basic)
297
+
298
+ ### HTTP request headers
299
+
300
+ - **Content-Type**: Not defined
301
+ - **Accept**: application/json
302
+
303
+
304
+ ## sync
305
+
306
+ > AsyncOperationResponse sync(ansible_remote_href, data)
307
+
308
+
309
+
310
+ Trigger an asynchronous task to sync Ansible content.
311
+
312
+ ### Example
313
+
314
+ ```ruby
315
+ # load the gem
316
+ require 'pulp_ansible_client'
317
+ # setup authorization
318
+ PulpAnsibleClient.configure do |config|
319
+ # Configure HTTP basic authorization: Basic
320
+ config.username = 'YOUR USERNAME'
321
+ config.password = 'YOUR PASSWORD'
322
+ end
323
+
324
+ api_instance = PulpAnsibleClient::RemotesAnsibleApi.new
325
+ ansible_remote_href = 'ansible_remote_href_example' # String | URI of Ansible Remote. e.g.: /pulp/api/v3/remotes/ansible/ansible/1/
326
+ data = PulpAnsibleClient::RepositorySyncURL.new # RepositorySyncURL |
327
+
328
+ begin
329
+ result = api_instance.sync(ansible_remote_href, data)
330
+ p result
331
+ rescue PulpAnsibleClient::ApiError => e
332
+ puts "Exception when calling RemotesAnsibleApi->sync: #{e}"
333
+ end
334
+ ```
335
+
336
+ ### Parameters
337
+
338
+
339
+ Name | Type | Description | Notes
340
+ ------------- | ------------- | ------------- | -------------
341
+ **ansible_remote_href** | **String**| URI of Ansible Remote. e.g.: /pulp/api/v3/remotes/ansible/ansible/1/ |
342
+ **data** | [**RepositorySyncURL**](RepositorySyncURL.md)| |
343
+
344
+ ### Return type
345
+
346
+ [**AsyncOperationResponse**](AsyncOperationResponse.md)
347
+
348
+ ### Authorization
349
+
350
+ [Basic](../README.md#Basic)
351
+
352
+ ### HTTP request headers
353
+
354
+ - **Content-Type**: application/json
355
+ - **Accept**: application/json
356
+
357
+
358
+ ## update
359
+
360
+ > AsyncOperationResponse update(ansible_remote_href, data)
361
+
362
+ Update an ansible remote
363
+
364
+ Trigger an asynchronous update task
365
+
366
+ ### Example
367
+
368
+ ```ruby
369
+ # load the gem
370
+ require 'pulp_ansible_client'
371
+ # setup authorization
372
+ PulpAnsibleClient.configure do |config|
373
+ # Configure HTTP basic authorization: Basic
374
+ config.username = 'YOUR USERNAME'
375
+ config.password = 'YOUR PASSWORD'
376
+ end
377
+
378
+ api_instance = PulpAnsibleClient::RemotesAnsibleApi.new
379
+ ansible_remote_href = 'ansible_remote_href_example' # String | URI of Ansible Remote. e.g.: /pulp/api/v3/remotes/ansible/ansible/1/
380
+ data = PulpAnsibleClient::AnsibleRemote.new # AnsibleRemote |
381
+
382
+ begin
383
+ #Update an ansible remote
384
+ result = api_instance.update(ansible_remote_href, data)
385
+ p result
386
+ rescue PulpAnsibleClient::ApiError => e
387
+ puts "Exception when calling RemotesAnsibleApi->update: #{e}"
388
+ end
389
+ ```
390
+
391
+ ### Parameters
392
+
393
+
394
+ Name | Type | Description | Notes
395
+ ------------- | ------------- | ------------- | -------------
396
+ **ansible_remote_href** | **String**| URI of Ansible Remote. e.g.: /pulp/api/v3/remotes/ansible/ansible/1/ |
397
+ **data** | [**AnsibleRemote**](AnsibleRemote.md)| |
398
+
399
+ ### Return type
400
+
401
+ [**AsyncOperationResponse**](AsyncOperationResponse.md)
402
+
403
+ ### Authorization
404
+
405
+ [Basic](../README.md#Basic)
406
+
407
+ ### HTTP request headers
408
+
409
+ - **Content-Type**: application/json
410
+ - **Accept**: application/json
411
+