pulpcore_client 3.65.0 → 3.66.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 (141) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +68 -4
  3. data/docs/AccessPoliciesApi.md +4 -4
  4. data/docs/ArtifactDistributionResponse.md +15 -15
  5. data/docs/ContentApi.md +4 -4
  6. data/docs/ContentOpenpgpPublickeyApi.md +212 -0
  7. data/docs/ContentOpenpgpPublicsubkeyApi.md +150 -0
  8. data/docs/ContentOpenpgpSignatureApi.md +150 -0
  9. data/docs/ContentOpenpgpUserattributeApi.md +150 -0
  10. data/docs/ContentOpenpgpUseridApi.md +166 -0
  11. data/docs/DistributionsApi.md +4 -4
  12. data/docs/DistributionsOpenpgpApi.md +478 -0
  13. data/docs/NestedOpenPGPPublicSubkey.md +19 -0
  14. data/docs/NestedOpenPGPPublicSubkeyResponse.md +21 -0
  15. data/docs/NestedOpenPGPSignature.md +27 -0
  16. data/docs/NestedOpenPGPSignatureResponse.md +29 -0
  17. data/docs/NestedOpenPGPUserAttribute.md +17 -0
  18. data/docs/NestedOpenPGPUserAttributeResponse.md +19 -0
  19. data/docs/NestedOpenPGPUserID.md +17 -0
  20. data/docs/NestedOpenPGPUserIDResponse.md +19 -0
  21. data/docs/OpenPGPDistribution.md +29 -0
  22. data/docs/OpenPGPDistributionResponse.md +41 -0
  23. data/docs/OpenPGPKeyring.md +25 -0
  24. data/docs/OpenPGPKeyringResponse.md +37 -0
  25. data/docs/OpenPGPPublicKey.md +23 -0
  26. data/docs/OpenPGPPublicKeyResponse.md +33 -0
  27. data/docs/OpenPGPPublicSubkeyResponse.md +31 -0
  28. data/docs/OpenPGPSignatureResponse.md +39 -0
  29. data/docs/OpenPGPUserAttributeResponse.md +29 -0
  30. data/docs/OpenPGPUserIDResponse.md +29 -0
  31. data/docs/PaginatedOpenPGPDistributionResponseList.md +23 -0
  32. data/docs/PaginatedOpenPGPKeyringResponseList.md +23 -0
  33. data/docs/PaginatedOpenPGPPublicKeyResponseList.md +23 -0
  34. data/docs/PaginatedOpenPGPPublicSubkeyResponseList.md +23 -0
  35. data/docs/PaginatedOpenPGPSignatureResponseList.md +23 -0
  36. data/docs/PaginatedOpenPGPUserAttributeResponseList.md +23 -0
  37. data/docs/PaginatedOpenPGPUserIDResponseList.md +23 -0
  38. data/docs/PatchedOpenPGPDistribution.md +29 -0
  39. data/docs/PatchedOpenPGPKeyring.md +25 -0
  40. data/docs/RepositoriesApi.md +4 -4
  41. data/docs/RepositoriesOpenpgpKeyringApi.md +802 -0
  42. data/docs/RepositoryAddRemoveContent.md +21 -0
  43. data/docs/SetLabel.md +19 -0
  44. data/docs/SetLabelResponse.md +19 -0
  45. data/docs/TasksApi.md +2 -2
  46. data/docs/UnsetLabel.md +17 -0
  47. data/docs/UnsetLabelResponse.md +19 -0
  48. data/lib/pulpcore_client/api/access_policies_api.rb +8 -8
  49. data/lib/pulpcore_client/api/content_api.rb +6 -6
  50. data/lib/pulpcore_client/api/content_openpgp_publickey_api.rb +266 -0
  51. data/lib/pulpcore_client/api/content_openpgp_publicsubkey_api.rb +192 -0
  52. data/lib/pulpcore_client/api/content_openpgp_signature_api.rb +192 -0
  53. data/lib/pulpcore_client/api/content_openpgp_userattribute_api.rb +192 -0
  54. data/lib/pulpcore_client/api/content_openpgp_userid_api.rb +216 -0
  55. data/lib/pulpcore_client/api/distributions_api.rb +6 -6
  56. data/lib/pulpcore_client/api/distributions_openpgp_api.rb +592 -0
  57. data/lib/pulpcore_client/api/repositories_api.rb +6 -6
  58. data/lib/pulpcore_client/api/repositories_openpgp_keyring_api.rb +992 -0
  59. data/lib/pulpcore_client/api/tasks_api.rb +3 -3
  60. data/lib/pulpcore_client/models/artifact_distribution_response.rb +69 -69
  61. data/lib/pulpcore_client/models/nested_open_pgp_public_subkey.rb +254 -0
  62. data/lib/pulpcore_client/models/nested_open_pgp_public_subkey_response.rb +256 -0
  63. data/lib/pulpcore_client/models/nested_open_pgp_signature.rb +305 -0
  64. data/lib/pulpcore_client/models/nested_open_pgp_signature_response.rb +290 -0
  65. data/lib/pulpcore_client/models/nested_open_pgp_user_attribute.rb +240 -0
  66. data/lib/pulpcore_client/models/nested_open_pgp_user_attribute_response.rb +242 -0
  67. data/lib/pulpcore_client/models/nested_open_pgp_user_id.rb +231 -0
  68. data/lib/pulpcore_client/models/nested_open_pgp_user_id_response.rb +223 -0
  69. data/lib/pulpcore_client/models/open_pgp_distribution.rb +322 -0
  70. data/lib/pulpcore_client/models/open_pgp_distribution_response.rb +343 -0
  71. data/lib/pulpcore_client/models/open_pgp_keyring.rb +306 -0
  72. data/lib/pulpcore_client/models/open_pgp_keyring_response.rb +329 -0
  73. data/lib/pulpcore_client/models/open_pgp_public_key.rb +253 -0
  74. data/lib/pulpcore_client/models/open_pgp_public_key_response.rb +303 -0
  75. data/lib/pulpcore_client/models/open_pgp_public_subkey_response.rb +304 -0
  76. data/lib/pulpcore_client/models/open_pgp_signature_response.rb +338 -0
  77. data/lib/pulpcore_client/models/open_pgp_user_attribute_response.rb +290 -0
  78. data/lib/pulpcore_client/models/open_pgp_user_id_response.rb +271 -0
  79. data/lib/pulpcore_client/models/paginated_open_pgp_distribution_response_list.rb +247 -0
  80. data/lib/pulpcore_client/models/paginated_open_pgp_keyring_response_list.rb +247 -0
  81. data/lib/pulpcore_client/models/paginated_open_pgp_public_key_response_list.rb +247 -0
  82. data/lib/pulpcore_client/models/paginated_open_pgp_public_subkey_response_list.rb +247 -0
  83. data/lib/pulpcore_client/models/paginated_open_pgp_signature_response_list.rb +247 -0
  84. data/lib/pulpcore_client/models/paginated_open_pgp_user_attribute_response_list.rb +247 -0
  85. data/lib/pulpcore_client/models/paginated_open_pgp_user_id_response_list.rb +247 -0
  86. data/lib/pulpcore_client/models/patched_open_pgp_distribution.rb +304 -0
  87. data/lib/pulpcore_client/models/patched_open_pgp_keyring.rb +297 -0
  88. data/lib/pulpcore_client/models/remote_response.rb +20 -20
  89. data/lib/pulpcore_client/models/repository_add_remove_content.rb +232 -0
  90. data/lib/pulpcore_client/models/set_label.rb +252 -0
  91. data/lib/pulpcore_client/models/set_label_response.rb +243 -0
  92. data/lib/pulpcore_client/models/unset_label.rb +242 -0
  93. data/lib/pulpcore_client/models/unset_label_response.rb +242 -0
  94. data/lib/pulpcore_client/version.rb +1 -1
  95. data/lib/pulpcore_client.rb +39 -0
  96. data/spec/api/access_policies_api_spec.rb +4 -4
  97. data/spec/api/content_api_spec.rb +2 -2
  98. data/spec/api/content_openpgp_publickey_api_spec.rb +89 -0
  99. data/spec/api/content_openpgp_publicsubkey_api_spec.rb +74 -0
  100. data/spec/api/content_openpgp_signature_api_spec.rb +74 -0
  101. data/spec/api/content_openpgp_userattribute_api_spec.rb +74 -0
  102. data/spec/api/content_openpgp_userid_api_spec.rb +82 -0
  103. data/spec/api/distributions_api_spec.rb +2 -2
  104. data/spec/api/distributions_openpgp_api_spec.rb +148 -0
  105. data/spec/api/repositories_api_spec.rb +2 -2
  106. data/spec/api/repositories_openpgp_keyring_api_spec.rb +233 -0
  107. data/spec/api/tasks_api_spec.rb +1 -1
  108. data/spec/models/artifact_distribution_response_spec.rb +10 -10
  109. data/spec/models/nested_open_pgp_public_subkey_response_spec.rb +53 -0
  110. data/spec/models/nested_open_pgp_public_subkey_spec.rb +47 -0
  111. data/spec/models/nested_open_pgp_signature_response_spec.rb +77 -0
  112. data/spec/models/nested_open_pgp_signature_spec.rb +71 -0
  113. data/spec/models/nested_open_pgp_user_attribute_response_spec.rb +47 -0
  114. data/spec/models/nested_open_pgp_user_attribute_spec.rb +41 -0
  115. data/spec/models/nested_open_pgp_user_id_response_spec.rb +47 -0
  116. data/spec/models/nested_open_pgp_user_id_spec.rb +41 -0
  117. data/spec/models/open_pgp_distribution_response_spec.rb +113 -0
  118. data/spec/models/open_pgp_distribution_spec.rb +77 -0
  119. data/spec/models/open_pgp_keyring_response_spec.rb +101 -0
  120. data/spec/models/open_pgp_keyring_spec.rb +65 -0
  121. data/spec/models/open_pgp_public_key_response_spec.rb +89 -0
  122. data/spec/models/open_pgp_public_key_spec.rb +59 -0
  123. data/spec/models/open_pgp_public_subkey_response_spec.rb +83 -0
  124. data/spec/models/open_pgp_signature_response_spec.rb +107 -0
  125. data/spec/models/open_pgp_user_attribute_response_spec.rb +77 -0
  126. data/spec/models/open_pgp_user_id_response_spec.rb +77 -0
  127. data/spec/models/paginated_open_pgp_distribution_response_list_spec.rb +59 -0
  128. data/spec/models/paginated_open_pgp_keyring_response_list_spec.rb +59 -0
  129. data/spec/models/paginated_open_pgp_public_key_response_list_spec.rb +59 -0
  130. data/spec/models/paginated_open_pgp_public_subkey_response_list_spec.rb +59 -0
  131. data/spec/models/paginated_open_pgp_signature_response_list_spec.rb +59 -0
  132. data/spec/models/paginated_open_pgp_user_attribute_response_list_spec.rb +59 -0
  133. data/spec/models/paginated_open_pgp_user_id_response_list_spec.rb +59 -0
  134. data/spec/models/patched_open_pgp_distribution_spec.rb +77 -0
  135. data/spec/models/patched_open_pgp_keyring_spec.rb +65 -0
  136. data/spec/models/repository_add_remove_content_spec.rb +53 -0
  137. data/spec/models/set_label_response_spec.rb +47 -0
  138. data/spec/models/set_label_spec.rb +47 -0
  139. data/spec/models/unset_label_response_spec.rb +47 -0
  140. data/spec/models/unset_label_spec.rb +41 -0
  141. metadata +314 -158
