pulp_gem_client 0.6.2 → 0.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +7 -4
- data/docs/ContentGemApi.md +152 -2
- data/docs/GemGemContentResponse.md +2 -0
- data/lib/pulp_gem_client/api/content_gem_api.rb +157 -3
- data/lib/pulp_gem_client/models/gem_gem_content_response.rb +13 -1
- data/lib/pulp_gem_client/models/unset_label.rb +1 -1
- data/lib/pulp_gem_client/models/unset_label_response.rb +1 -1
- data/lib/pulp_gem_client/version.rb +1 -1
- data/spec/api/content_gem_api_spec.rb +29 -1
- data/spec/models/gem_gem_content_response_spec.rb +6 -0
- metadata +29 -29
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 78e153bf6c2b9f77d49caef80f592dcb6fb80a43f51160bfa0ac683c8dd0211d
|
4
|
+
data.tar.gz: 32eeae6717927583f11ea813a5535c662ca601f918cbd668f2210702f3c41523
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4cdf43ec58c7120d548d610cc2a760789e1f09aca7e055280b39d858225943f3ac9ef877afa87749ce44fb20f66ad130768782635e9c06ebc3684534c2fe12d1
|
7
|
+
data.tar.gz: 91aa2f0a51af6b8e08c994c92b3b03d7cb5de17507e70a2284a3510203ead2aacd844aaac4b97ce4ed60c8bd8677bb75593c9518a39e0604bce959865c3aeca2
|
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.
|
10
|
+
- Package version: 0.7.0
|
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.
|
28
|
+
gem install ./pulp_gem_client-0.7.0.gem
|
29
29
|
```
|
30
30
|
|
31
|
-
(for development, run `gem install --dev ./pulp_gem_client-0.
|
31
|
+
(for development, run `gem install --dev ./pulp_gem_client-0.7.0.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.
|
37
|
+
gem 'pulp_gem_client', '~> 0.7.0'
|
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
|
data/docs/ContentGemApi.md
CHANGED
@@ -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<String, String>**](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<String>**](String.md) | 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) | [optional] |
|
169
|
+
| **ordering** | [**Array<String>**](String.md) | 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) | [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<String>**](String.md) | Multiple values may be separated by commas. | [optional] |
|
168
173
|
| **pulp_href__in** | [**Array<String>**](String.md) | Multiple values may be separated by commas. | [optional] |
|
169
174
|
| **pulp_id__in** | [**Array<String>**](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
|
+
|
@@ -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<String, String>** | 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.: {'relative/path': '/artifacts/1/' | [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,
|
@@ -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 * `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)
|
103
|
+
# @option opts [Array<String>] :ordering 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)
|
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 * `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)
|
130
|
+
# @option opts [Array<String>] :ordering 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)
|
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
|
@@ -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
|
@@ -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 * `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)
|
58
|
+
# @option opts [Array<String>] :ordering 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)
|
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
|
@@ -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.
|
4
|
+
version: 0.7.0
|
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-
|
11
|
+
date: 2025-03-18 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/
|
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/
|
268
|
-
- spec/models/
|
269
|
-
- spec/models/
|
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/
|
274
|
-
- spec/models/
|
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/
|
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/
|
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/
|
289
|
-
- spec/models/
|
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/
|
292
|
-
- spec/models/
|
293
|
-
- spec/models/
|
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/
|
296
|
-
- spec/models/
|
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
|