pulp_rpm_client 3.22.3 → 3.22.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +42 -29
- data/docs/AcsRpmApi.md +19 -9
- data/docs/ContentAdvisoriesApi.md +3 -1
- data/docs/ContentDistributionTreesApi.md +3 -1
- data/docs/ContentModulemdDefaultsApi.md +3 -1
- data/docs/ContentModulemdObsoletesApi.md +3 -1
- data/docs/ContentModulemdsApi.md +3 -1
- data/docs/ContentPackagecategoriesApi.md +3 -1
- data/docs/ContentPackageenvironmentsApi.md +3 -1
- data/docs/ContentPackagegroupsApi.md +3 -1
- data/docs/ContentPackagelangpacksApi.md +3 -1
- data/docs/ContentPackagesApi.md +3 -1
- data/docs/ContentRepoMetadataFilesApi.md +3 -1
- data/docs/DistributionsRpmApi.md +132 -10
- data/docs/PublicationsRpmApi.md +15 -9
- data/docs/RemotesRpmApi.md +131 -9
- data/docs/RemotesUlnApi.md +131 -9
- data/docs/RepositoriesRpmApi.md +132 -10
- data/docs/RepositoriesRpmVersionsApi.md +3 -1
- data/docs/RpmCompsApi.md +1 -1
- data/docs/RpmCopyApi.md +1 -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_rpm_client/api/acs_rpm_api.rb +17 -0
- data/lib/pulp_rpm_client/api/content_advisories_api.rb +3 -0
- data/lib/pulp_rpm_client/api/content_distribution_trees_api.rb +3 -0
- data/lib/pulp_rpm_client/api/content_modulemd_defaults_api.rb +3 -0
- data/lib/pulp_rpm_client/api/content_modulemd_obsoletes_api.rb +3 -0
- data/lib/pulp_rpm_client/api/content_modulemds_api.rb +3 -0
- data/lib/pulp_rpm_client/api/content_packagecategories_api.rb +3 -0
- data/lib/pulp_rpm_client/api/content_packageenvironments_api.rb +3 -0
- data/lib/pulp_rpm_client/api/content_packagegroups_api.rb +3 -0
- data/lib/pulp_rpm_client/api/content_packagelangpacks_api.rb +3 -0
- data/lib/pulp_rpm_client/api/content_packages_api.rb +3 -0
- data/lib/pulp_rpm_client/api/content_repo_metadata_files_api.rb +3 -0
- data/lib/pulp_rpm_client/api/distributions_rpm_api.rb +157 -0
- data/lib/pulp_rpm_client/api/publications_rpm_api.rb +11 -0
- data/lib/pulp_rpm_client/api/remotes_rpm_api.rb +157 -0
- data/lib/pulp_rpm_client/api/remotes_uln_api.rb +157 -0
- data/lib/pulp_rpm_client/api/repositories_rpm_api.rb +157 -0
- data/lib/pulp_rpm_client/api/repositories_rpm_versions_api.rb +3 -0
- data/lib/pulp_rpm_client/configuration.rb +2 -2
- data/lib/pulp_rpm_client/models/set_label.rb +252 -0
- data/lib/pulp_rpm_client/models/set_label_response.rb +243 -0
- data/lib/pulp_rpm_client/models/unset_label.rb +242 -0
- data/lib/pulp_rpm_client/models/unset_label_response.rb +242 -0
- data/lib/pulp_rpm_client/version.rb +1 -1
- data/lib/pulp_rpm_client.rb +4 -0
- data/spec/api/acs_rpm_api_spec.rb +7 -0
- data/spec/api/content_advisories_api_spec.rb +1 -0
- data/spec/api/content_distribution_trees_api_spec.rb +1 -0
- data/spec/api/content_modulemd_defaults_api_spec.rb +1 -0
- data/spec/api/content_modulemd_obsoletes_api_spec.rb +1 -0
- data/spec/api/content_modulemds_api_spec.rb +1 -0
- data/spec/api/content_packagecategories_api_spec.rb +1 -0
- data/spec/api/content_packageenvironments_api_spec.rb +1 -0
- data/spec/api/content_packagegroups_api_spec.rb +1 -0
- data/spec/api/content_packagelangpacks_api_spec.rb +1 -0
- data/spec/api/content_packages_api_spec.rb +1 -0
- data/spec/api/content_repo_metadata_files_api_spec.rb +1 -0
- data/spec/api/distributions_rpm_api_spec.rb +33 -0
- data/spec/api/publications_rpm_api_spec.rb +5 -0
- data/spec/api/remotes_rpm_api_spec.rb +33 -0
- data/spec/api/remotes_uln_api_spec.rb +33 -0
- data/spec/api/repositories_rpm_api_spec.rb +33 -0
- data/spec/api/repositories_rpm_versions_api_spec.rb +1 -0
- data/spec/configuration_spec.rb +3 -3
- data/spec/models/set_label_response_spec.rb +47 -0
- data/spec/models/set_label_spec.rb +47 -0
- data/spec/models/unset_label_response_spec.rb +47 -0
- data/spec/models/unset_label_spec.rb +41 -0
- metadata +97 -81
data/docs/DistributionsRpmApi.md
CHANGED
@@ -1,18 +1,20 @@
|
|
1
1
|
# PulpRpmClient::DistributionsRpmApi
|
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**](DistributionsRpmApi.md#add_role) | **POST** {rpm_rpm_distribution_href}add_role/ |
|
7
|
+
[**add_role**](DistributionsRpmApi.md#add_role) | **POST** {rpm_rpm_distribution_href}add_role/ | Add a role
|
8
8
|
[**create**](DistributionsRpmApi.md#create) | **POST** /pulp/api/v3/distributions/rpm/rpm/ | Create a rpm distribution
|
9
9
|
[**delete**](DistributionsRpmApi.md#delete) | **DELETE** {rpm_rpm_distribution_href} | Delete a rpm distribution
|
10
10
|
[**list**](DistributionsRpmApi.md#list) | **GET** /pulp/api/v3/distributions/rpm/rpm/ | List rpm distributions
|
11
|
-
[**list_roles**](DistributionsRpmApi.md#list_roles) | **GET** {rpm_rpm_distribution_href}list_roles/ |
|
12
|
-
[**my_permissions**](DistributionsRpmApi.md#my_permissions) | **GET** {rpm_rpm_distribution_href}my_permissions/ |
|
11
|
+
[**list_roles**](DistributionsRpmApi.md#list_roles) | **GET** {rpm_rpm_distribution_href}list_roles/ | List roles
|
12
|
+
[**my_permissions**](DistributionsRpmApi.md#my_permissions) | **GET** {rpm_rpm_distribution_href}my_permissions/ | List user permissions
|
13
13
|
[**partial_update**](DistributionsRpmApi.md#partial_update) | **PATCH** {rpm_rpm_distribution_href} | Update a rpm distribution
|
14
14
|
[**read**](DistributionsRpmApi.md#read) | **GET** {rpm_rpm_distribution_href} | Inspect a rpm distribution
|
15
|
-
[**remove_role**](DistributionsRpmApi.md#remove_role) | **POST** {rpm_rpm_distribution_href}remove_role/ |
|
15
|
+
[**remove_role**](DistributionsRpmApi.md#remove_role) | **POST** {rpm_rpm_distribution_href}remove_role/ | Remove a role
|
16
|
+
[**set_label**](DistributionsRpmApi.md#set_label) | **POST** {rpm_rpm_distribution_href}set_label/ | Set a label
|
17
|
+
[**unset_label**](DistributionsRpmApi.md#unset_label) | **POST** {rpm_rpm_distribution_href}unset_label/ | Unset a label
|
16
18
|
[**update**](DistributionsRpmApi.md#update) | **PUT** {rpm_rpm_distribution_href} | Update a rpm distribution
|
17
19
|
|
18
20
|
|
@@ -21,7 +23,7 @@ Method | HTTP request | Description
|
|
21
23
|
|
22
24
|
> NestedRoleResponse add_role(rpm_rpm_distribution_href, nested_role)
|
23
25
|
|
24
|
-
|
26
|
+
Add a role
|
25
27
|
|
26
28
|
Add a role for this object to users/groups.
|
27
29
|
|
@@ -42,6 +44,7 @@ rpm_rpm_distribution_href = 'rpm_rpm_distribution_href_example' # String |
|
|
42
44
|
nested_role = PulpRpmClient::NestedRole.new # NestedRole |
|
43
45
|
|
44
46
|
begin
|
47
|
+
#Add a role
|
45
48
|
result = api_instance.add_role(rpm_rpm_distribution_href, nested_role)
|
46
49
|
p result
|
47
50
|
rescue PulpRpmClient::ApiError => e
|
@@ -207,13 +210,16 @@ opts = {
|
|
207
210
|
name: 'name_example', # String | Filter results where name matches value
|
208
211
|
name__contains: 'name__contains_example', # String | Filter results where name contains value
|
209
212
|
name__icontains: 'name__icontains_example', # String | Filter results where name contains value
|
213
|
+
name__iexact: 'name__iexact_example', # String | Filter results where name matches value
|
210
214
|
name__in: ['name__in_example'], # Array<String> | Filter results where name is in a comma-separated list of values
|
215
|
+
name__istartswith: 'name__istartswith_example', # String | Filter results where name starts with value
|
211
216
|
name__startswith: 'name__startswith_example', # String | Filter results where name starts with value
|
212
217
|
offset: 56, # Integer | The initial index from which to return the results.
|
213
218
|
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) * `base_path` - Base path * `-base_path` - Base path (descending) * `hidden` - Hidden * `-hidden` - Hidden (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
214
219
|
pulp_href__in: ['pulp_href__in_example'], # Array<String> | Multiple values may be separated by commas.
|
215
220
|
pulp_id__in: ['pulp_id__in_example'], # Array<String> | Multiple values may be separated by commas.
|
216
221
|
pulp_label_select: 'pulp_label_select_example', # String | Filter labels by search string
|
222
|
+
q: 'q_example', # String |
|
217
223
|
repository: 'repository_example', # String | Filter results where repository matches value
|
218
224
|
repository__in: ['repository__in_example'], # Array<String> | Filter results where repository is in a comma-separated list of values
|
219
225
|
with_content: 'with_content_example', # String | Filter distributions based on the content served by them
|
@@ -243,14 +249,17 @@ Name | Type | Description | Notes
|
|
243
249
|
**name** | **String**| Filter results where name matches value | [optional]
|
244
250
|
**name__contains** | **String**| Filter results where name contains value | [optional]
|
245
251
|
**name__icontains** | **String**| Filter results where name contains value | [optional]
|
252
|
+
**name__iexact** | **String**| Filter results where name matches value | [optional]
|
246
253
|
**name__in** | [**Array<String>**](String.md)| Filter results where name is in a comma-separated list of values | [optional]
|
254
|
+
**name__istartswith** | **String**| Filter results where name starts with value | [optional]
|
247
255
|
**name__startswith** | **String**| Filter results where name starts with value | [optional]
|
248
256
|
**offset** | **Integer**| The initial index from which to return the results. | [optional]
|
249
257
|
**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) * `base_path` - Base path * `-base_path` - Base path (descending) * `hidden` - Hidden * `-hidden` - Hidden (descending) * `pk` - Pk * `-pk` - Pk (descending) | [optional]
|
250
258
|
**pulp_href__in** | [**Array<String>**](String.md)| Multiple values may be separated by commas. | [optional]
|
251
259
|
**pulp_id__in** | [**Array<String>**](String.md)| Multiple values may be separated by commas. | [optional]
|
252
260
|
**pulp_label_select** | **String**| Filter labels by search string | [optional]
|
253
|
-
**
|
261
|
+
**q** | **String**| | [optional]
|
262
|
+
**repository** | [**String**](.md)| Filter results where repository matches value | [optional]
|
254
263
|
**repository__in** | [**Array<String>**](String.md)| Filter results where repository is in a comma-separated list of values | [optional]
|
255
264
|
**with_content** | **String**| Filter distributions based on the content served by them | [optional]
|
256
265
|
**fields** | [**Array<String>**](String.md)| A list of fields to include in the response. | [optional]
|
@@ -274,7 +283,7 @@ Name | Type | Description | Notes
|
|
274
283
|
|
275
284
|
> ObjectRolesResponse list_roles(rpm_rpm_distribution_href, opts)
|
276
285
|
|
277
|
-
|
286
|
+
List roles
|
278
287
|
|
279
288
|
List roles assigned to this object.
|
280
289
|
|
@@ -298,6 +307,7 @@ opts = {
|
|
298
307
|
}
|
299
308
|
|
300
309
|
begin
|
310
|
+
#List roles
|
301
311
|
result = api_instance.list_roles(rpm_rpm_distribution_href, opts)
|
302
312
|
p result
|
303
313
|
rescue PulpRpmClient::ApiError => e
|
@@ -332,7 +342,7 @@ Name | Type | Description | Notes
|
|
332
342
|
|
333
343
|
> MyPermissionsResponse my_permissions(rpm_rpm_distribution_href, opts)
|
334
344
|
|
335
|
-
|
345
|
+
List user permissions
|
336
346
|
|
337
347
|
List permissions available to the current user on this object.
|
338
348
|
|
@@ -356,6 +366,7 @@ opts = {
|
|
356
366
|
}
|
357
367
|
|
358
368
|
begin
|
369
|
+
#List user permissions
|
359
370
|
result = api_instance.my_permissions(rpm_rpm_distribution_href, opts)
|
360
371
|
p result
|
361
372
|
rescue PulpRpmClient::ApiError => e
|
@@ -504,7 +515,7 @@ Name | Type | Description | Notes
|
|
504
515
|
|
505
516
|
> NestedRoleResponse remove_role(rpm_rpm_distribution_href, nested_role)
|
506
517
|
|
507
|
-
|
518
|
+
Remove a role
|
508
519
|
|
509
520
|
Remove a role for this object from users/groups.
|
510
521
|
|
@@ -525,6 +536,7 @@ rpm_rpm_distribution_href = 'rpm_rpm_distribution_href_example' # String |
|
|
525
536
|
nested_role = PulpRpmClient::NestedRole.new # NestedRole |
|
526
537
|
|
527
538
|
begin
|
539
|
+
#Remove a role
|
528
540
|
result = api_instance.remove_role(rpm_rpm_distribution_href, nested_role)
|
529
541
|
p result
|
530
542
|
rescue PulpRpmClient::ApiError => e
|
@@ -554,6 +566,116 @@ Name | Type | Description | Notes
|
|
554
566
|
- **Accept**: application/json
|
555
567
|
|
556
568
|
|
569
|
+
## set_label
|
570
|
+
|
571
|
+
> SetLabelResponse set_label(rpm_rpm_distribution_href, set_label)
|
572
|
+
|
573
|
+
Set a label
|
574
|
+
|
575
|
+
Set a single pulp_label on the object to a specific value or null.
|
576
|
+
|
577
|
+
### Example
|
578
|
+
|
579
|
+
```ruby
|
580
|
+
# load the gem
|
581
|
+
require 'pulp_rpm_client'
|
582
|
+
# setup authorization
|
583
|
+
PulpRpmClient.configure do |config|
|
584
|
+
# Configure HTTP basic authorization: basicAuth
|
585
|
+
config.username = 'YOUR USERNAME'
|
586
|
+
config.password = 'YOUR PASSWORD'
|
587
|
+
end
|
588
|
+
|
589
|
+
api_instance = PulpRpmClient::DistributionsRpmApi.new
|
590
|
+
rpm_rpm_distribution_href = 'rpm_rpm_distribution_href_example' # String |
|
591
|
+
set_label = PulpRpmClient::SetLabel.new # SetLabel |
|
592
|
+
|
593
|
+
begin
|
594
|
+
#Set a label
|
595
|
+
result = api_instance.set_label(rpm_rpm_distribution_href, set_label)
|
596
|
+
p result
|
597
|
+
rescue PulpRpmClient::ApiError => e
|
598
|
+
puts "Exception when calling DistributionsRpmApi->set_label: #{e}"
|
599
|
+
end
|
600
|
+
```
|
601
|
+
|
602
|
+
### Parameters
|
603
|
+
|
604
|
+
|
605
|
+
Name | Type | Description | Notes
|
606
|
+
------------- | ------------- | ------------- | -------------
|
607
|
+
**rpm_rpm_distribution_href** | **String**| |
|
608
|
+
**set_label** | [**SetLabel**](SetLabel.md)| |
|
609
|
+
|
610
|
+
### Return type
|
611
|
+
|
612
|
+
[**SetLabelResponse**](SetLabelResponse.md)
|
613
|
+
|
614
|
+
### Authorization
|
615
|
+
|
616
|
+
[basicAuth](../README.md#basicAuth)
|
617
|
+
|
618
|
+
### HTTP request headers
|
619
|
+
|
620
|
+
- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
|
621
|
+
- **Accept**: application/json
|
622
|
+
|
623
|
+
|
624
|
+
## unset_label
|
625
|
+
|
626
|
+
> UnsetLabelResponse unset_label(rpm_rpm_distribution_href, unset_label)
|
627
|
+
|
628
|
+
Unset a label
|
629
|
+
|
630
|
+
Unset a single pulp_label on the object.
|
631
|
+
|
632
|
+
### Example
|
633
|
+
|
634
|
+
```ruby
|
635
|
+
# load the gem
|
636
|
+
require 'pulp_rpm_client'
|
637
|
+
# setup authorization
|
638
|
+
PulpRpmClient.configure do |config|
|
639
|
+
# Configure HTTP basic authorization: basicAuth
|
640
|
+
config.username = 'YOUR USERNAME'
|
641
|
+
config.password = 'YOUR PASSWORD'
|
642
|
+
end
|
643
|
+
|
644
|
+
api_instance = PulpRpmClient::DistributionsRpmApi.new
|
645
|
+
rpm_rpm_distribution_href = 'rpm_rpm_distribution_href_example' # String |
|
646
|
+
unset_label = PulpRpmClient::UnsetLabel.new # UnsetLabel |
|
647
|
+
|
648
|
+
begin
|
649
|
+
#Unset a label
|
650
|
+
result = api_instance.unset_label(rpm_rpm_distribution_href, unset_label)
|
651
|
+
p result
|
652
|
+
rescue PulpRpmClient::ApiError => e
|
653
|
+
puts "Exception when calling DistributionsRpmApi->unset_label: #{e}"
|
654
|
+
end
|
655
|
+
```
|
656
|
+
|
657
|
+
### Parameters
|
658
|
+
|
659
|
+
|
660
|
+
Name | Type | Description | Notes
|
661
|
+
------------- | ------------- | ------------- | -------------
|
662
|
+
**rpm_rpm_distribution_href** | **String**| |
|
663
|
+
**unset_label** | [**UnsetLabel**](UnsetLabel.md)| |
|
664
|
+
|
665
|
+
### Return type
|
666
|
+
|
667
|
+
[**UnsetLabelResponse**](UnsetLabelResponse.md)
|
668
|
+
|
669
|
+
### Authorization
|
670
|
+
|
671
|
+
[basicAuth](../README.md#basicAuth)
|
672
|
+
|
673
|
+
### HTTP request headers
|
674
|
+
|
675
|
+
- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
|
676
|
+
- **Accept**: application/json
|
677
|
+
|
678
|
+
|
557
679
|
## update
|
558
680
|
|
559
681
|
> AsyncOperationResponse update(rpm_rpm_distribution_href, rpm_rpm_distribution)
|
data/docs/PublicationsRpmApi.md
CHANGED
@@ -1,17 +1,17 @@
|
|
1
1
|
# PulpRpmClient::PublicationsRpmApi
|
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**](PublicationsRpmApi.md#add_role) | **POST** {rpm_rpm_publication_href}add_role/ |
|
7
|
+
[**add_role**](PublicationsRpmApi.md#add_role) | **POST** {rpm_rpm_publication_href}add_role/ | Add a role
|
8
8
|
[**create**](PublicationsRpmApi.md#create) | **POST** /pulp/api/v3/publications/rpm/rpm/ | Create a rpm publication
|
9
9
|
[**delete**](PublicationsRpmApi.md#delete) | **DELETE** {rpm_rpm_publication_href} | Delete a rpm publication
|
10
10
|
[**list**](PublicationsRpmApi.md#list) | **GET** /pulp/api/v3/publications/rpm/rpm/ | List rpm publications
|
11
|
-
[**list_roles**](PublicationsRpmApi.md#list_roles) | **GET** {rpm_rpm_publication_href}list_roles/ |
|
12
|
-
[**my_permissions**](PublicationsRpmApi.md#my_permissions) | **GET** {rpm_rpm_publication_href}my_permissions/ |
|
11
|
+
[**list_roles**](PublicationsRpmApi.md#list_roles) | **GET** {rpm_rpm_publication_href}list_roles/ | List roles
|
12
|
+
[**my_permissions**](PublicationsRpmApi.md#my_permissions) | **GET** {rpm_rpm_publication_href}my_permissions/ | List user permissions
|
13
13
|
[**read**](PublicationsRpmApi.md#read) | **GET** {rpm_rpm_publication_href} | Inspect a rpm publication
|
14
|
-
[**remove_role**](PublicationsRpmApi.md#remove_role) | **POST** {rpm_rpm_publication_href}remove_role/ |
|
14
|
+
[**remove_role**](PublicationsRpmApi.md#remove_role) | **POST** {rpm_rpm_publication_href}remove_role/ | Remove a role
|
15
15
|
|
16
16
|
|
17
17
|
|
@@ -19,7 +19,7 @@ Method | HTTP request | Description
|
|
19
19
|
|
20
20
|
> NestedRoleResponse add_role(rpm_rpm_publication_href, nested_role)
|
21
21
|
|
22
|
-
|
22
|
+
Add a role
|
23
23
|
|
24
24
|
Add a role for this object to users/groups.
|
25
25
|
|
@@ -40,6 +40,7 @@ rpm_rpm_publication_href = 'rpm_rpm_publication_href_example' # String |
|
|
40
40
|
nested_role = PulpRpmClient::NestedRole.new # NestedRole |
|
41
41
|
|
42
42
|
begin
|
43
|
+
#Add a role
|
43
44
|
result = api_instance.add_role(rpm_rpm_publication_href, nested_role)
|
44
45
|
p result
|
45
46
|
rescue PulpRpmClient::ApiError => e
|
@@ -209,6 +210,7 @@ opts = {
|
|
209
210
|
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
|
210
211
|
pulp_href__in: ['pulp_href__in_example'], # Array<String> | Multiple values may be separated by commas.
|
211
212
|
pulp_id__in: ['pulp_id__in_example'], # Array<String> | Multiple values may be separated by commas.
|
213
|
+
q: 'q_example', # String |
|
212
214
|
repository: 'repository_example', # String | Repository referenced by HREF
|
213
215
|
repository_version: 'repository_version_example', # String | Repository Version referenced by HREF
|
214
216
|
fields: ['fields_example'], # Array<String> | A list of fields to include in the response.
|
@@ -242,6 +244,7 @@ Name | Type | Description | Notes
|
|
242
244
|
**pulp_created__range** | [**Array<DateTime>**](DateTime.md)| Filter results where pulp_created is between two comma separated values | [optional]
|
243
245
|
**pulp_href__in** | [**Array<String>**](String.md)| Multiple values may be separated by commas. | [optional]
|
244
246
|
**pulp_id__in** | [**Array<String>**](String.md)| Multiple values may be separated by commas. | [optional]
|
247
|
+
**q** | **String**| | [optional]
|
245
248
|
**repository** | **String**| Repository referenced by HREF | [optional]
|
246
249
|
**repository_version** | [**String**](.md)| Repository Version referenced by HREF | [optional]
|
247
250
|
**fields** | [**Array<String>**](String.md)| A list of fields to include in the response. | [optional]
|
@@ -265,7 +268,7 @@ Name | Type | Description | Notes
|
|
265
268
|
|
266
269
|
> ObjectRolesResponse list_roles(rpm_rpm_publication_href, opts)
|
267
270
|
|
268
|
-
|
271
|
+
List roles
|
269
272
|
|
270
273
|
List roles assigned to this object.
|
271
274
|
|
@@ -289,6 +292,7 @@ opts = {
|
|
289
292
|
}
|
290
293
|
|
291
294
|
begin
|
295
|
+
#List roles
|
292
296
|
result = api_instance.list_roles(rpm_rpm_publication_href, opts)
|
293
297
|
p result
|
294
298
|
rescue PulpRpmClient::ApiError => e
|
@@ -323,7 +327,7 @@ Name | Type | Description | Notes
|
|
323
327
|
|
324
328
|
> MyPermissionsResponse my_permissions(rpm_rpm_publication_href, opts)
|
325
329
|
|
326
|
-
|
330
|
+
List user permissions
|
327
331
|
|
328
332
|
List permissions available to the current user on this object.
|
329
333
|
|
@@ -347,6 +351,7 @@ opts = {
|
|
347
351
|
}
|
348
352
|
|
349
353
|
begin
|
354
|
+
#List user permissions
|
350
355
|
result = api_instance.my_permissions(rpm_rpm_publication_href, opts)
|
351
356
|
p result
|
352
357
|
rescue PulpRpmClient::ApiError => e
|
@@ -440,7 +445,7 @@ Name | Type | Description | Notes
|
|
440
445
|
|
441
446
|
> NestedRoleResponse remove_role(rpm_rpm_publication_href, nested_role)
|
442
447
|
|
443
|
-
|
448
|
+
Remove a role
|
444
449
|
|
445
450
|
Remove a role for this object from users/groups.
|
446
451
|
|
@@ -461,6 +466,7 @@ rpm_rpm_publication_href = 'rpm_rpm_publication_href_example' # String |
|
|
461
466
|
nested_role = PulpRpmClient::NestedRole.new # NestedRole |
|
462
467
|
|
463
468
|
begin
|
469
|
+
#Remove a role
|
464
470
|
result = api_instance.remove_role(rpm_rpm_publication_href, nested_role)
|
465
471
|
p result
|
466
472
|
rescue PulpRpmClient::ApiError => e
|
data/docs/RemotesRpmApi.md
CHANGED
@@ -1,18 +1,20 @@
|
|
1
1
|
# PulpRpmClient::RemotesRpmApi
|
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**](RemotesRpmApi.md#add_role) | **POST** {rpm_rpm_remote_href}add_role/ |
|
7
|
+
[**add_role**](RemotesRpmApi.md#add_role) | **POST** {rpm_rpm_remote_href}add_role/ | Add a role
|
8
8
|
[**create**](RemotesRpmApi.md#create) | **POST** /pulp/api/v3/remotes/rpm/rpm/ | Create a rpm remote
|
9
9
|
[**delete**](RemotesRpmApi.md#delete) | **DELETE** {rpm_rpm_remote_href} | Delete a rpm remote
|
10
10
|
[**list**](RemotesRpmApi.md#list) | **GET** /pulp/api/v3/remotes/rpm/rpm/ | List rpm remotes
|
11
|
-
[**list_roles**](RemotesRpmApi.md#list_roles) | **GET** {rpm_rpm_remote_href}list_roles/ |
|
12
|
-
[**my_permissions**](RemotesRpmApi.md#my_permissions) | **GET** {rpm_rpm_remote_href}my_permissions/ |
|
11
|
+
[**list_roles**](RemotesRpmApi.md#list_roles) | **GET** {rpm_rpm_remote_href}list_roles/ | List roles
|
12
|
+
[**my_permissions**](RemotesRpmApi.md#my_permissions) | **GET** {rpm_rpm_remote_href}my_permissions/ | List user permissions
|
13
13
|
[**partial_update**](RemotesRpmApi.md#partial_update) | **PATCH** {rpm_rpm_remote_href} | Update a rpm remote
|
14
14
|
[**read**](RemotesRpmApi.md#read) | **GET** {rpm_rpm_remote_href} | Inspect a rpm remote
|
15
|
-
[**remove_role**](RemotesRpmApi.md#remove_role) | **POST** {rpm_rpm_remote_href}remove_role/ |
|
15
|
+
[**remove_role**](RemotesRpmApi.md#remove_role) | **POST** {rpm_rpm_remote_href}remove_role/ | Remove a role
|
16
|
+
[**set_label**](RemotesRpmApi.md#set_label) | **POST** {rpm_rpm_remote_href}set_label/ | Set a label
|
17
|
+
[**unset_label**](RemotesRpmApi.md#unset_label) | **POST** {rpm_rpm_remote_href}unset_label/ | Unset a label
|
16
18
|
[**update**](RemotesRpmApi.md#update) | **PUT** {rpm_rpm_remote_href} | Update a rpm remote
|
17
19
|
|
18
20
|
|
@@ -21,7 +23,7 @@ Method | HTTP request | Description
|
|
21
23
|
|
22
24
|
> NestedRoleResponse add_role(rpm_rpm_remote_href, nested_role)
|
23
25
|
|
24
|
-
|
26
|
+
Add a role
|
25
27
|
|
26
28
|
Add a role for this object to users/groups.
|
27
29
|
|
@@ -42,6 +44,7 @@ rpm_rpm_remote_href = 'rpm_rpm_remote_href_example' # String |
|
|
42
44
|
nested_role = PulpRpmClient::NestedRole.new # NestedRole |
|
43
45
|
|
44
46
|
begin
|
47
|
+
#Add a role
|
45
48
|
result = api_instance.add_role(rpm_rpm_remote_href, nested_role)
|
46
49
|
p result
|
47
50
|
rescue PulpRpmClient::ApiError => e
|
@@ -203,7 +206,9 @@ opts = {
|
|
203
206
|
name: 'name_example', # String | Filter results where name matches value
|
204
207
|
name__contains: 'name__contains_example', # String | Filter results where name contains value
|
205
208
|
name__icontains: 'name__icontains_example', # String | Filter results where name contains value
|
209
|
+
name__iexact: 'name__iexact_example', # String | Filter results where name matches value
|
206
210
|
name__in: ['name__in_example'], # Array<String> | Filter results where name is in a comma-separated list of values
|
211
|
+
name__istartswith: 'name__istartswith_example', # String | Filter results where name starts with value
|
207
212
|
name__startswith: 'name__startswith_example', # String | Filter results where name starts with value
|
208
213
|
offset: 56, # Integer | The initial index from which to return the results.
|
209
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) * `url` - Url * `-url` - Url (descending) * `ca_cert` - Ca cert * `-ca_cert` - Ca cert (descending) * `client_cert` - Client cert * `-client_cert` - Client cert (descending) * `client_key` - Client key * `-client_key` - Client key (descending) * `tls_validation` - Tls validation * `-tls_validation` - Tls validation (descending) * `username` - Username * `-username` - Username (descending) * `password` - Password * `-password` - Password (descending) * `proxy_url` - Proxy url * `-proxy_url` - Proxy url (descending) * `proxy_username` - Proxy username * `-proxy_username` - Proxy username (descending) * `proxy_password` - Proxy password * `-proxy_password` - Proxy password (descending) * `download_concurrency` - Download concurrency * `-download_concurrency` - Download concurrency (descending) * `max_retries` - Max retries * `-max_retries` - Max retries (descending) * `policy` - Policy * `-policy` - Policy (descending) * `total_timeout` - Total timeout * `-total_timeout` - Total timeout (descending) * `connect_timeout` - Connect timeout * `-connect_timeout` - Connect timeout (descending) * `sock_connect_timeout` - Sock connect timeout * `-sock_connect_timeout` - Sock connect timeout (descending) * `sock_read_timeout` - Sock read timeout * `-sock_read_timeout` - Sock read timeout (descending) * `headers` - Headers * `-headers` - Headers (descending) * `rate_limit` - Rate limit * `-rate_limit` - Rate limit (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
@@ -216,6 +221,7 @@ opts = {
|
|
216
221
|
pulp_last_updated__lt: DateTime.parse('2013-10-20T19:20:30+01:00'), # DateTime | Filter results where pulp_last_updated is less than value
|
217
222
|
pulp_last_updated__lte: DateTime.parse('2013-10-20T19:20:30+01:00'), # DateTime | Filter results where pulp_last_updated is less than or equal to value
|
218
223
|
pulp_last_updated__range: [DateTime.parse('2013-10-20T19:20:30+01:00')], # Array<DateTime> | Filter results where pulp_last_updated is between two comma separated values
|
224
|
+
q: 'q_example', # String |
|
219
225
|
fields: ['fields_example'], # Array<String> | A list of fields to include in the response.
|
220
226
|
exclude_fields: ['exclude_fields_example'] # Array<String> | A list of fields to exclude from the response.
|
221
227
|
}
|
@@ -238,7 +244,9 @@ Name | Type | Description | Notes
|
|
238
244
|
**name** | **String**| Filter results where name matches value | [optional]
|
239
245
|
**name__contains** | **String**| Filter results where name contains value | [optional]
|
240
246
|
**name__icontains** | **String**| Filter results where name contains value | [optional]
|
247
|
+
**name__iexact** | **String**| Filter results where name matches value | [optional]
|
241
248
|
**name__in** | [**Array<String>**](String.md)| Filter results where name is in a comma-separated list of values | [optional]
|
249
|
+
**name__istartswith** | **String**| Filter results where name starts with value | [optional]
|
242
250
|
**name__startswith** | **String**| Filter results where name starts with value | [optional]
|
243
251
|
**offset** | **Integer**| The initial index from which to return the results. | [optional]
|
244
252
|
**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) * `url` - Url * `-url` - Url (descending) * `ca_cert` - Ca cert * `-ca_cert` - Ca cert (descending) * `client_cert` - Client cert * `-client_cert` - Client cert (descending) * `client_key` - Client key * `-client_key` - Client key (descending) * `tls_validation` - Tls validation * `-tls_validation` - Tls validation (descending) * `username` - Username * `-username` - Username (descending) * `password` - Password * `-password` - Password (descending) * `proxy_url` - Proxy url * `-proxy_url` - Proxy url (descending) * `proxy_username` - Proxy username * `-proxy_username` - Proxy username (descending) * `proxy_password` - Proxy password * `-proxy_password` - Proxy password (descending) * `download_concurrency` - Download concurrency * `-download_concurrency` - Download concurrency (descending) * `max_retries` - Max retries * `-max_retries` - Max retries (descending) * `policy` - Policy * `-policy` - Policy (descending) * `total_timeout` - Total timeout * `-total_timeout` - Total timeout (descending) * `connect_timeout` - Connect timeout * `-connect_timeout` - Connect timeout (descending) * `sock_connect_timeout` - Sock connect timeout * `-sock_connect_timeout` - Sock connect timeout (descending) * `sock_read_timeout` - Sock read timeout * `-sock_read_timeout` - Sock read timeout (descending) * `headers` - Headers * `-headers` - Headers (descending) * `rate_limit` - Rate limit * `-rate_limit` - Rate limit (descending) * `pk` - Pk * `-pk` - Pk (descending) | [optional]
|
@@ -251,6 +259,7 @@ Name | Type | Description | Notes
|
|
251
259
|
**pulp_last_updated__lt** | **DateTime**| Filter results where pulp_last_updated is less than value | [optional]
|
252
260
|
**pulp_last_updated__lte** | **DateTime**| Filter results where pulp_last_updated is less than or equal to value | [optional]
|
253
261
|
**pulp_last_updated__range** | [**Array<DateTime>**](DateTime.md)| Filter results where pulp_last_updated is between two comma separated values | [optional]
|
262
|
+
**q** | **String**| | [optional]
|
254
263
|
**fields** | [**Array<String>**](String.md)| A list of fields to include in the response. | [optional]
|
255
264
|
**exclude_fields** | [**Array<String>**](String.md)| A list of fields to exclude from the response. | [optional]
|
256
265
|
|
@@ -272,7 +281,7 @@ Name | Type | Description | Notes
|
|
272
281
|
|
273
282
|
> ObjectRolesResponse list_roles(rpm_rpm_remote_href, opts)
|
274
283
|
|
275
|
-
|
284
|
+
List roles
|
276
285
|
|
277
286
|
List roles assigned to this object.
|
278
287
|
|
@@ -296,6 +305,7 @@ opts = {
|
|
296
305
|
}
|
297
306
|
|
298
307
|
begin
|
308
|
+
#List roles
|
299
309
|
result = api_instance.list_roles(rpm_rpm_remote_href, opts)
|
300
310
|
p result
|
301
311
|
rescue PulpRpmClient::ApiError => e
|
@@ -330,7 +340,7 @@ Name | Type | Description | Notes
|
|
330
340
|
|
331
341
|
> MyPermissionsResponse my_permissions(rpm_rpm_remote_href, opts)
|
332
342
|
|
333
|
-
|
343
|
+
List user permissions
|
334
344
|
|
335
345
|
List permissions available to the current user on this object.
|
336
346
|
|
@@ -354,6 +364,7 @@ opts = {
|
|
354
364
|
}
|
355
365
|
|
356
366
|
begin
|
367
|
+
#List user permissions
|
357
368
|
result = api_instance.my_permissions(rpm_rpm_remote_href, opts)
|
358
369
|
p result
|
359
370
|
rescue PulpRpmClient::ApiError => e
|
@@ -502,7 +513,7 @@ Name | Type | Description | Notes
|
|
502
513
|
|
503
514
|
> NestedRoleResponse remove_role(rpm_rpm_remote_href, nested_role)
|
504
515
|
|
505
|
-
|
516
|
+
Remove a role
|
506
517
|
|
507
518
|
Remove a role for this object from users/groups.
|
508
519
|
|
@@ -523,6 +534,7 @@ rpm_rpm_remote_href = 'rpm_rpm_remote_href_example' # String |
|
|
523
534
|
nested_role = PulpRpmClient::NestedRole.new # NestedRole |
|
524
535
|
|
525
536
|
begin
|
537
|
+
#Remove a role
|
526
538
|
result = api_instance.remove_role(rpm_rpm_remote_href, nested_role)
|
527
539
|
p result
|
528
540
|
rescue PulpRpmClient::ApiError => e
|
@@ -552,6 +564,116 @@ Name | Type | Description | Notes
|
|
552
564
|
- **Accept**: application/json
|
553
565
|
|
554
566
|
|
567
|
+
## set_label
|
568
|
+
|
569
|
+
> SetLabelResponse set_label(rpm_rpm_remote_href, set_label)
|
570
|
+
|
571
|
+
Set a label
|
572
|
+
|
573
|
+
Set a single pulp_label on the object to a specific value or null.
|
574
|
+
|
575
|
+
### Example
|
576
|
+
|
577
|
+
```ruby
|
578
|
+
# load the gem
|
579
|
+
require 'pulp_rpm_client'
|
580
|
+
# setup authorization
|
581
|
+
PulpRpmClient.configure do |config|
|
582
|
+
# Configure HTTP basic authorization: basicAuth
|
583
|
+
config.username = 'YOUR USERNAME'
|
584
|
+
config.password = 'YOUR PASSWORD'
|
585
|
+
end
|
586
|
+
|
587
|
+
api_instance = PulpRpmClient::RemotesRpmApi.new
|
588
|
+
rpm_rpm_remote_href = 'rpm_rpm_remote_href_example' # String |
|
589
|
+
set_label = PulpRpmClient::SetLabel.new # SetLabel |
|
590
|
+
|
591
|
+
begin
|
592
|
+
#Set a label
|
593
|
+
result = api_instance.set_label(rpm_rpm_remote_href, set_label)
|
594
|
+
p result
|
595
|
+
rescue PulpRpmClient::ApiError => e
|
596
|
+
puts "Exception when calling RemotesRpmApi->set_label: #{e}"
|
597
|
+
end
|
598
|
+
```
|
599
|
+
|
600
|
+
### Parameters
|
601
|
+
|
602
|
+
|
603
|
+
Name | Type | Description | Notes
|
604
|
+
------------- | ------------- | ------------- | -------------
|
605
|
+
**rpm_rpm_remote_href** | **String**| |
|
606
|
+
**set_label** | [**SetLabel**](SetLabel.md)| |
|
607
|
+
|
608
|
+
### Return type
|
609
|
+
|
610
|
+
[**SetLabelResponse**](SetLabelResponse.md)
|
611
|
+
|
612
|
+
### Authorization
|
613
|
+
|
614
|
+
[basicAuth](../README.md#basicAuth)
|
615
|
+
|
616
|
+
### HTTP request headers
|
617
|
+
|
618
|
+
- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
|
619
|
+
- **Accept**: application/json
|
620
|
+
|
621
|
+
|
622
|
+
## unset_label
|
623
|
+
|
624
|
+
> UnsetLabelResponse unset_label(rpm_rpm_remote_href, unset_label)
|
625
|
+
|
626
|
+
Unset a label
|
627
|
+
|
628
|
+
Unset a single pulp_label on the object.
|
629
|
+
|
630
|
+
### Example
|
631
|
+
|
632
|
+
```ruby
|
633
|
+
# load the gem
|
634
|
+
require 'pulp_rpm_client'
|
635
|
+
# setup authorization
|
636
|
+
PulpRpmClient.configure do |config|
|
637
|
+
# Configure HTTP basic authorization: basicAuth
|
638
|
+
config.username = 'YOUR USERNAME'
|
639
|
+
config.password = 'YOUR PASSWORD'
|
640
|
+
end
|
641
|
+
|
642
|
+
api_instance = PulpRpmClient::RemotesRpmApi.new
|
643
|
+
rpm_rpm_remote_href = 'rpm_rpm_remote_href_example' # String |
|
644
|
+
unset_label = PulpRpmClient::UnsetLabel.new # UnsetLabel |
|
645
|
+
|
646
|
+
begin
|
647
|
+
#Unset a label
|
648
|
+
result = api_instance.unset_label(rpm_rpm_remote_href, unset_label)
|
649
|
+
p result
|
650
|
+
rescue PulpRpmClient::ApiError => e
|
651
|
+
puts "Exception when calling RemotesRpmApi->unset_label: #{e}"
|
652
|
+
end
|
653
|
+
```
|
654
|
+
|
655
|
+
### Parameters
|
656
|
+
|
657
|
+
|
658
|
+
Name | Type | Description | Notes
|
659
|
+
------------- | ------------- | ------------- | -------------
|
660
|
+
**rpm_rpm_remote_href** | **String**| |
|
661
|
+
**unset_label** | [**UnsetLabel**](UnsetLabel.md)| |
|
662
|
+
|
663
|
+
### Return type
|
664
|
+
|
665
|
+
[**UnsetLabelResponse**](UnsetLabelResponse.md)
|
666
|
+
|
667
|
+
### Authorization
|
668
|
+
|
669
|
+
[basicAuth](../README.md#basicAuth)
|
670
|
+
|
671
|
+
### HTTP request headers
|
672
|
+
|
673
|
+
- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
|
674
|
+
- **Accept**: application/json
|
675
|
+
|
676
|
+
|
555
677
|
## update
|
556
678
|
|
557
679
|
> AsyncOperationResponse update(rpm_rpm_remote_href, rpm_rpm_remote)
|