pulp_deb_client 3.3.1 → 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 (134) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +28 -4
  3. data/docs/ContentGenericContentsApi.md +10 -8
  4. data/docs/ContentInstallerFileIndicesApi.md +10 -8
  5. data/docs/ContentInstallerPackagesApi.md +10 -8
  6. data/docs/ContentPackageIndicesApi.md +10 -8
  7. data/docs/ContentPackageReleaseComponentsApi.md +10 -8
  8. data/docs/ContentPackagesApi.md +10 -8
  9. data/docs/ContentReleaseArchitecturesApi.md +10 -8
  10. data/docs/ContentReleaseComponentsApi.md +10 -8
  11. data/docs/ContentReleaseFilesApi.md +10 -8
  12. data/docs/ContentReleasesApi.md +10 -8
  13. data/docs/ContentSourceIndicesApi.md +10 -8
  14. data/docs/ContentSourcePackagesApi.md +10 -8
  15. data/docs/ContentSourceReleaseComponentsApi.md +10 -8
  16. data/docs/DebAptDistributionResponse.md +4 -0
  17. data/docs/DebAptPublicationResponse.md +2 -0
  18. data/docs/DebAptRemoteResponse.md +2 -0
  19. data/docs/DebAptRepositoryResponse.md +2 -0
  20. data/docs/DebGenericContentResponse.md +2 -0
  21. data/docs/DebInstallerFileIndexResponse.md +2 -0
  22. data/docs/DebInstallerPackageResponse.md +2 -0
  23. data/docs/DebPackageIndexResponse.md +2 -0
  24. data/docs/DebPackageReleaseComponentResponse.md +2 -0
  25. data/docs/DebPackageResponse.md +2 -0
  26. data/docs/DebReleaseArchitectureResponse.md +2 -0
  27. data/docs/DebReleaseComponentResponse.md +5 -1
  28. data/docs/DebReleaseFileResponse.md +2 -0
  29. data/docs/DebReleaseResponse.md +2 -0
  30. data/docs/DebSourceIndexResponse.md +2 -0
  31. data/docs/DebSourcePackageReleaseComponentResponse.md +2 -0
  32. data/docs/DebSourcePackageResponse.md +4 -0
  33. data/docs/DebVerbatimPublicationResponse.md +2 -0
  34. data/docs/DistributionsAptApi.md +236 -2
  35. data/docs/MyPermissionsResponse.md +17 -0
  36. data/docs/NestedRole.md +21 -0
  37. data/docs/NestedRoleResponse.md +21 -0
  38. data/docs/ObjectRolesResponse.md +17 -0
  39. data/docs/PublicationsAptApi.md +244 -10
  40. data/docs/PublicationsVerbatimApi.md +244 -10
  41. data/docs/RemotesAptApi.md +236 -2
  42. data/docs/RepositoriesAptApi.md +240 -6
  43. data/docs/RepositoriesAptVersionsApi.md +8 -6
  44. data/docs/RepositoryVersionResponse.md +2 -0
  45. data/lib/pulp_deb_client/api/content_generic_contents_api.rb +11 -8
  46. data/lib/pulp_deb_client/api/content_installer_file_indices_api.rb +11 -8
  47. data/lib/pulp_deb_client/api/content_installer_packages_api.rb +11 -8
  48. data/lib/pulp_deb_client/api/content_package_indices_api.rb +11 -8
  49. data/lib/pulp_deb_client/api/content_package_release_components_api.rb +11 -8
  50. data/lib/pulp_deb_client/api/content_packages_api.rb +11 -8
  51. data/lib/pulp_deb_client/api/content_release_architectures_api.rb +11 -8
  52. data/lib/pulp_deb_client/api/content_release_components_api.rb +11 -8
  53. data/lib/pulp_deb_client/api/content_release_files_api.rb +11 -8
  54. data/lib/pulp_deb_client/api/content_releases_api.rb +11 -8
  55. data/lib/pulp_deb_client/api/content_source_indices_api.rb +11 -8
  56. data/lib/pulp_deb_client/api/content_source_packages_api.rb +11 -8
  57. data/lib/pulp_deb_client/api/content_source_release_components_api.rb +11 -8
  58. data/lib/pulp_deb_client/api/distributions_apt_api.rb +281 -2
  59. data/lib/pulp_deb_client/api/publications_apt_api.rb +290 -11
  60. data/lib/pulp_deb_client/api/publications_verbatim_api.rb +290 -11
  61. data/lib/pulp_deb_client/api/remotes_apt_api.rb +281 -2
  62. data/lib/pulp_deb_client/api/repositories_apt_api.rb +285 -6
  63. data/lib/pulp_deb_client/api/repositories_apt_versions_api.rb +10 -7
  64. data/lib/pulp_deb_client/models/deb_apt_distribution_response.rb +21 -1
  65. data/lib/pulp_deb_client/models/deb_apt_publication_response.rb +11 -1
  66. data/lib/pulp_deb_client/models/deb_apt_remote.rb +20 -20
  67. data/lib/pulp_deb_client/models/deb_apt_remote_response.rb +31 -21
  68. data/lib/pulp_deb_client/models/deb_apt_repository_response.rb +11 -1
  69. data/lib/pulp_deb_client/models/deb_generic_content_response.rb +11 -1
  70. data/lib/pulp_deb_client/models/deb_installer_file_index_response.rb +11 -1
  71. data/lib/pulp_deb_client/models/deb_installer_package_response.rb +11 -1
  72. data/lib/pulp_deb_client/models/deb_package_index_response.rb +11 -1
  73. data/lib/pulp_deb_client/models/deb_package_release_component_response.rb +11 -1
  74. data/lib/pulp_deb_client/models/deb_package_response.rb +11 -1
  75. data/lib/pulp_deb_client/models/deb_release_architecture_response.rb +11 -1
  76. data/lib/pulp_deb_client/models/deb_release_component_response.rb +24 -4
  77. data/lib/pulp_deb_client/models/deb_release_file_response.rb +11 -1
  78. data/lib/pulp_deb_client/models/deb_release_response.rb +11 -1
  79. data/lib/pulp_deb_client/models/deb_source_index_response.rb +11 -1
  80. data/lib/pulp_deb_client/models/deb_source_package_release_component_response.rb +11 -1
  81. data/lib/pulp_deb_client/models/deb_source_package_response.rb +21 -1
  82. data/lib/pulp_deb_client/models/deb_verbatim_publication_response.rb +11 -1
  83. data/lib/pulp_deb_client/models/my_permissions_response.rb +213 -0
  84. data/lib/pulp_deb_client/models/nested_role.rb +253 -0
  85. data/lib/pulp_deb_client/models/nested_role_response.rb +234 -0
  86. data/lib/pulp_deb_client/models/object_roles_response.rb +213 -0
  87. data/lib/pulp_deb_client/models/patcheddeb_apt_remote.rb +20 -20
  88. data/lib/pulp_deb_client/models/repository_add_remove_content.rb +1 -1
  89. data/lib/pulp_deb_client/models/repository_version_response.rb +12 -2
  90. data/lib/pulp_deb_client/version.rb +1 -1
  91. data/lib/pulp_deb_client.rb +4 -0
  92. data/spec/api/content_generic_contents_api_spec.rb +5 -4
  93. data/spec/api/content_installer_file_indices_api_spec.rb +5 -4
  94. data/spec/api/content_installer_packages_api_spec.rb +5 -4
  95. data/spec/api/content_package_indices_api_spec.rb +5 -4
  96. data/spec/api/content_package_release_components_api_spec.rb +5 -4
  97. data/spec/api/content_packages_api_spec.rb +5 -4
  98. data/spec/api/content_release_architectures_api_spec.rb +5 -4
  99. data/spec/api/content_release_components_api_spec.rb +5 -4
  100. data/spec/api/content_release_files_api_spec.rb +5 -4
  101. data/spec/api/content_releases_api_spec.rb +5 -4
  102. data/spec/api/content_source_indices_api_spec.rb +5 -4
  103. data/spec/api/content_source_packages_api_spec.rb +5 -4
  104. data/spec/api/content_source_release_components_api_spec.rb +5 -4
  105. data/spec/api/distributions_apt_api_spec.rb +56 -1
  106. data/spec/api/publications_apt_api_spec.rb +60 -5
  107. data/spec/api/publications_verbatim_api_spec.rb +60 -5
  108. data/spec/api/remotes_apt_api_spec.rb +56 -1
  109. data/spec/api/repositories_apt_api_spec.rb +58 -3
  110. data/spec/api/repositories_apt_versions_api_spec.rb +4 -3
  111. data/spec/models/deb_apt_distribution_response_spec.rb +12 -0
  112. data/spec/models/deb_apt_publication_response_spec.rb +6 -0
  113. data/spec/models/deb_apt_remote_response_spec.rb +6 -0
  114. data/spec/models/deb_apt_repository_response_spec.rb +6 -0
  115. data/spec/models/deb_generic_content_response_spec.rb +6 -0
  116. data/spec/models/deb_installer_file_index_response_spec.rb +6 -0
  117. data/spec/models/deb_installer_package_response_spec.rb +6 -0
  118. data/spec/models/deb_package_index_response_spec.rb +6 -0
  119. data/spec/models/deb_package_release_component_response_spec.rb +6 -0
  120. data/spec/models/deb_package_response_spec.rb +6 -0
  121. data/spec/models/deb_release_architecture_response_spec.rb +6 -0
  122. data/spec/models/deb_release_component_response_spec.rb +12 -0
  123. data/spec/models/deb_release_file_response_spec.rb +6 -0
  124. data/spec/models/deb_release_response_spec.rb +6 -0
  125. data/spec/models/deb_source_index_response_spec.rb +6 -0
  126. data/spec/models/deb_source_package_release_component_response_spec.rb +6 -0
  127. data/spec/models/deb_source_package_response_spec.rb +12 -0
  128. data/spec/models/deb_verbatim_publication_response_spec.rb +6 -0
  129. data/spec/models/my_permissions_response_spec.rb +41 -0
  130. data/spec/models/nested_role_response_spec.rb +53 -0
  131. data/spec/models/nested_role_spec.rb +53 -0
  132. data/spec/models/object_roles_response_spec.rb +41 -0
  133. data/spec/models/repository_version_response_spec.rb +6 -0
  134. metadata +91 -75
