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,21 @@
1
+ # PulpPythonClient::ContentSummary
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **added** | **Hash<String, Hash<String, String>>** | |
8
+ **removed** | **Hash<String, Hash<String, String>>** | |
9
+ **present** | **Hash<String, Hash<String, String>>** | |
10
+
11
+ ## Code Sample
12
+
13
+ ```ruby
14
+ require 'PulpPythonClient'
15
+
16
+ instance = PulpPythonClient::ContentSummary.new(added: null,
17
+ removed: null,
18
+ present: null)
19
+ ```
20
+
21
+
@@ -0,0 +1,364 @@
1
+ # PulpPythonClient::DistributionsPypiApi
2
+
3
+ All URIs are relative to *http://pulp*
4
+
5
+ Method | HTTP request | Description
6
+ ------------- | ------------- | -------------
7
+ [**create**](DistributionsPypiApi.md#create) | **POST** /pulp/api/v3/distributions/python/pypi/ | Create a python distribution
8
+ [**delete**](DistributionsPypiApi.md#delete) | **DELETE** {python_distribution_href} | Delete a python distribution
9
+ [**list**](DistributionsPypiApi.md#list) | **GET** /pulp/api/v3/distributions/python/pypi/ | List python distributions
10
+ [**partial_update**](DistributionsPypiApi.md#partial_update) | **PATCH** {python_distribution_href} | Partially update a python distribution
11
+ [**read**](DistributionsPypiApi.md#read) | **GET** {python_distribution_href} | Inspect a python distribution
12
+ [**update**](DistributionsPypiApi.md#update) | **PUT** {python_distribution_href} | Update a python distribution
13
+
14
+
15
+
16
+ ## create
17
+
18
+ > AsyncOperationResponse create(data)
19
+
20
+ Create a python distribution
21
+
22
+ Trigger an asynchronous create task
23
+
24
+ ### Example
25
+
26
+ ```ruby
27
+ # load the gem
28
+ require 'pulp_python_client'
29
+ # setup authorization
30
+ PulpPythonClient.configure do |config|
31
+ # Configure HTTP basic authorization: Basic
32
+ config.username = 'YOUR USERNAME'
33
+ config.password = 'YOUR PASSWORD'
34
+ end
35
+
36
+ api_instance = PulpPythonClient::DistributionsPypiApi.new
37
+ data = PulpPythonClient::PythonPythonDistribution.new # PythonPythonDistribution |
38
+
39
+ begin
40
+ #Create a python distribution
41
+ result = api_instance.create(data)
42
+ p result
43
+ rescue PulpPythonClient::ApiError => e
44
+ puts "Exception when calling DistributionsPypiApi->create: #{e}"
45
+ end
46
+ ```
47
+
48
+ ### Parameters
49
+
50
+
51
+ Name | Type | Description | Notes
52
+ ------------- | ------------- | ------------- | -------------
53
+ **data** | [**PythonPythonDistribution**](PythonPythonDistribution.md)| |
54
+
55
+ ### Return type
56
+
57
+ [**AsyncOperationResponse**](AsyncOperationResponse.md)
58
+
59
+ ### Authorization
60
+
61
+ [Basic](../README.md#Basic)
62
+
63
+ ### HTTP request headers
64
+
65
+ - **Content-Type**: application/json
66
+ - **Accept**: application/json
67
+
68
+
69
+ ## delete
70
+
71
+ > AsyncOperationResponse delete(python_distribution_href)
72
+
73
+ Delete a python distribution
74
+
75
+ Trigger an asynchronous delete task
76
+
77
+ ### Example
78
+
79
+ ```ruby
80
+ # load the gem
81
+ require 'pulp_python_client'
82
+ # setup authorization
83
+ PulpPythonClient.configure do |config|
84
+ # Configure HTTP basic authorization: Basic
85
+ config.username = 'YOUR USERNAME'
86
+ config.password = 'YOUR PASSWORD'
87
+ end
88
+
89
+ api_instance = PulpPythonClient::DistributionsPypiApi.new
90
+ python_distribution_href = 'python_distribution_href_example' # String | URI of Python Distribution. e.g.: /pulp/api/v3/distributions/python/pypi/1/
91
+
92
+ begin
93
+ #Delete a python distribution
94
+ result = api_instance.delete(python_distribution_href)
95
+ p result
96
+ rescue PulpPythonClient::ApiError => e
97
+ puts "Exception when calling DistributionsPypiApi->delete: #{e}"
98
+ end
99
+ ```
100
+
101
+ ### Parameters
102
+
103
+
104
+ Name | Type | Description | Notes
105
+ ------------- | ------------- | ------------- | -------------
106
+ **python_distribution_href** | **String**| URI of Python Distribution. e.g.: /pulp/api/v3/distributions/python/pypi/1/ |
107
+
108
+ ### Return type
109
+
110
+ [**AsyncOperationResponse**](AsyncOperationResponse.md)
111
+
112
+ ### Authorization
113
+
114
+ [Basic](../README.md#Basic)
115
+
116
+ ### HTTP request headers
117
+
118
+ - **Content-Type**: Not defined
119
+ - **Accept**: application/json
120
+
121
+
122
+ ## list
123
+
124
+ > InlineResponse2001 list(opts)
125
+
126
+ List python distributions
127
+
128
+ Pulp Python Distributions are used to distribute Python Publications. Pulp Python Distributions should not be confused with \"Python Distribution\" as defined by the Python community. In Pulp usage, Python content is refered to as Python Package Content.
129
+
130
+ ### Example
131
+
132
+ ```ruby
133
+ # load the gem
134
+ require 'pulp_python_client'
135
+ # setup authorization
136
+ PulpPythonClient.configure do |config|
137
+ # Configure HTTP basic authorization: Basic
138
+ config.username = 'YOUR USERNAME'
139
+ config.password = 'YOUR PASSWORD'
140
+ end
141
+
142
+ api_instance = PulpPythonClient::DistributionsPypiApi.new
143
+ opts = {
144
+ ordering: 'ordering_example', # String | Which field to use when ordering the results.
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
+ base_path: 'base_path_example', # String |
148
+ base_path__contains: 'base_path__contains_example', # String | Filter results where base_path contains value
149
+ base_path__icontains: 'base_path__icontains_example', # String | Filter results where base_path contains value
150
+ base_path__in: 'base_path__in_example', # String | Filter results where base_path is in a comma-separated list of values
151
+ limit: 56, # Integer | Number of results to return per page.
152
+ offset: 56, # Integer | The initial index from which to return the results.
153
+ fields: 'fields_example', # String | A list of fields to include in the response.
154
+ exclude_fields: 'exclude_fields_example' # String | A list of fields to exclude from the response.
155
+ }
156
+
157
+ begin
158
+ #List python distributions
159
+ result = api_instance.list(opts)
160
+ p result
161
+ rescue PulpPythonClient::ApiError => e
162
+ puts "Exception when calling DistributionsPypiApi->list: #{e}"
163
+ end
164
+ ```
165
+
166
+ ### Parameters
167
+
168
+
169
+ Name | Type | Description | Notes
170
+ ------------- | ------------- | ------------- | -------------
171
+ **ordering** | **String**| Which field to use when ordering the results. | [optional]
172
+ **name** | **String**| | [optional]
173
+ **name__in** | **String**| Filter results where name is in a comma-separated list of values | [optional]
174
+ **base_path** | **String**| | [optional]
175
+ **base_path__contains** | **String**| Filter results where base_path contains value | [optional]
176
+ **base_path__icontains** | **String**| Filter results where base_path contains value | [optional]
177
+ **base_path__in** | **String**| Filter results where base_path is in a comma-separated list of values | [optional]
178
+ **limit** | **Integer**| Number of results to return per page. | [optional]
179
+ **offset** | **Integer**| The initial index from which to return the results. | [optional]
180
+ **fields** | **String**| A list of fields to include in the response. | [optional]
181
+ **exclude_fields** | **String**| A list of fields to exclude from the response. | [optional]
182
+
183
+ ### Return type
184
+
185
+ [**InlineResponse2001**](InlineResponse2001.md)
186
+
187
+ ### Authorization
188
+
189
+ [Basic](../README.md#Basic)
190
+
191
+ ### HTTP request headers
192
+
193
+ - **Content-Type**: Not defined
194
+ - **Accept**: application/json
195
+
196
+
197
+ ## partial_update
198
+
199
+ > AsyncOperationResponse partial_update(python_distribution_href, data)
200
+
201
+ Partially update a python distribution
202
+
203
+ Trigger an asynchronous partial update task
204
+
205
+ ### Example
206
+
207
+ ```ruby
208
+ # load the gem
209
+ require 'pulp_python_client'
210
+ # setup authorization
211
+ PulpPythonClient.configure do |config|
212
+ # Configure HTTP basic authorization: Basic
213
+ config.username = 'YOUR USERNAME'
214
+ config.password = 'YOUR PASSWORD'
215
+ end
216
+
217
+ api_instance = PulpPythonClient::DistributionsPypiApi.new
218
+ python_distribution_href = 'python_distribution_href_example' # String | URI of Python Distribution. e.g.: /pulp/api/v3/distributions/python/pypi/1/
219
+ data = PulpPythonClient::PythonPythonDistribution.new # PythonPythonDistribution |
220
+
221
+ begin
222
+ #Partially update a python distribution
223
+ result = api_instance.partial_update(python_distribution_href, data)
224
+ p result
225
+ rescue PulpPythonClient::ApiError => e
226
+ puts "Exception when calling DistributionsPypiApi->partial_update: #{e}"
227
+ end
228
+ ```
229
+
230
+ ### Parameters
231
+
232
+
233
+ Name | Type | Description | Notes
234
+ ------------- | ------------- | ------------- | -------------
235
+ **python_distribution_href** | **String**| URI of Python Distribution. e.g.: /pulp/api/v3/distributions/python/pypi/1/ |
236
+ **data** | [**PythonPythonDistribution**](PythonPythonDistribution.md)| |
237
+
238
+ ### Return type
239
+
240
+ [**AsyncOperationResponse**](AsyncOperationResponse.md)
241
+
242
+ ### Authorization
243
+
244
+ [Basic](../README.md#Basic)
245
+
246
+ ### HTTP request headers
247
+
248
+ - **Content-Type**: application/json
249
+ - **Accept**: application/json
250
+
251
+
252
+ ## read
253
+
254
+ > PythonPythonDistributionRead read(python_distribution_href, opts)
255
+
256
+ Inspect a python distribution
257
+
258
+ Pulp Python Distributions are used to distribute Python Publications. Pulp Python Distributions should not be confused with \"Python Distribution\" as defined by the Python community. In Pulp usage, Python content is refered to as Python Package Content.
259
+
260
+ ### Example
261
+
262
+ ```ruby
263
+ # load the gem
264
+ require 'pulp_python_client'
265
+ # setup authorization
266
+ PulpPythonClient.configure do |config|
267
+ # Configure HTTP basic authorization: Basic
268
+ config.username = 'YOUR USERNAME'
269
+ config.password = 'YOUR PASSWORD'
270
+ end
271
+
272
+ api_instance = PulpPythonClient::DistributionsPypiApi.new
273
+ python_distribution_href = 'python_distribution_href_example' # String | URI of Python Distribution. e.g.: /pulp/api/v3/distributions/python/pypi/1/
274
+ opts = {
275
+ fields: 'fields_example', # String | A list of fields to include in the response.
276
+ exclude_fields: 'exclude_fields_example' # String | A list of fields to exclude from the response.
277
+ }
278
+
279
+ begin
280
+ #Inspect a python distribution
281
+ result = api_instance.read(python_distribution_href, opts)
282
+ p result
283
+ rescue PulpPythonClient::ApiError => e
284
+ puts "Exception when calling DistributionsPypiApi->read: #{e}"
285
+ end
286
+ ```
287
+
288
+ ### Parameters
289
+
290
+
291
+ Name | Type | Description | Notes
292
+ ------------- | ------------- | ------------- | -------------
293
+ **python_distribution_href** | **String**| URI of Python Distribution. e.g.: /pulp/api/v3/distributions/python/pypi/1/ |
294
+ **fields** | **String**| A list of fields to include in the response. | [optional]
295
+ **exclude_fields** | **String**| A list of fields to exclude from the response. | [optional]
296
+
297
+ ### Return type
298
+
299
+ [**PythonPythonDistributionRead**](PythonPythonDistributionRead.md)
300
+
301
+ ### Authorization
302
+
303
+ [Basic](../README.md#Basic)
304
+
305
+ ### HTTP request headers
306
+
307
+ - **Content-Type**: Not defined
308
+ - **Accept**: application/json
309
+
310
+
311
+ ## update
312
+
313
+ > AsyncOperationResponse update(python_distribution_href, data)
314
+
315
+ Update a python distribution
316
+
317
+ Trigger an asynchronous update task
318
+
319
+ ### Example
320
+
321
+ ```ruby
322
+ # load the gem
323
+ require 'pulp_python_client'
324
+ # setup authorization
325
+ PulpPythonClient.configure do |config|
326
+ # Configure HTTP basic authorization: Basic
327
+ config.username = 'YOUR USERNAME'
328
+ config.password = 'YOUR PASSWORD'
329
+ end
330
+
331
+ api_instance = PulpPythonClient::DistributionsPypiApi.new
332
+ python_distribution_href = 'python_distribution_href_example' # String | URI of Python Distribution. e.g.: /pulp/api/v3/distributions/python/pypi/1/
333
+ data = PulpPythonClient::PythonPythonDistribution.new # PythonPythonDistribution |
334
+
335
+ begin
336
+ #Update a python distribution
337
+ result = api_instance.update(python_distribution_href, data)
338
+ p result
339
+ rescue PulpPythonClient::ApiError => e
340
+ puts "Exception when calling DistributionsPypiApi->update: #{e}"
341
+ end
342
+ ```
343
+
344
+ ### Parameters
345
+
346
+
347
+ Name | Type | Description | Notes
348
+ ------------- | ------------- | ------------- | -------------
349
+ **python_distribution_href** | **String**| URI of Python Distribution. e.g.: /pulp/api/v3/distributions/python/pypi/1/ |
350
+ **data** | [**PythonPythonDistribution**](PythonPythonDistribution.md)| |
351
+
352
+ ### Return type
353
+
354
+ [**AsyncOperationResponse**](AsyncOperationResponse.md)
355
+
356
+ ### Authorization
357
+
358
+ [Basic](../README.md#Basic)
359
+
360
+ ### HTTP request headers
361
+
362
+ - **Content-Type**: application/json
363
+ - **Accept**: application/json
364
+
@@ -0,0 +1,23 @@
1
+ # PulpPythonClient::InlineResponse200
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **count** | **Integer** | |
8
+ **_next** | **String** | | [optional]
9
+ **previous** | **String** | | [optional]
10
+ **results** | [**Array<PythonPythonPackageContentRead>**](PythonPythonPackageContentRead.md) | |
11
+
12
+ ## Code Sample
13
+
14
+ ```ruby
15
+ require 'PulpPythonClient'
16
+
17
+ instance = PulpPythonClient::InlineResponse200.new(count: null,
18
+ _next: null,
19
+ previous: null,
20
+ results: null)
21
+ ```
22
+
23
+
@@ -0,0 +1,23 @@
1
+ # PulpPythonClient::InlineResponse2001
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **count** | **Integer** | |
8
+ **_next** | **String** | | [optional]
9
+ **previous** | **String** | | [optional]
10
+ **results** | [**Array<PythonPythonDistributionRead>**](PythonPythonDistributionRead.md) | |
11
+
12
+ ## Code Sample
13
+
14
+ ```ruby
15
+ require 'PulpPythonClient'
16
+
17
+ instance = PulpPythonClient::InlineResponse2001.new(count: null,
18
+ _next: null,
19
+ previous: null,
20
+ results: null)
21
+ ```
22
+
23
+
@@ -0,0 +1,23 @@
1
+ # PulpPythonClient::InlineResponse2002
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **count** | **Integer** | |
8
+ **_next** | **String** | | [optional]
9
+ **previous** | **String** | | [optional]
10
+ **results** | [**Array<PythonPythonPublicationRead>**](PythonPythonPublicationRead.md) | |
11
+
12
+ ## Code Sample
13
+
14
+ ```ruby
15
+ require 'PulpPythonClient'
16
+
17
+ instance = PulpPythonClient::InlineResponse2002.new(count: null,
18
+ _next: null,
19
+ previous: null,
20
+ results: null)
21
+ ```
22
+
23
+