@@ -0,0 +1,21 @@
1
+ # PulpcoreClient::RepositoryAddRemoveContent
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **add_content_units** | **Array<String>** | A list of content units to add to a new repository version. This content is added after remove_content_units are removed. | [optional]
8
+ **remove_content_units** | **Array<String>** | A list of content units to remove from the latest repository version. You may also specify '*' as an entry to remove all content. This content is removed before add_content_units are added. | [optional]
9
+ **base_version** | **String** | A repository version whose content will be used as the initial set of content for the new repository version | [optional]
10
+
11
+ ## Code Sample
12
+
13
+ ```ruby
14
+ require 'PulpcoreClient'
15
+
16
+ instance = PulpcoreClient::RepositoryAddRemoveContent.new(add_content_units: null,
17
+ remove_content_units: null,
18
+ base_version: null)
19
+ ```
20
+
21
+
data/docs/SetLabel.md ADDED
@@ -0,0 +1,19 @@
1
+ # PulpcoreClient::SetLabel
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **key** | **String** | |
8
+ **value** | **String** | |
9
+
10
+ ## Code Sample
11
+
12
+ ```ruby
13
+ require 'PulpcoreClient'
14
+
15
+ instance = PulpcoreClient::SetLabel.new(key: null,
16
+ value: null)
17
+ ```
18
+
19
+
@@ -0,0 +1,19 @@
1
+ # PulpcoreClient::SetLabelResponse
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **key** | **String** | |
8
+ **value** | **String** | |
9
+
10
+ ## Code Sample
11
+
12
+ ```ruby
13
+ require 'PulpcoreClient'
14
+
15
+ instance = PulpcoreClient::SetLabelResponse.new(key: null,
16
+ value: null)
17
+ ```
18
+
19
+
data/docs/TasksApi.md CHANGED
@@ -164,7 +164,7 @@ opts = {
164
164
  name__in: ['name__in_example'], # Array<String> | Filter results where name is in a comma-separated list of values
165
165
  name__ne: 'name__ne_example', # String | Filter results where name not equal to value
166
166
  offset: 56, # Integer | The initial index from which to return the results.
167
- 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) * `state` - State * `-state` - State (descending) * `name` - Name * `-name` - Name (descending) * `logging_cid` - Logging cid * `-logging_cid` - Logging cid (descending) * `unblocked_at` - Unblocked at * `-unblocked_at` - Unblocked at (descending) * `started_at` - Started at * `-started_at` - Started at (descending) * `finished_at` - Finished at * `-finished_at` - Finished at (descending) * `error` - Error * `-error` - Error (descending) * `enc_args` - Enc args * `-enc_args` - Enc args (descending) * `enc_kwargs` - Enc kwargs * `-enc_kwargs` - Enc kwargs (descending) * `reserved_resources_record` - Reserved resources record * `-reserved_resources_record` - Reserved resources record (descending) * `versions` - Versions * `-versions` - Versions (descending) * `pk` - Pk * `-pk` - Pk (descending)
167
+ 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) * `state` - State * `-state` - State (descending) * `name` - Name * `-name` - Name (descending) * `logging_cid` - Logging cid * `-logging_cid` - Logging cid (descending) * `unblocked_at` - Unblocked at * `-unblocked_at` - Unblocked at (descending) * `started_at` - Started at * `-started_at` - Started at (descending) * `finished_at` - Finished at * `-finished_at` - Finished at (descending) * `error` - Error * `-error` - Error (descending) * `enc_args` - Enc args * `-enc_args` - Enc args (descending) * `enc_kwargs` - Enc kwargs * `-enc_kwargs` - Enc kwargs (descending) * `reserved_resources_record` - Reserved resources record * `-reserved_resources_record` - Reserved resources record (descending) * `versions` - Versions * `-versions` - Versions (descending) * `immediate` - Immediate * `-immediate` - Immediate (descending) * `deferred` - Deferred * `-deferred` - Deferred (descending) * `pk` - Pk * `-pk` - Pk (descending)
168
168
  parent_task: 'parent_task_example', # String | Filter results where parent_task matches value
