pulp_ostree_client 2.2.0 → 2.3.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.
Files changed (47) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +23 -4
  3. data/docs/ContentCommitsApi.md +2 -0
  4. data/docs/ContentConfigsApi.md +2 -0
  5. data/docs/ContentContentApi.md +56 -0
  6. data/docs/ContentObjectsApi.md +2 -0
  7. data/docs/ContentRefsApi.md +2 -0
  8. data/docs/ContentSummariesApi.md +2 -0
  9. data/docs/DistributionsOstreeApi.md +232 -0
  10. data/docs/MyPermissionsResponse.md +17 -0
  11. data/docs/NestedRole.md +21 -0
  12. data/docs/NestedRoleResponse.md +21 -0
  13. data/docs/ObjectRolesResponse.md +17 -0
  14. data/docs/OstreeOstreeContent.md +23 -0
  15. data/docs/RemotesOstreeApi.md +232 -0
  16. data/docs/RepositoriesOstreeApi.md +232 -0
  17. data/lib/pulp_ostree_client/api/content_commits_api.rb +3 -0
  18. data/lib/pulp_ostree_client/api/content_configs_api.rb +3 -0
  19. data/lib/pulp_ostree_client/api/content_content_api.rb +67 -0
  20. data/lib/pulp_ostree_client/api/content_objects_api.rb +3 -0
  21. data/lib/pulp_ostree_client/api/content_refs_api.rb +3 -0
  22. data/lib/pulp_ostree_client/api/content_summaries_api.rb +3 -0
  23. data/lib/pulp_ostree_client/api/distributions_ostree_api.rb +276 -0
  24. data/lib/pulp_ostree_client/api/remotes_ostree_api.rb +276 -0
  25. data/lib/pulp_ostree_client/api/repositories_ostree_api.rb +276 -0
  26. data/lib/pulp_ostree_client/models/my_permissions_response.rb +213 -0
  27. data/lib/pulp_ostree_client/models/nested_role.rb +253 -0
  28. data/lib/pulp_ostree_client/models/nested_role_response.rb +234 -0
  29. data/lib/pulp_ostree_client/models/object_roles_response.rb +213 -0
  30. data/lib/pulp_ostree_client/models/ostree_ostree_content.rb +289 -0
  31. data/lib/pulp_ostree_client/version.rb +1 -1
  32. data/lib/pulp_ostree_client.rb +5 -0
  33. data/spec/api/content_commits_api_spec.rb +1 -0
  34. data/spec/api/content_configs_api_spec.rb +1 -0
  35. data/spec/api/content_content_api_spec.rb +13 -0
  36. data/spec/api/content_objects_api_spec.rb +1 -0
  37. data/spec/api/content_refs_api_spec.rb +1 -0
  38. data/spec/api/content_summaries_api_spec.rb +1 -0
  39. data/spec/api/distributions_ostree_api_spec.rb +54 -0
  40. data/spec/api/remotes_ostree_api_spec.rb +54 -0
  41. data/spec/api/repositories_ostree_api_spec.rb +54 -0
  42. data/spec/models/my_permissions_response_spec.rb +41 -0
  43. data/spec/models/nested_role_response_spec.rb +53 -0
  44. data/spec/models/nested_role_spec.rb +53 -0
  45. data/spec/models/object_roles_response_spec.rb +41 -0
  46. data/spec/models/ostree_ostree_content_spec.rb +59 -0
  47. metadata +56 -36
@@ -0,0 +1,23 @@
1
+ # PulpOstreeClient::OstreeOstreeContent
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **repository** | **String** | A URI of a repository the new content unit should be associated with. | [optional]
8
+ **artifact** | **String** | Artifact file representing the physical content |
9
+ **relative_path** | **String** | |
10
+ **digest** | **String** | |
11
+
12
+ ## Code Sample
13
+
14
+ ```ruby
15
+ require 'PulpOstreeClient'
16
+
17
+ instance = PulpOstreeClient::OstreeOstreeContent.new(repository: null,
18
+ artifact: null,
19
+ relative_path: null,
20
+ digest: null)
21
+ ```
22
+
23
+
@@ -4,17 +4,76 @@ All URIs are relative to *http://pulp*
4
4
 
