pulp_gem_client 0.2.0 → 0.4.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 +35 -5
- data/docs/ContentGemApi.md +3 -1
- data/docs/DistributionsGemApi.md +355 -1
- data/docs/MyPermissionsResponse.md +17 -0
- data/docs/NestedRole.md +21 -0
- data/docs/NestedRoleResponse.md +21 -0
- data/docs/ObjectRolesResponse.md +17 -0
- data/docs/PublicationsGemApi.md +235 -1
- data/docs/RemotesGemApi.md +355 -1
- data/docs/RepositoriesGemApi.md +355 -1
- 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 +3 -0
- data/lib/pulp_gem_client/api/distributions_gem_api.rb +431 -0
- data/lib/pulp_gem_client/api/publications_gem_api.rb +279 -0
- data/lib/pulp_gem_client/api/remotes_gem_api.rb +431 -0
- data/lib/pulp_gem_client/api/repositories_gem_api.rb +431 -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/my_permissions_response.rb +213 -0
- data/lib/pulp_gem_client/models/nested_role.rb +253 -0
- data/lib/pulp_gem_client/models/nested_role_response.rb +234 -0
- data/lib/pulp_gem_client/models/object_roles_response.rb +213 -0
- 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 +8 -0
- data/spec/api/content_gem_api_spec.rb +1 -0
- data/spec/api/distributions_gem_api_spec.rb +85 -0
- data/spec/api/publications_gem_api_spec.rb +55 -0
- data/spec/api/remotes_gem_api_spec.rb +85 -0
- data/spec/api/repositories_gem_api_spec.rb +85 -0
- data/spec/api/repositories_gem_versions_api_spec.rb +1 -0
- data/spec/configuration_spec.rb +3 -3
- data/spec/models/my_permissions_response_spec.rb +41 -0
- data/spec/models/nested_role_response_spec.rb +53 -0
- data/spec/models/nested_role_spec.rb +53 -0
- data/spec/models/object_roles_response_spec.rb +41 -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 +57 -25
data/docs/RepositoriesGemApi.md
CHANGED
@@ -1,20 +1,81 @@
|
|
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
|
------------- | ------------- | -------------
|
7
|
+
[**add_role**](RepositoriesGemApi.md#add_role) | **POST** {gem_gem_repository_href}add_role/ | Add a role
|
7
8
|
[**create**](RepositoriesGemApi.md#create) | **POST** /pulp/api/v3/repositories/gem/gem/ | Create a gem repository
|
8
9
|
[**delete**](RepositoriesGemApi.md#delete) | **DELETE** {gem_gem_repository_href} | Delete a gem repository
|
9
10
|
[**list**](RepositoriesGemApi.md#list) | **GET** /pulp/api/v3/repositories/gem/gem/ | List gem repositorys
|
11
|
+
[**list_roles**](RepositoriesGemApi.md#list_roles) | **GET** {gem_gem_repository_href}list_roles/ | List roles
|
10
12
|
[**modify**](RepositoriesGemApi.md#modify) | **POST** {gem_gem_repository_href}modify/ | Modify Repository Content
|
13
|
+
[**my_permissions**](RepositoriesGemApi.md#my_permissions) | **GET** {gem_gem_repository_href}my_permissions/ | List user permissions
|
11
14
|
[**partial_update**](RepositoriesGemApi.md#partial_update) | **PATCH** {gem_gem_repository_href} | Update a gem repository
|
12
15
|
[**read**](RepositoriesGemApi.md#read) | **GET** {gem_gem_repository_href} | Inspect a gem repository
|
16
|
+
[**remove_role**](RepositoriesGemApi.md#remove_role) | **POST** {gem_gem_repository_href}remove_role/ | Remove a role
|
17
|
+
[**set_label**](RepositoriesGemApi.md#set_label) | **POST** {gem_gem_repository_href}set_label/ | Set a label
|
13
18
|
[**sync**](RepositoriesGemApi.md#sync) | **POST** {gem_gem_repository_href}sync/ | Sync from a remote
|
19
|
+
[**unset_label**](RepositoriesGemApi.md#unset_label) | **POST** {gem_gem_repository_href}unset_label/ | Unset a label
|
14
20
|
[**update**](RepositoriesGemApi.md#update) | **PUT** {gem_gem_repository_href} | Update a gem repository
|
15
21
|
|
16
22
|
|
17
23
|
|
24
|
+
## add_role
|
25
|
+
|
26
|
+
> NestedRoleResponse add_role(gem_gem_repository_href, nested_role)
|
27
|
+
|
28
|
+
Add a role
|
29
|
+
|
30
|
+
Add a role for this object to users/groups.
|
31
|
+
|
32
|
+
### Example
|
33
|
+
|
34
|
+
```ruby
|
35
|
+
# load the gem
|
36
|
+
require 'pulp_gem_client'
|
37
|
+
# setup authorization
|
38
|
+
PulpGemClient.configure do |config|
|
39
|
+
# Configure HTTP basic authorization: basicAuth
|
40
|
+
config.username = 'YOUR USERNAME'
|
41
|
+
config.password = 'YOUR PASSWORD'
|
42
|
+
end
|
43
|
+
|
44
|
+
api_instance = PulpGemClient::RepositoriesGemApi.new
|
45
|
+
gem_gem_repository_href = 'gem_gem_repository_href_example' # String |
|
46
|
+
nested_role = PulpGemClient::NestedRole.new # NestedRole |
|
47
|
+
|
48
|
+
begin
|
49
|
+
#Add a role
|
50
|
+
result = api_instance.add_role(gem_gem_repository_href, nested_role)
|
51
|
+
p result
|
52
|
+
rescue PulpGemClient::ApiError => e
|
53
|
+
puts "Exception when calling RepositoriesGemApi->add_role: #{e}"
|
54
|
+
end
|
55
|
+
```
|
56
|
+
|
57
|
+
### Parameters
|
58
|
+
|
59
|
+
|
60
|
+
Name | Type | Description | Notes
|
61
|
+
------------- | ------------- | ------------- | -------------
|
62
|
+
**gem_gem_repository_href** | **String**| |
|
63
|
+
**nested_role** | [**NestedRole**](NestedRole.md)| |
|
64
|
+
|
65
|
+
### Return type
|
66
|
+
|
67
|
+
[**NestedRoleResponse**](NestedRoleResponse.md)
|
68
|
+
|
69
|
+
### Authorization
|
70
|
+
|
71
|
+
[basicAuth](../README.md#basicAuth)
|
72
|
+
|
73
|
+
### HTTP request headers
|
74
|
+
|
75
|
+
- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
|
76
|
+
- **Accept**: application/json
|
77
|
+
|
78
|
+
|
18
79
|
## create
|
19
80
|
|
20
81
|
> GemGemRepositoryResponse create(gem_gem_repository)
|
@@ -148,13 +209,18 @@ opts = {
|
|
148
209
|
name: 'name_example', # String | Filter results where name matches value
|
149
210
|
name__contains: 'name__contains_example', # String | Filter results where name contains value
|
150
211
|
name__icontains: 'name__icontains_example', # String | Filter results where name contains value
|
212
|
+
name__iexact: 'name__iexact_example', # String | Filter results where name matches value
|
151
213
|
name__in: ['name__in_example'], # Array<String> | Filter results where name is in a comma-separated list of values
|
214
|
+
name__iregex: 'name__iregex_example', # String | Filter results where name matches regex value
|
215
|
+
name__istartswith: 'name__istartswith_example', # String | Filter results where name starts with value
|
216
|
+
name__regex: 'name__regex_example', # String | Filter results where name matches regex value
|
152
217
|
name__startswith: 'name__startswith_example', # String | Filter results where name starts with value
|
153
218
|
offset: 56, # Integer | The initial index from which to return the results.
|
154
219
|
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
220
|
pulp_href__in: ['pulp_href__in_example'], # Array<String> | Multiple values may be separated by commas.
|
156
221
|
pulp_id__in: ['pulp_id__in_example'], # Array<String> | Multiple values may be separated by commas.
|
157
222
|
pulp_label_select: 'pulp_label_select_example', # String | Filter labels by search string
|
223
|
+
q: 'q_example', # String |
|
158
224
|
remote: 'remote_example', # String | Foreign Key referenced by HREF
|
159
225
|
retain_repo_versions: 56, # Integer | Filter results where retain_repo_versions matches value
|
160
226
|
retain_repo_versions__gt: 56, # Integer | Filter results where retain_repo_versions is greater than value
|
@@ -188,13 +254,18 @@ Name | Type | Description | Notes
|
|
188
254
|
**name** | **String**| Filter results where name matches value | [optional]
|
189
255
|
**name__contains** | **String**| Filter results where name contains value | [optional]
|
190
256
|
**name__icontains** | **String**| Filter results where name contains value | [optional]
|
257
|
+
**name__iexact** | **String**| Filter results where name matches value | [optional]
|
191
258
|
**name__in** | [**Array<String>**](String.md)| Filter results where name is in a comma-separated list of values | [optional]
|
259
|
+
**name__iregex** | **String**| Filter results where name matches regex value | [optional]
|
260
|
+
**name__istartswith** | **String**| Filter results where name starts with value | [optional]
|
261
|
+
**name__regex** | **String**| Filter results where name matches regex value | [optional]
|
192
262
|
**name__startswith** | **String**| Filter results where name starts with value | [optional]
|
193
263
|
**offset** | **Integer**| The initial index from which to return the results. | [optional]
|
194
264
|
**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
265
|
**pulp_href__in** | [**Array<String>**](String.md)| Multiple values may be separated by commas. | [optional]
|
196
266
|
**pulp_id__in** | [**Array<String>**](String.md)| Multiple values may be separated by commas. | [optional]
|
197
267
|
**pulp_label_select** | **String**| Filter labels by search string | [optional]
|
268
|
+
**q** | **String**| | [optional]
|
198
269
|
**remote** | [**String**](.md)| Foreign Key referenced by HREF | [optional]
|
199
270
|
**retain_repo_versions** | **Integer**| Filter results where retain_repo_versions matches value | [optional]
|
200
271
|
**retain_repo_versions__gt** | **Integer**| Filter results where retain_repo_versions is greater than value | [optional]
|
@@ -222,6 +293,65 @@ Name | Type | Description | Notes
|
|
222
293
|
- **Accept**: application/json
|
223
294
|
|
224
295
|
|
296
|
+
## list_roles
|
297
|
+
|
298
|
+
> ObjectRolesResponse list_roles(gem_gem_repository_href, opts)
|
299
|
+
|
300
|
+
List roles
|
301
|
+
|
302
|
+
List roles assigned to this object.
|
303
|
+
|
304
|
+
### Example
|
305
|
+
|
306
|
+
```ruby
|
307
|
+
# load the gem
|
308
|
+
require 'pulp_gem_client'
|
309
|
+
# setup authorization
|
310
|
+
PulpGemClient.configure do |config|
|
311
|
+
# Configure HTTP basic authorization: basicAuth
|
312
|
+
config.username = 'YOUR USERNAME'
|
313
|
+
config.password = 'YOUR PASSWORD'
|
314
|
+
end
|
315
|
+
|
316
|
+
api_instance = PulpGemClient::RepositoriesGemApi.new
|
317
|
+
gem_gem_repository_href = 'gem_gem_repository_href_example' # String |
|
318
|
+
opts = {
|
319
|
+
fields: ['fields_example'], # Array<String> | A list of fields to include in the response.
|
320
|
+
exclude_fields: ['exclude_fields_example'] # Array<String> | A list of fields to exclude from the response.
|
321
|
+
}
|
322
|
+
|
323
|
+
begin
|
324
|
+
#List roles
|
325
|
+
result = api_instance.list_roles(gem_gem_repository_href, opts)
|
326
|
+
p result
|
327
|
+
rescue PulpGemClient::ApiError => e
|
328
|
+
puts "Exception when calling RepositoriesGemApi->list_roles: #{e}"
|
329
|
+
end
|
330
|
+
```
|
331
|
+
|
332
|
+
### Parameters
|
333
|
+
|
334
|
+
|
335
|
+
Name | Type | Description | Notes
|
336
|
+
------------- | ------------- | ------------- | -------------
|
337
|
+
**gem_gem_repository_href** | **String**| |
|
338
|
+
**fields** | [**Array<String>**](String.md)| A list of fields to include in the response. | [optional]
|
339
|
+
**exclude_fields** | [**Array<String>**](String.md)| A list of fields to exclude from the response. | [optional]
|
340
|
+
|
341
|
+
### Return type
|
342
|
+
|
343
|
+
[**ObjectRolesResponse**](ObjectRolesResponse.md)
|
344
|
+
|
345
|
+
### Authorization
|
346
|
+
|
347
|
+
[basicAuth](../README.md#basicAuth)
|
348
|
+
|
349
|
+
### HTTP request headers
|
350
|
+
|
351
|
+
- **Content-Type**: Not defined
|
352
|
+
- **Accept**: application/json
|
353
|
+
|
354
|
+
|
225
355
|
## modify
|
226
356
|
|
227
357
|
> AsyncOperationResponse modify(gem_gem_repository_href, repository_add_remove_content)
|
@@ -277,6 +407,65 @@ Name | Type | Description | Notes
|
|
277
407
|
- **Accept**: application/json
|
278
408
|
|
279
409
|
|
410
|
+
## my_permissions
|
411
|
+
|
412
|
+
> MyPermissionsResponse my_permissions(gem_gem_repository_href, opts)
|
413
|
+
|
414
|
+
List user permissions
|
415
|
+
|
416
|
+
List permissions available to the current user on this object.
|
417
|
+
|
418
|
+
### Example
|
419
|
+
|
420
|
+
```ruby
|
421
|
+
# load the gem
|
422
|
+
require 'pulp_gem_client'
|
423
|
+
# setup authorization
|
424
|
+
PulpGemClient.configure do |config|
|
425
|
+
# Configure HTTP basic authorization: basicAuth
|
426
|
+
config.username = 'YOUR USERNAME'
|
427
|
+
config.password = 'YOUR PASSWORD'
|
428
|
+
end
|
429
|
+
|
430
|
+
api_instance = PulpGemClient::RepositoriesGemApi.new
|
431
|
+
gem_gem_repository_href = 'gem_gem_repository_href_example' # String |
|
432
|
+
opts = {
|
433
|
+
fields: ['fields_example'], # Array<String> | A list of fields to include in the response.
|
434
|
+
exclude_fields: ['exclude_fields_example'] # Array<String> | A list of fields to exclude from the response.
|
435
|
+
}
|
436
|
+
|
437
|
+
begin
|
438
|
+
#List user permissions
|
439
|
+
result = api_instance.my_permissions(gem_gem_repository_href, opts)
|
440
|
+
p result
|
441
|
+
rescue PulpGemClient::ApiError => e
|
442
|
+
puts "Exception when calling RepositoriesGemApi->my_permissions: #{e}"
|
443
|
+
end
|
444
|
+
```
|
445
|
+
|
446
|
+
### Parameters
|
447
|
+
|
448
|
+
|
449
|
+
Name | Type | Description | Notes
|
450
|
+
------------- | ------------- | ------------- | -------------
|
451
|
+
**gem_gem_repository_href** | **String**| |
|
452
|
+
**fields** | [**Array<String>**](String.md)| A list of fields to include in the response. | [optional]
|
453
|
+
**exclude_fields** | [**Array<String>**](String.md)| A list of fields to exclude from the response. | [optional]
|
454
|
+
|
455
|
+
### Return type
|
456
|
+
|
457
|
+
[**MyPermissionsResponse**](MyPermissionsResponse.md)
|
458
|
+
|
459
|
+
### Authorization
|
460
|
+
|
461
|
+
[basicAuth](../README.md#basicAuth)
|
462
|
+
|
463
|
+
### HTTP request headers
|
464
|
+
|
465
|
+
- **Content-Type**: Not defined
|
466
|
+
- **Accept**: application/json
|
467
|
+
|
468
|
+
|
280
469
|
## partial_update
|
281
470
|
|
282
471
|
> AsyncOperationResponse partial_update(gem_gem_repository_href, patchedgem_gem_repository)
|
@@ -391,6 +580,116 @@ Name | Type | Description | Notes
|
|
391
580
|
- **Accept**: application/json
|
392
581
|
|
393
582
|
|
583
|
+
## remove_role
|
584
|
+
|
585
|
+
> NestedRoleResponse remove_role(gem_gem_repository_href, nested_role)
|
586
|
+
|
587
|
+
Remove a role
|
588
|
+
|
589
|
+
Remove a role for this object from users/groups.
|
590
|
+
|
591
|
+
### Example
|
592
|
+
|
593
|
+
```ruby
|
594
|
+
# load the gem
|
595
|
+
require 'pulp_gem_client'
|
596
|
+
# setup authorization
|
597
|
+
PulpGemClient.configure do |config|
|
598
|
+
# Configure HTTP basic authorization: basicAuth
|
599
|
+
config.username = 'YOUR USERNAME'
|
600
|
+
config.password = 'YOUR PASSWORD'
|
601
|
+
end
|
602
|
+
|
603
|
+
api_instance = PulpGemClient::RepositoriesGemApi.new
|
604
|
+
gem_gem_repository_href = 'gem_gem_repository_href_example' # String |
|
605
|
+
nested_role = PulpGemClient::NestedRole.new # NestedRole |
|
606
|
+
|
607
|
+
begin
|
608
|
+
#Remove a role
|
609
|
+
result = api_instance.remove_role(gem_gem_repository_href, nested_role)
|
610
|
+
p result
|
611
|
+
rescue PulpGemClient::ApiError => e
|
612
|
+
puts "Exception when calling RepositoriesGemApi->remove_role: #{e}"
|
613
|
+
end
|
614
|
+
```
|
615
|
+
|
616
|
+
### Parameters
|
617
|
+
|
618
|
+
|
619
|
+
Name | Type | Description | Notes
|
620
|
+
------------- | ------------- | ------------- | -------------
|
621
|
+
**gem_gem_repository_href** | **String**| |
|
622
|
+
**nested_role** | [**NestedRole**](NestedRole.md)| |
|
623
|
+
|
624
|
+
### Return type
|
625
|
+
|
626
|
+
[**NestedRoleResponse**](NestedRoleResponse.md)
|
627
|
+
|
628
|
+
### Authorization
|
629
|
+
|
630
|
+
[basicAuth](../README.md#basicAuth)
|
631
|
+
|
632
|
+
### HTTP request headers
|
633
|
+
|
634
|
+
- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
|
635
|
+
- **Accept**: application/json
|
636
|
+
|
637
|
+
|
638
|
+
## set_label
|
639
|
+
|
640
|
+
> SetLabelResponse set_label(gem_gem_repository_href, set_label)
|
641
|
+
|
642
|
+
Set a label
|
643
|
+
|
644
|
+
Set a single pulp_label on the object to a specific value or null.
|
645
|
+
|
646
|
+
### Example
|
647
|
+
|
648
|
+
```ruby
|
649
|
+
# load the gem
|
650
|
+
require 'pulp_gem_client'
|
651
|
+
# setup authorization
|
652
|
+
PulpGemClient.configure do |config|
|
653
|
+
# Configure HTTP basic authorization: basicAuth
|
654
|
+
config.username = 'YOUR USERNAME'
|
655
|
+
config.password = 'YOUR PASSWORD'
|
656
|
+
end
|
657
|
+
|
658
|
+
api_instance = PulpGemClient::RepositoriesGemApi.new
|
659
|
+
gem_gem_repository_href = 'gem_gem_repository_href_example' # String |
|
660
|
+
set_label = PulpGemClient::SetLabel.new # SetLabel |
|
661
|
+
|
662
|
+
begin
|
663
|
+
#Set a label
|
664
|
+
result = api_instance.set_label(gem_gem_repository_href, set_label)
|
665
|
+
p result
|
666
|
+
rescue PulpGemClient::ApiError => e
|
667
|
+
puts "Exception when calling RepositoriesGemApi->set_label: #{e}"
|
668
|
+
end
|
669
|
+
```
|
670
|
+
|
671
|
+
### Parameters
|
672
|
+
|
673
|
+
|
674
|
+
Name | Type | Description | Notes
|
675
|
+
------------- | ------------- | ------------- | -------------
|
676
|
+
**gem_gem_repository_href** | **String**| |
|
677
|
+
**set_label** | [**SetLabel**](SetLabel.md)| |
|
678
|
+
|
679
|
+
### Return type
|
680
|
+
|
681
|
+
[**SetLabelResponse**](SetLabelResponse.md)
|
682
|
+
|
683
|
+
### Authorization
|
684
|
+
|
685
|
+
[basicAuth](../README.md#basicAuth)
|
686
|
+
|
687
|
+
### HTTP request headers
|
688
|
+
|
689
|
+
- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
|
690
|
+
- **Accept**: application/json
|
691
|
+
|
692
|
+
|
394
693
|
## sync
|
395
694
|
|
396
695
|
> AsyncOperationResponse sync(gem_gem_repository_href, repository_sync_url)
|
@@ -446,6 +745,61 @@ Name | Type | Description | Notes
|
|
446
745
|
- **Accept**: application/json
|
447
746
|
|
448
747
|
|
748
|
+
## unset_label
|
749
|
+
|
750
|
+
> UnsetLabelResponse unset_label(gem_gem_repository_href, unset_label)
|
751
|
+
|
752
|
+
Unset a label
|
753
|
+
|
754
|
+
Unset a single pulp_label on the object.
|
755
|
+
|
756
|
+
### Example
|
757
|
+
|
758
|
+
```ruby
|
759
|
+
# load the gem
|
760
|
+
require 'pulp_gem_client'
|
761
|
+
# setup authorization
|
762
|
+
PulpGemClient.configure do |config|
|
763
|
+
# Configure HTTP basic authorization: basicAuth
|
764
|
+
config.username = 'YOUR USERNAME'
|
765
|
+
config.password = 'YOUR PASSWORD'
|
766
|
+
end
|
767
|
+
|
768
|
+
api_instance = PulpGemClient::RepositoriesGemApi.new
|
769
|
+
gem_gem_repository_href = 'gem_gem_repository_href_example' # String |
|
770
|
+
unset_label = PulpGemClient::UnsetLabel.new # UnsetLabel |
|
771
|
+
|
772
|
+
begin
|
773
|
+
#Unset a label
|
774
|
+
result = api_instance.unset_label(gem_gem_repository_href, unset_label)
|
775
|
+
p result
|
776
|
+
rescue PulpGemClient::ApiError => e
|
777
|
+
puts "Exception when calling RepositoriesGemApi->unset_label: #{e}"
|
778
|
+
end
|
779
|
+
```
|
780
|
+
|
781
|
+
### Parameters
|
782
|
+
|
783
|
+
|
784
|
+
Name | Type | Description | Notes
|
785
|
+
------------- | ------------- | ------------- | -------------
|
786
|
+
**gem_gem_repository_href** | **String**| |
|
787
|
+
**unset_label** | [**UnsetLabel**](UnsetLabel.md)| |
|
788
|
+
|
789
|
+
### Return type
|
790
|
+
|
791
|
+
[**UnsetLabelResponse**](UnsetLabelResponse.md)
|
792
|
+
|
793
|
+
### Authorization
|
794
|
+
|
795
|
+
[basicAuth](../README.md#basicAuth)
|
796
|
+
|
797
|
+
### HTTP request headers
|
798
|
+
|
799
|
+
- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
|
800
|
+
- **Accept**: application/json
|
801
|
+
|
802
|
+
|
449
803
|
## update
|
450
804
|
|
451
805
|
> 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
|
+
|
@@ -97,6 +97,7 @@ module PulpGemClient
|
|
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
|
@@ -120,6 +121,7 @@ module PulpGemClient
|
|
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
|
@@ -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?
|