@@ -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**](DistributionsAptApi.md#add_role) | **POST** {deb_apt_distribution_href}add_role/ | Add a role
7
8
  [**create**](DistributionsAptApi.md#create) | **POST** /pulp/api/v3/distributions/deb/apt/ | Create an apt distribution
8
9
  [**delete**](DistributionsAptApi.md#delete) | **DELETE** {deb_apt_distribution_href} | Delete an apt distribution
9
10
  [**list**](DistributionsAptApi.md#list) | **GET** /pulp/api/v3/distributions/deb/apt/ | List apt distributions
11
+ [**list_roles**](DistributionsAptApi.md#list_roles) | **GET** {deb_apt_distribution_href}list_roles/ | List roles
12
+ [**my_permissions**](DistributionsAptApi.md#my_permissions) | **GET** {deb_apt_distribution_href}my_permissions/ | List user permissions
10
13
  [**partial_update**](DistributionsAptApi.md#partial_update) | **PATCH** {deb_apt_distribution_href} | Update an apt distribution
11
14
  [**read**](DistributionsAptApi.md#read) | **GET** {deb_apt_distribution_href} | Inspect an apt distribution
15
+ [**remove_role**](DistributionsAptApi.md#remove_role) | **POST** {deb_apt_distribution_href}remove_role/ | Remove a role
12
16
  [**set_label**](DistributionsAptApi.md#set_label) | **POST** {deb_apt_distribution_href}set_label/ | Set a label
13
17
  [**unset_label**](DistributionsAptApi.md#unset_label) | **POST** {deb_apt_distribution_href}unset_label/ | Unset a label
14
18
  [**update**](DistributionsAptApi.md#update) | **PUT** {deb_apt_distribution_href} | Update an apt distribution
15
19
 
16
20
 
17
21
 
22
+ ## add_role
23
+
24
+ > NestedRoleResponse add_role(deb_apt_distribution_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::DistributionsAptApi.new
43
+ deb_apt_distribution_href = 'deb_apt_distribution_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_distribution_href, nested_role)
49
+ p result
50
+ rescue PulpDebClient::ApiError => e
51
+ puts "Exception when calling DistributionsAptApi->add_role: #{e}"
52
+ end
53
+ ```
54
+
55
+ ### Parameters
56
+
57
+
58
+ Name | Type | Description | Notes
59
+ ------------- | ------------- | ------------- | -------------
60
+ **deb_apt_distribution_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
  > AsyncOperationResponse create(deb_apt_distribution)
@@ -159,10 +218,11 @@ opts = {
159
218
  name__startswith: 'name__startswith_example', # String | Filter results where name starts with value
160
219
  offset: 56, # Integer | The initial index from which to return the results.
161
220
  ordering: ['ordering_example'], # Array<String> | 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) * `name` - Name * `-name` - Name (descending) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `base_path` - Base path * `-base_path` - Base path (descending) * `hidden` - Hidden * `-hidden` - Hidden (descending) * `pk` - Pk * `-pk` - Pk (descending)
221
+ prn__in: ['prn__in_example'], # Array<String> | Multiple values may be separated by commas.
162
222
  pulp_href__in: ['pulp_href__in_example'], # Array<String> | Multiple values may be separated by commas.
163
223
  pulp_id__in: ['pulp_id__in_example'], # Array<String> | Multiple values may be separated by commas.
164
224
  pulp_label_select: 'pulp_label_select_example', # String | Filter labels by search string
165
- q: 'q_example', # String |
225
+ q: 'q_example', # String | Filter results by using NOT, AND and OR operations on other filters
166
226
  repository: 'repository_example', # String | Filter results where repository matches value
167
227
  repository__in: ['repository__in_example'], # Array<String> | Filter results where repository is in a comma-separated list of values
168
228
  with_content: 'with_content_example', # String | Filter distributions based on the content served by them
@@ -200,10 +260,11 @@ Name | Type | Description | Notes
200
260
  **name__startswith** | **String**| Filter results where name starts with value | [optional]
201
261
  **offset** | **Integer**| The initial index from which to return the results. | [optional]
202
262
  **ordering** | [**Array&lt;String&gt;**](String.md)| Ordering * &#x60;pulp_id&#x60; - Pulp id * &#x60;-pulp_id&#x60; - Pulp id (descending) * &#x60;pulp_created&#x60; - Pulp created * &#x60;-pulp_created&#x60; - Pulp created (descending) * &#x60;pulp_last_updated&#x60; - Pulp last updated * &#x60;-pulp_last_updated&#x60; - Pulp last updated (descending) * &#x60;pulp_type&#x60; - Pulp type * &#x60;-pulp_type&#x60; - Pulp type (descending) * &#x60;name&#x60; - Name * &#x60;-name&#x60; - Name (descending) * &#x60;pulp_labels&#x60; - Pulp labels * &#x60;-pulp_labels&#x60; - Pulp labels (descending) * &#x60;base_path&#x60; - Base path * &#x60;-base_path&#x60; - Base path (descending) * &#x60;hidden&#x60; - Hidden * &#x60;-hidden&#x60; - Hidden (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending) | [optional]
263
+ **prn__in** | [**Array&lt;String&gt;**](String.md)| Multiple values may be separated by commas. | [optional]
203
264
  **pulp_href__in** | [**Array&lt;String&gt;**](String.md)| Multiple values may be separated by commas. | [optional]
204
265
  **pulp_id__in** | [**Array&lt;String&gt;**](String.md)| Multiple values may be separated by commas. | [optional]
205
266
  **pulp_label_select** | **String**| Filter labels by search string | [optional]
206
- **q** | **String**| | [optional]
267
+ **q** | **String**| Filter results by using NOT, AND and OR operations on other filters | [optional]
207
268
  **repository** | [**String**](.md)| Filter results where repository matches value | [optional]
208
269
  **repository__in** | [**Array&lt;String&gt;**](String.md)| Filter results where repository is in a comma-separated list of values | [optional]
209
270
  **with_content** | **String**| Filter distributions based on the content served by them | [optional]
@@ -224,6 +285,124 @@ Name | Type | Description | Notes
224
285
  - **Accept**: application/json
225
286
 
226
287
 
288
+ ## list_roles
289
+
290
+ > ObjectRolesResponse list_roles(deb_apt_distribution_href, opts)
291
+
292
+ List roles
293
+
294
+ List roles assigned to this object.
295
+
296
+ ### Example
297
+
298
+ ```ruby
299
+ # load the gem
300
+ require 'pulp_deb_client'
301
+ # setup authorization
302
+ PulpDebClient.configure do |config|
303
+ # Configure HTTP basic authorization: basicAuth
304
+ config.username = 'YOUR USERNAME'
305
+ config.password = 'YOUR PASSWORD'
306
+ end
307
+
308
+ api_instance = PulpDebClient::DistributionsAptApi.new
309
+ deb_apt_distribution_href = 'deb_apt_distribution_href_example' # String |
310
+ opts = {
311
+ fields: ['fields_example'], # Array<String> | A list of fields to include in the response.
312
+ exclude_fields: ['exclude_fields_example'] # Array<String> | A list of fields to exclude from the response.
313
+ }
314
+
315
+ begin
316
+ #List roles
317
+ result = api_instance.list_roles(deb_apt_distribution_href, opts)
318
+ p result
319
+ rescue PulpDebClient::ApiError => e
320
+ puts "Exception when calling DistributionsAptApi->list_roles: #{e}"
321
+ end
322
+ ```
323
+
324
+ ### Parameters
325
+
326
+
327
+ Name | Type | Description | Notes
328
+ ------------- | ------------- | ------------- | -------------
329
+ **deb_apt_distribution_href** | **String**| |
330
+ **fields** | [**Array&lt;String&gt;**](String.md)| A list of fields to include in the response. | [optional]
331
+ **exclude_fields** | [**Array&lt;String&gt;**](String.md)| A list of fields to exclude from the response. | [optional]
332
+
333
+ ### Return type
334
+
335
+ [**ObjectRolesResponse**](ObjectRolesResponse.md)
336
+
337
+ ### Authorization
338
+
339
+ [basicAuth](../README.md#basicAuth)
340
+
341
+ ### HTTP request headers
342
+
343
+ - **Content-Type**: Not defined
344
+ - **Accept**: application/json
345
+
346
+
347
+ ## my_permissions
348
+
349
+ > MyPermissionsResponse my_permissions(deb_apt_distribution_href, opts)
350
+
351
+ List user permissions
352
+
353
+ List permissions available to the current user on this object.
354
+
355
+ ### Example
356
+
357
+ ```ruby
358
+ # load the gem
359
+ require 'pulp_deb_client'
360
+ # setup authorization
361
+ PulpDebClient.configure do |config|
362
+ # Configure HTTP basic authorization: basicAuth
363
+ config.username = 'YOUR USERNAME'
364
+ config.password = 'YOUR PASSWORD'
365
+ end
366
+
367
+ api_instance = PulpDebClient::DistributionsAptApi.new
368
+ deb_apt_distribution_href = 'deb_apt_distribution_href_example' # String |
369
+ opts = {
370
+ fields: ['fields_example'], # Array<String> | A list of fields to include in the response.
371
+ exclude_fields: ['exclude_fields_example'] # Array<String> | A list of fields to exclude from the response.
372
+ }
373
+
374
+ begin
375
+ #List user permissions
376
+ result = api_instance.my_permissions(deb_apt_distribution_href, opts)
377
+ p result
378
+ rescue PulpDebClient::ApiError => e
379
+ puts "Exception when calling DistributionsAptApi->my_permissions: #{e}"
380
+ end
381
+ ```
382
+
383
+ ### Parameters
384
+
385
+
386
+ Name | Type | Description | Notes
387
+ ------------- | ------------- | ------------- | -------------
388
+ **deb_apt_distribution_href** | **String**| |
389
+ **fields** | [**Array&lt;String&gt;**](String.md)| A list of fields to include in the response. | [optional]
390
+ **exclude_fields** | [**Array&lt;String&gt;**](String.md)| A list of fields to exclude from the response. | [optional]
391
+
392
+ ### Return type
393
+
394
+ [**MyPermissionsResponse**](MyPermissionsResponse.md)
395
+
396
+ ### Authorization
397
+
398
+ [basicAuth](../README.md#basicAuth)
399
+
400
+ ### HTTP request headers
401
+
402
+ - **Content-Type**: Not defined
403
+ - **Accept**: application/json
404
+
405
+
227
406
  ## partial_update
228
407
 
229
408
  > AsyncOperationResponse partial_update(deb_apt_distribution_href, patcheddeb_apt_distribution)
@@ -338,6 +517,61 @@ Name | Type | Description | Notes
338
517
  - **Accept**: application/json
339
518
 
340
519
 
520
+ ## remove_role
521
+
522
+ > NestedRoleResponse remove_role(deb_apt_distribution_href, nested_role)
523
+
524
+ Remove a role
525
+
526
+ Remove a role for this object from users/groups.
527
+
528
+ ### Example
529
+
530
+ ```ruby
531
+ # load the gem
532
+ require 'pulp_deb_client'
533
+ # setup authorization
534
+ PulpDebClient.configure do |config|
535
+ # Configure HTTP basic authorization: basicAuth
536
+ config.username = 'YOUR USERNAME'
537
+ config.password = 'YOUR PASSWORD'
538
+ end
539
+
540
+ api_instance = PulpDebClient::DistributionsAptApi.new
541
+ deb_apt_distribution_href = 'deb_apt_distribution_href_example' # String |
542
+ nested_role = PulpDebClient::NestedRole.new # NestedRole |
543
+
544
+ begin
545
+ #Remove a role
546
+ result = api_instance.remove_role(deb_apt_distribution_href, nested_role)
547
+ p result
548
+ rescue PulpDebClient::ApiError => e
549
+ puts "Exception when calling DistributionsAptApi->remove_role: #{e}"
550
+ end
551
+ ```
552
+
553
+ ### Parameters
554
+
555
+
556
+ Name | Type | Description | Notes
557
+ ------------- | ------------- | ------------- | -------------
558
+ **deb_apt_distribution_href** | **String**| |
559
+ **nested_role** | [**NestedRole**](NestedRole.md)| |
560
+
561
+ ### Return type
562
+
563
+ [**NestedRoleResponse**](NestedRoleResponse.md)
564
+
565
+ ### Authorization
566
+
567
+ [basicAuth](../README.md#basicAuth)
568
+
569
+ ### HTTP request headers
570
+
571
+ - **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
572
+ - **Accept**: application/json
573
+
574
+
341
575
  ## set_label
342
576
 
343
577
  > SetLabelResponse set_label(deb_apt_distribution_href, set_label)
@@ -0,0 +1,17 @@
1
+ # PulpDebClient::MyPermissionsResponse
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **permissions** | **Array&lt;String&gt;** | |
8
+
9
+ ## Code Sample
10
+
11
+ ```ruby
12
+ require 'PulpDebClient'
13
+
14
+ instance = PulpDebClient::MyPermissionsResponse.new(permissions: null)
15
+ ```
16
+
17
+
@@ -0,0 +1,21 @@
1
+ # PulpDebClient::NestedRole
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **users** | **Array&lt;String&gt;** | | [optional]
8
+ **groups** | **Array&lt;String&gt;** | | [optional]
9
+ **role** | **String** | |
10
+
11
+ ## Code Sample
12
+
13
+ ```ruby
14
+ require 'PulpDebClient'
15
+
16
+ instance = PulpDebClient::NestedRole.new(users: null,
17
+ groups: null,
18
+ role: null)
19
+ ```
20
+
21
+
@@ -0,0 +1,21 @@
1
+ # PulpDebClient::NestedRoleResponse
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **users** | **Array&lt;String&gt;** | | [optional]
8
+ **groups** | **Array&lt;String&gt;** | | [optional]
9
+ **role** | **String** | |
10
+
11
+ ## Code Sample
12
+
13
+ ```ruby
14
+ require 'PulpDebClient'
15
+
16
+ instance = PulpDebClient::NestedRoleResponse.new(users: null,
17
+ groups: null,
18
+ role: null)
19
+ ```
20
+
21
+
@@ -0,0 +1,17 @@
1
+ # PulpDebClient::ObjectRolesResponse
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **roles** | [**Array&lt;NestedRoleResponse&gt;**](NestedRoleResponse.md) | |
8
+
9
+ ## Code Sample
10
+
11
+ ```ruby
12
+ require 'PulpDebClient'
13
+
14
+ instance = PulpDebClient::ObjectRolesResponse.new(roles: null)
15
+ ```
16
+
17
+
@@ -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)
@@ -138,11 +197,12 @@ end
138
197
 
139
198
  api_instance = PulpDebClient::PublicationsAptApi.new
140
199
  opts = {
141
- content: 'content_example', # String | Content Unit referenced by HREF
142
- content__in: 'content__in_example', # String | Content Unit referenced by HREF
200
+ content: 'content_example', # String | Content Unit referenced by HREF/PRN
201
+ content__in: ['content__in_example'], # Array<String> | Multiple values may be separated by commas.
143
202
  limit: 56, # Integer | Number of results to return per page.
144
203
  offset: 56, # Integer | The initial index from which to return the results.
145
204
  ordering: ['ordering_example'], # Array<String> | 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) * `complete` - Complete * `-complete` - Complete (descending) * `pass_through` - Pass through * `-pass_through` - Pass through (descending) * `pk` - Pk * `-pk` - Pk (descending)
205
+ prn__in: ['prn__in_example'], # Array<String> | Multiple values may be separated by commas.
146
206
  pulp_created: DateTime.parse('2013-10-20T19:20:30+01:00'), # DateTime | Filter results where pulp_created matches value
147
207
  pulp_created__gt: DateTime.parse('2013-10-20T19:20:30+01:00'), # DateTime | Filter results where pulp_created is greater than value
148
208
  pulp_created__gte: DateTime.parse('2013-10-20T19:20:30+01:00'), # DateTime | Filter results where pulp_created is greater than or equal to value
@@ -151,9 +211,9 @@ opts = {
151
211
  pulp_created__range: [DateTime.parse('2013-10-20T19:20:30+01:00')], # Array<DateTime> | Filter results where pulp_created is between two comma separated values
152
212
  pulp_href__in: ['pulp_href__in_example'], # Array<String> | Multiple values may be separated by commas.
153
213
  pulp_id__in: ['pulp_id__in_example'], # Array<String> | Multiple values may be separated by commas.
154
- q: 'q_example', # String |
155
- repository: 'repository_example', # String | Repository referenced by HREF
156
- repository_version: 'repository_version_example', # String | Repository Version referenced by HREF
214
+ q: 'q_example', # String | Filter results by using NOT, AND and OR operations on other filters
215
+ repository: 'repository_example', # String | Repository referenced by HREF/PRN
216
+ repository_version: 'repository_version_example', # String | Repository Version referenced by HREF/PRN
157
217
  fields: ['fields_example'], # Array<String> | A list of fields to include in the response.
158
218
  exclude_fields: ['exclude_fields_example'] # Array<String> | A list of fields to exclude from the response.
159
219
  }
@@ -172,11 +232,12 @@ end
172
232
 
173
233
  Name | Type | Description | Notes
174
234
  ------------- | ------------- | ------------- | -------------
175
- **content** | **String**| Content Unit referenced by HREF | [optional]
176
- **content__in** | **String**| Content Unit referenced by HREF | [optional]
235
+ **content** | **String**| Content Unit referenced by HREF/PRN | [optional]
236
+ **content__in** | [**Array&lt;String&gt;**](String.md)| Multiple values may be separated by commas. | [optional]
177
237
  **limit** | **Integer**| Number of results to return per page. | [optional]
178
238
  **offset** | **Integer**| The initial index from which to return the results. | [optional]
179
239
  **ordering** | [**Array&lt;String&gt;**](String.md)| Ordering * &#x60;pulp_id&#x60; - Pulp id * &#x60;-pulp_id&#x60; - Pulp id (descending) * &#x60;pulp_created&#x60; - Pulp created * &#x60;-pulp_created&#x60; - Pulp created (descending) * &#x60;pulp_last_updated&#x60; - Pulp last updated * &#x60;-pulp_last_updated&#x60; - Pulp last updated (descending) * &#x60;pulp_type&#x60; - Pulp type * &#x60;-pulp_type&#x60; - Pulp type (descending) * &#x60;complete&#x60; - Complete * &#x60;-complete&#x60; - Complete (descending) * &#x60;pass_through&#x60; - Pass through * &#x60;-pass_through&#x60; - Pass through (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending) | [optional]
240
+ **prn__in** | [**Array&lt;String&gt;**](String.md)| Multiple values may be separated by commas. | [optional]
180
241
  **pulp_created** | **DateTime**| Filter results where pulp_created matches value | [optional]
181
242
  **pulp_created__gt** | **DateTime**| Filter results where pulp_created is greater than value | [optional]
182
243
  **pulp_created__gte** | **DateTime**| Filter results where pulp_created is greater than or equal to value | [optional]
@@ -185,9 +246,9 @@ Name | Type | Description | Notes
185
246
  **pulp_created__range** | [**Array&lt;DateTime&gt;**](DateTime.md)| Filter results where pulp_created is between two comma separated values | [optional]
186
247
  **pulp_href__in** | [**Array&lt;String&gt;**](String.md)| Multiple values may be separated by commas. | [optional]
187
248
  **pulp_id__in** | [**Array&lt;String&gt;**](String.md)| Multiple values may be separated by commas. | [optional]
188
- **q** | **String**| | [optional]
189
- **repository** | **String**| Repository referenced by HREF | [optional]
190
- **repository_version** | [**String**](.md)| Repository Version referenced by HREF | [optional]
249
+ **q** | **String**| Filter results by using NOT, AND and OR operations on other filters | [optional]
250
+ **repository** | **String**| Repository referenced by HREF/PRN | [optional]
251
+ **repository_version** | [**String**](.md)| Repository Version referenced by HREF/PRN | [optional]
191
252
  **fields** | [**Array&lt;String&gt;**](String.md)| A list of fields to include in the response. | [optional]
192
253
  **exclude_fields** | [**Array&lt;String&gt;**](String.md)| A list of fields to exclude from the response. | [optional]
193
254
 
@@ -205,6 +266,124 @@ Name | Type | Description | Notes
205
266
  - **Accept**: application/json
206
267
 
207
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
+
208
387
  ## read
209
388
 
210
389
  > DebAptPublicationResponse read(deb_apt_publication_href, opts)
@@ -263,3 +442,58 @@ Name | Type | Description | Notes
263
442
  - **Content-Type**: Not defined
264
443
  - **Accept**: application/json
265
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
+