pulp_python_client 3.0.0b9

Sign up to get free protection for your applications and to get access to all the features.
Files changed (99) hide show
  1. checksums.yaml +7 -0
  2. data/Gemfile +9 -0
  3. data/README.md +175 -0
  4. data/Rakefile +10 -0
  5. data/docs/AsyncOperationResponse.md +17 -0
  6. data/docs/ContentPackagesApi.md +262 -0
  7. data/docs/ContentSummary.md +21 -0
  8. data/docs/DistributionsPypiApi.md +364 -0
  9. data/docs/InlineResponse200.md +23 -0
  10. data/docs/InlineResponse2001.md +23 -0
  11. data/docs/InlineResponse2002.md +23 -0
  12. data/docs/InlineResponse2003.md +23 -0
  13. data/docs/InlineResponse2004.md +23 -0
  14. data/docs/InlineResponse2005.md +23 -0
  15. data/docs/ProjectSpecifier.md +19 -0
  16. data/docs/PublicationsPypiApi.md +253 -0
  17. data/docs/PythonPythonDistribution.md +29 -0
  18. data/docs/PythonPythonDistributionRead.md +29 -0
  19. data/docs/PythonPythonPackageContentRead.md +69 -0
  20. data/docs/PythonPythonPublication.md +25 -0
  21. data/docs/PythonPythonPublicationRead.md +25 -0
  22. data/docs/PythonPythonRemote.md +49 -0
  23. data/docs/PythonPythonRemoteRead.md +49 -0
  24. data/docs/PythonPythonRepository.md +27 -0
  25. data/docs/PythonPythonRepositoryRead.md +27 -0
  26. data/docs/RemotesPythonApi.md +368 -0
  27. data/docs/RepositoriesPythonApi.md +468 -0
  28. data/docs/RepositoriesPythonVersionsApi.md +269 -0
  29. data/docs/RepositoryAddRemoveContent.md +21 -0
  30. data/docs/RepositorySyncURL.md +19 -0
  31. data/docs/RepositoryVersion.md +25 -0
  32. data/docs/RepositoryVersionRead.md +25 -0
  33. data/git_push.sh +58 -0
  34. data/lib/pulp_python_client.rb +67 -0
  35. data/lib/pulp_python_client/api/content_packages_api.rb +349 -0
  36. data/lib/pulp_python_client/api/distributions_pypi_api.rb +445 -0
  37. data/lib/pulp_python_client/api/publications_pypi_api.rb +306 -0
  38. data/lib/pulp_python_client/api/remotes_python_api.rb +451 -0
  39. data/lib/pulp_python_client/api/repositories_python_api.rb +573 -0
  40. data/lib/pulp_python_client/api/repositories_python_versions_api.rb +336 -0
  41. data/lib/pulp_python_client/api_client.rb +402 -0
  42. data/lib/pulp_python_client/api_error.rb +57 -0
  43. data/lib/pulp_python_client/configuration.rb +243 -0
  44. data/lib/pulp_python_client/models/async_operation_response.rb +212 -0
  45. data/lib/pulp_python_client/models/content_summary.rb +246 -0
  46. data/lib/pulp_python_client/models/inline_response200.rb +247 -0
  47. data/lib/pulp_python_client/models/inline_response2001.rb +247 -0
  48. data/lib/pulp_python_client/models/inline_response2002.rb +247 -0
  49. data/lib/pulp_python_client/models/inline_response2003.rb +247 -0
  50. data/lib/pulp_python_client/models/inline_response2004.rb +247 -0
  51. data/lib/pulp_python_client/models/inline_response2005.rb +247 -0
  52. data/lib/pulp_python_client/models/project_specifier.rb +242 -0
  53. data/lib/pulp_python_client/models/python_python_distribution.rb +331 -0
  54. data/lib/pulp_python_client/models/python_python_distribution_read.rb +331 -0
  55. data/lib/pulp_python_client/models/python_python_package_content_read.rb +550 -0
  56. data/lib/pulp_python_client/models/python_python_publication.rb +247 -0
  57. data/lib/pulp_python_client/models/python_python_publication_read.rb +247 -0
  58. data/lib/pulp_python_client/models/python_python_remote.rb +565 -0
  59. data/lib/pulp_python_client/models/python_python_remote_read.rb +565 -0
  60. data/lib/pulp_python_client/models/python_python_repository.rb +294 -0
  61. data/lib/pulp_python_client/models/python_python_repository_read.rb +294 -0
  62. data/lib/pulp_python_client/models/repository_add_remove_content.rb +231 -0
  63. data/lib/pulp_python_client/models/repository_sync_url.rb +224 -0
  64. data/lib/pulp_python_client/models/repository_version.rb +244 -0
  65. data/lib/pulp_python_client/models/repository_version_read.rb +244 -0
  66. data/lib/pulp_python_client/version.rb +15 -0
  67. data/pulp_python_client.gemspec +39 -0
  68. data/spec/api/content_packages_api_spec.rb +114 -0
  69. data/spec/api/distributions_pypi_api_spec.rb +121 -0
  70. data/spec/api/publications_pypi_api_spec.rb +96 -0
  71. data/spec/api/remotes_python_api_spec.rb +123 -0
  72. data/spec/api/repositories_python_api_spec.rb +143 -0
  73. data/spec/api/repositories_python_versions_api_spec.rb +103 -0
  74. data/spec/api_client_spec.rb +188 -0
  75. data/spec/configuration_spec.rb +42 -0
  76. data/spec/models/async_operation_response_spec.rb +41 -0
  77. data/spec/models/content_summary_spec.rb +53 -0
  78. data/spec/models/inline_response2001_spec.rb +59 -0
  79. data/spec/models/inline_response2002_spec.rb +59 -0
  80. data/spec/models/inline_response2003_spec.rb +59 -0
  81. data/spec/models/inline_response2004_spec.rb +59 -0
  82. data/spec/models/inline_response2005_spec.rb +59 -0
  83. data/spec/models/inline_response200_spec.rb +59 -0
  84. data/spec/models/project_specifier_spec.rb +47 -0
  85. data/spec/models/python_python_distribution_read_spec.rb +77 -0
  86. data/spec/models/python_python_distribution_spec.rb +77 -0
  87. data/spec/models/python_python_package_content_read_spec.rb +197 -0
  88. data/spec/models/python_python_publication_read_spec.rb +65 -0
  89. data/spec/models/python_python_publication_spec.rb +65 -0
  90. data/spec/models/python_python_remote_read_spec.rb +141 -0
  91. data/spec/models/python_python_remote_spec.rb +141 -0
  92. data/spec/models/python_python_repository_read_spec.rb +71 -0
  93. data/spec/models/python_python_repository_spec.rb +71 -0
  94. data/spec/models/repository_add_remove_content_spec.rb +53 -0
  95. data/spec/models/repository_sync_url_spec.rb +47 -0
  96. data/spec/models/repository_version_read_spec.rb +65 -0
  97. data/spec/models/repository_version_spec.rb +65 -0
  98. data/spec/spec_helper.rb +111 -0
  99. metadata +225 -0