169
169
  prn__in: ['prn__in_example'], # Array<String> | Multiple values may be separated by commas.
170
170
  pulp_href__in: ['pulp_href__in_example'], # Array<String> | Multiple values may be separated by commas.
@@ -223,7 +223,7 @@ Name | Type | Description | Notes
223
223
  **name__in** | [**Array&lt;String&gt;**](String.md)| Filter results where name is in a comma-separated list of values | [optional]
224
224
  **name__ne** | **String**| Filter results where name not equal to value | [optional]
225
225
  **offset** | **Integer**| The initial index from which to return the results. | [optional]
226
- **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;state&#x60; - State * &#x60;-state&#x60; - State (descending) * &#x60;name&#x60; - Name * &#x60;-name&#x60; - Name (descending) * &#x60;logging_cid&#x60; - Logging cid * &#x60;-logging_cid&#x60; - Logging cid (descending) * &#x60;unblocked_at&#x60; - Unblocked at * &#x60;-unblocked_at&#x60; - Unblocked at (descending) * &#x60;started_at&#x60; - Started at * &#x60;-started_at&#x60; - Started at (descending) * &#x60;finished_at&#x60; - Finished at * &#x60;-finished_at&#x60; - Finished at (descending) * &#x60;error&#x60; - Error * &#x60;-error&#x60; - Error (descending) * &#x60;enc_args&#x60; - Enc args * &#x60;-enc_args&#x60; - Enc args (descending) * &#x60;enc_kwargs&#x60; - Enc kwargs * &#x60;-enc_kwargs&#x60; - Enc kwargs (descending) * &#x60;reserved_resources_record&#x60; - Reserved resources record * &#x60;-reserved_resources_record&#x60; - Reserved resources record (descending) * &#x60;versions&#x60; - Versions * &#x60;-versions&#x60; - Versions (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending) | [optional]
226
+ **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;state&#x60; - State * &#x60;-state&#x60; - State (descending) * &#x60;name&#x60; - Name * &#x60;-name&#x60; - Name (descending) * &#x60;logging_cid&#x60; - Logging cid * &#x60;-logging_cid&#x60; - Logging cid (descending) * &#x60;unblocked_at&#x60; - Unblocked at * &#x60;-unblocked_at&#x60; - Unblocked at (descending) * &#x60;started_at&#x60; - Started at * &#x60;-started_at&#x60; - Started at (descending) * &#x60;finished_at&#x60; - Finished at * &#x60;-finished_at&#x60; - Finished at (descending) * &#x60;error&#x60; - Error * &#x60;-error&#x60; - Error (descending) * &#x60;enc_args&#x60; - Enc args * &#x60;-enc_args&#x60; - Enc args (descending) * &#x60;enc_kwargs&#x60; - Enc kwargs * &#x60;-enc_kwargs&#x60; - Enc kwargs (descending) * &#x60;reserved_resources_record&#x60; - Reserved resources record * &#x60;-reserved_resources_record&#x60; - Reserved resources record (descending) * &#x60;versions&#x60; - Versions * &#x60;-versions&#x60; - Versions (descending) * &#x60;immediate&#x60; - Immediate * &#x60;-immediate&#x60; - Immediate (descending) * &#x60;deferred&#x60; - Deferred * &#x60;-deferred&#x60; - Deferred (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending) | [optional]
227
227
  **parent_task** | [**String**](.md)| Filter results where parent_task matches value | [optional]
