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
data/docs/RemotesPythonApi.md
CHANGED
|
@@ -1,24 +1,83 @@
|
|
|
1
1
|
# PulpPythonClient::RemotesPythonApi
|
|
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**](RemotesPythonApi.md#add_role) | **POST** {python_python_remote_href}add_role/ | Add a role
|
|
7
8
|
[**create**](RemotesPythonApi.md#create) | **POST** /pulp/api/v3/remotes/python/python/ | Create a python remote
|
|
8
9
|
[**delete**](RemotesPythonApi.md#delete) | **DELETE** {python_python_remote_href} | Delete a python remote
|
|
9
10
|
[**from_bandersnatch**](RemotesPythonApi.md#from_bandersnatch) | **POST** /pulp/api/v3/remotes/python/python/from_bandersnatch/ | Create from Bandersnatch
|
|
10
11
|
[**list**](RemotesPythonApi.md#list) | **GET** /pulp/api/v3/remotes/python/python/ | List python remotes
|
|
12
|
+
[**list_roles**](RemotesPythonApi.md#list_roles) | **GET** {python_python_remote_href}list_roles/ | List roles
|
|
13
|
+
[**my_permissions**](RemotesPythonApi.md#my_permissions) | **GET** {python_python_remote_href}my_permissions/ | List user permissions
|
|
11
14
|
[**partial_update**](RemotesPythonApi.md#partial_update) | **PATCH** {python_python_remote_href} | Update a python remote
|
|
12
15
|
[**read**](RemotesPythonApi.md#read) | **GET** {python_python_remote_href} | Inspect a python remote
|
|
16
|
+
[**remove_role**](RemotesPythonApi.md#remove_role) | **POST** {python_python_remote_href}remove_role/ | Remove a role
|
|
13
17
|
[**set_label**](RemotesPythonApi.md#set_label) | **POST** {python_python_remote_href}set_label/ | Set a label
|
|
14
18
|
[**unset_label**](RemotesPythonApi.md#unset_label) | **POST** {python_python_remote_href}unset_label/ | Unset a label
|
|
15
19
|
[**update**](RemotesPythonApi.md#update) | **PUT** {python_python_remote_href} | Update a python remote
|
|
16
20
|
|
|
17
21
|
|
|
18
22
|
|
|
23
|
+
## add_role
|
|
24
|
+
|
|
25
|
+
> NestedRoleResponse add_role(python_python_remote_href, nested_role)
|
|
26
|
+
|
|
27
|
+
Add a role
|
|
28
|
+
|
|
29
|
+
Add a role for this object to users/groups.
|
|
30
|
+
|
|
31
|
+
### Example
|
|
32
|
+
|
|
33
|
+
```ruby
|
|
34
|
+
# load the gem
|
|
35
|
+
require 'pulp_python_client'
|
|
36
|
+
# setup authorization
|
|
37
|
+
PulpPythonClient.configure do |config|
|
|
38
|
+
# Configure HTTP basic authorization: basicAuth
|
|
39
|
+
config.username = 'YOUR USERNAME'
|
|
40
|
+
config.password = 'YOUR PASSWORD'
|
|
41
|
+
end
|
|
42
|
+
|
|
43
|
+
api_instance = PulpPythonClient::RemotesPythonApi.new
|
|
44
|
+
python_python_remote_href = 'python_python_remote_href_example' # String |
|
|
45
|
+
nested_role = PulpPythonClient::NestedRole.new # NestedRole |
|
|
46
|
+
|
|
47
|
+
begin
|
|
48
|
+
#Add a role
|
|
49
|
+
result = api_instance.add_role(python_python_remote_href, nested_role)
|
|
50
|
+
p result
|
|
51
|
+
rescue PulpPythonClient::ApiError => e
|
|
52
|
+
puts "Exception when calling RemotesPythonApi->add_role: #{e}"
|
|
53
|
+
end
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
### Parameters
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
Name | Type | Description | Notes
|
|
60
|
+
------------- | ------------- | ------------- | -------------
|
|
61
|
+
**python_python_remote_href** | **String**| |
|
|
62
|
+
**nested_role** | [**NestedRole**](NestedRole.md)| |
|
|
63
|
+
|
|
64
|
+
### Return type
|
|
65
|
+
|
|
66
|
+
[**NestedRoleResponse**](NestedRoleResponse.md)
|
|
67
|
+
|
|
68
|
+
### Authorization
|
|
69
|
+
|
|
70
|
+
[basicAuth](../README.md#basicAuth)
|
|
71
|
+
|
|
72
|
+
### HTTP request headers
|
|
73
|
+
|
|
74
|
+
- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
|
|
75
|
+
- **Accept**: application/json
|
|
76
|
+
|
|
77
|
+
|
|
19
78
|
## create
|
|
20
79
|
|
|
21
|
-
> PythonPythonRemoteResponse create(python_python_remote
|
|
80
|
+
> PythonPythonRemoteResponse create(python_python_remote)
|
|
22
81
|
|
|
23
82
|
Create a python remote
|
|
24
83
|
|
|
@@ -38,13 +97,10 @@ end
|
|
|
38
97
|
|
|
39
98
|
api_instance = PulpPythonClient::RemotesPythonApi.new
|
|
40
99
|
python_python_remote = PulpPythonClient::PythonPythonRemote.new # PythonPythonRemote |
|
|
41
|
-
opts = {
|
|
42
|
-
x_task_diagnostics: ['x_task_diagnostics_example'] # Array<String> | List of profilers to use on tasks.
|
|
43
|
-
}
|
|
44
100
|
|
|
45
101
|
begin
|
|
46
102
|
#Create a python remote
|
|
47
|
-
result = api_instance.create(python_python_remote
|
|
103
|
+
result = api_instance.create(python_python_remote)
|
|
48
104
|
p result
|
|
49
105
|
rescue PulpPythonClient::ApiError => e
|
|
50
106
|
puts "Exception when calling RemotesPythonApi->create: #{e}"
|
|
@@ -57,7 +113,6 @@ end
|
|
|
57
113
|
Name | Type | Description | Notes
|
|
58
114
|
------------- | ------------- | ------------- | -------------
|
|
59
115
|
**python_python_remote** | [**PythonPythonRemote**](PythonPythonRemote.md)| |
|
|
60
|
-
**x_task_diagnostics** | [**Array<String>**](String.md)| List of profilers to use on tasks. | [optional]
|
|
61
116
|
|
|
62
117
|
### Return type
|
|
63
118
|
|
|
@@ -75,7 +130,7 @@ Name | Type | Description | Notes
|
|
|
75
130
|
|
|
76
131
|
## delete
|
|
77
132
|
|
|
78
|
-
> AsyncOperationResponse delete(python_python_remote_href
|
|
133
|
+
> AsyncOperationResponse delete(python_python_remote_href)
|
|
79
134
|
|
|
80
135
|
Delete a python remote
|
|
81
136
|
|
|
@@ -95,13 +150,10 @@ end
|
|
|
95
150
|
|
|
96
151
|
api_instance = PulpPythonClient::RemotesPythonApi.new
|
|
97
152
|
python_python_remote_href = 'python_python_remote_href_example' # String |
|
|
98
|
-
opts = {
|
|
99
|
-
x_task_diagnostics: ['x_task_diagnostics_example'] # Array<String> | List of profilers to use on tasks.
|
|
100
|
-
}
|
|
101
153
|
|
|
102
154
|
begin
|
|
103
155
|
#Delete a python remote
|
|
104
|
-
result = api_instance.delete(python_python_remote_href
|
|
156
|
+
result = api_instance.delete(python_python_remote_href)
|
|
105
157
|
p result
|
|
106
158
|
rescue PulpPythonClient::ApiError => e
|
|
107
159
|
puts "Exception when calling RemotesPythonApi->delete: #{e}"
|
|
@@ -114,7 +166,6 @@ end
|
|
|
114
166
|
Name | Type | Description | Notes
|
|
115
167
|
------------- | ------------- | ------------- | -------------
|
|
116
168
|
**python_python_remote_href** | **String**| |
|
|
117
|
-
**x_task_diagnostics** | [**Array<String>**](String.md)| List of profilers to use on tasks. | [optional]
|
|
118
169
|
|
|
119
170
|
### Return type
|
|
120
171
|
|
|
@@ -154,7 +205,6 @@ api_instance = PulpPythonClient::RemotesPythonApi.new
|
|
|
154
205
|
config = File.new('/path/to/file') # File | A Bandersnatch config that may be used to construct a Python Remote.
|
|
155
206
|
name = 'name_example' # String | A unique name for this remote
|
|
156
207
|
opts = {
|
|
157
|
-
x_task_diagnostics: ['x_task_diagnostics_example'], # Array<String> | List of profilers to use on tasks.
|
|
158
208
|
policy: PulpPythonClient::PolicyEnum.new # PolicyEnum | The policy to use when downloading content. The possible values include: 'immediate', 'on_demand', and 'streamed'. 'on_demand' is the default. * `immediate` - When syncing, download all metadata and content now. * `on_demand` - When syncing, download metadata, but do not download content now. Instead, download content as clients request it, and save it in Pulp to be served for future client requests. * `streamed` - When syncing, download metadata, but do not download content now. Instead,download content as clients request it, but never save it in Pulp. This causes future requests for that same content to have to be downloaded again.
|
|
159
209
|
}
|
|
160
210
|
|
|
@@ -174,7 +224,6 @@ Name | Type | Description | Notes
|
|
|
174
224
|
------------- | ------------- | ------------- | -------------
|
|
175
225
|
**config** | **File**| A Bandersnatch config that may be used to construct a Python Remote. |
|
|
176
226
|
**name** | **String**| A unique name for this remote |
|
|
177
|
-
**x_task_diagnostics** | [**Array<String>**](String.md)| List of profilers to use on tasks. | [optional]
|
|
178
227
|
**policy** | [**PolicyEnum**](PolicyEnum.md)| The policy to use when downloading content. The possible values include: 'immediate', 'on_demand', and 'streamed'. 'on_demand' is the default. * `immediate` - When syncing, download all metadata and content now. * `on_demand` - When syncing, download metadata, but do not download content now. Instead, download content as clients request it, and save it in Pulp to be served for future client requests. * `streamed` - When syncing, download metadata, but do not download content now. Instead,download content as clients request it, but never save it in Pulp. This causes future requests for that same content to have to be downloaded again. | [optional]
|
|
179
228
|
|
|
180
229
|
### Return type
|
|
@@ -213,7 +262,6 @@ end
|
|
|
213
262
|
|
|
214
263
|
api_instance = PulpPythonClient::RemotesPythonApi.new
|
|
215
264
|
opts = {
|
|
216
|
-
x_task_diagnostics: ['x_task_diagnostics_example'], # Array<String> | List of profilers to use on tasks.
|
|
217
265
|
limit: 56, # Integer | Number of results to return per page.
|
|
218
266
|
name: 'name_example', # String | Filter results where name matches value
|
|
219
267
|
name__contains: 'name__contains_example', # String | Filter results where name contains value
|
|
@@ -254,7 +302,6 @@ end
|
|
|
254
302
|
|
|
255
303
|
Name | Type | Description | Notes
|
|
256
304
|
------------- | ------------- | ------------- | -------------
|
|
257
|
-
**x_task_diagnostics** | [**Array<String>**](String.md)| List of profilers to use on tasks. | [optional]
|
|
258
305
|
**limit** | **Integer**| Number of results to return per page. | [optional]
|
|
259
306
|
**name** | **String**| Filter results where name matches value | [optional]
|
|
260
307
|
**name__contains** | **String**| Filter results where name contains value | [optional]
|
|
@@ -294,9 +341,127 @@ Name | Type | Description | Notes
|
|
|
294
341
|
- **Accept**: application/json
|
|
295
342
|
|
|
296
343
|
|
|
344
|
+
## list_roles
|
|
345
|
+
|
|
346
|
+
> ObjectRolesResponse list_roles(python_python_remote_href, opts)
|
|
347
|
+
|
|
348
|
+
List roles
|
|
349
|
+
|
|
350
|
+
List roles assigned to this object.
|
|
351
|
+
|
|
352
|
+
### Example
|
|
353
|
+
|
|
354
|
+
```ruby
|
|
355
|
+
# load the gem
|
|
356
|
+
require 'pulp_python_client'
|
|
357
|
+
# setup authorization
|
|
358
|
+
PulpPythonClient.configure do |config|
|
|
359
|
+
# Configure HTTP basic authorization: basicAuth
|
|
360
|
+
config.username = 'YOUR USERNAME'
|
|
361
|
+
config.password = 'YOUR PASSWORD'
|
|
362
|
+
end
|
|
363
|
+
|
|
364
|
+
api_instance = PulpPythonClient::RemotesPythonApi.new
|
|
365
|
+
python_python_remote_href = 'python_python_remote_href_example' # String |
|
|
366
|
+
opts = {
|
|
367
|
+
fields: ['fields_example'], # Array<String> | A list of fields to include in the response.
|
|
368
|
+
exclude_fields: ['exclude_fields_example'] # Array<String> | A list of fields to exclude from the response.
|
|
369
|
+
}
|
|
370
|
+
|
|
371
|
+
begin
|
|
372
|
+
#List roles
|
|
373
|
+
result = api_instance.list_roles(python_python_remote_href, opts)
|
|
374
|
+
p result
|
|
375
|
+
rescue PulpPythonClient::ApiError => e
|
|
376
|
+
puts "Exception when calling RemotesPythonApi->list_roles: #{e}"
|
|
377
|
+
end
|
|
378
|
+
```
|
|
379
|
+
|
|
380
|
+
### Parameters
|
|
381
|
+
|
|
382
|
+
|
|
383
|
+
Name | Type | Description | Notes
|
|
384
|
+
------------- | ------------- | ------------- | -------------
|
|
385
|
+
**python_python_remote_href** | **String**| |
|
|
386
|
+
**fields** | [**Array<String>**](String.md)| A list of fields to include in the response. | [optional]
|
|
387
|
+
**exclude_fields** | [**Array<String>**](String.md)| A list of fields to exclude from the response. | [optional]
|
|
388
|
+
|
|
389
|
+
### Return type
|
|
390
|
+
|
|
391
|
+
[**ObjectRolesResponse**](ObjectRolesResponse.md)
|
|
392
|
+
|
|
393
|
+
### Authorization
|
|
394
|
+
|
|
395
|
+
[basicAuth](../README.md#basicAuth)
|
|
396
|
+
|
|
397
|
+
### HTTP request headers
|
|
398
|
+
|
|
399
|
+
- **Content-Type**: Not defined
|
|
400
|
+
- **Accept**: application/json
|
|
401
|
+
|
|
402
|
+
|
|
403
|
+
## my_permissions
|
|
404
|
+
|
|
405
|
+
> MyPermissionsResponse my_permissions(python_python_remote_href, opts)
|
|
406
|
+
|
|
407
|
+
List user permissions
|
|
408
|
+
|
|
409
|
+
List permissions available to the current user on this object.
|
|
410
|
+
|
|
411
|
+
### Example
|
|
412
|
+
|
|
413
|
+
```ruby
|
|
414
|
+
# load the gem
|
|
415
|
+
require 'pulp_python_client'
|
|
416
|
+
# setup authorization
|
|
417
|
+
PulpPythonClient.configure do |config|
|
|
418
|
+
# Configure HTTP basic authorization: basicAuth
|
|
419
|
+
config.username = 'YOUR USERNAME'
|
|
420
|
+
config.password = 'YOUR PASSWORD'
|
|
421
|
+
end
|
|
422
|
+
|
|
423
|
+
api_instance = PulpPythonClient::RemotesPythonApi.new
|
|
424
|
+
python_python_remote_href = 'python_python_remote_href_example' # String |
|
|
425
|
+
opts = {
|
|
426
|
+
fields: ['fields_example'], # Array<String> | A list of fields to include in the response.
|
|
427
|
+
exclude_fields: ['exclude_fields_example'] # Array<String> | A list of fields to exclude from the response.
|
|
428
|
+
}
|
|
429
|
+
|
|
430
|
+
begin
|
|
431
|
+
#List user permissions
|
|
432
|
+
result = api_instance.my_permissions(python_python_remote_href, opts)
|
|
433
|
+
p result
|
|
434
|
+
rescue PulpPythonClient::ApiError => e
|
|
435
|
+
puts "Exception when calling RemotesPythonApi->my_permissions: #{e}"
|
|
436
|
+
end
|
|
437
|
+
```
|
|
438
|
+
|
|
439
|
+
### Parameters
|
|
440
|
+
|
|
441
|
+
|
|
442
|
+
Name | Type | Description | Notes
|
|
443
|
+
------------- | ------------- | ------------- | -------------
|
|
444
|
+
**python_python_remote_href** | **String**| |
|
|
445
|
+
**fields** | [**Array<String>**](String.md)| A list of fields to include in the response. | [optional]
|
|
446
|
+
**exclude_fields** | [**Array<String>**](String.md)| A list of fields to exclude from the response. | [optional]
|
|
447
|
+
|
|
448
|
+
### Return type
|
|
449
|
+
|
|
450
|
+
[**MyPermissionsResponse**](MyPermissionsResponse.md)
|
|
451
|
+
|
|
452
|
+
### Authorization
|
|
453
|
+
|
|
454
|
+
[basicAuth](../README.md#basicAuth)
|
|
455
|
+
|
|
456
|
+
### HTTP request headers
|
|
457
|
+
|
|
458
|
+
- **Content-Type**: Not defined
|
|
459
|
+
- **Accept**: application/json
|
|
460
|
+
|
|
461
|
+
|
|
297
462
|
## partial_update
|
|
298
463
|
|
|
299
|
-
> AsyncOperationResponse partial_update(python_python_remote_href, patchedpython_python_remote
|
|
464
|
+
> AsyncOperationResponse partial_update(python_python_remote_href, patchedpython_python_remote)
|
|
300
465
|
|
|
301
466
|
Update a python remote
|
|
302
467
|
|
|
@@ -317,13 +482,10 @@ end
|
|
|
317
482
|
api_instance = PulpPythonClient::RemotesPythonApi.new
|
|
318
483
|
python_python_remote_href = 'python_python_remote_href_example' # String |
|
|
319
484
|
patchedpython_python_remote = PulpPythonClient::PatchedpythonPythonRemote.new # PatchedpythonPythonRemote |
|
|
320
|
-
opts = {
|
|
321
|
-
x_task_diagnostics: ['x_task_diagnostics_example'] # Array<String> | List of profilers to use on tasks.
|
|
322
|
-
}
|
|
323
485
|
|
|
324
486
|
begin
|
|
325
487
|
#Update a python remote
|
|
326
|
-
result = api_instance.partial_update(python_python_remote_href, patchedpython_python_remote
|
|
488
|
+
result = api_instance.partial_update(python_python_remote_href, patchedpython_python_remote)
|
|
327
489
|
p result
|
|
328
490
|
rescue PulpPythonClient::ApiError => e
|
|
329
491
|
puts "Exception when calling RemotesPythonApi->partial_update: #{e}"
|
|
@@ -337,7 +499,6 @@ Name | Type | Description | Notes
|
|
|
337
499
|
------------- | ------------- | ------------- | -------------
|
|
338
500
|
**python_python_remote_href** | **String**| |
|
|
339
501
|
**patchedpython_python_remote** | [**PatchedpythonPythonRemote**](PatchedpythonPythonRemote.md)| |
|
|
340
|
-
**x_task_diagnostics** | [**Array<String>**](String.md)| List of profilers to use on tasks. | [optional]
|
|
341
502
|
|
|
342
503
|
### Return type
|
|
343
504
|
|
|
@@ -376,7 +537,6 @@ end
|
|
|
376
537
|
api_instance = PulpPythonClient::RemotesPythonApi.new
|
|
377
538
|
python_python_remote_href = 'python_python_remote_href_example' # String |
|
|
378
539
|
opts = {
|
|
379
|
-
x_task_diagnostics: ['x_task_diagnostics_example'], # Array<String> | List of profilers to use on tasks.
|
|
380
540
|
fields: ['fields_example'], # Array<String> | A list of fields to include in the response.
|
|
381
541
|
exclude_fields: ['exclude_fields_example'] # Array<String> | A list of fields to exclude from the response.
|
|
382
542
|
}
|
|
@@ -396,7 +556,6 @@ end
|
|
|
396
556
|
Name | Type | Description | Notes
|
|
397
557
|
------------- | ------------- | ------------- | -------------
|
|
398
558
|
**python_python_remote_href** | **String**| |
|
|
399
|
-
**x_task_diagnostics** | [**Array<String>**](String.md)| List of profilers to use on tasks. | [optional]
|
|
400
559
|
**fields** | [**Array<String>**](String.md)| A list of fields to include in the response. | [optional]
|
|
401
560
|
**exclude_fields** | [**Array<String>**](String.md)| A list of fields to exclude from the response. | [optional]
|
|
402
561
|
|
|
@@ -414,9 +573,64 @@ Name | Type | Description | Notes
|
|
|
414
573
|
- **Accept**: application/json
|
|
415
574
|
|
|
416
575
|
|
|
576
|
+
## remove_role
|
|
577
|
+
|
|
578
|
+
> NestedRoleResponse remove_role(python_python_remote_href, nested_role)
|
|
579
|
+
|
|
580
|
+
Remove a role
|
|
581
|
+
|
|
582
|
+
Remove a role for this object from users/groups.
|
|
583
|
+
|
|
584
|
+
### Example
|
|
585
|
+
|
|
586
|
+
```ruby
|
|
587
|
+
# load the gem
|
|
588
|
+
require 'pulp_python_client'
|
|
589
|
+
# setup authorization
|
|
590
|
+
PulpPythonClient.configure do |config|
|
|
591
|
+
# Configure HTTP basic authorization: basicAuth
|
|
592
|
+
config.username = 'YOUR USERNAME'
|
|
593
|
+
config.password = 'YOUR PASSWORD'
|
|
594
|
+
end
|
|
595
|
+
|
|
596
|
+
api_instance = PulpPythonClient::RemotesPythonApi.new
|
|
597
|
+
python_python_remote_href = 'python_python_remote_href_example' # String |
|
|
598
|
+
nested_role = PulpPythonClient::NestedRole.new # NestedRole |
|
|
599
|
+
|
|
600
|
+
begin
|
|
601
|
+
#Remove a role
|
|
602
|
+
result = api_instance.remove_role(python_python_remote_href, nested_role)
|
|
603
|
+
p result
|
|
604
|
+
rescue PulpPythonClient::ApiError => e
|
|
605
|
+
puts "Exception when calling RemotesPythonApi->remove_role: #{e}"
|
|
606
|
+
end
|
|
607
|
+
```
|
|
608
|
+
|
|
609
|
+
### Parameters
|
|
610
|
+
|
|
611
|
+
|
|
612
|
+
Name | Type | Description | Notes
|
|
613
|
+
------------- | ------------- | ------------- | -------------
|
|
614
|
+
**python_python_remote_href** | **String**| |
|
|
615
|
+
**nested_role** | [**NestedRole**](NestedRole.md)| |
|
|
616
|
+
|
|
617
|
+
### Return type
|
|
618
|
+
|
|
619
|
+
[**NestedRoleResponse**](NestedRoleResponse.md)
|
|
620
|
+
|
|
621
|
+
### Authorization
|
|
622
|
+
|
|
623
|
+
[basicAuth](../README.md#basicAuth)
|
|
624
|
+
|
|
625
|
+
### HTTP request headers
|
|
626
|
+
|
|
627
|
+
- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
|
|
628
|
+
- **Accept**: application/json
|
|
629
|
+
|
|
630
|
+
|
|
417
631
|
## set_label
|
|
418
632
|
|
|
419
|
-
> SetLabelResponse set_label(python_python_remote_href, set_label
|
|
633
|
+
> SetLabelResponse set_label(python_python_remote_href, set_label)
|
|
420
634
|
|
|
421
635
|
Set a label
|
|
422
636
|
|
|
@@ -437,13 +651,10 @@ end
|
|
|
437
651
|
api_instance = PulpPythonClient::RemotesPythonApi.new
|
|
438
652
|
python_python_remote_href = 'python_python_remote_href_example' # String |
|
|
439
653
|
set_label = PulpPythonClient::SetLabel.new # SetLabel |
|
|
440
|
-
opts = {
|
|
441
|
-
x_task_diagnostics: ['x_task_diagnostics_example'] # Array<String> | List of profilers to use on tasks.
|
|
442
|
-
}
|
|
443
654
|
|
|
444
655
|
begin
|
|
445
656
|
#Set a label
|
|
446
|
-
result = api_instance.set_label(python_python_remote_href, set_label
|
|
657
|
+
result = api_instance.set_label(python_python_remote_href, set_label)
|
|
447
658
|
p result
|
|
448
659
|
rescue PulpPythonClient::ApiError => e
|
|
449
660
|
puts "Exception when calling RemotesPythonApi->set_label: #{e}"
|
|
@@ -457,7 +668,6 @@ Name | Type | Description | Notes
|
|
|
457
668
|
------------- | ------------- | ------------- | -------------
|
|
458
669
|
**python_python_remote_href** | **String**| |
|
|
459
670
|
**set_label** | [**SetLabel**](SetLabel.md)| |
|
|
460
|
-
**x_task_diagnostics** | [**Array<String>**](String.md)| List of profilers to use on tasks. | [optional]
|
|
461
671
|
|
|
462
672
|
### Return type
|
|
463
673
|
|
|
@@ -475,7 +685,7 @@ Name | Type | Description | Notes
|
|
|
475
685
|
|
|
476
686
|
## unset_label
|
|
477
687
|
|
|
478
|
-
> UnsetLabelResponse unset_label(python_python_remote_href, unset_label
|
|
688
|
+
> UnsetLabelResponse unset_label(python_python_remote_href, unset_label)
|
|
479
689
|
|
|
480
690
|
Unset a label
|
|
481
691
|
|
|
@@ -496,13 +706,10 @@ end
|
|
|
496
706
|
api_instance = PulpPythonClient::RemotesPythonApi.new
|
|
497
707
|
python_python_remote_href = 'python_python_remote_href_example' # String |
|
|
498
708
|
unset_label = PulpPythonClient::UnsetLabel.new # UnsetLabel |
|
|
499
|
-
opts = {
|
|
500
|
-
x_task_diagnostics: ['x_task_diagnostics_example'] # Array<String> | List of profilers to use on tasks.
|
|
501
|
-
}
|
|
502
709
|
|
|
503
710
|
begin
|
|
504
711
|
#Unset a label
|
|
505
|
-
result = api_instance.unset_label(python_python_remote_href, unset_label
|
|
712
|
+
result = api_instance.unset_label(python_python_remote_href, unset_label)
|
|
506
713
|
p result
|
|
507
714
|
rescue PulpPythonClient::ApiError => e
|
|
508
715
|
puts "Exception when calling RemotesPythonApi->unset_label: #{e}"
|
|
@@ -516,7 +723,6 @@ Name | Type | Description | Notes
|
|
|
516
723
|
------------- | ------------- | ------------- | -------------
|
|
517
724
|
**python_python_remote_href** | **String**| |
|
|
518
725
|
**unset_label** | [**UnsetLabel**](UnsetLabel.md)| |
|
|
519
|
-
**x_task_diagnostics** | [**Array<String>**](String.md)| List of profilers to use on tasks. | [optional]
|
|
520
726
|
|
|
521
727
|
### Return type
|
|
522
728
|
|
|
@@ -534,7 +740,7 @@ Name | Type | Description | Notes
|
|
|
534
740
|
|
|
535
741
|
## update
|
|
536
742
|
|
|
537
|
-
> AsyncOperationResponse update(python_python_remote_href, python_python_remote
|
|
743
|
+
> AsyncOperationResponse update(python_python_remote_href, python_python_remote)
|
|
538
744
|
|
|
539
745
|
Update a python remote
|
|
540
746
|
|
|
@@ -555,13 +761,10 @@ end
|
|
|
555
761
|
api_instance = PulpPythonClient::RemotesPythonApi.new
|
|
556
762
|
python_python_remote_href = 'python_python_remote_href_example' # String |
|
|
557
763
|
python_python_remote = PulpPythonClient::PythonPythonRemote.new # PythonPythonRemote |
|
|
558
|
-
opts = {
|
|
559
|
-
x_task_diagnostics: ['x_task_diagnostics_example'] # Array<String> | List of profilers to use on tasks.
|
|
560
|
-
}
|
|
561
764
|
|
|
562
765
|
begin
|
|
563
766
|
#Update a python remote
|
|
564
|
-
result = api_instance.update(python_python_remote_href, python_python_remote
|
|
767
|
+
result = api_instance.update(python_python_remote_href, python_python_remote)
|
|
565
768
|
p result
|
|
566
769
|
rescue PulpPythonClient::ApiError => e
|
|
567
770
|
puts "Exception when calling RemotesPythonApi->update: #{e}"
|
|
@@ -575,7 +778,6 @@ Name | Type | Description | Notes
|
|
|
575
778
|
------------- | ------------- | ------------- | -------------
|
|
576
779
|
**python_python_remote_href** | **String**| |
|
|
577
780
|
**python_python_remote** | [**PythonPythonRemote**](PythonPythonRemote.md)| |
|
|
578
|
-
**x_task_diagnostics** | [**Array<String>**](String.md)| List of profilers to use on tasks. | [optional]
|
|
579
781
|
|
|
580
782
|
### Return type
|
|
581
783
|
|