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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d95d4915e8a7c97062220336a8027d40f6e8296e6794659d4530647ad1bc5e11
4
- data.tar.gz: 2016018c5ad212931907bb51295a4cf72c80ddb8348fd45c723925ec72c9163f
3
+ metadata.gz: 5c64f5d48bed4cb91a9609eb8923059d1a8b22a7c78a5a7a164bc3fef4d0965e
4
+ data.tar.gz: 49444c2fb0b21d6a98dc64f71269602b722ffbbe5f79635974a5470d0f7d40ea
5
5
  SHA512:
6
- metadata.gz: b98b772a84d4e4374d3faead8a6ca4266ddfaa4afcef0e6968dd051e7a7f26cfd6a197ca43e59a5e70b6c0b73be812b2f3cdc1018125b409360b13050ed01469
7
- data.tar.gz: ee0037cdb92bdc441e3cd63520ec374842d5f5a4a8d97f8c48e3258f59e7b3c301aabfea5d920131c54e0bbadbb9ff547f19f3705d3ca14a19a55e407bfc5462
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.1
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.1.gem
28
+ gem install ./pulpcore_client-3.73.2.gem
29
29
  ```
30
30
 
31
- (for development, run `gem install --dev ./pulpcore_client-3.73.1.gem` to install the development dependencies)
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.1'
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
- base_path: null
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
+