pulp_deb_client 3.4.0 → 3.5.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (41) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +28 -4
  3. data/docs/DebReleaseComponentResponse.md +3 -1
  4. data/docs/DebSourcePackageResponse.md +2 -0
  5. data/docs/DistributionsAptApi.md +232 -0
  6. data/docs/MyPermissionsResponse.md +17 -0
  7. data/docs/NestedRole.md +21 -0
  8. data/docs/NestedRoleResponse.md +21 -0
  9. data/docs/ObjectRolesResponse.md +17 -0
  10. data/docs/PublicationsAptApi.md +232 -0
  11. data/docs/PublicationsVerbatimApi.md +232 -0
  12. data/docs/RemotesAptApi.md +232 -0
  13. data/docs/RepositoriesAptApi.md +232 -0
  14. data/lib/pulp_deb_client/api/distributions_apt_api.rb +276 -0
  15. data/lib/pulp_deb_client/api/publications_apt_api.rb +276 -0
  16. data/lib/pulp_deb_client/api/publications_verbatim_api.rb +276 -0
  17. data/lib/pulp_deb_client/api/remotes_apt_api.rb +276 -0
  18. data/lib/pulp_deb_client/api/repositories_apt_api.rb +276 -0
  19. data/lib/pulp_deb_client/models/deb_apt_remote.rb +20 -20
  20. data/lib/pulp_deb_client/models/deb_apt_remote_response.rb +20 -20
  21. data/lib/pulp_deb_client/models/deb_release_component_response.rb +14 -4
  22. data/lib/pulp_deb_client/models/deb_source_package_response.rb +11 -1
  23. data/lib/pulp_deb_client/models/my_permissions_response.rb +213 -0
  24. data/lib/pulp_deb_client/models/nested_role.rb +253 -0
  25. data/lib/pulp_deb_client/models/nested_role_response.rb +234 -0
  26. data/lib/pulp_deb_client/models/object_roles_response.rb +213 -0
  27. data/lib/pulp_deb_client/models/patcheddeb_apt_remote.rb +20 -20
  28. data/lib/pulp_deb_client/version.rb +1 -1
  29. data/lib/pulp_deb_client.rb +4 -0
  30. data/spec/api/distributions_apt_api_spec.rb +54 -0
  31. data/spec/api/publications_apt_api_spec.rb +54 -0
  32. data/spec/api/publications_verbatim_api_spec.rb +54 -0
  33. data/spec/api/remotes_apt_api_spec.rb +54 -0
  34. data/spec/api/repositories_apt_api_spec.rb +54 -0
  35. data/spec/models/deb_release_component_response_spec.rb +6 -0
  36. data/spec/models/deb_source_package_response_spec.rb +6 -0
  37. data/spec/models/my_permissions_response_spec.rb +41 -0
  38. data/spec/models/nested_role_response_spec.rb +53 -0
  39. data/spec/models/nested_role_spec.rb +53 -0
  40. data/spec/models/object_roles_response_spec.rb +41 -0
  41. metadata +95 -79
@@ -4,17 +4,76 @@ All URIs are relative to *http://localhost:24817*
4
4
 
5
5
  Method | HTTP request | Description
6
6
  ------------- | ------------- | -------------
