pulp_gem_client 0.1.1 → 0.3.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 +17 -7
- data/docs/ContentGemApi.md +8 -6
- data/docs/DistributionsGemApi.md +120 -2
- data/docs/GemGemContent.md +4 -4
- data/docs/GemGemContentResponse.md +2 -0
- data/docs/PublicationsGemApi.md +3 -1
- data/docs/RemotesGemApi.md +119 -1
- data/docs/RepositoriesGemApi.md +120 -2
- data/docs/RepositoriesGemVersionsApi.md +3 -1
- data/docs/SetLabel.md +19 -0
- data/docs/SetLabelResponse.md +19 -0
- data/docs/UnsetLabel.md +17 -0
- data/docs/UnsetLabelResponse.md +19 -0
- data/lib/pulp_gem_client/api/content_gem_api.rb +9 -6
- data/lib/pulp_gem_client/api/distributions_gem_api.rb +149 -0
- data/lib/pulp_gem_client/api/publications_gem_api.rb +3 -0
- data/lib/pulp_gem_client/api/remotes_gem_api.rb +149 -0
- data/lib/pulp_gem_client/api/repositories_gem_api.rb +149 -0
- data/lib/pulp_gem_client/api/repositories_gem_versions_api.rb +3 -0
- data/lib/pulp_gem_client/configuration.rb +2 -2
- data/lib/pulp_gem_client/models/gem_gem_content.rb +14 -14
- data/lib/pulp_gem_client/models/gem_gem_content_response.rb +11 -1
- data/lib/pulp_gem_client/models/set_label.rb +252 -0
- data/lib/pulp_gem_client/models/set_label_response.rb +243 -0
- data/lib/pulp_gem_client/models/unset_label.rb +242 -0
- data/lib/pulp_gem_client/models/unset_label_response.rb +242 -0
- data/lib/pulp_gem_client/version.rb +1 -1
- data/lib/pulp_gem_client.rb +4 -0
- data/spec/api/content_gem_api_spec.rb +3 -2
- data/spec/api/distributions_gem_api_spec.rb +29 -0
- data/spec/api/publications_gem_api_spec.rb +1 -0
- data/spec/api/remotes_gem_api_spec.rb +29 -0
- data/spec/api/repositories_gem_api_spec.rb +29 -0
- data/spec/api/repositories_gem_versions_api_spec.rb +1 -0
- data/spec/configuration_spec.rb +3 -3
- data/spec/models/gem_gem_content_response_spec.rb +6 -0
- data/spec/models/gem_gem_content_spec.rb +3 -3
- data/spec/models/set_label_response_spec.rb +47 -0
- data/spec/models/set_label_spec.rb +47 -0
- data/spec/models/unset_label_response_spec.rb +47 -0
- data/spec/models/unset_label_spec.rb +41 -0
- metadata +39 -23
data/docs/RepositoriesGemApi.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# PulpGemClient::RepositoriesGemApi
|
2
2
|
|
3
|
-
All URIs are relative to *
|
3
|
+
All URIs are relative to *http://pulp*
|
4
4
|
|
5
5
|
Method | HTTP request | Description
|
6
6
|
------------- | ------------- | -------------
|
@@ -10,7 +10,9 @@ Method | HTTP request | Description
|
|
10
10
|
[**modify**](RepositoriesGemApi.md#modify) | **POST** {gem_gem_repository_href}modify/ | Modify Repository Content
|
11
11
|
[**partial_update**](RepositoriesGemApi.md#partial_update) | **PATCH** {gem_gem_repository_href} | Update a gem repository
|
12
12
|
[**read**](RepositoriesGemApi.md#read) | **GET** {gem_gem_repository_href} | Inspect a gem repository
|
13
|
+
[**set_label**](RepositoriesGemApi.md#set_label) | **POST** {gem_gem_repository_href}set_label/ | Set a label
|
13
14
|
[**sync**](RepositoriesGemApi.md#sync) | **POST** {gem_gem_repository_href}sync/ | Sync from a remote
|
15
|
+
[**unset_label**](RepositoriesGemApi.md#unset_label) | **POST** {gem_gem_repository_href}unset_label/ | Unset a label
|
14
16
|
[**update**](RepositoriesGemApi.md#update) | **PUT** {gem_gem_repository_href} | Update a gem repository
|
15
17
|
|
16
18
|
|
@@ -148,13 +150,16 @@ opts = {
|
|
148
150
|
name: 'name_example', # String | Filter results where name matches value
|
149
151
|
name__contains: 'name__contains_example', # String | Filter results where name contains value
|
150
152
|
name__icontains: 'name__icontains_example', # String | Filter results where name contains value
|
153
|
+
name__iexact: 'name__iexact_example', # String | Filter results where name matches value
|
151
154
|
name__in: ['name__in_example'], # Array<String> | Filter results where name is in a comma-separated list of values
|
155
|
+
name__istartswith: 'name__istartswith_example', # String | Filter results where name starts with value
|
152
156
|
name__startswith: 'name__startswith_example', # String | Filter results where name starts with value
|
153
157
|
offset: 56, # Integer | The initial index from which to return the results.
|
154
158
|
ordering: ['ordering_example'], # Array<String> | Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `name` - Name * `-name` - Name (descending) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `description` - Description * `-description` - Description (descending) * `next_version` - Next version * `-next_version` - Next version (descending) * `retain_repo_versions` - Retain repo versions * `-retain_repo_versions` - Retain repo versions (descending) * `user_hidden` - User hidden * `-user_hidden` - User hidden (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
155
159
|
pulp_href__in: ['pulp_href__in_example'], # Array<String> | Multiple values may be separated by commas.
|
156
160
|
pulp_id__in: ['pulp_id__in_example'], # Array<String> | Multiple values may be separated by commas.
|
157
161
|
pulp_label_select: 'pulp_label_select_example', # String | Filter labels by search string
|
162
|
+
q: 'q_example', # String |
|
158
163
|
remote: 'remote_example', # String | Foreign Key referenced by HREF
|
159
164
|
retain_repo_versions: 56, # Integer | Filter results where retain_repo_versions matches value
|
160
165
|
retain_repo_versions__gt: 56, # Integer | Filter results where retain_repo_versions is greater than value
|
@@ -188,14 +193,17 @@ Name | Type | Description | Notes
|
|
188
193
|
**name** | **String**| Filter results where name matches value | [optional]
|
189
194
|
**name__contains** | **String**| Filter results where name contains value | [optional]
|
190
195
|
**name__icontains** | **String**| Filter results where name contains value | [optional]
|
196
|
+
**name__iexact** | **String**| Filter results where name matches value | [optional]
|
191
197
|
**name__in** | [**Array<String>**](String.md)| Filter results where name is in a comma-separated list of values | [optional]
|
198
|
+
**name__istartswith** | **String**| Filter results where name starts with value | [optional]
|
192
199
|
**name__startswith** | **String**| Filter results where name starts with value | [optional]
|
193
200
|
**offset** | **Integer**| The initial index from which to return the results. | [optional]
|
194
201
|
**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) * `name` - Name * `-name` - Name (descending) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `description` - Description * `-description` - Description (descending) * `next_version` - Next version * `-next_version` - Next version (descending) * `retain_repo_versions` - Retain repo versions * `-retain_repo_versions` - Retain repo versions (descending) * `user_hidden` - User hidden * `-user_hidden` - User hidden (descending) * `pk` - Pk * `-pk` - Pk (descending) | [optional]
|
195
202
|
**pulp_href__in** | [**Array<String>**](String.md)| Multiple values may be separated by commas. | [optional]
|
196
203
|
**pulp_id__in** | [**Array<String>**](String.md)| Multiple values may be separated by commas. | [optional]
|
197
204
|
**pulp_label_select** | **String**| Filter labels by search string | [optional]
|
198
|
-
**
|
205
|
+
**q** | **String**| | [optional]
|
206
|
+
**remote** | [**String**](.md)| Foreign Key referenced by HREF | [optional]
|
199
207
|
**retain_repo_versions** | **Integer**| Filter results where retain_repo_versions matches value | [optional]
|
200
208
|
**retain_repo_versions__gt** | **Integer**| Filter results where retain_repo_versions is greater than value | [optional]
|
201
209
|
**retain_repo_versions__gte** | **Integer**| Filter results where retain_repo_versions is greater than or equal to value | [optional]
|
@@ -391,6 +399,61 @@ Name | Type | Description | Notes
|
|
391
399
|
- **Accept**: application/json
|
392
400
|
|
393
401
|
|
402
|
+
## set_label
|
403
|
+
|
404
|
+
> SetLabelResponse set_label(gem_gem_repository_href, set_label)
|
405
|
+
|
406
|
+
Set a label
|
407
|
+
|
408
|
+
Set a single pulp_label on the object to a specific value or null.
|
409
|
+
|
410
|
+
### Example
|
411
|
+
|
412
|
+
```ruby
|
413
|
+
# load the gem
|
414
|
+
require 'pulp_gem_client'
|
415
|
+
# setup authorization
|
416
|
+
PulpGemClient.configure do |config|
|
417
|
+
# Configure HTTP basic authorization: basicAuth
|
418
|
+
config.username = 'YOUR USERNAME'
|
419
|
+
config.password = 'YOUR PASSWORD'
|
420
|
+
end
|
421
|
+
|
422
|
+
api_instance = PulpGemClient::RepositoriesGemApi.new
|
423
|
+
gem_gem_repository_href = 'gem_gem_repository_href_example' # String |
|
424
|
+
set_label = PulpGemClient::SetLabel.new # SetLabel |
|
425
|
+
|
426
|
+
begin
|
427
|
+
#Set a label
|
428
|
+
result = api_instance.set_label(gem_gem_repository_href, set_label)
|
429
|
+
p result
|
430
|
+
rescue PulpGemClient::ApiError => e
|
431
|
+
puts "Exception when calling RepositoriesGemApi->set_label: #{e}"
|
432
|
+
end
|
433
|
+
```
|
434
|
+
|
435
|
+
### Parameters
|
436
|
+
|
437
|
+
|
438
|
+
Name | Type | Description | Notes
|
439
|
+
------------- | ------------- | ------------- | -------------
|
440
|
+
**gem_gem_repository_href** | **String**| |
|
441
|
+
**set_label** | [**SetLabel**](SetLabel.md)| |
|
442
|
+
|
443
|
+
### Return type
|
444
|
+
|
445
|
+
[**SetLabelResponse**](SetLabelResponse.md)
|
446
|
+
|
447
|
+
### Authorization
|
448
|
+
|
449
|
+
[basicAuth](../README.md#basicAuth)
|
450
|
+
|
451
|
+
### HTTP request headers
|
452
|
+
|
453
|
+
- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
|
454
|
+
- **Accept**: application/json
|
455
|
+
|
456
|
+
|
394
457
|
## sync
|
395
458
|
|
396
459
|
> AsyncOperationResponse sync(gem_gem_repository_href, repository_sync_url)
|
@@ -446,6 +509,61 @@ Name | Type | Description | Notes
|
|
446
509
|
- **Accept**: application/json
|
447
510
|
|
448
511
|
|
512
|
+
## unset_label
|
513
|
+
|
514
|
+
> UnsetLabelResponse unset_label(gem_gem_repository_href, unset_label)
|
515
|
+
|
516
|
+
Unset a label
|
517
|
+
|
518
|
+
Unset a single pulp_label on the object.
|
519
|
+
|
520
|
+
### Example
|
521
|
+
|
522
|
+
```ruby
|
523
|
+
# load the gem
|
524
|
+
require 'pulp_gem_client'
|
525
|
+
# setup authorization
|
526
|
+
PulpGemClient.configure do |config|
|
527
|
+
# Configure HTTP basic authorization: basicAuth
|
528
|
+
config.username = 'YOUR USERNAME'
|
529
|
+
config.password = 'YOUR PASSWORD'
|
530
|
+
end
|
531
|
+
|
532
|
+
api_instance = PulpGemClient::RepositoriesGemApi.new
|
533
|
+
gem_gem_repository_href = 'gem_gem_repository_href_example' # String |
|
534
|
+
unset_label = PulpGemClient::UnsetLabel.new # UnsetLabel |
|
535
|
+
|
536
|
+
begin
|
537
|
+
#Unset a label
|
538
|
+
result = api_instance.unset_label(gem_gem_repository_href, unset_label)
|
539
|
+
p result
|
540
|
+
rescue PulpGemClient::ApiError => e
|
541
|
+
puts "Exception when calling RepositoriesGemApi->unset_label: #{e}"
|
542
|
+
end
|
543
|
+
```
|
544
|
+
|
545
|
+
### Parameters
|
546
|
+
|
547
|
+
|
548
|
+
Name | Type | Description | Notes
|
549
|
+
------------- | ------------- | ------------- | -------------
|
550
|
+
**gem_gem_repository_href** | **String**| |
|
551
|
+
**unset_label** | [**UnsetLabel**](UnsetLabel.md)| |
|
552
|
+
|
553
|
+
### Return type
|
554
|
+
|
555
|
+
[**UnsetLabelResponse**](UnsetLabelResponse.md)
|
556
|
+
|
557
|
+
### Authorization
|
558
|
+
|
559
|
+
[basicAuth](../README.md#basicAuth)
|
560
|
+
|
561
|
+
### HTTP request headers
|
562
|
+
|
563
|
+
- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
|
564
|
+
- **Accept**: application/json
|
565
|
+
|
566
|
+
|
449
567
|
## update
|
450
568
|
|
451
569
|
> AsyncOperationResponse update(gem_gem_repository_href, gem_gem_repository)
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# PulpGemClient::RepositoriesGemVersionsApi
|
2
2
|
|
3
|
-
All URIs are relative to *
|
3
|
+
All URIs are relative to *http://pulp*
|
4
4
|
|
5
5
|
Method | HTTP request | Description
|
6
6
|
------------- | ------------- | -------------
|
@@ -105,6 +105,7 @@ opts = {
|
|
105
105
|
pulp_created__lte: DateTime.parse('2013-10-20T19:20:30+01:00'), # DateTime | Filter results where pulp_created is less than or equal to value
|
106
106
|
pulp_created__range: [DateTime.parse('2013-10-20T19:20:30+01:00')], # Array<DateTime> | Filter results where pulp_created is between two comma separated values
|
107
107
|
pulp_href__in: ['pulp_href__in_example'], # Array<String> | Multiple values may be separated by commas.
|
108
|
+
q: 'q_example', # String |
|
108
109
|
fields: ['fields_example'], # Array<String> | A list of fields to include in the response.
|
109
110
|
exclude_fields: ['exclude_fields_example'] # Array<String> | A list of fields to exclude from the response.
|
110
111
|
}
|
@@ -142,6 +143,7 @@ Name | Type | Description | Notes
|
|
142
143
|
**pulp_created__lte** | **DateTime**| Filter results where pulp_created is less than or equal to value | [optional]
|
143
144
|
**pulp_created__range** | [**Array<DateTime>**](DateTime.md)| Filter results where pulp_created is between two comma separated values | [optional]
|
144
145
|
**pulp_href__in** | [**Array<String>**](String.md)| Multiple values may be separated by commas. | [optional]
|
146
|
+
**q** | **String**| | [optional]
|
145
147
|
**fields** | [**Array<String>**](String.md)| A list of fields to include in the response. | [optional]
|
146
148
|
**exclude_fields** | [**Array<String>**](String.md)| A list of fields to exclude from the response. | [optional]
|
147
149
|
|
data/docs/SetLabel.md
ADDED
@@ -0,0 +1,19 @@
|
|
1
|
+
# PulpGemClient::SetLabel
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
Name | Type | Description | Notes
|
6
|
+
------------ | ------------- | ------------- | -------------
|
7
|
+
**key** | **String** | |
|
8
|
+
**value** | **String** | |
|
9
|
+
|
10
|
+
## Code Sample
|
11
|
+
|
12
|
+
```ruby
|
13
|
+
require 'PulpGemClient'
|
14
|
+
|
15
|
+
instance = PulpGemClient::SetLabel.new(key: null,
|
16
|
+
value: null)
|
17
|
+
```
|
18
|
+
|
19
|
+
|
@@ -0,0 +1,19 @@
|
|
1
|
+
# PulpGemClient::SetLabelResponse
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
Name | Type | Description | Notes
|
6
|
+
------------ | ------------- | ------------- | -------------
|
7
|
+
**key** | **String** | |
|
8
|
+
**value** | **String** | |
|
9
|
+
|
10
|
+
## Code Sample
|
11
|
+
|
12
|
+
```ruby
|
13
|
+
require 'PulpGemClient'
|
14
|
+
|
15
|
+
instance = PulpGemClient::SetLabelResponse.new(key: null,
|
16
|
+
value: null)
|
17
|
+
```
|
18
|
+
|
19
|
+
|
data/docs/UnsetLabel.md
ADDED
@@ -0,0 +1,17 @@
|
|
1
|
+
# PulpGemClient::UnsetLabel
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
Name | Type | Description | Notes
|
6
|
+
------------ | ------------- | ------------- | -------------
|
7
|
+
**key** | **String** | |
|
8
|
+
|
9
|
+
## Code Sample
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
require 'PulpGemClient'
|
13
|
+
|
14
|
+
instance = PulpGemClient::UnsetLabel.new(key: null)
|
15
|
+
```
|
16
|
+
|
17
|
+
|
@@ -0,0 +1,19 @@
|
|
1
|
+
# PulpGemClient::UnsetLabelResponse
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
Name | Type | Description | Notes
|
6
|
+
------------ | ------------- | ------------- | -------------
|
7
|
+
**key** | **String** | |
|
8
|
+
**value** | **String** | | [optional] [readonly]
|
9
|
+
|
10
|
+
## Code Sample
|
11
|
+
|
12
|
+
```ruby
|
13
|
+
require 'PulpGemClient'
|
14
|
+
|
15
|
+
instance = PulpGemClient::UnsetLabelResponse.new(key: null,
|
16
|
+
value: null)
|
17
|
+
```
|
18
|
+
|
19
|
+
|
@@ -22,9 +22,9 @@ module PulpGemClient
|
|
22
22
|
# Create a gem content
|
23
23
|
# Trigger an asynchronous task to create content,optionally create new repository version.
|
24
24
|
# @param [Hash] opts the optional parameters
|
25
|
+
# @option opts [String] :repository A URI of a repository the new content unit should be associated with.
|
25
26
|
# @option opts [String] :artifact Artifact file representing the physical content
|
26
27
|
# @option opts [File] :file An uploaded file that should be turned into the artifact of the content unit.
|
27
|
-
# @option opts [String] :repository A URI of a repository the new content unit should be associated with.
|
28
28
|
# @return [AsyncOperationResponse]
|
29
29
|
def create(opts = {})
|
30
30
|
data, _status_code, _headers = create_with_http_info(opts)
|
@@ -34,9 +34,9 @@ module PulpGemClient
|
|
34
34
|
# Create a gem content
|
35
35
|
# Trigger an asynchronous task to create content,optionally create new repository version.
|
36
36
|
# @param [Hash] opts the optional parameters
|
37
|
+
# @option opts [String] :repository A URI of a repository the new content unit should be associated with.
|
37
38
|
# @option opts [String] :artifact Artifact file representing the physical content
|
38
39
|
# @option opts [File] :file An uploaded file that should be turned into the artifact of the content unit.
|
39
|
-
# @option opts [String] :repository A URI of a repository the new content unit should be associated with.
|
40
40
|
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
41
41
|
def create_with_http_info(opts = {})
|
42
42
|
if @api_client.config.debugging
|
@@ -57,9 +57,9 @@ module PulpGemClient
|
|
57
57
|
|
58
58
|
# form parameters
|
59
59
|
form_params = opts[:form_params] || {}
|
60
|
+
form_params['repository'] = opts[:'repository'] if !opts[:'repository'].nil?
|
60
61
|
form_params['artifact'] = opts[:'artifact'] if !opts[:'artifact'].nil?
|
61
62
|
form_params['file'] = opts[:'file'] if !opts[:'file'].nil?
|
62
|
-
form_params['repository'] = opts[:'repository'] if !opts[:'repository'].nil?
|
63
63
|
|
64
64
|
# http body (model)
|
65
65
|
post_body = opts[:body]
|
@@ -93,10 +93,11 @@ module PulpGemClient
|
|
93
93
|
# @option opts [Integer] :limit Number of results to return per page.
|
94
94
|
# @option opts [String] :name Filter results where name matches value
|
95
95
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
96
|
-
# @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) * `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)
|
96
|
+
# @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)
|
97
97
|
# @option opts [Boolean] :prerelease Filter results where prerelease matches value
|
98
98
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
99
99
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
100
|
+
# @option opts [String] :q
|
100
101
|
# @option opts [String] :repository_version Repository Version referenced by HREF
|
101
102
|
# @option opts [String] :repository_version_added Repository Version referenced by HREF
|
102
103
|
# @option opts [String] :repository_version_removed Repository Version referenced by HREF
|
@@ -116,10 +117,11 @@ module PulpGemClient
|
|
116
117
|
# @option opts [Integer] :limit Number of results to return per page.
|
117
118
|
# @option opts [String] :name Filter results where name matches value
|
118
119
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
119
|
-
# @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) * `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)
|
120
|
+
# @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)
|
120
121
|
# @option opts [Boolean] :prerelease Filter results where prerelease matches value
|
121
122
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
122
123
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
124
|
+
# @option opts [String] :q
|
123
125
|
# @option opts [String] :repository_version Repository Version referenced by HREF
|
124
126
|
# @option opts [String] :repository_version_added Repository Version referenced by HREF
|
125
127
|
# @option opts [String] :repository_version_removed Repository Version referenced by HREF
|
@@ -131,7 +133,7 @@ module PulpGemClient
|
|
131
133
|
if @api_client.config.debugging
|
132
134
|
@api_client.config.logger.debug 'Calling API: ContentGemApi.list ...'
|
133
135
|
end
|
134
|
-
allowable_values = ["-checksum", "-dependencies", "-name", "-pk", "-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", "prerelease", "pulp_created", "pulp_id", "pulp_last_updated", "pulp_type", "required_ruby_version", "required_rubygems_version", "timestamp_of_interest", "upstream_id", "version"]
|
136
|
+
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"]
|
135
137
|
if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
|
136
138
|
fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
|
137
139
|
end
|
@@ -148,6 +150,7 @@ module PulpGemClient
|
|
148
150
|
query_params[:'prerelease'] = opts[:'prerelease'] if !opts[:'prerelease'].nil?
|
149
151
|
query_params[:'pulp_href__in'] = @api_client.build_collection_param(opts[:'pulp_href__in'], :csv) if !opts[:'pulp_href__in'].nil?
|
150
152
|
query_params[:'pulp_id__in'] = @api_client.build_collection_param(opts[:'pulp_id__in'], :csv) if !opts[:'pulp_id__in'].nil?
|
153
|
+
query_params[:'q'] = opts[:'q'] if !opts[:'q'].nil?
|
151
154
|
query_params[:'repository_version'] = opts[:'repository_version'] if !opts[:'repository_version'].nil?
|
152
155
|
query_params[:'repository_version_added'] = opts[:'repository_version_added'] if !opts[:'repository_version_added'].nil?
|
153
156
|
query_params[:'repository_version_removed'] = opts[:'repository_version_removed'] if !opts[:'repository_version_removed'].nil?
|
@@ -156,13 +156,16 @@ module PulpGemClient
|
|
156
156
|
# @option opts [String] :name Filter results where name matches value
|
157
157
|
# @option opts [String] :name__contains Filter results where name contains value
|
158
158
|
# @option opts [String] :name__icontains Filter results where name contains value
|
159
|
+
# @option opts [String] :name__iexact Filter results where name matches value
|
159
160
|
# @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
|
161
|
+
# @option opts [String] :name__istartswith Filter results where name starts with value
|
160
162
|
# @option opts [String] :name__startswith Filter results where name starts with value
|
161
163
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
162
164
|
# @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) * `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)
|
163
165
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
164
166
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
165
167
|
# @option opts [String] :pulp_label_select Filter labels by search string
|
168
|
+
# @option opts [String] :q
|
166
169
|
# @option opts [String] :repository Filter results where repository matches value
|
167
170
|
# @option opts [Array<String>] :repository__in Filter results where repository is in a comma-separated list of values
|
168
171
|
# @option opts [String] :with_content Filter distributions based on the content served by them
|
@@ -185,13 +188,16 @@ module PulpGemClient
|
|
185
188
|
# @option opts [String] :name Filter results where name matches value
|
186
189
|
# @option opts [String] :name__contains Filter results where name contains value
|
187
190
|
# @option opts [String] :name__icontains Filter results where name contains value
|
191
|
+
# @option opts [String] :name__iexact Filter results where name matches value
|
188
192
|
# @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
|
193
|
+
# @option opts [String] :name__istartswith Filter results where name starts with value
|
189
194
|
# @option opts [String] :name__startswith Filter results where name starts with value
|
190
195
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
191
196
|
# @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) * `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)
|
192
197
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
193
198
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
194
199
|
# @option opts [String] :pulp_label_select Filter labels by search string
|
200
|
+
# @option opts [String] :q
|
195
201
|
# @option opts [String] :repository Filter results where repository matches value
|
196
202
|
# @option opts [Array<String>] :repository__in Filter results where repository is in a comma-separated list of values
|
197
203
|
# @option opts [String] :with_content Filter distributions based on the content served by them
|
@@ -219,13 +225,16 @@ module PulpGemClient
|
|
219
225
|
query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
|
220
226
|
query_params[:'name__contains'] = opts[:'name__contains'] if !opts[:'name__contains'].nil?
|
221
227
|
query_params[:'name__icontains'] = opts[:'name__icontains'] if !opts[:'name__icontains'].nil?
|
228
|
+
query_params[:'name__iexact'] = opts[:'name__iexact'] if !opts[:'name__iexact'].nil?
|
222
229
|
query_params[:'name__in'] = @api_client.build_collection_param(opts[:'name__in'], :csv) if !opts[:'name__in'].nil?
|
230
|
+
query_params[:'name__istartswith'] = opts[:'name__istartswith'] if !opts[:'name__istartswith'].nil?
|
223
231
|
query_params[:'name__startswith'] = opts[:'name__startswith'] if !opts[:'name__startswith'].nil?
|
224
232
|
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
225
233
|
query_params[:'ordering'] = @api_client.build_collection_param(opts[:'ordering'], :csv) if !opts[:'ordering'].nil?
|
226
234
|
query_params[:'pulp_href__in'] = @api_client.build_collection_param(opts[:'pulp_href__in'], :csv) if !opts[:'pulp_href__in'].nil?
|
227
235
|
query_params[:'pulp_id__in'] = @api_client.build_collection_param(opts[:'pulp_id__in'], :csv) if !opts[:'pulp_id__in'].nil?
|
228
236
|
query_params[:'pulp_label_select'] = opts[:'pulp_label_select'] if !opts[:'pulp_label_select'].nil?
|
237
|
+
query_params[:'q'] = opts[:'q'] if !opts[:'q'].nil?
|
229
238
|
query_params[:'repository'] = opts[:'repository'] if !opts[:'repository'].nil?
|
230
239
|
query_params[:'repository__in'] = @api_client.build_collection_param(opts[:'repository__in'], :csv) if !opts[:'repository__in'].nil?
|
231
240
|
query_params[:'with_content'] = opts[:'with_content'] if !opts[:'with_content'].nil?
|
@@ -403,6 +412,146 @@ module PulpGemClient
|
|
403
412
|
return data, status_code, headers
|
404
413
|
end
|
405
414
|
|
415
|
+
# Set a label
|
416
|
+
# Set a single pulp_label on the object to a specific value or null.
|
417
|
+
# @param gem_gem_distribution_href [String]
|
418
|
+
# @param set_label [SetLabel]
|
419
|
+
# @param [Hash] opts the optional parameters
|
420
|
+
# @return [SetLabelResponse]
|
421
|
+
def set_label(gem_gem_distribution_href, set_label, opts = {})
|
422
|
+
data, _status_code, _headers = set_label_with_http_info(gem_gem_distribution_href, set_label, opts)
|
423
|
+
data
|
424
|
+
end
|
425
|
+
|
426
|
+
# Set a label
|
427
|
+
# Set a single pulp_label on the object to a specific value or null.
|
428
|
+
# @param gem_gem_distribution_href [String]
|
429
|
+
# @param set_label [SetLabel]
|
430
|
+
# @param [Hash] opts the optional parameters
|
431
|
+
# @return [Array<(SetLabelResponse, Integer, Hash)>] SetLabelResponse data, response status code and response headers
|
432
|
+
def set_label_with_http_info(gem_gem_distribution_href, set_label, opts = {})
|
433
|
+
if @api_client.config.debugging
|
434
|
+
@api_client.config.logger.debug 'Calling API: DistributionsGemApi.set_label ...'
|
435
|
+
end
|
436
|
+
# verify the required parameter 'gem_gem_distribution_href' is set
|
437
|
+
if @api_client.config.client_side_validation && gem_gem_distribution_href.nil?
|
438
|
+
fail ArgumentError, "Missing the required parameter 'gem_gem_distribution_href' when calling DistributionsGemApi.set_label"
|
439
|
+
end
|
440
|
+
# verify the required parameter 'set_label' is set
|
441
|
+
if @api_client.config.client_side_validation && set_label.nil?
|
442
|
+
fail ArgumentError, "Missing the required parameter 'set_label' when calling DistributionsGemApi.set_label"
|
443
|
+
end
|
444
|
+
# resource path
|
445
|
+
local_var_path = '{gem_gem_distribution_href}set_label/'.sub('{' + 'gem_gem_distribution_href' + '}', CGI.escape(gem_gem_distribution_href.to_s).gsub('%2F', '/'))
|
446
|
+
|
447
|
+
# query parameters
|
448
|
+
query_params = opts[:query_params] || {}
|
449
|
+
|
450
|
+
# header parameters
|
451
|
+
header_params = opts[:header_params] || {}
|
452
|
+
# HTTP header 'Accept' (if needed)
|
453
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
454
|
+
# HTTP header 'Content-Type'
|
455
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
456
|
+
|
457
|
+
# form parameters
|
458
|
+
form_params = opts[:form_params] || {}
|
459
|
+
|
460
|
+
# http body (model)
|
461
|
+
post_body = opts[:body] || @api_client.object_to_http_body(set_label)
|
462
|
+
|
463
|
+
# return_type
|
464
|
+
return_type = opts[:return_type] || 'SetLabelResponse'
|
465
|
+
|
466
|
+
# auth_names
|
467
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
468
|
+
|
469
|
+
new_options = opts.merge(
|
470
|
+
:header_params => header_params,
|
471
|
+
:query_params => query_params,
|
472
|
+
:form_params => form_params,
|
473
|
+
:body => post_body,
|
474
|
+
:auth_names => auth_names,
|
475
|
+
:return_type => return_type
|
476
|
+
)
|
477
|
+
|
478
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
479
|
+
if @api_client.config.debugging
|
480
|
+
@api_client.config.logger.debug "API called: DistributionsGemApi#set_label\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
481
|
+
end
|
482
|
+
return data, status_code, headers
|
483
|
+
end
|
484
|
+
|
485
|
+
# Unset a label
|
486
|
+
# Unset a single pulp_label on the object.
|
487
|
+
# @param gem_gem_distribution_href [String]
|
488
|
+
# @param unset_label [UnsetLabel]
|
489
|
+
# @param [Hash] opts the optional parameters
|
490
|
+
# @return [UnsetLabelResponse]
|
491
|
+
def unset_label(gem_gem_distribution_href, unset_label, opts = {})
|
492
|
+
data, _status_code, _headers = unset_label_with_http_info(gem_gem_distribution_href, unset_label, opts)
|
493
|
+
data
|
494
|
+
end
|
495
|
+
|
496
|
+
# Unset a label
|
497
|
+
# Unset a single pulp_label on the object.
|
498
|
+
# @param gem_gem_distribution_href [String]
|
499
|
+
# @param unset_label [UnsetLabel]
|
500
|
+
# @param [Hash] opts the optional parameters
|
501
|
+
# @return [Array<(UnsetLabelResponse, Integer, Hash)>] UnsetLabelResponse data, response status code and response headers
|
502
|
+
def unset_label_with_http_info(gem_gem_distribution_href, unset_label, opts = {})
|
503
|
+
if @api_client.config.debugging
|
504
|
+
@api_client.config.logger.debug 'Calling API: DistributionsGemApi.unset_label ...'
|
505
|
+
end
|
506
|
+
# verify the required parameter 'gem_gem_distribution_href' is set
|
507
|
+
if @api_client.config.client_side_validation && gem_gem_distribution_href.nil?
|
508
|
+
fail ArgumentError, "Missing the required parameter 'gem_gem_distribution_href' when calling DistributionsGemApi.unset_label"
|
509
|
+
end
|
510
|
+
# verify the required parameter 'unset_label' is set
|
511
|
+
if @api_client.config.client_side_validation && unset_label.nil?
|
512
|
+
fail ArgumentError, "Missing the required parameter 'unset_label' when calling DistributionsGemApi.unset_label"
|
513
|
+
end
|
514
|
+
# resource path
|
515
|
+
local_var_path = '{gem_gem_distribution_href}unset_label/'.sub('{' + 'gem_gem_distribution_href' + '}', CGI.escape(gem_gem_distribution_href.to_s).gsub('%2F', '/'))
|
516
|
+
|
517
|
+
# query parameters
|
518
|
+
query_params = opts[:query_params] || {}
|
519
|
+
|
520
|
+
# header parameters
|
521
|
+
header_params = opts[:header_params] || {}
|
522
|
+
# HTTP header 'Accept' (if needed)
|
523
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
524
|
+
# HTTP header 'Content-Type'
|
525
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
526
|
+
|
527
|
+
# form parameters
|
528
|
+
form_params = opts[:form_params] || {}
|
529
|
+
|
530
|
+
# http body (model)
|
531
|
+
post_body = opts[:body] || @api_client.object_to_http_body(unset_label)
|
532
|
+
|
533
|
+
# return_type
|
534
|
+
return_type = opts[:return_type] || 'UnsetLabelResponse'
|
535
|
+
|
536
|
+
# auth_names
|
537
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
538
|
+
|
539
|
+
new_options = opts.merge(
|
540
|
+
:header_params => header_params,
|
541
|
+
:query_params => query_params,
|
542
|
+
:form_params => form_params,
|
543
|
+
:body => post_body,
|
544
|
+
:auth_names => auth_names,
|
545
|
+
:return_type => return_type
|
546
|
+
)
|
547
|
+
|
548
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
549
|
+
if @api_client.config.debugging
|
550
|
+
@api_client.config.logger.debug "API called: DistributionsGemApi#unset_label\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
551
|
+
end
|
552
|
+
return data, status_code, headers
|
553
|
+
end
|
554
|
+
|
406
555
|
# Update a gem distribution
|
407
556
|
# Trigger an asynchronous update task
|
408
557
|
# @param gem_gem_distribution_href [String]
|
@@ -159,6 +159,7 @@ module PulpGemClient
|
|
159
159
|
# @option opts [Array<DateTime>] :pulp_created__range Filter results where pulp_created is between two comma separated values
|
160
160
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
161
161
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
162
|
+
# @option opts [String] :q
|
162
163
|
# @option opts [String] :repository Repository referenced by HREF
|
163
164
|
# @option opts [String] :repository_version Repository Version referenced by HREF
|
164
165
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
@@ -185,6 +186,7 @@ module PulpGemClient
|
|
185
186
|
# @option opts [Array<DateTime>] :pulp_created__range Filter results where pulp_created is between two comma separated values
|
186
187
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
187
188
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
189
|
+
# @option opts [String] :q
|
188
190
|
# @option opts [String] :repository Repository referenced by HREF
|
189
191
|
# @option opts [String] :repository_version Repository Version referenced by HREF
|
190
192
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
@@ -216,6 +218,7 @@ module PulpGemClient
|
|
216
218
|
query_params[:'pulp_created__range'] = @api_client.build_collection_param(opts[:'pulp_created__range'], :csv) if !opts[:'pulp_created__range'].nil?
|
217
219
|
query_params[:'pulp_href__in'] = @api_client.build_collection_param(opts[:'pulp_href__in'], :csv) if !opts[:'pulp_href__in'].nil?
|
218
220
|
query_params[:'pulp_id__in'] = @api_client.build_collection_param(opts[:'pulp_id__in'], :csv) if !opts[:'pulp_id__in'].nil?
|
221
|
+
query_params[:'q'] = opts[:'q'] if !opts[:'q'].nil?
|
219
222
|
query_params[:'repository'] = opts[:'repository'] if !opts[:'repository'].nil?
|
220
223
|
query_params[:'repository_version'] = opts[:'repository_version'] if !opts[:'repository_version'].nil?
|
221
224
|
query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
|