pulp_gem_client 0.6.2 → 0.7.1

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: 2b36192ce4d64a74b05190ff8a05c4eb2377426ab642850762b3b36391821265
4
- data.tar.gz: 972a883542b71e86f5a35195073aa578fe0dcd2988082694656e2d16fbc821ca
3
+ metadata.gz: 3007be0eb7890f58b7a6929a538e4134e4ab0cd974e974a504d288d449173823
4
+ data.tar.gz: 3ea8e5d5a4be65f7d0aa8c47fbca015e086256c4643280b9ffc78da382cdf92d
5
5
  SHA512:
6
- metadata.gz: 7ddfef8cc263ad9abfdf1af49c5d3f5a8442abbd96adccdd403c329deff1acbffeb0bf5435abe2f72eb2986eac8a6b5ad2865472175b275883951b78284e3a4a
7
- data.tar.gz: 8c51e3c12c509f7860bcde013b5aaa0ecdc8fc9fc10bb7f9ae04eab6f6632551281dc163ccef91756dce1f301447dde122f2f634f8f033665b402893d4550bbf
6
+ metadata.gz: 2d7258cfca8a1a26410c710704b2f2f83be21c42c8144071f325309259435298f8ebc166315bc5f8c6925494b6ce66c65864b318d0e9be218ec783b2c5f5fd65
7
+ data.tar.gz: 502a94c4b39b7e4afbc598aa77ac65ff263d43025151b8522ee4539134c313e01f763abdd5ca53b936ca7abd548b68a6b9ea2744334ca6152bf6da5a388fd133
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: 0.6.2
10
+ - Package version: 0.7.1
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 pulp_gem_client.gemspec
25
25
  Then either install the gem locally:
26
26
 
27
27
  ```shell
28
- gem install ./pulp_gem_client-0.6.2.gem
28
+ gem install ./pulp_gem_client-0.7.1.gem
29
29
  ```
30
30
 
