pulp_python_client 3.11.8 → 3.12.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 +31 -12
- data/docs/ContentPackagesApi.md +13 -19
- data/docs/DistributionsPypiApi.md +245 -41
- data/docs/MyPermissionsResponse.md +17 -0
- data/docs/NestedRole.md +21 -0
- data/docs/NestedRoleResponse.md +21 -0
- data/docs/ObjectRolesResponse.md +17 -0
- data/docs/PackageMetadataResponse.md +3 -3
- data/docs/PublicationsPypiApi.md +237 -17
- data/docs/PypiApi.md +8 -4
- data/docs/PypiLegacyApi.md +1 -3
- data/docs/PypiMetadataApi.md +8 -4
- data/docs/PypiSimpleApi.md +1 -7
- data/docs/PythonPythonPackageContent.md +6 -6
- data/docs/PythonPythonPackageContentResponse.md +6 -6
- data/docs/RemotesPythonApi.md +245 -43
- data/docs/RepositoriesPythonApi.md +249 -53
- data/docs/RepositoriesPythonVersionsApi.md +5 -17
- data/lib/pulp_python_client/api/content_packages_api.rb +12 -21
- data/lib/pulp_python_client/api/distributions_pypi_api.rb +276 -24
- data/lib/pulp_python_client/api/publications_pypi_api.rb +276 -12
- data/lib/pulp_python_client/api/pypi_api.rb +1 -4
- data/lib/pulp_python_client/api/pypi_legacy_api.rb +0 -3
- data/lib/pulp_python_client/api/pypi_metadata_api.rb +1 -4
- data/lib/pulp_python_client/api/pypi_simple_api.rb +0 -9
- data/lib/pulp_python_client/api/remotes_python_api.rb +276 -27
- data/lib/pulp_python_client/api/repositories_python_api.rb +276 -30
- data/lib/pulp_python_client/api/repositories_python_versions_api.rb +0 -12
- data/lib/pulp_python_client/configuration.rb +2 -2
- data/lib/pulp_python_client/models/my_permissions_response.rb +213 -0
- data/lib/pulp_python_client/models/nested_role.rb +253 -0
- data/lib/pulp_python_client/models/nested_role_response.rb +234 -0
- data/lib/pulp_python_client/models/object_roles_response.rb +213 -0
- data/lib/pulp_python_client/models/package_metadata_response.rb +3 -3
- data/lib/pulp_python_client/models/package_upload_task_response.rb +2 -10
- data/lib/pulp_python_client/models/python_python_package_content.rb +6 -6
- data/lib/pulp_python_client/models/python_python_package_content_response.rb +6 -6
- 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 +6 -9
- data/spec/api/distributions_pypi_api_spec.rb +54 -8
- data/spec/api/publications_pypi_api_spec.rb +54 -4
- data/spec/api/pypi_api_spec.rb +0 -1
- data/spec/api/pypi_legacy_api_spec.rb +0 -1
- data/spec/api/pypi_metadata_api_spec.rb +0 -1
- data/spec/api/pypi_simple_api_spec.rb +0 -3
- data/spec/api/remotes_python_api_spec.rb +54 -9
- data/spec/api/repositories_python_api_spec.rb +54 -10
- data/spec/api/repositories_python_versions_api_spec.rb +0 -4
- data/spec/configuration_spec.rb +3 -3
- data/spec/models/my_permissions_response_spec.rb +41 -0
- data/spec/models/nested_role_response_spec.rb +53 -0
- data/spec/models/nested_role_spec.rb +53 -0
- data/spec/models/object_roles_response_spec.rb +41 -0
- metadata +68 -52
|
@@ -1,15 +1,19 @@
|
|
|
1
1
|
# PulpPythonClient::RepositoriesPythonApi
|
|
2
2
|
|
|
3
|
-
All URIs are relative to *http://
|
|
3
|
+
All URIs are relative to *http://pulp*
|
|
4
4
|
|
|
5
5
|
Method | HTTP request | Description
|
|
6
6
|
------------- | ------------- | -------------
|
|
7
|
+
[**add_role**](RepositoriesPythonApi.md#add_role) | **POST** {python_python_repository_href}add_role/ | Add a role
|
|
7
8
|
[**create**](RepositoriesPythonApi.md#create) | **POST** /pulp/api/v3/repositories/python/python/ | Create a python repository
|
|
8
9
|
[**delete**](RepositoriesPythonApi.md#delete) | **DELETE** {python_python_repository_href} | Delete a python repository
|
|
9
10
|
[**list**](RepositoriesPythonApi.md#list) | **GET** /pulp/api/v3/repositories/python/python/ | List python repositorys
|
|
11
|
+
[**list_roles**](RepositoriesPythonApi.md#list_roles) | **GET** {python_python_repository_href}list_roles/ | List roles
|
|
10
12
|
[**modify**](RepositoriesPythonApi.md#modify) | **POST** {python_python_repository_href}modify/ | Modify Repository Content
|
|
13
|
+
[**my_permissions**](RepositoriesPythonApi.md#my_permissions) | **GET** {python_python_repository_href}my_permissions/ | List user permissions
|
|
11
14
|
[**partial_update**](RepositoriesPythonApi.md#partial_update) | **PATCH** {python_python_repository_href} | Update a python repository
|
|
12
15
|
[**read**](RepositoriesPythonApi.md#read) | **GET** {python_python_repository_href} | Inspect a python repository
|
|
16
|
+
[**remove_role**](RepositoriesPythonApi.md#remove_role) | **POST** {python_python_repository_href}remove_role/ | Remove a role
|
|
13
17
|
[**set_label**](RepositoriesPythonApi.md#set_label) | **POST** {python_python_repository_href}set_label/ | Set a label
|
|
14
18
|
[**sync**](RepositoriesPythonApi.md#sync) | **POST** {python_python_repository_href}sync/ | Sync from remote
|
|
15
19
|
[**unset_label**](RepositoriesPythonApi.md#unset_label) | **POST** {python_python_repository_href}unset_label/ | Unset a label
|
|
@@ -17,9 +21,64 @@ Method | HTTP request | Description
|
|
|
17
21
|
|
|
18
22
|
|
|
19
23
|
|
|
24
|
+
## add_role
|
|
25
|
+
|
|
26
|
+
> NestedRoleResponse add_role(python_python_repository_href, nested_role)
|
|
27
|
+
|
|
28
|
+
Add a role
|
|
29
|
+
|
|
30
|
+
Add a role for this object to users/groups.
|
|
31
|
+
|
|
32
|
+
### Example
|
|
33
|
+
|
|
34
|
+
```ruby
|
|
35
|
+
# load the gem
|
|
36
|
+
require 'pulp_python_client'
|
|
37
|
+
# setup authorization
|
|
38
|
+
PulpPythonClient.configure do |config|
|
|
39
|
+
# Configure HTTP basic authorization: basicAuth
|
|
40
|
+
config.username = 'YOUR USERNAME'
|
|
41
|
+
config.password = 'YOUR PASSWORD'
|
|
42
|
+
end
|
|
43
|
+
|
|
44
|
+
api_instance = PulpPythonClient::RepositoriesPythonApi.new
|
|
45
|
+
python_python_repository_href = 'python_python_repository_href_example' # String |
|
|
46
|
+
nested_role = PulpPythonClient::NestedRole.new # NestedRole |
|
|
47
|
+
|
|
48
|
+
begin
|
|
49
|
+
#Add a role
|
|
50
|
+
result = api_instance.add_role(python_python_repository_href, nested_role)
|
|
51
|
+
p result
|
|
52
|
+
rescue PulpPythonClient::ApiError => e
|
|
53
|
+
puts "Exception when calling RepositoriesPythonApi->add_role: #{e}"
|
|
54
|
+
end
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
### Parameters
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
Name | Type | Description | Notes
|
|
61
|
+
------------- | ------------- | ------------- | -------------
|
|
62
|
+
**python_python_repository_href** | **String**| |
|
|
63
|
+
**nested_role** | [**NestedRole**](NestedRole.md)| |
|
|
64
|
+
|
|
65
|
+
### Return type
|
|
66
|
+
|
|
67
|
+
[**NestedRoleResponse**](NestedRoleResponse.md)
|
|
68
|
+
|
|
69
|
+
### Authorization
|
|
70
|
+
|
|
71
|
+
[basicAuth](../README.md#basicAuth)
|
|
72
|
+
|
|
73
|
+
### HTTP request headers
|
|
74
|
+
|
|
75
|
+
- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
|
|
76
|
+
- **Accept**: application/json
|
|
77
|
+
|
|
78
|
+
|
|
20
79
|
## create
|
|
21
80
|
|
|
22
|
-
> PythonPythonRepositoryResponse create(python_python_repository
|
|
81
|
+
> PythonPythonRepositoryResponse create(python_python_repository)
|
|
23
82
|
|
|
24
83
|
Create a python repository
|
|
25
84
|
|
|
@@ -39,13 +98,10 @@ end
|
|
|
39
98
|
|
|
40
99
|
api_instance = PulpPythonClient::RepositoriesPythonApi.new
|
|
41
100
|
python_python_repository = PulpPythonClient::PythonPythonRepository.new # PythonPythonRepository |
|
|
42
|
-
opts = {
|
|
43
|
-
x_task_diagnostics: ['x_task_diagnostics_example'] # Array<String> | List of profilers to use on tasks.
|
|
44
|
-
}
|
|
45
101
|
|
|
46
102
|
begin
|
|
47
103
|
#Create a python repository
|
|
48
|
-
result = api_instance.create(python_python_repository
|
|
104
|
+
result = api_instance.create(python_python_repository)
|
|
49
105
|
p result
|
|
50
106
|
rescue PulpPythonClient::ApiError => e
|
|
51
107
|
puts "Exception when calling RepositoriesPythonApi->create: #{e}"
|
|
@@ -58,7 +114,6 @@ end
|
|
|
58
114
|
Name | Type | Description | Notes
|
|
59
115
|
------------- | ------------- | ------------- | -------------
|
|
60
116
|
**python_python_repository** | [**PythonPythonRepository**](PythonPythonRepository.md)| |
|
|
61
|
-
**x_task_diagnostics** | [**Array<String>**](String.md)| List of profilers to use on tasks. | [optional]
|
|
62
117
|
|
|
63
118
|
### Return type
|
|
64
119
|
|
|
@@ -76,7 +131,7 @@ Name | Type | Description | Notes
|
|
|
76
131
|
|
|
77
132
|
## delete
|
|
78
133
|
|
|
79
|
-
> AsyncOperationResponse delete(python_python_repository_href
|
|
134
|
+
> AsyncOperationResponse delete(python_python_repository_href)
|
|
80
135
|
|
|
81
136
|
Delete a python repository
|
|
82
137
|
|
|
@@ -96,13 +151,10 @@ end
|
|
|
96
151
|
|
|
97
152
|
api_instance = PulpPythonClient::RepositoriesPythonApi.new
|
|
98
153
|
python_python_repository_href = 'python_python_repository_href_example' # String |
|
|
99
|
-
opts = {
|
|
100
|
-
x_task_diagnostics: ['x_task_diagnostics_example'] # Array<String> | List of profilers to use on tasks.
|
|
101
|
-
}
|
|
102
154
|
|
|
103
155
|
begin
|
|
104
156
|
#Delete a python repository
|
|
105
|
-
result = api_instance.delete(python_python_repository_href
|
|
157
|
+
result = api_instance.delete(python_python_repository_href)
|
|
106
158
|
p result
|
|
107
159
|
rescue PulpPythonClient::ApiError => e
|
|
108
160
|
puts "Exception when calling RepositoriesPythonApi->delete: #{e}"
|
|
@@ -115,7 +167,6 @@ end
|
|
|
115
167
|
Name | Type | Description | Notes
|
|
116
168
|
------------- | ------------- | ------------- | -------------
|
|
117
169
|
**python_python_repository_href** | **String**| |
|
|
118
|
-
**x_task_diagnostics** | [**Array<String>**](String.md)| List of profilers to use on tasks. | [optional]
|
|
119
170
|
|
|
120
171
|
### Return type
|
|
121
172
|
|
|
@@ -153,7 +204,6 @@ end
|
|
|
153
204
|
|
|
154
205
|
api_instance = PulpPythonClient::RepositoriesPythonApi.new
|
|
155
206
|
opts = {
|
|
156
|
-
x_task_diagnostics: ['x_task_diagnostics_example'], # Array<String> | List of profilers to use on tasks.
|
|
157
207
|
latest_with_content: 'latest_with_content_example', # String | Content Unit referenced by HREF
|
|
158
208
|
limit: 56, # Integer | Number of results to return per page.
|
|
159
209
|
name: 'name_example', # String | Filter results where name matches value
|
|
@@ -199,7 +249,6 @@ end
|
|
|
199
249
|
|
|
200
250
|
Name | Type | Description | Notes
|
|
201
251
|
------------- | ------------- | ------------- | -------------
|
|
202
|
-
**x_task_diagnostics** | [**Array<String>**](String.md)| List of profilers to use on tasks. | [optional]
|
|
203
252
|
**latest_with_content** | **String**| Content Unit referenced by HREF | [optional]
|
|
204
253
|
**limit** | **Integer**| Number of results to return per page. | [optional]
|
|
205
254
|
**name** | **String**| Filter results where name matches value | [optional]
|
|
@@ -244,9 +293,68 @@ Name | Type | Description | Notes
|
|
|
244
293
|
- **Accept**: application/json
|
|
245
294
|
|
|
246
295
|
|
|
296
|
+
## list_roles
|
|
297
|
+
|
|
298
|
+
> ObjectRolesResponse list_roles(python_python_repository_href, opts)
|
|
299
|
+
|
|
300
|
+
List roles
|
|
301
|
+
|
|
302
|
+
List roles assigned to this object.
|
|
303
|
+
|
|
304
|
+
### Example
|
|
305
|
+
|
|
306
|
+
```ruby
|
|
307
|
+
# load the gem
|
|
308
|
+
require 'pulp_python_client'
|
|
309
|
+
# setup authorization
|
|
310
|
+
PulpPythonClient.configure do |config|
|
|
311
|
+
# Configure HTTP basic authorization: basicAuth
|
|
312
|
+
config.username = 'YOUR USERNAME'
|
|
313
|
+
config.password = 'YOUR PASSWORD'
|
|
314
|
+
end
|
|
315
|
+
|
|
316
|
+
api_instance = PulpPythonClient::RepositoriesPythonApi.new
|
|
317
|
+
python_python_repository_href = 'python_python_repository_href_example' # String |
|
|
318
|
+
opts = {
|
|
319
|
+
fields: ['fields_example'], # Array<String> | A list of fields to include in the response.
|
|
320
|
+
exclude_fields: ['exclude_fields_example'] # Array<String> | A list of fields to exclude from the response.
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
begin
|
|
324
|
+
#List roles
|
|
325
|
+
result = api_instance.list_roles(python_python_repository_href, opts)
|
|
326
|
+
p result
|
|
327
|
+
rescue PulpPythonClient::ApiError => e
|
|
328
|
+
puts "Exception when calling RepositoriesPythonApi->list_roles: #{e}"
|
|
329
|
+
end
|
|
330
|
+
```
|
|
331
|
+
|
|
332
|
+
### Parameters
|
|
333
|
+
|
|
334
|
+
|
|
335
|
+
Name | Type | Description | Notes
|
|
336
|
+
------------- | ------------- | ------------- | -------------
|
|
337
|
+
**python_python_repository_href** | **String**| |
|
|
338
|
+
**fields** | [**Array<String>**](String.md)| A list of fields to include in the response. | [optional]
|
|
339
|
+
**exclude_fields** | [**Array<String>**](String.md)| A list of fields to exclude from the response. | [optional]
|
|
340
|
+
|
|
341
|
+
### Return type
|
|
342
|
+
|
|
343
|
+
[**ObjectRolesResponse**](ObjectRolesResponse.md)
|
|
344
|
+
|
|
345
|
+
### Authorization
|
|
346
|
+
|
|
347
|
+
[basicAuth](../README.md#basicAuth)
|
|
348
|
+
|
|
349
|
+
### HTTP request headers
|
|
350
|
+
|
|
351
|
+
- **Content-Type**: Not defined
|
|
352
|
+
- **Accept**: application/json
|
|
353
|
+
|
|
354
|
+
|
|
247
355
|
## modify
|
|
248
356
|
|
|
249
|
-
> AsyncOperationResponse modify(python_python_repository_href, repository_add_remove_content
|
|
357
|
+
> AsyncOperationResponse modify(python_python_repository_href, repository_add_remove_content)
|
|
250
358
|
|
|
251
359
|
Modify Repository Content
|
|
252
360
|
|
|
@@ -267,13 +375,10 @@ end
|
|
|
267
375
|
api_instance = PulpPythonClient::RepositoriesPythonApi.new
|
|
268
376
|
python_python_repository_href = 'python_python_repository_href_example' # String |
|
|
269
377
|
repository_add_remove_content = PulpPythonClient::RepositoryAddRemoveContent.new # RepositoryAddRemoveContent |
|
|
270
|
-
opts = {
|
|
271
|
-
x_task_diagnostics: ['x_task_diagnostics_example'] # Array<String> | List of profilers to use on tasks.
|
|
272
|
-
}
|
|
273
378
|
|
|
274
379
|
begin
|
|
275
380
|
#Modify Repository Content
|
|
276
|
-
result = api_instance.modify(python_python_repository_href, repository_add_remove_content
|
|
381
|
+
result = api_instance.modify(python_python_repository_href, repository_add_remove_content)
|
|
277
382
|
p result
|
|
278
383
|
rescue PulpPythonClient::ApiError => e
|
|
279
384
|
puts "Exception when calling RepositoriesPythonApi->modify: #{e}"
|
|
@@ -287,7 +392,6 @@ Name | Type | Description | Notes
|
|
|
287
392
|
------------- | ------------- | ------------- | -------------
|
|
288
393
|
**python_python_repository_href** | **String**| |
|
|
289
394
|
**repository_add_remove_content** | [**RepositoryAddRemoveContent**](RepositoryAddRemoveContent.md)| |
|
|
290
|
-
**x_task_diagnostics** | [**Array<String>**](String.md)| List of profilers to use on tasks. | [optional]
|
|
291
395
|
|
|
292
396
|
### Return type
|
|
293
397
|
|
|
@@ -303,9 +407,68 @@ Name | Type | Description | Notes
|
|
|
303
407
|
- **Accept**: application/json
|
|
304
408
|
|
|
305
409
|
|
|
410
|
+
## my_permissions
|
|
411
|
+
|
|
412
|
+
> MyPermissionsResponse my_permissions(python_python_repository_href, opts)
|
|
413
|
+
|
|
414
|
+
List user permissions
|
|
415
|
+
|
|
416
|
+
List permissions available to the current user on this object.
|
|
417
|
+
|
|
418
|
+
### Example
|
|
419
|
+
|
|
420
|
+
```ruby
|
|
421
|
+
# load the gem
|
|
422
|
+
require 'pulp_python_client'
|
|
423
|
+
# setup authorization
|
|
424
|
+
PulpPythonClient.configure do |config|
|
|
425
|
+
# Configure HTTP basic authorization: basicAuth
|
|
426
|
+
config.username = 'YOUR USERNAME'
|
|
427
|
+
config.password = 'YOUR PASSWORD'
|
|
428
|
+
end
|
|
429
|
+
|
|
430
|
+
api_instance = PulpPythonClient::RepositoriesPythonApi.new
|
|
431
|
+
python_python_repository_href = 'python_python_repository_href_example' # String |
|
|
432
|
+
opts = {
|
|
433
|
+
fields: ['fields_example'], # Array<String> | A list of fields to include in the response.
|
|
434
|
+
exclude_fields: ['exclude_fields_example'] # Array<String> | A list of fields to exclude from the response.
|
|
435
|
+
}
|
|
436
|
+
|
|
437
|
+
begin
|
|
438
|
+
#List user permissions
|
|
439
|
+
result = api_instance.my_permissions(python_python_repository_href, opts)
|
|
440
|
+
p result
|
|
441
|
+
rescue PulpPythonClient::ApiError => e
|
|
442
|
+
puts "Exception when calling RepositoriesPythonApi->my_permissions: #{e}"
|
|
443
|
+
end
|
|
444
|
+
```
|
|
445
|
+
|
|
446
|
+
### Parameters
|
|
447
|
+
|
|
448
|
+
|
|
449
|
+
Name | Type | Description | Notes
|
|
450
|
+
------------- | ------------- | ------------- | -------------
|
|
451
|
+
**python_python_repository_href** | **String**| |
|
|
452
|
+
**fields** | [**Array<String>**](String.md)| A list of fields to include in the response. | [optional]
|
|
453
|
+
**exclude_fields** | [**Array<String>**](String.md)| A list of fields to exclude from the response. | [optional]
|
|
454
|
+
|
|
455
|
+
### Return type
|
|
456
|
+
|
|
457
|
+
[**MyPermissionsResponse**](MyPermissionsResponse.md)
|
|
458
|
+
|
|
459
|
+
### Authorization
|
|
460
|
+
|
|
461
|
+
[basicAuth](../README.md#basicAuth)
|
|
462
|
+
|
|
463
|
+
### HTTP request headers
|
|
464
|
+
|
|
465
|
+
- **Content-Type**: Not defined
|
|
466
|
+
- **Accept**: application/json
|
|
467
|
+
|
|
468
|
+
|
|
306
469
|
## partial_update
|
|
307
470
|
|
|
308
|
-
> AsyncOperationResponse partial_update(python_python_repository_href, patchedpython_python_repository
|
|
471
|
+
> AsyncOperationResponse partial_update(python_python_repository_href, patchedpython_python_repository)
|
|
309
472
|
|
|
310
473
|
Update a python repository
|
|
311
474
|
|
|
@@ -326,13 +489,10 @@ end
|
|
|
326
489
|
api_instance = PulpPythonClient::RepositoriesPythonApi.new
|
|
327
490
|
python_python_repository_href = 'python_python_repository_href_example' # String |
|
|
328
491
|
patchedpython_python_repository = PulpPythonClient::PatchedpythonPythonRepository.new # PatchedpythonPythonRepository |
|
|
329
|
-
opts = {
|
|
330
|
-
x_task_diagnostics: ['x_task_diagnostics_example'] # Array<String> | List of profilers to use on tasks.
|
|
331
|
-
}
|
|
332
492
|
|
|
333
493
|
begin
|
|
334
494
|
#Update a python repository
|
|
335
|
-
result = api_instance.partial_update(python_python_repository_href, patchedpython_python_repository
|
|
495
|
+
result = api_instance.partial_update(python_python_repository_href, patchedpython_python_repository)
|
|
336
496
|
p result
|
|
337
497
|
rescue PulpPythonClient::ApiError => e
|
|
338
498
|
puts "Exception when calling RepositoriesPythonApi->partial_update: #{e}"
|
|
@@ -346,7 +506,6 @@ Name | Type | Description | Notes
|
|
|
346
506
|
------------- | ------------- | ------------- | -------------
|
|
347
507
|
**python_python_repository_href** | **String**| |
|
|
348
508
|
**patchedpython_python_repository** | [**PatchedpythonPythonRepository**](PatchedpythonPythonRepository.md)| |
|
|
349
|
-
**x_task_diagnostics** | [**Array<String>**](String.md)| List of profilers to use on tasks. | [optional]
|
|
350
509
|
|
|
351
510
|
### Return type
|
|
352
511
|
|
|
@@ -385,7 +544,6 @@ end
|
|
|
385
544
|
api_instance = PulpPythonClient::RepositoriesPythonApi.new
|
|
386
545
|
python_python_repository_href = 'python_python_repository_href_example' # String |
|
|
387
546
|
opts = {
|
|
388
|
-
x_task_diagnostics: ['x_task_diagnostics_example'], # Array<String> | List of profilers to use on tasks.
|
|
389
547
|
fields: ['fields_example'], # Array<String> | A list of fields to include in the response.
|
|
390
548
|
exclude_fields: ['exclude_fields_example'] # Array<String> | A list of fields to exclude from the response.
|
|
391
549
|
}
|
|
@@ -405,7 +563,6 @@ end
|
|
|
405
563
|
Name | Type | Description | Notes
|
|
406
564
|
------------- | ------------- | ------------- | -------------
|
|
407
565
|
**python_python_repository_href** | **String**| |
|
|
408
|
-
**x_task_diagnostics** | [**Array<String>**](String.md)| List of profilers to use on tasks. | [optional]
|
|
409
566
|
**fields** | [**Array<String>**](String.md)| A list of fields to include in the response. | [optional]
|
|
410
567
|
**exclude_fields** | [**Array<String>**](String.md)| A list of fields to exclude from the response. | [optional]
|
|
411
568
|
|
|
@@ -423,9 +580,64 @@ Name | Type | Description | Notes
|
|
|
423
580
|
- **Accept**: application/json
|
|
424
581
|
|
|
425
582
|
|
|
583
|
+
## remove_role
|
|
584
|
+
|
|
585
|
+
> NestedRoleResponse remove_role(python_python_repository_href, nested_role)
|
|
586
|
+
|
|
587
|
+
Remove a role
|
|
588
|
+
|
|
589
|
+
Remove a role for this object from users/groups.
|
|
590
|
+
|
|
591
|
+
### Example
|
|
592
|
+
|
|
593
|
+
```ruby
|
|
594
|
+
# load the gem
|
|
595
|
+
require 'pulp_python_client'
|
|
596
|
+
# setup authorization
|
|
597
|
+
PulpPythonClient.configure do |config|
|
|
598
|
+
# Configure HTTP basic authorization: basicAuth
|
|
599
|
+
config.username = 'YOUR USERNAME'
|
|
600
|
+
config.password = 'YOUR PASSWORD'
|
|
601
|
+
end
|
|
602
|
+
|
|
603
|
+
api_instance = PulpPythonClient::RepositoriesPythonApi.new
|
|
604
|
+
python_python_repository_href = 'python_python_repository_href_example' # String |
|
|
605
|
+
nested_role = PulpPythonClient::NestedRole.new # NestedRole |
|
|
606
|
+
|
|
607
|
+
begin
|
|
608
|
+
#Remove a role
|
|
609
|
+
result = api_instance.remove_role(python_python_repository_href, nested_role)
|
|
610
|
+
p result
|
|
611
|
+
rescue PulpPythonClient::ApiError => e
|
|
612
|
+
puts "Exception when calling RepositoriesPythonApi->remove_role: #{e}"
|
|
613
|
+
end
|
|
614
|
+
```
|
|
615
|
+
|
|
616
|
+
### Parameters
|
|
617
|
+
|
|
618
|
+
|
|
619
|
+
Name | Type | Description | Notes
|
|
620
|
+
------------- | ------------- | ------------- | -------------
|
|
621
|
+
**python_python_repository_href** | **String**| |
|
|
622
|
+
**nested_role** | [**NestedRole**](NestedRole.md)| |
|
|
623
|
+
|
|
624
|
+
### Return type
|
|
625
|
+
|
|
626
|
+
[**NestedRoleResponse**](NestedRoleResponse.md)
|
|
627
|
+
|
|
628
|
+
### Authorization
|
|
629
|
+
|
|
630
|
+
[basicAuth](../README.md#basicAuth)
|
|
631
|
+
|
|
632
|
+
### HTTP request headers
|
|
633
|
+
|
|
634
|
+
- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
|
|
635
|
+
- **Accept**: application/json
|
|
636
|
+
|
|
637
|
+
|
|
426
638
|
## set_label
|
|
427
639
|
|
|
428
|
-
> SetLabelResponse set_label(python_python_repository_href, set_label
|
|
640
|
+
> SetLabelResponse set_label(python_python_repository_href, set_label)
|
|
429
641
|
|
|
430
642
|
Set a label
|
|
431
643
|
|
|
@@ -446,13 +658,10 @@ end
|
|
|
446
658
|
api_instance = PulpPythonClient::RepositoriesPythonApi.new
|
|
447
659
|
python_python_repository_href = 'python_python_repository_href_example' # String |
|
|
448
660
|
set_label = PulpPythonClient::SetLabel.new # SetLabel |
|
|
449
|
-
opts = {
|
|
450
|
-
x_task_diagnostics: ['x_task_diagnostics_example'] # Array<String> | List of profilers to use on tasks.
|
|
451
|
-
}
|
|
452
661
|
|
|
453
662
|
begin
|
|
454
663
|
#Set a label
|
|
455
|
-
result = api_instance.set_label(python_python_repository_href, set_label
|
|
664
|
+
result = api_instance.set_label(python_python_repository_href, set_label)
|
|
456
665
|
p result
|
|
457
666
|
rescue PulpPythonClient::ApiError => e
|
|
458
667
|
puts "Exception when calling RepositoriesPythonApi->set_label: #{e}"
|
|
@@ -466,7 +675,6 @@ Name | Type | Description | Notes
|
|
|
466
675
|
------------- | ------------- | ------------- | -------------
|
|
467
676
|
**python_python_repository_href** | **String**| |
|
|
468
677
|
**set_label** | [**SetLabel**](SetLabel.md)| |
|
|
469
|
-
**x_task_diagnostics** | [**Array<String>**](String.md)| List of profilers to use on tasks. | [optional]
|
|
470
678
|
|
|
471
679
|
### Return type
|
|
472
680
|
|
|
@@ -484,7 +692,7 @@ Name | Type | Description | Notes
|
|
|
484
692
|
|
|
485
693
|
## sync
|
|
486
694
|
|
|
487
|
-
> AsyncOperationResponse sync(python_python_repository_href, repository_sync_url
|
|
695
|
+
> AsyncOperationResponse sync(python_python_repository_href, repository_sync_url)
|
|
488
696
|
|
|
489
697
|
Sync from remote
|
|
490
698
|
|
|
@@ -505,13 +713,10 @@ end
|
|
|
505
713
|
api_instance = PulpPythonClient::RepositoriesPythonApi.new
|
|
506
714
|
python_python_repository_href = 'python_python_repository_href_example' # String |
|
|
507
715
|
repository_sync_url = PulpPythonClient::RepositorySyncURL.new # RepositorySyncURL |
|
|
508
|
-
opts = {
|
|
509
|
-
x_task_diagnostics: ['x_task_diagnostics_example'] # Array<String> | List of profilers to use on tasks.
|
|
510
|
-
}
|
|
511
716
|
|
|
512
717
|
begin
|
|
513
718
|
#Sync from remote
|
|
514
|
-
result = api_instance.sync(python_python_repository_href, repository_sync_url
|
|
719
|
+
result = api_instance.sync(python_python_repository_href, repository_sync_url)
|
|
515
720
|
p result
|
|
516
721
|
rescue PulpPythonClient::ApiError => e
|
|
517
722
|
puts "Exception when calling RepositoriesPythonApi->sync: #{e}"
|
|
@@ -525,7 +730,6 @@ Name | Type | Description | Notes
|
|
|
525
730
|
------------- | ------------- | ------------- | -------------
|
|
526
731
|
**python_python_repository_href** | **String**| |
|
|
527
732
|
**repository_sync_url** | [**RepositorySyncURL**](RepositorySyncURL.md)| |
|
|
528
|
-
**x_task_diagnostics** | [**Array<String>**](String.md)| List of profilers to use on tasks. | [optional]
|
|
529
733
|
|
|
530
734
|
### Return type
|
|
531
735
|
|
|
@@ -543,7 +747,7 @@ Name | Type | Description | Notes
|
|
|
543
747
|
|
|
544
748
|
## unset_label
|
|
545
749
|
|
|
546
|
-
> UnsetLabelResponse unset_label(python_python_repository_href, unset_label
|
|
750
|
+
> UnsetLabelResponse unset_label(python_python_repository_href, unset_label)
|
|
547
751
|
|
|
548
752
|
Unset a label
|
|
549
753
|
|
|
@@ -564,13 +768,10 @@ end
|
|
|
564
768
|
api_instance = PulpPythonClient::RepositoriesPythonApi.new
|
|
565
769
|
python_python_repository_href = 'python_python_repository_href_example' # String |
|
|
566
770
|
unset_label = PulpPythonClient::UnsetLabel.new # UnsetLabel |
|
|
567
|
-
opts = {
|
|
568
|
-
x_task_diagnostics: ['x_task_diagnostics_example'] # Array<String> | List of profilers to use on tasks.
|
|
569
|
-
}
|
|
570
771
|
|
|
571
772
|
begin
|
|
572
773
|
#Unset a label
|
|
573
|
-
result = api_instance.unset_label(python_python_repository_href, unset_label
|
|
774
|
+
result = api_instance.unset_label(python_python_repository_href, unset_label)
|
|
574
775
|
p result
|
|
575
776
|
rescue PulpPythonClient::ApiError => e
|
|
576
777
|
puts "Exception when calling RepositoriesPythonApi->unset_label: #{e}"
|
|
@@ -584,7 +785,6 @@ Name | Type | Description | Notes
|
|
|
584
785
|
------------- | ------------- | ------------- | -------------
|
|
585
786
|
**python_python_repository_href** | **String**| |
|
|
586
787
|
**unset_label** | [**UnsetLabel**](UnsetLabel.md)| |
|
|
587
|
-
**x_task_diagnostics** | [**Array<String>**](String.md)| List of profilers to use on tasks. | [optional]
|
|
588
788
|
|
|
589
789
|
### Return type
|
|
590
790
|
|
|
@@ -602,7 +802,7 @@ Name | Type | Description | Notes
|
|
|
602
802
|
|
|
603
803
|
## update
|
|
604
804
|
|
|
605
|
-
> AsyncOperationResponse update(python_python_repository_href, python_python_repository
|
|
805
|
+
> AsyncOperationResponse update(python_python_repository_href, python_python_repository)
|
|
606
806
|
|
|
607
807
|
Update a python repository
|
|
608
808
|
|
|
@@ -623,13 +823,10 @@ end
|
|
|
623
823
|
api_instance = PulpPythonClient::RepositoriesPythonApi.new
|
|
624
824
|
python_python_repository_href = 'python_python_repository_href_example' # String |
|
|
625
825
|
python_python_repository = PulpPythonClient::PythonPythonRepository.new # PythonPythonRepository |
|
|
626
|
-
opts = {
|
|
627
|
-
x_task_diagnostics: ['x_task_diagnostics_example'] # Array<String> | List of profilers to use on tasks.
|
|
628
|
-
}
|
|
629
826
|
|
|
630
827
|
begin
|
|
631
828
|
#Update a python repository
|
|
632
|
-
result = api_instance.update(python_python_repository_href, python_python_repository
|
|
829
|
+
result = api_instance.update(python_python_repository_href, python_python_repository)
|
|
633
830
|
p result
|
|
634
831
|
rescue PulpPythonClient::ApiError => e
|
|
635
832
|
puts "Exception when calling RepositoriesPythonApi->update: #{e}"
|
|
@@ -643,7 +840,6 @@ Name | Type | Description | Notes
|
|
|
643
840
|
------------- | ------------- | ------------- | -------------
|
|
644
841
|
**python_python_repository_href** | **String**| |
|
|
645
842
|
**python_python_repository** | [**PythonPythonRepository**](PythonPythonRepository.md)| |
|
|
646
|
-
**x_task_diagnostics** | [**Array<String>**](String.md)| List of profilers to use on tasks. | [optional]
|
|
647
843
|
|
|
648
844
|
### Return type
|
|
649
845
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# PulpPythonClient::RepositoriesPythonVersionsApi
|
|
2
2
|
|
|
3
|
-
All URIs are relative to *http://
|
|
3
|
+
All URIs are relative to *http://pulp*
|
|
4
4
|
|
|
5
5
|
Method | HTTP request | Description
|
|
6
6
|
------------- | ------------- | -------------
|
|
@@ -13,7 +13,7 @@ Method | HTTP request | Description
|
|
|
13
13
|
|
|
14
14
|
## delete
|
|
15
15
|
|
|
16
|
-
> AsyncOperationResponse delete(python_python_repository_version_href
|
|
16
|
+
> AsyncOperationResponse delete(python_python_repository_version_href)
|
|
17
17
|
|
|
18
18
|
Delete a repository version
|
|
19
19
|
|
|
@@ -33,13 +33,10 @@ end
|
|
|
33
33
|
|
|
34
34
|
api_instance = PulpPythonClient::RepositoriesPythonVersionsApi.new
|
|
35
35
|
python_python_repository_version_href = 'python_python_repository_version_href_example' # String |
|
|
36
|
-
opts = {
|
|
37
|
-
x_task_diagnostics: ['x_task_diagnostics_example'] # Array<String> | List of profilers to use on tasks.
|
|
38
|
-
}
|
|
39
36
|
|
|
40
37
|
begin
|
|
41
38
|
#Delete a repository version
|
|
42
|
-
result = api_instance.delete(python_python_repository_version_href
|
|
39
|
+
result = api_instance.delete(python_python_repository_version_href)
|
|
43
40
|
p result
|
|
44
41
|
rescue PulpPythonClient::ApiError => e
|
|
45
42
|
puts "Exception when calling RepositoriesPythonVersionsApi->delete: #{e}"
|
|
@@ -52,7 +49,6 @@ end
|
|
|
52
49
|
Name | Type | Description | Notes
|
|
53
50
|
------------- | ------------- | ------------- | -------------
|
|
54
51
|
**python_python_repository_version_href** | **String**| |
|
|
55
|
-
**x_task_diagnostics** | [**Array<String>**](String.md)| List of profilers to use on tasks. | [optional]
|
|
56
52
|
|
|
57
53
|
### Return type
|
|
58
54
|
|
|
@@ -91,7 +87,6 @@ end
|
|
|
91
87
|
api_instance = PulpPythonClient::RepositoriesPythonVersionsApi.new
|
|
92
88
|
python_python_repository_href = 'python_python_repository_href_example' # String |
|
|
93
89
|
opts = {
|
|
94
|
-
x_task_diagnostics: ['x_task_diagnostics_example'], # Array<String> | List of profilers to use on tasks.
|
|
95
90
|
content: 'content_example', # String | Content Unit referenced by HREF
|
|
96
91
|
content__in: 'content__in_example', # String | Content Unit referenced by HREF
|
|
97
92
|
limit: 56, # Integer | Number of results to return per page.
|
|
@@ -130,7 +125,6 @@ end
|
|
|
130
125
|
Name | Type | Description | Notes
|
|
131
126
|
------------- | ------------- | ------------- | -------------
|
|
132
127
|
**python_python_repository_href** | **String**| |
|
|
133
|
-
**x_task_diagnostics** | [**Array<String>**](String.md)| List of profilers to use on tasks. | [optional]
|
|
134
128
|
**content** | **String**| Content Unit referenced by HREF | [optional]
|
|
135
129
|
**content__in** | **String**| Content Unit referenced by HREF | [optional]
|
|
136
130
|
**limit** | **Integer**| Number of results to return per page. | [optional]
|
|
@@ -190,7 +184,6 @@ end
|
|
|
190
184
|
api_instance = PulpPythonClient::RepositoriesPythonVersionsApi.new
|
|
191
185
|
python_python_repository_version_href = 'python_python_repository_version_href_example' # String |
|
|
192
186
|
opts = {
|
|
193
|
-
x_task_diagnostics: ['x_task_diagnostics_example'], # Array<String> | List of profilers to use on tasks.
|
|
194
187
|
fields: ['fields_example'], # Array<String> | A list of fields to include in the response.
|
|
195
188
|
exclude_fields: ['exclude_fields_example'] # Array<String> | A list of fields to exclude from the response.
|
|
196
189
|
}
|
|
@@ -210,7 +203,6 @@ end
|
|
|
210
203
|
Name | Type | Description | Notes
|
|
211
204
|
------------- | ------------- | ------------- | -------------
|
|
212
205
|
**python_python_repository_version_href** | **String**| |
|
|
213
|
-
**x_task_diagnostics** | [**Array<String>**](String.md)| List of profilers to use on tasks. | [optional]
|
|
214
206
|
**fields** | [**Array<String>**](String.md)| A list of fields to include in the response. | [optional]
|
|
215
207
|
**exclude_fields** | [**Array<String>**](String.md)| A list of fields to exclude from the response. | [optional]
|
|
216
208
|
|
|
@@ -230,7 +222,7 @@ Name | Type | Description | Notes
|
|
|
230
222
|
|
|
231
223
|
## repair
|
|
232
224
|
|
|
233
|
-
> AsyncOperationResponse repair(python_python_repository_version_href, repair
|
|
225
|
+
> AsyncOperationResponse repair(python_python_repository_version_href, repair)
|
|
234
226
|
|
|
235
227
|
|
|
236
228
|
|
|
@@ -251,12 +243,9 @@ end
|
|
|
251
243
|
api_instance = PulpPythonClient::RepositoriesPythonVersionsApi.new
|
|
252
244
|
python_python_repository_version_href = 'python_python_repository_version_href_example' # String |
|
|
253
245
|
repair = PulpPythonClient::Repair.new # Repair |
|
|
254
|
-
opts = {
|
|
255
|
-
x_task_diagnostics: ['x_task_diagnostics_example'] # Array<String> | List of profilers to use on tasks.
|
|
256
|
-
}
|
|
257
246
|
|
|
258
247
|
begin
|
|
259
|
-
result = api_instance.repair(python_python_repository_version_href, repair
|
|
248
|
+
result = api_instance.repair(python_python_repository_version_href, repair)
|
|
260
249
|
p result
|
|
261
250
|
rescue PulpPythonClient::ApiError => e
|
|
262
251
|
puts "Exception when calling RepositoriesPythonVersionsApi->repair: #{e}"
|
|
@@ -270,7 +259,6 @@ Name | Type | Description | Notes
|
|
|
270
259
|
------------- | ------------- | ------------- | -------------
|
|
271
260
|
**python_python_repository_version_href** | **String**| |
|
|
272
261
|
**repair** | [**Repair**](Repair.md)| |
|
|
273
|
-
**x_task_diagnostics** | [**Array<String>**](String.md)| List of profilers to use on tasks. | [optional]
|
|
274
262
|
|
|
275
263
|
### Return type
|
|
276
264
|
|