228
228
  **prn__in** | [**Array&lt;String&gt;**](String.md)| Multiple values may be separated by commas. | [optional]
229
229
  **pulp_href__in** | [**Array&lt;String&gt;**](String.md)| Multiple values may be separated by commas. | [optional]
@@ -0,0 +1,17 @@
1
+ # PulpcoreClient::UnsetLabel
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **key** | **String** | |
8
+
9
+ ## Code Sample
10
+
11
+ ```ruby
12
+ require 'PulpcoreClient'
13
+
14
+ instance = PulpcoreClient::UnsetLabel.new(key: null)
15
+ ```
16
+
17
+
@@ -0,0 +1,19 @@
1
+ # PulpcoreClient::UnsetLabelResponse
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **key** | **String** | |
8
+ **value** | **String** | | [optional] [readonly]
9
+
10
+ ## Code Sample
11
+
12
+ ```ruby
13
+ require 'PulpcoreClient'
14
+
15
+ instance = PulpcoreClient::UnsetLabelResponse.new(key: null,
16
+ value: null)
17
+ ```
18
+
19
+
@@ -20,7 +20,7 @@ module PulpcoreClient
20
20
  @api_client = api_client
21
21
  end
22
22
  # List access policys
23
- # ViewSet for AccessPolicy. NOTE: This API endpoint is in \"tech preview\" and subject to change
23
+ # ViewSet for AccessPolicy.
24
24
  # @param [Hash] opts the optional parameters
25
25
  # @option opts [Boolean] :customized Filter results where customized matches value
26
26
  # @option opts [Integer] :limit Number of results to return per page.
@@ -48,7 +48,7 @@ module PulpcoreClient
48
48
  end
49
49
 
50
50
  # List access policys
51
- # ViewSet for AccessPolicy. NOTE: This API endpoint is in \&quot;tech preview\&quot; and subject to change
51
+ # ViewSet for AccessPolicy.
52
52
  # @param [Hash] opts the optional parameters
53
53
  # @option opts [Boolean] :customized Filter results where customized matches value
54
54
  # @option opts [Integer] :limit Number of results to return per page.
@@ -137,7 +137,7 @@ module PulpcoreClient
137
137
  end
138
138
 
139
139
  # Update an access policy
140
- # ViewSet for AccessPolicy. NOTE: This API endpoint is in \"tech preview\" and subject to change
140
+ # ViewSet for AccessPolicy.
141
141
  # @param access_policy_href [String]
142
142
  # @param patched_access_policy [PatchedAccessPolicy]
143
143
  # @param [Hash] opts the optional parameters
@@ -148,7 +148,7 @@ module PulpcoreClient
148
148
  end
149
149
 
150
150
  # Update an access policy