7
+ [**add_role**](RemotesAptApi.md#add_role) | **POST** {deb_apt_remote_href}add_role/ | Add a role
7
8
  [**create**](RemotesAptApi.md#create) | **POST** /pulp/api/v3/remotes/deb/apt/ | Create an apt remote
8
9
  [**delete**](RemotesAptApi.md#delete) | **DELETE** {deb_apt_remote_href} | Delete an apt remote
9
10
  [**list**](RemotesAptApi.md#list) | **GET** /pulp/api/v3/remotes/deb/apt/ | List apt remotes
11
+ [**list_roles**](RemotesAptApi.md#list_roles) | **GET** {deb_apt_remote_href}list_roles/ | List roles
12
+ [**my_permissions**](RemotesAptApi.md#my_permissions) | **GET** {deb_apt_remote_href}my_permissions/ | List user permissions
10
13
  [**partial_update**](RemotesAptApi.md#partial_update) | **PATCH** {deb_apt_remote_href} | Update an apt remote
11
14
  [**read**](RemotesAptApi.md#read) | **GET** {deb_apt_remote_href} | Inspect an apt remote
15
+ [**remove_role**](RemotesAptApi.md#remove_role) | **POST** {deb_apt_remote_href}remove_role/ | Remove a role
12
16
  [**set_label**](RemotesAptApi.md#set_label) | **POST** {deb_apt_remote_href}set_label/ | Set a label
13
17
  [**unset_label**](RemotesAptApi.md#unset_label) | **POST** {deb_apt_remote_href}unset_label/ | Unset a label
14
18
  [**update**](RemotesAptApi.md#update) | **PUT** {deb_apt_remote_href} | Update an apt remote
15
19
 
16
20
 
17
21
 
22
+ ## add_role
23
+
24
+ > NestedRoleResponse add_role(deb_apt_remote_href, nested_role)
25
+
26
+ Add a role
27
+
28
+ Add a role for this object to users/groups.
29
+
30
+ ### Example
31
+
32
+ ```ruby
33
+ # load the gem
34
+ require 'pulp_deb_client'
35
+ # setup authorization
36
+ PulpDebClient.configure do |config|
37
+ # Configure HTTP basic authorization: basicAuth
38
+ config.username = 'YOUR USERNAME'
39
+ config.password = 'YOUR PASSWORD'
40
+ end
41
+
42
+ api_instance = PulpDebClient::RemotesAptApi.new
43
+ deb_apt_remote_href = 'deb_apt_remote_href_example' # String |
44
+ nested_role = PulpDebClient::NestedRole.new # NestedRole |
45
+
46
+ begin
47
+ #Add a role
48
+ result = api_instance.add_role(deb_apt_remote_href, nested_role)
49
+ p result
50
+ rescue PulpDebClient::ApiError => e
51
+ puts "Exception when calling RemotesAptApi->add_role: #{e}"
52
+ end
53
+ ```
54
+
55
+ ### Parameters
56
+
57
+
58
+ Name | Type | Description | Notes
59
+ ------------- | ------------- | ------------- | -------------
60
+ **deb_apt_remote_href** | **String**| |
61
+ **nested_role** | [**NestedRole**](NestedRole.md)| |
62
+
63
+ ### Return type
64
+
65
+ [**NestedRoleResponse**](NestedRoleResponse.md)
66
+
67
+ ### Authorization
68
+
69
+ [basicAuth](../README.md#basicAuth)
70
+
71
+ ### HTTP request headers
72
+
73
+ - **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
74
+ - **Accept**: application/json
75
+
76
+
18
77
  ## create
19
78
 
20
79
  > DebAptRemoteResponse create(deb_apt_remote)
@@ -224,6 +283,124 @@ Name | Type | Description | Notes
224
283
  - **Accept**: application/json
225
284
 
226
285
 
286
+ ## list_roles
287
+
288
+ > ObjectRolesResponse list_roles(deb_apt_remote_href, opts)
289
+
290
+ List roles
291
+
292
+ List roles assigned to this object.
293
+
294
+ ### Example
295
+
296
+ ```ruby
297
+ # load the gem
298
+ require 'pulp_deb_client'
299
+ # setup authorization
300
+ PulpDebClient.configure do |config|
301
+ # Configure HTTP basic authorization: basicAuth
302
+ config.username = 'YOUR USERNAME'
303
+ config.password = 'YOUR PASSWORD'
304
+ end
305
+
306
+ api_instance = PulpDebClient::RemotesAptApi.new
307
+ deb_apt_remote_href = 'deb_apt_remote_href_example' # String |
308
+ opts = {
309
+ fields: ['fields_example'], # Array<String> | A list of fields to include in the response.
310
+ exclude_fields: ['exclude_fields_example'] # Array<String> | A list of fields to exclude from the response.
311
+ }
312
+
313
+ begin
314
+ #List roles
315
+ result = api_instance.list_roles(deb_apt_remote_href, opts)
316
+ p result
317
+ rescue PulpDebClient::ApiError => e
318
+ puts "Exception when calling RemotesAptApi->list_roles: #{e}"
319
+ end
320
+ ```
321
+
322
+ ### Parameters
323
+
324
+
325
+ Name | Type | Description | Notes
326
+ ------------- | ------------- | ------------- | -------------
327
+ **deb_apt_remote_href** | **String**| |
328
+ **fields** | [**Array&lt;String&gt;**](String.md)| A list of fields to include in the response. | [optional]
329
+ **exclude_fields** | [**Array&lt;String&gt;**](String.md)| A list of fields to exclude from the response. | [optional]
330
+
331
+ ### Return type
332
+
333
+ [**ObjectRolesResponse**](ObjectRolesResponse.md)
334
+
335
+ ### Authorization
336
+
337
+ [basicAuth](../README.md#basicAuth)
338
+
339
+ ### HTTP request headers
340
+
341
+ - **Content-Type**: Not defined
342
+ - **Accept**: application/json
343
+
344
+
345
+ ## my_permissions
346
+
347
+ > MyPermissionsResponse my_permissions(deb_apt_remote_href, opts)
348
+
349
+ List user permissions
350
+
351
+ List permissions available to the current user on this object.
352
+
353
+ ### Example
354
+
355
+ ```ruby
356
+ # load the gem
357
+ require 'pulp_deb_client'
358
+ # setup authorization
359
+ PulpDebClient.configure do |config|
360
+ # Configure HTTP basic authorization: basicAuth
361
+ config.username = 'YOUR USERNAME'
362
+ config.password = 'YOUR PASSWORD'
363
+ end
364
+
365
+ api_instance = PulpDebClient::RemotesAptApi.new
366
+ deb_apt_remote_href = 'deb_apt_remote_href_example' # String |
367
+ opts = {
368
+ fields: ['fields_example'], # Array<String> | A list of fields to include in the response.
369
+ exclude_fields: ['exclude_fields_example'] # Array<String> | A list of fields to exclude from the response.
370
+ }
371
+
372
+ begin
373
+ #List user permissions
374
+ result = api_instance.my_permissions(deb_apt_remote_href, opts)
375
+ p result
376
+ rescue PulpDebClient::ApiError => e
377
+ puts "Exception when calling RemotesAptApi->my_permissions: #{e}"
378
+ end
379
+ ```
380
+
381
+ ### Parameters
382
+
383
+
384
+ Name | Type | Description | Notes
385
+ ------------- | ------------- | ------------- | -------------
386
+ **deb_apt_remote_href** | **String**| |
387
+ **fields** | [**Array&lt;String&gt;**](String.md)| A list of fields to include in the response. | [optional]
388
+ **exclude_fields** | [**Array&lt;String&gt;**](String.md)| A list of fields to exclude from the response. | [optional]
389
+
390
+ ### Return type
391
+
392
+ [**MyPermissionsResponse**](MyPermissionsResponse.md)
393
+
394
+ ### Authorization
395
+
396
+ [basicAuth](../README.md#basicAuth)
397
+
398
+ ### HTTP request headers
399
+
400
+ - **Content-Type**: Not defined
401
+ - **Accept**: application/json
402
+
403
+
227
404
  ## partial_update
228
405
 
229
406
  > AsyncOperationResponse partial_update(deb_apt_remote_href, patcheddeb_apt_remote)
@@ -338,6 +515,61 @@ Name | Type | Description | Notes
338
515
  - **Accept**: application/json
339
516
 
340
517
 
518
+ ## remove_role
519
+
520
+ > NestedRoleResponse remove_role(deb_apt_remote_href, nested_role)
521
+
522
+ Remove a role
523
+
524
+ Remove a role for this object from users/groups.
525
+
526
+ ### Example
527
+
528
+ ```ruby
529
+ # load the gem
530
+ require 'pulp_deb_client'
531
+ # setup authorization
532
+ PulpDebClient.configure do |config|
533
+ # Configure HTTP basic authorization: basicAuth
534
+ config.username = 'YOUR USERNAME'
535
+ config.password = 'YOUR PASSWORD'
536
+ end
537
+
538
+ api_instance = PulpDebClient::RemotesAptApi.new
539
+ deb_apt_remote_href = 'deb_apt_remote_href_example' # String |
540
+ nested_role = PulpDebClient::NestedRole.new # NestedRole |
541
+
542
+ begin
543
+ #Remove a role
544
+ result = api_instance.remove_role(deb_apt_remote_href, nested_role)
545
+ p result
546
+ rescue PulpDebClient::ApiError => e
547
+ puts "Exception when calling RemotesAptApi->remove_role: #{e}"
548
+ end
549
+ ```
550
+
551
+ ### Parameters
552
+
553
+
554
+ Name | Type | Description | Notes
555
+ ------------- | ------------- | ------------- | -------------
556
+ **deb_apt_remote_href** | **String**| |
557
+ **nested_role** | [**NestedRole**](NestedRole.md)| |
558
+
559
+ ### Return type
560
+
561
+ [**NestedRoleResponse**](NestedRoleResponse.md)
562
+
563
+ ### Authorization
564
+
565
+ [basicAuth](../README.md#basicAuth)
566
+
567
+ ### HTTP request headers
568
+
569
+ - **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
570
+ - **Accept**: application/json
571
+
572
+
341
573
  ## set_label
342
574
 
343
575
  > SetLabelResponse set_label(deb_apt_remote_href, set_label)
@@ -4,12 +4,16 @@ All URIs are relative to *http://localhost:24817*
4
4
 
5
5
  Method | HTTP request | Description
6
6
  ------------- | ------------- | -------------
7
+ [**add_role**](RepositoriesAptApi.md#add_role) | **POST** {deb_apt_repository_href}add_role/ | Add a role
7
8
  [**create**](RepositoriesAptApi.md#create) | **POST** /pulp/api/v3/repositories/deb/apt/ | Create an apt repository
8
9
  [**delete**](RepositoriesAptApi.md#delete) | **DELETE** {deb_apt_repository_href} | Delete an apt repository
9
10
  [**list**](RepositoriesAptApi.md#list) | **GET** /pulp/api/v3/repositories/deb/apt/ | List apt repositorys
11
+ [**list_roles**](RepositoriesAptApi.md#list_roles) | **GET** {deb_apt_repository_href}list_roles/ | List roles
10
12
  [**modify**](RepositoriesAptApi.md#modify) | **POST** {deb_apt_repository_href}modify/ | Modify Repository Content
13
+ [**my_permissions**](RepositoriesAptApi.md#my_permissions) | **GET** {deb_apt_repository_href}my_permissions/ | List user permissions
11
14
  [**partial_update**](RepositoriesAptApi.md#partial_update) | **PATCH** {deb_apt_repository_href} | Update an apt repository
12
15
  [**read**](RepositoriesAptApi.md#read) | **GET** {deb_apt_repository_href} | Inspect an apt repository
16
+ [**remove_role**](RepositoriesAptApi.md#remove_role) | **POST** {deb_apt_repository_href}remove_role/ | Remove a role
13
17
  [**set_label**](RepositoriesAptApi.md#set_label) | **POST** {deb_apt_repository_href}set_label/ | Set a label
14
18
  [**sync**](RepositoriesAptApi.md#sync) | **POST** {deb_apt_repository_href}sync/ | Sync from remote
15
19
  [**unset_label**](RepositoriesAptApi.md#unset_label) | **POST** {deb_apt_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(deb_apt_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_deb_client'
37
+ # setup authorization
38
+ PulpDebClient.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 = PulpDebClient::RepositoriesAptApi.new
45
+ deb_apt_repository_href = 'deb_apt_repository_href_example' # String |
46
+ nested_role = PulpDebClient::NestedRole.new # NestedRole |
47
+
48
+ begin
49
+ #Add a role
50
+ result = api_instance.add_role(deb_apt_repository_href, nested_role)
51
+ p result
52
+ rescue PulpDebClient::ApiError => e
53
+ puts "Exception when calling RepositoriesAptApi->add_role: #{e}"
54
+ end
55
+ ```
56
+
57
+ ### Parameters
58
+
59
+
60
+ Name | Type | Description | Notes
61
+ ------------- | ------------- | ------------- | -------------
62
+ **deb_apt_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
  > DebAptRepositoryResponse create(deb_apt_repository)
@@ -236,6 +295,65 @@ Name | Type | Description | Notes
236
295
  - **Accept**: application/json
237
296
 
238
297
 
298
+ ## list_roles
299
+
300
+ > ObjectRolesResponse list_roles(deb_apt_repository_href, opts)
301
+
302
+ List roles
303
+
304
+ List roles assigned to this object.
305
+
306
+ ### Example
307
+
308
+ ```ruby
309
+ # load the gem
310
+ require 'pulp_deb_client'
311
+ # setup authorization
312
+ PulpDebClient.configure do |config|
313
+ # Configure HTTP basic authorization: basicAuth
314
+ config.username = 'YOUR USERNAME'
315
+ config.password = 'YOUR PASSWORD'
316
+ end
317
+
318
+ api_instance = PulpDebClient::RepositoriesAptApi.new
319
+ deb_apt_repository_href = 'deb_apt_repository_href_example' # String |
320
+ opts = {
321
+ fields: ['fields_example'], # Array<String> | A list of fields to include in the response.
322
+ exclude_fields: ['exclude_fields_example'] # Array<String> | A list of fields to exclude from the response.
323
+ }
324
+
325
+ begin
326
+ #List roles
327
+ result = api_instance.list_roles(deb_apt_repository_href, opts)
328
+ p result
329
+ rescue PulpDebClient::ApiError => e
330
+ puts "Exception when calling RepositoriesAptApi->list_roles: #{e}"
331
+ end
332
+ ```
333
+
334
+ ### Parameters
335
+
336
+
337
+ Name | Type | Description | Notes
338
+ ------------- | ------------- | ------------- | -------------
339
+ **deb_apt_repository_href** | **String**| |
340
+ **fields** | [**Array&lt;String&gt;**](String.md)| A list of fields to include in the response. | [optional]
341
+ **exclude_fields** | [**Array&lt;String&gt;**](String.md)| A list of fields to exclude from the response. | [optional]
342
+
343
+ ### Return type
344
+
345
+ [**ObjectRolesResponse**](ObjectRolesResponse.md)
346
+
347
+ ### Authorization
348
+
349
+ [basicAuth](../README.md#basicAuth)
350
+
351
+ ### HTTP request headers
352
+
353
+ - **Content-Type**: Not defined
354
+ - **Accept**: application/json
355
+
356
+
239
357
  ## modify
240
358
 
241
359
  > AsyncOperationResponse modify(deb_apt_repository_href, repository_add_remove_content)
@@ -291,6 +409,65 @@ Name | Type | Description | Notes
291
409
  - **Accept**: application/json
292
410
 
293
411
 
412
+ ## my_permissions
413
+
414
+ > MyPermissionsResponse my_permissions(deb_apt_repository_href, opts)
415
+
416
+ List user permissions
417
+
418
+ List permissions available to the current user on this object.
419
+
420
+ ### Example
421
+
422
+ ```ruby
423
+ # load the gem
424
+ require 'pulp_deb_client'
425
+ # setup authorization
426
+ PulpDebClient.configure do |config|
427
+ # Configure HTTP basic authorization: basicAuth
428
+ config.username = 'YOUR USERNAME'
429
+ config.password = 'YOUR PASSWORD'
430
+ end
431
+
432
+ api_instance = PulpDebClient::RepositoriesAptApi.new
433
+ deb_apt_repository_href = 'deb_apt_repository_href_example' # String |
434
+ opts = {
435
+ fields: ['fields_example'], # Array<String> | A list of fields to include in the response.
436
+ exclude_fields: ['exclude_fields_example'] # Array<String> | A list of fields to exclude from the response.
437
+ }
438
+
439
+ begin
440
+ #List user permissions
441
+ result = api_instance.my_permissions(deb_apt_repository_href, opts)
442
+ p result
443
+ rescue PulpDebClient::ApiError => e
444
+ puts "Exception when calling RepositoriesAptApi->my_permissions: #{e}"
445
+ end
446
+ ```
447
+
448
+ ### Parameters
449
+
450
+
451
+ Name | Type | Description | Notes
452
+ ------------- | ------------- | ------------- | -------------
453
+ **deb_apt_repository_href** | **String**| |
454
+ **fields** | [**Array&lt;String&gt;**](String.md)| A list of fields to include in the response. | [optional]
455
+ **exclude_fields** | [**Array&lt;String&gt;**](String.md)| A list of fields to exclude from the response. | [optional]
456
+
457
+ ### Return type
458
+
459
+ [**MyPermissionsResponse**](MyPermissionsResponse.md)
460
+
461
+ ### Authorization
462
+
463
+ [basicAuth](../README.md#basicAuth)
464
+
465
+ ### HTTP request headers
466
+
467
+ - **Content-Type**: Not defined
468
+ - **Accept**: application/json
469
+
470
+
294
471
  ## partial_update
295
472
 
296
473
  > AsyncOperationResponse partial_update(deb_apt_repository_href, patcheddeb_apt_repository)
@@ -405,6 +582,61 @@ Name | Type | Description | Notes
405
582
  - **Accept**: application/json
406
583
 
407
584
 
585
+ ## remove_role
586
+
587
+ > NestedRoleResponse remove_role(deb_apt_repository_href, nested_role)
588
+
589
+ Remove a role
590
+
591
+ Remove a role for this object from users/groups.
592
+
593
+ ### Example
594
+
595
+ ```ruby
596
+ # load the gem
597
+ require 'pulp_deb_client'
598
+ # setup authorization
599
+ PulpDebClient.configure do |config|
600
+ # Configure HTTP basic authorization: basicAuth
601
+ config.username = 'YOUR USERNAME'
602
+ config.password = 'YOUR PASSWORD'
603
+ end
604
+
605
+ api_instance = PulpDebClient::RepositoriesAptApi.new
606
+ deb_apt_repository_href = 'deb_apt_repository_href_example' # String |
607
+ nested_role = PulpDebClient::NestedRole.new # NestedRole |
608
+
609
+ begin
610
+ #Remove a role
611
+ result = api_instance.remove_role(deb_apt_repository_href, nested_role)
612
+ p result
613
+ rescue PulpDebClient::ApiError => e
614
+ puts "Exception when calling RepositoriesAptApi->remove_role: #{e}"
615
+ end
616
+ ```
617
+
618
+ ### Parameters
619
+
620
+
621
+ Name | Type | Description | Notes
622
+ ------------- | ------------- | ------------- | -------------
623
+ **deb_apt_repository_href** | **String**| |
624
+ **nested_role** | [**NestedRole**](NestedRole.md)| |
625
+
626
+ ### Return type
627
+
628
+ [**NestedRoleResponse**](NestedRoleResponse.md)
629
+
630
+ ### Authorization
631
+
632
+ [basicAuth](../README.md#basicAuth)
633
+
634
+ ### HTTP request headers
635
+
636
+ - **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
637
+ - **Accept**: application/json
638
+
639
+
408
640
  ## set_label
409
641
 
410
642
  > SetLabelResponse set_label(deb_apt_repository_href, set_label)