pulp_deb_client 3.4.0 → 3.5.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.
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,13 +4,72 @@ All URIs are relative to *http://localhost:24817*
4
4
 
5
5
  Method | HTTP request | Description
6
6
  ------------- | ------------- | -------------
7
+ [**add_role**](PublicationsAptApi.md#add_role) | **POST** {deb_apt_publication_href}add_role/ | Add a role
7
8
  [**create**](PublicationsAptApi.md#create) | **POST** /pulp/api/v3/publications/deb/apt/ | Create an apt publication
8
9
  [**delete**](PublicationsAptApi.md#delete) | **DELETE** {deb_apt_publication_href} | Delete an apt publication
9
10
  [**list**](PublicationsAptApi.md#list) | **GET** /pulp/api/v3/publications/deb/apt/ | List apt publications
11
+ [**list_roles**](PublicationsAptApi.md#list_roles) | **GET** {deb_apt_publication_href}list_roles/ | List roles
12
+ [**my_permissions**](PublicationsAptApi.md#my_permissions) | **GET** {deb_apt_publication_href}my_permissions/ | List user permissions
10
13
  [**read**](PublicationsAptApi.md#read) | **GET** {deb_apt_publication_href} | Inspect an apt publication
14
+ [**remove_role**](PublicationsAptApi.md#remove_role) | **POST** {deb_apt_publication_href}remove_role/ | Remove a role
11
15
 
12
16
 
13
17
 
18
+ ## add_role
19
+
20
+ > NestedRoleResponse add_role(deb_apt_publication_href, nested_role)
21
+
22
+ Add a role
23
+
24
+ Add a role for this object to users/groups.
25
+
26
+ ### Example
27
+
28
+ ```ruby
29
+ # load the gem
30
+ require 'pulp_deb_client'
31
+ # setup authorization
32
+ PulpDebClient.configure do |config|
33
+ # Configure HTTP basic authorization: basicAuth
34
+ config.username = 'YOUR USERNAME'
35
+ config.password = 'YOUR PASSWORD'
36
+ end
37
+
38
+ api_instance = PulpDebClient::PublicationsAptApi.new
39
+ deb_apt_publication_href = 'deb_apt_publication_href_example' # String |
40
+ nested_role = PulpDebClient::NestedRole.new # NestedRole |
41
+
42
+ begin
43
+ #Add a role
44
+ result = api_instance.add_role(deb_apt_publication_href, nested_role)
45
+ p result
46
+ rescue PulpDebClient::ApiError => e
47
+ puts "Exception when calling PublicationsAptApi->add_role: #{e}"
48
+ end
49
+ ```
50
+
51
+ ### Parameters
52
+
53
+
54
+ Name | Type | Description | Notes
55
+ ------------- | ------------- | ------------- | -------------
56
+ **deb_apt_publication_href** | **String**| |
57
+ **nested_role** | [**NestedRole**](NestedRole.md)| |
58
+
59
+ ### Return type
60
+
61
+ [**NestedRoleResponse**](NestedRoleResponse.md)
62
+
63
+ ### Authorization
64
+
65
+ [basicAuth](../README.md#basicAuth)
66
+
67
+ ### HTTP request headers
68
+
69
+ - **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
70
+ - **Accept**: application/json
71
+
72
+
14
73
  ## create
15
74
 
16
75
  > AsyncOperationResponse create(deb_apt_publication)
@@ -207,6 +266,124 @@ Name | Type | Description | Notes
207
266
  - **Accept**: application/json
208
267
 
209
268
 
269
+ ## list_roles
270
+
271
+ > ObjectRolesResponse list_roles(deb_apt_publication_href, opts)
272
+
273
+ List roles
274
+
275
+ List roles assigned to this object.
276
+
277
+ ### Example
278
+
279
+ ```ruby
280
+ # load the gem
281
+ require 'pulp_deb_client'
282
+ # setup authorization
283
+ PulpDebClient.configure do |config|
284
+ # Configure HTTP basic authorization: basicAuth
285
+ config.username = 'YOUR USERNAME'
286
+ config.password = 'YOUR PASSWORD'
287
+ end
288
+
289
+ api_instance = PulpDebClient::PublicationsAptApi.new
290
+ deb_apt_publication_href = 'deb_apt_publication_href_example' # String |
291
+ opts = {
292
+ fields: ['fields_example'], # Array<String> | A list of fields to include in the response.
293
+ exclude_fields: ['exclude_fields_example'] # Array<String> | A list of fields to exclude from the response.
294
+ }
295
+
296
+ begin
297
+ #List roles
298
+ result = api_instance.list_roles(deb_apt_publication_href, opts)
299
+ p result
300
+ rescue PulpDebClient::ApiError => e
301
+ puts "Exception when calling PublicationsAptApi->list_roles: #{e}"
302
+ end
303
+ ```
304
+
305
+ ### Parameters
306
+
307
+
308
+ Name | Type | Description | Notes
309
+ ------------- | ------------- | ------------- | -------------
310
+ **deb_apt_publication_href** | **String**| |
311
+ **fields** | [**Array&lt;String&gt;**](String.md)| A list of fields to include in the response. | [optional]
312
+ **exclude_fields** | [**Array&lt;String&gt;**](String.md)| A list of fields to exclude from the response. | [optional]
313
+
314
+ ### Return type
315
+
316
+ [**ObjectRolesResponse**](ObjectRolesResponse.md)
317
+
318
+ ### Authorization
319
+
320
+ [basicAuth](../README.md#basicAuth)
321
+
322
+ ### HTTP request headers
323
+
324
+ - **Content-Type**: Not defined
325
+ - **Accept**: application/json
326
+
327
+
328
+ ## my_permissions
329
+
330
+ > MyPermissionsResponse my_permissions(deb_apt_publication_href, opts)
331
+
332
+ List user permissions
333
+
334
+ List permissions available to the current user on this object.
335
+
336
+ ### Example
337
+
338
+ ```ruby
339
+ # load the gem
340
+ require 'pulp_deb_client'
341
+ # setup authorization
342
+ PulpDebClient.configure do |config|
343
+ # Configure HTTP basic authorization: basicAuth
344
+ config.username = 'YOUR USERNAME'
345
+ config.password = 'YOUR PASSWORD'
346
+ end
347
+
348
+ api_instance = PulpDebClient::PublicationsAptApi.new
349
+ deb_apt_publication_href = 'deb_apt_publication_href_example' # String |
350
+ opts = {
351
+ fields: ['fields_example'], # Array<String> | A list of fields to include in the response.
352
+ exclude_fields: ['exclude_fields_example'] # Array<String> | A list of fields to exclude from the response.
353
+ }
354
+
355
+ begin
356
+ #List user permissions
357
+ result = api_instance.my_permissions(deb_apt_publication_href, opts)
358
+ p result
359
+ rescue PulpDebClient::ApiError => e
360
+ puts "Exception when calling PublicationsAptApi->my_permissions: #{e}"
361
+ end
362
+ ```
363
+
364
+ ### Parameters
365
+
366
+
367
+ Name | Type | Description | Notes
368
+ ------------- | ------------- | ------------- | -------------
369
+ **deb_apt_publication_href** | **String**| |
370
+ **fields** | [**Array&lt;String&gt;**](String.md)| A list of fields to include in the response. | [optional]
371
+ **exclude_fields** | [**Array&lt;String&gt;**](String.md)| A list of fields to exclude from the response. | [optional]
372
+
373
+ ### Return type
374
+
375
+ [**MyPermissionsResponse**](MyPermissionsResponse.md)
376
+
377
+ ### Authorization
378
+
379
+ [basicAuth](../README.md#basicAuth)
380
+
381
+ ### HTTP request headers
382
+
383
+ - **Content-Type**: Not defined
384
+ - **Accept**: application/json
385
+
386
+
210
387
  ## read
211
388
 
212
389
  > DebAptPublicationResponse read(deb_apt_publication_href, opts)
@@ -265,3 +442,58 @@ Name | Type | Description | Notes
265
442
  - **Content-Type**: Not defined
266
443
  - **Accept**: application/json
267
444
 
445
+
446
+ ## remove_role
447
+
448
+ > NestedRoleResponse remove_role(deb_apt_publication_href, nested_role)
449
+
450
+ Remove a role
451
+
452
+ Remove a role for this object from users/groups.
453
+
454
+ ### Example
455
+
456
+ ```ruby
457
+ # load the gem
458
+ require 'pulp_deb_client'
459
+ # setup authorization
460
+ PulpDebClient.configure do |config|
461
+ # Configure HTTP basic authorization: basicAuth
462
+ config.username = 'YOUR USERNAME'
463
+ config.password = 'YOUR PASSWORD'
464
+ end
465
+
466
+ api_instance = PulpDebClient::PublicationsAptApi.new
467
+ deb_apt_publication_href = 'deb_apt_publication_href_example' # String |
468
+ nested_role = PulpDebClient::NestedRole.new # NestedRole |
469
+
470
+ begin
471
+ #Remove a role
472
+ result = api_instance.remove_role(deb_apt_publication_href, nested_role)
473
+ p result
474
+ rescue PulpDebClient::ApiError => e
475
+ puts "Exception when calling PublicationsAptApi->remove_role: #{e}"
476
+ end
477
+ ```
478
+
479
+ ### Parameters
480
+
481
+
482
+ Name | Type | Description | Notes
483
+ ------------- | ------------- | ------------- | -------------
484
+ **deb_apt_publication_href** | **String**| |
485
+ **nested_role** | [**NestedRole**](NestedRole.md)| |
486
+
487
+ ### Return type
488
+
489
+ [**NestedRoleResponse**](NestedRoleResponse.md)
490
+
491
+ ### Authorization
492
+
493
+ [basicAuth](../README.md#basicAuth)
494
+
495
+ ### HTTP request headers
496
+
497
+ - **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
498
+ - **Accept**: application/json
499
+
@@ -4,13 +4,72 @@ All URIs are relative to *http://localhost:24817*
4
4
 
5
5
  Method | HTTP request | Description
6
6
  ------------- | ------------- | -------------
7
+ [**add_role**](PublicationsVerbatimApi.md#add_role) | **POST** {deb_verbatim_publication_href}add_role/ | Add a role
7
8
  [**create**](PublicationsVerbatimApi.md#create) | **POST** /pulp/api/v3/publications/deb/verbatim/ | Create a verbatim publication
8
9
  [**delete**](PublicationsVerbatimApi.md#delete) | **DELETE** {deb_verbatim_publication_href} | Delete a verbatim publication
9
10
  [**list**](PublicationsVerbatimApi.md#list) | **GET** /pulp/api/v3/publications/deb/verbatim/ | List verbatim publications
11
+ [**list_roles**](PublicationsVerbatimApi.md#list_roles) | **GET** {deb_verbatim_publication_href}list_roles/ | List roles
12
+ [**my_permissions**](PublicationsVerbatimApi.md#my_permissions) | **GET** {deb_verbatim_publication_href}my_permissions/ | List user permissions
10
13
  [**read**](PublicationsVerbatimApi.md#read) | **GET** {deb_verbatim_publication_href} | Inspect a verbatim publication
14
+ [**remove_role**](PublicationsVerbatimApi.md#remove_role) | **POST** {deb_verbatim_publication_href}remove_role/ | Remove a role
11
15
 
12
16
 
13
17
 
18
+ ## add_role
19
+
20
+ > NestedRoleResponse add_role(deb_verbatim_publication_href, nested_role)
21
+
22
+ Add a role
23
+
24
+ Add a role for this object to users/groups.
25
+
26
+ ### Example
27
+
28
+ ```ruby
29
+ # load the gem
30
+ require 'pulp_deb_client'
31
+ # setup authorization
32
+ PulpDebClient.configure do |config|
33
+ # Configure HTTP basic authorization: basicAuth
34
+ config.username = 'YOUR USERNAME'
35
+ config.password = 'YOUR PASSWORD'
36
+ end
37
+
38
+ api_instance = PulpDebClient::PublicationsVerbatimApi.new
39
+ deb_verbatim_publication_href = 'deb_verbatim_publication_href_example' # String |
40
+ nested_role = PulpDebClient::NestedRole.new # NestedRole |
41
+
42
+ begin
43
+ #Add a role
44
+ result = api_instance.add_role(deb_verbatim_publication_href, nested_role)
45
+ p result
46
+ rescue PulpDebClient::ApiError => e
47
+ puts "Exception when calling PublicationsVerbatimApi->add_role: #{e}"
48
+ end
49
+ ```
50
+
51
+ ### Parameters
52
+
53
+
54
+ Name | Type | Description | Notes
55
+ ------------- | ------------- | ------------- | -------------
56
+ **deb_verbatim_publication_href** | **String**| |
57
+ **nested_role** | [**NestedRole**](NestedRole.md)| |
58
+
59
+ ### Return type
60
+
61
+ [**NestedRoleResponse**](NestedRoleResponse.md)
62
+
63
+ ### Authorization
64
+
65
+ [basicAuth](../README.md#basicAuth)
66
+
67
+ ### HTTP request headers
68
+
69
+ - **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
70
+ - **Accept**: application/json
71
+
72
+
14
73
  ## create
15
74
 
16
75
  > AsyncOperationResponse create(deb_verbatim_publication)
@@ -207,6 +266,124 @@ Name | Type | Description | Notes
207
266
  - **Accept**: application/json
208
267
 
209
268
 
269
+ ## list_roles
270
+
271
+ > ObjectRolesResponse list_roles(deb_verbatim_publication_href, opts)
272
+
273
+ List roles
274
+
275
+ List roles assigned to this object.
276
+
277
+ ### Example
278
+
279
+ ```ruby
280
+ # load the gem
281
+ require 'pulp_deb_client'
282
+ # setup authorization
283
+ PulpDebClient.configure do |config|
284
+ # Configure HTTP basic authorization: basicAuth
285
+ config.username = 'YOUR USERNAME'
286
+ config.password = 'YOUR PASSWORD'
287
+ end
288
+
289
+ api_instance = PulpDebClient::PublicationsVerbatimApi.new
290
+ deb_verbatim_publication_href = 'deb_verbatim_publication_href_example' # String |
291
+ opts = {
292
+ fields: ['fields_example'], # Array<String> | A list of fields to include in the response.
293
+ exclude_fields: ['exclude_fields_example'] # Array<String> | A list of fields to exclude from the response.
294
+ }
295
+
296
+ begin
297
+ #List roles
298
+ result = api_instance.list_roles(deb_verbatim_publication_href, opts)
299
+ p result
300
+ rescue PulpDebClient::ApiError => e
301
+ puts "Exception when calling PublicationsVerbatimApi->list_roles: #{e}"
302
+ end
303
+ ```
304
+
305
+ ### Parameters
306
+
307
+
308
+ Name | Type | Description | Notes
309
+ ------------- | ------------- | ------------- | -------------
310
+ **deb_verbatim_publication_href** | **String**| |
311
+ **fields** | [**Array&lt;String&gt;**](String.md)| A list of fields to include in the response. | [optional]
312
+ **exclude_fields** | [**Array&lt;String&gt;**](String.md)| A list of fields to exclude from the response. | [optional]
313
+
314
+ ### Return type
315
+
316
+ [**ObjectRolesResponse**](ObjectRolesResponse.md)
317
+
318
+ ### Authorization
319
+
320
+ [basicAuth](../README.md#basicAuth)
321
+
322
+ ### HTTP request headers
323
+
324
+ - **Content-Type**: Not defined
325
+ - **Accept**: application/json
326
+
327
+
328
+ ## my_permissions
329
+
330
+ > MyPermissionsResponse my_permissions(deb_verbatim_publication_href, opts)
331
+
332
+ List user permissions
333
+
334
+ List permissions available to the current user on this object.
335
+
336
+ ### Example
337
+
338
+ ```ruby
339
+ # load the gem
340
+ require 'pulp_deb_client'
341
+ # setup authorization
342
+ PulpDebClient.configure do |config|
343
+ # Configure HTTP basic authorization: basicAuth
344
+ config.username = 'YOUR USERNAME'
345
+ config.password = 'YOUR PASSWORD'
346
+ end
347
+
348
+ api_instance = PulpDebClient::PublicationsVerbatimApi.new
349
+ deb_verbatim_publication_href = 'deb_verbatim_publication_href_example' # String |
350
+ opts = {
351
+ fields: ['fields_example'], # Array<String> | A list of fields to include in the response.
352
+ exclude_fields: ['exclude_fields_example'] # Array<String> | A list of fields to exclude from the response.
353
+ }
354
+
355
+ begin
356
+ #List user permissions
357
+ result = api_instance.my_permissions(deb_verbatim_publication_href, opts)
358
+ p result
359
+ rescue PulpDebClient::ApiError => e
360
+ puts "Exception when calling PublicationsVerbatimApi->my_permissions: #{e}"
361
+ end
362
+ ```
363
+
364
+ ### Parameters
365
+
366
+
367
+ Name | Type | Description | Notes
368
+ ------------- | ------------- | ------------- | -------------
369
+ **deb_verbatim_publication_href** | **String**| |
370
+ **fields** | [**Array&lt;String&gt;**](String.md)| A list of fields to include in the response. | [optional]
371
+ **exclude_fields** | [**Array&lt;String&gt;**](String.md)| A list of fields to exclude from the response. | [optional]
372
+
373
+ ### Return type
374
+
375
+ [**MyPermissionsResponse**](MyPermissionsResponse.md)
376
+
377
+ ### Authorization
378
+
379
+ [basicAuth](../README.md#basicAuth)
380
+
381
+ ### HTTP request headers
382
+
383
+ - **Content-Type**: Not defined
384
+ - **Accept**: application/json
385
+
386
+
210
387
  ## read
211
388
 
212
389
  > DebVerbatimPublicationResponse read(deb_verbatim_publication_href, opts)
@@ -265,3 +442,58 @@ Name | Type | Description | Notes
265
442
  - **Content-Type**: Not defined
266
443
  - **Accept**: application/json
267
444
 
445
+
446
+ ## remove_role
447
+
448
+ > NestedRoleResponse remove_role(deb_verbatim_publication_href, nested_role)
449
+
450
+ Remove a role
451
+
452
+ Remove a role for this object from users/groups.
453
+
454
+ ### Example
455
+
456
+ ```ruby
457
+ # load the gem
458
+ require 'pulp_deb_client'
459
+ # setup authorization
460
+ PulpDebClient.configure do |config|
461
+ # Configure HTTP basic authorization: basicAuth
462
+ config.username = 'YOUR USERNAME'
463
+ config.password = 'YOUR PASSWORD'
464
+ end
465
+
466
+ api_instance = PulpDebClient::PublicationsVerbatimApi.new
467
+ deb_verbatim_publication_href = 'deb_verbatim_publication_href_example' # String |
468
+ nested_role = PulpDebClient::NestedRole.new # NestedRole |
469
+
470
+ begin
471
+ #Remove a role
472
+ result = api_instance.remove_role(deb_verbatim_publication_href, nested_role)
473
+ p result
474
+ rescue PulpDebClient::ApiError => e
475
+ puts "Exception when calling PublicationsVerbatimApi->remove_role: #{e}"
476
+ end
477
+ ```
478
+
479
+ ### Parameters
480
+
481
+
482
+ Name | Type | Description | Notes
483
+ ------------- | ------------- | ------------- | -------------
484
+ **deb_verbatim_publication_href** | **String**| |
485
+ **nested_role** | [**NestedRole**](NestedRole.md)| |
486
+
487
+ ### Return type
488
+
489
+ [**NestedRoleResponse**](NestedRoleResponse.md)
490
+
491
+ ### Authorization
492
+
493
+ [basicAuth](../README.md#basicAuth)
494
+
495
+ ### HTTP request headers
496
+
497
+ - **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
498
+ - **Accept**: application/json
499
+