5
5
  Method | HTTP request | Description
6
6
  ------------- | ------------- | -------------
7
+ [**add_role**](RemotesOstreeApi.md#add_role) | **POST** {ostree_ostree_remote_href}add_role/ | Add a role
7
8
  [**create**](RemotesOstreeApi.md#create) | **POST** /pulp/api/v3/remotes/ostree/ostree/ | Create an ostree remote
8
9
  [**delete**](RemotesOstreeApi.md#delete) | **DELETE** {ostree_ostree_remote_href} | Delete an ostree remote
9
10
  [**list**](RemotesOstreeApi.md#list) | **GET** /pulp/api/v3/remotes/ostree/ostree/ | List ostree remotes
11
+ [**list_roles**](RemotesOstreeApi.md#list_roles) | **GET** {ostree_ostree_remote_href}list_roles/ | List roles
12
+ [**my_permissions**](RemotesOstreeApi.md#my_permissions) | **GET** {ostree_ostree_remote_href}my_permissions/ | List user permissions
10
13
  [**partial_update**](RemotesOstreeApi.md#partial_update) | **PATCH** {ostree_ostree_remote_href} | Update an ostree remote
11
14
  [**read**](RemotesOstreeApi.md#read) | **GET** {ostree_ostree_remote_href} | Inspect an ostree remote
15
+ [**remove_role**](RemotesOstreeApi.md#remove_role) | **POST** {ostree_ostree_remote_href}remove_role/ | Remove a role
12
16
  [**set_label**](RemotesOstreeApi.md#set_label) | **POST** {ostree_ostree_remote_href}set_label/ | Set a label
13
17
  [**unset_label**](RemotesOstreeApi.md#unset_label) | **POST** {ostree_ostree_remote_href}unset_label/ | Unset a label
14
18
  [**update**](RemotesOstreeApi.md#update) | **PUT** {ostree_ostree_remote_href} | Update an ostree remote
15
19
 
16
20
 
17
21
 
22
+ ## add_role
23
+
24
+ > NestedRoleResponse add_role(ostree_ostree_remote_href, nested_role)
25
+
26
+ Add a role
27
+
28
+ Add a role for this object to users/groups.
29
+
30
+ ### Example
31
+
32
+ ```ruby
33
+ # load the gem
34
+ require 'pulp_ostree_client'
35
+ # setup authorization
36
+ PulpOstreeClient.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 = PulpOstreeClient::RemotesOstreeApi.new
43
+ ostree_ostree_remote_href = 'ostree_ostree_remote_href_example' # String |
44
+ nested_role = PulpOstreeClient::NestedRole.new # NestedRole |
45
+
46
+ begin
47
+ #Add a role
48
+ result = api_instance.add_role(ostree_ostree_remote_href, nested_role)
49
+ p result
50
+ rescue PulpOstreeClient::ApiError => e
51
+ puts "Exception when calling RemotesOstreeApi->add_role: #{e}"
52
+ end
53
+ ```
54
+
55
+ ### Parameters
56
+
57
+
58
+ Name | Type | Description | Notes
59
+ ------------- | ------------- | ------------- | -------------
60
+ **ostree_ostree_remote_href** | **String**| |
61
+ **nested_role** | [**NestedRole**](NestedRole.md)| |
62
+
63
+ ### Return type
64
+
65
+ [**NestedRoleResponse**](NestedRoleResponse.md)
66
+
67
+ ### Authorization
68
+
69
+ [basicAuth](../README.md#basicAuth)
70
+
71
+ ### HTTP request headers
72
+
73
+ - **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
74
+ - **Accept**: application/json
75
+
76
+
18
77
  ## create
19
78
 
20
79
  > OstreeOstreeRemoteResponse create(ostree_ostree_remote)
@@ -222,6 +281,124 @@ Name | Type | Description | Notes
222
281
  - **Accept**: application/json
223
282
 
224
283
 
284
+ ## list_roles
285
+
286
+ > ObjectRolesResponse list_roles(ostree_ostree_remote_href, opts)
287
+
288
+ List roles
289
+
290
+ List roles assigned to this object.
291
+
292
+ ### Example
293
+
294
+ ```ruby
295
+ # load the gem
296
+ require 'pulp_ostree_client'
297
+ # setup authorization
298
+ PulpOstreeClient.configure do |config|
299
+ # Configure HTTP basic authorization: basicAuth
300
+ config.username = 'YOUR USERNAME'
301
+ config.password = 'YOUR PASSWORD'
302
+ end
303
+
304
+ api_instance = PulpOstreeClient::RemotesOstreeApi.new
305
+ ostree_ostree_remote_href = 'ostree_ostree_remote_href_example' # String |
306
+ opts = {
307
+ fields: ['fields_example'], # Array<String> | A list of fields to include in the response.
308
+ exclude_fields: ['exclude_fields_example'] # Array<String> | A list of fields to exclude from the response.
309
+ }
310
+
311
+ begin
312
+ #List roles
313
+ result = api_instance.list_roles(ostree_ostree_remote_href, opts)
314
+ p result
315
+ rescue PulpOstreeClient::ApiError => e
316
+ puts "Exception when calling RemotesOstreeApi->list_roles: #{e}"
317
+ end
318
+ ```
319
+
320
+ ### Parameters
321
+
322
+
323
+ Name | Type | Description | Notes
324
+ ------------- | ------------- | ------------- | -------------
325
+ **ostree_ostree_remote_href** | **String**| |
326
+ **fields** | [**Array&lt;String&gt;**](String.md)| A list of fields to include in the response. | [optional]
327
+ **exclude_fields** | [**Array&lt;String&gt;**](String.md)| A list of fields to exclude from the response. | [optional]
328
+
329
+ ### Return type
330
+
331
+ [**ObjectRolesResponse**](ObjectRolesResponse.md)
332
+
333
+ ### Authorization
334
+
335
+ [basicAuth](../README.md#basicAuth)
336
+
337
+ ### HTTP request headers
338
+
339
+ - **Content-Type**: Not defined
340
+ - **Accept**: application/json
341
+
342
+
343
+ ## my_permissions
344
+
345
+ > MyPermissionsResponse my_permissions(ostree_ostree_remote_href, opts)
346
+
347
+ List user permissions
348
+
349
+ List permissions available to the current user on this object.
350
+
351
+ ### Example
352
+
353
+ ```ruby
354
+ # load the gem
355
+ require 'pulp_ostree_client'
356
+ # setup authorization
357
+ PulpOstreeClient.configure do |config|
358
+ # Configure HTTP basic authorization: basicAuth
359
+ config.username = 'YOUR USERNAME'
360
+ config.password = 'YOUR PASSWORD'
361
+ end
362
+
363
+ api_instance = PulpOstreeClient::RemotesOstreeApi.new
364
+ ostree_ostree_remote_href = 'ostree_ostree_remote_href_example' # String |
365
+ opts = {
366
+ fields: ['fields_example'], # Array<String> | A list of fields to include in the response.
367
+ exclude_fields: ['exclude_fields_example'] # Array<String> | A list of fields to exclude from the response.
368
+ }
369
+
370
+ begin
371
+ #List user permissions
372
+ result = api_instance.my_permissions(ostree_ostree_remote_href, opts)
373
+ p result
374
+ rescue PulpOstreeClient::ApiError => e
375
+ puts "Exception when calling RemotesOstreeApi->my_permissions: #{e}"
376
+ end
377
+ ```
378
+
379
+ ### Parameters
380
+
381
+
382
+ Name | Type | Description | Notes
383
+ ------------- | ------------- | ------------- | -------------
384
+ **ostree_ostree_remote_href** | **String**| |
385
+ **fields** | [**Array&lt;String&gt;**](String.md)| A list of fields to include in the response. | [optional]
386
+ **exclude_fields** | [**Array&lt;String&gt;**](String.md)| A list of fields to exclude from the response. | [optional]
387
+
388
+ ### Return type
389
+
390
+ [**MyPermissionsResponse**](MyPermissionsResponse.md)
391
+
392
+ ### Authorization
393
+
394
+ [basicAuth](../README.md#basicAuth)
395
+
396
+ ### HTTP request headers
397
+
398
+ - **Content-Type**: Not defined
399
+ - **Accept**: application/json
400
+
401
+
225
402
  ## partial_update
226
403
 
227
404
  > AsyncOperationResponse partial_update(ostree_ostree_remote_href, patchedostree_ostree_remote)
@@ -336,6 +513,61 @@ Name | Type | Description | Notes
336
513
  - **Accept**: application/json
337
514
 
338
515
 
516
+ ## remove_role
517
+
518
+ > NestedRoleResponse remove_role(ostree_ostree_remote_href, nested_role)
519
+
520
+ Remove a role
521
+
522
+ Remove a role for this object from users/groups.
523
+
524
+ ### Example
525
+
526
+ ```ruby
527
+ # load the gem
528
+ require 'pulp_ostree_client'
529
+ # setup authorization
530
+ PulpOstreeClient.configure do |config|
531
+ # Configure HTTP basic authorization: basicAuth
532
+ config.username = 'YOUR USERNAME'
533
+ config.password = 'YOUR PASSWORD'
534
+ end
535
+
536
+ api_instance = PulpOstreeClient::RemotesOstreeApi.new
537
+ ostree_ostree_remote_href = 'ostree_ostree_remote_href_example' # String |
538
+ nested_role = PulpOstreeClient::NestedRole.new # NestedRole |
539
+
540
+ begin
541
+ #Remove a role
542
+ result = api_instance.remove_role(ostree_ostree_remote_href, nested_role)
543
+ p result
544
+ rescue PulpOstreeClient::ApiError => e
545
+ puts "Exception when calling RemotesOstreeApi->remove_role: #{e}"
546
+ end
547
+ ```
548
+
549
+ ### Parameters
550
+
551
+
552
+ Name | Type | Description | Notes
553
+ ------------- | ------------- | ------------- | -------------
554
+ **ostree_ostree_remote_href** | **String**| |
555
+ **nested_role** | [**NestedRole**](NestedRole.md)| |
556
+
557
+ ### Return type
558
+
559
+ [**NestedRoleResponse**](NestedRoleResponse.md)
560
+
561
+ ### Authorization
562
+
563
+ [basicAuth](../README.md#basicAuth)
564
+
565
+ ### HTTP request headers
566
+
567
+ - **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
568
+ - **Accept**: application/json
569
+
570
+
339
571
  ## set_label
340
572
 
341
573
  > SetLabelResponse set_label(ostree_ostree_remote_href, set_label)
@@ -4,14 +4,18 @@ All URIs are relative to *http://pulp*
4
4
 
5
5
  Method | HTTP request | Description
6
6
  ------------- | ------------- | -------------
7
+ [**add_role**](RepositoriesOstreeApi.md#add_role) | **POST** {ostree_ostree_repository_href}add_role/ | Add a role
7
8
  [**create**](RepositoriesOstreeApi.md#create) | **POST** /pulp/api/v3/repositories/ostree/ostree/ | Create an ostree repository
8
9
  [**delete**](RepositoriesOstreeApi.md#delete) | **DELETE** {ostree_ostree_repository_href} | Delete an ostree repository
9
10
  [**import_all**](RepositoriesOstreeApi.md#import_all) | **POST** {ostree_ostree_repository_href}import_all/ | Import refs and commits to a repository
10
11
  [**import_commits**](RepositoriesOstreeApi.md#import_commits) | **POST** {ostree_ostree_repository_href}import_commits/ | Append child commits to a repository
11
12
  [**list**](RepositoriesOstreeApi.md#list) | **GET** /pulp/api/v3/repositories/ostree/ostree/ | List ostree repositorys
13
+ [**list_roles**](RepositoriesOstreeApi.md#list_roles) | **GET** {ostree_ostree_repository_href}list_roles/ | List roles
12
14
  [**modify**](RepositoriesOstreeApi.md#modify) | **POST** {ostree_ostree_repository_href}modify/ | Modify repository
15
+ [**my_permissions**](RepositoriesOstreeApi.md#my_permissions) | **GET** {ostree_ostree_repository_href}my_permissions/ | List user permissions
13
16
  [**partial_update**](RepositoriesOstreeApi.md#partial_update) | **PATCH** {ostree_ostree_repository_href} | Update an ostree repository
14
17
  [**read**](RepositoriesOstreeApi.md#read) | **GET** {ostree_ostree_repository_href} | Inspect an ostree repository
18
+ [**remove_role**](RepositoriesOstreeApi.md#remove_role) | **POST** {ostree_ostree_repository_href}remove_role/ | Remove a role
15
19
  [**set_label**](RepositoriesOstreeApi.md#set_label) | **POST** {ostree_ostree_repository_href}set_label/ | Set a label
16
20
  [**sync**](RepositoriesOstreeApi.md#sync) | **POST** {ostree_ostree_repository_href}sync/ | Sync from remote
17
21
  [**unset_label**](RepositoriesOstreeApi.md#unset_label) | **POST** {ostree_ostree_repository_href}unset_label/ | Unset a label
@@ -19,6 +23,61 @@ Method | HTTP request | Description
19
23
 
20
24
 
21
25
 
26
+ ## add_role
27
+
28
+ > NestedRoleResponse add_role(ostree_ostree_repository_href, nested_role)
29
+
30
+ Add a role
31
+
32
+ Add a role for this object to users/groups.
33
+
34
+ ### Example
35
+
36
+ ```ruby
37
+ # load the gem
38
+ require 'pulp_ostree_client'
39
+ # setup authorization
40
+ PulpOstreeClient.configure do |config|
41
+ # Configure HTTP basic authorization: basicAuth
42
+ config.username = 'YOUR USERNAME'
43
+ config.password = 'YOUR PASSWORD'
44
+ end
45
+
46
+ api_instance = PulpOstreeClient::RepositoriesOstreeApi.new
47
+ ostree_ostree_repository_href = 'ostree_ostree_repository_href_example' # String |
48
+ nested_role = PulpOstreeClient::NestedRole.new # NestedRole |
49
+
50
+ begin
51
+ #Add a role
52
+ result = api_instance.add_role(ostree_ostree_repository_href, nested_role)
53
+ p result
54
+ rescue PulpOstreeClient::ApiError => e
55
+ puts "Exception when calling RepositoriesOstreeApi->add_role: #{e}"
56
+ end
57
+ ```
58
+
59
+ ### Parameters
60
+
61
+
62
+ Name | Type | Description | Notes
63
+ ------------- | ------------- | ------------- | -------------
64
+ **ostree_ostree_repository_href** | **String**| |
65
+ **nested_role** | [**NestedRole**](NestedRole.md)| |
66
+
67
+ ### Return type
68
+
69
+ [**NestedRoleResponse**](NestedRoleResponse.md)
70
+
71
+ ### Authorization
72
+
73
+ [basicAuth](../README.md#basicAuth)
74
+
75
+ ### HTTP request headers
76
+
77
+ - **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
78
+ - **Accept**: application/json
79
+
80
+
22
81
  ## create
23
82
 
24
83
  > OstreeOstreeRepositoryResponse create(ostree_ostree_repository)
@@ -346,6 +405,65 @@ Name | Type | Description | Notes
346
405
  - **Accept**: application/json
347
406
 
348
407
 
408
+ ## list_roles
409
+
410
+ > ObjectRolesResponse list_roles(ostree_ostree_repository_href, opts)
411
+
412
+ List roles
413
+
414
+ List roles assigned to this object.
415
+
416
+ ### Example
417
+
418
+ ```ruby
419
+ # load the gem
420
+ require 'pulp_ostree_client'
421
+ # setup authorization
422
+ PulpOstreeClient.configure do |config|
423
+ # Configure HTTP basic authorization: basicAuth
424
+ config.username = 'YOUR USERNAME'
425
+ config.password = 'YOUR PASSWORD'
426
+ end
427
+
428
+ api_instance = PulpOstreeClient::RepositoriesOstreeApi.new
429
+ ostree_ostree_repository_href = 'ostree_ostree_repository_href_example' # String |
430
+ opts = {
431
+ fields: ['fields_example'], # Array<String> | A list of fields to include in the response.
432
+ exclude_fields: ['exclude_fields_example'] # Array<String> | A list of fields to exclude from the response.
433
+ }
434
+
435
+ begin
436
+ #List roles
437
+ result = api_instance.list_roles(ostree_ostree_repository_href, opts)
438
+ p result
439
+ rescue PulpOstreeClient::ApiError => e
440
+ puts "Exception when calling RepositoriesOstreeApi->list_roles: #{e}"
441
+ end
442
+ ```
443
+
444
+ ### Parameters
445
+
446
+
447
+ Name | Type | Description | Notes
448
+ ------------- | ------------- | ------------- | -------------
449
+ **ostree_ostree_repository_href** | **String**| |
450
+ **fields** | [**Array&lt;String&gt;**](String.md)| A list of fields to include in the response. | [optional]
451
+ **exclude_fields** | [**Array&lt;String&gt;**](String.md)| A list of fields to exclude from the response. | [optional]
452
+
453
+ ### Return type
454
+
455
+ [**ObjectRolesResponse**](ObjectRolesResponse.md)
456
+
457
+ ### Authorization
458
+
459
+ [basicAuth](../README.md#basicAuth)
460
+
461
+ ### HTTP request headers
462
+
463
+ - **Content-Type**: Not defined
464
+ - **Accept**: application/json
465
+
466
+
349
467
  ## modify
350
468
 
351
469
  > AsyncOperationResponse modify(ostree_ostree_repository_href, repository_add_remove_content)
@@ -401,6 +519,65 @@ Name | Type | Description | Notes
401
519
  - **Accept**: application/json
402
520
 
403
521
 
522
+ ## my_permissions
523
+
524
+ > MyPermissionsResponse my_permissions(ostree_ostree_repository_href, opts)
525
+
526
+ List user permissions
527
+
528
+ List permissions available to the current user on this object.
529
+
530
+ ### Example
531
+
532
+ ```ruby
533
+ # load the gem
534
+ require 'pulp_ostree_client'
535
+ # setup authorization
536
+ PulpOstreeClient.configure do |config|
537
+ # Configure HTTP basic authorization: basicAuth
538
+ config.username = 'YOUR USERNAME'
539
+ config.password = 'YOUR PASSWORD'
540
+ end
541
+
542
+ api_instance = PulpOstreeClient::RepositoriesOstreeApi.new
543
+ ostree_ostree_repository_href = 'ostree_ostree_repository_href_example' # String |
544
+ opts = {
545
+ fields: ['fields_example'], # Array<String> | A list of fields to include in the response.
546
+ exclude_fields: ['exclude_fields_example'] # Array<String> | A list of fields to exclude from the response.
547
+ }
548
+
549
+ begin
550
+ #List user permissions
551
+ result = api_instance.my_permissions(ostree_ostree_repository_href, opts)
552
+ p result
553
+ rescue PulpOstreeClient::ApiError => e
554
+ puts "Exception when calling RepositoriesOstreeApi->my_permissions: #{e}"
555
+ end
556
+ ```
557
+
558
+ ### Parameters
559
+
560
+
561
+ Name | Type | Description | Notes
562
+ ------------- | ------------- | ------------- | -------------
563
+ **ostree_ostree_repository_href** | **String**| |
564
+ **fields** | [**Array&lt;String&gt;**](String.md)| A list of fields to include in the response. | [optional]
565
+ **exclude_fields** | [**Array&lt;String&gt;**](String.md)| A list of fields to exclude from the response. | [optional]
566
+
567
+ ### Return type
568
+
569
+ [**MyPermissionsResponse**](MyPermissionsResponse.md)
570
+
571
+ ### Authorization
572
+
573
+ [basicAuth](../README.md#basicAuth)
574
+
575
+ ### HTTP request headers
576
+
577
+ - **Content-Type**: Not defined
578
+ - **Accept**: application/json
579
+
580
+
404
581
  ## partial_update
405
582
 
406
583
  > AsyncOperationResponse partial_update(ostree_ostree_repository_href, patchedostree_ostree_repository)
@@ -515,6 +692,61 @@ Name | Type | Description | Notes
515
692
  - **Accept**: application/json
516
693
 
517
694
 
695
+ ## remove_role
696
+
697
+ > NestedRoleResponse remove_role(ostree_ostree_repository_href, nested_role)
698
+
699
+ Remove a role
700
+
701
+ Remove a role for this object from users/groups.
702
+
703
+ ### Example
704
+
705
+ ```ruby
706
+ # load the gem
707
+ require 'pulp_ostree_client'
708
+ # setup authorization
709
+ PulpOstreeClient.configure do |config|
710
+ # Configure HTTP basic authorization: basicAuth
711
+ config.username = 'YOUR USERNAME'
712
+ config.password = 'YOUR PASSWORD'
713
+ end
714
+
715
+ api_instance = PulpOstreeClient::RepositoriesOstreeApi.new
716
+ ostree_ostree_repository_href = 'ostree_ostree_repository_href_example' # String |
717
+ nested_role = PulpOstreeClient::NestedRole.new # NestedRole |
718
+
719
+ begin
720
+ #Remove a role
721
+ result = api_instance.remove_role(ostree_ostree_repository_href, nested_role)
722
+ p result
723
+ rescue PulpOstreeClient::ApiError => e
724
+ puts "Exception when calling RepositoriesOstreeApi->remove_role: #{e}"
725
+ end
726
+ ```
727
+
728
+ ### Parameters
729
+
730
+
731
+ Name | Type | Description | Notes
732
+ ------------- | ------------- | ------------- | -------------
733
+ **ostree_ostree_repository_href** | **String**| |
734
+ **nested_role** | [**NestedRole**](NestedRole.md)| |
735
+
736
+ ### Return type
737
+
738
+ [**NestedRoleResponse**](NestedRoleResponse.md)
739
+
740
+ ### Authorization
741
+
742
+ [basicAuth](../README.md#basicAuth)
743
+
744
+ ### HTTP request headers
745
+
746
+ - **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
747
+ - **Accept**: application/json
748
+
749
+
518
750
  ## set_label
519
751
 
520
752
  > SetLabelResponse set_label(ostree_ostree_repository_href, set_label)
@@ -26,6 +26,7 @@ module PulpOstreeClient
26
26
  # @option opts [Integer] :limit Number of results to return per page.
27
27
  # @option opts [Integer] :offset The initial index from which to return the results.
28
28
  # @option opts [Array<String>] :ordering Ordering * &#x60;pulp_id&#x60; - Pulp id * &#x60;-pulp_id&#x60; - Pulp id (descending) * &#x60;pulp_created&#x60; - Pulp created * &#x60;-pulp_created&#x60; - Pulp created (descending) * &#x60;pulp_last_updated&#x60; - Pulp last updated * &#x60;-pulp_last_updated&#x60; - Pulp last updated (descending) * &#x60;pulp_type&#x60; - Pulp type * &#x60;-pulp_type&#x60; - Pulp type (descending) * &#x60;upstream_id&#x60; - Upstream id * &#x60;-upstream_id&#x60; - Upstream id (descending) * &#x60;timestamp_of_interest&#x60; - Timestamp of interest * &#x60;-timestamp_of_interest&#x60; - Timestamp of interest (descending) * &#x60;checksum&#x60; - Checksum * &#x60;-checksum&#x60; - Checksum (descending) * &#x60;relative_path&#x60; - Relative path * &#x60;-relative_path&#x60; - Relative path (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
29
+ # @option opts [Float] :orphaned_for Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME.
29
30
  # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
30
31
  # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
31
32
  # @option opts [String] :q
@@ -47,6 +48,7 @@ module PulpOstreeClient
47
48
  # @option opts [Integer] :limit Number of results to return per page.
48
49
  # @option opts [Integer] :offset The initial index from which to return the results.
49
50
  # @option opts [Array<String>] :ordering Ordering * &#x60;pulp_id&#x60; - Pulp id * &#x60;-pulp_id&#x60; - Pulp id (descending) * &#x60;pulp_created&#x60; - Pulp created * &#x60;-pulp_created&#x60; - Pulp created (descending) * &#x60;pulp_last_updated&#x60; - Pulp last updated * &#x60;-pulp_last_updated&#x60; - Pulp last updated (descending) * &#x60;pulp_type&#x60; - Pulp type * &#x60;-pulp_type&#x60; - Pulp type (descending) * &#x60;upstream_id&#x60; - Upstream id * &#x60;-upstream_id&#x60; - Upstream id (descending) * &#x60;timestamp_of_interest&#x60; - Timestamp of interest * &#x60;-timestamp_of_interest&#x60; - Timestamp of interest (descending) * &#x60;checksum&#x60; - Checksum * &#x60;-checksum&#x60; - Checksum (descending) * &#x60;relative_path&#x60; - Relative path * &#x60;-relative_path&#x60; - Relative path (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
51
+ # @option opts [Float] :orphaned_for Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME.
50
52
  # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
51
53
  # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
52
54
  # @option opts [String] :q
@@ -73,6 +75,7 @@ module PulpOstreeClient
73
75
  query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
74
76
  query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
75
77
  query_params[:'ordering'] = @api_client.build_collection_param(opts[:'ordering'], :csv) if !opts[:'ordering'].nil?
78
+ query_params[:'orphaned_for'] = opts[:'orphaned_for'] if !opts[:'orphaned_for'].nil?
76
79
  query_params[:'pulp_href__in'] = @api_client.build_collection_param(opts[:'pulp_href__in'], :csv) if !opts[:'pulp_href__in'].nil?
77
80
  query_params[:'pulp_id__in'] = @api_client.build_collection_param(opts[:'pulp_id__in'], :csv) if !opts[:'pulp_id__in'].nil?
78
81
  query_params[:'q'] = opts[:'q'] if !opts[:'q'].nil?
@@ -25,6 +25,7 @@ module PulpOstreeClient
25
25
  # @option opts [Integer] :limit Number of results to return per page.
26
26
  # @option opts [Integer] :offset The initial index from which to return the results.
27
27
  # @option opts [Array<String>] :ordering Ordering * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
28
+ # @option opts [Float] :orphaned_for Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME.
28
29
  # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
29
30
  # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
30
31
  # @option opts [String] :q
@@ -45,6 +46,7 @@ module PulpOstreeClient
45
46
  # @option opts [Integer] :limit Number of results to return per page.
46
47
  # @option opts [Integer] :offset The initial index from which to return the results.
47
48
  # @option opts [Array<String>] :ordering Ordering * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
49
+ # @option opts [Float] :orphaned_for Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME.
48
50
  # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
49
51
  # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
50
52
  # @option opts [String] :q
@@ -70,6 +72,7 @@ module PulpOstreeClient
70
72
  query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
71
73
  query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
72
74
  query_params[:'ordering'] = @api_client.build_collection_param(opts[:'ordering'], :csv) if !opts[:'ordering'].nil?
75
+ query_params[:'orphaned_for'] = opts[:'orphaned_for'] if !opts[:'orphaned_for'].nil?
73
76
  query_params[:'pulp_href__in'] = @api_client.build_collection_param(opts[:'pulp_href__in'], :csv) if !opts[:'pulp_href__in'].nil?
74
77
  query_params[:'pulp_id__in'] = @api_client.build_collection_param(opts[:'pulp_id__in'], :csv) if !opts[:'pulp_id__in'].nil?
75
78
  query_params[:'q'] = opts[:'q'] if !opts[:'q'].nil?