pulp_ostree_client 2.2.1 → 2.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +23 -4
- data/docs/ContentCommitsApi.md +2 -0
- data/docs/ContentConfigsApi.md +2 -0
- data/docs/ContentContentApi.md +56 -0
- data/docs/ContentObjectsApi.md +2 -0
- data/docs/ContentRefsApi.md +2 -0
- data/docs/ContentSummariesApi.md +2 -0
- data/docs/DistributionsOstreeApi.md +232 -0
- 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/OstreeOstreeCommitResponse.md +2 -0
- data/docs/OstreeOstreeConfigResponse.md +2 -0
- data/docs/OstreeOstreeContent.md +23 -0
- data/docs/OstreeOstreeContentResponse.md +2 -0
- data/docs/OstreeOstreeDistributionResponse.md +2 -0
- data/docs/OstreeOstreeObjectResponse.md +2 -0
- data/docs/OstreeOstreeRefResponse.md +2 -0
- data/docs/OstreeOstreeRemoteResponse.md +2 -2
- data/docs/OstreeOstreeRemoteResponseHiddenFields.md +2 -2
- data/docs/OstreeOstreeRepositoryResponse.md +2 -0
- data/docs/OstreeOstreeSummaryResponse.md +2 -0
- data/docs/PaginatedRepositoryVersionResponseList.md +2 -2
- data/docs/PaginatedostreeOstreeCommitResponseList.md +2 -2
- data/docs/PaginatedostreeOstreeConfigResponseList.md +2 -2
- data/docs/PaginatedostreeOstreeContentResponseList.md +2 -2
- data/docs/PaginatedostreeOstreeDistributionResponseList.md +2 -2
- data/docs/PaginatedostreeOstreeObjectResponseList.md +2 -2
- data/docs/PaginatedostreeOstreeRefResponseList.md +2 -2
- data/docs/PaginatedostreeOstreeRemoteResponseList.md +2 -2
- data/docs/PaginatedostreeOstreeRepositoryResponseList.md +2 -2
- data/docs/PaginatedostreeOstreeSummaryResponseList.md +2 -2
- data/docs/RemotesOstreeApi.md +232 -0
- data/docs/RepositoriesOstreeApi.md +232 -0
- data/docs/RepositoryVersionResponse.md +2 -0
- data/lib/pulp_ostree_client/api/content_commits_api.rb +3 -0
- data/lib/pulp_ostree_client/api/content_configs_api.rb +3 -0
- data/lib/pulp_ostree_client/api/content_content_api.rb +67 -0
- data/lib/pulp_ostree_client/api/content_objects_api.rb +3 -0
- data/lib/pulp_ostree_client/api/content_refs_api.rb +3 -0
- data/lib/pulp_ostree_client/api/content_summaries_api.rb +3 -0
- data/lib/pulp_ostree_client/api/distributions_ostree_api.rb +276 -0
- data/lib/pulp_ostree_client/api/remotes_ostree_api.rb +276 -0
- data/lib/pulp_ostree_client/api/repositories_ostree_api.rb +276 -0
- data/lib/pulp_ostree_client/models/my_permissions_response.rb +213 -0
- data/lib/pulp_ostree_client/models/nested_role.rb +253 -0
- data/lib/pulp_ostree_client/models/nested_role_response.rb +234 -0
- data/lib/pulp_ostree_client/models/object_roles_response.rb +213 -0
- data/lib/pulp_ostree_client/models/ostree_ostree_commit_response.rb +11 -1
- data/lib/pulp_ostree_client/models/ostree_ostree_config_response.rb +11 -1
- data/lib/pulp_ostree_client/models/ostree_ostree_content.rb +289 -0
- data/lib/pulp_ostree_client/models/ostree_ostree_content_response.rb +11 -1
- data/lib/pulp_ostree_client/models/ostree_ostree_distribution_response.rb +11 -1
- data/lib/pulp_ostree_client/models/ostree_ostree_object_response.rb +11 -1
- data/lib/pulp_ostree_client/models/ostree_ostree_ref_response.rb +11 -1
- data/lib/pulp_ostree_client/models/ostree_ostree_remote_response.rb +11 -11
- data/lib/pulp_ostree_client/models/ostree_ostree_remote_response_hidden_fields.rb +10 -0
- data/lib/pulp_ostree_client/models/ostree_ostree_repository_response.rb +11 -1
- data/lib/pulp_ostree_client/models/ostree_ostree_summary_response.rb +11 -1
- data/lib/pulp_ostree_client/models/paginated_repository_version_response_list.rb +10 -0
- data/lib/pulp_ostree_client/models/paginatedostree_ostree_commit_response_list.rb +10 -0
- data/lib/pulp_ostree_client/models/paginatedostree_ostree_config_response_list.rb +10 -0
- data/lib/pulp_ostree_client/models/paginatedostree_ostree_content_response_list.rb +10 -0
- data/lib/pulp_ostree_client/models/paginatedostree_ostree_distribution_response_list.rb +10 -0
- data/lib/pulp_ostree_client/models/paginatedostree_ostree_object_response_list.rb +10 -0
- data/lib/pulp_ostree_client/models/paginatedostree_ostree_ref_response_list.rb +10 -0
- data/lib/pulp_ostree_client/models/paginatedostree_ostree_remote_response_list.rb +10 -0
- data/lib/pulp_ostree_client/models/paginatedostree_ostree_repository_response_list.rb +10 -0
- data/lib/pulp_ostree_client/models/paginatedostree_ostree_summary_response_list.rb +10 -0
- data/lib/pulp_ostree_client/models/repository_version_response.rb +11 -1
- data/lib/pulp_ostree_client/version.rb +1 -1
- data/lib/pulp_ostree_client.rb +5 -0
- data/spec/api/content_commits_api_spec.rb +1 -0
- data/spec/api/content_configs_api_spec.rb +1 -0
- data/spec/api/content_content_api_spec.rb +13 -0
- data/spec/api/content_objects_api_spec.rb +1 -0
- data/spec/api/content_refs_api_spec.rb +1 -0
- data/spec/api/content_summaries_api_spec.rb +1 -0
- data/spec/api/distributions_ostree_api_spec.rb +54 -0
- data/spec/api/remotes_ostree_api_spec.rb +54 -0
- data/spec/api/repositories_ostree_api_spec.rb +54 -0
- data/spec/models/my_permissions_response_spec.rb +41 -0
- data/spec/models/nested_role_response_spec.rb +53 -0
- data/spec/models/nested_role_spec.rb +53 -0
- data/spec/models/object_roles_response_spec.rb +41 -0
- data/spec/models/ostree_ostree_commit_response_spec.rb +6 -0
- data/spec/models/ostree_ostree_config_response_spec.rb +6 -0
- data/spec/models/ostree_ostree_content_response_spec.rb +6 -0
- data/spec/models/ostree_ostree_content_spec.rb +59 -0
- data/spec/models/ostree_ostree_distribution_response_spec.rb +6 -0
- data/spec/models/ostree_ostree_object_response_spec.rb +6 -0
- data/spec/models/ostree_ostree_ref_response_spec.rb +6 -0
- data/spec/models/ostree_ostree_remote_response_spec.rb +6 -6
- data/spec/models/ostree_ostree_repository_response_spec.rb +6 -0
- data/spec/models/ostree_ostree_summary_response_spec.rb +6 -0
- data/spec/models/repository_version_response_spec.rb +6 -0
- metadata +55 -35
@@ -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<String>**](String.md)| A list of fields to include in the response. | [optional]
|
451
|
+
**exclude_fields** | [**Array<String>**](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<String>**](String.md)| A list of fields to include in the response. | [optional]
|
565
|
+
**exclude_fields** | [**Array<String>**](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)
|
@@ -6,6 +6,7 @@ Name | Type | Description | Notes
|
|
6
6
|
------------ | ------------- | ------------- | -------------
|
7
7
|
**pulp_href** | **String** | | [optional] [readonly]
|
8
8
|
**pulp_created** | **DateTime** | Timestamp of creation. | [optional] [readonly]
|
9
|
+
**pulp_last_updated** | **DateTime** | Timestamp of the last time this resource was updated. Note: for immutable resources - like content, repository versions, and publication - pulp_created and pulp_last_updated dates will be the same. | [optional] [readonly]
|
9
10
|
**number** | **Integer** | | [optional] [readonly]
|
10
11
|
**repository** | **String** | | [optional] [readonly]
|
11
12
|
**base_version** | **String** | A repository version whose content was used as the initial set of content for this repository version | [optional]
|
@@ -18,6 +19,7 @@ require 'PulpOstreeClient'
|
|
18
19
|
|
19
20
|
instance = PulpOstreeClient::RepositoryVersionResponse.new(pulp_href: null,
|
20
21
|
pulp_created: null,
|
22
|
+
pulp_last_updated: null,
|
21
23
|
number: null,
|
22
24
|
repository: null,
|
23
25
|
base_version: null,
|
@@ -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 * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `upstream_id` - Upstream id * `-upstream_id` - Upstream id (descending) * `timestamp_of_interest` - Timestamp of interest * `-timestamp_of_interest` - Timestamp of interest (descending) * `checksum` - Checksum * `-checksum` - Checksum (descending) * `relative_path` - Relative path * `-relative_path` - Relative path (descending) * `pk` - Pk * `-pk` - 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 * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `upstream_id` - Upstream id * `-upstream_id` - Upstream id (descending) * `timestamp_of_interest` - Timestamp of interest * `-timestamp_of_interest` - Timestamp of interest (descending) * `checksum` - Checksum * `-checksum` - Checksum (descending) * `relative_path` - Relative path * `-relative_path` - Relative path (descending) * `pk` - Pk * `-pk` - 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 * `pk` - Pk * `-pk` - 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 * `pk` - Pk * `-pk` - 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?
|
@@ -19,12 +19,77 @@ module PulpOstreeClient
|
|
19
19
|
def initialize(api_client = ApiClient.default)
|
20
20
|
@api_client = api_client
|
21
21
|
end
|
22
|
+
# Create an ostree content
|
23
|
+
# Trigger an asynchronous task to create content,optionally create new repository version.
|
24
|
+
# @param ostree_ostree_content [OstreeOstreeContent]
|
25
|
+
# @param [Hash] opts the optional parameters
|
26
|
+
# @return [AsyncOperationResponse]
|
27
|
+
def create(ostree_ostree_content, opts = {})
|
28
|
+
data, _status_code, _headers = create_with_http_info(ostree_ostree_content, opts)
|
29
|
+
data
|
30
|
+
end
|
31
|
+
|
32
|
+
# Create an ostree content
|
33
|
+
# Trigger an asynchronous task to create content,optionally create new repository version.
|
34
|
+
# @param ostree_ostree_content [OstreeOstreeContent]
|
35
|
+
# @param [Hash] opts the optional parameters
|
36
|
+
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
37
|
+
def create_with_http_info(ostree_ostree_content, opts = {})
|
38
|
+
if @api_client.config.debugging
|
39
|
+
@api_client.config.logger.debug 'Calling API: ContentContentApi.create ...'
|
40
|
+
end
|
41
|
+
# verify the required parameter 'ostree_ostree_content' is set
|
42
|
+
if @api_client.config.client_side_validation && ostree_ostree_content.nil?
|
43
|
+
fail ArgumentError, "Missing the required parameter 'ostree_ostree_content' when calling ContentContentApi.create"
|
44
|
+
end
|
45
|
+
# resource path
|
46
|
+
local_var_path = '/pulp/api/v3/content/ostree/content/'
|
47
|
+
|
48
|
+
# query parameters
|
49
|
+
query_params = opts[:query_params] || {}
|
50
|
+
|
51
|
+
# header parameters
|
52
|
+
header_params = opts[:header_params] || {}
|
53
|
+
# HTTP header 'Accept' (if needed)
|
54
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
55
|
+
# HTTP header 'Content-Type'
|
56
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
57
|
+
|
58
|
+
# form parameters
|
59
|
+
form_params = opts[:form_params] || {}
|
60
|
+
|
61
|
+
# http body (model)
|
62
|
+
post_body = opts[:body] || @api_client.object_to_http_body(ostree_ostree_content)
|
63
|
+
|
64
|
+
# return_type
|
65
|
+
return_type = opts[:return_type] || 'AsyncOperationResponse'
|
66
|
+
|
67
|
+
# auth_names
|
68
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
69
|
+
|
70
|
+
new_options = opts.merge(
|
71
|
+
:header_params => header_params,
|
72
|
+
:query_params => query_params,
|
73
|
+
:form_params => form_params,
|
74
|
+
:body => post_body,
|
75
|
+
:auth_names => auth_names,
|
76
|
+
:return_type => return_type
|
77
|
+
)
|
78
|
+
|
79
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
80
|
+
if @api_client.config.debugging
|
81
|
+
@api_client.config.logger.debug "API called: ContentContentApi#create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
82
|
+
end
|
83
|
+
return data, status_code, headers
|
84
|
+
end
|
85
|
+
|
22
86
|
# List ostree contents
|
23
87
|
# A ViewSet class for uncategorized content units (e.g., static deltas).
|
24
88
|
# @param [Hash] opts the optional parameters
|
25
89
|
# @option opts [Integer] :limit Number of results to return per page.
|
26
90
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
27
91
|
# @option opts [Array<String>] :ordering Ordering * `pk` - Pk * `-pk` - Pk (descending)
|
92
|
+
# @option opts [Float] :orphaned_for Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME.
|
28
93
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
29
94
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
30
95
|
# @option opts [String] :q
|
@@ -45,6 +110,7 @@ module PulpOstreeClient
|
|
45
110
|
# @option opts [Integer] :limit Number of results to return per page.
|
46
111
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
47
112
|
# @option opts [Array<String>] :ordering Ordering * `pk` - Pk * `-pk` - Pk (descending)
|
113
|
+
# @option opts [Float] :orphaned_for Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME.
|
48
114
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
49
115
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
50
116
|
# @option opts [String] :q
|
@@ -70,6 +136,7 @@ module PulpOstreeClient
|
|
70
136
|
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
71
137
|
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
72
138
|
query_params[:'ordering'] = @api_client.build_collection_param(opts[:'ordering'], :csv) if !opts[:'ordering'].nil?
|
139
|
+
query_params[:'orphaned_for'] = opts[:'orphaned_for'] if !opts[:'orphaned_for'].nil?
|
73
140
|
query_params[:'pulp_href__in'] = @api_client.build_collection_param(opts[:'pulp_href__in'], :csv) if !opts[:'pulp_href__in'].nil?
|
74
141
|
query_params[:'pulp_id__in'] = @api_client.build_collection_param(opts[:'pulp_id__in'], :csv) if !opts[:'pulp_id__in'].nil?
|
75
142
|
query_params[:'q'] = opts[:'q'] if !opts[:'q'].nil?
|
@@ -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 * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `upstream_id` - Upstream id * `-upstream_id` - Upstream id (descending) * `timestamp_of_interest` - Timestamp of interest * `-timestamp_of_interest` - Timestamp of interest (descending) * `typ` - Typ * `-typ` - Typ (descending) * `checksum` - Checksum * `-checksum` - Checksum (descending) * `relative_path` - Relative path * `-relative_path` - Relative path (descending) * `pk` - Pk * `-pk` - 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 * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `upstream_id` - Upstream id * `-upstream_id` - Upstream id (descending) * `timestamp_of_interest` - Timestamp of interest * `-timestamp_of_interest` - Timestamp of interest (descending) * `typ` - Typ * `-typ` - Typ (descending) * `checksum` - Checksum * `-checksum` - Checksum (descending) * `relative_path` - Relative path * `-relative_path` - Relative path (descending) * `pk` - Pk * `-pk` - 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?
|
@@ -35,6 +35,7 @@ module PulpOstreeClient
|
|
35
35
|
# @option opts [String] :name__startswith Filter results where name starts with value
|
36
36
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
37
37
|
# @option opts [Array<String>] :ordering Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `upstream_id` - Upstream id * `-upstream_id` - Upstream id (descending) * `timestamp_of_interest` - Timestamp of interest * `-timestamp_of_interest` - Timestamp of interest (descending) * `name` - Name * `-name` - Name (descending) * `relative_path` - Relative path * `-relative_path` - Relative path (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
38
|
+
# @option opts [Float] :orphaned_for Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME.
|
38
39
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
39
40
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
40
41
|
# @option opts [String] :q
|
@@ -65,6 +66,7 @@ module PulpOstreeClient
|
|
65
66
|
# @option opts [String] :name__startswith Filter results where name starts with value
|
66
67
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
67
68
|
# @option opts [Array<String>] :ordering Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `upstream_id` - Upstream id * `-upstream_id` - Upstream id (descending) * `timestamp_of_interest` - Timestamp of interest * `-timestamp_of_interest` - Timestamp of interest (descending) * `name` - Name * `-name` - Name (descending) * `relative_path` - Relative path * `-relative_path` - Relative path (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
69
|
+
# @option opts [Float] :orphaned_for Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME.
|
68
70
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
69
71
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
70
72
|
# @option opts [String] :q
|
@@ -100,6 +102,7 @@ module PulpOstreeClient
|
|
100
102
|
query_params[:'name__startswith'] = opts[:'name__startswith'] if !opts[:'name__startswith'].nil?
|
101
103
|
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
102
104
|
query_params[:'ordering'] = @api_client.build_collection_param(opts[:'ordering'], :csv) if !opts[:'ordering'].nil?
|
105
|
+
query_params[:'orphaned_for'] = opts[:'orphaned_for'] if !opts[:'orphaned_for'].nil?
|
103
106
|
query_params[:'pulp_href__in'] = @api_client.build_collection_param(opts[:'pulp_href__in'], :csv) if !opts[:'pulp_href__in'].nil?
|
104
107
|
query_params[:'pulp_id__in'] = @api_client.build_collection_param(opts[:'pulp_id__in'], :csv) if !opts[:'pulp_id__in'].nil?
|
105
108
|
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 * `pk` - Pk * `-pk` - 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 * `pk` - Pk * `-pk` - 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?
|