@@ -0,0 +1,468 @@
1
+ # PulpPythonClient::RepositoriesPythonApi
2
+
3
+ All URIs are relative to *http://pulp*
4
+
5
+ Method | HTTP request | Description
6
+ ------------- | ------------- | -------------
7
+ [**create**](RepositoriesPythonApi.md#create) | **POST** /pulp/api/v3/repositories/python/python/ | Create a python repository
8
+ [**delete**](RepositoriesPythonApi.md#delete) | **DELETE** {python_repository_href} | Delete a python repository
9
+ [**list**](RepositoriesPythonApi.md#list) | **GET** /pulp/api/v3/repositories/python/python/ | List python repositorys
10
+ [**modify**](RepositoriesPythonApi.md#modify) | **POST** {python_repository_href}modify/ | Modify Repository Content
11
+ [**partial_update**](RepositoriesPythonApi.md#partial_update) | **PATCH** {python_repository_href} | Partially update a python repository
12
+ [**read**](RepositoriesPythonApi.md#read) | **GET** {python_repository_href} | Inspect a python repository
13
+ [**sync**](RepositoriesPythonApi.md#sync) | **POST** {python_repository_href}sync/ | Sync from remote
14
+ [**update**](RepositoriesPythonApi.md#update) | **PUT** {python_repository_href} | Update a python repository
15
+
16
+
17
+
18
+ ## create
19
+
20
+ > PythonPythonRepositoryRead create(data)
21
+
22
+ Create a python repository
23
+
24
+ A ViewSet for PythonRepository.
25
+
26
+ ### Example
27
+
28
+ ```ruby
29
+ # load the gem
30
+ require 'pulp_python_client'
31
+ # setup authorization
32
+ PulpPythonClient.configure do |config|
33
+ # Configure HTTP basic authorization: Basic
34
+ config.username = 'YOUR USERNAME'
35
+ config.password = 'YOUR PASSWORD'
36
+ end
37
+
38
+ api_instance = PulpPythonClient::RepositoriesPythonApi.new
39
+ data = PulpPythonClient::PythonPythonRepository.new # PythonPythonRepository |
40
+
41
+ begin
42
+ #Create a python repository
43
+ result = api_instance.create(data)
44
+ p result
45
+ rescue PulpPythonClient::ApiError => e
46
+ puts "Exception when calling RepositoriesPythonApi->create: #{e}"
47
+ end
48
+ ```
49
+
50
+ ### Parameters
51
+
52
+
53
+ Name | Type | Description | Notes
54
+ ------------- | ------------- | ------------- | -------------
55
+ **data** | [**PythonPythonRepository**](PythonPythonRepository.md)| |
56
+
57
+ ### Return type
58
+
59
+ [**PythonPythonRepositoryRead**](PythonPythonRepositoryRead.md)
60
+
61
+ ### Authorization
62
+
63
+ [Basic](../README.md#Basic)
64
+
65
+ ### HTTP request headers
66
+
67
+ - **Content-Type**: application/json
68
+ - **Accept**: application/json
69
+
70
+
71
+ ## delete
72
+
73
+ > AsyncOperationResponse delete(python_repository_href)
74
+
75
+ Delete a python repository
76
+
77
+ Trigger an asynchronous delete task
78
+
79
+ ### Example
80
+
81
+ ```ruby
82
+ # load the gem
83
+ require 'pulp_python_client'
84
+ # setup authorization
85
+ PulpPythonClient.configure do |config|
86
+ # Configure HTTP basic authorization: Basic
87
+ config.username = 'YOUR USERNAME'
88
+ config.password = 'YOUR PASSWORD'
89
+ end
90
+
91
+ api_instance = PulpPythonClient::RepositoriesPythonApi.new
92
+ python_repository_href = 'python_repository_href_example' # String | URI of Python Repository. e.g.: /pulp/api/v3/repositories/python/python/1/
93
+
94
+ begin
95
+ #Delete a python repository
96
+ result = api_instance.delete(python_repository_href)
97
+ p result
98
+ rescue PulpPythonClient::ApiError => e
99
+ puts "Exception when calling RepositoriesPythonApi->delete: #{e}"
100
+ end
101
+ ```
102
+
103
+ ### Parameters
104
+
105
+
106
+ Name | Type | Description | Notes
107
+ ------------- | ------------- | ------------- | -------------
108
+ **python_repository_href** | **String**| URI of Python Repository. e.g.: /pulp/api/v3/repositories/python/python/1/ |
109
+
110
+ ### Return type
111
+
112
+ [**AsyncOperationResponse**](AsyncOperationResponse.md)
113
+
114
+ ### Authorization
115
+
116
+ [Basic](../README.md#Basic)
117
+
118
+ ### HTTP request headers
119
+
120
+ - **Content-Type**: Not defined
121
+ - **Accept**: application/json
122
+
123
+
124
+ ## list
125
+
126
+ > InlineResponse2004 list(opts)
127
+
128
+ List python repositorys
129
+
130
+ A ViewSet for PythonRepository.
131
+
132
+ ### Example
133
+
134
+ ```ruby
135
+ # load the gem
136
+ require 'pulp_python_client'
137
+ # setup authorization
138
+ PulpPythonClient.configure do |config|
139
+ # Configure HTTP basic authorization: Basic
140
+ config.username = 'YOUR USERNAME'
141
+ config.password = 'YOUR PASSWORD'
142
+ end
143
+
144
+ api_instance = PulpPythonClient::RepositoriesPythonApi.new
145
+ opts = {
146
+ ordering: 'ordering_example', # String | Which field to use when ordering the results.
147
+ name: 'name_example', # String |
148
+ name__in: 'name__in_example', # String | Filter results where name is in a comma-separated list of values
149
+ limit: 56, # Integer | Number of results to return per page.
150
+ offset: 56, # Integer | The initial index from which to return the results.
151
+ fields: 'fields_example', # String | A list of fields to include in the response.
152
+ exclude_fields: 'exclude_fields_example' # String | A list of fields to exclude from the response.
153
+ }
154
+
155
+ begin
156
+ #List python repositorys
157
+ result = api_instance.list(opts)
158
+ p result
159
+ rescue PulpPythonClient::ApiError => e
160
+ puts "Exception when calling RepositoriesPythonApi->list: #{e}"
161
+ end
162
+ ```
163
+
164
+ ### Parameters
165
+
166
+
167
+ Name | Type | Description | Notes
168
+ ------------- | ------------- | ------------- | -------------
169
+ **ordering** | **String**| Which field to use when ordering the results. | [optional]
170
+ **name** | **String**| | [optional]
171
+ **name__in** | **String**| Filter results where name is in a comma-separated list of values | [optional]
172
+ **limit** | **Integer**| Number of results to return per page. | [optional]
173
+ **offset** | **Integer**| The initial index from which to return the results. | [optional]
174
+ **fields** | **String**| A list of fields to include in the response. | [optional]
175
+ **exclude_fields** | **String**| A list of fields to exclude from the response. | [optional]
176
+
177
+ ### Return type
178
+
179
+ [**InlineResponse2004**](InlineResponse2004.md)
180
+
181
+ ### Authorization
182
+
183
+ [Basic](../README.md#Basic)
184
+
185
+ ### HTTP request headers
186
+
187
+ - **Content-Type**: Not defined
188
+ - **Accept**: application/json
189
+
190
+
191
+ ## modify
192
+
193
+ > AsyncOperationResponse modify(python_repository_href, data)
194
+
195
+ Modify Repository Content
196
+
197
+ Trigger an asynchronous task to create a new repository version.
198
+
199
+ ### Example
200
+
201
+ ```ruby
202
+ # load the gem
203
+ require 'pulp_python_client'
204
+ # setup authorization
205
+ PulpPythonClient.configure do |config|
206
+ # Configure HTTP basic authorization: Basic
207
+ config.username = 'YOUR USERNAME'
208
+ config.password = 'YOUR PASSWORD'
209
+ end
210
+
211
+ api_instance = PulpPythonClient::RepositoriesPythonApi.new
212
+ python_repository_href = 'python_repository_href_example' # String | URI of Python Repository. e.g.: /pulp/api/v3/repositories/python/python/1/
213
+ data = PulpPythonClient::RepositoryAddRemoveContent.new # RepositoryAddRemoveContent |
214
+
215
+ begin
216
+ #Modify Repository Content
217
+ result = api_instance.modify(python_repository_href, data)
218
+ p result
219
+ rescue PulpPythonClient::ApiError => e
220
+ puts "Exception when calling RepositoriesPythonApi->modify: #{e}"
221
+ end
222
+ ```
223
+
224
+ ### Parameters
225
+
226
+
227
+ Name | Type | Description | Notes
228
+ ------------- | ------------- | ------------- | -------------
229
+ **python_repository_href** | **String**| URI of Python Repository. e.g.: /pulp/api/v3/repositories/python/python/1/ |
230
+ **data** | [**RepositoryAddRemoveContent**](RepositoryAddRemoveContent.md)| |
231
+
232
+ ### Return type
233
+
234
+ [**AsyncOperationResponse**](AsyncOperationResponse.md)
235
+
236
+ ### Authorization
237
+
238
+ [Basic](../README.md#Basic)
239
+
240
+ ### HTTP request headers
241
+
242
+ - **Content-Type**: application/json
243
+ - **Accept**: application/json
244
+
245
+
246
+ ## partial_update
247
+
248
+ > AsyncOperationResponse partial_update(python_repository_href, data)
249
+
250
+ Partially update a python repository
251
+
252
+ Trigger an asynchronous partial update task
253
+
254
+ ### Example
255
+
256
+ ```ruby
257
+ # load the gem
258
+ require 'pulp_python_client'
259
+ # setup authorization
260
+ PulpPythonClient.configure do |config|
261
+ # Configure HTTP basic authorization: Basic
262
+ config.username = 'YOUR USERNAME'
263
+ config.password = 'YOUR PASSWORD'
264
+ end
265
+
266
+ api_instance = PulpPythonClient::RepositoriesPythonApi.new
267
+ python_repository_href = 'python_repository_href_example' # String | URI of Python Repository. e.g.: /pulp/api/v3/repositories/python/python/1/
268
+ data = PulpPythonClient::PythonPythonRepository.new # PythonPythonRepository |
269
+
270
+ begin
271
+ #Partially update a python repository
272
+ result = api_instance.partial_update(python_repository_href, data)
273
+ p result
274
+ rescue PulpPythonClient::ApiError => e
275
+ puts "Exception when calling RepositoriesPythonApi->partial_update: #{e}"
276
+ end
277
+ ```
278
+
279
+ ### Parameters
280
+
281
+
282
+ Name | Type | Description | Notes
283
+ ------------- | ------------- | ------------- | -------------
284
+ **python_repository_href** | **String**| URI of Python Repository. e.g.: /pulp/api/v3/repositories/python/python/1/ |
285
+ **data** | [**PythonPythonRepository**](PythonPythonRepository.md)| |
286
+
287
+ ### Return type
288
+
289
+ [**AsyncOperationResponse**](AsyncOperationResponse.md)
290
+
291
+ ### Authorization
292
+
293
+ [Basic](../README.md#Basic)
294
+
295
+ ### HTTP request headers
296
+
297
+ - **Content-Type**: application/json
298
+ - **Accept**: application/json
299
+
300
+
301
+ ## read
302
+
303
+ > PythonPythonRepositoryRead read(python_repository_href, opts)
304
+
305
+ Inspect a python repository
306
+
307
+ A ViewSet for PythonRepository.
308
+
309
+ ### Example
310
+
311
+ ```ruby
312
+ # load the gem
313
+ require 'pulp_python_client'
314
+ # setup authorization
315
+ PulpPythonClient.configure do |config|
316
+ # Configure HTTP basic authorization: Basic
317
+ config.username = 'YOUR USERNAME'
318
+ config.password = 'YOUR PASSWORD'
319
+ end
320
+
321
+ api_instance = PulpPythonClient::RepositoriesPythonApi.new
322
+ python_repository_href = 'python_repository_href_example' # String | URI of Python Repository. e.g.: /pulp/api/v3/repositories/python/python/1/
323
+ opts = {
324
+ fields: 'fields_example', # String | A list of fields to include in the response.
325
+ exclude_fields: 'exclude_fields_example' # String | A list of fields to exclude from the response.
326
+ }
327
+
328
+ begin
329
+ #Inspect a python repository
330
+ result = api_instance.read(python_repository_href, opts)
331
+ p result
332
+ rescue PulpPythonClient::ApiError => e
333
+ puts "Exception when calling RepositoriesPythonApi->read: #{e}"
334
+ end
335
+ ```
336
+
337
+ ### Parameters
338
+
339
+
340
+ Name | Type | Description | Notes
341
+ ------------- | ------------- | ------------- | -------------
342
+ **python_repository_href** | **String**| URI of Python Repository. e.g.: /pulp/api/v3/repositories/python/python/1/ |
343
+ **fields** | **String**| A list of fields to include in the response. | [optional]
344
+ **exclude_fields** | **String**| A list of fields to exclude from the response. | [optional]
345
+
346
+ ### Return type
347
+
348
+ [**PythonPythonRepositoryRead**](PythonPythonRepositoryRead.md)
349
+
350
+ ### Authorization
351
+
352
+ [Basic](../README.md#Basic)
353
+
354
+ ### HTTP request headers
355
+
356
+ - **Content-Type**: Not defined
357
+ - **Accept**: application/json
358
+
359
+
360
+ ## sync
361
+
362
+ > AsyncOperationResponse sync(python_repository_href, data)
363
+
364
+ Sync from remote
365
+
366
+ Trigger an asynchronous task to sync Python content.
367
+
368
+ ### Example
369
+
370
+ ```ruby
371
+ # load the gem
372
+ require 'pulp_python_client'
373
+ # setup authorization
374
+ PulpPythonClient.configure do |config|
375
+ # Configure HTTP basic authorization: Basic
376
+ config.username = 'YOUR USERNAME'
377
+ config.password = 'YOUR PASSWORD'
378
+ end
379
+
380
+ api_instance = PulpPythonClient::RepositoriesPythonApi.new
381
+ python_repository_href = 'python_repository_href_example' # String | URI of Python Repository. e.g.: /pulp/api/v3/repositories/python/python/1/
382
+ data = PulpPythonClient::RepositorySyncURL.new # RepositorySyncURL |
383
+
384
+ begin
385
+ #Sync from remote
386
+ result = api_instance.sync(python_repository_href, data)
387
+ p result
388
+ rescue PulpPythonClient::ApiError => e
389
+ puts "Exception when calling RepositoriesPythonApi->sync: #{e}"
390
+ end
391
+ ```
392
+
393
+ ### Parameters
394
+
395
+
396
+ Name | Type | Description | Notes
397
+ ------------- | ------------- | ------------- | -------------
398
+ **python_repository_href** | **String**| URI of Python Repository. e.g.: /pulp/api/v3/repositories/python/python/1/ |
399
+ **data** | [**RepositorySyncURL**](RepositorySyncURL.md)| |
400
+
401
+ ### Return type
402
+
403
+ [**AsyncOperationResponse**](AsyncOperationResponse.md)
404
+
405
+ ### Authorization
406
+
407
+ [Basic](../README.md#Basic)
408
+
409
+ ### HTTP request headers
410
+
411
+ - **Content-Type**: application/json
412
+ - **Accept**: application/json
413
+
414
+
415
+ ## update
416
+
417
+ > AsyncOperationResponse update(python_repository_href, data)
418
+
419
+ Update a python repository
420
+
421
+ Trigger an asynchronous update task
422
+
423
+ ### Example
424
+
425
+ ```ruby
426
+ # load the gem
427
+ require 'pulp_python_client'
428
+ # setup authorization
429
+ PulpPythonClient.configure do |config|
430
+ # Configure HTTP basic authorization: Basic
431
+ config.username = 'YOUR USERNAME'
432
+ config.password = 'YOUR PASSWORD'
433
+ end
434
+
435
+ api_instance = PulpPythonClient::RepositoriesPythonApi.new
436
+ python_repository_href = 'python_repository_href_example' # String | URI of Python Repository. e.g.: /pulp/api/v3/repositories/python/python/1/
437
+ data = PulpPythonClient::PythonPythonRepository.new # PythonPythonRepository |
438
+
439
+ begin
440
+ #Update a python repository
441
+ result = api_instance.update(python_repository_href, data)
442
+ p result
443
+ rescue PulpPythonClient::ApiError => e
444
+ puts "Exception when calling RepositoriesPythonApi->update: #{e}"
445
+ end
446
+ ```
447
+
448
+ ### Parameters
449
+
450
+
451
+ Name | Type | Description | Notes
452
+ ------------- | ------------- | ------------- | -------------
453
+ **python_repository_href** | **String**| URI of Python Repository. e.g.: /pulp/api/v3/repositories/python/python/1/ |
454
+ **data** | [**PythonPythonRepository**](PythonPythonRepository.md)| |
455
+
456
+ ### Return type
457
+
458
+ [**AsyncOperationResponse**](AsyncOperationResponse.md)
459
+
460
+ ### Authorization
461
+
462
+ [Basic](../README.md#Basic)
463
+
464
+ ### HTTP request headers
465
+
466
+ - **Content-Type**: application/json
467
+ - **Accept**: application/json
468
+