pulp_rpm_client 3.18.20 → 3.19.0.dev1675221420
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of pulp_rpm_client might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/README.md +36 -8
- data/docs/AcsRpmApi.md +230 -6
- data/docs/ContentAdvisoriesApi.md +2 -6
- data/docs/ContentDistributionTreesApi.md +2 -6
- data/docs/ContentModulemdDefaultsApi.md +2 -6
- data/docs/ContentModulemdObsoletesApi.md +2 -6
- data/docs/ContentModulemdsApi.md +2 -6
- data/docs/ContentPackagecategoriesApi.md +2 -6
- data/docs/ContentPackageenvironmentsApi.md +2 -6
- data/docs/ContentPackagegroupsApi.md +2 -6
- data/docs/ContentPackagelangpacksApi.md +2 -6
- data/docs/ContentPackagesApi.md +4 -8
- data/docs/ContentRepoMetadataFilesApi.md +2 -6
- data/docs/DistributionsRpmApi.md +230 -6
- 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/PatchedrpmRpmRemote.md +1 -1
- data/docs/PatchedrpmRpmRepository.md +3 -3
- data/docs/PatchedrpmUlnRemote.md +1 -1
- data/docs/PublicationsRpmApi.md +230 -6
- data/docs/RemotesRpmApi.md +230 -6
- data/docs/RemotesUlnApi.md +230 -6
- data/docs/RepositoriesRpmApi.md +230 -6
- data/docs/RepositoriesRpmVersionsApi.md +2 -4
- data/docs/RepositoryAddRemoveContent.md +2 -2
- data/docs/RpmModulemdObsolete.md +2 -2
- data/docs/RpmModulemdObsoleteResponse.md +2 -2
- data/docs/RpmRepositorySyncURL.md +1 -1
- data/docs/RpmRpmPublication.md +2 -2
- data/docs/RpmRpmPublicationResponse.md +2 -2
- data/docs/RpmRpmRemote.md +1 -1
- data/docs/RpmRpmRemoteResponse.md +1 -1
- data/docs/RpmRpmRepository.md +3 -3
- data/docs/RpmRpmRepositoryResponse.md +3 -3
- data/docs/RpmUlnRemote.md +1 -1
- data/docs/RpmUlnRemoteResponse.md +1 -1
- data/lib/pulp_rpm_client/api/acs_rpm_api.rb +270 -8
- data/lib/pulp_rpm_client/api/content_advisories_api.rb +2 -8
- data/lib/pulp_rpm_client/api/content_distribution_trees_api.rb +2 -8
- data/lib/pulp_rpm_client/api/content_modulemd_defaults_api.rb +2 -8
- data/lib/pulp_rpm_client/api/content_modulemd_obsoletes_api.rb +2 -8
- data/lib/pulp_rpm_client/api/content_modulemds_api.rb +2 -8
- data/lib/pulp_rpm_client/api/content_packagecategories_api.rb +2 -8
- data/lib/pulp_rpm_client/api/content_packageenvironments_api.rb +2 -8
- data/lib/pulp_rpm_client/api/content_packagegroups_api.rb +2 -8
- data/lib/pulp_rpm_client/api/content_packagelangpacks_api.rb +2 -8
- data/lib/pulp_rpm_client/api/content_packages_api.rb +4 -10
- data/lib/pulp_rpm_client/api/content_repo_metadata_files_api.rb +2 -8
- data/lib/pulp_rpm_client/api/distributions_rpm_api.rb +270 -8
- data/lib/pulp_rpm_client/api/publications_rpm_api.rb +270 -8
- data/lib/pulp_rpm_client/api/remotes_rpm_api.rb +270 -8
- data/lib/pulp_rpm_client/api/remotes_uln_api.rb +270 -8
- data/lib/pulp_rpm_client/api/repositories_rpm_api.rb +270 -8
- data/lib/pulp_rpm_client/api/repositories_rpm_versions_api.rb +2 -5
- data/lib/pulp_rpm_client/models/my_permissions_response.rb +213 -0
- data/lib/pulp_rpm_client/models/nested_role.rb +253 -0
- data/lib/pulp_rpm_client/models/nested_role_response.rb +234 -0
- data/lib/pulp_rpm_client/models/object_roles_response.rb +213 -0
- data/lib/pulp_rpm_client/models/patchedrpm_rpm_remote.rb +1 -1
- data/lib/pulp_rpm_client/models/patchedrpm_rpm_repository.rb +3 -3
- data/lib/pulp_rpm_client/models/patchedrpm_uln_remote.rb +1 -1
- data/lib/pulp_rpm_client/models/repository_add_remove_content.rb +2 -2
- data/lib/pulp_rpm_client/models/rpm_modulemd_obsolete.rb +36 -2
- data/lib/pulp_rpm_client/models/rpm_modulemd_obsolete_response.rb +2 -2
- data/lib/pulp_rpm_client/models/rpm_repository_sync_url.rb +1 -1
- data/lib/pulp_rpm_client/models/rpm_rpm_publication.rb +2 -2
- data/lib/pulp_rpm_client/models/rpm_rpm_publication_response.rb +2 -2
- data/lib/pulp_rpm_client/models/rpm_rpm_remote.rb +1 -1
- data/lib/pulp_rpm_client/models/rpm_rpm_remote_response.rb +1 -1
- data/lib/pulp_rpm_client/models/rpm_rpm_repository.rb +3 -3
- data/lib/pulp_rpm_client/models/rpm_rpm_repository_response.rb +3 -3
- data/lib/pulp_rpm_client/models/rpm_uln_remote.rb +1 -1
- data/lib/pulp_rpm_client/models/rpm_uln_remote_response.rb +1 -1
- 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 +51 -3
- data/spec/api/content_advisories_api_spec.rb +1 -3
- data/spec/api/content_distribution_trees_api_spec.rb +1 -3
- data/spec/api/content_modulemd_defaults_api_spec.rb +1 -3
- data/spec/api/content_modulemd_obsoletes_api_spec.rb +1 -3
- data/spec/api/content_modulemds_api_spec.rb +1 -3
- data/spec/api/content_packagecategories_api_spec.rb +1 -3
- data/spec/api/content_packageenvironments_api_spec.rb +1 -3
- data/spec/api/content_packagegroups_api_spec.rb +1 -3
- data/spec/api/content_packagelangpacks_api_spec.rb +1 -3
- data/spec/api/content_packages_api_spec.rb +2 -4
- data/spec/api/content_repo_metadata_files_api_spec.rb +1 -3
- data/spec/api/distributions_rpm_api_spec.rb +51 -3
- data/spec/api/publications_rpm_api_spec.rb +51 -3
- data/spec/api/remotes_rpm_api_spec.rb +51 -3
- data/spec/api/remotes_uln_api_spec.rb +51 -3
- data/spec/api/repositories_rpm_api_spec.rb +51 -3
- data/spec/api/repositories_rpm_versions_api_spec.rb +1 -2
- 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
- metadata +94 -78
data/docs/RemotesUlnApi.md
CHANGED
@@ -4,15 +4,73 @@ All URIs are relative to *https://pulp*
|
|
4
4
|
|
5
5
|
Method | HTTP request | Description
|
6
6
|
------------- | ------------- | -------------
|
7
|
+
[**add_role**](RemotesUlnApi.md#add_role) | **POST** {rpm_uln_remote_href}add_role/ |
|
7
8
|
[**create**](RemotesUlnApi.md#create) | **POST** /pulp/api/v3/remotes/rpm/uln/ | Create an uln remote
|
8
9
|
[**delete**](RemotesUlnApi.md#delete) | **DELETE** {rpm_uln_remote_href} | Delete an uln remote
|
9
10
|
[**list**](RemotesUlnApi.md#list) | **GET** /pulp/api/v3/remotes/rpm/uln/ | List uln remotes
|
11
|
+
[**list_roles**](RemotesUlnApi.md#list_roles) | **GET** {rpm_uln_remote_href}list_roles/ |
|
12
|
+
[**my_permissions**](RemotesUlnApi.md#my_permissions) | **GET** {rpm_uln_remote_href}my_permissions/ |
|
10
13
|
[**partial_update**](RemotesUlnApi.md#partial_update) | **PATCH** {rpm_uln_remote_href} | Update an uln remote
|
11
14
|
[**read**](RemotesUlnApi.md#read) | **GET** {rpm_uln_remote_href} | Inspect an uln remote
|
15
|
+
[**remove_role**](RemotesUlnApi.md#remove_role) | **POST** {rpm_uln_remote_href}remove_role/ |
|
12
16
|
[**update**](RemotesUlnApi.md#update) | **PUT** {rpm_uln_remote_href} | Update an uln remote
|
13
17
|
|
14
18
|
|
15
19
|
|
20
|
+
## add_role
|
21
|
+
|
22
|
+
> NestedRoleResponse add_role(rpm_uln_remote_href, nested_role)
|
23
|
+
|
24
|
+
|
25
|
+
|
26
|
+
Add a role for this object to users/groups.
|
27
|
+
|
28
|
+
### Example
|
29
|
+
|
30
|
+
```ruby
|
31
|
+
# load the gem
|
32
|
+
require 'pulp_rpm_client'
|
33
|
+
# setup authorization
|
34
|
+
PulpRpmClient.configure do |config|
|
35
|
+
# Configure HTTP basic authorization: basicAuth
|
36
|
+
config.username = 'YOUR USERNAME'
|
37
|
+
config.password = 'YOUR PASSWORD'
|
38
|
+
end
|
39
|
+
|
40
|
+
api_instance = PulpRpmClient::RemotesUlnApi.new
|
41
|
+
rpm_uln_remote_href = 'rpm_uln_remote_href_example' # String |
|
42
|
+
nested_role = PulpRpmClient::NestedRole.new # NestedRole |
|
43
|
+
|
44
|
+
begin
|
45
|
+
result = api_instance.add_role(rpm_uln_remote_href, nested_role)
|
46
|
+
p result
|
47
|
+
rescue PulpRpmClient::ApiError => e
|
48
|
+
puts "Exception when calling RemotesUlnApi->add_role: #{e}"
|
49
|
+
end
|
50
|
+
```
|
51
|
+
|
52
|
+
### Parameters
|
53
|
+
|
54
|
+
|
55
|
+
Name | Type | Description | Notes
|
56
|
+
------------- | ------------- | ------------- | -------------
|
57
|
+
**rpm_uln_remote_href** | **String**| |
|
58
|
+
**nested_role** | [**NestedRole**](NestedRole.md)| |
|
59
|
+
|
60
|
+
### Return type
|
61
|
+
|
62
|
+
[**NestedRoleResponse**](NestedRoleResponse.md)
|
63
|
+
|
64
|
+
### Authorization
|
65
|
+
|
66
|
+
[basicAuth](../README.md#basicAuth)
|
67
|
+
|
68
|
+
### HTTP request headers
|
69
|
+
|
70
|
+
- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
|
71
|
+
- **Accept**: application/json
|
72
|
+
|
73
|
+
|
16
74
|
## create
|
17
75
|
|
18
76
|
> RpmUlnRemoteResponse create(rpm_uln_remote)
|
@@ -148,9 +206,7 @@ opts = {
|
|
148
206
|
name__in: ['name__in_example'], # Array<String> | Filter results where name is in a comma-separated list of values
|
149
207
|
name__startswith: 'name__startswith_example', # String | Filter results where name starts with value
|
150
208
|
offset: 56, # Integer | The initial index from which to return the results.
|
151
|
-
ordering: ['ordering_example'], # Array<String> | Ordering
|
152
|
-
pulp_href__in: ['pulp_href__in_example'], # Array<String> | Multiple values may be separated by commas.
|
153
|
-
pulp_id__in: ['pulp_id__in_example'], # Array<String> | Multiple values may be separated by commas.
|
209
|
+
ordering: ['ordering_example'], # Array<String> | Ordering
|
154
210
|
pulp_label_select: 'pulp_label_select_example', # String | Filter labels by search string
|
155
211
|
pulp_last_updated: DateTime.parse('2013-10-20T19:20:30+01:00'), # DateTime | Filter results where pulp_last_updated matches value
|
156
212
|
pulp_last_updated__gt: DateTime.parse('2013-10-20T19:20:30+01:00'), # DateTime | Filter results where pulp_last_updated is greater than value
|
@@ -183,9 +239,7 @@ Name | Type | Description | Notes
|
|
183
239
|
**name__in** | [**Array<String>**](String.md)| Filter results where name is in a comma-separated list of values | [optional]
|
184
240
|
**name__startswith** | **String**| Filter results where name starts with value | [optional]
|
185
241
|
**offset** | **Integer**| The initial index from which to return the results. | [optional]
|
186
|
-
**ordering** | [**Array<String>**](String.md)| Ordering
|
187
|
-
**pulp_href__in** | [**Array<String>**](String.md)| Multiple values may be separated by commas. | [optional]
|
188
|
-
**pulp_id__in** | [**Array<String>**](String.md)| Multiple values may be separated by commas. | [optional]
|
242
|
+
**ordering** | [**Array<String>**](String.md)| Ordering | [optional]
|
189
243
|
**pulp_label_select** | **String**| Filter labels by search string | [optional]
|
190
244
|
**pulp_last_updated** | **DateTime**| Filter results where pulp_last_updated matches value | [optional]
|
191
245
|
**pulp_last_updated__gt** | **DateTime**| Filter results where pulp_last_updated is greater than value | [optional]
|
@@ -210,6 +264,122 @@ Name | Type | Description | Notes
|
|
210
264
|
- **Accept**: application/json
|
211
265
|
|
212
266
|
|
267
|
+
## list_roles
|
268
|
+
|
269
|
+
> ObjectRolesResponse list_roles(rpm_uln_remote_href, opts)
|
270
|
+
|
271
|
+
|
272
|
+
|
273
|
+
List roles assigned to this object.
|
274
|
+
|
275
|
+
### Example
|
276
|
+
|
277
|
+
```ruby
|
278
|
+
# load the gem
|
279
|
+
require 'pulp_rpm_client'
|
280
|
+
# setup authorization
|
281
|
+
PulpRpmClient.configure do |config|
|
282
|
+
# Configure HTTP basic authorization: basicAuth
|
283
|
+
config.username = 'YOUR USERNAME'
|
284
|
+
config.password = 'YOUR PASSWORD'
|
285
|
+
end
|
286
|
+
|
287
|
+
api_instance = PulpRpmClient::RemotesUlnApi.new
|
288
|
+
rpm_uln_remote_href = 'rpm_uln_remote_href_example' # String |
|
289
|
+
opts = {
|
290
|
+
fields: ['fields_example'], # Array<String> | A list of fields to include in the response.
|
291
|
+
exclude_fields: ['exclude_fields_example'] # Array<String> | A list of fields to exclude from the response.
|
292
|
+
}
|
293
|
+
|
294
|
+
begin
|
295
|
+
result = api_instance.list_roles(rpm_uln_remote_href, opts)
|
296
|
+
p result
|
297
|
+
rescue PulpRpmClient::ApiError => e
|
298
|
+
puts "Exception when calling RemotesUlnApi->list_roles: #{e}"
|
299
|
+
end
|
300
|
+
```
|
301
|
+
|
302
|
+
### Parameters
|
303
|
+
|
304
|
+
|
305
|
+
Name | Type | Description | Notes
|
306
|
+
------------- | ------------- | ------------- | -------------
|
307
|
+
**rpm_uln_remote_href** | **String**| |
|
308
|
+
**fields** | [**Array<String>**](String.md)| A list of fields to include in the response. | [optional]
|
309
|
+
**exclude_fields** | [**Array<String>**](String.md)| A list of fields to exclude from the response. | [optional]
|
310
|
+
|
311
|
+
### Return type
|
312
|
+
|
313
|
+
[**ObjectRolesResponse**](ObjectRolesResponse.md)
|
314
|
+
|
315
|
+
### Authorization
|
316
|
+
|
317
|
+
[basicAuth](../README.md#basicAuth)
|
318
|
+
|
319
|
+
### HTTP request headers
|
320
|
+
|
321
|
+
- **Content-Type**: Not defined
|
322
|
+
- **Accept**: application/json
|
323
|
+
|
324
|
+
|
325
|
+
## my_permissions
|
326
|
+
|
327
|
+
> MyPermissionsResponse my_permissions(rpm_uln_remote_href, opts)
|
328
|
+
|
329
|
+
|
330
|
+
|
331
|
+
List permissions available to the current user on this object.
|
332
|
+
|
333
|
+
### Example
|
334
|
+
|
335
|
+
```ruby
|
336
|
+
# load the gem
|
337
|
+
require 'pulp_rpm_client'
|
338
|
+
# setup authorization
|
339
|
+
PulpRpmClient.configure do |config|
|
340
|
+
# Configure HTTP basic authorization: basicAuth
|
341
|
+
config.username = 'YOUR USERNAME'
|
342
|
+
config.password = 'YOUR PASSWORD'
|
343
|
+
end
|
344
|
+
|
345
|
+
api_instance = PulpRpmClient::RemotesUlnApi.new
|
346
|
+
rpm_uln_remote_href = 'rpm_uln_remote_href_example' # String |
|
347
|
+
opts = {
|
348
|
+
fields: ['fields_example'], # Array<String> | A list of fields to include in the response.
|
349
|
+
exclude_fields: ['exclude_fields_example'] # Array<String> | A list of fields to exclude from the response.
|
350
|
+
}
|
351
|
+
|
352
|
+
begin
|
353
|
+
result = api_instance.my_permissions(rpm_uln_remote_href, opts)
|
354
|
+
p result
|
355
|
+
rescue PulpRpmClient::ApiError => e
|
356
|
+
puts "Exception when calling RemotesUlnApi->my_permissions: #{e}"
|
357
|
+
end
|
358
|
+
```
|
359
|
+
|
360
|
+
### Parameters
|
361
|
+
|
362
|
+
|
363
|
+
Name | Type | Description | Notes
|
364
|
+
------------- | ------------- | ------------- | -------------
|
365
|
+
**rpm_uln_remote_href** | **String**| |
|
366
|
+
**fields** | [**Array<String>**](String.md)| A list of fields to include in the response. | [optional]
|
367
|
+
**exclude_fields** | [**Array<String>**](String.md)| A list of fields to exclude from the response. | [optional]
|
368
|
+
|
369
|
+
### Return type
|
370
|
+
|
371
|
+
[**MyPermissionsResponse**](MyPermissionsResponse.md)
|
372
|
+
|
373
|
+
### Authorization
|
374
|
+
|
375
|
+
[basicAuth](../README.md#basicAuth)
|
376
|
+
|
377
|
+
### HTTP request headers
|
378
|
+
|
379
|
+
- **Content-Type**: Not defined
|
380
|
+
- **Accept**: application/json
|
381
|
+
|
382
|
+
|
213
383
|
## partial_update
|
214
384
|
|
215
385
|
> AsyncOperationResponse partial_update(rpm_uln_remote_href, patchedrpm_uln_remote)
|
@@ -324,6 +494,60 @@ Name | Type | Description | Notes
|
|
324
494
|
- **Accept**: application/json
|
325
495
|
|
326
496
|
|
497
|
+
## remove_role
|
498
|
+
|
499
|
+
> NestedRoleResponse remove_role(rpm_uln_remote_href, nested_role)
|
500
|
+
|
501
|
+
|
502
|
+
|
503
|
+
Remove a role for this object from users/groups.
|
504
|
+
|
505
|
+
### Example
|
506
|
+
|
507
|
+
```ruby
|
508
|
+
# load the gem
|
509
|
+
require 'pulp_rpm_client'
|
510
|
+
# setup authorization
|
511
|
+
PulpRpmClient.configure do |config|
|
512
|
+
# Configure HTTP basic authorization: basicAuth
|
513
|
+
config.username = 'YOUR USERNAME'
|
514
|
+
config.password = 'YOUR PASSWORD'
|
515
|
+
end
|
516
|
+
|
517
|
+
api_instance = PulpRpmClient::RemotesUlnApi.new
|
518
|
+
rpm_uln_remote_href = 'rpm_uln_remote_href_example' # String |
|
519
|
+
nested_role = PulpRpmClient::NestedRole.new # NestedRole |
|
520
|
+
|
521
|
+
begin
|
522
|
+
result = api_instance.remove_role(rpm_uln_remote_href, nested_role)
|
523
|
+
p result
|
524
|
+
rescue PulpRpmClient::ApiError => e
|
525
|
+
puts "Exception when calling RemotesUlnApi->remove_role: #{e}"
|
526
|
+
end
|
527
|
+
```
|
528
|
+
|
529
|
+
### Parameters
|
530
|
+
|
531
|
+
|
532
|
+
Name | Type | Description | Notes
|
533
|
+
------------- | ------------- | ------------- | -------------
|
534
|
+
**rpm_uln_remote_href** | **String**| |
|
535
|
+
**nested_role** | [**NestedRole**](NestedRole.md)| |
|
536
|
+
|
537
|
+
### Return type
|
538
|
+
|
539
|
+
[**NestedRoleResponse**](NestedRoleResponse.md)
|
540
|
+
|
541
|
+
### Authorization
|
542
|
+
|
543
|
+
[basicAuth](../README.md#basicAuth)
|
544
|
+
|
545
|
+
### HTTP request headers
|
546
|
+
|
547
|
+
- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
|
548
|
+
- **Accept**: application/json
|
549
|
+
|
550
|
+
|
327
551
|
## update
|
328
552
|
|
329
553
|
> AsyncOperationResponse update(rpm_uln_remote_href, rpm_uln_remote)
|
data/docs/RepositoriesRpmApi.md
CHANGED
@@ -4,17 +4,75 @@ All URIs are relative to *https://pulp*
|
|
4
4
|
|
5
5
|
Method | HTTP request | Description
|
6
6
|
------------- | ------------- | -------------
|
7
|
+
[**add_role**](RepositoriesRpmApi.md#add_role) | **POST** {rpm_rpm_repository_href}add_role/ |
|
7
8
|
[**create**](RepositoriesRpmApi.md#create) | **POST** /pulp/api/v3/repositories/rpm/rpm/ | Create a rpm repository
|
8
9
|
[**delete**](RepositoriesRpmApi.md#delete) | **DELETE** {rpm_rpm_repository_href} | Delete a rpm repository
|
9
10
|
[**list**](RepositoriesRpmApi.md#list) | **GET** /pulp/api/v3/repositories/rpm/rpm/ | List rpm repositorys
|
11
|
+
[**list_roles**](RepositoriesRpmApi.md#list_roles) | **GET** {rpm_rpm_repository_href}list_roles/ |
|
10
12
|
[**modify**](RepositoriesRpmApi.md#modify) | **POST** {rpm_rpm_repository_href}modify/ | Modify Repository Content
|
13
|
+
[**my_permissions**](RepositoriesRpmApi.md#my_permissions) | **GET** {rpm_rpm_repository_href}my_permissions/ |
|
11
14
|
[**partial_update**](RepositoriesRpmApi.md#partial_update) | **PATCH** {rpm_rpm_repository_href} | Update a rpm repository
|
12
15
|
[**read**](RepositoriesRpmApi.md#read) | **GET** {rpm_rpm_repository_href} | Inspect a rpm repository
|
16
|
+
[**remove_role**](RepositoriesRpmApi.md#remove_role) | **POST** {rpm_rpm_repository_href}remove_role/ |
|
13
17
|
[**sync**](RepositoriesRpmApi.md#sync) | **POST** {rpm_rpm_repository_href}sync/ | Sync from remote
|
14
18
|
[**update**](RepositoriesRpmApi.md#update) | **PUT** {rpm_rpm_repository_href} | Update a rpm repository
|
15
19
|
|
16
20
|
|
17
21
|
|
22
|
+
## add_role
|
23
|
+
|
24
|
+
> NestedRoleResponse add_role(rpm_rpm_repository_href, nested_role)
|
25
|
+
|
26
|
+
|
27
|
+
|
28
|
+
Add a role for this object to users/groups.
|
29
|
+
|
30
|
+
### Example
|
31
|
+
|
32
|
+
```ruby
|
33
|
+
# load the gem
|
34
|
+
require 'pulp_rpm_client'
|
35
|
+
# setup authorization
|
36
|
+
PulpRpmClient.configure do |config|
|
37
|
+
# Configure HTTP basic authorization: basicAuth
|
38
|
+
config.username = 'YOUR USERNAME'
|
39
|
+
config.password = 'YOUR PASSWORD'
|
40
|
+
end
|
41
|
+
|
42
|
+
api_instance = PulpRpmClient::RepositoriesRpmApi.new
|
43
|
+
rpm_rpm_repository_href = 'rpm_rpm_repository_href_example' # String |
|
44
|
+
nested_role = PulpRpmClient::NestedRole.new # NestedRole |
|
45
|
+
|
46
|
+
begin
|
47
|
+
result = api_instance.add_role(rpm_rpm_repository_href, nested_role)
|
48
|
+
p result
|
49
|
+
rescue PulpRpmClient::ApiError => e
|
50
|
+
puts "Exception when calling RepositoriesRpmApi->add_role: #{e}"
|
51
|
+
end
|
52
|
+
```
|
53
|
+
|
54
|
+
### Parameters
|
55
|
+
|
56
|
+
|
57
|
+
Name | Type | Description | Notes
|
58
|
+
------------- | ------------- | ------------- | -------------
|
59
|
+
**rpm_rpm_repository_href** | **String**| |
|
60
|
+
**nested_role** | [**NestedRole**](NestedRole.md)| |
|
61
|
+
|
62
|
+
### Return type
|
63
|
+
|
64
|
+
[**NestedRoleResponse**](NestedRoleResponse.md)
|
65
|
+
|
66
|
+
### Authorization
|
67
|
+
|
68
|
+
[basicAuth](../README.md#basicAuth)
|
69
|
+
|
70
|
+
### HTTP request headers
|
71
|
+
|
72
|
+
- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
|
73
|
+
- **Accept**: application/json
|
74
|
+
|
75
|
+
|
18
76
|
## create
|
19
77
|
|
20
78
|
> RpmRpmRepositoryResponse create(rpm_rpm_repository)
|
@@ -150,9 +208,7 @@ opts = {
|
|
150
208
|
name__in: ['name__in_example'], # Array<String> | Filter results where name is in a comma-separated list of values
|
151
209
|
name__startswith: 'name__startswith_example', # String | Filter results where name starts with value
|
152
210
|
offset: 56, # Integer | The initial index from which to return the results.
|
153
|
-
ordering: ['ordering_example'], # Array<String> | Ordering
|
154
|
-
pulp_href__in: ['pulp_href__in_example'], # Array<String> | Multiple values may be separated by commas.
|
155
|
-
pulp_id__in: ['pulp_id__in_example'], # Array<String> | Multiple values may be separated by commas.
|
211
|
+
ordering: ['ordering_example'], # Array<String> | Ordering
|
156
212
|
pulp_label_select: 'pulp_label_select_example', # String | Filter labels by search string
|
157
213
|
remote: 'remote_example', # String | Foreign Key referenced by HREF
|
158
214
|
retain_repo_versions: 56, # Integer | Filter results where retain_repo_versions matches value
|
@@ -188,9 +244,7 @@ Name | Type | Description | Notes
|
|
188
244
|
**name__in** | [**Array<String>**](String.md)| Filter results where name is in a comma-separated list of values | [optional]
|
189
245
|
**name__startswith** | **String**| Filter results where name starts with value | [optional]
|
190
246
|
**offset** | **Integer**| The initial index from which to return the results. | [optional]
|
191
|
-
**ordering** | [**Array<String>**](String.md)| Ordering
|
192
|
-
**pulp_href__in** | [**Array<String>**](String.md)| Multiple values may be separated by commas. | [optional]
|
193
|
-
**pulp_id__in** | [**Array<String>**](String.md)| Multiple values may be separated by commas. | [optional]
|
247
|
+
**ordering** | [**Array<String>**](String.md)| Ordering | [optional]
|
194
248
|
**pulp_label_select** | **String**| Filter labels by search string | [optional]
|
195
249
|
**remote** | **String**| Foreign Key referenced by HREF | [optional]
|
196
250
|
**retain_repo_versions** | **Integer**| Filter results where retain_repo_versions matches value | [optional]
|
@@ -218,6 +272,64 @@ Name | Type | Description | Notes
|
|
218
272
|
- **Accept**: application/json
|
219
273
|
|
220
274
|
|
275
|
+
## list_roles
|
276
|
+
|
277
|
+
> ObjectRolesResponse list_roles(rpm_rpm_repository_href, opts)
|
278
|
+
|
279
|
+
|
280
|
+
|
281
|
+
List roles assigned to this object.
|
282
|
+
|
283
|
+
### Example
|
284
|
+
|
285
|
+
```ruby
|
286
|
+
# load the gem
|
287
|
+
require 'pulp_rpm_client'
|
288
|
+
# setup authorization
|
289
|
+
PulpRpmClient.configure do |config|
|
290
|
+
# Configure HTTP basic authorization: basicAuth
|
291
|
+
config.username = 'YOUR USERNAME'
|
292
|
+
config.password = 'YOUR PASSWORD'
|
293
|
+
end
|
294
|
+
|
295
|
+
api_instance = PulpRpmClient::RepositoriesRpmApi.new
|
296
|
+
rpm_rpm_repository_href = 'rpm_rpm_repository_href_example' # String |
|
297
|
+
opts = {
|
298
|
+
fields: ['fields_example'], # Array<String> | A list of fields to include in the response.
|
299
|
+
exclude_fields: ['exclude_fields_example'] # Array<String> | A list of fields to exclude from the response.
|
300
|
+
}
|
301
|
+
|
302
|
+
begin
|
303
|
+
result = api_instance.list_roles(rpm_rpm_repository_href, opts)
|
304
|
+
p result
|
305
|
+
rescue PulpRpmClient::ApiError => e
|
306
|
+
puts "Exception when calling RepositoriesRpmApi->list_roles: #{e}"
|
307
|
+
end
|
308
|
+
```
|
309
|
+
|
310
|
+
### Parameters
|
311
|
+
|
312
|
+
|
313
|
+
Name | Type | Description | Notes
|
314
|
+
------------- | ------------- | ------------- | -------------
|
315
|
+
**rpm_rpm_repository_href** | **String**| |
|
316
|
+
**fields** | [**Array<String>**](String.md)| A list of fields to include in the response. | [optional]
|
317
|
+
**exclude_fields** | [**Array<String>**](String.md)| A list of fields to exclude from the response. | [optional]
|
318
|
+
|
319
|
+
### Return type
|
320
|
+
|
321
|
+
[**ObjectRolesResponse**](ObjectRolesResponse.md)
|
322
|
+
|
323
|
+
### Authorization
|
324
|
+
|
325
|
+
[basicAuth](../README.md#basicAuth)
|
326
|
+
|
327
|
+
### HTTP request headers
|
328
|
+
|
329
|
+
- **Content-Type**: Not defined
|
330
|
+
- **Accept**: application/json
|
331
|
+
|
332
|
+
|
221
333
|
## modify
|
222
334
|
|
223
335
|
> AsyncOperationResponse modify(rpm_rpm_repository_href, repository_add_remove_content)
|
@@ -273,6 +385,64 @@ Name | Type | Description | Notes
|
|
273
385
|
- **Accept**: application/json
|
274
386
|
|
275
387
|
|
388
|
+
## my_permissions
|
389
|
+
|
390
|
+
> MyPermissionsResponse my_permissions(rpm_rpm_repository_href, opts)
|
391
|
+
|
392
|
+
|
393
|
+
|
394
|
+
List permissions available to the current user on this object.
|
395
|
+
|
396
|
+
### Example
|
397
|
+
|
398
|
+
```ruby
|
399
|
+
# load the gem
|
400
|
+
require 'pulp_rpm_client'
|
401
|
+
# setup authorization
|
402
|
+
PulpRpmClient.configure do |config|
|
403
|
+
# Configure HTTP basic authorization: basicAuth
|
404
|
+
config.username = 'YOUR USERNAME'
|
405
|
+
config.password = 'YOUR PASSWORD'
|
406
|
+
end
|
407
|
+
|
408
|
+
api_instance = PulpRpmClient::RepositoriesRpmApi.new
|
409
|
+
rpm_rpm_repository_href = 'rpm_rpm_repository_href_example' # String |
|
410
|
+
opts = {
|
411
|
+
fields: ['fields_example'], # Array<String> | A list of fields to include in the response.
|
412
|
+
exclude_fields: ['exclude_fields_example'] # Array<String> | A list of fields to exclude from the response.
|
413
|
+
}
|
414
|
+
|
415
|
+
begin
|
416
|
+
result = api_instance.my_permissions(rpm_rpm_repository_href, opts)
|
417
|
+
p result
|
418
|
+
rescue PulpRpmClient::ApiError => e
|
419
|
+
puts "Exception when calling RepositoriesRpmApi->my_permissions: #{e}"
|
420
|
+
end
|
421
|
+
```
|
422
|
+
|
423
|
+
### Parameters
|
424
|
+
|
425
|
+
|
426
|
+
Name | Type | Description | Notes
|
427
|
+
------------- | ------------- | ------------- | -------------
|
428
|
+
**rpm_rpm_repository_href** | **String**| |
|
429
|
+
**fields** | [**Array<String>**](String.md)| A list of fields to include in the response. | [optional]
|
430
|
+
**exclude_fields** | [**Array<String>**](String.md)| A list of fields to exclude from the response. | [optional]
|
431
|
+
|
432
|
+
### Return type
|
433
|
+
|
434
|
+
[**MyPermissionsResponse**](MyPermissionsResponse.md)
|
435
|
+
|
436
|
+
### Authorization
|
437
|
+
|
438
|
+
[basicAuth](../README.md#basicAuth)
|
439
|
+
|
440
|
+
### HTTP request headers
|
441
|
+
|
442
|
+
- **Content-Type**: Not defined
|
443
|
+
- **Accept**: application/json
|
444
|
+
|
445
|
+
|
276
446
|
## partial_update
|
277
447
|
|
278
448
|
> AsyncOperationResponse partial_update(rpm_rpm_repository_href, patchedrpm_rpm_repository)
|
@@ -387,6 +557,60 @@ Name | Type | Description | Notes
|
|
387
557
|
- **Accept**: application/json
|
388
558
|
|
389
559
|
|
560
|
+
## remove_role
|
561
|
+
|
562
|
+
> NestedRoleResponse remove_role(rpm_rpm_repository_href, nested_role)
|
563
|
+
|
564
|
+
|
565
|
+
|
566
|
+
Remove a role for this object from users/groups.
|
567
|
+
|
568
|
+
### Example
|
569
|
+
|
570
|
+
```ruby
|
571
|
+
# load the gem
|
572
|
+
require 'pulp_rpm_client'
|
573
|
+
# setup authorization
|
574
|
+
PulpRpmClient.configure do |config|
|
575
|
+
# Configure HTTP basic authorization: basicAuth
|
576
|
+
config.username = 'YOUR USERNAME'
|
577
|
+
config.password = 'YOUR PASSWORD'
|
578
|
+
end
|
579
|
+
|
580
|
+
api_instance = PulpRpmClient::RepositoriesRpmApi.new
|
581
|
+
rpm_rpm_repository_href = 'rpm_rpm_repository_href_example' # String |
|
582
|
+
nested_role = PulpRpmClient::NestedRole.new # NestedRole |
|
583
|
+
|
584
|
+
begin
|
585
|
+
result = api_instance.remove_role(rpm_rpm_repository_href, nested_role)
|
586
|
+
p result
|
587
|
+
rescue PulpRpmClient::ApiError => e
|
588
|
+
puts "Exception when calling RepositoriesRpmApi->remove_role: #{e}"
|
589
|
+
end
|
590
|
+
```
|
591
|
+
|
592
|
+
### Parameters
|
593
|
+
|
594
|
+
|
595
|
+
Name | Type | Description | Notes
|
596
|
+
------------- | ------------- | ------------- | -------------
|
597
|
+
**rpm_rpm_repository_href** | **String**| |
|
598
|
+
**nested_role** | [**NestedRole**](NestedRole.md)| |
|
599
|
+
|
600
|
+
### Return type
|
601
|
+
|
602
|
+
[**NestedRoleResponse**](NestedRoleResponse.md)
|
603
|
+
|
604
|
+
### Authorization
|
605
|
+
|
606
|
+
[basicAuth](../README.md#basicAuth)
|
607
|
+
|
608
|
+
### HTTP request headers
|
609
|
+
|
610
|
+
- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
|
611
|
+
- **Accept**: application/json
|
612
|
+
|
613
|
+
|
390
614
|
## sync
|
391
615
|
|
392
616
|
> AsyncOperationResponse sync(rpm_rpm_repository_href, rpm_repository_sync_url)
|
@@ -97,14 +97,13 @@ 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
|
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
107
|
fields: ['fields_example'], # Array<String> | A list of fields to include in the response.
|
109
108
|
exclude_fields: ['exclude_fields_example'] # Array<String> | A list of fields to exclude from the response.
|
110
109
|
}
|
@@ -134,14 +133,13 @@ Name | Type | Description | Notes
|
|
134
133
|
**number__lte** | **Integer**| Filter results where number is less than or equal to value | [optional]
|
135
134
|
**number__range** | [**Array<Integer>**](Integer.md)| Filter results where number is between two comma separated values | [optional]
|
136
135
|
**offset** | **Integer**| The initial index from which to return the results. | [optional]
|
137
|
-
**ordering** | [**Array<String>**](String.md)| Ordering
|
136
|
+
**ordering** | [**Array<String>**](String.md)| Ordering | [optional]
|
138
137
|
**pulp_created** | **DateTime**| Filter results where pulp_created matches value | [optional]
|
139
138
|
**pulp_created__gt** | **DateTime**| Filter results where pulp_created is greater than value | [optional]
|
140
139
|
**pulp_created__gte** | **DateTime**| Filter results where pulp_created is greater than or equal to value | [optional]
|
141
140
|
**pulp_created__lt** | **DateTime**| Filter results where pulp_created is less than value | [optional]
|
142
141
|
**pulp_created__lte** | **DateTime**| Filter results where pulp_created is less than or equal to value | [optional]
|
143
142
|
**pulp_created__range** | [**Array<DateTime>**](DateTime.md)| Filter results where pulp_created is between two comma separated values | [optional]
|
144
|
-
**pulp_href__in** | [**Array<String>**](String.md)| Multiple values may be separated by commas. | [optional]
|
145
143
|
**fields** | [**Array<String>**](String.md)| A list of fields to include in the response. | [optional]
|
146
144
|
**exclude_fields** | [**Array<String>**](String.md)| A list of fields to exclude from the response. | [optional]
|
147
145
|
|
@@ -4,8 +4,8 @@
|
|
4
4
|
|
5
5
|
Name | Type | Description | Notes
|
6
6
|
------------ | ------------- | ------------- | -------------
|
7
|
-
**add_content_units** | **Array<
|
8
|
-
**remove_content_units** | **Array<
|
7
|
+
**add_content_units** | [**Array<AnyType>**](AnyType.md) | A list of content units to add to a new repository version. This content is added after remove_content_units are removed. | [optional]
|
8
|
+
**remove_content_units** | [**Array<AnyType>**](AnyType.md) | A list of content units to remove from the latest repository version. You may also specify '*' as an entry to remove all content. This content is removed before add_content_units are added. | [optional]
|
9
9
|
**base_version** | **String** | A repository version whose content will be used as the initial set of content for the new repository version | [optional]
|
10
10
|
|
11
11
|
## Code Sample
|
data/docs/RpmModulemdObsolete.md
CHANGED
@@ -4,13 +4,13 @@
|
|
4
4
|
|
5
5
|
Name | Type | Description | Notes
|
6
6
|
------------ | ------------- | ------------- | -------------
|
7
|
-
**modified** | **
|
7
|
+
**modified** | **String** | Obsolete modified time. |
|
8
8
|
**module_name** | **String** | Modulemd name. |
|
9
9
|
**module_stream** | **String** | Modulemd's stream. |
|
10
10
|
**message** | **String** | Obsolete description. |
|
11
11
|
**override_previous** | **String** | Reset previous obsoletes. |
|
12
12
|
**module_context** | **String** | Modulemd's context. |
|
13
|
-
**eol_date** | **
|
13
|
+
**eol_date** | **String** | End of Life date. |
|
14
14
|
**obsoleted_by_module_name** | **String** | Obsolete by module name. |
|
15
15
|
**obsoleted_by_module_stream** | **String** | Obsolete by module stream. |
|
16
16
|
**snippet** | **String** | Module Obsolete snippet. |
|
@@ -6,13 +6,13 @@ Name | Type | Description | Notes
|
|
6
6
|
------------ | ------------- | ------------- | -------------
|
7
7
|
**pulp_href** | **String** | | [optional] [readonly]
|
8
8
|
**pulp_created** | **DateTime** | Timestamp of creation. | [optional] [readonly]
|
9
|
-
**modified** | **
|
9
|
+
**modified** | **String** | Obsolete modified time. |
|
10
10
|
**module_name** | **String** | Modulemd name. |
|
11
11
|
**module_stream** | **String** | Modulemd's stream. |
|
12
12
|
**message** | **String** | Obsolete description. |
|
13
13
|
**override_previous** | **String** | Reset previous obsoletes. |
|
14
14
|
**module_context** | **String** | Modulemd's context. |
|
15
|
-
**eol_date** | **
|
15
|
+
**eol_date** | **String** | End of Life date. |
|
16
16
|
**obsoleted_by_module_name** | **String** | Obsolete by module name. |
|
17
17
|
**obsoleted_by_module_stream** | **String** | Obsolete by module stream. |
|
18
18
|
|
@@ -6,7 +6,7 @@ Name | Type | Description | Notes
|
|
6
6
|
------------ | ------------- | ------------- | -------------
|
7
7
|
**remote** | **String** | A remote to sync from. This will override a remote set on repository. | [optional]
|
8
8
|
**mirror** | **Boolean** | DEPRECATED: If ``True``, ``sync_policy`` will default to 'mirror_complete' instead of 'additive'. | [optional]
|
9
|
-
**sync_policy** | [**SyncPolicyEnum**](SyncPolicyEnum.md) | Options: 'additive', 'mirror_complete', 'mirror_content_only'. Default: 'additive'. Modifies how the sync is performed. 'mirror_complete' will clone the original metadata and create an automatic publication from it, but comes with some limitations and does not work for certain repositories. 'mirror_content_only' will change the repository contents to match the remote but the metadata will be regenerated and will not be bit-for-bit identical. 'additive' will retain the existing contents of the repository and add the contents of the repository being synced.
|
9
|
+
**sync_policy** | [**SyncPolicyEnum**](SyncPolicyEnum.md) | Options: 'additive', 'mirror_complete', 'mirror_content_only'. Default: 'additive'. Modifies how the sync is performed. 'mirror_complete' will clone the original metadata and create an automatic publication from it, but comes with some limitations and does not work for certain repositories. 'mirror_content_only' will change the repository contents to match the remote but the metadata will be regenerated and will not be bit-for-bit identical. 'additive' will retain the existing contents of the repository and add the contents of the repository being synced. | [optional]
|
10
10
|
**skip_types** | [**Array<SkipTypesEnum>**](SkipTypesEnum.md) | List of content types to skip during sync. | [optional]
|
11
11
|
**optimize** | **Boolean** | Whether or not to optimize sync. | [optional] [default to true]
|
12
12
|
|