pulp_python_client 3.11.0 → 3.12.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +30 -10
- data/docs/ContentPackagesApi.md +14 -12
- data/docs/DistributionsPypiApi.md +232 -0
- 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/PaginatedRepositoryVersionResponseList.md +2 -2
- data/docs/PaginatedpythonPythonDistributionResponseList.md +2 -2
- data/docs/PaginatedpythonPythonPackageContentResponseList.md +2 -2
- data/docs/PaginatedpythonPythonPublicationResponseList.md +2 -2
- data/docs/PaginatedpythonPythonRemoteResponseList.md +2 -2
- data/docs/PaginatedpythonPythonRepositoryResponseList.md +2 -2
- data/docs/PublicationsPypiApi.md +232 -0
- data/docs/PypiApi.md +7 -1
- data/docs/PypiMetadataApi.md +7 -1
- data/docs/PythonPythonDistributionResponse.md +2 -0
- data/docs/PythonPythonPackageContent.md +6 -6
- data/docs/PythonPythonPackageContentResponse.md +8 -6
- data/docs/PythonPythonPublicationResponse.md +2 -0
- data/docs/PythonPythonRemoteResponse.md +2 -2
- data/docs/PythonPythonRemoteResponseHiddenFields.md +2 -2
- data/docs/PythonPythonRepositoryResponse.md +2 -0
- data/docs/RemotesPythonApi.md +232 -0
- data/docs/RepositoriesPythonApi.md +232 -0
- data/docs/RepositoryVersionResponse.md +2 -0
- data/lib/pulp_python_client/api/content_packages_api.rb +15 -12
- data/lib/pulp_python_client/api/distributions_pypi_api.rb +276 -0
- data/lib/pulp_python_client/api/publications_pypi_api.rb +276 -0
- data/lib/pulp_python_client/api/pypi_api.rb +1 -1
- data/lib/pulp_python_client/api/pypi_metadata_api.rb +1 -1
- data/lib/pulp_python_client/api/remotes_python_api.rb +276 -0
- data/lib/pulp_python_client/api/repositories_python_api.rb +276 -0
- 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/paginated_repository_version_response_list.rb +10 -0
- data/lib/pulp_python_client/models/paginatedpython_python_distribution_response_list.rb +10 -0
- data/lib/pulp_python_client/models/paginatedpython_python_package_content_response_list.rb +10 -0
- data/lib/pulp_python_client/models/paginatedpython_python_publication_response_list.rb +10 -0
- data/lib/pulp_python_client/models/paginatedpython_python_remote_response_list.rb +10 -0
- data/lib/pulp_python_client/models/paginatedpython_python_repository_response_list.rb +10 -0
- data/lib/pulp_python_client/models/python_python_distribution_response.rb +11 -1
- 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 +17 -7
- data/lib/pulp_python_client/models/python_python_publication_response.rb +11 -1
- data/lib/pulp_python_client/models/python_python_remote_response.rb +11 -11
- data/lib/pulp_python_client/models/python_python_remote_response_hidden_fields.rb +10 -0
- data/lib/pulp_python_client/models/python_python_repository_response.rb +11 -1
- data/lib/pulp_python_client/models/repository_version_response.rb +11 -1
- 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 +7 -6
- data/spec/api/distributions_pypi_api_spec.rb +54 -0
- data/spec/api/publications_pypi_api_spec.rb +54 -0
- data/spec/api/remotes_python_api_spec.rb +54 -0
- data/spec/api/repositories_python_api_spec.rb +54 -0
- 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
- data/spec/models/python_python_distribution_response_spec.rb +6 -0
- data/spec/models/python_python_package_content_response_spec.rb +6 -0
- data/spec/models/python_python_publication_response_spec.rb +6 -0
- data/spec/models/python_python_remote_response_spec.rb +6 -6
- data/spec/models/python_python_repository_response_spec.rb +6 -0
- data/spec/models/repository_version_response_spec.rb +6 -0
- metadata +52 -36
data/docs/RemotesPythonApi.md
CHANGED
@@ -4,18 +4,77 @@ 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
80
|
> PythonPythonRemoteResponse create(python_python_remote)
|
@@ -282,6 +341,124 @@ Name | Type | Description | Notes
|
|
282
341
|
- **Accept**: application/json
|
283
342
|
|
284
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
|
+
|
285
462
|
## partial_update
|
286
463
|
|
287
464
|
> AsyncOperationResponse partial_update(python_python_remote_href, patchedpython_python_remote)
|
@@ -396,6 +573,61 @@ Name | Type | Description | Notes
|
|
396
573
|
- **Accept**: application/json
|
397
574
|
|
398
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
|
+
|
399
631
|
## set_label
|
400
632
|
|
401
633
|
> SetLabelResponse set_label(python_python_remote_href, set_label)
|
@@ -4,12 +4,16 @@ 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,6 +21,61 @@ 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
81
|
> PythonPythonRepositoryResponse create(python_python_repository)
|
@@ -234,6 +293,65 @@ Name | Type | Description | Notes
|
|
234
293
|
- **Accept**: application/json
|
235
294
|
|
236
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
|
+
|
237
355
|
## modify
|
238
356
|
|
239
357
|
> AsyncOperationResponse modify(python_python_repository_href, repository_add_remove_content)
|
@@ -289,6 +407,65 @@ Name | Type | Description | Notes
|
|
289
407
|
- **Accept**: application/json
|
290
408
|
|
291
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
|
+
|
292
469
|
## partial_update
|
293
470
|
|
294
471
|
> AsyncOperationResponse partial_update(python_python_repository_href, patchedpython_python_repository)
|
@@ -403,6 +580,61 @@ Name | Type | Description | Notes
|
|
403
580
|
- **Accept**: application/json
|
404
581
|
|
405
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
|
+
|
406
638
|
## set_label
|
407
639
|
|
408
640
|
> SetLabelResponse set_label(python_python_repository_href, set_label)
|
@@ -6,6 +6,7 @@ Name | Type | Description | Notes
|
|
6
6
|
------------ | ------------- | ------------- | -------------
|
7
7
|
**pulp_href** | **String** | | [optional] [readonly]
|
8
8
|
**pulp_created** | **DateTime** | Timestamp of creation. | [optional] [readonly]
|
9
|
+
**pulp_last_updated** | **DateTime** | Timestamp of the last time this resource was updated. Note: for immutable resources - like content, repository versions, and publication - pulp_created and pulp_last_updated dates will be the same. | [optional] [readonly]
|
9
10
|
**number** | **Integer** | | [optional] [readonly]
|
10
11
|
**repository** | **String** | | [optional] [readonly]
|
11
12
|
**base_version** | **String** | A repository version whose content was used as the initial set of content for this repository version | [optional]
|
@@ -18,6 +19,7 @@ require 'PulpPythonClient'
|
|
18
19
|
|
19
20
|
instance = PulpPythonClient::RepositoryVersionResponse.new(pulp_href: null,
|
20
21
|
pulp_created: null,
|
22
|
+
pulp_last_updated: null,
|
21
23
|
number: null,
|
22
24
|
repository: null,
|
23
25
|
base_version: null,
|
@@ -41,14 +41,14 @@ module PulpPythonClient
|
|
41
41
|
# @option opts [String] :license Text indicating the license covering the distribution
|
42
42
|
# @option opts [String] :requires_python The Python version(s) that the distribution is guaranteed to be compatible with.
|
43
43
|
# @option opts [String] :project_url A browsable URL for the project and a label for it, separated by a comma.
|
44
|
-
# @option opts [
|
44
|
+
# @option opts [AnyType] :project_urls A dictionary of labels and URLs for the project.
|
45
45
|
# @option opts [String] :platform A comma-separated list of platform specifications, summarizing the operating systems supported by the package.
|
46
46
|
# @option opts [String] :supported_platform Field to specify the OS and CPU for which the binary package was compiled.
|
47
|
-
# @option opts [
|
48
|
-
# @option opts [
|
49
|
-
# @option opts [
|
50
|
-
# @option opts [
|
51
|
-
# @option opts [
|
47
|
+
# @option opts [AnyType] :requires_dist A JSON list containing names of some other distutils project required by this distribution.
|
48
|
+
# @option opts [AnyType] :provides_dist A JSON list containing names of a Distutils project which is contained within this distribution.
|
49
|
+
# @option opts [AnyType] :obsoletes_dist A JSON list containing names of a distutils project's distribution which this distribution renders obsolete, meaning that the two projects should not be installed at the same time.
|
50
|
+
# @option opts [AnyType] :requires_external A JSON list containing some dependency in the system that the distribution is to be used.
|
51
|
+
# @option opts [AnyType] :classifiers A JSON list containing classification values for a Python package.
|
52
52
|
# @return [AsyncOperationResponse]
|
53
53
|
def create(relative_path, opts = {})
|
54
54
|
data, _status_code, _headers = create_with_http_info(relative_path, opts)
|
@@ -77,14 +77,14 @@ module PulpPythonClient
|
|
77
77
|
# @option opts [String] :license Text indicating the license covering the distribution
|
78
78
|
# @option opts [String] :requires_python The Python version(s) that the distribution is guaranteed to be compatible with.
|
79
79
|
# @option opts [String] :project_url A browsable URL for the project and a label for it, separated by a comma.
|
80
|
-
# @option opts [
|
80
|
+
# @option opts [AnyType] :project_urls A dictionary of labels and URLs for the project.
|
81
81
|
# @option opts [String] :platform A comma-separated list of platform specifications, summarizing the operating systems supported by the package.
|
82
82
|
# @option opts [String] :supported_platform Field to specify the OS and CPU for which the binary package was compiled.
|
83
|
-
# @option opts [
|
84
|
-
# @option opts [
|
85
|
-
# @option opts [
|
86
|
-
# @option opts [
|
87
|
-
# @option opts [
|
83
|
+
# @option opts [AnyType] :requires_dist A JSON list containing names of some other distutils project required by this distribution.
|
84
|
+
# @option opts [AnyType] :provides_dist A JSON list containing names of a Distutils project which is contained within this distribution.
|
85
|
+
# @option opts [AnyType] :obsoletes_dist A JSON list containing names of a distutils project's distribution which this distribution renders obsolete, meaning that the two projects should not be installed at the same time.
|
86
|
+
# @option opts [AnyType] :requires_external A JSON list containing some dependency in the system that the distribution is to be used.
|
87
|
+
# @option opts [AnyType] :classifiers A JSON list containing classification values for a Python package.
|
88
88
|
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
89
89
|
def create_with_http_info(relative_path, opts = {})
|
90
90
|
if @api_client.config.debugging
|
@@ -185,6 +185,7 @@ module PulpPythonClient
|
|
185
185
|
# @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
|
186
186
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
187
187
|
# @option opts [Array<String>] :ordering 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) * `upstream_id` - Upstream id * `-upstream_id` - Upstream id (descending) * `timestamp_of_interest` - Timestamp of interest * `-timestamp_of_interest` - Timestamp of interest (descending) * `filename` - Filename * `-filename` - Filename (descending) * `packagetype` - Packagetype * `-packagetype` - Packagetype (descending) * `name` - Name * `-name` - Name (descending) * `version` - Version * `-version` - Version (descending) * `sha256` - Sha256 * `-sha256` - Sha256 (descending) * `python_version` - Python version * `-python_version` - Python version (descending) * `metadata_version` - Metadata version * `-metadata_version` - Metadata version (descending) * `summary` - Summary * `-summary` - Summary (descending) * `description` - Description * `-description` - Description (descending) * `keywords` - Keywords * `-keywords` - Keywords (descending) * `home_page` - Home page * `-home_page` - Home page (descending) * `download_url` - Download url * `-download_url` - Download url (descending) * `author` - Author * `-author` - Author (descending) * `author_email` - Author email * `-author_email` - Author email (descending) * `maintainer` - Maintainer * `-maintainer` - Maintainer (descending) * `maintainer_email` - Maintainer email * `-maintainer_email` - Maintainer email (descending) * `license` - License * `-license` - License (descending) * `requires_python` - Requires python * `-requires_python` - Requires python (descending) * `project_url` - Project url * `-project_url` - Project url (descending) * `platform` - Platform * `-platform` - Platform (descending) * `supported_platform` - Supported platform * `-supported_platform` - Supported platform (descending) * `requires_dist` - Requires dist * `-requires_dist` - Requires dist (descending) * `provides_dist` - Provides dist * `-provides_dist` - Provides dist (descending) * `obsoletes_dist` - Obsoletes dist * `-obsoletes_dist` - Obsoletes dist (descending) * `requires_external` - Requires external * `-requires_external` - Requires external (descending) * `classifiers` - Classifiers * `-classifiers` - Classifiers (descending) * `project_urls` - Project urls * `-project_urls` - Project urls (descending) * `description_content_type` - Description content type * `-description_content_type` - Description content type (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
188
|
+
# @option opts [Float] :orphaned_for Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME.
|
188
189
|
# @option opts [String] :packagetype Filter results where packagetype matches value * `bdist_dmg` - bdist_dmg * `bdist_dumb` - bdist_dumb * `bdist_egg` - bdist_egg * `bdist_msi` - bdist_msi * `bdist_rpm` - bdist_rpm * `bdist_wheel` - bdist_wheel * `bdist_wininst` - bdist_wininst * `sdist` - sdist
|
189
190
|
# @option opts [Array<String>] :packagetype__in Filter results where packagetype is in a comma-separated list of values
|
190
191
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
@@ -226,6 +227,7 @@ module PulpPythonClient
|
|
226
227
|
# @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
|
227
228
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
228
229
|
# @option opts [Array<String>] :ordering 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) * `upstream_id` - Upstream id * `-upstream_id` - Upstream id (descending) * `timestamp_of_interest` - Timestamp of interest * `-timestamp_of_interest` - Timestamp of interest (descending) * `filename` - Filename * `-filename` - Filename (descending) * `packagetype` - Packagetype * `-packagetype` - Packagetype (descending) * `name` - Name * `-name` - Name (descending) * `version` - Version * `-version` - Version (descending) * `sha256` - Sha256 * `-sha256` - Sha256 (descending) * `python_version` - Python version * `-python_version` - Python version (descending) * `metadata_version` - Metadata version * `-metadata_version` - Metadata version (descending) * `summary` - Summary * `-summary` - Summary (descending) * `description` - Description * `-description` - Description (descending) * `keywords` - Keywords * `-keywords` - Keywords (descending) * `home_page` - Home page * `-home_page` - Home page (descending) * `download_url` - Download url * `-download_url` - Download url (descending) * `author` - Author * `-author` - Author (descending) * `author_email` - Author email * `-author_email` - Author email (descending) * `maintainer` - Maintainer * `-maintainer` - Maintainer (descending) * `maintainer_email` - Maintainer email * `-maintainer_email` - Maintainer email (descending) * `license` - License * `-license` - License (descending) * `requires_python` - Requires python * `-requires_python` - Requires python (descending) * `project_url` - Project url * `-project_url` - Project url (descending) * `platform` - Platform * `-platform` - Platform (descending) * `supported_platform` - Supported platform * `-supported_platform` - Supported platform (descending) * `requires_dist` - Requires dist * `-requires_dist` - Requires dist (descending) * `provides_dist` - Provides dist * `-provides_dist` - Provides dist (descending) * `obsoletes_dist` - Obsoletes dist * `-obsoletes_dist` - Obsoletes dist (descending) * `requires_external` - Requires external * `-requires_external` - Requires external (descending) * `classifiers` - Classifiers * `-classifiers` - Classifiers (descending) * `project_urls` - Project urls * `-project_urls` - Project urls (descending) * `description_content_type` - Description content type * `-description_content_type` - Description content type (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
230
|
+
# @option opts [Float] :orphaned_for Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME.
|
229
231
|
# @option opts [String] :packagetype Filter results where packagetype matches value * `bdist_dmg` - bdist_dmg * `bdist_dumb` - bdist_dumb * `bdist_egg` - bdist_egg * `bdist_msi` - bdist_msi * `bdist_rpm` - bdist_rpm * `bdist_wheel` - bdist_wheel * `bdist_wininst` - bdist_wininst * `sdist` - sdist
|
230
232
|
# @option opts [Array<String>] :packagetype__in Filter results where packagetype is in a comma-separated list of values
|
231
233
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
@@ -276,6 +278,7 @@ module PulpPythonClient
|
|
276
278
|
query_params[:'name__in'] = @api_client.build_collection_param(opts[:'name__in'], :csv) if !opts[:'name__in'].nil?
|
277
279
|
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
278
280
|
query_params[:'ordering'] = @api_client.build_collection_param(opts[:'ordering'], :csv) if !opts[:'ordering'].nil?
|
281
|
+
query_params[:'orphaned_for'] = opts[:'orphaned_for'] if !opts[:'orphaned_for'].nil?
|
279
282
|
query_params[:'packagetype'] = opts[:'packagetype'] if !opts[:'packagetype'].nil?
|
280
283
|
query_params[:'packagetype__in'] = @api_client.build_collection_param(opts[:'packagetype__in'], :csv) if !opts[:'packagetype__in'].nil?
|
281
284
|
query_params[:'pulp_href__in'] = @api_client.build_collection_param(opts[:'pulp_href__in'], :csv) if !opts[:'pulp_href__in'].nil?
|