pulpcore_client 3.65.0 → 3.66.0

Sign up to get free protection for your applications and to get access to all the features.
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,478 @@
1
+ # PulpcoreClient::DistributionsOpenpgpApi
2
+
3
+ All URIs are relative to *http://localhost:24817*
4
+
5
+ Method | HTTP request | Description
6
+ ------------- | ------------- | -------------
7
+ [**create**](DistributionsOpenpgpApi.md#create) | **POST** /pulp/api/v3/distributions/core/openpgp/ | Create an open pgp distribution
8
+ [**delete**](DistributionsOpenpgpApi.md#delete) | **DELETE** {open_p_g_p_distribution_href} | Delete an open pgp distribution
9
+ [**list**](DistributionsOpenpgpApi.md#list) | **GET** /pulp/api/v3/distributions/core/openpgp/ | List open pgp distributions
10
+ [**partial_update**](DistributionsOpenpgpApi.md#partial_update) | **PATCH** {open_p_g_p_distribution_href} | Update an open pgp distribution
11
+ [**read**](DistributionsOpenpgpApi.md#read) | **GET** {open_p_g_p_distribution_href} | Inspect an open pgp distribution
12
+ [**set_label**](DistributionsOpenpgpApi.md#set_label) | **POST** {open_p_g_p_distribution_href}set_label/ | Set a label
13
+ [**unset_label**](DistributionsOpenpgpApi.md#unset_label) | **POST** {open_p_g_p_distribution_href}unset_label/ | Unset a label
14
+ [**update**](DistributionsOpenpgpApi.md#update) | **PUT** {open_p_g_p_distribution_href} | Update an open pgp distribution
15
+
16
+
17
+
18
+ ## create
19
+
20
+ > AsyncOperationResponse create(open_pgp_distribution)
21
+
22
+ Create an open pgp distribution
23
+
24
+ Trigger an asynchronous create task
25
+
26
+ ### Example
27
+
28
+ ```ruby
29
+ # load the gem
30
+ require 'pulpcore_client'
31
+ # setup authorization
32
+ PulpcoreClient.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 = PulpcoreClient::DistributionsOpenpgpApi.new
39
+ open_pgp_distribution = PulpcoreClient::OpenPGPDistribution.new # OpenPGPDistribution |
40
+
41
+ begin
42
+ #Create an open pgp distribution
43
+ result = api_instance.create(open_pgp_distribution)
44
+ p result
45
+ rescue PulpcoreClient::ApiError => e
46
+ puts "Exception when calling DistributionsOpenpgpApi->create: #{e}"
47
+ end
48
+ ```
49
+
50
+ ### Parameters
51
+
52
+
53
+ Name | Type | Description | Notes
54
+ ------------- | ------------- | ------------- | -------------
55
+ **open_pgp_distribution** | [**OpenPGPDistribution**](OpenPGPDistribution.md)| |
56
+
57
+ ### Return type
58
+
59
+ [**AsyncOperationResponse**](AsyncOperationResponse.md)
60
+
61
+ ### Authorization
62
+
63
+ [basicAuth](../README.md#basicAuth)
64
+
65
+ ### HTTP request headers
66
+
67
+ - **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
68
+ - **Accept**: application/json
69
+
70
+
71
+ ## delete
72
+
73
+ > AsyncOperationResponse delete(open_p_g_p_distribution_href)
74
+
75
+ Delete an open pgp distribution
76
+
77
+ Trigger an asynchronous delete task
78
+
79
+ ### Example
80
+
81
+ ```ruby
82
+ # load the gem
83
+ require 'pulpcore_client'
84
+ # setup authorization
85
+ PulpcoreClient.configure do |config|
86
+ # Configure HTTP basic authorization: basicAuth
87
+ config.username = 'YOUR USERNAME'
88
+ config.password = 'YOUR PASSWORD'
89
+ end
90
+
91
+ api_instance = PulpcoreClient::DistributionsOpenpgpApi.new
92
+ open_p_g_p_distribution_href = 'open_p_g_p_distribution_href_example' # String |
93
+
94
+ begin
95
+ #Delete an open pgp distribution
96
+ result = api_instance.delete(open_p_g_p_distribution_href)
97
+ p result
98
+ rescue PulpcoreClient::ApiError => e
99
+ puts "Exception when calling DistributionsOpenpgpApi->delete: #{e}"
100
+ end
101
+ ```
102
+
103
+ ### Parameters
104
+
105
+
106
+ Name | Type | Description | Notes
107
+ ------------- | ------------- | ------------- | -------------
108
+ **open_p_g_p_distribution_href** | **String**| |
109
+
110
+ ### Return type
111
+
112
+ [**AsyncOperationResponse**](AsyncOperationResponse.md)
113
+
114
+ ### Authorization
115
+
116
+ [basicAuth](../README.md#basicAuth)
117
+
118
+ ### HTTP request headers
119
+
120
+ - **Content-Type**: Not defined
121
+ - **Accept**: application/json
122
+
123
+
124
+ ## list
125
+
126
+ > PaginatedOpenPGPDistributionResponseList list(opts)
127
+
128
+ List open pgp distributions
129
+
130
+ Provides read and list methods and also provides asynchronous CUD methods to dispatch tasks with reservation that lock all Distributions preventing race conditions during base_path checking.
131
+
132
+ ### Example
133
+
134
+ ```ruby
135
+ # load the gem
136
+ require 'pulpcore_client'
137
+ # setup authorization
138
+ PulpcoreClient.configure do |config|
139
+ # Configure HTTP basic authorization: basicAuth
140
+ config.username = 'YOUR USERNAME'
141
+ config.password = 'YOUR PASSWORD'
142
+ end
143
+
144
+ api_instance = PulpcoreClient::DistributionsOpenpgpApi.new
145
+ opts = {
146
+ limit: 56, # Integer | Number of results to return per page.
147
+ offset: 56, # Integer | The initial index from which to return the results.
148
+ 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)
149
+ prn__in: ['prn__in_example'], # Array<String> | Multiple values may be separated by commas.
150
+ pulp_href__in: ['pulp_href__in_example'], # Array<String> | Multiple values may be separated by commas.
151
+ pulp_id__in: ['pulp_id__in_example'], # Array<String> | Multiple values may be separated by commas.
152
+ pulp_label_select: 'pulp_label_select_example', # String | Filter labels by search string
153
+ q: 'q_example', # String | Filter results by using NOT, AND and OR operations on other filters
154
+ repository_version: 'repository_version_example', # String | Filter results where repository_version matches value
155
+ with_content: 'with_content_example', # String | Filter distributions based on the content served by them
156
+ fields: ['fields_example'], # Array<String> | A list of fields to include in the response.
157
+ exclude_fields: ['exclude_fields_example'] # Array<String> | A list of fields to exclude from the response.
158
+ }
159
+
160
+ begin
161
+ #List open pgp distributions
162
+ result = api_instance.list(opts)
163
+ p result
164
+ rescue PulpcoreClient::ApiError => e
165
+ puts "Exception when calling DistributionsOpenpgpApi->list: #{e}"
166
+ end
167
+ ```
168
+
169
+ ### Parameters
170
+
171
+
172
+ Name | Type | Description | Notes
173
+ ------------- | ------------- | ------------- | -------------
174
+ **limit** | **Integer**| Number of results to return per page. | [optional]
175
+ **offset** | **Integer**| The initial index from which to return the results. | [optional]
176
+ **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]
177
+ **prn__in** | [**Array&lt;String&gt;**](String.md)| Multiple values may be separated by commas. | [optional]
178
+ **pulp_href__in** | [**Array&lt;String&gt;**](String.md)| Multiple values may be separated by commas. | [optional]
179
+ **pulp_id__in** | [**Array&lt;String&gt;**](String.md)| Multiple values may be separated by commas. | [optional]
180
+ **pulp_label_select** | **String**| Filter labels by search string | [optional]
181
+ **q** | **String**| Filter results by using NOT, AND and OR operations on other filters | [optional]
182
+ **repository_version** | [**String**](.md)| Filter results where repository_version matches value | [optional]
183
+ **with_content** | **String**| Filter distributions based on the content served by them | [optional]
184
+ **fields** | [**Array&lt;String&gt;**](String.md)| A list of fields to include in the response. | [optional]
185
+ **exclude_fields** | [**Array&lt;String&gt;**](String.md)| A list of fields to exclude from the response. | [optional]
186
+
187
+ ### Return type
188
+
189
+ [**PaginatedOpenPGPDistributionResponseList**](PaginatedOpenPGPDistributionResponseList.md)
190
+
191
+ ### Authorization
192
+
193
+ [basicAuth](../README.md#basicAuth)
194
+
195
+ ### HTTP request headers
196
+
197
+ - **Content-Type**: Not defined
198
+ - **Accept**: application/json
199
+
200
+
201
+ ## partial_update
202
+
203
+ > AsyncOperationResponse partial_update(open_p_g_p_distribution_href, patched_open_pgp_distribution)
204
+
205
+ Update an open pgp distribution
206
+
207
+ Trigger an asynchronous partial update task
208
+
209
+ ### Example
210
+
211
+ ```ruby
212
+ # load the gem
213
+ require 'pulpcore_client'
214
+ # setup authorization
215
+ PulpcoreClient.configure do |config|
216
+ # Configure HTTP basic authorization: basicAuth
217
+ config.username = 'YOUR USERNAME'
218
+ config.password = 'YOUR PASSWORD'
219
+ end
220
+
221
+ api_instance = PulpcoreClient::DistributionsOpenpgpApi.new
222
+ open_p_g_p_distribution_href = 'open_p_g_p_distribution_href_example' # String |
223
+ patched_open_pgp_distribution = PulpcoreClient::PatchedOpenPGPDistribution.new # PatchedOpenPGPDistribution |
224
+
225
+ begin
226
+ #Update an open pgp distribution
227
+ result = api_instance.partial_update(open_p_g_p_distribution_href, patched_open_pgp_distribution)
228
+ p result
229
+ rescue PulpcoreClient::ApiError => e
230
+ puts "Exception when calling DistributionsOpenpgpApi->partial_update: #{e}"
231
+ end
232
+ ```
233
+
234
+ ### Parameters
235
+
236
+
237
+ Name | Type | Description | Notes
238
+ ------------- | ------------- | ------------- | -------------
239
+ **open_p_g_p_distribution_href** | **String**| |
240
+ **patched_open_pgp_distribution** | [**PatchedOpenPGPDistribution**](PatchedOpenPGPDistribution.md)| |
241
+
242
+ ### Return type
243
+
244
+ [**AsyncOperationResponse**](AsyncOperationResponse.md)
245
+
246
+ ### Authorization
247
+
248
+ [basicAuth](../README.md#basicAuth)
249
+
250
+ ### HTTP request headers
251
+
252
+ - **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
253
+ - **Accept**: application/json
254
+
255
+
256
+ ## read
257
+
258
+ > OpenPGPDistributionResponse read(open_p_g_p_distribution_href, opts)
259
+
260
+ Inspect an open pgp distribution
261
+
262
+ Provides read and list methods and also provides asynchronous CUD methods to dispatch tasks with reservation that lock all Distributions preventing race conditions during base_path checking.
263
+
264
+ ### Example
265
+
266
+ ```ruby
267
+ # load the gem
268
+ require 'pulpcore_client'
269
+ # setup authorization
270
+ PulpcoreClient.configure do |config|
271
+ # Configure HTTP basic authorization: basicAuth
272
+ config.username = 'YOUR USERNAME'
273
+ config.password = 'YOUR PASSWORD'
274
+ end
275
+
276
+ api_instance = PulpcoreClient::DistributionsOpenpgpApi.new
277
+ open_p_g_p_distribution_href = 'open_p_g_p_distribution_href_example' # String |
278
+ opts = {
279
+ fields: ['fields_example'], # Array<String> | A list of fields to include in the response.
280
+ exclude_fields: ['exclude_fields_example'] # Array<String> | A list of fields to exclude from the response.
281
+ }
282
+
283
+ begin
284
+ #Inspect an open pgp distribution
285
+ result = api_instance.read(open_p_g_p_distribution_href, opts)
286
+ p result
287
+ rescue PulpcoreClient::ApiError => e
288
+ puts "Exception when calling DistributionsOpenpgpApi->read: #{e}"
289
+ end
290
+ ```
291
+
292
+ ### Parameters
293
+
294
+
295
+ Name | Type | Description | Notes
296
+ ------------- | ------------- | ------------- | -------------
297
+ **open_p_g_p_distribution_href** | **String**| |
298
+ **fields** | [**Array&lt;String&gt;**](String.md)| A list of fields to include in the response. | [optional]
299
+ **exclude_fields** | [**Array&lt;String&gt;**](String.md)| A list of fields to exclude from the response. | [optional]
300
+
301
+ ### Return type
302
+
303
+ [**OpenPGPDistributionResponse**](OpenPGPDistributionResponse.md)
304
+
305
+ ### Authorization
306
+
307
+ [basicAuth](../README.md#basicAuth)
308
+
309
+ ### HTTP request headers
310
+
311
+ - **Content-Type**: Not defined
312
+ - **Accept**: application/json
313
+
314
+
315
+ ## set_label
316
+
317
+ > SetLabelResponse set_label(open_p_g_p_distribution_href, set_label)
318
+
319
+ Set a label
320
+
321
+ Set a single pulp_label on the object to a specific value or null.
322
+
323
+ ### Example
324
+
325
+ ```ruby
326
+ # load the gem
327
+ require 'pulpcore_client'
328
+ # setup authorization
329
+ PulpcoreClient.configure do |config|
330
+ # Configure HTTP basic authorization: basicAuth
331
+ config.username = 'YOUR USERNAME'
332
+ config.password = 'YOUR PASSWORD'
333
+ end
334
+
335
+ api_instance = PulpcoreClient::DistributionsOpenpgpApi.new
336
+ open_p_g_p_distribution_href = 'open_p_g_p_distribution_href_example' # String |
337
+ set_label = PulpcoreClient::SetLabel.new # SetLabel |
338
+
339
+ begin
340
+ #Set a label
341
+ result = api_instance.set_label(open_p_g_p_distribution_href, set_label)
342
+ p result
343
+ rescue PulpcoreClient::ApiError => e
344
+ puts "Exception when calling DistributionsOpenpgpApi->set_label: #{e}"
345
+ end
346
+ ```
347
+
348
+ ### Parameters
349
+
350
+
351
+ Name | Type | Description | Notes
352
+ ------------- | ------------- | ------------- | -------------
353
+ **open_p_g_p_distribution_href** | **String**| |
354
+ **set_label** | [**SetLabel**](SetLabel.md)| |
355
+
356
+ ### Return type
357
+
358
+ [**SetLabelResponse**](SetLabelResponse.md)
359
+
360
+ ### Authorization
361
+
362
+ [basicAuth](../README.md#basicAuth)
363
+
364
+ ### HTTP request headers
365
+
366
+ - **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
367
+ - **Accept**: application/json
368
+
369
+
370
+ ## unset_label
371
+
372
+ > UnsetLabelResponse unset_label(open_p_g_p_distribution_href, unset_label)
373
+
374
+ Unset a label
375
+
376
+ Unset a single pulp_label on the object.
377
+
378
+ ### Example
379
+
380
+ ```ruby
381
+ # load the gem
382
+ require 'pulpcore_client'
383
+ # setup authorization
384
+ PulpcoreClient.configure do |config|
385
+ # Configure HTTP basic authorization: basicAuth
386
+ config.username = 'YOUR USERNAME'
387
+ config.password = 'YOUR PASSWORD'
388
+ end
389
+
390
+ api_instance = PulpcoreClient::DistributionsOpenpgpApi.new
391
+ open_p_g_p_distribution_href = 'open_p_g_p_distribution_href_example' # String |
392
+ unset_label = PulpcoreClient::UnsetLabel.new # UnsetLabel |
393
+
394
+ begin
395
+ #Unset a label
396
+ result = api_instance.unset_label(open_p_g_p_distribution_href, unset_label)
397
+ p result
398
+ rescue PulpcoreClient::ApiError => e
399
+ puts "Exception when calling DistributionsOpenpgpApi->unset_label: #{e}"
400
+ end
401
+ ```
402
+
403
+ ### Parameters
404
+
405
+
406
+ Name | Type | Description | Notes
407
+ ------------- | ------------- | ------------- | -------------
408
+ **open_p_g_p_distribution_href** | **String**| |
409
+ **unset_label** | [**UnsetLabel**](UnsetLabel.md)| |
410
+
411
+ ### Return type
412
+
413
+ [**UnsetLabelResponse**](UnsetLabelResponse.md)
414
+
415
+ ### Authorization
416
+
417
+ [basicAuth](../README.md#basicAuth)
418
+
419
+ ### HTTP request headers
420
+
421
+ - **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
422
+ - **Accept**: application/json
423
+
424
+
425
+ ## update
426
+
427
+ > AsyncOperationResponse update(open_p_g_p_distribution_href, open_pgp_distribution)
428
+
429
+ Update an open pgp distribution
430
+
431
+ Trigger an asynchronous update task
432
+
433
+ ### Example
434
+
435
+ ```ruby
436
+ # load the gem
437
+ require 'pulpcore_client'
438
+ # setup authorization
439
+ PulpcoreClient.configure do |config|
440
+ # Configure HTTP basic authorization: basicAuth
441
+ config.username = 'YOUR USERNAME'
442
+ config.password = 'YOUR PASSWORD'
443
+ end
444
+
445
+ api_instance = PulpcoreClient::DistributionsOpenpgpApi.new
446
+ open_p_g_p_distribution_href = 'open_p_g_p_distribution_href_example' # String |
447
+ open_pgp_distribution = PulpcoreClient::OpenPGPDistribution.new # OpenPGPDistribution |
448
+
449
+ begin
450
+ #Update an open pgp distribution
451
+ result = api_instance.update(open_p_g_p_distribution_href, open_pgp_distribution)
452
+ p result
453
+ rescue PulpcoreClient::ApiError => e
454
+ puts "Exception when calling DistributionsOpenpgpApi->update: #{e}"
455
+ end
456
+ ```
457
+
458
+ ### Parameters
459
+
460
+
461
+ Name | Type | Description | Notes
462
+ ------------- | ------------- | ------------- | -------------
463
+ **open_p_g_p_distribution_href** | **String**| |
464
+ **open_pgp_distribution** | [**OpenPGPDistribution**](OpenPGPDistribution.md)| |
465
+
466
+ ### Return type
467
+
468
+ [**AsyncOperationResponse**](AsyncOperationResponse.md)
469
+
470
+ ### Authorization
471
+
472
+ [basicAuth](../README.md#basicAuth)
473
+
474
+ ### HTTP request headers
475
+
476
+ - **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
477
+ - **Accept**: application/json
478
+
@@ -0,0 +1,19 @@
1
+ # PulpcoreClient::NestedOpenPGPPublicSubkey
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **fingerprint** | **String** | |
8
+ **created** | **DateTime** | |
9
+
10
+ ## Code Sample
11
+
12
+ ```ruby
13
+ require 'PulpcoreClient'
14
+
15
+ instance = PulpcoreClient::NestedOpenPGPPublicSubkey.new(fingerprint: null,
16
+ created: null)
17
+ ```
18
+
19
+
@@ -0,0 +1,21 @@
1
+ # PulpcoreClient::NestedOpenPGPPublicSubkeyResponse
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **fingerprint** | **String** | |
8
+ **created** | **DateTime** | |
9
+ **signatures** | [**Array&lt;NestedOpenPGPSignatureResponse&gt;**](NestedOpenPGPSignatureResponse.md) | | [optional] [readonly]
10
+
11
+ ## Code Sample
12
+
13
+ ```ruby
14
+ require 'PulpcoreClient'
15
+
16
+ instance = PulpcoreClient::NestedOpenPGPPublicSubkeyResponse.new(fingerprint: null,
17
+ created: null,
18
+ signatures: null)
19
+ ```
20
+
21
+
@@ -0,0 +1,27 @@
1
+ # PulpcoreClient::NestedOpenPGPSignature
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **issuer** | **String** | | [optional]
8
+ **created** | **DateTime** | |
9
+ **expiration_time** | **String** | | [optional]
10
+ **signers_user_id** | **String** | | [optional]
11
+ **key_expiration_time** | **String** | | [optional]
12
+ **expired** | **Boolean** | |
13
+
14
+ ## Code Sample
15
+
16
+ ```ruby
17
+ require 'PulpcoreClient'
18
+
19
+ instance = PulpcoreClient::NestedOpenPGPSignature.new(issuer: null,
20
+ created: null,
21
+ expiration_time: null,
22
+ signers_user_id: null,
23
+ key_expiration_time: null,
24
+ expired: null)
25
+ ```
26
+
27
+
@@ -0,0 +1,29 @@
1
+ # PulpcoreClient::NestedOpenPGPSignatureResponse
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **issuer** | **String** | | [optional]
8
+ **created** | **DateTime** | |
9
+ **expiration_time** | **String** | | [optional]
10
+ **signers_user_id** | **String** | | [optional]
11
+ **key_expiration_time** | **String** | | [optional]
12
+ **expired** | **Boolean** | |
13
+ **key_expired** | **String** | | [optional] [readonly]
14
+
15
+ ## Code Sample
16
+
17
+ ```ruby
18
+ require 'PulpcoreClient'
19
+
20
+ instance = PulpcoreClient::NestedOpenPGPSignatureResponse.new(issuer: null,
21
+ created: null,
22
+ expiration_time: null,
23
+ signers_user_id: null,
24
+ key_expiration_time: null,
25
+ expired: null,
26
+ key_expired: null)
27
+ ```
28
+
29
+
@@ -0,0 +1,17 @@
1
+ # PulpcoreClient::NestedOpenPGPUserAttribute
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **sha256** | **String** | |
8
+
9
+ ## Code Sample
10
+
11
+ ```ruby
12
+ require 'PulpcoreClient'
13
+
14
+ instance = PulpcoreClient::NestedOpenPGPUserAttribute.new(sha256: null)
15
+ ```
16
+
17
+
@@ -0,0 +1,19 @@
1
+ # PulpcoreClient::NestedOpenPGPUserAttributeResponse
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **sha256** | **String** | |
8
+ **signatures** | [**Array&lt;NestedOpenPGPSignatureResponse&gt;**](NestedOpenPGPSignatureResponse.md) | | [optional] [readonly]
9
+
10
+ ## Code Sample
11
+
12
+ ```ruby
13
+ require 'PulpcoreClient'
14
+
15
+ instance = PulpcoreClient::NestedOpenPGPUserAttributeResponse.new(sha256: null,
16
+ signatures: null)
17
+ ```
18
+
19
+
@@ -0,0 +1,17 @@
1
+ # PulpcoreClient::NestedOpenPGPUserID
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **user_id** | **String** | |
8
+
9
+ ## Code Sample
10
+
11
+ ```ruby
12
+ require 'PulpcoreClient'
13
+
14
+ instance = PulpcoreClient::NestedOpenPGPUserID.new(user_id: null)
15
+ ```
16
+
17
+
@@ -0,0 +1,19 @@
1
+ # PulpcoreClient::NestedOpenPGPUserIDResponse
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **user_id** | **String** | |
8
+ **signatures** | [**Array&lt;NestedOpenPGPSignatureResponse&gt;**](NestedOpenPGPSignatureResponse.md) | | [optional] [readonly]
9
+
10
+ ## Code Sample
11
+
12
+ ```ruby
13
+ require 'PulpcoreClient'
14
+
15
+ instance = PulpcoreClient::NestedOpenPGPUserIDResponse.new(user_id: null,
16
+ signatures: null)
17
+ ```
18
+
19
+
@@ -0,0 +1,29 @@
1
+ # PulpcoreClient::OpenPGPDistribution
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **base_path** | **String** | The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \&quot;foo\&quot; and \&quot;foo/bar\&quot;) |
8
+ **content_guard** | **String** | An optional content-guard. | [optional]
9
+ **hidden** | **Boolean** | Whether this distribution should be shown in the content app. | [optional] [default to false]
10
+ **pulp_labels** | **Hash&lt;String, String&gt;** | | [optional]
11
+ **name** | **String** | A unique name. Ex, &#x60;rawhide&#x60; and &#x60;stable&#x60;. |
12
+ **repository** | **String** | The latest RepositoryVersion for this Repository will be served. | [optional]
13
+ **repository_version** | **String** | RepositoryVersion to be served | [optional]
14
+
15
+ ## Code Sample
16
+
17
+ ```ruby
18
+ require 'PulpcoreClient'
19
+
20
+ instance = PulpcoreClient::OpenPGPDistribution.new(base_path: null,
21
+ content_guard: null,
22
+ hidden: null,
23
+ pulp_labels: null,
24
+ name: null,
25
+ repository: null,
26
+ repository_version: null)
27
+ ```
28
+
29
+