151
- # ViewSet for AccessPolicy. NOTE: This API endpoint is in \&quot;tech preview\&quot; and subject to change
151
+ # ViewSet for AccessPolicy.
152
152
  # @param access_policy_href [String]
153
153
  # @param patched_access_policy [PatchedAccessPolicy]
154
154
  # @param [Hash] opts the optional parameters
@@ -207,7 +207,7 @@ module PulpcoreClient
207
207
  end
208
208
 
209
209
  # Inspect an access policy
210
- # ViewSet for AccessPolicy. NOTE: This API endpoint is in \"tech preview\" and subject to change
210
+ # ViewSet for AccessPolicy.
211
211
  # @param access_policy_href [String]
212
212
  # @param [Hash] opts the optional parameters
213
213
  # @option opts [Array<String>] :fields A list of fields to include in the response.
@@ -219,7 +219,7 @@ module PulpcoreClient
219
219
  end
220
220
 
221
221
  # Inspect an access policy
222
- # ViewSet for AccessPolicy. NOTE: This API endpoint is in \&quot;tech preview\&quot; and subject to change
222
+ # ViewSet for AccessPolicy.
223
223
  # @param access_policy_href [String]
224
224
  # @param [Hash] opts the optional parameters
225
225
  # @option opts [Array<String>] :fields A list of fields to include in the response.
@@ -335,7 +335,7 @@ module PulpcoreClient
335
335
  end
336
336
 
337
337
  # Update an access policy
338
- # ViewSet for AccessPolicy. NOTE: This API endpoint is in \"tech preview\" and subject to change
338
+ # ViewSet for AccessPolicy.
339
339
  # @param access_policy_href [String]
340
340
  # @param access_policy [AccessPolicy]
341
341
  # @param [Hash] opts the optional parameters
@@ -346,7 +346,7 @@ module PulpcoreClient
346
346
  end
347
347
 
348
348
  # Update an access policy
349
- # ViewSet for AccessPolicy. NOTE: This API endpoint is in \&quot;tech preview\&quot; and subject to change
349
+ # ViewSet for AccessPolicy.
350
350
  # @param access_policy_href [String]
351
351
  # @param access_policy [AccessPolicy]
352
352
  # @param [Hash] opts the optional parameters
@@ -29,8 +29,8 @@ module PulpcoreClient
29
29
  # @option opts [Array<String>] :prn__in Multiple values may be separated by commas.
30
30
  # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
31
31
  # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
32
- # @option opts [String] :pulp_type Pulp type * &#x60;core.publishedmetadata&#x60; - core.publishedmetadata * &#x60;file.file&#x60; - file.file
33
- # @option opts [Array<String>] :pulp_type__in Multiple values may be separated by commas. * &#x60;core.publishedmetadata&#x60; - core.publishedmetadata * &#x60;file.file&#x60; - file.file
32
+ # @option opts [String] :pulp_type Pulp type * &#x60;core.publishedmetadata&#x60; - core.publishedmetadata * &#x60;core.openpgp_publickey&#x60; - core.openpgp_publickey * &#x60;core.openpgp_publicsubkey&#x60; - core.openpgp_publicsubkey * &#x60;core.openpgp_userid&#x60; - core.openpgp_userid * &#x60;core.openpgp_userattribute&#x60; - core.openpgp_userattribute * &#x60;core.openpgp_signature&#x60; - core.openpgp_signature * &#x60;file.file&#x60; - file.file
33
+ # @option opts [Array<String>] :pulp_type__in Multiple values may be separated by commas. * &#x60;core.publishedmetadata&#x60; - core.publishedmetadata * &#x60;core.openpgp_publickey&#x60; - core.openpgp_publickey * &#x60;core.openpgp_publicsubkey&#x60; - core.openpgp_publicsubkey * &#x60;core.openpgp_userid&#x60; - core.openpgp_userid * &#x60;core.openpgp_userattribute&#x60; - core.openpgp_userattribute * &#x60;core.openpgp_signature&#x60; - core.openpgp_signature * &#x60;file.file&#x60; - file.file
34
34
  # @option opts [String] :q Filter results by using NOT, AND and OR operations on other filters
35
35
  # @option opts [String] :repository_version Repository Version referenced by HREF/PRN
36
36
  # @option opts [String] :repository_version_added Repository Version referenced by HREF/PRN
@@ -53,8 +53,8 @@ module PulpcoreClient
53
53
  # @option opts [Array<String>] :prn__in Multiple values may be separated by commas.
54
54
  # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
55
55
  # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
56
- # @option opts [String] :pulp_type Pulp type * &#x60;core.publishedmetadata&#x60; - core.publishedmetadata * &#x60;file.file&#x60; - file.file
57
- # @option opts [Array<String>] :pulp_type__in Multiple values may be separated by commas. * &#x60;core.publishedmetadata&#x60; - core.publishedmetadata * &#x60;file.file&#x60; - file.file
56
+ # @option opts [String] :pulp_type Pulp type * &#x60;core.publishedmetadata&#x60; - core.publishedmetadata * &#x60;core.openpgp_publickey&#x60; - core.openpgp_publickey * &#x60;core.openpgp_publicsubkey&#x60; - core.openpgp_publicsubkey * &#x60;core.openpgp_userid&#x60; - core.openpgp_userid * &#x60;core.openpgp_userattribute&#x60; - core.openpgp_userattribute * &#x60;core.openpgp_signature&#x60; - core.openpgp_signature * &#x60;file.file&#x60; - file.file
57
+ # @option opts [Array<String>] :pulp_type__in Multiple values may be separated by commas. * &#x60;core.publishedmetadata&#x60; - core.publishedmetadata * &#x60;core.openpgp_publickey&#x60; - core.openpgp_publickey * &#x60;core.openpgp_publicsubkey&#x60; - core.openpgp_publicsubkey * &#x60;core.openpgp_userid&#x60; - core.openpgp_userid * &#x60;core.openpgp_userattribute&#x60; - core.openpgp_userattribute * &#x60;core.openpgp_signature&#x60; - core.openpgp_signature * &#x60;file.file&#x60; - file.file
58
58
  # @option opts [String] :q Filter results by using NOT, AND and OR operations on other filters
