pulpcore_client 3.73.1 → 3.73.2
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.
- checksums.yaml +4 -4
- data/README.md +12 -4
- data/docs/ArtifactDistributionResponse.md +9 -9
- data/docs/ContentOpenpgpPublicsubkeyApi.md +146 -0
- data/docs/ContentOpenpgpSignatureApi.md +146 -0
- data/docs/ContentOpenpgpUserattributeApi.md +146 -0
- data/docs/ContentOpenpgpUseridApi.md +146 -0
- data/lib/pulpcore_client/api/content_openpgp_publicsubkey_api.rb +148 -0
- data/lib/pulpcore_client/api/content_openpgp_signature_api.rb +148 -0
- data/lib/pulpcore_client/api/content_openpgp_userattribute_api.rb +148 -0
- data/lib/pulpcore_client/api/content_openpgp_userid_api.rb +148 -0
- data/lib/pulpcore_client/models/artifact_distribution_response.rb +41 -41
- data/lib/pulpcore_client/models/unset_label.rb +1 -1
- data/lib/pulpcore_client/models/unset_label_response.rb +1 -1
- data/lib/pulpcore_client/version.rb +1 -1
- data/spec/api/content_openpgp_publicsubkey_api_spec.rb +26 -0
- data/spec/api/content_openpgp_signature_api_spec.rb +26 -0
- data/spec/api/content_openpgp_userattribute_api_spec.rb +26 -0
- data/spec/api/content_openpgp_userid_api_spec.rb +26 -0
- data/spec/models/artifact_distribution_response_spec.rb +8 -8
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5c64f5d48bed4cb91a9609eb8923059d1a8b22a7c78a5a7a164bc3fef4d0965e
|
4
|
+
data.tar.gz: 49444c2fb0b21d6a98dc64f71269602b722ffbbe5f79635974a5470d0f7d40ea
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 14b4ef079553fc02ac1df6e48481899fac19352fa1d508ba8bbc0d880cc304b95784de1a3a1d9ca44578c1050b51e7c5c4de691505831e17243dd73acdeedebf
|
7
|
+
data.tar.gz: 45a362123cdce2ba902b012e848ebc8a14c89c60597c63b301ec635b505ef39f8622dbf2673b29a484177e12f6f3ac28bcc88a0fa795807bc99d62cb5bc84499
|
data/README.md
CHANGED
@@ -7,7 +7,7 @@ Fetch, Upload, Organize, and Distribute Software Packages
|
|
7
7
|
This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
8
8
|
|
9
9
|
- API version: v3
|
10
|
-
- Package version: 3.73.
|
10
|
+
- Package version: 3.73.2
|
11
11
|
- Generator version: 7.10.0
|
12
12
|
- Build package: org.openapitools.codegen.languages.RubyClientCodegen
|
13
13
|
For more information, please visit [https://pulpproject.org](https://pulpproject.org)
|
@@ -25,16 +25,16 @@ gem build pulpcore_client.gemspec
|
|
25
25
|
Then either install the gem locally:
|
26
26
|
|
27
27
|
```shell
|
28
|
-
gem install ./pulpcore_client-3.73.
|
28
|
+
gem install ./pulpcore_client-3.73.2.gem
|
29
29
|
```
|
30
30
|
|
31
|
-
(for development, run `gem install --dev ./pulpcore_client-3.73.
|
31
|
+
(for development, run `gem install --dev ./pulpcore_client-3.73.2.gem` to install the development dependencies)
|
32
32
|
|
33
33
|
or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
|
34
34
|
|
35
35
|
Finally add this to the Gemfile:
|
36
36
|
|
37
|
-
gem 'pulpcore_client', '~> 3.73.
|
37
|
+
gem 'pulpcore_client', '~> 3.73.2'
|
38
38
|
|
39
39
|
### Install from Git
|
40
40
|
|
@@ -123,12 +123,20 @@ Class | Method | HTTP request | Description
|
|
123
123
|
*PulpcoreClient::ContentOpenpgpPublickeyApi* | [**unset_label**](docs/ContentOpenpgpPublickeyApi.md#unset_label) | **POST** {open_p_g_p_public_key_href}unset_label/ | Unset a label
|
124
124
|
*PulpcoreClient::ContentOpenpgpPublicsubkeyApi* | [**list**](docs/ContentOpenpgpPublicsubkeyApi.md#list) | **GET** /pulp/api/v3/content/core/openpgp_publicsubkey/ | List open pgp public subkeys
|
125
125
|
*PulpcoreClient::ContentOpenpgpPublicsubkeyApi* | [**read**](docs/ContentOpenpgpPublicsubkeyApi.md#read) | **GET** {open_p_g_p_public_subkey_href} | Inspect an open pgp public subkey
|
126
|
+
*PulpcoreClient::ContentOpenpgpPublicsubkeyApi* | [**set_label**](docs/ContentOpenpgpPublicsubkeyApi.md#set_label) | **POST** {open_p_g_p_public_subkey_href}set_label/ | Set a label
|
127
|
+
*PulpcoreClient::ContentOpenpgpPublicsubkeyApi* | [**unset_label**](docs/ContentOpenpgpPublicsubkeyApi.md#unset_label) | **POST** {open_p_g_p_public_subkey_href}unset_label/ | Unset a label
|
126
128
|
*PulpcoreClient::ContentOpenpgpSignatureApi* | [**list**](docs/ContentOpenpgpSignatureApi.md#list) | **GET** /pulp/api/v3/content/core/openpgp_signature/ | List open pgp signatures
|
127
129
|
*PulpcoreClient::ContentOpenpgpSignatureApi* | [**read**](docs/ContentOpenpgpSignatureApi.md#read) | **GET** {open_p_g_p_signature_href} | Inspect an open pgp signature
|
130
|
+
*PulpcoreClient::ContentOpenpgpSignatureApi* | [**set_label**](docs/ContentOpenpgpSignatureApi.md#set_label) | **POST** {open_p_g_p_signature_href}set_label/ | Set a label
|
131
|
+
*PulpcoreClient::ContentOpenpgpSignatureApi* | [**unset_label**](docs/ContentOpenpgpSignatureApi.md#unset_label) | **POST** {open_p_g_p_signature_href}unset_label/ | Unset a label
|
128
132
|
*PulpcoreClient::ContentOpenpgpUserattributeApi* | [**list**](docs/ContentOpenpgpUserattributeApi.md#list) | **GET** /pulp/api/v3/content/core/openpgp_userattribute/ | List open pgp user attributes
|
129
133
|
*PulpcoreClient::ContentOpenpgpUserattributeApi* | [**read**](docs/ContentOpenpgpUserattributeApi.md#read) | **GET** {open_p_g_p_user_attribute_href} | Inspect an open pgp user attribute
|
134
|
+
*PulpcoreClient::ContentOpenpgpUserattributeApi* | [**set_label**](docs/ContentOpenpgpUserattributeApi.md#set_label) | **POST** {open_p_g_p_user_attribute_href}set_label/ | Set a label
|
135
|
+
*PulpcoreClient::ContentOpenpgpUserattributeApi* | [**unset_label**](docs/ContentOpenpgpUserattributeApi.md#unset_label) | **POST** {open_p_g_p_user_attribute_href}unset_label/ | Unset a label
|
130
136
|
*PulpcoreClient::ContentOpenpgpUseridApi* | [**list**](docs/ContentOpenpgpUseridApi.md#list) | **GET** /pulp/api/v3/content/core/openpgp_userid/ | List open pgp user ids
|
131
137
|
*PulpcoreClient::ContentOpenpgpUseridApi* | [**read**](docs/ContentOpenpgpUseridApi.md#read) | **GET** {open_p_g_p_user_i_d_href} | Inspect an open pgp user id
|
138
|
+
*PulpcoreClient::ContentOpenpgpUseridApi* | [**set_label**](docs/ContentOpenpgpUseridApi.md#set_label) | **POST** {open_p_g_p_user_i_d_href}set_label/ | Set a label
|
139
|
+
*PulpcoreClient::ContentOpenpgpUseridApi* | [**unset_label**](docs/ContentOpenpgpUseridApi.md#unset_label) | **POST** {open_p_g_p_user_i_d_href}unset_label/ | Unset a label
|
132
140
|
*PulpcoreClient::ContentguardsApi* | [**list**](docs/ContentguardsApi.md#list) | **GET** /pulp/api/v3/contentguards/ | List content guards
|
133
141
|
*PulpcoreClient::ContentguardsCompositeApi* | [**add_role**](docs/ContentguardsCompositeApi.md#add_role) | **POST** {composite_content_guard_href}add_role/ | Add a role
|
134
142
|
*PulpcoreClient::ContentguardsCompositeApi* | [**create**](docs/ContentguardsCompositeApi.md#create) | **POST** /pulp/api/v3/contentguards/core/composite/ | Create a composite content guard
|
@@ -4,17 +4,17 @@
|
|
4
4
|
|
5
5
|
| Name | Type | Description | Notes |
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
7
|
-
| **base_url** | **String** | The URL for accessing the publication as defined by this distribution. | [optional][readonly] |
|
8
7
|
| **no_content_change_since** | **String** | Timestamp since when the distributed content served by this distribution has not changed. If equals to `null`, no guarantee is provided about content changes. | [optional][readonly] |
|
9
8
|
| **pulp_last_updated** | **Time** | Timestamp of the last time this resource was updated. Note: for immutable resources - like content, repository versions, and publication - pulp_created and pulp_last_updated dates will be the same. | [optional][readonly] |
|
9
|
+
| **content_guard** | **String** | An optional content-guard. | [optional] |
|
10
10
|
| **pulp_labels** | **Hash<String, String>** | | [optional] |
|
11
11
|
| **name** | **String** | A unique name. Ex, `rawhide` and `stable`. | |
|
12
12
|
| **hidden** | **Boolean** | Whether this distribution should be shown in the content app. | [optional][default to false] |
|
13
|
-
| **pulp_href** | **String** | | [optional][readonly] |
|
14
|
-
| **pulp_created** | **Time** | Timestamp of creation. | [optional][readonly] |
|
15
|
-
| **content_guard** | **String** | An optional content-guard. | [optional] |
|
16
13
|
| **prn** | **String** | The Pulp Resource Name (PRN). | [optional][readonly] |
|
14
|
+
| **base_url** | **String** | The URL for accessing the publication as defined by this distribution. | [optional][readonly] |
|
15
|
+
| **pulp_href** | **String** | | [optional][readonly] |
|
17
16
|
| **base_path** | **String** | The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\") | |
|
17
|
+
| **pulp_created** | **Time** | Timestamp of creation. | [optional][readonly] |
|
18
18
|
|
19
19
|
## Example
|
20
20
|
|
@@ -22,17 +22,17 @@
|
|
22
22
|
require 'pulpcore_client'
|
23
23
|
|
24
24
|
instance = PulpcoreClient::ArtifactDistributionResponse.new(
|
25
|
-
base_url: null,
|
26
25
|
no_content_change_since: null,
|
27
26
|
pulp_last_updated: null,
|
27
|
+
content_guard: null,
|
28
28
|
pulp_labels: null,
|
29
29
|
name: null,
|
30
30
|
hidden: null,
|
31
|
-
pulp_href: null,
|
32
|
-
pulp_created: null,
|
33
|
-
content_guard: null,
|
34
31
|
prn: null,
|
35
|
-
|
32
|
+
base_url: null,
|
33
|
+
pulp_href: null,
|
34
|
+
base_path: null,
|
35
|
+
pulp_created: null
|
36
36
|
)
|
37
37
|
```
|
38
38
|
|
@@ -6,6 +6,8 @@ All URIs are relative to *http://localhost:24817*
|
|
6
6
|
| ------ | ------------ | ----------- |
|
7
7
|
| [**list**](ContentOpenpgpPublicsubkeyApi.md#list) | **GET** /pulp/api/v3/content/core/openpgp_publicsubkey/ | List open pgp public subkeys |
|
8
8
|
| [**read**](ContentOpenpgpPublicsubkeyApi.md#read) | **GET** {open_p_g_p_public_subkey_href} | Inspect an open pgp public subkey |
|
9
|
+
| [**set_label**](ContentOpenpgpPublicsubkeyApi.md#set_label) | **POST** {open_p_g_p_public_subkey_href}set_label/ | Set a label |
|
10
|
+
| [**unset_label**](ContentOpenpgpPublicsubkeyApi.md#unset_label) | **POST** {open_p_g_p_public_subkey_href}unset_label/ | Unset a label |
|
9
11
|
|
10
12
|
|
11
13
|
## list
|
@@ -183,3 +185,147 @@ end
|
|
183
185
|
- **Content-Type**: Not defined
|
184
186
|
- **Accept**: application/json
|
185
187
|
|
188
|
+
|
189
|
+
## set_label
|
190
|
+
|
191
|
+
> <SetLabelResponse> set_label(open_p_g_p_public_subkey_href, set_label)
|
192
|
+
|
193
|
+
Set a label
|
194
|
+
|
195
|
+
Set a single pulp_label on the object to a specific value or null.
|
196
|
+
|
197
|
+
### Examples
|
198
|
+
|
199
|
+
```ruby
|
200
|
+
require 'time'
|
201
|
+
require 'pulpcore_client'
|
202
|
+
# setup authorization
|
203
|
+
PulpcoreClient.configure do |config|
|
204
|
+
# Configure HTTP basic authorization: basicAuth
|
205
|
+
config.username = 'YOUR USERNAME'
|
206
|
+
config.password = 'YOUR PASSWORD'
|
207
|
+
end
|
208
|
+
|
209
|
+
api_instance = PulpcoreClient::ContentOpenpgpPublicsubkeyApi.new
|
210
|
+
open_p_g_p_public_subkey_href = 'open_p_g_p_public_subkey_href_example' # String |
|
211
|
+
set_label = PulpcoreClient::SetLabel.new({key: 'key_example', value: 'value_example'}) # SetLabel |
|
212
|
+
|
213
|
+
begin
|
214
|
+
# Set a label
|
215
|
+
result = api_instance.set_label(open_p_g_p_public_subkey_href, set_label)
|
216
|
+
p result
|
217
|
+
rescue PulpcoreClient::ApiError => e
|
218
|
+
puts "Error when calling ContentOpenpgpPublicsubkeyApi->set_label: #{e}"
|
219
|
+
end
|
220
|
+
```
|
221
|
+
|
222
|
+
#### Using the set_label_with_http_info variant
|
223
|
+
|
224
|
+
This returns an Array which contains the response data, status code and headers.
|
225
|
+
|
226
|
+
> <Array(<SetLabelResponse>, Integer, Hash)> set_label_with_http_info(open_p_g_p_public_subkey_href, set_label)
|
227
|
+
|
228
|
+
```ruby
|
229
|
+
begin
|
230
|
+
# Set a label
|
231
|
+
data, status_code, headers = api_instance.set_label_with_http_info(open_p_g_p_public_subkey_href, set_label)
|
232
|
+
p status_code # => 2xx
|
233
|
+
p headers # => { ... }
|
234
|
+
p data # => <SetLabelResponse>
|
235
|
+
rescue PulpcoreClient::ApiError => e
|
236
|
+
puts "Error when calling ContentOpenpgpPublicsubkeyApi->set_label_with_http_info: #{e}"
|
237
|
+
end
|
238
|
+
```
|
239
|
+
|
240
|
+
### Parameters
|
241
|
+
|
242
|
+
| Name | Type | Description | Notes |
|
243
|
+
| ---- | ---- | ----------- | ----- |
|
244
|
+
| **open_p_g_p_public_subkey_href** | **String** | | |
|
245
|
+
| **set_label** | [**SetLabel**](SetLabel.md) | | |
|
246
|
+
|
247
|
+
### Return type
|
248
|
+
|
249
|
+
[**SetLabelResponse**](SetLabelResponse.md)
|
250
|
+
|
251
|
+
### Authorization
|
252
|
+
|
253
|
+
[basicAuth](../README.md#basicAuth)
|
254
|
+
|
255
|
+
### HTTP request headers
|
256
|
+
|
257
|
+
- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
|
258
|
+
- **Accept**: application/json
|
259
|
+
|
260
|
+
|
261
|
+
## unset_label
|
262
|
+
|
263
|
+
> <UnsetLabelResponse> unset_label(open_p_g_p_public_subkey_href, unset_label)
|
264
|
+
|
265
|
+
Unset a label
|
266
|
+
|
267
|
+
Unset a single pulp_label on the object.
|
268
|
+
|
269
|
+
### Examples
|
270
|
+
|
271
|
+
```ruby
|
272
|
+
require 'time'
|
273
|
+
require 'pulpcore_client'
|
274
|
+
# setup authorization
|
275
|
+
PulpcoreClient.configure do |config|
|
276
|
+
# Configure HTTP basic authorization: basicAuth
|
277
|
+
config.username = 'YOUR USERNAME'
|
278
|
+
config.password = 'YOUR PASSWORD'
|
279
|
+
end
|
280
|
+
|
281
|
+
api_instance = PulpcoreClient::ContentOpenpgpPublicsubkeyApi.new
|
282
|
+
open_p_g_p_public_subkey_href = 'open_p_g_p_public_subkey_href_example' # String |
|
283
|
+
unset_label = PulpcoreClient::UnsetLabel.new({key: 'key_example'}) # UnsetLabel |
|
284
|
+
|
285
|
+
begin
|
286
|
+
# Unset a label
|
287
|
+
result = api_instance.unset_label(open_p_g_p_public_subkey_href, unset_label)
|
288
|
+
p result
|
289
|
+
rescue PulpcoreClient::ApiError => e
|
290
|
+
puts "Error when calling ContentOpenpgpPublicsubkeyApi->unset_label: #{e}"
|
291
|
+
end
|
292
|
+
```
|
293
|
+
|
294
|
+
#### Using the unset_label_with_http_info variant
|
295
|
+
|
296
|
+
This returns an Array which contains the response data, status code and headers.
|
297
|
+
|
298
|
+
> <Array(<UnsetLabelResponse>, Integer, Hash)> unset_label_with_http_info(open_p_g_p_public_subkey_href, unset_label)
|
299
|
+
|
300
|
+
```ruby
|
301
|
+
begin
|
302
|
+
# Unset a label
|
303
|
+
data, status_code, headers = api_instance.unset_label_with_http_info(open_p_g_p_public_subkey_href, unset_label)
|
304
|
+
p status_code # => 2xx
|
305
|
+
p headers # => { ... }
|
306
|
+
p data # => <UnsetLabelResponse>
|
307
|
+
rescue PulpcoreClient::ApiError => e
|
308
|
+
puts "Error when calling ContentOpenpgpPublicsubkeyApi->unset_label_with_http_info: #{e}"
|
309
|
+
end
|
310
|
+
```
|
311
|
+
|
312
|
+
### Parameters
|
313
|
+
|
314
|
+
| Name | Type | Description | Notes |
|
315
|
+
| ---- | ---- | ----------- | ----- |
|
316
|
+
| **open_p_g_p_public_subkey_href** | **String** | | |
|
317
|
+
| **unset_label** | [**UnsetLabel**](UnsetLabel.md) | | |
|
318
|
+
|
319
|
+
### Return type
|
320
|
+
|
321
|
+
[**UnsetLabelResponse**](UnsetLabelResponse.md)
|
322
|
+
|
323
|
+
### Authorization
|
324
|
+
|
325
|
+
[basicAuth](../README.md#basicAuth)
|
326
|
+
|
327
|
+
### HTTP request headers
|
328
|
+
|
329
|
+
- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
|
330
|
+
- **Accept**: application/json
|
331
|
+
|
@@ -6,6 +6,8 @@ All URIs are relative to *http://localhost:24817*
|
|
6
6
|
| ------ | ------------ | ----------- |
|
7
7
|
| [**list**](ContentOpenpgpSignatureApi.md#list) | **GET** /pulp/api/v3/content/core/openpgp_signature/ | List open pgp signatures |
|
8
8
|
| [**read**](ContentOpenpgpSignatureApi.md#read) | **GET** {open_p_g_p_signature_href} | Inspect an open pgp signature |
|
9
|
+
| [**set_label**](ContentOpenpgpSignatureApi.md#set_label) | **POST** {open_p_g_p_signature_href}set_label/ | Set a label |
|
10
|
+
| [**unset_label**](ContentOpenpgpSignatureApi.md#unset_label) | **POST** {open_p_g_p_signature_href}unset_label/ | Unset a label |
|
9
11
|
|
10
12
|
|
11
13
|
## list
|
@@ -183,3 +185,147 @@ end
|
|
183
185
|
- **Content-Type**: Not defined
|
184
186
|
- **Accept**: application/json
|
185
187
|
|
188
|
+
|
189
|
+
## set_label
|
190
|
+
|
191
|
+
> <SetLabelResponse> set_label(open_p_g_p_signature_href, set_label)
|
192
|
+
|
193
|
+
Set a label
|
194
|
+
|
195
|
+
Set a single pulp_label on the object to a specific value or null.
|
196
|
+
|
197
|
+
### Examples
|
198
|
+
|
199
|
+
```ruby
|
200
|
+
require 'time'
|
201
|
+
require 'pulpcore_client'
|
202
|
+
# setup authorization
|
203
|
+
PulpcoreClient.configure do |config|
|
204
|
+
# Configure HTTP basic authorization: basicAuth
|
205
|
+
config.username = 'YOUR USERNAME'
|
206
|
+
config.password = 'YOUR PASSWORD'
|
207
|
+
end
|
208
|
+
|
209
|
+
api_instance = PulpcoreClient::ContentOpenpgpSignatureApi.new
|
210
|
+
open_p_g_p_signature_href = 'open_p_g_p_signature_href_example' # String |
|
211
|
+
set_label = PulpcoreClient::SetLabel.new({key: 'key_example', value: 'value_example'}) # SetLabel |
|
212
|
+
|
213
|
+
begin
|
214
|
+
# Set a label
|
215
|
+
result = api_instance.set_label(open_p_g_p_signature_href, set_label)
|
216
|
+
p result
|
217
|
+
rescue PulpcoreClient::ApiError => e
|
218
|
+
puts "Error when calling ContentOpenpgpSignatureApi->set_label: #{e}"
|
219
|
+
end
|
220
|
+
```
|
221
|
+
|
222
|
+
#### Using the set_label_with_http_info variant
|
223
|
+
|
224
|
+
This returns an Array which contains the response data, status code and headers.
|
225
|
+
|
226
|
+
> <Array(<SetLabelResponse>, Integer, Hash)> set_label_with_http_info(open_p_g_p_signature_href, set_label)
|
227
|
+
|
228
|
+
```ruby
|
229
|
+
begin
|
230
|
+
# Set a label
|
231
|
+
data, status_code, headers = api_instance.set_label_with_http_info(open_p_g_p_signature_href, set_label)
|
232
|
+
p status_code # => 2xx
|
233
|
+
p headers # => { ... }
|
234
|
+
p data # => <SetLabelResponse>
|
235
|
+
rescue PulpcoreClient::ApiError => e
|
236
|
+
puts "Error when calling ContentOpenpgpSignatureApi->set_label_with_http_info: #{e}"
|
237
|
+
end
|
238
|
+
```
|
239
|
+
|
240
|
+
### Parameters
|
241
|
+
|
242
|
+
| Name | Type | Description | Notes |
|
243
|
+
| ---- | ---- | ----------- | ----- |
|
244
|
+
| **open_p_g_p_signature_href** | **String** | | |
|
245
|
+
| **set_label** | [**SetLabel**](SetLabel.md) | | |
|
246
|
+
|
247
|
+
### Return type
|
248
|
+
|
249
|
+
[**SetLabelResponse**](SetLabelResponse.md)
|
250
|
+
|
251
|
+
### Authorization
|
252
|
+
|
253
|
+
[basicAuth](../README.md#basicAuth)
|
254
|
+
|
255
|
+
### HTTP request headers
|
256
|
+
|
257
|
+
- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
|
258
|
+
- **Accept**: application/json
|
259
|
+
|
260
|
+
|
261
|
+
## unset_label
|
262
|
+
|
263
|
+
> <UnsetLabelResponse> unset_label(open_p_g_p_signature_href, unset_label)
|
264
|
+
|
265
|
+
Unset a label
|
266
|
+
|
267
|
+
Unset a single pulp_label on the object.
|
268
|
+
|
269
|
+
### Examples
|
270
|
+
|
271
|
+
```ruby
|
272
|
+
require 'time'
|
273
|
+
require 'pulpcore_client'
|
274
|
+
# setup authorization
|
275
|
+
PulpcoreClient.configure do |config|
|
276
|
+
# Configure HTTP basic authorization: basicAuth
|
277
|
+
config.username = 'YOUR USERNAME'
|
278
|
+
config.password = 'YOUR PASSWORD'
|
279
|
+
end
|
280
|
+
|
281
|
+
api_instance = PulpcoreClient::ContentOpenpgpSignatureApi.new
|
282
|
+
open_p_g_p_signature_href = 'open_p_g_p_signature_href_example' # String |
|
283
|
+
unset_label = PulpcoreClient::UnsetLabel.new({key: 'key_example'}) # UnsetLabel |
|
284
|
+
|
285
|
+
begin
|
286
|
+
# Unset a label
|
287
|
+
result = api_instance.unset_label(open_p_g_p_signature_href, unset_label)
|
288
|
+
p result
|
289
|
+
rescue PulpcoreClient::ApiError => e
|
290
|
+
puts "Error when calling ContentOpenpgpSignatureApi->unset_label: #{e}"
|
291
|
+
end
|
292
|
+
```
|
293
|
+
|
294
|
+
#### Using the unset_label_with_http_info variant
|
295
|
+
|
296
|
+
This returns an Array which contains the response data, status code and headers.
|
297
|
+
|
298
|
+
> <Array(<UnsetLabelResponse>, Integer, Hash)> unset_label_with_http_info(open_p_g_p_signature_href, unset_label)
|
299
|
+
|
300
|
+
```ruby
|
301
|
+
begin
|
302
|
+
# Unset a label
|
303
|
+
data, status_code, headers = api_instance.unset_label_with_http_info(open_p_g_p_signature_href, unset_label)
|
304
|
+
p status_code # => 2xx
|
305
|
+
p headers # => { ... }
|
306
|
+
p data # => <UnsetLabelResponse>
|
307
|
+
rescue PulpcoreClient::ApiError => e
|
308
|
+
puts "Error when calling ContentOpenpgpSignatureApi->unset_label_with_http_info: #{e}"
|
309
|
+
end
|
310
|
+
```
|
311
|
+
|
312
|
+
### Parameters
|
313
|
+
|
314
|
+
| Name | Type | Description | Notes |
|
315
|
+
| ---- | ---- | ----------- | ----- |
|
316
|
+
| **open_p_g_p_signature_href** | **String** | | |
|
317
|
+
| **unset_label** | [**UnsetLabel**](UnsetLabel.md) | | |
|
318
|
+
|
319
|
+
### Return type
|
320
|
+
|
321
|
+
[**UnsetLabelResponse**](UnsetLabelResponse.md)
|
322
|
+
|
323
|
+
### Authorization
|
324
|
+
|
325
|
+
[basicAuth](../README.md#basicAuth)
|
326
|
+
|
327
|
+
### HTTP request headers
|
328
|
+
|
329
|
+
- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
|
330
|
+
- **Accept**: application/json
|
331
|
+
|
@@ -6,6 +6,8 @@ All URIs are relative to *http://localhost:24817*
|
|
6
6
|
| ------ | ------------ | ----------- |
|
7
7
|
| [**list**](ContentOpenpgpUserattributeApi.md#list) | **GET** /pulp/api/v3/content/core/openpgp_userattribute/ | List open pgp user attributes |
|
8
8
|
| [**read**](ContentOpenpgpUserattributeApi.md#read) | **GET** {open_p_g_p_user_attribute_href} | Inspect an open pgp user attribute |
|
9
|
+
| [**set_label**](ContentOpenpgpUserattributeApi.md#set_label) | **POST** {open_p_g_p_user_attribute_href}set_label/ | Set a label |
|
10
|
+
| [**unset_label**](ContentOpenpgpUserattributeApi.md#unset_label) | **POST** {open_p_g_p_user_attribute_href}unset_label/ | Unset a label |
|
9
11
|
|
10
12
|
|
11
13
|
## list
|
@@ -183,3 +185,147 @@ end
|
|
183
185
|
- **Content-Type**: Not defined
|
184
186
|
- **Accept**: application/json
|
185
187
|
|
188
|
+
|
189
|
+
## set_label
|
190
|
+
|
191
|
+
> <SetLabelResponse> set_label(open_p_g_p_user_attribute_href, set_label)
|
192
|
+
|
193
|
+
Set a label
|
194
|
+
|
195
|
+
Set a single pulp_label on the object to a specific value or null.
|
196
|
+
|
197
|
+
### Examples
|
198
|
+
|
199
|
+
```ruby
|
200
|
+
require 'time'
|
201
|
+
require 'pulpcore_client'
|
202
|
+
# setup authorization
|
203
|
+
PulpcoreClient.configure do |config|
|
204
|
+
# Configure HTTP basic authorization: basicAuth
|
205
|
+
config.username = 'YOUR USERNAME'
|
206
|
+
config.password = 'YOUR PASSWORD'
|
207
|
+
end
|
208
|
+
|
209
|
+
api_instance = PulpcoreClient::ContentOpenpgpUserattributeApi.new
|
210
|
+
open_p_g_p_user_attribute_href = 'open_p_g_p_user_attribute_href_example' # String |
|
211
|
+
set_label = PulpcoreClient::SetLabel.new({key: 'key_example', value: 'value_example'}) # SetLabel |
|
212
|
+
|
213
|
+
begin
|
214
|
+
# Set a label
|
215
|
+
result = api_instance.set_label(open_p_g_p_user_attribute_href, set_label)
|
216
|
+
p result
|
217
|
+
rescue PulpcoreClient::ApiError => e
|
218
|
+
puts "Error when calling ContentOpenpgpUserattributeApi->set_label: #{e}"
|
219
|
+
end
|
220
|
+
```
|
221
|
+
|
222
|
+
#### Using the set_label_with_http_info variant
|
223
|
+
|
224
|
+
This returns an Array which contains the response data, status code and headers.
|
225
|
+
|
226
|
+
> <Array(<SetLabelResponse>, Integer, Hash)> set_label_with_http_info(open_p_g_p_user_attribute_href, set_label)
|
227
|
+
|
228
|
+
```ruby
|
229
|
+
begin
|
230
|
+
# Set a label
|
231
|
+
data, status_code, headers = api_instance.set_label_with_http_info(open_p_g_p_user_attribute_href, set_label)
|
232
|
+
p status_code # => 2xx
|
233
|
+
p headers # => { ... }
|
234
|
+
p data # => <SetLabelResponse>
|
235
|
+
rescue PulpcoreClient::ApiError => e
|
236
|
+
puts "Error when calling ContentOpenpgpUserattributeApi->set_label_with_http_info: #{e}"
|
237
|
+
end
|
238
|
+
```
|
239
|
+
|
240
|
+
### Parameters
|
241
|
+
|
242
|
+
| Name | Type | Description | Notes |
|
243
|
+
| ---- | ---- | ----------- | ----- |
|
244
|
+
| **open_p_g_p_user_attribute_href** | **String** | | |
|
245
|
+
| **set_label** | [**SetLabel**](SetLabel.md) | | |
|
246
|
+
|
247
|
+
### Return type
|
248
|
+
|
249
|
+
[**SetLabelResponse**](SetLabelResponse.md)
|
250
|
+
|
251
|
+
### Authorization
|
252
|
+
|
253
|
+
[basicAuth](../README.md#basicAuth)
|
254
|
+
|
255
|
+
### HTTP request headers
|
256
|
+
|
257
|
+
- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
|
258
|
+
- **Accept**: application/json
|
259
|
+
|
260
|
+
|
261
|
+
## unset_label
|
262
|
+
|
263
|
+
> <UnsetLabelResponse> unset_label(open_p_g_p_user_attribute_href, unset_label)
|
264
|
+
|
265
|
+
Unset a label
|
266
|
+
|
267
|
+
Unset a single pulp_label on the object.
|
268
|
+
|
269
|
+
### Examples
|
270
|
+
|
271
|
+
```ruby
|
272
|
+
require 'time'
|
273
|
+
require 'pulpcore_client'
|
274
|
+
# setup authorization
|
275
|
+
PulpcoreClient.configure do |config|
|
276
|
+
# Configure HTTP basic authorization: basicAuth
|
277
|
+
config.username = 'YOUR USERNAME'
|
278
|
+
config.password = 'YOUR PASSWORD'
|
279
|
+
end
|
280
|
+
|
281
|
+
api_instance = PulpcoreClient::ContentOpenpgpUserattributeApi.new
|
282
|
+
open_p_g_p_user_attribute_href = 'open_p_g_p_user_attribute_href_example' # String |
|
283
|
+
unset_label = PulpcoreClient::UnsetLabel.new({key: 'key_example'}) # UnsetLabel |
|
284
|
+
|
285
|
+
begin
|
286
|
+
# Unset a label
|
287
|
+
result = api_instance.unset_label(open_p_g_p_user_attribute_href, unset_label)
|
288
|
+
p result
|
289
|
+
rescue PulpcoreClient::ApiError => e
|
290
|
+
puts "Error when calling ContentOpenpgpUserattributeApi->unset_label: #{e}"
|
291
|
+
end
|
292
|
+
```
|
293
|
+
|
294
|
+
#### Using the unset_label_with_http_info variant
|
295
|
+
|
296
|
+
This returns an Array which contains the response data, status code and headers.
|
297
|
+
|
298
|
+
> <Array(<UnsetLabelResponse>, Integer, Hash)> unset_label_with_http_info(open_p_g_p_user_attribute_href, unset_label)
|
299
|
+
|
300
|
+
```ruby
|
301
|
+
begin
|
302
|
+
# Unset a label
|
303
|
+
data, status_code, headers = api_instance.unset_label_with_http_info(open_p_g_p_user_attribute_href, unset_label)
|
304
|
+
p status_code # => 2xx
|
305
|
+
p headers # => { ... }
|
306
|
+
p data # => <UnsetLabelResponse>
|
307
|
+
rescue PulpcoreClient::ApiError => e
|
308
|
+
puts "Error when calling ContentOpenpgpUserattributeApi->unset_label_with_http_info: #{e}"
|
309
|
+
end
|
310
|
+
```
|
311
|
+
|
312
|
+
### Parameters
|
313
|
+
|
314
|
+
| Name | Type | Description | Notes |
|
315
|
+
| ---- | ---- | ----------- | ----- |
|
316
|
+
| **open_p_g_p_user_attribute_href** | **String** | | |
|
317
|
+
| **unset_label** | [**UnsetLabel**](UnsetLabel.md) | | |
|
318
|
+
|
319
|
+
### Return type
|
320
|
+
|
321
|
+
[**UnsetLabelResponse**](UnsetLabelResponse.md)
|
322
|
+
|
323
|
+
### Authorization
|
324
|
+
|
325
|
+
[basicAuth](../README.md#basicAuth)
|
326
|
+
|
327
|
+
### HTTP request headers
|
328
|
+
|
329
|
+
- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
|
330
|
+
- **Accept**: application/json
|
331
|
+
|