pulp_maven_client 0.5.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 +9 -3
- data/docs/DistributionsMavenApi.md +130 -4
- data/docs/MavenMavenArtifact.md +3 -1
- data/docs/MavenMavenDistribution.md +2 -0
- data/docs/MavenMavenDistributionResponse.md +2 -0
- data/docs/MavenMavenRemote.md +1 -1
- data/docs/MavenMavenRemoteResponse.md +1 -1
- data/docs/PatchedmavenMavenDistribution.md +2 -0
- data/docs/PatchedmavenMavenRemote.md +1 -1
- data/docs/PulpMavenApi.md +1 -1
- data/docs/RemotesMavenApi.md +129 -3
- data/docs/RepositoriesMavenApi.md +134 -4
- data/docs/RepositoriesMavenVersionsApi.md +7 -3
- 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 +11 -2
- data/lib/pulp_maven_client/api/distributions_maven_api.rb +164 -3
- data/lib/pulp_maven_client/api/remotes_maven_api.rb +163 -2
- data/lib/pulp_maven_client/api/repositories_maven_api.rb +169 -2
- data/lib/pulp_maven_client/api/repositories_maven_versions_api.rb +8 -2
- 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/maven_maven_remote.rb +1 -1
- data/lib/pulp_maven_client/models/maven_maven_remote_response.rb +1 -1
- data/lib/pulp_maven_client/models/patchedmaven_maven_distribution.rb +13 -1
- data/lib/pulp_maven_client/models/patchedmaven_maven_remote.rb +1 -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 +4 -1
- data/spec/api/distributions_maven_api_spec.rb +34 -1
- data/spec/api/remotes_maven_api_spec.rb +34 -1
- data/spec/api/repositories_maven_api_spec.rb +36 -1
- data/spec/api/repositories_maven_versions_api_spec.rb +3 -1
- 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 +37 -21
@@ -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
|
|
@@ -197,15 +199,23 @@ end
|
|
197
199
|
|
198
200
|
api_instance = PulpMavenClient::RepositoriesMavenApi.new
|
199
201
|
opts = {
|
202
|
+
latest_with_content: 'latest_with_content_example', # String | Content Unit referenced by HREF
|
200
203
|
limit: 56, # Integer | Number of results to return per page.
|
201
204
|
name: 'name_example', # String | Filter results where name matches value
|
202
205
|
name__contains: 'name__contains_example', # String | Filter results where name contains value
|
203
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
|
204
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
|
205
212
|
name__startswith: 'name__startswith_example', # String | Filter results where name starts with value
|
206
213
|
offset: 56, # Integer | The initial index from which to return the results.
|
207
|
-
ordering: ['ordering_example'], # Array<String> | Ordering
|
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)
|
215
|
+
pulp_href__in: ['pulp_href__in_example'], # Array<String> | Multiple values may be separated by commas.
|
216
|
+
pulp_id__in: ['pulp_id__in_example'], # Array<String> | Multiple values may be separated by commas.
|
208
217
|
pulp_label_select: 'pulp_label_select_example', # String | Filter labels by search string
|
218
|
+
q: 'q_example', # String |
|
209
219
|
remote: 'remote_example', # String | Foreign Key referenced by HREF
|
210
220
|
retain_repo_versions: 56, # Integer | Filter results where retain_repo_versions matches value
|
211
221
|
retain_repo_versions__gt: 56, # Integer | Filter results where retain_repo_versions is greater than value
|
@@ -215,6 +225,7 @@ opts = {
|
|
215
225
|
retain_repo_versions__lte: 56, # Integer | Filter results where retain_repo_versions is less than or equal to value
|
216
226
|
retain_repo_versions__ne: 56, # Integer | Filter results where retain_repo_versions not equal to value
|
217
227
|
retain_repo_versions__range: [56], # Array<Integer> | Filter results where retain_repo_versions is between two comma separated values
|
228
|
+
with_content: 'with_content_example', # String | Content Unit referenced by HREF
|
218
229
|
fields: ['fields_example'], # Array<String> | A list of fields to include in the response.
|
219
230
|
exclude_fields: ['exclude_fields_example'] # Array<String> | A list of fields to exclude from the response.
|
220
231
|
}
|
@@ -233,16 +244,24 @@ end
|
|
233
244
|
|
234
245
|
Name | Type | Description | Notes
|
235
246
|
------------- | ------------- | ------------- | -------------
|
247
|
+
**latest_with_content** | **String**| Content Unit referenced by HREF | [optional]
|
236
248
|
**limit** | **Integer**| Number of results to return per page. | [optional]
|
237
249
|
**name** | **String**| Filter results where name matches value | [optional]
|
238
250
|
**name__contains** | **String**| Filter results where name contains value | [optional]
|
239
251
|
**name__icontains** | **String**| Filter results where name contains value | [optional]
|
252
|
+
**name__iexact** | **String**| Filter results where name matches value | [optional]
|
240
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]
|
241
257
|
**name__startswith** | **String**| Filter results where name starts with value | [optional]
|
242
258
|
**offset** | **Integer**| The initial index from which to return the results. | [optional]
|
243
|
-
**ordering** | [**Array<String>**](String.md)| Ordering | [optional]
|
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]
|
260
|
+
**pulp_href__in** | [**Array<String>**](String.md)| Multiple values may be separated by commas. | [optional]
|
261
|
+
**pulp_id__in** | [**Array<String>**](String.md)| Multiple values may be separated by commas. | [optional]
|
244
262
|
**pulp_label_select** | **String**| Filter labels by search string | [optional]
|
245
|
-
**
|
263
|
+
**q** | **String**| | [optional]
|
264
|
+
**remote** | [**String**](.md)| Foreign Key referenced by HREF | [optional]
|
246
265
|
**retain_repo_versions** | **Integer**| Filter results where retain_repo_versions matches value | [optional]
|
247
266
|
**retain_repo_versions__gt** | **Integer**| Filter results where retain_repo_versions is greater than value | [optional]
|
248
267
|
**retain_repo_versions__gte** | **Integer**| Filter results where retain_repo_versions is greater than or equal to value | [optional]
|
@@ -251,6 +270,7 @@ Name | Type | Description | Notes
|
|
251
270
|
**retain_repo_versions__lte** | **Integer**| Filter results where retain_repo_versions is less than or equal to value | [optional]
|
252
271
|
**retain_repo_versions__ne** | **Integer**| Filter results where retain_repo_versions not equal to value | [optional]
|
253
272
|
**retain_repo_versions__range** | [**Array<Integer>**](Integer.md)| Filter results where retain_repo_versions is between two comma separated values | [optional]
|
273
|
+
**with_content** | **String**| Content Unit referenced by HREF | [optional]
|
254
274
|
**fields** | [**Array<String>**](String.md)| A list of fields to include in the response. | [optional]
|
255
275
|
**exclude_fields** | [**Array<String>**](String.md)| A list of fields to exclude from the response. | [optional]
|
256
276
|
|
@@ -382,6 +402,116 @@ Name | Type | Description | Notes
|
|
382
402
|
- **Accept**: application/json
|
383
403
|
|
384
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
|
+
|
385
515
|
## update
|
386
516
|
|
387
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
|
------------- | ------------- | -------------
|
@@ -97,13 +97,15 @@ opts = {
|
|
97
97
|
number__lte: 56, # Integer | Filter results where number is less than or equal to value
|
98
98
|
number__range: [56], # Array<Integer> | Filter results where number is between two comma separated values
|
99
99
|
offset: 56, # Integer | The initial index from which to return the results.
|
100
|
-
ordering: ['ordering_example'], # Array<String> | Ordering
|
100
|
+
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) * `number` - Number * `-number` - Number (descending) * `complete` - Complete * `-complete` - Complete (descending) * `info` - Info * `-info` - Info (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
101
101
|
pulp_created: DateTime.parse('2013-10-20T19:20:30+01:00'), # DateTime | Filter results where pulp_created matches value
|
102
102
|
pulp_created__gt: DateTime.parse('2013-10-20T19:20:30+01:00'), # DateTime | Filter results where pulp_created is greater than value
|
103
103
|
pulp_created__gte: DateTime.parse('2013-10-20T19:20:30+01:00'), # DateTime | Filter results where pulp_created is greater than or equal to value
|
104
104
|
pulp_created__lt: DateTime.parse('2013-10-20T19:20:30+01:00'), # DateTime | Filter results where pulp_created is less than value
|
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
|
+
pulp_href__in: ['pulp_href__in_example'], # Array<String> | Multiple values may be separated by commas.
|
108
|
+
q: 'q_example', # String |
|
107
109
|
fields: ['fields_example'], # Array<String> | A list of fields to include in the response.
|
108
110
|
exclude_fields: ['exclude_fields_example'] # Array<String> | A list of fields to exclude from the response.
|
109
111
|
}
|
@@ -133,13 +135,15 @@ Name | Type | Description | Notes
|
|
133
135
|
**number__lte** | **Integer**| Filter results where number is less than or equal to value | [optional]
|
134
136
|
**number__range** | [**Array<Integer>**](Integer.md)| Filter results where number is between two comma separated values | [optional]
|
135
137
|
**offset** | **Integer**| The initial index from which to return the results. | [optional]
|
136
|
-
**ordering** | [**Array<String>**](String.md)| Ordering | [optional]
|
138
|
+
**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) * `number` - Number * `-number` - Number (descending) * `complete` - Complete * `-complete` - Complete (descending) * `info` - Info * `-info` - Info (descending) * `pk` - Pk * `-pk` - Pk (descending) | [optional]
|
137
139
|
**pulp_created** | **DateTime**| Filter results where pulp_created matches value | [optional]
|
138
140
|
**pulp_created__gt** | **DateTime**| Filter results where pulp_created is greater than value | [optional]
|
139
141
|
**pulp_created__gte** | **DateTime**| Filter results where pulp_created is greater than or equal to value | [optional]
|
140
142
|
**pulp_created__lt** | **DateTime**| Filter results where pulp_created is less than value | [optional]
|
141
143
|
**pulp_created__lte** | **DateTime**| Filter results where pulp_created is less than or equal to value | [optional]
|
142
144
|
**pulp_created__range** | [**Array<DateTime>**](DateTime.md)| Filter results where pulp_created is between two comma separated values | [optional]
|
145
|
+
**pulp_href__in** | [**Array<String>**](String.md)| Multiple values may be separated by commas. | [optional]
|
146
|
+
**q** | **String**| | [optional]
|
143
147
|
**fields** | [**Array<String>**](String.md)| A list of fields to include in the response. | [optional]
|
144
148
|
**exclude_fields** | [**Array<String>**](String.md)| A list of fields to exclude from the response. | [optional]
|
145
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
|
+
|
@@ -91,7 +91,10 @@ module PulpMavenClient
|
|
91
91
|
# @option opts [String] :group_id Filter results where group_id matches value
|
92
92
|
# @option opts [Integer] :limit Number of results to return per page.
|
93
93
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
94
|
-
# @option opts [Array<String>] :ordering Ordering
|
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
|
+
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
96
|
+
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
97
|
+
# @option opts [String] :q
|
95
98
|
# @option opts [String] :repository_version Repository Version referenced by HREF
|
96
99
|
# @option opts [String] :repository_version_added Repository Version referenced by HREF
|
97
100
|
# @option opts [String] :repository_version_removed Repository Version referenced by HREF
|
@@ -112,7 +115,10 @@ module PulpMavenClient
|
|
112
115
|
# @option opts [String] :group_id Filter results where group_id matches value
|
113
116
|
# @option opts [Integer] :limit Number of results to return per page.
|
114
117
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
115
|
-
# @option opts [Array<String>] :ordering Ordering
|
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)
|
119
|
+
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
120
|
+
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
121
|
+
# @option opts [String] :q
|
116
122
|
# @option opts [String] :repository_version Repository Version referenced by HREF
|
117
123
|
# @option opts [String] :repository_version_added Repository Version referenced by HREF
|
118
124
|
# @option opts [String] :repository_version_removed Repository Version referenced by HREF
|
@@ -139,6 +145,9 @@ module PulpMavenClient
|
|
139
145
|
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
140
146
|
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
141
147
|
query_params[:'ordering'] = @api_client.build_collection_param(opts[:'ordering'], :csv) if !opts[:'ordering'].nil?
|
148
|
+
query_params[:'pulp_href__in'] = @api_client.build_collection_param(opts[:'pulp_href__in'], :csv) if !opts[:'pulp_href__in'].nil?
|
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?
|
142
151
|
query_params[:'repository_version'] = opts[:'repository_version'] if !opts[:'repository_version'].nil?
|
143
152
|
query_params[:'repository_version_added'] = opts[:'repository_version_added'] if !opts[:'repository_version_added'].nil?
|
144
153
|
query_params[:'repository_version_removed'] = opts[:'repository_version_removed'] if !opts[:'repository_version_removed'].nil?
|
@@ -156,11 +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
|
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)
|
167
|
+
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
168
|
+
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
163
169
|
# @option opts [String] :pulp_label_select Filter labels by search string
|
170
|
+
# @option opts [String] :q
|
164
171
|
# @option opts [String] :repository Filter results where repository matches value
|
165
172
|
# @option opts [Array<String>] :repository__in Filter results where repository is in a comma-separated list of values
|
166
173
|
# @option opts [String] :with_content Filter distributions based on the content served by them
|
@@ -183,11 +190,18 @@ module PulpMavenClient
|
|
183
190
|
# @option opts [String] :name Filter results where name matches value
|
184
191
|
# @option opts [String] :name__contains Filter results where name contains value
|
185
192
|
# @option opts [String] :name__icontains Filter results where name contains value
|
193
|
+
# @option opts [String] :name__iexact Filter results where name matches value
|
186
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
|
187
198
|
# @option opts [String] :name__startswith Filter results where name starts with value
|
188
199
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
189
|
-
# @option opts [Array<String>] :ordering Ordering
|
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)
|
201
|
+
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
202
|
+
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
190
203
|
# @option opts [String] :pulp_label_select Filter labels by search string
|
204
|
+
# @option opts [String] :q
|
191
205
|
# @option opts [String] :repository Filter results where repository matches value
|
192
206
|
# @option opts [Array<String>] :repository__in Filter results where repository is in a comma-separated list of values
|
193
207
|
# @option opts [String] :with_content Filter distributions based on the content served by them
|
@@ -198,7 +212,7 @@ module PulpMavenClient
|
|
198
212
|
if @api_client.config.debugging
|
199
213
|
@api_client.config.logger.debug 'Calling API: DistributionsMavenApi.list ...'
|
200
214
|
end
|
201
|
-
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"]
|
202
216
|
if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
|
203
217
|
fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
|
204
218
|
end
|
@@ -215,11 +229,18 @@ module PulpMavenClient
|
|
215
229
|
query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
|
216
230
|
query_params[:'name__contains'] = opts[:'name__contains'] if !opts[:'name__contains'].nil?
|
217
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?
|
218
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?
|
219
237
|
query_params[:'name__startswith'] = opts[:'name__startswith'] if !opts[:'name__startswith'].nil?
|
220
238
|
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
221
239
|
query_params[:'ordering'] = @api_client.build_collection_param(opts[:'ordering'], :csv) if !opts[:'ordering'].nil?
|
240
|
+
query_params[:'pulp_href__in'] = @api_client.build_collection_param(opts[:'pulp_href__in'], :csv) if !opts[:'pulp_href__in'].nil?
|
241
|
+
query_params[:'pulp_id__in'] = @api_client.build_collection_param(opts[:'pulp_id__in'], :csv) if !opts[:'pulp_id__in'].nil?
|
222
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?
|
223
244
|
query_params[:'repository'] = opts[:'repository'] if !opts[:'repository'].nil?
|
224
245
|
query_params[:'repository__in'] = @api_client.build_collection_param(opts[:'repository__in'], :csv) if !opts[:'repository__in'].nil?
|
225
246
|
query_params[:'with_content'] = opts[:'with_content'] if !opts[:'with_content'].nil?
|
@@ -397,6 +418,146 @@ module PulpMavenClient
|
|
397
418
|
return data, status_code, headers
|
398
419
|
end
|
399
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
|
+
|
400
561
|
# Update a maven distribution
|
401
562
|
# Trigger an asynchronous update task
|
402
563
|
# @param maven_maven_distribution_href [String]
|