pulp_python_client 3.10.0 → 3.11.0
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.
- checksums.yaml +4 -4
- data/README.md +18 -8
- data/docs/ContentPackagesApi.md +9 -7
- data/docs/DistributionsPypiApi.md +126 -4
- data/docs/PatchedpythonPythonDistribution.md +2 -0
- data/docs/PublicationsPypiApi.md +3 -1
- data/docs/PypiApi.md +1 -1
- data/docs/PypiLegacyApi.md +1 -1
- data/docs/PypiMetadataApi.md +1 -1
- data/docs/PypiSimpleApi.md +1 -1
- data/docs/PythonPythonDistribution.md +2 -0
- data/docs/PythonPythonDistributionResponse.md +2 -0
- data/docs/PythonPythonPackageContent.md +5 -5
- data/docs/RemotesPythonApi.md +123 -1
- data/docs/RepositoriesPythonApi.md +124 -2
- data/docs/RepositoriesPythonVersionsApi.md +3 -1
- data/docs/SetLabel.md +19 -0
- data/docs/SetLabelResponse.md +19 -0
- data/docs/UnsetLabel.md +17 -0
- data/docs/UnsetLabelResponse.md +19 -0
- data/lib/pulp_python_client/api/content_packages_api.rb +10 -7
- data/lib/pulp_python_client/api/distributions_pypi_api.rb +158 -3
- data/lib/pulp_python_client/api/publications_pypi_api.rb +3 -0
- data/lib/pulp_python_client/api/remotes_python_api.rb +155 -0
- data/lib/pulp_python_client/api/repositories_python_api.rb +155 -0
- data/lib/pulp_python_client/api/repositories_python_versions_api.rb +3 -0
- data/lib/pulp_python_client/configuration.rb +2 -2
- data/lib/pulp_python_client/models/patchedpython_python_distribution.rb +13 -1
- data/lib/pulp_python_client/models/python_python_distribution.rb +13 -1
- data/lib/pulp_python_client/models/python_python_distribution_response.rb +13 -1
- data/lib/pulp_python_client/models/python_python_package_content.rb +13 -13
- data/lib/pulp_python_client/models/set_label.rb +252 -0
- data/lib/pulp_python_client/models/set_label_response.rb +243 -0
- data/lib/pulp_python_client/models/unset_label.rb +242 -0
- data/lib/pulp_python_client/models/unset_label_response.rb +242 -0
- data/lib/pulp_python_client/version.rb +1 -1
- data/lib/pulp_python_client.rb +4 -0
- data/spec/api/content_packages_api_spec.rb +4 -3
- data/spec/api/distributions_pypi_api_spec.rb +32 -1
- data/spec/api/publications_pypi_api_spec.rb +1 -0
- data/spec/api/remotes_python_api_spec.rb +31 -0
- data/spec/api/repositories_python_api_spec.rb +31 -0
- data/spec/api/repositories_python_versions_api_spec.rb +1 -0
- data/spec/configuration_spec.rb +3 -3
- data/spec/models/patchedpython_python_distribution_spec.rb +6 -0
- data/spec/models/python_python_distribution_response_spec.rb +6 -0
- data/spec/models/python_python_distribution_spec.rb +6 -0
- data/spec/models/python_python_package_content_spec.rb +4 -4
- data/spec/models/set_label_response_spec.rb +47 -0
- data/spec/models/set_label_spec.rb +47 -0
- data/spec/models/unset_label_response_spec.rb +47 -0
- data/spec/models/unset_label_spec.rb +41 -0
- metadata +48 -32
data/docs/RemotesPythonApi.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# PulpPythonClient::RemotesPythonApi
|
2
2
|
|
3
|
-
All URIs are relative to *
|
3
|
+
All URIs are relative to *http://pulp*
|
4
4
|
|
5
5
|
Method | HTTP request | Description
|
6
6
|
------------- | ------------- | -------------
|
@@ -10,6 +10,8 @@ Method | HTTP request | Description
|
|
10
10
|
[**list**](RemotesPythonApi.md#list) | **GET** /pulp/api/v3/remotes/python/python/ | List python remotes
|
11
11
|
[**partial_update**](RemotesPythonApi.md#partial_update) | **PATCH** {python_python_remote_href} | Update a python remote
|
12
12
|
[**read**](RemotesPythonApi.md#read) | **GET** {python_python_remote_href} | Inspect a python remote
|
13
|
+
[**set_label**](RemotesPythonApi.md#set_label) | **POST** {python_python_remote_href}set_label/ | Set a label
|
14
|
+
[**unset_label**](RemotesPythonApi.md#unset_label) | **POST** {python_python_remote_href}unset_label/ | Unset a label
|
13
15
|
[**update**](RemotesPythonApi.md#update) | **PUT** {python_python_remote_href} | Update a python remote
|
14
16
|
|
15
17
|
|
@@ -205,7 +207,11 @@ opts = {
|
|
205
207
|
name: 'name_example', # String | Filter results where name matches value
|
206
208
|
name__contains: 'name__contains_example', # String | Filter results where name contains value
|
207
209
|
name__icontains: 'name__icontains_example', # String | Filter results where name contains value
|
210
|
+
name__iexact: 'name__iexact_example', # String | Filter results where name matches value
|
208
211
|
name__in: ['name__in_example'], # Array<String> | Filter results where name is in a comma-separated list of values
|
212
|
+
name__iregex: 'name__iregex_example', # String | Filter results where name matches regex value
|
213
|
+
name__istartswith: 'name__istartswith_example', # String | Filter results where name starts with value
|
214
|
+
name__regex: 'name__regex_example', # String | Filter results where name matches regex value
|
209
215
|
name__startswith: 'name__startswith_example', # String | Filter results where name starts with value
|
210
216
|
offset: 56, # Integer | The initial index from which to return the results.
|
211
217
|
ordering: ['ordering_example'], # Array<String> | Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `name` - Name * `-name` - Name (descending) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `url` - Url * `-url` - Url (descending) * `ca_cert` - Ca cert * `-ca_cert` - Ca cert (descending) * `client_cert` - Client cert * `-client_cert` - Client cert (descending) * `client_key` - Client key * `-client_key` - Client key (descending) * `tls_validation` - Tls validation * `-tls_validation` - Tls validation (descending) * `username` - Username * `-username` - Username (descending) * `password` - Password * `-password` - Password (descending) * `proxy_url` - Proxy url * `-proxy_url` - Proxy url (descending) * `proxy_username` - Proxy username * `-proxy_username` - Proxy username (descending) * `proxy_password` - Proxy password * `-proxy_password` - Proxy password (descending) * `download_concurrency` - Download concurrency * `-download_concurrency` - Download concurrency (descending) * `max_retries` - Max retries * `-max_retries` - Max retries (descending) * `policy` - Policy * `-policy` - Policy (descending) * `total_timeout` - Total timeout * `-total_timeout` - Total timeout (descending) * `connect_timeout` - Connect timeout * `-connect_timeout` - Connect timeout (descending) * `sock_connect_timeout` - Sock connect timeout * `-sock_connect_timeout` - Sock connect timeout (descending) * `sock_read_timeout` - Sock read timeout * `-sock_read_timeout` - Sock read timeout (descending) * `headers` - Headers * `-headers` - Headers (descending) * `rate_limit` - Rate limit * `-rate_limit` - Rate limit (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
@@ -218,6 +224,7 @@ opts = {
|
|
218
224
|
pulp_last_updated__lt: DateTime.parse('2013-10-20T19:20:30+01:00'), # DateTime | Filter results where pulp_last_updated is less than value
|
219
225
|
pulp_last_updated__lte: DateTime.parse('2013-10-20T19:20:30+01:00'), # DateTime | Filter results where pulp_last_updated is less than or equal to value
|
220
226
|
pulp_last_updated__range: [DateTime.parse('2013-10-20T19:20:30+01:00')], # Array<DateTime> | Filter results where pulp_last_updated is between two comma separated values
|
227
|
+
q: 'q_example', # String |
|
221
228
|
fields: ['fields_example'], # Array<String> | A list of fields to include in the response.
|
222
229
|
exclude_fields: ['exclude_fields_example'] # Array<String> | A list of fields to exclude from the response.
|
223
230
|
}
|
@@ -240,7 +247,11 @@ Name | Type | Description | Notes
|
|
240
247
|
**name** | **String**| Filter results where name matches value | [optional]
|
241
248
|
**name__contains** | **String**| Filter results where name contains value | [optional]
|
242
249
|
**name__icontains** | **String**| Filter results where name contains value | [optional]
|
250
|
+
**name__iexact** | **String**| Filter results where name matches value | [optional]
|
243
251
|
**name__in** | [**Array<String>**](String.md)| Filter results where name is in a comma-separated list of values | [optional]
|
252
|
+
**name__iregex** | **String**| Filter results where name matches regex value | [optional]
|
253
|
+
**name__istartswith** | **String**| Filter results where name starts with value | [optional]
|
254
|
+
**name__regex** | **String**| Filter results where name matches regex value | [optional]
|
244
255
|
**name__startswith** | **String**| Filter results where name starts with value | [optional]
|
245
256
|
**offset** | **Integer**| The initial index from which to return the results. | [optional]
|
246
257
|
**ordering** | [**Array<String>**](String.md)| Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `name` - Name * `-name` - Name (descending) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `url` - Url * `-url` - Url (descending) * `ca_cert` - Ca cert * `-ca_cert` - Ca cert (descending) * `client_cert` - Client cert * `-client_cert` - Client cert (descending) * `client_key` - Client key * `-client_key` - Client key (descending) * `tls_validation` - Tls validation * `-tls_validation` - Tls validation (descending) * `username` - Username * `-username` - Username (descending) * `password` - Password * `-password` - Password (descending) * `proxy_url` - Proxy url * `-proxy_url` - Proxy url (descending) * `proxy_username` - Proxy username * `-proxy_username` - Proxy username (descending) * `proxy_password` - Proxy password * `-proxy_password` - Proxy password (descending) * `download_concurrency` - Download concurrency * `-download_concurrency` - Download concurrency (descending) * `max_retries` - Max retries * `-max_retries` - Max retries (descending) * `policy` - Policy * `-policy` - Policy (descending) * `total_timeout` - Total timeout * `-total_timeout` - Total timeout (descending) * `connect_timeout` - Connect timeout * `-connect_timeout` - Connect timeout (descending) * `sock_connect_timeout` - Sock connect timeout * `-sock_connect_timeout` - Sock connect timeout (descending) * `sock_read_timeout` - Sock read timeout * `-sock_read_timeout` - Sock read timeout (descending) * `headers` - Headers * `-headers` - Headers (descending) * `rate_limit` - Rate limit * `-rate_limit` - Rate limit (descending) * `pk` - Pk * `-pk` - Pk (descending) | [optional]
|
@@ -253,6 +264,7 @@ Name | Type | Description | Notes
|
|
253
264
|
**pulp_last_updated__lt** | **DateTime**| Filter results where pulp_last_updated is less than value | [optional]
|
254
265
|
**pulp_last_updated__lte** | **DateTime**| Filter results where pulp_last_updated is less than or equal to value | [optional]
|
255
266
|
**pulp_last_updated__range** | [**Array<DateTime>**](DateTime.md)| Filter results where pulp_last_updated is between two comma separated values | [optional]
|
267
|
+
**q** | **String**| | [optional]
|
256
268
|
**fields** | [**Array<String>**](String.md)| A list of fields to include in the response. | [optional]
|
257
269
|
**exclude_fields** | [**Array<String>**](String.md)| A list of fields to exclude from the response. | [optional]
|
258
270
|
|
@@ -384,6 +396,116 @@ Name | Type | Description | Notes
|
|
384
396
|
- **Accept**: application/json
|
385
397
|
|
386
398
|
|
399
|
+
## set_label
|
400
|
+
|
401
|
+
> SetLabelResponse set_label(python_python_remote_href, set_label)
|
402
|
+
|
403
|
+
Set a label
|
404
|
+
|
405
|
+
Set a single pulp_label on the object to a specific value or null.
|
406
|
+
|
407
|
+
### Example
|
408
|
+
|
409
|
+
```ruby
|
410
|
+
# load the gem
|
411
|
+
require 'pulp_python_client'
|
412
|
+
# setup authorization
|
413
|
+
PulpPythonClient.configure do |config|
|
414
|
+
# Configure HTTP basic authorization: basicAuth
|
415
|
+
config.username = 'YOUR USERNAME'
|
416
|
+
config.password = 'YOUR PASSWORD'
|
417
|
+
end
|
418
|
+
|
419
|
+
api_instance = PulpPythonClient::RemotesPythonApi.new
|
420
|
+
python_python_remote_href = 'python_python_remote_href_example' # String |
|
421
|
+
set_label = PulpPythonClient::SetLabel.new # SetLabel |
|
422
|
+
|
423
|
+
begin
|
424
|
+
#Set a label
|
425
|
+
result = api_instance.set_label(python_python_remote_href, set_label)
|
426
|
+
p result
|
427
|
+
rescue PulpPythonClient::ApiError => e
|
428
|
+
puts "Exception when calling RemotesPythonApi->set_label: #{e}"
|
429
|
+
end
|
430
|
+
```
|
431
|
+
|
432
|
+
### Parameters
|
433
|
+
|
434
|
+
|
435
|
+
Name | Type | Description | Notes
|
436
|
+
------------- | ------------- | ------------- | -------------
|
437
|
+
**python_python_remote_href** | **String**| |
|
438
|
+
**set_label** | [**SetLabel**](SetLabel.md)| |
|
439
|
+
|
440
|
+
### Return type
|
441
|
+
|
442
|
+
[**SetLabelResponse**](SetLabelResponse.md)
|
443
|
+
|
444
|
+
### Authorization
|
445
|
+
|
446
|
+
[basicAuth](../README.md#basicAuth)
|
447
|
+
|
448
|
+
### HTTP request headers
|
449
|
+
|
450
|
+
- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
|
451
|
+
- **Accept**: application/json
|
452
|
+
|
453
|
+
|
454
|
+
## unset_label
|
455
|
+
|
456
|
+
> UnsetLabelResponse unset_label(python_python_remote_href, unset_label)
|
457
|
+
|
458
|
+
Unset a label
|
459
|
+
|
460
|
+
Unset a single pulp_label on the object.
|
461
|
+
|
462
|
+
### Example
|
463
|
+
|
464
|
+
```ruby
|
465
|
+
# load the gem
|
466
|
+
require 'pulp_python_client'
|
467
|
+
# setup authorization
|
468
|
+
PulpPythonClient.configure do |config|
|
469
|
+
# Configure HTTP basic authorization: basicAuth
|
470
|
+
config.username = 'YOUR USERNAME'
|
471
|
+
config.password = 'YOUR PASSWORD'
|
472
|
+
end
|
473
|
+
|
474
|
+
api_instance = PulpPythonClient::RemotesPythonApi.new
|
475
|
+
python_python_remote_href = 'python_python_remote_href_example' # String |
|
476
|
+
unset_label = PulpPythonClient::UnsetLabel.new # UnsetLabel |
|
477
|
+
|
478
|
+
begin
|
479
|
+
#Unset a label
|
480
|
+
result = api_instance.unset_label(python_python_remote_href, unset_label)
|
481
|
+
p result
|
482
|
+
rescue PulpPythonClient::ApiError => e
|
483
|
+
puts "Exception when calling RemotesPythonApi->unset_label: #{e}"
|
484
|
+
end
|
485
|
+
```
|
486
|
+
|
487
|
+
### Parameters
|
488
|
+
|
489
|
+
|
490
|
+
Name | Type | Description | Notes
|
491
|
+
------------- | ------------- | ------------- | -------------
|
492
|
+
**python_python_remote_href** | **String**| |
|
493
|
+
**unset_label** | [**UnsetLabel**](UnsetLabel.md)| |
|
494
|
+
|
495
|
+
### Return type
|
496
|
+
|
497
|
+
[**UnsetLabelResponse**](UnsetLabelResponse.md)
|
498
|
+
|
499
|
+
### Authorization
|
500
|
+
|
501
|
+
[basicAuth](../README.md#basicAuth)
|
502
|
+
|
503
|
+
### HTTP request headers
|
504
|
+
|
505
|
+
- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
|
506
|
+
- **Accept**: application/json
|
507
|
+
|
508
|
+
|
387
509
|
## update
|
388
510
|
|
389
511
|
> AsyncOperationResponse update(python_python_remote_href, python_python_remote)
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# PulpPythonClient::RepositoriesPythonApi
|
2
2
|
|
3
|
-
All URIs are relative to *
|
3
|
+
All URIs are relative to *http://pulp*
|
4
4
|
|
5
5
|
Method | HTTP request | Description
|
6
6
|
------------- | ------------- | -------------
|
@@ -10,7 +10,9 @@ Method | HTTP request | Description
|
|
10
10
|
[**modify**](RepositoriesPythonApi.md#modify) | **POST** {python_python_repository_href}modify/ | Modify Repository Content
|
11
11
|
[**partial_update**](RepositoriesPythonApi.md#partial_update) | **PATCH** {python_python_repository_href} | Update a python repository
|
12
12
|
[**read**](RepositoriesPythonApi.md#read) | **GET** {python_python_repository_href} | Inspect a python repository
|
13
|
+
[**set_label**](RepositoriesPythonApi.md#set_label) | **POST** {python_python_repository_href}set_label/ | Set a label
|
13
14
|
[**sync**](RepositoriesPythonApi.md#sync) | **POST** {python_python_repository_href}sync/ | Sync from remote
|
15
|
+
[**unset_label**](RepositoriesPythonApi.md#unset_label) | **POST** {python_python_repository_href}unset_label/ | Unset a label
|
14
16
|
[**update**](RepositoriesPythonApi.md#update) | **PUT** {python_python_repository_href} | Update a python repository
|
15
17
|
|
16
18
|
|
@@ -148,13 +150,18 @@ opts = {
|
|
148
150
|
name: 'name_example', # String | Filter results where name matches value
|
149
151
|
name__contains: 'name__contains_example', # String | Filter results where name contains value
|
150
152
|
name__icontains: 'name__icontains_example', # String | Filter results where name contains value
|
153
|
+
name__iexact: 'name__iexact_example', # String | Filter results where name matches value
|
151
154
|
name__in: ['name__in_example'], # Array<String> | Filter results where name is in a comma-separated list of values
|
155
|
+
name__iregex: 'name__iregex_example', # String | Filter results where name matches regex value
|
156
|
+
name__istartswith: 'name__istartswith_example', # String | Filter results where name starts with value
|
157
|
+
name__regex: 'name__regex_example', # String | Filter results where name matches regex value
|
152
158
|
name__startswith: 'name__startswith_example', # String | Filter results where name starts with value
|
153
159
|
offset: 56, # Integer | The initial index from which to return the results.
|
154
160
|
ordering: ['ordering_example'], # Array<String> | Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `name` - Name * `-name` - Name (descending) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `description` - Description * `-description` - Description (descending) * `next_version` - Next version * `-next_version` - Next version (descending) * `retain_repo_versions` - Retain repo versions * `-retain_repo_versions` - Retain repo versions (descending) * `user_hidden` - User hidden * `-user_hidden` - User hidden (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
155
161
|
pulp_href__in: ['pulp_href__in_example'], # Array<String> | Multiple values may be separated by commas.
|
156
162
|
pulp_id__in: ['pulp_id__in_example'], # Array<String> | Multiple values may be separated by commas.
|
157
163
|
pulp_label_select: 'pulp_label_select_example', # String | Filter labels by search string
|
164
|
+
q: 'q_example', # String |
|
158
165
|
remote: 'remote_example', # String | Foreign Key referenced by HREF
|
159
166
|
retain_repo_versions: 56, # Integer | Filter results where retain_repo_versions matches value
|
160
167
|
retain_repo_versions__gt: 56, # Integer | Filter results where retain_repo_versions is greater than value
|
@@ -188,14 +195,19 @@ Name | Type | Description | Notes
|
|
188
195
|
**name** | **String**| Filter results where name matches value | [optional]
|
189
196
|
**name__contains** | **String**| Filter results where name contains value | [optional]
|
190
197
|
**name__icontains** | **String**| Filter results where name contains value | [optional]
|
198
|
+
**name__iexact** | **String**| Filter results where name matches value | [optional]
|
191
199
|
**name__in** | [**Array<String>**](String.md)| Filter results where name is in a comma-separated list of values | [optional]
|
200
|
+
**name__iregex** | **String**| Filter results where name matches regex value | [optional]
|
201
|
+
**name__istartswith** | **String**| Filter results where name starts with value | [optional]
|
202
|
+
**name__regex** | **String**| Filter results where name matches regex value | [optional]
|
192
203
|
**name__startswith** | **String**| Filter results where name starts with value | [optional]
|
193
204
|
**offset** | **Integer**| The initial index from which to return the results. | [optional]
|
194
205
|
**ordering** | [**Array<String>**](String.md)| Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `name` - Name * `-name` - Name (descending) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `description` - Description * `-description` - Description (descending) * `next_version` - Next version * `-next_version` - Next version (descending) * `retain_repo_versions` - Retain repo versions * `-retain_repo_versions` - Retain repo versions (descending) * `user_hidden` - User hidden * `-user_hidden` - User hidden (descending) * `pk` - Pk * `-pk` - Pk (descending) | [optional]
|
195
206
|
**pulp_href__in** | [**Array<String>**](String.md)| Multiple values may be separated by commas. | [optional]
|
196
207
|
**pulp_id__in** | [**Array<String>**](String.md)| Multiple values may be separated by commas. | [optional]
|
197
208
|
**pulp_label_select** | **String**| Filter labels by search string | [optional]
|
198
|
-
**
|
209
|
+
**q** | **String**| | [optional]
|
210
|
+
**remote** | [**String**](.md)| Foreign Key referenced by HREF | [optional]
|
199
211
|
**retain_repo_versions** | **Integer**| Filter results where retain_repo_versions matches value | [optional]
|
200
212
|
**retain_repo_versions__gt** | **Integer**| Filter results where retain_repo_versions is greater than value | [optional]
|
201
213
|
**retain_repo_versions__gte** | **Integer**| Filter results where retain_repo_versions is greater than or equal to value | [optional]
|
@@ -391,6 +403,61 @@ Name | Type | Description | Notes
|
|
391
403
|
- **Accept**: application/json
|
392
404
|
|
393
405
|
|
406
|
+
## set_label
|
407
|
+
|
408
|
+
> SetLabelResponse set_label(python_python_repository_href, set_label)
|
409
|
+
|
410
|
+
Set a label
|
411
|
+
|
412
|
+
Set a single pulp_label on the object to a specific value or null.
|
413
|
+
|
414
|
+
### Example
|
415
|
+
|
416
|
+
```ruby
|
417
|
+
# load the gem
|
418
|
+
require 'pulp_python_client'
|
419
|
+
# setup authorization
|
420
|
+
PulpPythonClient.configure do |config|
|
421
|
+
# Configure HTTP basic authorization: basicAuth
|
422
|
+
config.username = 'YOUR USERNAME'
|
423
|
+
config.password = 'YOUR PASSWORD'
|
424
|
+
end
|
425
|
+
|
426
|
+
api_instance = PulpPythonClient::RepositoriesPythonApi.new
|
427
|
+
python_python_repository_href = 'python_python_repository_href_example' # String |
|
428
|
+
set_label = PulpPythonClient::SetLabel.new # SetLabel |
|
429
|
+
|
430
|
+
begin
|
431
|
+
#Set a label
|
432
|
+
result = api_instance.set_label(python_python_repository_href, set_label)
|
433
|
+
p result
|
434
|
+
rescue PulpPythonClient::ApiError => e
|
435
|
+
puts "Exception when calling RepositoriesPythonApi->set_label: #{e}"
|
436
|
+
end
|
437
|
+
```
|
438
|
+
|
439
|
+
### Parameters
|
440
|
+
|
441
|
+
|
442
|
+
Name | Type | Description | Notes
|
443
|
+
------------- | ------------- | ------------- | -------------
|
444
|
+
**python_python_repository_href** | **String**| |
|
445
|
+
**set_label** | [**SetLabel**](SetLabel.md)| |
|
446
|
+
|
447
|
+
### Return type
|
448
|
+
|
449
|
+
[**SetLabelResponse**](SetLabelResponse.md)
|
450
|
+
|
451
|
+
### Authorization
|
452
|
+
|
453
|
+
[basicAuth](../README.md#basicAuth)
|
454
|
+
|
455
|
+
### HTTP request headers
|
456
|
+
|
457
|
+
- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
|
458
|
+
- **Accept**: application/json
|
459
|
+
|
460
|
+
|
394
461
|
## sync
|
395
462
|
|
396
463
|
> AsyncOperationResponse sync(python_python_repository_href, repository_sync_url)
|
@@ -446,6 +513,61 @@ Name | Type | Description | Notes
|
|
446
513
|
- **Accept**: application/json
|
447
514
|
|
448
515
|
|
516
|
+
## unset_label
|
517
|
+
|
518
|
+
> UnsetLabelResponse unset_label(python_python_repository_href, unset_label)
|
519
|
+
|
520
|
+
Unset a label
|
521
|
+
|
522
|
+
Unset a single pulp_label on the object.
|
523
|
+
|
524
|
+
### Example
|
525
|
+
|
526
|
+
```ruby
|
527
|
+
# load the gem
|
528
|
+
require 'pulp_python_client'
|
529
|
+
# setup authorization
|
530
|
+
PulpPythonClient.configure do |config|
|
531
|
+
# Configure HTTP basic authorization: basicAuth
|
532
|
+
config.username = 'YOUR USERNAME'
|
533
|
+
config.password = 'YOUR PASSWORD'
|
534
|
+
end
|
535
|
+
|
536
|
+
api_instance = PulpPythonClient::RepositoriesPythonApi.new
|
537
|
+
python_python_repository_href = 'python_python_repository_href_example' # String |
|
538
|
+
unset_label = PulpPythonClient::UnsetLabel.new # UnsetLabel |
|
539
|
+
|
540
|
+
begin
|
541
|
+
#Unset a label
|
542
|
+
result = api_instance.unset_label(python_python_repository_href, unset_label)
|
543
|
+
p result
|
544
|
+
rescue PulpPythonClient::ApiError => e
|
545
|
+
puts "Exception when calling RepositoriesPythonApi->unset_label: #{e}"
|
546
|
+
end
|
547
|
+
```
|
548
|
+
|
549
|
+
### Parameters
|
550
|
+
|
551
|
+
|
552
|
+
Name | Type | Description | Notes
|
553
|
+
------------- | ------------- | ------------- | -------------
|
554
|
+
**python_python_repository_href** | **String**| |
|
555
|
+
**unset_label** | [**UnsetLabel**](UnsetLabel.md)| |
|
556
|
+
|
557
|
+
### Return type
|
558
|
+
|
559
|
+
[**UnsetLabelResponse**](UnsetLabelResponse.md)
|
560
|
+
|
561
|
+
### Authorization
|
562
|
+
|
563
|
+
[basicAuth](../README.md#basicAuth)
|
564
|
+
|
565
|
+
### HTTP request headers
|
566
|
+
|
567
|
+
- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
|
568
|
+
- **Accept**: application/json
|
569
|
+
|
570
|
+
|
449
571
|
## update
|
450
572
|
|
451
573
|
> AsyncOperationResponse update(python_python_repository_href, python_python_repository)
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# PulpPythonClient::RepositoriesPythonVersionsApi
|
2
2
|
|
3
|
-
All URIs are relative to *
|
3
|
+
All URIs are relative to *http://pulp*
|
4
4
|
|
5
5
|
Method | HTTP request | Description
|
6
6
|
------------- | ------------- | -------------
|
@@ -105,6 +105,7 @@ opts = {
|
|
105
105
|
pulp_created__lte: DateTime.parse('2013-10-20T19:20:30+01:00'), # DateTime | Filter results where pulp_created is less than or equal to value
|
106
106
|
pulp_created__range: [DateTime.parse('2013-10-20T19:20:30+01:00')], # Array<DateTime> | Filter results where pulp_created is between two comma separated values
|
107
107
|
pulp_href__in: ['pulp_href__in_example'], # Array<String> | Multiple values may be separated by commas.
|
108
|
+
q: 'q_example', # String |
|
108
109
|
fields: ['fields_example'], # Array<String> | A list of fields to include in the response.
|
109
110
|
exclude_fields: ['exclude_fields_example'] # Array<String> | A list of fields to exclude from the response.
|
110
111
|
}
|
@@ -142,6 +143,7 @@ Name | Type | Description | Notes
|
|
142
143
|
**pulp_created__lte** | **DateTime**| Filter results where pulp_created is less than or equal to value | [optional]
|
143
144
|
**pulp_created__range** | [**Array<DateTime>**](DateTime.md)| Filter results where pulp_created is between two comma separated values | [optional]
|
144
145
|
**pulp_href__in** | [**Array<String>**](String.md)| Multiple values may be separated by commas. | [optional]
|
146
|
+
**q** | **String**| | [optional]
|
145
147
|
**fields** | [**Array<String>**](String.md)| A list of fields to include in the response. | [optional]
|
146
148
|
**exclude_fields** | [**Array<String>**](String.md)| A list of fields to exclude from the response. | [optional]
|
147
149
|
|
data/docs/SetLabel.md
ADDED
@@ -0,0 +1,19 @@
|
|
1
|
+
# PulpPythonClient::SetLabel
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
Name | Type | Description | Notes
|
6
|
+
------------ | ------------- | ------------- | -------------
|
7
|
+
**key** | **String** | |
|
8
|
+
**value** | **String** | |
|
9
|
+
|
10
|
+
## Code Sample
|
11
|
+
|
12
|
+
```ruby
|
13
|
+
require 'PulpPythonClient'
|
14
|
+
|
15
|
+
instance = PulpPythonClient::SetLabel.new(key: null,
|
16
|
+
value: null)
|
17
|
+
```
|
18
|
+
|
19
|
+
|
@@ -0,0 +1,19 @@
|
|
1
|
+
# PulpPythonClient::SetLabelResponse
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
Name | Type | Description | Notes
|
6
|
+
------------ | ------------- | ------------- | -------------
|
7
|
+
**key** | **String** | |
|
8
|
+
**value** | **String** | |
|
9
|
+
|
10
|
+
## Code Sample
|
11
|
+
|
12
|
+
```ruby
|
13
|
+
require 'PulpPythonClient'
|
14
|
+
|
15
|
+
instance = PulpPythonClient::SetLabelResponse.new(key: null,
|
16
|
+
value: null)
|
17
|
+
```
|
18
|
+
|
19
|
+
|
data/docs/UnsetLabel.md
ADDED
@@ -0,0 +1,17 @@
|
|
1
|
+
# PulpPythonClient::UnsetLabel
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
Name | Type | Description | Notes
|
6
|
+
------------ | ------------- | ------------- | -------------
|
7
|
+
**key** | **String** | |
|
8
|
+
|
9
|
+
## Code Sample
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
require 'PulpPythonClient'
|
13
|
+
|
14
|
+
instance = PulpPythonClient::UnsetLabel.new(key: null)
|
15
|
+
```
|
16
|
+
|
17
|
+
|
@@ -0,0 +1,19 @@
|
|
1
|
+
# PulpPythonClient::UnsetLabelResponse
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
Name | Type | Description | Notes
|
6
|
+
------------ | ------------- | ------------- | -------------
|
7
|
+
**key** | **String** | |
|
8
|
+
**value** | **String** | | [optional] [readonly]
|
9
|
+
|
10
|
+
## Code Sample
|
11
|
+
|
12
|
+
```ruby
|
13
|
+
require 'PulpPythonClient'
|
14
|
+
|
15
|
+
instance = PulpPythonClient::UnsetLabelResponse.new(key: null,
|
16
|
+
value: null)
|
17
|
+
```
|
18
|
+
|
19
|
+
|
@@ -23,10 +23,10 @@ module PulpPythonClient
|
|
23
23
|
# Trigger an asynchronous task to create content,optionally create new repository version.
|
24
24
|
# @param relative_path [String] Path where the artifact is located relative to distributions base_path
|
25
25
|
# @param [Hash] opts the optional parameters
|
26
|
-
# @option opts [String] :artifact Artifact file representing the physical content
|
27
|
-
# @option opts [File] :file An uploaded file that may be turned into the artifact of the content unit.
|
28
26
|
# @option opts [String] :repository A URI of a repository the new content unit should be associated with.
|
29
|
-
# @option opts [String] :
|
27
|
+
# @option opts [String] :artifact Artifact file representing the physical content
|
28
|
+
# @option opts [File] :file An uploaded file that may be turned into the content unit.
|
29
|
+
# @option opts [String] :upload An uncommitted upload that may be turned into the content unit.
|
30
30
|
# @option opts [String] :sha256 The SHA256 digest of this package. (default to '')
|
31
31
|
# @option opts [String] :summary A one-line summary of what the package does.
|
32
32
|
# @option opts [String] :description A longer description of the package that can run to several paragraphs.
|
@@ -59,10 +59,10 @@ module PulpPythonClient
|
|
59
59
|
# Trigger an asynchronous task to create content,optionally create new repository version.
|
60
60
|
# @param relative_path [String] Path where the artifact is located relative to distributions base_path
|
61
61
|
# @param [Hash] opts the optional parameters
|
62
|
-
# @option opts [String] :artifact Artifact file representing the physical content
|
63
|
-
# @option opts [File] :file An uploaded file that may be turned into the artifact of the content unit.
|
64
62
|
# @option opts [String] :repository A URI of a repository the new content unit should be associated with.
|
65
|
-
# @option opts [String] :
|
63
|
+
# @option opts [String] :artifact Artifact file representing the physical content
|
64
|
+
# @option opts [File] :file An uploaded file that may be turned into the content unit.
|
65
|
+
# @option opts [String] :upload An uncommitted upload that may be turned into the content unit.
|
66
66
|
# @option opts [String] :sha256 The SHA256 digest of this package.
|
67
67
|
# @option opts [String] :summary A one-line summary of what the package does.
|
68
68
|
# @option opts [String] :description A longer description of the package that can run to several paragraphs.
|
@@ -118,9 +118,9 @@ module PulpPythonClient
|
|
118
118
|
# form parameters
|
119
119
|
form_params = opts[:form_params] || {}
|
120
120
|
form_params['relative_path'] = relative_path
|
121
|
+
form_params['repository'] = opts[:'repository'] if !opts[:'repository'].nil?
|
121
122
|
form_params['artifact'] = opts[:'artifact'] if !opts[:'artifact'].nil?
|
122
123
|
form_params['file'] = opts[:'file'] if !opts[:'file'].nil?
|
123
|
-
form_params['repository'] = opts[:'repository'] if !opts[:'repository'].nil?
|
124
124
|
form_params['upload'] = opts[:'upload'] if !opts[:'upload'].nil?
|
125
125
|
form_params['sha256'] = opts[:'sha256'] if !opts[:'sha256'].nil?
|
126
126
|
form_params['summary'] = opts[:'summary'] if !opts[:'summary'].nil?
|
@@ -189,6 +189,7 @@ module PulpPythonClient
|
|
189
189
|
# @option opts [Array<String>] :packagetype__in Filter results where packagetype is in a comma-separated list of values
|
190
190
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
191
191
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
192
|
+
# @option opts [String] :q
|
192
193
|
# @option opts [String] :repository_version Repository Version referenced by HREF
|
193
194
|
# @option opts [String] :repository_version_added Repository Version referenced by HREF
|
194
195
|
# @option opts [String] :repository_version_removed Repository Version referenced by HREF
|
@@ -229,6 +230,7 @@ module PulpPythonClient
|
|
229
230
|
# @option opts [Array<String>] :packagetype__in Filter results where packagetype is in a comma-separated list of values
|
230
231
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
231
232
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
233
|
+
# @option opts [String] :q
|
232
234
|
# @option opts [String] :repository_version Repository Version referenced by HREF
|
233
235
|
# @option opts [String] :repository_version_added Repository Version referenced by HREF
|
234
236
|
# @option opts [String] :repository_version_removed Repository Version referenced by HREF
|
@@ -278,6 +280,7 @@ module PulpPythonClient
|
|
278
280
|
query_params[:'packagetype__in'] = @api_client.build_collection_param(opts[:'packagetype__in'], :csv) if !opts[:'packagetype__in'].nil?
|
279
281
|
query_params[:'pulp_href__in'] = @api_client.build_collection_param(opts[:'pulp_href__in'], :csv) if !opts[:'pulp_href__in'].nil?
|
280
282
|
query_params[:'pulp_id__in'] = @api_client.build_collection_param(opts[:'pulp_id__in'], :csv) if !opts[:'pulp_id__in'].nil?
|
283
|
+
query_params[:'q'] = opts[:'q'] if !opts[:'q'].nil?
|
281
284
|
query_params[:'repository_version'] = opts[:'repository_version'] if !opts[:'repository_version'].nil?
|
282
285
|
query_params[:'repository_version_added'] = opts[:'repository_version_added'] if !opts[:'repository_version_added'].nil?
|
283
286
|
query_params[:'repository_version_removed'] = opts[:'repository_version_removed'] if !opts[:'repository_version_removed'].nil?
|