59
59
  # @option opts [String] :repository_version Repository Version referenced by HREF/PRN
60
60
  # @option opts [String] :repository_version_added Repository Version referenced by HREF/PRN
@@ -70,11 +70,11 @@ module PulpcoreClient
70
70
  if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
71
71
  fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
72
72
  end
73
- allowable_values = ["core.publishedmetadata", "file.file"]
73
+ allowable_values = ["core.openpgp_publickey", "core.openpgp_publicsubkey", "core.openpgp_signature", "core.openpgp_userattribute", "core.openpgp_userid", "core.publishedmetadata", "file.file"]
74
74
  if @api_client.config.client_side_validation && opts[:'pulp_type'] && !allowable_values.include?(opts[:'pulp_type'])
75
75
  fail ArgumentError, "invalid value for \"pulp_type\", must be one of #{allowable_values}"
76
76
  end
77
- allowable_values = ["core.publishedmetadata", "file.file"]
77
+ allowable_values = ["core.openpgp_publickey", "core.openpgp_publicsubkey", "core.openpgp_signature", "core.openpgp_userattribute", "core.openpgp_userid", "core.publishedmetadata", "file.file"]
78
78
  if @api_client.config.client_side_validation && opts[:'pulp_type__in'] && !opts[:'pulp_type__in'].all? { |item| allowable_values.include?(item) }
79
79
  fail ArgumentError, "invalid value for \"pulp_type__in\", must include one of #{allowable_values}"
80
80
  end
