pulp_maven_client 0.6.0 → 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 +15 -5
- data/docs/ContentArtifactApi.md +3 -1
- data/docs/DistributionsMavenApi.md +126 -4
- data/docs/MavenMavenArtifact.md +3 -1
- data/docs/MavenMavenDistribution.md +2 -0
- data/docs/MavenMavenDistributionResponse.md +2 -0
- data/docs/PatchedmavenMavenDistribution.md +2 -0
- data/docs/PulpMavenApi.md +1 -1
- data/docs/RemotesMavenApi.md +123 -1
- data/docs/RepositoriesMavenApi.md +124 -2
- data/docs/RepositoriesMavenVersionsApi.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_maven_client/api/content_artifact_api.rb +3 -0
- data/lib/pulp_maven_client/api/distributions_maven_api.rb +158 -3
- data/lib/pulp_maven_client/api/remotes_maven_api.rb +155 -0
- data/lib/pulp_maven_client/api/repositories_maven_api.rb +155 -0
- data/lib/pulp_maven_client/api/repositories_maven_versions_api.rb +3 -0
- data/lib/pulp_maven_client/configuration.rb +2 -2
- data/lib/pulp_maven_client/models/maven_maven_artifact.rb +11 -1
- data/lib/pulp_maven_client/models/maven_maven_distribution.rb +13 -1
- data/lib/pulp_maven_client/models/maven_maven_distribution_response.rb +13 -1
- data/lib/pulp_maven_client/models/patchedmaven_maven_distribution.rb +13 -1
- data/lib/pulp_maven_client/models/set_label.rb +252 -0
- data/lib/pulp_maven_client/models/set_label_response.rb +243 -0
- data/lib/pulp_maven_client/models/unset_label.rb +242 -0
- data/lib/pulp_maven_client/models/unset_label_response.rb +242 -0
- data/lib/pulp_maven_client/version.rb +1 -1
- data/lib/pulp_maven_client.rb +4 -0
- data/spec/api/content_artifact_api_spec.rb +1 -0
- data/spec/api/distributions_maven_api_spec.rb +32 -1
- data/spec/api/remotes_maven_api_spec.rb +31 -0
- data/spec/api/repositories_maven_api_spec.rb +31 -0
- data/spec/api/repositories_maven_versions_api_spec.rb +1 -0
- data/spec/configuration_spec.rb +3 -3
- data/spec/models/maven_maven_artifact_spec.rb +6 -0
- data/spec/models/maven_maven_distribution_response_spec.rb +6 -0
- data/spec/models/maven_maven_distribution_spec.rb +6 -0
- data/spec/models/patchedmaven_maven_distribution_spec.rb +6 -0
- 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 +38 -22
@@ -1,6 +1,6 @@
|
|
1
1
|
# PulpMavenClient::RepositoriesMavenApi
|
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,6 +10,8 @@ Method | HTTP request | Description
|
|
10
10
|
[**list**](RepositoriesMavenApi.md#list) | **GET** /pulp/api/v3/repositories/maven/maven/ | List maven repositorys
|
11
11
|
[**partial_update**](RepositoriesMavenApi.md#partial_update) | **PATCH** {maven_maven_repository_href} | Update a maven repository
|
12
12
|
[**read**](RepositoriesMavenApi.md#read) | **GET** {maven_maven_repository_href} | Inspect a maven repository
|
13
|
+
[**set_label**](RepositoriesMavenApi.md#set_label) | **POST** {maven_maven_repository_href}set_label/ | Set a label
|
14
|
+
[**unset_label**](RepositoriesMavenApi.md#unset_label) | **POST** {maven_maven_repository_href}unset_label/ | Unset a label
|
13
15
|
[**update**](RepositoriesMavenApi.md#update) | **PUT** {maven_maven_repository_href} | Update a maven repository
|
14
16
|
|
15
17
|
|
@@ -202,13 +204,18 @@ opts = {
|
|
202
204
|
name: 'name_example', # String | Filter results where name matches value
|
203
205
|
name__contains: 'name__contains_example', # String | Filter results where name contains value
|
204
206
|
name__icontains: 'name__icontains_example', # String | Filter results where name contains value
|
207
|
+
name__iexact: 'name__iexact_example', # String | Filter results where name matches value
|
205
208
|
name__in: ['name__in_example'], # Array<String> | Filter results where name is in a comma-separated list of values
|
209
|
+
name__iregex: 'name__iregex_example', # String | Filter results where name matches regex value
|
210
|
+
name__istartswith: 'name__istartswith_example', # String | Filter results where name starts with value
|
211
|
+
name__regex: 'name__regex_example', # String | Filter results where name matches regex value
|
206
212
|
name__startswith: 'name__startswith_example', # String | Filter results where name starts with value
|
207
213
|
offset: 56, # Integer | The initial index from which to return the results.
|
208
214
|
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)
|
209
215
|
pulp_href__in: ['pulp_href__in_example'], # Array<String> | Multiple values may be separated by commas.
|
210
216
|
pulp_id__in: ['pulp_id__in_example'], # Array<String> | Multiple values may be separated by commas.
|
211
217
|
pulp_label_select: 'pulp_label_select_example', # String | Filter labels by search string
|
218
|
+
q: 'q_example', # String |
|
212
219
|
remote: 'remote_example', # String | Foreign Key referenced by HREF
|
213
220
|
retain_repo_versions: 56, # Integer | Filter results where retain_repo_versions matches value
|
214
221
|
retain_repo_versions__gt: 56, # Integer | Filter results where retain_repo_versions is greater than value
|
@@ -242,14 +249,19 @@ Name | Type | Description | Notes
|
|
242
249
|
**name** | **String**| Filter results where name matches value | [optional]
|
243
250
|
**name__contains** | **String**| Filter results where name contains value | [optional]
|
244
251
|
**name__icontains** | **String**| Filter results where name contains value | [optional]
|
252
|
+
**name__iexact** | **String**| Filter results where name matches value | [optional]
|
245
253
|
**name__in** | [**Array<String>**](String.md)| Filter results where name is in a comma-separated list of values | [optional]
|
254
|
+
**name__iregex** | **String**| Filter results where name matches regex value | [optional]
|
255
|
+
**name__istartswith** | **String**| Filter results where name starts with value | [optional]
|
256
|
+
**name__regex** | **String**| Filter results where name matches regex value | [optional]
|
246
257
|
**name__startswith** | **String**| Filter results where name starts with value | [optional]
|
247
258
|
**offset** | **Integer**| The initial index from which to return the results. | [optional]
|
248
259
|
**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]
|
249
260
|
**pulp_href__in** | [**Array<String>**](String.md)| Multiple values may be separated by commas. | [optional]
|
250
261
|
**pulp_id__in** | [**Array<String>**](String.md)| Multiple values may be separated by commas. | [optional]
|
251
262
|
**pulp_label_select** | **String**| Filter labels by search string | [optional]
|
252
|
-
**
|
263
|
+
**q** | **String**| | [optional]
|
264
|
+
**remote** | [**String**](.md)| Foreign Key referenced by HREF | [optional]
|
253
265
|
**retain_repo_versions** | **Integer**| Filter results where retain_repo_versions matches value | [optional]
|
254
266
|
**retain_repo_versions__gt** | **Integer**| Filter results where retain_repo_versions is greater than value | [optional]
|
255
267
|
**retain_repo_versions__gte** | **Integer**| Filter results where retain_repo_versions is greater than or equal to value | [optional]
|
@@ -390,6 +402,116 @@ Name | Type | Description | Notes
|
|
390
402
|
- **Accept**: application/json
|
391
403
|
|
392
404
|
|
405
|
+
## set_label
|
406
|
+
|
407
|
+
> SetLabelResponse set_label(maven_maven_repository_href, set_label)
|
408
|
+
|
409
|
+
Set a label
|
410
|
+
|
411
|
+
Set a single pulp_label on the object to a specific value or null.
|
412
|
+
|
413
|
+
### Example
|
414
|
+
|
415
|
+
```ruby
|
416
|
+
# load the gem
|
417
|
+
require 'pulp_maven_client'
|
418
|
+
# setup authorization
|
419
|
+
PulpMavenClient.configure do |config|
|
420
|
+
# Configure HTTP basic authorization: basicAuth
|
421
|
+
config.username = 'YOUR USERNAME'
|
422
|
+
config.password = 'YOUR PASSWORD'
|
423
|
+
end
|
424
|
+
|
425
|
+
api_instance = PulpMavenClient::RepositoriesMavenApi.new
|
426
|
+
maven_maven_repository_href = 'maven_maven_repository_href_example' # String |
|
427
|
+
set_label = PulpMavenClient::SetLabel.new # SetLabel |
|
428
|
+
|
429
|
+
begin
|
430
|
+
#Set a label
|
431
|
+
result = api_instance.set_label(maven_maven_repository_href, set_label)
|
432
|
+
p result
|
433
|
+
rescue PulpMavenClient::ApiError => e
|
434
|
+
puts "Exception when calling RepositoriesMavenApi->set_label: #{e}"
|
435
|
+
end
|
436
|
+
```
|
437
|
+
|
438
|
+
### Parameters
|
439
|
+
|
440
|
+
|
441
|
+
Name | Type | Description | Notes
|
442
|
+
------------- | ------------- | ------------- | -------------
|
443
|
+
**maven_maven_repository_href** | **String**| |
|
444
|
+
**set_label** | [**SetLabel**](SetLabel.md)| |
|
445
|
+
|
446
|
+
### Return type
|
447
|
+
|
448
|
+
[**SetLabelResponse**](SetLabelResponse.md)
|
449
|
+
|
450
|
+
### Authorization
|
451
|
+
|
452
|
+
[basicAuth](../README.md#basicAuth)
|
453
|
+
|
454
|
+
### HTTP request headers
|
455
|
+
|
456
|
+
- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
|
457
|
+
- **Accept**: application/json
|
458
|
+
|
459
|
+
|
460
|
+
## unset_label
|
461
|
+
|
462
|
+
> UnsetLabelResponse unset_label(maven_maven_repository_href, unset_label)
|
463
|
+
|
464
|
+
Unset a label
|
465
|
+
|
466
|
+
Unset a single pulp_label on the object.
|
467
|
+
|
468
|
+
### Example
|
469
|
+
|
470
|
+
```ruby
|
471
|
+
# load the gem
|
472
|
+
require 'pulp_maven_client'
|
473
|
+
# setup authorization
|
474
|
+
PulpMavenClient.configure do |config|
|
475
|
+
# Configure HTTP basic authorization: basicAuth
|
476
|
+
config.username = 'YOUR USERNAME'
|
477
|
+
config.password = 'YOUR PASSWORD'
|
478
|
+
end
|
479
|
+
|
480
|
+
api_instance = PulpMavenClient::RepositoriesMavenApi.new
|
481
|
+
maven_maven_repository_href = 'maven_maven_repository_href_example' # String |
|
482
|
+
unset_label = PulpMavenClient::UnsetLabel.new # UnsetLabel |
|
483
|
+
|
484
|
+
begin
|
485
|
+
#Unset a label
|
486
|
+
result = api_instance.unset_label(maven_maven_repository_href, unset_label)
|
487
|
+
p result
|
488
|
+
rescue PulpMavenClient::ApiError => e
|
489
|
+
puts "Exception when calling RepositoriesMavenApi->unset_label: #{e}"
|
490
|
+
end
|
491
|
+
```
|
492
|
+
|
493
|
+
### Parameters
|
494
|
+
|
495
|
+
|
496
|
+
Name | Type | Description | Notes
|
497
|
+
------------- | ------------- | ------------- | -------------
|
498
|
+
**maven_maven_repository_href** | **String**| |
|
499
|
+
**unset_label** | [**UnsetLabel**](UnsetLabel.md)| |
|
500
|
+
|
501
|
+
### Return type
|
502
|
+
|
503
|
+
[**UnsetLabelResponse**](UnsetLabelResponse.md)
|
504
|
+
|
505
|
+
### Authorization
|
506
|
+
|
507
|
+
[basicAuth](../README.md#basicAuth)
|
508
|
+
|
509
|
+
### HTTP request headers
|
510
|
+
|
511
|
+
- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
|
512
|
+
- **Accept**: application/json
|
513
|
+
|
514
|
+
|
393
515
|
## update
|
394
516
|
|
395
517
|
> AsyncOperationResponse update(maven_maven_repository_href, maven_maven_repository)
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# PulpMavenClient::RepositoriesMavenVersionsApi
|
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
|
+
# PulpMavenClient::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 'PulpMavenClient'
|
14
|
+
|
15
|
+
instance = PulpMavenClient::SetLabel.new(key: null,
|
16
|
+
value: null)
|
17
|
+
```
|
18
|
+
|
19
|
+
|
@@ -0,0 +1,19 @@
|
|
1
|
+
# PulpMavenClient::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 'PulpMavenClient'
|
14
|
+
|
15
|
+
instance = PulpMavenClient::SetLabelResponse.new(key: null,
|
16
|
+
value: null)
|
17
|
+
```
|
18
|
+
|
19
|
+
|
data/docs/UnsetLabel.md
ADDED
@@ -0,0 +1,17 @@
|
|
1
|
+
# PulpMavenClient::UnsetLabel
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
Name | Type | Description | Notes
|
6
|
+
------------ | ------------- | ------------- | -------------
|
7
|
+
**key** | **String** | |
|
8
|
+
|
9
|
+
## Code Sample
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
require 'PulpMavenClient'
|
13
|
+
|
14
|
+
instance = PulpMavenClient::UnsetLabel.new(key: null)
|
15
|
+
```
|
16
|
+
|
17
|
+
|
@@ -0,0 +1,19 @@
|
|
1
|
+
# PulpMavenClient::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 'PulpMavenClient'
|
14
|
+
|
15
|
+
instance = PulpMavenClient::UnsetLabelResponse.new(key: null,
|
16
|
+
value: null)
|
17
|
+
```
|
18
|
+
|
19
|
+
|
@@ -94,6 +94,7 @@ module PulpMavenClient
|
|
94
94
|
# @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) * `group_id` - Group id * `-group_id` - Group id (descending) * `artifact_id` - Artifact id * `-artifact_id` - Artifact id (descending) * `version` - Version * `-version` - Version (descending) * `filename` - Filename * `-filename` - Filename (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
95
95
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
96
96
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
97
|
+
# @option opts [String] :q
|
97
98
|
# @option opts [String] :repository_version Repository Version referenced by HREF
|
98
99
|
# @option opts [String] :repository_version_added Repository Version referenced by HREF
|
99
100
|
# @option opts [String] :repository_version_removed Repository Version referenced by HREF
|
@@ -117,6 +118,7 @@ module PulpMavenClient
|
|
117
118
|
# @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) * `group_id` - Group id * `-group_id` - Group id (descending) * `artifact_id` - Artifact id * `-artifact_id` - Artifact id (descending) * `version` - Version * `-version` - Version (descending) * `filename` - Filename * `-filename` - Filename (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
118
119
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
119
120
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
121
|
+
# @option opts [String] :q
|
120
122
|
# @option opts [String] :repository_version Repository Version referenced by HREF
|
121
123
|
# @option opts [String] :repository_version_added Repository Version referenced by HREF
|
122
124
|
# @option opts [String] :repository_version_removed Repository Version referenced by HREF
|
@@ -145,6 +147,7 @@ module PulpMavenClient
|
|
145
147
|
query_params[:'ordering'] = @api_client.build_collection_param(opts[:'ordering'], :csv) if !opts[:'ordering'].nil?
|
146
148
|
query_params[:'pulp_href__in'] = @api_client.build_collection_param(opts[:'pulp_href__in'], :csv) if !opts[:'pulp_href__in'].nil?
|
147
149
|
query_params[:'pulp_id__in'] = @api_client.build_collection_param(opts[:'pulp_id__in'], :csv) if !opts[:'pulp_id__in'].nil?
|
150
|
+
query_params[:'q'] = opts[:'q'] if !opts[:'q'].nil?
|
148
151
|
query_params[:'repository_version'] = opts[:'repository_version'] if !opts[:'repository_version'].nil?
|
149
152
|
query_params[:'repository_version_added'] = opts[:'repository_version_added'] if !opts[:'repository_version_added'].nil?
|
150
153
|
query_params[:'repository_version_removed'] = opts[:'repository_version_removed'] if !opts[:'repository_version_removed'].nil?
|
@@ -156,13 +156,18 @@ module PulpMavenClient
|
|
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__iregex Filter results where name matches regex value
|
162
|
+
# @option opts [String] :name__istartswith Filter results where name starts with value
|
163
|
+
# @option opts [String] :name__regex Filter results where name matches regex value
|
160
164
|
# @option opts [String] :name__startswith Filter results where name starts with value
|
161
165
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
162
|
-
# @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) * `pk` - Pk * `-pk` - Pk (descending)
|
166
|
+
# @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
167
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
164
168
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
165
169
|
# @option opts [String] :pulp_label_select Filter labels by search string
|
170
|
+
# @option opts [String] :q
|
166
171
|
# @option opts [String] :repository Filter results where repository matches value
|
167
172
|
# @option opts [Array<String>] :repository__in Filter results where repository is in a comma-separated list of values
|
168
173
|
# @option opts [String] :with_content Filter distributions based on the content served by them
|
@@ -185,13 +190,18 @@ module PulpMavenClient
|
|
185
190
|
# @option opts [String] :name Filter results where name matches value
|
186
191
|
# @option opts [String] :name__contains Filter results where name contains value
|
187
192
|
# @option opts [String] :name__icontains Filter results where name contains value
|
193
|
+
# @option opts [String] :name__iexact Filter results where name matches value
|
188
194
|
# @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
|
195
|
+
# @option opts [String] :name__iregex Filter results where name matches regex value
|
196
|
+
# @option opts [String] :name__istartswith Filter results where name starts with value
|
197
|
+
# @option opts [String] :name__regex Filter results where name matches regex value
|
189
198
|
# @option opts [String] :name__startswith Filter results where name starts with value
|
190
199
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
191
|
-
# @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) * `pk` - Pk * `-pk` - Pk (descending)
|
200
|
+
# @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
201
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
193
202
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
194
203
|
# @option opts [String] :pulp_label_select Filter labels by search string
|
204
|
+
# @option opts [String] :q
|
195
205
|
# @option opts [String] :repository Filter results where repository matches value
|
196
206
|
# @option opts [Array<String>] :repository__in Filter results where repository is in a comma-separated list of values
|
197
207
|
# @option opts [String] :with_content Filter distributions based on the content served by them
|
@@ -202,7 +212,7 @@ module PulpMavenClient
|
|
202
212
|
if @api_client.config.debugging
|
203
213
|
@api_client.config.logger.debug 'Calling API: DistributionsMavenApi.list ...'
|
204
214
|
end
|
205
|
-
allowable_values = ["-base_path", "-name", "-pk", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-pulp_type", "base_path", "name", "pk", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "pulp_type"]
|
215
|
+
allowable_values = ["-base_path", "-hidden", "-name", "-pk", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-pulp_type", "base_path", "hidden", "name", "pk", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "pulp_type"]
|
206
216
|
if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
|
207
217
|
fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
|
208
218
|
end
|
@@ -219,13 +229,18 @@ module PulpMavenClient
|
|
219
229
|
query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
|
220
230
|
query_params[:'name__contains'] = opts[:'name__contains'] if !opts[:'name__contains'].nil?
|
221
231
|
query_params[:'name__icontains'] = opts[:'name__icontains'] if !opts[:'name__icontains'].nil?
|
232
|
+
query_params[:'name__iexact'] = opts[:'name__iexact'] if !opts[:'name__iexact'].nil?
|
222
233
|
query_params[:'name__in'] = @api_client.build_collection_param(opts[:'name__in'], :csv) if !opts[:'name__in'].nil?
|
234
|
+
query_params[:'name__iregex'] = opts[:'name__iregex'] if !opts[:'name__iregex'].nil?
|
235
|
+
query_params[:'name__istartswith'] = opts[:'name__istartswith'] if !opts[:'name__istartswith'].nil?
|
236
|
+
query_params[:'name__regex'] = opts[:'name__regex'] if !opts[:'name__regex'].nil?
|
223
237
|
query_params[:'name__startswith'] = opts[:'name__startswith'] if !opts[:'name__startswith'].nil?
|
224
238
|
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
225
239
|
query_params[:'ordering'] = @api_client.build_collection_param(opts[:'ordering'], :csv) if !opts[:'ordering'].nil?
|
226
240
|
query_params[:'pulp_href__in'] = @api_client.build_collection_param(opts[:'pulp_href__in'], :csv) if !opts[:'pulp_href__in'].nil?
|
227
241
|
query_params[:'pulp_id__in'] = @api_client.build_collection_param(opts[:'pulp_id__in'], :csv) if !opts[:'pulp_id__in'].nil?
|
228
242
|
query_params[:'pulp_label_select'] = opts[:'pulp_label_select'] if !opts[:'pulp_label_select'].nil?
|
243
|
+
query_params[:'q'] = opts[:'q'] if !opts[:'q'].nil?
|
229
244
|
query_params[:'repository'] = opts[:'repository'] if !opts[:'repository'].nil?
|
230
245
|
query_params[:'repository__in'] = @api_client.build_collection_param(opts[:'repository__in'], :csv) if !opts[:'repository__in'].nil?
|
231
246
|
query_params[:'with_content'] = opts[:'with_content'] if !opts[:'with_content'].nil?
|
@@ -403,6 +418,146 @@ module PulpMavenClient
|
|
403
418
|
return data, status_code, headers
|
404
419
|
end
|
405
420
|
|
421
|
+
# Set a label
|
422
|
+
# Set a single pulp_label on the object to a specific value or null.
|
423
|
+
# @param maven_maven_distribution_href [String]
|
424
|
+
# @param set_label [SetLabel]
|
425
|
+
# @param [Hash] opts the optional parameters
|
426
|
+
# @return [SetLabelResponse]
|
427
|
+
def set_label(maven_maven_distribution_href, set_label, opts = {})
|
428
|
+
data, _status_code, _headers = set_label_with_http_info(maven_maven_distribution_href, set_label, opts)
|
429
|
+
data
|
430
|
+
end
|
431
|
+
|
432
|
+
# Set a label
|
433
|
+
# Set a single pulp_label on the object to a specific value or null.
|
434
|
+
# @param maven_maven_distribution_href [String]
|
435
|
+
# @param set_label [SetLabel]
|
436
|
+
# @param [Hash] opts the optional parameters
|
437
|
+
# @return [Array<(SetLabelResponse, Integer, Hash)>] SetLabelResponse data, response status code and response headers
|
438
|
+
def set_label_with_http_info(maven_maven_distribution_href, set_label, opts = {})
|
439
|
+
if @api_client.config.debugging
|
440
|
+
@api_client.config.logger.debug 'Calling API: DistributionsMavenApi.set_label ...'
|
441
|
+
end
|
442
|
+
# verify the required parameter 'maven_maven_distribution_href' is set
|
443
|
+
if @api_client.config.client_side_validation && maven_maven_distribution_href.nil?
|
444
|
+
fail ArgumentError, "Missing the required parameter 'maven_maven_distribution_href' when calling DistributionsMavenApi.set_label"
|
445
|
+
end
|
446
|
+
# verify the required parameter 'set_label' is set
|
447
|
+
if @api_client.config.client_side_validation && set_label.nil?
|
448
|
+
fail ArgumentError, "Missing the required parameter 'set_label' when calling DistributionsMavenApi.set_label"
|
449
|
+
end
|
450
|
+
# resource path
|
451
|
+
local_var_path = '{maven_maven_distribution_href}set_label/'.sub('{' + 'maven_maven_distribution_href' + '}', CGI.escape(maven_maven_distribution_href.to_s).gsub('%2F', '/'))
|
452
|
+
|
453
|
+
# query parameters
|
454
|
+
query_params = opts[:query_params] || {}
|
455
|
+
|
456
|
+
# header parameters
|
457
|
+
header_params = opts[:header_params] || {}
|
458
|
+
# HTTP header 'Accept' (if needed)
|
459
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
460
|
+
# HTTP header 'Content-Type'
|
461
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
462
|
+
|
463
|
+
# form parameters
|
464
|
+
form_params = opts[:form_params] || {}
|
465
|
+
|
466
|
+
# http body (model)
|
467
|
+
post_body = opts[:body] || @api_client.object_to_http_body(set_label)
|
468
|
+
|
469
|
+
# return_type
|
470
|
+
return_type = opts[:return_type] || 'SetLabelResponse'
|
471
|
+
|
472
|
+
# auth_names
|
473
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
474
|
+
|
475
|
+
new_options = opts.merge(
|
476
|
+
:header_params => header_params,
|
477
|
+
:query_params => query_params,
|
478
|
+
:form_params => form_params,
|
479
|
+
:body => post_body,
|
480
|
+
:auth_names => auth_names,
|
481
|
+
:return_type => return_type
|
482
|
+
)
|
483
|
+
|
484
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
485
|
+
if @api_client.config.debugging
|
486
|
+
@api_client.config.logger.debug "API called: DistributionsMavenApi#set_label\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
487
|
+
end
|
488
|
+
return data, status_code, headers
|
489
|
+
end
|
490
|
+
|
491
|
+
# Unset a label
|
492
|
+
# Unset a single pulp_label on the object.
|
493
|
+
# @param maven_maven_distribution_href [String]
|
494
|
+
# @param unset_label [UnsetLabel]
|
495
|
+
# @param [Hash] opts the optional parameters
|
496
|
+
# @return [UnsetLabelResponse]
|
497
|
+
def unset_label(maven_maven_distribution_href, unset_label, opts = {})
|
498
|
+
data, _status_code, _headers = unset_label_with_http_info(maven_maven_distribution_href, unset_label, opts)
|
499
|
+
data
|
500
|
+
end
|
501
|
+
|
502
|
+
# Unset a label
|
503
|
+
# Unset a single pulp_label on the object.
|
504
|
+
# @param maven_maven_distribution_href [String]
|
505
|
+
# @param unset_label [UnsetLabel]
|
506
|
+
# @param [Hash] opts the optional parameters
|
507
|
+
# @return [Array<(UnsetLabelResponse, Integer, Hash)>] UnsetLabelResponse data, response status code and response headers
|
508
|
+
def unset_label_with_http_info(maven_maven_distribution_href, unset_label, opts = {})
|
509
|
+
if @api_client.config.debugging
|
510
|
+
@api_client.config.logger.debug 'Calling API: DistributionsMavenApi.unset_label ...'
|
511
|
+
end
|
512
|
+
# verify the required parameter 'maven_maven_distribution_href' is set
|
513
|
+
if @api_client.config.client_side_validation && maven_maven_distribution_href.nil?
|
514
|
+
fail ArgumentError, "Missing the required parameter 'maven_maven_distribution_href' when calling DistributionsMavenApi.unset_label"
|
515
|
+
end
|
516
|
+
# verify the required parameter 'unset_label' is set
|
517
|
+
if @api_client.config.client_side_validation && unset_label.nil?
|
518
|
+
fail ArgumentError, "Missing the required parameter 'unset_label' when calling DistributionsMavenApi.unset_label"
|
519
|
+
end
|
520
|
+
# resource path
|
521
|
+
local_var_path = '{maven_maven_distribution_href}unset_label/'.sub('{' + 'maven_maven_distribution_href' + '}', CGI.escape(maven_maven_distribution_href.to_s).gsub('%2F', '/'))
|
522
|
+
|
523
|
+
# query parameters
|
524
|
+
query_params = opts[:query_params] || {}
|
525
|
+
|
526
|
+
# header parameters
|
527
|
+
header_params = opts[:header_params] || {}
|
528
|
+
# HTTP header 'Accept' (if needed)
|
529
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
530
|
+
# HTTP header 'Content-Type'
|
531
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
532
|
+
|
533
|
+
# form parameters
|
534
|
+
form_params = opts[:form_params] || {}
|
535
|
+
|
536
|
+
# http body (model)
|
537
|
+
post_body = opts[:body] || @api_client.object_to_http_body(unset_label)
|
538
|
+
|
539
|
+
# return_type
|
540
|
+
return_type = opts[:return_type] || 'UnsetLabelResponse'
|
541
|
+
|
542
|
+
# auth_names
|
543
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
544
|
+
|
545
|
+
new_options = opts.merge(
|
546
|
+
:header_params => header_params,
|
547
|
+
:query_params => query_params,
|
548
|
+
:form_params => form_params,
|
549
|
+
:body => post_body,
|
550
|
+
:auth_names => auth_names,
|
551
|
+
:return_type => return_type
|
552
|
+
)
|
553
|
+
|
554
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
555
|
+
if @api_client.config.debugging
|
556
|
+
@api_client.config.logger.debug "API called: DistributionsMavenApi#unset_label\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
557
|
+
end
|
558
|
+
return data, status_code, headers
|
559
|
+
end
|
560
|
+
|
406
561
|
# Update a maven distribution
|
407
562
|
# Trigger an asynchronous update task
|
408
563
|
# @param maven_maven_distribution_href [String]
|