31
- (for development, run `gem install --dev ./pulp_gem_client-0.6.2.gem` to install the development dependencies)
31
+ (for development, run `gem install --dev ./pulp_gem_client-0.7.1.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 'pulp_gem_client', '~> 0.6.2'
37
+ gem 'pulp_gem_client', '~> 0.7.1'
38
38
 
39
39
  ### Install from Git
40
40
 
@@ -70,6 +70,7 @@ end
70
70
  api_instance = PulpGemClient::ContentGemApi.new
71
71
  opts = {
72
72
  repository: 'repository_example', # String | A URI of a repository the new content unit should be associated with.
73
+ pulp_labels: { key: 'inner_example'}, # Hash<String, String> | A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
73
74
  artifact: 'artifact_example', # String | Artifact file representing the physical content
74
75
  file: File.new('/path/to/some/file') # File | An uploaded file that should be turned into the artifact of the content unit.
75
76
  }
@@ -93,6 +94,8 @@ Class | Method | HTTP request | Description
93
94
  *PulpGemClient::ContentGemApi* | [**create**](docs/ContentGemApi.md#create) | **POST** /pulp/api/v3/content/gem/gem/ | Create a gem content
94
95
  *PulpGemClient::ContentGemApi* | [**list**](docs/ContentGemApi.md#list) | **GET** /pulp/api/v3/content/gem/gem/ | List gem contents
95
96
  *PulpGemClient::ContentGemApi* | [**read**](docs/ContentGemApi.md#read) | **GET** {gem_gem_content_href} | Inspect a gem content
97
+ *PulpGemClient::ContentGemApi* | [**set_label**](docs/ContentGemApi.md#set_label) | **POST** {gem_gem_content_href}set_label/ | Set a label
98
+ *PulpGemClient::ContentGemApi* | [**unset_label**](docs/ContentGemApi.md#unset_label) | **POST** {gem_gem_content_href}unset_label/ | Unset a label
96
99
  *PulpGemClient::DistributionsGemApi* | [**add_role**](docs/DistributionsGemApi.md#add_role) | **POST** {gem_gem_distribution_href}add_role/ | Add a role
97
100
  *PulpGemClient::DistributionsGemApi* | [**create**](docs/DistributionsGemApi.md#create) | **POST** /pulp/api/v3/distributions/gem/gem/ | Create a gem distribution
98
101
  *PulpGemClient::DistributionsGemApi* | [**delete**](docs/DistributionsGemApi.md#delete) | **DELETE** {gem_gem_distribution_href} | Delete a gem distribution
@@ -7,6 +7,8 @@ All URIs are relative to *http://localhost:24817*
7
7
  | [**create**](ContentGemApi.md#create) | **POST** /pulp/api/v3/content/gem/gem/ | Create a gem content |
8
8
  | [**list**](ContentGemApi.md#list) | **GET** /pulp/api/v3/content/gem/gem/ | List gem contents |
9
9
  | [**read**](ContentGemApi.md#read) | **GET** {gem_gem_content_href} | Inspect a gem content |
10
+ | [**set_label**](ContentGemApi.md#set_label) | **POST** {gem_gem_content_href}set_label/ | Set a label |
11
+ | [**unset_label**](ContentGemApi.md#unset_label) | **POST** {gem_gem_content_href}unset_label/ | Unset a label |
10
12
 
11
13
 
12
14
  ## create
@@ -32,6 +34,7 @@ end
32
34
  api_instance = PulpGemClient::ContentGemApi.new
33
35
  opts = {
34
36
  repository: 'repository_example', # String | A URI of a repository the new content unit should be associated with.
37
+ pulp_labels: { key: 'inner_example'}, # Hash<String, String> | A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
35
38
  artifact: 'artifact_example', # String | Artifact file representing the physical content
36
39
  file: File.new('/path/to/some/file') # File | An uploaded file that should be turned into the artifact of the content unit.
37
40
  }
@@ -68,6 +71,7 @@ end
68
71
  | Name | Type | Description | Notes |
69
72
  | ---- | ---- | ----------- | ----- |
70
73
  | **repository** | **String** | A URI of a repository the new content unit should be associated with. | [optional] |
74
+ | **pulp_labels** | [**Hash&lt;String, String&gt;**](Hash.md) | A dictionary of arbitrary key/value pairs used to describe a specific Content instance. | [optional] |
71
75
  | **artifact** | **String** | Artifact file representing the physical content | [optional] |
72
76
  | **file** | **File** | An uploaded file that should be turned into the artifact of the content unit. | [optional] |
73
77
 
@@ -111,12 +115,13 @@ opts = {
111
115
  limit: 56, # Integer | Number of results to return per page.
112
116
  name: 'name_example', # String | Filter results where name matches value
113
117
  offset: 56, # Integer | The initial index from which to return the results.
114
- ordering: ['-checksum'], # 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) * `upstream_id` - Upstream id * `-upstream_id` - Upstream id (descending) * `timestamp_of_interest` - Timestamp of interest * `-timestamp_of_interest` - Timestamp of interest (descending) * `name` - Name * `-name` - Name (descending) * `version` - Version * `-version` - Version (descending) * `platform` - Platform * `-platform` - Platform (descending) * `checksum` - Checksum * `-checksum` - Checksum (descending) * `prerelease` - Prerelease * `-prerelease` - Prerelease (descending) * `dependencies` - Dependencies * `-dependencies` - Dependencies (descending) * `required_ruby_version` - Required ruby version * `-required_ruby_version` - Required ruby version (descending) * `required_rubygems_version` - Required rubygems version * `-required_rubygems_version` - Required rubygems version (descending) * `pk` - Pk * `-pk` - Pk (descending)
118
+ ordering: ['-checksum'], # 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) * `upstream_id` - Upstream id * `-upstream_id` - Upstream id (descending) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `timestamp_of_interest` - Timestamp of interest * `-timestamp_of_interest` - Timestamp of interest (descending) * `name` - Name * `-name` - Name (descending) * `version` - Version * `-version` - Version (descending) * `platform` - Platform * `-platform` - Platform (descending) * `checksum` - Checksum * `-checksum` - Checksum (descending) * `prerelease` - Prerelease * `-prerelease` - Prerelease (descending) * `dependencies` - Dependencies * `-dependencies` - Dependencies (descending) * `required_ruby_version` - Required ruby version * `-required_ruby_version` - Required ruby version (descending) * `required_rubygems_version` - Required rubygems version * `-required_rubygems_version` - Required rubygems version (descending) * `pk` - Pk * `-pk` - Pk (descending)
115
119
  orphaned_for: 8.14, # Float | Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME.
116
120
  prerelease: true, # Boolean | Filter results where prerelease matches value
117
121
  prn__in: ['inner_example'], # Array<String> | Multiple values may be separated by commas.
118
122
  pulp_href__in: ['inner_example'], # Array<String> | Multiple values may be separated by commas.
119
123
  pulp_id__in: ['inner_example'], # Array<String> | Multiple values may be separated by commas.
124
+ pulp_label_select: 'pulp_label_select_example', # String | Filter labels by search string
120
125
  q: 'q_example', # String | Filter results by using NOT, AND and OR operations on other filters
121
126
  repository_version: 'repository_version_example', # String | Repository Version referenced by HREF/PRN
122
127
  repository_version_added: 'repository_version_added_example', # String | Repository Version referenced by HREF/PRN
@@ -161,12 +166,13 @@ end
161
166
  | **limit** | **Integer** | Number of results to return per page. | [optional] |
162
167
  | **name** | **String** | Filter results where name matches value | [optional] |
163
168
  | **offset** | **Integer** | The initial index from which to return the results. | [optional] |
164
- | **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;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;name&#x60; - Name * &#x60;-name&#x60; - Name (descending) * &#x60;version&#x60; - Version * &#x60;-version&#x60; - Version (descending) * &#x60;platform&#x60; - Platform * &#x60;-platform&#x60; - Platform (descending) * &#x60;checksum&#x60; - Checksum * &#x60;-checksum&#x60; - Checksum (descending) * &#x60;prerelease&#x60; - Prerelease * &#x60;-prerelease&#x60; - Prerelease (descending) * &#x60;dependencies&#x60; - Dependencies * &#x60;-dependencies&#x60; - Dependencies (descending) * &#x60;required_ruby_version&#x60; - Required ruby version * &#x60;-required_ruby_version&#x60; - Required ruby version (descending) * &#x60;required_rubygems_version&#x60; - Required rubygems version * &#x60;-required_rubygems_version&#x60; - Required rubygems version (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending) | [optional] |
169
+ | **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;upstream_id&#x60; - Upstream id * &#x60;-upstream_id&#x60; - Upstream id (descending) * &#x60;pulp_labels&#x60; - Pulp labels * &#x60;-pulp_labels&#x60; - Pulp labels (descending) * &#x60;timestamp_of_interest&#x60; - Timestamp of interest * &#x60;-timestamp_of_interest&#x60; - Timestamp of interest (descending) * &#x60;name&#x60; - Name * &#x60;-name&#x60; - Name (descending) * &#x60;version&#x60; - Version * &#x60;-version&#x60; - Version (descending) * &#x60;platform&#x60; - Platform * &#x60;-platform&#x60; - Platform (descending) * &#x60;checksum&#x60; - Checksum * &#x60;-checksum&#x60; - Checksum (descending) * &#x60;prerelease&#x60; - Prerelease * &#x60;-prerelease&#x60; - Prerelease (descending) * &#x60;dependencies&#x60; - Dependencies * &#x60;-dependencies&#x60; - Dependencies (descending) * &#x60;required_ruby_version&#x60; - Required ruby version * &#x60;-required_ruby_version&#x60; - Required ruby version (descending) * &#x60;required_rubygems_version&#x60; - Required rubygems version * &#x60;-required_rubygems_version&#x60; - Required rubygems version (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending) | [optional] |
165
170
  | **orphaned_for** | **Float** | Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME. | [optional] |
166
171
  | **prerelease** | **Boolean** | Filter results where prerelease matches value | [optional] |
167
172
  | **prn__in** | [**Array&lt;String&gt;**](String.md) | Multiple values may be separated by commas. | [optional] |
168
173
  | **pulp_href__in** | [**Array&lt;String&gt;**](String.md) | Multiple values may be separated by commas. | [optional] |
169
174
  | **pulp_id__in** | [**Array&lt;String&gt;**](String.md) | Multiple values may be separated by commas. | [optional] |
175
+ | **pulp_label_select** | **String** | Filter labels by search string | [optional] |
170
176
  | **q** | **String** | Filter results by using NOT, AND and OR operations on other filters | [optional] |
171
177
  | **repository_version** | **String** | Repository Version referenced by HREF/PRN | [optional] |
172
178
  | **repository_version_added** | **String** | Repository Version referenced by HREF/PRN | [optional] |
@@ -264,3 +270,147 @@ end
264
270
  - **Content-Type**: Not defined
265
271
  - **Accept**: application/json
266
272
 
273
+
274
+ ## set_label
275
+
276
+ > <SetLabelResponse> set_label(gem_gem_content_href, set_label)
277
+
278
+ Set a label
279
+
280
+ Set a single pulp_label on the object to a specific value or null.
281
+
282
+ ### Examples
283
+
284
+ ```ruby
285
+ require 'time'
286
+ require 'pulp_gem_client'
287
+ # setup authorization
288
+ PulpGemClient.configure do |config|
289
+ # Configure HTTP basic authorization: basicAuth
290
+ config.username = 'YOUR USERNAME'
291
+ config.password = 'YOUR PASSWORD'
292
+ end
293
+
294
+ api_instance = PulpGemClient::ContentGemApi.new
295
+ gem_gem_content_href = 'gem_gem_content_href_example' # String |
296
+ set_label = PulpGemClient::SetLabel.new({key: 'key_example', value: 'value_example'}) # SetLabel |
297
+
298
+ begin
299
+ # Set a label
300
+ result = api_instance.set_label(gem_gem_content_href, set_label)
301
+ p result
302
+ rescue PulpGemClient::ApiError => e
303
+ puts "Error when calling ContentGemApi->set_label: #{e}"
304
+ end
305
+ ```
306
+
307
+ #### Using the set_label_with_http_info variant
308
+
309
+ This returns an Array which contains the response data, status code and headers.
310
+
311
+ > <Array(<SetLabelResponse>, Integer, Hash)> set_label_with_http_info(gem_gem_content_href, set_label)
312
+
313
+ ```ruby
314
+ begin
315
+ # Set a label
316
+ data, status_code, headers = api_instance.set_label_with_http_info(gem_gem_content_href, set_label)
317
+ p status_code # => 2xx
318
+ p headers # => { ... }
319
+ p data # => <SetLabelResponse>
320
+ rescue PulpGemClient::ApiError => e
321
+ puts "Error when calling ContentGemApi->set_label_with_http_info: #{e}"
322
+ end
323
+ ```
324
+
325
+ ### Parameters
326
+
327
+ | Name | Type | Description | Notes |
328
+ | ---- | ---- | ----------- | ----- |
329
+ | **gem_gem_content_href** | **String** | | |
330
+ | **set_label** | [**SetLabel**](SetLabel.md) | | |
331
+
332
+ ### Return type
333
+
334
+ [**SetLabelResponse**](SetLabelResponse.md)
335
+
336
+ ### Authorization
337
+
338
+ [basicAuth](../README.md#basicAuth)
339
+
340
+ ### HTTP request headers
341
+
342
+ - **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
343
+ - **Accept**: application/json
344
+
345
+
346
+ ## unset_label
347
+
348
+ > <UnsetLabelResponse> unset_label(gem_gem_content_href, unset_label)
349
+
350
+ Unset a label
351
+
352
+ Unset a single pulp_label on the object.
353
+
354
+ ### Examples
355
+
356
+ ```ruby
357
+ require 'time'
358
+ require 'pulp_gem_client'
359
+ # setup authorization
360
+ PulpGemClient.configure do |config|
361
+ # Configure HTTP basic authorization: basicAuth
362
+ config.username = 'YOUR USERNAME'
363
+ config.password = 'YOUR PASSWORD'
364
+ end
365
+
366
+ api_instance = PulpGemClient::ContentGemApi.new
367
+ gem_gem_content_href = 'gem_gem_content_href_example' # String |
368
+ unset_label = PulpGemClient::UnsetLabel.new({key: 'key_example'}) # UnsetLabel |
369
+
370
+ begin
371
+ # Unset a label
372
+ result = api_instance.unset_label(gem_gem_content_href, unset_label)
373
+ p result
374
+ rescue PulpGemClient::ApiError => e
375
+ puts "Error when calling ContentGemApi->unset_label: #{e}"
376
+ end
377
+ ```
378
+
379
+ #### Using the unset_label_with_http_info variant
380
+
381
+ This returns an Array which contains the response data, status code and headers.
382
+
383
+ > <Array(<UnsetLabelResponse>, Integer, Hash)> unset_label_with_http_info(gem_gem_content_href, unset_label)
384
+
385
+ ```ruby
386
+ begin
387
+ # Unset a label
388
+ data, status_code, headers = api_instance.unset_label_with_http_info(gem_gem_content_href, unset_label)
389
+ p status_code # => 2xx
390
+ p headers # => { ... }
391
+ p data # => <UnsetLabelResponse>
392
+ rescue PulpGemClient::ApiError => e
393
+ puts "Error when calling ContentGemApi->unset_label_with_http_info: #{e}"
394
+ end
395
+ ```
396
+
397
+ ### Parameters
398
+
399
+ | Name | Type | Description | Notes |
400
+ | ---- | ---- | ----------- | ----- |
401
+ | **gem_gem_content_href** | **String** | | |
402
+ | **unset_label** | [**UnsetLabel**](UnsetLabel.md) | | |
403
+
404
+ ### Return type
405
+
406
+ [**UnsetLabelResponse**](UnsetLabelResponse.md)
407
+
408
+ ### Authorization
409
+
410
+ [basicAuth](../README.md#basicAuth)
411
+
412
+ ### HTTP request headers
413
+
414
+ - **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
415
+ - **Accept**: application/json
416
+
@@ -256,6 +256,7 @@ opts = {
256
256
  base_path__contains: 'base_path__contains_example', # String | Filter results where base_path contains value
257
257
  base_path__icontains: 'base_path__icontains_example', # String | Filter results where base_path contains value
258
258
  base_path__in: ['inner_example'], # Array<String> | Filter results where base_path is in a comma-separated list of values
259
+ checkpoint: true, # Boolean | Filter results where checkpoint matches value
259
260
  limit: 56, # Integer | Number of results to return per page.
260
261
  name: 'name_example', # String | Filter results where name matches value
261
262
  name__contains: 'name__contains_example', # String | Filter results where name contains value
@@ -267,7 +268,7 @@ opts = {
267
268
  name__regex: 'name__regex_example', # String | Filter results where name matches regex value
268
269
  name__startswith: 'name__startswith_example', # String | Filter results where name starts with value
269
270
  offset: 56, # Integer | The initial index from which to return the results.
270
- ordering: ['-base_path'], # 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)
271
+ ordering: ['-base_path'], # 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) * `checkpoint` - Checkpoint * `-checkpoint` - Checkpoint (descending) * `pk` - Pk * `-pk` - Pk (descending)
271
272
  prn__in: ['inner_example'], # Array<String> | Multiple values may be separated by commas.
272
273
  pulp_href__in: ['inner_example'], # Array<String> | Multiple values may be separated by commas.
273
274
  pulp_id__in: ['inner_example'], # Array<String> | Multiple values may be separated by commas.
@@ -315,6 +316,7 @@ end
315
316
  | **base_path__contains** | **String** | Filter results where base_path contains value | [optional] |
316
317
  | **base_path__icontains** | **String** | Filter results where base_path contains value | [optional] |
317
318
  | **base_path__in** | [**Array&lt;String&gt;**](String.md) | Filter results where base_path is in a comma-separated list of values | [optional] |
319
+ | **checkpoint** | **Boolean** | Filter results where checkpoint matches value | [optional] |
318
320
  | **limit** | **Integer** | Number of results to return per page. | [optional] |
319
321
  | **name** | **String** | Filter results where name matches value | [optional] |
320
322
  | **name__contains** | **String** | Filter results where name contains value | [optional] |
@@ -326,7 +328,7 @@ end
326
328
  | **name__regex** | **String** | Filter results where name matches regex value | [optional] |
327
329
  | **name__startswith** | **String** | Filter results where name starts with value | [optional] |
328
330
  | **offset** | **Integer** | The initial index from which to return the results. | [optional] |
329
- | **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] |
331
+ | **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;checkpoint&#x60; - Checkpoint * &#x60;-checkpoint&#x60; - Checkpoint (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending) | [optional] |
330
332
  | **prn__in** | [**Array&lt;String&gt;**](String.md) | Multiple values may be separated by commas. | [optional] |
331
333
  | **pulp_href__in** | [**Array&lt;String&gt;**](String.md) | Multiple values may be separated by commas. | [optional] |
332
334
  | **pulp_id__in** | [**Array&lt;String&gt;**](String.md) | Multiple values may be separated by commas. | [optional] |
@@ -8,6 +8,7 @@
8
8
  | **prn** | **String** | The Pulp Resource Name (PRN). | [optional][readonly] |
9
9
  | **pulp_created** | **Time** | Timestamp of creation. | [optional][readonly] |
10
10
  | **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] |
11
+ | **pulp_labels** | **Hash&lt;String, String&gt;** | A dictionary of arbitrary key/value pairs used to describe a specific Content instance. | [optional] |
11
12
  | **artifacts** | **Object** | A dict mapping relative paths inside the Content to the correspondingArtifact URLs. E.g.: {&#39;relative/path&#39;: &#39;/artifacts/1/&#39; | [readonly] |
12
13
  | **checksum** | **String** | SHA256 checksum of the gem | [optional][readonly] |
13
14
  | **name** | **String** | Name of the gem | [optional][readonly] |
@@ -28,6 +29,7 @@ instance = PulpGemClient::GemGemContentResponse.new(
28
29
  prn: null,
29
30
  pulp_created: null,
30
31
  pulp_last_updated: null,
32
+ pulp_labels: null,
31
33
  artifacts: null,
32
34
  checksum: null,
33
35
  name: null,
@@ -247,11 +247,12 @@ end
247
247
 
248
248
  api_instance = PulpGemClient::PublicationsGemApi.new
249
249
  opts = {
250
+ checkpoint: true, # Boolean | Filter results where checkpoint matches value
250
251
  content: 'content_example', # String | Content Unit referenced by HREF/PRN
251
252
  content__in: ['inner_example'], # Array<String> | Multiple values may be separated by commas.
252
253
  limit: 56, # Integer | Number of results to return per page.
253
254
  offset: 56, # Integer | The initial index from which to return the results.
254
- ordering: ['-complete'], # Array<String> | Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `complete` - Complete * `-complete` - Complete (descending) * `pass_through` - Pass through * `-pass_through` - Pass through (descending) * `pk` - Pk * `-pk` - Pk (descending)
255
+ ordering: ['-checkpoint'], # Array<String> | Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `complete` - Complete * `-complete` - Complete (descending) * `pass_through` - Pass through * `-pass_through` - Pass through (descending) * `checkpoint` - Checkpoint * `-checkpoint` - Checkpoint (descending) * `pk` - Pk * `-pk` - Pk (descending)
255
256
  prn__in: ['inner_example'], # Array<String> | Multiple values may be separated by commas.
256
257
  pulp_created: Time.parse('2013-10-20T19:20:30+01:00'), # Time | Filter results where pulp_created matches value
257
258
  pulp_created__gt: Time.parse('2013-10-20T19:20:30+01:00'), # Time | Filter results where pulp_created is greater than value
@@ -300,11 +301,12 @@ end
300
301
 
301
302
  | Name | Type | Description | Notes |
302
303
  | ---- | ---- | ----------- | ----- |
304
+ | **checkpoint** | **Boolean** | Filter results where checkpoint matches value | [optional] |
303
305
  | **content** | **String** | Content Unit referenced by HREF/PRN | [optional] |
304
306
  | **content__in** | [**Array&lt;String&gt;**](String.md) | Multiple values may be separated by commas. | [optional] |
305
307
  | **limit** | **Integer** | Number of results to return per page. | [optional] |
306
308
  | **offset** | **Integer** | The initial index from which to return the results. | [optional] |
307
- | **ordering** | [**Array&lt;String&gt;**](String.md) | Ordering * &#x60;pulp_id&#x60; - Pulp id * &#x60;-pulp_id&#x60; - Pulp id (descending) * &#x60;pulp_created&#x60; - Pulp created * &#x60;-pulp_created&#x60; - Pulp created (descending) * &#x60;pulp_last_updated&#x60; - Pulp last updated * &#x60;-pulp_last_updated&#x60; - Pulp last updated (descending) * &#x60;pulp_type&#x60; - Pulp type * &#x60;-pulp_type&#x60; - Pulp type (descending) * &#x60;complete&#x60; - Complete * &#x60;-complete&#x60; - Complete (descending) * &#x60;pass_through&#x60; - Pass through * &#x60;-pass_through&#x60; - Pass through (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending) | [optional] |
309
+ | **ordering** | [**Array&lt;String&gt;**](String.md) | Ordering * &#x60;pulp_id&#x60; - Pulp id * &#x60;-pulp_id&#x60; - Pulp id (descending) * &#x60;pulp_created&#x60; - Pulp created * &#x60;-pulp_created&#x60; - Pulp created (descending) * &#x60;pulp_last_updated&#x60; - Pulp last updated * &#x60;-pulp_last_updated&#x60; - Pulp last updated (descending) * &#x60;pulp_type&#x60; - Pulp type * &#x60;-pulp_type&#x60; - Pulp type (descending) * &#x60;complete&#x60; - Complete * &#x60;-complete&#x60; - Complete (descending) * &#x60;pass_through&#x60; - Pass through * &#x60;-pass_through&#x60; - Pass through (descending) * &#x60;checkpoint&#x60; - Checkpoint * &#x60;-checkpoint&#x60; - Checkpoint (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending) | [optional] |
308
310
  | **prn__in** | [**Array&lt;String&gt;**](String.md) | Multiple values may be separated by commas. | [optional] |
309
311
  | **pulp_created** | **Time** | Filter results where pulp_created matches value | [optional] |
310
312
  | **pulp_created__gt** | **Time** | Filter results where pulp_created is greater than value | [optional] |
@@ -23,6 +23,7 @@ module PulpGemClient
23
23
  # Trigger an asynchronous task to create content,optionally create new repository version.
24
24
  # @param [Hash] opts the optional parameters
25
25
  # @option opts [String] :repository A URI of a repository the new content unit should be associated with.
26
+ # @option opts [Hash<String, String>] :pulp_labels A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
26
27
  # @option opts [String] :artifact Artifact file representing the physical content
27
28
  # @option opts [File] :file An uploaded file that should be turned into the artifact of the content unit.
28
29
  # @return [AsyncOperationResponse]
@@ -35,6 +36,7 @@ module PulpGemClient
35
36
  # Trigger an asynchronous task to create content,optionally create new repository version.
36
37
  # @param [Hash] opts the optional parameters
37
38
  # @option opts [String] :repository A URI of a repository the new content unit should be associated with.
39
+ # @option opts [Hash<String, String>] :pulp_labels A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
38
40
  # @option opts [String] :artifact Artifact file representing the physical content
39
41
  # @option opts [File] :file An uploaded file that should be turned into the artifact of the content unit.
40
42
  # @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
@@ -61,6 +63,7 @@ module PulpGemClient
61
63
  # form parameters
62
64
  form_params = opts[:form_params] || {}
63
65
  form_params['repository'] = opts[:'repository'] if !opts[:'repository'].nil?
66
+ form_params['pulp_labels'] = opts[:'pulp_labels'] if !opts[:'pulp_labels'].nil?
64
67
  form_params['artifact'] = opts[:'artifact'] if !opts[:'artifact'].nil?
65
68
  form_params['file'] = opts[:'file'] if !opts[:'file'].nil?
66
69
 
@@ -97,12 +100,13 @@ module PulpGemClient
97
100
  # @option opts [Integer] :limit Number of results to return per page.
98
101
  # @option opts [String] :name Filter results where name matches value
99
102
  # @option opts [Integer] :offset The initial index from which to return the results.
100
- # @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;name&#x60; - Name * &#x60;-name&#x60; - Name (descending) * &#x60;version&#x60; - Version * &#x60;-version&#x60; - Version (descending) * &#x60;platform&#x60; - Platform * &#x60;-platform&#x60; - Platform (descending) * &#x60;checksum&#x60; - Checksum * &#x60;-checksum&#x60; - Checksum (descending) * &#x60;prerelease&#x60; - Prerelease * &#x60;-prerelease&#x60; - Prerelease (descending) * &#x60;dependencies&#x60; - Dependencies * &#x60;-dependencies&#x60; - Dependencies (descending) * &#x60;required_ruby_version&#x60; - Required ruby version * &#x60;-required_ruby_version&#x60; - Required ruby version (descending) * &#x60;required_rubygems_version&#x60; - Required rubygems version * &#x60;-required_rubygems_version&#x60; - Required rubygems version (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
103
+ # @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;pulp_labels&#x60; - Pulp labels * &#x60;-pulp_labels&#x60; - Pulp labels (descending) * &#x60;timestamp_of_interest&#x60; - Timestamp of interest * &#x60;-timestamp_of_interest&#x60; - Timestamp of interest (descending) * &#x60;name&#x60; - Name * &#x60;-name&#x60; - Name (descending) * &#x60;version&#x60; - Version * &#x60;-version&#x60; - Version (descending) * &#x60;platform&#x60; - Platform * &#x60;-platform&#x60; - Platform (descending) * &#x60;checksum&#x60; - Checksum * &#x60;-checksum&#x60; - Checksum (descending) * &#x60;prerelease&#x60; - Prerelease * &#x60;-prerelease&#x60; - Prerelease (descending) * &#x60;dependencies&#x60; - Dependencies * &#x60;-dependencies&#x60; - Dependencies (descending) * &#x60;required_ruby_version&#x60; - Required ruby version * &#x60;-required_ruby_version&#x60; - Required ruby version (descending) * &#x60;required_rubygems_version&#x60; - Required rubygems version * &#x60;-required_rubygems_version&#x60; - Required rubygems version (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
101
104
  # @option opts [Float] :orphaned_for Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME.
102
105
  # @option opts [Boolean] :prerelease Filter results where prerelease matches value
103
106
  # @option opts [Array<String>] :prn__in Multiple values may be separated by commas.
104
107
  # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
105
108
  # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
109
+ # @option opts [String] :pulp_label_select Filter labels by search string
106
110
  # @option opts [String] :q Filter results by using NOT, AND and OR operations on other filters
107
111
  # @option opts [String] :repository_version Repository Version referenced by HREF/PRN
108
112
  # @option opts [String] :repository_version_added Repository Version referenced by HREF/PRN
@@ -123,12 +127,13 @@ module PulpGemClient
123
127
  # @option opts [Integer] :limit Number of results to return per page.
124
128
  # @option opts [String] :name Filter results where name matches value
125
129
  # @option opts [Integer] :offset The initial index from which to return the results.
126
- # @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;name&#x60; - Name * &#x60;-name&#x60; - Name (descending) * &#x60;version&#x60; - Version * &#x60;-version&#x60; - Version (descending) * &#x60;platform&#x60; - Platform * &#x60;-platform&#x60; - Platform (descending) * &#x60;checksum&#x60; - Checksum * &#x60;-checksum&#x60; - Checksum (descending) * &#x60;prerelease&#x60; - Prerelease * &#x60;-prerelease&#x60; - Prerelease (descending) * &#x60;dependencies&#x60; - Dependencies * &#x60;-dependencies&#x60; - Dependencies (descending) * &#x60;required_ruby_version&#x60; - Required ruby version * &#x60;-required_ruby_version&#x60; - Required ruby version (descending) * &#x60;required_rubygems_version&#x60; - Required rubygems version * &#x60;-required_rubygems_version&#x60; - Required rubygems version (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
130
+ # @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;pulp_labels&#x60; - Pulp labels * &#x60;-pulp_labels&#x60; - Pulp labels (descending) * &#x60;timestamp_of_interest&#x60; - Timestamp of interest * &#x60;-timestamp_of_interest&#x60; - Timestamp of interest (descending) * &#x60;name&#x60; - Name * &#x60;-name&#x60; - Name (descending) * &#x60;version&#x60; - Version * &#x60;-version&#x60; - Version (descending) * &#x60;platform&#x60; - Platform * &#x60;-platform&#x60; - Platform (descending) * &#x60;checksum&#x60; - Checksum * &#x60;-checksum&#x60; - Checksum (descending) * &#x60;prerelease&#x60; - Prerelease * &#x60;-prerelease&#x60; - Prerelease (descending) * &#x60;dependencies&#x60; - Dependencies * &#x60;-dependencies&#x60; - Dependencies (descending) * &#x60;required_ruby_version&#x60; - Required ruby version * &#x60;-required_ruby_version&#x60; - Required ruby version (descending) * &#x60;required_rubygems_version&#x60; - Required rubygems version * &#x60;-required_rubygems_version&#x60; - Required rubygems version (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
127
131
  # @option opts [Float] :orphaned_for Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME.
128
132
  # @option opts [Boolean] :prerelease Filter results where prerelease matches value
129
133
  # @option opts [Array<String>] :prn__in Multiple values may be separated by commas.
130
134
  # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
131
135
  # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
136
+ # @option opts [String] :pulp_label_select Filter labels by search string
132
137
  # @option opts [String] :q Filter results by using NOT, AND and OR operations on other filters
133
138
  # @option opts [String] :repository_version Repository Version referenced by HREF/PRN
134
139
  # @option opts [String] :repository_version_added Repository Version referenced by HREF/PRN
@@ -141,7 +146,7 @@ module PulpGemClient
141
146
  if @api_client.config.debugging
142
147
  @api_client.config.logger.debug 'Calling API: ContentGemApi.list ...'
143
148
  end
144
- allowable_values = ["-checksum", "-dependencies", "-name", "-pk", "-platform", "-prerelease", "-pulp_created", "-pulp_id", "-pulp_last_updated", "-pulp_type", "-required_ruby_version", "-required_rubygems_version", "-timestamp_of_interest", "-upstream_id", "-version", "checksum", "dependencies", "name", "pk", "platform", "prerelease", "pulp_created", "pulp_id", "pulp_last_updated", "pulp_type", "required_ruby_version", "required_rubygems_version", "timestamp_of_interest", "upstream_id", "version"]
149
+ allowable_values = ["-checksum", "-dependencies", "-name", "-pk", "-platform", "-prerelease", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-pulp_type", "-required_ruby_version", "-required_rubygems_version", "-timestamp_of_interest", "-upstream_id", "-version", "checksum", "dependencies", "name", "pk", "platform", "prerelease", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "pulp_type", "required_ruby_version", "required_rubygems_version", "timestamp_of_interest", "upstream_id", "version"]
145
150
  if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
146
151
  fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
147
152
  end
@@ -160,6 +165,7 @@ module PulpGemClient
160
165
  query_params[:'prn__in'] = @api_client.build_collection_param(opts[:'prn__in'], :csv) if !opts[:'prn__in'].nil?
161
166
  query_params[:'pulp_href__in'] = @api_client.build_collection_param(opts[:'pulp_href__in'], :csv) if !opts[:'pulp_href__in'].nil?
162
167
  query_params[:'pulp_id__in'] = @api_client.build_collection_param(opts[:'pulp_id__in'], :csv) if !opts[:'pulp_id__in'].nil?
168
+ query_params[:'pulp_label_select'] = opts[:'pulp_label_select'] if !opts[:'pulp_label_select'].nil?
163
169
  query_params[:'q'] = opts[:'q'] if !opts[:'q'].nil?
164
170
  query_params[:'repository_version'] = opts[:'repository_version'] if !opts[:'repository_version'].nil?
165
171
  query_params[:'repository_version_added'] = opts[:'repository_version_added'] if !opts[:'repository_version_added'].nil?
@@ -270,5 +276,153 @@ module PulpGemClient
270
276
  end
271
277
  return data, status_code, headers
272
278
  end
279
+
280
+ # Set a label
281
+ # Set a single pulp_label on the object to a specific value or null.
282
+ # @param gem_gem_content_href [String]
283
+ # @param set_label [SetLabel]
284
+ # @param [Hash] opts the optional parameters
285
+ # @return [SetLabelResponse]
286
+ def set_label(gem_gem_content_href, set_label, opts = {})
287
+ data, _status_code, _headers = set_label_with_http_info(gem_gem_content_href, set_label, opts)
288
+ data
289
+ end
290
+
291
+ # Set a label
292
+ # Set a single pulp_label on the object to a specific value or null.
293
+ # @param gem_gem_content_href [String]
294
+ # @param set_label [SetLabel]
295
+ # @param [Hash] opts the optional parameters
296
+ # @return [Array<(SetLabelResponse, Integer, Hash)>] SetLabelResponse data, response status code and response headers
297
+ def set_label_with_http_info(gem_gem_content_href, set_label, opts = {})
298
+ if @api_client.config.debugging
299
+ @api_client.config.logger.debug 'Calling API: ContentGemApi.set_label ...'
300
+ end
301
+ # verify the required parameter 'gem_gem_content_href' is set
302
+ if @api_client.config.client_side_validation && gem_gem_content_href.nil?
303
+ fail ArgumentError, "Missing the required parameter 'gem_gem_content_href' when calling ContentGemApi.set_label"
304
+ end
305
+ # verify the required parameter 'set_label' is set
306
+ if @api_client.config.client_side_validation && set_label.nil?
307
+ fail ArgumentError, "Missing the required parameter 'set_label' when calling ContentGemApi.set_label"
308
+ end
309
+ # resource path
310
+ local_var_path = '{gem_gem_content_href}set_label/'.sub('{' + 'gem_gem_content_href' + '}', CGI.escape(gem_gem_content_href.to_s).gsub('%2F', '/'))
311
+
312
+ # query parameters
313
+ query_params = opts[:query_params] || {}
314
+
315
+ # header parameters
316
+ header_params = opts[:header_params] || {}
317
+ # HTTP header 'Accept' (if needed)
318
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
319
+ # HTTP header 'Content-Type'
320
+ content_type = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
321
+ if !content_type.nil?
322
+ header_params['Content-Type'] = content_type
323
+ end
324
+
325
+ # form parameters
326
+ form_params = opts[:form_params] || {}
327
+
328
+ # http body (model)
329
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(set_label)
330
+
331
+ # return_type
332
+ return_type = opts[:debug_return_type] || 'SetLabelResponse'
333
+
334
+ # auth_names
335
+ auth_names = opts[:debug_auth_names] || ['basicAuth']
336
+
337
+ new_options = opts.merge(
338
+ :operation => :"ContentGemApi.set_label",
339
+ :header_params => header_params,
340
+ :query_params => query_params,
341
+ :form_params => form_params,
342
+ :body => post_body,
343
+ :auth_names => auth_names,
344
+ :return_type => return_type
345
+ )
346
+
347
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
348
+ if @api_client.config.debugging
349
+ @api_client.config.logger.debug "API called: ContentGemApi#set_label\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
350
+ end
351
+ return data, status_code, headers
352
+ end
353
+
354
+ # Unset a label
355
+ # Unset a single pulp_label on the object.
356
+ # @param gem_gem_content_href [String]
357
+ # @param unset_label [UnsetLabel]
358
+ # @param [Hash] opts the optional parameters
359
+ # @return [UnsetLabelResponse]
360
+ def unset_label(gem_gem_content_href, unset_label, opts = {})
361
+ data, _status_code, _headers = unset_label_with_http_info(gem_gem_content_href, unset_label, opts)
362
+ data
363
+ end
364
+
365
+ # Unset a label
366
+ # Unset a single pulp_label on the object.
367
+ # @param gem_gem_content_href [String]
368
+ # @param unset_label [UnsetLabel]
369
+ # @param [Hash] opts the optional parameters
370
+ # @return [Array<(UnsetLabelResponse, Integer, Hash)>] UnsetLabelResponse data, response status code and response headers
371
+ def unset_label_with_http_info(gem_gem_content_href, unset_label, opts = {})
372
+ if @api_client.config.debugging
373
+ @api_client.config.logger.debug 'Calling API: ContentGemApi.unset_label ...'
374
+ end
375
+ # verify the required parameter 'gem_gem_content_href' is set
376
+ if @api_client.config.client_side_validation && gem_gem_content_href.nil?
377
+ fail ArgumentError, "Missing the required parameter 'gem_gem_content_href' when calling ContentGemApi.unset_label"
378
+ end
379
+ # verify the required parameter 'unset_label' is set
380
+ if @api_client.config.client_side_validation && unset_label.nil?
381
+ fail ArgumentError, "Missing the required parameter 'unset_label' when calling ContentGemApi.unset_label"
382
+ end
383
+ # resource path
384
+ local_var_path = '{gem_gem_content_href}unset_label/'.sub('{' + 'gem_gem_content_href' + '}', CGI.escape(gem_gem_content_href.to_s).gsub('%2F', '/'))
385
+
386
+ # query parameters
387
+ query_params = opts[:query_params] || {}
388
+
389
+ # header parameters
390
+ header_params = opts[:header_params] || {}
391
+ # HTTP header 'Accept' (if needed)
392
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
393
+ # HTTP header 'Content-Type'
394
+ content_type = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
395
+ if !content_type.nil?
396
+ header_params['Content-Type'] = content_type
397
+ end
398
+
399
+ # form parameters
400
+ form_params = opts[:form_params] || {}
401
+
402
+ # http body (model)
403
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(unset_label)
404
+
405
+ # return_type
406
+ return_type = opts[:debug_return_type] || 'UnsetLabelResponse'
407
+
408
+ # auth_names
409
+ auth_names = opts[:debug_auth_names] || ['basicAuth']
410
+
411
+ new_options = opts.merge(
412
+ :operation => :"ContentGemApi.unset_label",
413
+ :header_params => header_params,
414
+ :query_params => query_params,
415
+ :form_params => form_params,
416
+ :body => post_body,
417
+ :auth_names => auth_names,
418
+ :return_type => return_type
419
+ )
420
+
421
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
422
+ if @api_client.config.debugging
423
+ @api_client.config.logger.debug "API called: ContentGemApi#unset_label\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
424
+ end
425
+ return data, status_code, headers
426
+ end
273
427
  end
274
428
  end
@@ -231,6 +231,7 @@ module PulpGemClient
231
231
  # @option opts [String] :base_path__contains Filter results where base_path contains value
232
232
  # @option opts [String] :base_path__icontains Filter results where base_path contains value
233
233
  # @option opts [Array<String>] :base_path__in Filter results where base_path is in a comma-separated list of values
234
+ # @option opts [Boolean] :checkpoint Filter results where checkpoint matches value
234
235
  # @option opts [Integer] :limit Number of results to return per page.
235
236
  # @option opts [String] :name Filter results where name matches value
236
237
  # @option opts [String] :name__contains Filter results where name contains value
@@ -242,7 +243,7 @@ module PulpGemClient
242
243
  # @option opts [String] :name__regex Filter results where name matches regex value
243
244
  # @option opts [String] :name__startswith Filter results where name starts with value
244
245
  # @option opts [Integer] :offset The initial index from which to return the results.
245
- # @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;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)
246
+ # @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;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;checkpoint&#x60; - Checkpoint * &#x60;-checkpoint&#x60; - Checkpoint (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
246
247
  # @option opts [Array<String>] :prn__in Multiple values may be separated by commas.
247
248
  # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
248
249
  # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
@@ -266,6 +267,7 @@ module PulpGemClient
266
267
  # @option opts [String] :base_path__contains Filter results where base_path contains value
267
268
  # @option opts [String] :base_path__icontains Filter results where base_path contains value
268
269
  # @option opts [Array<String>] :base_path__in Filter results where base_path is in a comma-separated list of values
270
+ # @option opts [Boolean] :checkpoint Filter results where checkpoint matches value
269
271
  # @option opts [Integer] :limit Number of results to return per page.
270
272
  # @option opts [String] :name Filter results where name matches value
271
273
  # @option opts [String] :name__contains Filter results where name contains value
@@ -277,7 +279,7 @@ module PulpGemClient
277
279
  # @option opts [String] :name__regex Filter results where name matches regex value
278
280
  # @option opts [String] :name__startswith Filter results where name starts with value
279
281
  # @option opts [Integer] :offset The initial index from which to return the results.
280
- # @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;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)
282
+ # @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;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;checkpoint&#x60; - Checkpoint * &#x60;-checkpoint&#x60; - Checkpoint (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
281
283
  # @option opts [Array<String>] :prn__in Multiple values may be separated by commas.
282
284
  # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
283
285
  # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
@@ -293,7 +295,7 @@ module PulpGemClient
293
295
  if @api_client.config.debugging
294
296
  @api_client.config.logger.debug 'Calling API: DistributionsGemApi.list ...'
295
297
  end
296
- allowable_values = ["-base_path", "-hidden", "-name", "-pk", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-pulp_type", "base_path", "hidden", "name", "pk", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "pulp_type"]
298
+ allowable_values = ["-base_path", "-checkpoint", "-hidden", "-name", "-pk", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-pulp_type", "base_path", "checkpoint", "hidden", "name", "pk", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "pulp_type"]
297
299
  if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
298
300
  fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
299
301
  end
@@ -306,6 +308,7 @@ module PulpGemClient
306
308
  query_params[:'base_path__contains'] = opts[:'base_path__contains'] if !opts[:'base_path__contains'].nil?
307
309
  query_params[:'base_path__icontains'] = opts[:'base_path__icontains'] if !opts[:'base_path__icontains'].nil?
308
310
  query_params[:'base_path__in'] = @api_client.build_collection_param(opts[:'base_path__in'], :csv) if !opts[:'base_path__in'].nil?
311
+ query_params[:'checkpoint'] = opts[:'checkpoint'] if !opts[:'checkpoint'].nil?
309
312
  query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
310
313
  query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
311
314
  query_params[:'name__contains'] = opts[:'name__contains'] if !opts[:'name__contains'].nil?
@@ -225,11 +225,12 @@ module PulpGemClient
225
225
  # List gem publications
226
226
  # A ViewSet for GemPublication.
227
227
  # @param [Hash] opts the optional parameters
228
+ # @option opts [Boolean] :checkpoint Filter results where checkpoint matches value
228
229
  # @option opts [String] :content Content Unit referenced by HREF/PRN
229
230
  # @option opts [Array<String>] :content__in Multiple values may be separated by commas.
230
231
  # @option opts [Integer] :limit Number of results to return per page.
231
232
  # @option opts [Integer] :offset The initial index from which to return the results.
232
- # @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;complete&#x60; - Complete * &#x60;-complete&#x60; - Complete (descending) * &#x60;pass_through&#x60; - Pass through * &#x60;-pass_through&#x60; - Pass through (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
233
+ # @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;complete&#x60; - Complete * &#x60;-complete&#x60; - Complete (descending) * &#x60;pass_through&#x60; - Pass through * &#x60;-pass_through&#x60; - Pass through (descending) * &#x60;checkpoint&#x60; - Checkpoint * &#x60;-checkpoint&#x60; - Checkpoint (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
233
234
  # @option opts [Array<String>] :prn__in Multiple values may be separated by commas.
234
235
  # @option opts [Time] :pulp_created Filter results where pulp_created matches value
235
236
  # @option opts [Time] :pulp_created__gt Filter results where pulp_created is greater than value
@@ -254,11 +255,12 @@ module PulpGemClient
254
255
  # List gem publications
255
256
  # A ViewSet for GemPublication.
256
257
  # @param [Hash] opts the optional parameters
258
+ # @option opts [Boolean] :checkpoint Filter results where checkpoint matches value
257
259
  # @option opts [String] :content Content Unit referenced by HREF/PRN
258
260
  # @option opts [Array<String>] :content__in Multiple values may be separated by commas.
259
261
  # @option opts [Integer] :limit Number of results to return per page.
260
262
  # @option opts [Integer] :offset The initial index from which to return the results.
261
- # @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;complete&#x60; - Complete * &#x60;-complete&#x60; - Complete (descending) * &#x60;pass_through&#x60; - Pass through * &#x60;-pass_through&#x60; - Pass through (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
263
+ # @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;complete&#x60; - Complete * &#x60;-complete&#x60; - Complete (descending) * &#x60;pass_through&#x60; - Pass through * &#x60;-pass_through&#x60; - Pass through (descending) * &#x60;checkpoint&#x60; - Checkpoint * &#x60;-checkpoint&#x60; - Checkpoint (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
262
264
  # @option opts [Array<String>] :prn__in Multiple values may be separated by commas.
263
265
  # @option opts [Time] :pulp_created Filter results where pulp_created matches value
264
266
  # @option opts [Time] :pulp_created__gt Filter results where pulp_created is greater than value
@@ -279,7 +281,7 @@ module PulpGemClient
279
281
  if @api_client.config.debugging
280
282
  @api_client.config.logger.debug 'Calling API: PublicationsGemApi.list ...'
281
283
  end
282
- allowable_values = ["-complete", "-pass_through", "-pk", "-pulp_created", "-pulp_id", "-pulp_last_updated", "-pulp_type", "complete", "pass_through", "pk", "pulp_created", "pulp_id", "pulp_last_updated", "pulp_type"]
284
+ allowable_values = ["-checkpoint", "-complete", "-pass_through", "-pk", "-pulp_created", "-pulp_id", "-pulp_last_updated", "-pulp_type", "checkpoint", "complete", "pass_through", "pk", "pulp_created", "pulp_id", "pulp_last_updated", "pulp_type"]
283
285
  if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
284
286
  fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
285
287
  end
@@ -288,6 +290,7 @@ module PulpGemClient
288
290
 
289
291
  # query parameters
290
292
  query_params = opts[:query_params] || {}
293
+ query_params[:'checkpoint'] = opts[:'checkpoint'] if !opts[:'checkpoint'].nil?
291
294
  query_params[:'content'] = opts[:'content'] if !opts[:'content'].nil?
292
295
  query_params[:'content__in'] = @api_client.build_collection_param(opts[:'content__in'], :csv) if !opts[:'content__in'].nil?
293
296
  query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
@@ -27,6 +27,9 @@ module PulpGemClient
27
27
  # 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.
28
28
  attr_accessor :pulp_last_updated
29
29
 
30
+ # A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
31
+ attr_accessor :pulp_labels
32
+
30
33
  # A dict mapping relative paths inside the Content to the correspondingArtifact URLs. E.g.: {'relative/path': '/artifacts/1/'
31
34
  attr_accessor :artifacts
32
35
 
@@ -60,6 +63,7 @@ module PulpGemClient
60
63
  :'prn' => :'prn',
61
64
  :'pulp_created' => :'pulp_created',
62
65
  :'pulp_last_updated' => :'pulp_last_updated',
66
+ :'pulp_labels' => :'pulp_labels',
63
67
  :'artifacts' => :'artifacts',
64
68
  :'checksum' => :'checksum',
65
69
  :'name' => :'name',
@@ -84,6 +88,7 @@ module PulpGemClient
84
88
  :'prn' => :'String',
85
89
  :'pulp_created' => :'Time',
86
90
  :'pulp_last_updated' => :'Time',
91
+ :'pulp_labels' => :'Hash<String, String>',
87
92
  :'artifacts' => :'Object',
88
93
  :'checksum' => :'String',
89
94
  :'name' => :'String',
@@ -133,6 +138,12 @@ module PulpGemClient
133
138
  self.pulp_last_updated = attributes[:'pulp_last_updated']
134
139
  end
135
140
 
141
+ if attributes.key?(:'pulp_labels')
142
+ if (value = attributes[:'pulp_labels']).is_a?(Hash)
143
+ self.pulp_labels = value
144
+ end
145
+ end
146
+
136
147
  if attributes.key?(:'artifacts')
137
148
  self.artifacts = attributes[:'artifacts']
138
149
  else
@@ -203,6 +214,7 @@ module PulpGemClient
203
214
  prn == o.prn &&
204
215
  pulp_created == o.pulp_created &&
205
216
  pulp_last_updated == o.pulp_last_updated &&
217
+ pulp_labels == o.pulp_labels &&
206
218
  artifacts == o.artifacts &&
207
219
  checksum == o.checksum &&
208
220
  name == o.name &&
@@ -223,7 +235,7 @@ module PulpGemClient
223
235
  # Calculates hash code according to all attributes.
224
236
  # @return [Integer] Hash code
225
237
  def hash
226
- [pulp_href, prn, pulp_created, pulp_last_updated, artifacts, checksum, name, version, platform, prerelease, dependencies, required_ruby_version, required_rubygems_version].hash
238
+ [pulp_href, prn, pulp_created, pulp_last_updated, pulp_labels, artifacts, checksum, name, version, platform, prerelease, dependencies, required_ruby_version, required_rubygems_version].hash
227
239
  end
228
240
 
229
241
  # Builds the object from hash
@@ -14,7 +14,7 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module PulpGemClient
17
- # Serializer for synchronously setting a label.
17
+ # Serializer for synchronously UNsetting a label.
18
18
  class UnsetLabel
19
19
  attr_accessor :key
20
20
 
@@ -14,7 +14,7 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module PulpGemClient
17
- # Serializer for synchronously setting a label.
17
+ # Serializer for synchronously UNsetting a label.
18
18
  class UnsetLabelResponse
19
19
  attr_accessor :key
20
20
 
@@ -11,5 +11,5 @@ Generator version: 7.10.0
11
11
  =end
12
12
 
13
13
  module PulpGemClient
14
- VERSION = '0.6.2'
14
+ VERSION = '0.7.1'
15
15
  end
@@ -37,6 +37,7 @@ describe 'ContentGemApi' do
37
37
  # Trigger an asynchronous task to create content,optionally create new repository version.
38
38
  # @param [Hash] opts the optional parameters
39
39
  # @option opts [String] :repository A URI of a repository the new content unit should be associated with.
40
+ # @option opts [Hash<String, String>] :pulp_labels A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
40
41
  # @option opts [String] :artifact Artifact file representing the physical content
41
42
  # @option opts [File] :file An uploaded file that should be turned into the artifact of the content unit.
42
43
  # @return [AsyncOperationResponse]
@@ -54,12 +55,13 @@ describe 'ContentGemApi' do
54
55
  # @option opts [Integer] :limit Number of results to return per page.
55
56
  # @option opts [String] :name Filter results where name matches value
56
57
  # @option opts [Integer] :offset The initial index from which to return the results.
57
- # @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;name&#x60; - Name * &#x60;-name&#x60; - Name (descending) * &#x60;version&#x60; - Version * &#x60;-version&#x60; - Version (descending) * &#x60;platform&#x60; - Platform * &#x60;-platform&#x60; - Platform (descending) * &#x60;checksum&#x60; - Checksum * &#x60;-checksum&#x60; - Checksum (descending) * &#x60;prerelease&#x60; - Prerelease * &#x60;-prerelease&#x60; - Prerelease (descending) * &#x60;dependencies&#x60; - Dependencies * &#x60;-dependencies&#x60; - Dependencies (descending) * &#x60;required_ruby_version&#x60; - Required ruby version * &#x60;-required_ruby_version&#x60; - Required ruby version (descending) * &#x60;required_rubygems_version&#x60; - Required rubygems version * &#x60;-required_rubygems_version&#x60; - Required rubygems version (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
58
+ # @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;pulp_labels&#x60; - Pulp labels * &#x60;-pulp_labels&#x60; - Pulp labels (descending) * &#x60;timestamp_of_interest&#x60; - Timestamp of interest * &#x60;-timestamp_of_interest&#x60; - Timestamp of interest (descending) * &#x60;name&#x60; - Name * &#x60;-name&#x60; - Name (descending) * &#x60;version&#x60; - Version * &#x60;-version&#x60; - Version (descending) * &#x60;platform&#x60; - Platform * &#x60;-platform&#x60; - Platform (descending) * &#x60;checksum&#x60; - Checksum * &#x60;-checksum&#x60; - Checksum (descending) * &#x60;prerelease&#x60; - Prerelease * &#x60;-prerelease&#x60; - Prerelease (descending) * &#x60;dependencies&#x60; - Dependencies * &#x60;-dependencies&#x60; - Dependencies (descending) * &#x60;required_ruby_version&#x60; - Required ruby version * &#x60;-required_ruby_version&#x60; - Required ruby version (descending) * &#x60;required_rubygems_version&#x60; - Required rubygems version * &#x60;-required_rubygems_version&#x60; - Required rubygems version (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
58
59
  # @option opts [Float] :orphaned_for Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME.
59
60
  # @option opts [Boolean] :prerelease Filter results where prerelease matches value
60
61
  # @option opts [Array<String>] :prn__in Multiple values may be separated by commas.
61
62
  # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
62
63
  # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
64
+ # @option opts [String] :pulp_label_select Filter labels by search string
63
65
  # @option opts [String] :q Filter results by using NOT, AND and OR operations on other filters
64
66
  # @option opts [String] :repository_version Repository Version referenced by HREF/PRN
65
67
  # @option opts [String] :repository_version_added Repository Version referenced by HREF/PRN
@@ -88,4 +90,30 @@ describe 'ContentGemApi' do
88
90
  end
89
91
  end
90
92
 
93
+ # unit tests for set_label
94
+ # Set a label
95
+ # Set a single pulp_label on the object to a specific value or null.
96
+ # @param gem_gem_content_href
97
+ # @param set_label
98
+ # @param [Hash] opts the optional parameters
99
+ # @return [SetLabelResponse]
100
+ describe 'set_label test' do
101
+ it 'should work' do
102
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
103
+ end
104
+ end
105
+
106
+ # unit tests for unset_label
107
+ # Unset a label
108
+ # Unset a single pulp_label on the object.
109
+ # @param gem_gem_content_href
110
+ # @param unset_label
111
+ # @param [Hash] opts the optional parameters
112
+ # @return [UnsetLabelResponse]
113
+ describe 'unset_label test' do
114
+ it 'should work' do
115
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
116
+ end
117
+ end
118
+
91
119
  end
@@ -77,6 +77,7 @@ describe 'DistributionsGemApi' do
77
77
  # @option opts [String] :base_path__contains Filter results where base_path contains value
78
78
  # @option opts [String] :base_path__icontains Filter results where base_path contains value
79
79
  # @option opts [Array<String>] :base_path__in Filter results where base_path is in a comma-separated list of values
80
+ # @option opts [Boolean] :checkpoint Filter results where checkpoint matches value
80
81
  # @option opts [Integer] :limit Number of results to return per page.
81
82
  # @option opts [String] :name Filter results where name matches value
82
83
  # @option opts [String] :name__contains Filter results where name contains value
@@ -88,7 +89,7 @@ describe 'DistributionsGemApi' do
88
89
  # @option opts [String] :name__regex Filter results where name matches regex value
89
90
  # @option opts [String] :name__startswith Filter results where name starts with value
90
91
  # @option opts [Integer] :offset The initial index from which to return the results.
91
- # @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;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)
92
+ # @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;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;checkpoint&#x60; - Checkpoint * &#x60;-checkpoint&#x60; - Checkpoint (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
92
93
  # @option opts [Array<String>] :prn__in Multiple values may be separated by commas.
93
94
  # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
94
95
  # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
@@ -73,11 +73,12 @@ describe 'PublicationsGemApi' do
73
73
  # List gem publications
74
74
  # A ViewSet for GemPublication.
75
75
  # @param [Hash] opts the optional parameters
76
+ # @option opts [Boolean] :checkpoint Filter results where checkpoint matches value
76
77
  # @option opts [String] :content Content Unit referenced by HREF/PRN
77
78
  # @option opts [Array<String>] :content__in Multiple values may be separated by commas.
78
79
  # @option opts [Integer] :limit Number of results to return per page.
79
80
  # @option opts [Integer] :offset The initial index from which to return the results.
80
- # @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;complete&#x60; - Complete * &#x60;-complete&#x60; - Complete (descending) * &#x60;pass_through&#x60; - Pass through * &#x60;-pass_through&#x60; - Pass through (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
81
+ # @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;complete&#x60; - Complete * &#x60;-complete&#x60; - Complete (descending) * &#x60;pass_through&#x60; - Pass through * &#x60;-pass_through&#x60; - Pass through (descending) * &#x60;checkpoint&#x60; - Checkpoint * &#x60;-checkpoint&#x60; - Checkpoint (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
81
82
  # @option opts [Array<String>] :prn__in Multiple values may be separated by commas.
82
83
  # @option opts [Time] :pulp_created Filter results where pulp_created matches value
83
84
  # @option opts [Time] :pulp_created__gt Filter results where pulp_created is greater than value
@@ -51,6 +51,12 @@ describe PulpGemClient::GemGemContentResponse do
51
51
  end
52
52
  end
53
53
 
54
+ describe 'test attribute "pulp_labels"' do
55
+ it 'should work' do
56
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
57
+ end
58
+ end
59
+
54
60
  describe 'test attribute "artifacts"' do
55
61
  it 'should work' do
56
62
  # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pulp_gem_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.2
4
+ version: 0.7.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - OpenAPI-Generator
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-02-10 00:00:00.000000000 Z
11
+ date: 2025-03-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday-net_http
@@ -259,44 +259,44 @@ signing_key:
259
259
  specification_version: 4
260
260
  summary: Pulp 3 API Ruby Gem
261
261
  test_files:
262
- - spec/api/repositories_gem_api_spec.rb
263
262
  - spec/api/repositories_gem_versions_api_spec.rb
264
- - spec/api/content_gem_api_spec.rb
263
+ - spec/api/publications_gem_api_spec.rb
265
264
  - spec/api/distributions_gem_api_spec.rb
265
+ - spec/api/repositories_gem_api_spec.rb
266
266
  - spec/api/remotes_gem_api_spec.rb
267
- - spec/api/publications_gem_api_spec.rb
268
- - spec/models/repository_version_response_spec.rb
269
- - spec/models/gem_gem_publication_response_spec.rb
270
- - spec/models/object_roles_response_spec.rb
271
- - spec/models/unset_label_response_spec.rb
267
+ - spec/api/content_gem_api_spec.rb
268
+ - spec/models/repair_spec.rb
269
+ - spec/models/gem_gem_remote_response_hidden_fields_inner_spec.rb
272
270
  - spec/models/set_label_spec.rb
273
- - spec/models/gem_gem_remote_response_spec.rb
274
- - spec/models/repository_sync_url_spec.rb
271
+ - spec/models/patchedgem_gem_remote_spec.rb
272
+ - spec/models/policy_enum_spec.rb
273
+ - spec/models/gem_gem_content_response_spec.rb
274
+ - spec/models/paginatedgem_gem_remote_response_list_spec.rb
275
275
  - spec/models/repository_add_remove_content_spec.rb
276
- - spec/models/paginatedgem_gem_publication_response_list_spec.rb
276
+ - spec/models/gem_gem_remote_spec.rb
277
277
  - spec/models/patchedgem_gem_distribution_spec.rb
278
278
  - spec/models/gem_gem_distribution_response_spec.rb
279
- - spec/models/paginatedgem_gem_repository_response_list_spec.rb
280
- - spec/models/gem_gem_repository_response_spec.rb
281
279
  - spec/models/paginatedgem_gem_content_response_list_spec.rb
282
- - spec/models/gem_gem_distribution_spec.rb
280
+ - spec/models/nested_role_response_spec.rb
283
281
  - spec/models/nested_role_spec.rb
284
- - spec/models/repair_spec.rb
285
- - spec/models/gem_gem_remote_response_hidden_fields_inner_spec.rb
286
- - spec/models/gem_gem_repository_spec.rb
287
282
  - spec/models/gem_gem_publication_spec.rb
288
- - spec/models/content_summary_response_spec.rb
289
- - spec/models/my_permissions_response_spec.rb
283
+ - spec/models/repository_sync_url_spec.rb
284
+ - spec/models/gem_gem_repository_spec.rb
285
+ - spec/models/unset_label_spec.rb
286
+ - spec/models/gem_gem_remote_response_spec.rb
287
+ - spec/models/patchedgem_gem_repository_spec.rb
288
+ - spec/models/paginatedgem_gem_publication_response_list_spec.rb
289
+ - spec/models/unset_label_response_spec.rb
290
+ - spec/models/gem_gem_distribution_spec.rb
291
+ - spec/models/repository_version_response_spec.rb
290
292
  - spec/models/paginatedgem_gem_distribution_response_list_spec.rb
291
- - spec/models/paginatedgem_gem_remote_response_list_spec.rb
292
- - spec/models/gem_gem_content_response_spec.rb
293
- - spec/models/patchedgem_gem_remote_spec.rb
293
+ - spec/models/paginated_repository_version_response_list_spec.rb
294
+ - spec/models/my_permissions_response_spec.rb
295
+ - spec/models/object_roles_response_spec.rb
296
+ - spec/models/gem_gem_repository_response_spec.rb
297
+ - spec/models/paginatedgem_gem_repository_response_list_spec.rb
294
298
  - spec/models/set_label_response_spec.rb
295
- - spec/models/nested_role_response_spec.rb
296
- - spec/models/patchedgem_gem_repository_spec.rb
297
- - spec/models/policy_enum_spec.rb
298
- - spec/models/gem_gem_remote_spec.rb
299
+ - spec/models/gem_gem_publication_response_spec.rb
300
+ - spec/models/content_summary_response_spec.rb
299
301
  - spec/models/async_operation_response_spec.rb
300
- - spec/models/paginated_repository_version_response_list_spec.rb
301
- - spec/models/unset_label_spec.rb
302
302
  - spec/spec_helper.rb