@@ -0,0 +1,266 @@
1
+ =begin
2
+ #Pulp 3 API
3
+
4
+ #Fetch, Upload, Organize, and Distribute Software Packages
5
+
6
+ The version of the OpenAPI document: v3
7
+ Contact: pulp-list@redhat.com
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 4.3.1
10
+
11
+ =end
12
+
13
+ require 'cgi'
14
+
15
+ module PulpcoreClient
16
+ class ContentOpenpgpPublickeyApi
17
+ attr_accessor :api_client
18
+
19
+ def initialize(api_client = ApiClient.default)
20
+ @api_client = api_client
21
+ end
22
+ # Create an open pgp public key
23
+ # Trigger an asynchronous task to create content,optionally create new repository version.
24
+ # @param [Hash] opts the optional parameters
25
+ # @option opts [String] :repository A URI of a repository the new content unit should be associated with.
26
+ # @option opts [File] :file An uploaded file that may be turned into the content unit.
27
+ # @option opts [String] :upload An uncommitted upload that may be turned into the content unit.
28
+ # @option opts [String] :file_url A url that Pulp can download and turn into the content unit.
29
+ # @return [AsyncOperationResponse]
30
+ def create(opts = {})
31
+ data, _status_code, _headers = create_with_http_info(opts)
32
+ data
33
+ end
34
+
35
+ # Create an open pgp public key
36
+ # Trigger an asynchronous task to create content,optionally create new repository version.
37
+ # @param [Hash] opts the optional parameters
38
+ # @option opts [String] :repository A URI of a repository the new content unit should be associated with.
39
+ # @option opts [File] :file An uploaded file that may be turned into the content unit.
40
+ # @option opts [String] :upload An uncommitted upload that may be turned into the content unit.
41
+ # @option opts [String] :file_url A url that Pulp can download and turn into the content unit.
42
+ # @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
43
+ def create_with_http_info(opts = {})
44
+ if @api_client.config.debugging
45
+ @api_client.config.logger.debug 'Calling API: ContentOpenpgpPublickeyApi.create ...'
46
+ end
47
+ if @api_client.config.client_side_validation && !opts[:'file_url'].nil? && opts[:'file_url'].to_s.length < 1
48
+ fail ArgumentError, 'invalid value for "opts[:"file_url"]" when calling ContentOpenpgpPublickeyApi.create, the character length must be great than or equal to 1.'
49
+ end
50
+
51
+ # resource path
52
+ local_var_path = '/pulp/api/v3/content/core/openpgp_publickey/'
53
+
54
+ # query parameters
55
+ query_params = opts[:query_params] || {}
56
+
57
+ # header parameters
58
+ header_params = opts[:header_params] || {}
59
+ # HTTP header 'Accept' (if needed)
60
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
61
+ # HTTP header 'Content-Type'
62
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data', 'application/x-www-form-urlencoded'])
63
+
64
+ # form parameters
65
+ form_params = opts[:form_params] || {}
66
+ form_params['repository'] = opts[:'repository'] if !opts[:'repository'].nil?
67
+ form_params['file'] = opts[:'file'] if !opts[:'file'].nil?
68
+ form_params['upload'] = opts[:'upload'] if !opts[:'upload'].nil?
69
+ form_params['file_url'] = opts[:'file_url'] if !opts[:'file_url'].nil?
70
+
71
+ # http body (model)
72
+ post_body = opts[:body]
73
+
74
+ # return_type
75
+ return_type = opts[:return_type] || 'AsyncOperationResponse'
76
+
77
+ # auth_names
78
+ auth_names = opts[:auth_names] || ['basicAuth']
79
+
80
+ new_options = opts.merge(
81
+ :header_params => header_params,
82
+ :query_params => query_params,
83
+ :form_params => form_params,
84
+ :body => post_body,
85
+ :auth_names => auth_names,
86
+ :return_type => return_type
87
+ )
88
+
89
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
90
+ if @api_client.config.debugging
91
+ @api_client.config.logger.debug "API called: ContentOpenpgpPublickeyApi#create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
92
+ end
93
+ return data, status_code, headers
94
+ end
95
+
96
+ # List open pgp public keys
97
+ # A ViewSet for uploads that do not require to store an uploaded content as an Artifact.
98
+ # @param [Hash] opts the optional parameters
99
+ # @option opts [String] :fingerprint Filter results where fingerprint matches value
100
+ # @option opts [Integer] :limit Number of results to return per page.
101
+ # @option opts [Integer] :offset The initial index from which to return the results.
102
+ # @option opts [Array<String>] :ordering 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;upstream_id&#x60; - Upstream id * &#x60;-upstream_id&#x60; - Upstream id (descending) * &#x60;timestamp_of_interest&#x60; - Timestamp of interest * &#x60;-timestamp_of_interest&#x60; - Timestamp of interest (descending) * &#x60;raw_data&#x60; - Raw data * &#x60;-raw_data&#x60; - Raw data (descending) * &#x60;fingerprint&#x60; - Fingerprint * &#x60;-fingerprint&#x60; - Fingerprint (descending) * &#x60;created&#x60; - Created * &#x60;-created&#x60; - Created (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
103
+ # @option opts [Float] :orphaned_for Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME.
104
+ # @option opts [Array<String>] :prn__in Multiple values may be separated by commas.
105
+ # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
106
+ # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
107
+ # @option opts [String] :q Filter results by using NOT, AND and OR operations on other filters
108
+ # @option opts [String] :repository_version Repository Version referenced by HREF/PRN
109
+ # @option opts [String] :repository_version_added Repository Version referenced by HREF/PRN
110
+ # @option opts [String] :repository_version_removed Repository Version referenced by HREF/PRN
111
+ # @option opts [Array<String>] :fields A list of fields to include in the response.
112
+ # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
113
+ # @return [PaginatedOpenPGPPublicKeyResponseList]
114
+ def list(opts = {})
115
+ data, _status_code, _headers = list_with_http_info(opts)
116
+ data
117
+ end
118
+
119
+ # List open pgp public keys
120
+ # A ViewSet for uploads that do not require to store an uploaded content as an Artifact.
121
+ # @param [Hash] opts the optional parameters
122
+ # @option opts [String] :fingerprint Filter results where fingerprint matches value
123
+ # @option opts [Integer] :limit Number of results to return per page.
124
+ # @option opts [Integer] :offset The initial index from which to return the results.
125
+ # @option opts [Array<String>] :ordering 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;upstream_id&#x60; - Upstream id * &#x60;-upstream_id&#x60; - Upstream id (descending) * &#x60;timestamp_of_interest&#x60; - Timestamp of interest * &#x60;-timestamp_of_interest&#x60; - Timestamp of interest (descending) * &#x60;raw_data&#x60; - Raw data * &#x60;-raw_data&#x60; - Raw data (descending) * &#x60;fingerprint&#x60; - Fingerprint * &#x60;-fingerprint&#x60; - Fingerprint (descending) * &#x60;created&#x60; - Created * &#x60;-created&#x60; - Created (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
126
+ # @option opts [Float] :orphaned_for Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME.
127
+ # @option opts [Array<String>] :prn__in Multiple values may be separated by commas.
128
+ # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
129
+ # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
130
+ # @option opts [String] :q Filter results by using NOT, AND and OR operations on other filters
131
+ # @option opts [String] :repository_version Repository Version referenced by HREF/PRN
132
+ # @option opts [String] :repository_version_added Repository Version referenced by HREF/PRN
133
+ # @option opts [String] :repository_version_removed Repository Version referenced by HREF/PRN
134
+ # @option opts [Array<String>] :fields A list of fields to include in the response.
135
+ # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
136
+ # @return [Array<(PaginatedOpenPGPPublicKeyResponseList, Integer, Hash)>] PaginatedOpenPGPPublicKeyResponseList data, response status code and response headers
137
+ def list_with_http_info(opts = {})
138
+ if @api_client.config.debugging
139
+ @api_client.config.logger.debug 'Calling API: ContentOpenpgpPublickeyApi.list ...'
140
+ end
141
+ allowable_values = ["-created", "-fingerprint", "-pk", "-pulp_created", "-pulp_id", "-pulp_last_updated", "-pulp_type", "-raw_data", "-timestamp_of_interest", "-upstream_id", "created", "fingerprint", "pk", "pulp_created", "pulp_id", "pulp_last_updated", "pulp_type", "raw_data", "timestamp_of_interest", "upstream_id"]
142
+ if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
143
+ fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
144
+ end
145
+ # resource path
146
+ local_var_path = '/pulp/api/v3/content/core/openpgp_publickey/'
147
+
148
+ # query parameters
149
+ query_params = opts[:query_params] || {}
150
+ query_params[:'fingerprint'] = opts[:'fingerprint'] if !opts[:'fingerprint'].nil?
151
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
152
+ query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
153
+ query_params[:'ordering'] = @api_client.build_collection_param(opts[:'ordering'], :csv) if !opts[:'ordering'].nil?
154
+ query_params[:'orphaned_for'] = opts[:'orphaned_for'] if !opts[:'orphaned_for'].nil?
155
+ query_params[:'prn__in'] = @api_client.build_collection_param(opts[:'prn__in'], :csv) if !opts[:'prn__in'].nil?
156
+ query_params[:'pulp_href__in'] = @api_client.build_collection_param(opts[:'pulp_href__in'], :csv) if !opts[:'pulp_href__in'].nil?
157
+ query_params[:'pulp_id__in'] = @api_client.build_collection_param(opts[:'pulp_id__in'], :csv) if !opts[:'pulp_id__in'].nil?
158
+ query_params[:'q'] = opts[:'q'] if !opts[:'q'].nil?
159
+ query_params[:'repository_version'] = opts[:'repository_version'] if !opts[:'repository_version'].nil?
160
+ query_params[:'repository_version_added'] = opts[:'repository_version_added'] if !opts[:'repository_version_added'].nil?
161
+ query_params[:'repository_version_removed'] = opts[:'repository_version_removed'] if !opts[:'repository_version_removed'].nil?
162
+ query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
163
+ query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
164
+
165
+ # header parameters
166
+ header_params = opts[:header_params] || {}
167
+ # HTTP header 'Accept' (if needed)
168
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
169
+
170
+ # form parameters
171
+ form_params = opts[:form_params] || {}
172
+
173
+ # http body (model)
174
+ post_body = opts[:body]
175
+
176
+ # return_type
177
+ return_type = opts[:return_type] || 'PaginatedOpenPGPPublicKeyResponseList'
178
+
179
+ # auth_names
180
+ auth_names = opts[:auth_names] || ['basicAuth']
181
+
182
+ new_options = opts.merge(
183
+ :header_params => header_params,
184
+ :query_params => query_params,
185
+ :form_params => form_params,
186
+ :body => post_body,
187
+ :auth_names => auth_names,
188
+ :return_type => return_type
189
+ )
190
+
191
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
192
+ if @api_client.config.debugging
193
+ @api_client.config.logger.debug "API called: ContentOpenpgpPublickeyApi#list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
194
+ end
195
+ return data, status_code, headers
196
+ end
197
+
198
+ # Inspect an open pgp public key
199
+ # A ViewSet for uploads that do not require to store an uploaded content as an Artifact.
200
+ # @param open_p_g_p_public_key_href [String]
201
+ # @param [Hash] opts the optional parameters
202
+ # @option opts [Array<String>] :fields A list of fields to include in the response.
203
+ # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
204
+ # @return [OpenPGPPublicKeyResponse]
205
+ def read(open_p_g_p_public_key_href, opts = {})
206
+ data, _status_code, _headers = read_with_http_info(open_p_g_p_public_key_href, opts)
207
+ data
208
+ end
209
+
210
+ # Inspect an open pgp public key
211
+ # A ViewSet for uploads that do not require to store an uploaded content as an Artifact.
212
+ # @param open_p_g_p_public_key_href [String]
213
+ # @param [Hash] opts the optional parameters
214
+ # @option opts [Array<String>] :fields A list of fields to include in the response.
215
+ # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
216
+ # @return [Array<(OpenPGPPublicKeyResponse, Integer, Hash)>] OpenPGPPublicKeyResponse data, response status code and response headers
217
+ def read_with_http_info(open_p_g_p_public_key_href, opts = {})
218
+ if @api_client.config.debugging
219
+ @api_client.config.logger.debug 'Calling API: ContentOpenpgpPublickeyApi.read ...'
220
+ end
221
+ # verify the required parameter 'open_p_g_p_public_key_href' is set
222
+ if @api_client.config.client_side_validation && open_p_g_p_public_key_href.nil?
223
+ fail ArgumentError, "Missing the required parameter 'open_p_g_p_public_key_href' when calling ContentOpenpgpPublickeyApi.read"
224
+ end
225
+ # resource path
226
+ local_var_path = '{open_p_g_p_public_key_href}'.sub('{' + 'open_p_g_p_public_key_href' + '}', CGI.escape(open_p_g_p_public_key_href.to_s).gsub('%2F', '/'))
227
+
228
+ # query parameters
229
+ query_params = opts[:query_params] || {}
230
+ query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
231
+ query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
232
+
233
+ # header parameters
234
+ header_params = opts[:header_params] || {}
235
+ # HTTP header 'Accept' (if needed)
236
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
237
+
238
+ # form parameters
239
+ form_params = opts[:form_params] || {}
240
+
241
+ # http body (model)
242
+ post_body = opts[:body]
243
+
244
+ # return_type
245
+ return_type = opts[:return_type] || 'OpenPGPPublicKeyResponse'
246
+
247
+ # auth_names
248
+ auth_names = opts[:auth_names] || ['basicAuth']
249
+
250
+ new_options = opts.merge(
251
+ :header_params => header_params,
252
+ :query_params => query_params,
253
+ :form_params => form_params,
254
+ :body => post_body,
255
+ :auth_names => auth_names,
256
+ :return_type => return_type
257
+ )
258
+
259
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
260
+ if @api_client.config.debugging
261
+ @api_client.config.logger.debug "API called: ContentOpenpgpPublickeyApi#read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
262
+ end
263
+ return data, status_code, headers
264
+ end
265
+ end
266
+ end