pulp_ostree_client 2.4.5 → 2.4.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +29 -12
- data/docs/AsyncOperationResponse.md +8 -7
- data/docs/ContentCommitsApi.md +228 -47
- data/docs/ContentConfigsApi.md +227 -46
- data/docs/ContentContentApi.md +255 -57
- data/docs/ContentObjectsApi.md +228 -47
- data/docs/ContentRefsApi.md +238 -57
- data/docs/ContentSummariesApi.md +227 -46
- data/docs/ContentSummaryResponse.md +12 -11
- data/docs/DistributionsOstreeApi.md +387 -182
- data/docs/MyPermissionsResponse.md +8 -7
- data/docs/NestedRole.md +12 -11
- data/docs/NestedRoleResponse.md +12 -11
- data/docs/ObjectRolesResponse.md +8 -7
- data/docs/OstreeImportAll.md +10 -9
- data/docs/OstreeImportCommitsToRef.md +12 -11
- data/docs/OstreeOstreeCommitResponse.md +26 -23
- data/docs/OstreeOstreeConfigResponse.md +20 -17
- data/docs/OstreeOstreeContent.md +16 -13
- data/docs/OstreeOstreeContentResponse.md +22 -19
- data/docs/OstreeOstreeDistribution.md +20 -19
- data/docs/OstreeOstreeDistributionResponse.md +32 -31
- data/docs/OstreeOstreeObjectResponse.md +24 -21
- data/docs/OstreeOstreeRefResponse.md +26 -23
- data/docs/OstreeOstreeRemote.md +54 -53
- data/docs/OstreeOstreeRemoteResponse.md +54 -53
- data/docs/OstreeOstreeRemoteResponseHiddenFieldsInner.md +20 -0
- data/docs/OstreeOstreeRepository.md +18 -17
- data/docs/OstreeOstreeRepositoryResponse.md +30 -29
- data/docs/OstreeOstreeSummaryResponse.md +20 -17
- data/docs/PaginatedRepositoryVersionResponseList.md +14 -13
- data/docs/PaginatedostreeOstreeCommitResponseList.md +14 -13
- data/docs/PaginatedostreeOstreeConfigResponseList.md +14 -13
- data/docs/PaginatedostreeOstreeContentResponseList.md +14 -13
- data/docs/PaginatedostreeOstreeDistributionResponseList.md +14 -13
- data/docs/PaginatedostreeOstreeObjectResponseList.md +14 -13
- data/docs/PaginatedostreeOstreeRefResponseList.md +14 -13
- data/docs/PaginatedostreeOstreeRemoteResponseList.md +14 -13
- data/docs/PaginatedostreeOstreeRepositoryResponseList.md +14 -13
- data/docs/PaginatedostreeOstreeSummaryResponseList.md +14 -13
- data/docs/PatchedostreeOstreeDistribution.md +20 -19
- data/docs/PatchedostreeOstreeRemote.md +54 -53
- data/docs/PatchedostreeOstreeRepository.md +18 -17
- data/docs/PolicyEnum.md +4 -5
- data/docs/RemotesOstreeApi.md +389 -184
- data/docs/Repair.md +8 -7
- data/docs/RepositoriesOstreeApi.md +502 -231
- data/docs/RepositoriesOstreeVersionsApi.md +152 -82
- data/docs/RepositoryAddRemoveContent.md +12 -11
- data/docs/RepositorySyncURL.md +10 -9
- data/docs/RepositoryVersionResponse.md +22 -21
- data/docs/SetLabel.md +10 -9
- data/docs/SetLabelResponse.md +10 -9
- data/docs/UnsetLabel.md +8 -7
- data/docs/UnsetLabelResponse.md +10 -9
- data/lib/pulp_ostree_client/api/content_commits_api.rb +165 -12
- data/lib/pulp_ostree_client/api/content_configs_api.rb +162 -9
- data/lib/pulp_ostree_client/api/content_content_api.rb +171 -14
- data/lib/pulp_ostree_client/api/content_objects_api.rb +165 -12
- data/lib/pulp_ostree_client/api/content_refs_api.rb +165 -12
- data/lib/pulp_ostree_client/api/content_summaries_api.rb +162 -9
- data/lib/pulp_ostree_client/api/distributions_ostree_api.rb +95 -59
- data/lib/pulp_ostree_client/api/remotes_ostree_api.rb +104 -68
- data/lib/pulp_ostree_client/api/repositories_ostree_api.rb +125 -76
- data/lib/pulp_ostree_client/api/repositories_ostree_versions_api.rb +40 -30
- data/lib/pulp_ostree_client/api_client.rb +137 -102
- data/lib/pulp_ostree_client/api_error.rb +2 -1
- data/lib/pulp_ostree_client/configuration.rb +162 -21
- data/lib/pulp_ostree_client/models/async_operation_response.rb +32 -22
- data/lib/pulp_ostree_client/models/content_summary_response.rb +36 -22
- data/lib/pulp_ostree_client/models/my_permissions_response.rb +32 -22
- data/lib/pulp_ostree_client/models/nested_role.rb +32 -22
- data/lib/pulp_ostree_client/models/nested_role_response.rb +32 -22
- data/lib/pulp_ostree_client/models/object_roles_response.rb +32 -22
- data/lib/pulp_ostree_client/models/ostree_import_all.rb +34 -22
- data/lib/pulp_ostree_client/models/ostree_import_commits_to_ref.rb +36 -22
- data/lib/pulp_ostree_client/models/ostree_ostree_commit_response.rb +53 -25
- data/lib/pulp_ostree_client/models/ostree_ostree_config_response.rb +49 -25
- data/lib/pulp_ostree_client/models/ostree_ostree_content.rb +49 -23
- data/lib/pulp_ostree_client/models/ostree_ostree_content_response.rb +51 -25
- data/lib/pulp_ostree_client/models/ostree_ostree_distribution.rb +34 -22
- data/lib/pulp_ostree_client/models/ostree_ostree_distribution_response.rb +36 -24
- data/lib/pulp_ostree_client/models/ostree_ostree_object_response.rb +53 -25
- data/lib/pulp_ostree_client/models/ostree_ostree_ref_response.rb +53 -25
- data/lib/pulp_ostree_client/models/ostree_ostree_remote.rb +61 -23
- data/lib/pulp_ostree_client/models/ostree_ostree_remote_response.rb +64 -26
- data/lib/pulp_ostree_client/models/{ostree_ostree_remote_response_hidden_fields.rb → ostree_ostree_remote_response_hidden_fields_inner.rb} +37 -25
- data/lib/pulp_ostree_client/models/ostree_ostree_repository.rb +32 -22
- data/lib/pulp_ostree_client/models/ostree_ostree_repository_response.rb +34 -24
- data/lib/pulp_ostree_client/models/ostree_ostree_summary_response.rb +49 -25
- data/lib/pulp_ostree_client/models/paginated_repository_version_response_list.rb +34 -22
- data/lib/pulp_ostree_client/models/paginatedostree_ostree_commit_response_list.rb +34 -22
- data/lib/pulp_ostree_client/models/paginatedostree_ostree_config_response_list.rb +34 -22
- data/lib/pulp_ostree_client/models/paginatedostree_ostree_content_response_list.rb +34 -22
- data/lib/pulp_ostree_client/models/paginatedostree_ostree_distribution_response_list.rb +34 -22
- data/lib/pulp_ostree_client/models/paginatedostree_ostree_object_response_list.rb +34 -22
- data/lib/pulp_ostree_client/models/paginatedostree_ostree_ref_response_list.rb +34 -22
- data/lib/pulp_ostree_client/models/paginatedostree_ostree_remote_response_list.rb +34 -22
- data/lib/pulp_ostree_client/models/paginatedostree_ostree_repository_response_list.rb +34 -22
- data/lib/pulp_ostree_client/models/paginatedostree_ostree_summary_response_list.rb +34 -22
- data/lib/pulp_ostree_client/models/patchedostree_ostree_distribution.rb +40 -24
- data/lib/pulp_ostree_client/models/patchedostree_ostree_remote.rb +67 -25
- data/lib/pulp_ostree_client/models/patchedostree_ostree_repository.rb +35 -23
- data/lib/pulp_ostree_client/models/policy_enum.rb +8 -4
- data/lib/pulp_ostree_client/models/repair.rb +30 -22
- data/lib/pulp_ostree_client/models/repository_add_remove_content.rb +30 -22
- data/lib/pulp_ostree_client/models/repository_sync_url.rb +30 -22
- data/lib/pulp_ostree_client/models/repository_version_response.rb +32 -24
- data/lib/pulp_ostree_client/models/set_label.rb +34 -22
- data/lib/pulp_ostree_client/models/set_label_response.rb +34 -22
- data/lib/pulp_ostree_client/models/unset_label.rb +33 -23
- data/lib/pulp_ostree_client/models/unset_label_response.rb +33 -23
- data/lib/pulp_ostree_client/version.rb +2 -2
- data/lib/pulp_ostree_client.rb +2 -2
- data/pulp_ostree_client.gemspec +9 -6
- data/spec/api/content_commits_api_spec.rb +31 -4
- data/spec/api/content_configs_api_spec.rb +30 -3
- data/spec/api/content_content_api_spec.rb +31 -4
- data/spec/api/content_objects_api_spec.rb +31 -4
- data/spec/api/content_refs_api_spec.rb +31 -4
- data/spec/api/content_summaries_api_spec.rb +30 -3
- data/spec/api/distributions_ostree_api_spec.rb +15 -14
- data/spec/api/remotes_ostree_api_spec.rb +20 -19
- data/spec/api/repositories_ostree_api_spec.rb +17 -17
- data/spec/api/repositories_ostree_versions_api_spec.rb +12 -11
- data/spec/models/async_operation_response_spec.rb +7 -12
- data/spec/models/content_summary_response_spec.rb +9 -14
- data/spec/models/my_permissions_response_spec.rb +7 -12
- data/spec/models/nested_role_response_spec.rb +9 -14
- data/spec/models/nested_role_spec.rb +9 -14
- data/spec/models/object_roles_response_spec.rb +7 -12
- data/spec/models/ostree_import_all_spec.rb +8 -13
- data/spec/models/ostree_import_commits_to_ref_spec.rb +9 -14
- data/spec/models/ostree_ostree_commit_response_spec.rb +21 -20
- data/spec/models/ostree_ostree_config_response_spec.rb +18 -17
- data/spec/models/ostree_ostree_content_response_spec.rb +19 -18
- data/spec/models/ostree_ostree_content_spec.rb +16 -15
- data/spec/models/ostree_ostree_distribution_response_spec.rb +19 -24
- data/spec/models/ostree_ostree_distribution_spec.rb +13 -18
- data/spec/models/ostree_ostree_object_response_spec.rb +20 -19
- data/spec/models/ostree_ostree_ref_response_spec.rb +21 -20
- data/spec/models/{ostree_ostree_remote_response_hidden_fields_spec.rb → ostree_ostree_remote_response_hidden_fields_inner_spec.rb} +11 -16
- data/spec/models/ostree_ostree_remote_response_spec.rb +30 -35
- data/spec/models/ostree_ostree_remote_spec.rb +30 -35
- data/spec/models/ostree_ostree_repository_response_spec.rb +18 -23
- data/spec/models/ostree_ostree_repository_spec.rb +12 -17
- data/spec/models/ostree_ostree_summary_response_spec.rb +18 -17
- data/spec/models/paginated_repository_version_response_list_spec.rb +10 -15
- data/spec/models/paginatedostree_ostree_commit_response_list_spec.rb +10 -15
- data/spec/models/paginatedostree_ostree_config_response_list_spec.rb +10 -15
- data/spec/models/paginatedostree_ostree_content_response_list_spec.rb +10 -15
- data/spec/models/paginatedostree_ostree_distribution_response_list_spec.rb +10 -15
- data/spec/models/paginatedostree_ostree_object_response_list_spec.rb +10 -15
- data/spec/models/paginatedostree_ostree_ref_response_list_spec.rb +10 -15
- data/spec/models/paginatedostree_ostree_remote_response_list_spec.rb +10 -15
- data/spec/models/paginatedostree_ostree_repository_response_list_spec.rb +10 -15
- data/spec/models/paginatedostree_ostree_summary_response_list_spec.rb +10 -15
- data/spec/models/patchedostree_ostree_distribution_spec.rb +13 -18
- data/spec/models/patchedostree_ostree_remote_spec.rb +30 -35
- data/spec/models/patchedostree_ostree_repository_spec.rb +12 -17
- data/spec/models/policy_enum_spec.rb +6 -11
- data/spec/models/repair_spec.rb +7 -12
- data/spec/models/repository_add_remove_content_spec.rb +9 -14
- data/spec/models/repository_sync_url_spec.rb +8 -13
- data/spec/models/repository_version_response_spec.rb +14 -19
- data/spec/models/set_label_response_spec.rb +8 -13
- data/spec/models/set_label_spec.rb +8 -13
- data/spec/models/unset_label_response_spec.rb +8 -13
- data/spec/models/unset_label_spec.rb +7 -12
- data/spec/spec_helper.rb +1 -1
- metadata +83 -59
- data/docs/OstreeOstreeRemoteResponseHiddenFields.md +0 -19
- data/spec/api_client_spec.rb +0 -188
- data/spec/configuration_spec.rb +0 -42
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 61a21a7e670b839c67da0b71180c0ec3f7ea72ba1f3f454a967215852b0c1b34
|
4
|
+
data.tar.gz: 4280d3a19de553f15ea0e0c9b0a803d1997478d29829c9f6fa72aa43ad12cb52
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d9b85f62ab57dc20e6cef2a33e3b53e057977b39b33fed396a80e8503777ff92f29abff443a267755513ab261e7203820a95f05e8b6ad2df1b954fd319614ff5
|
7
|
+
data.tar.gz: '089d864590a70ca7c08502acbcd73e795dc8f98d7f298d4934ba133cd31d20be29186e1940db2995a0e201d878f69edfb8b8ad2325750b5f9157a5ef5b7a888c'
|
data/README.md
CHANGED
@@ -7,7 +7,8 @@ Fetch, Upload, Organize, and Distribute Software Packages
|
|
7
7
|
This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
8
8
|
|
9
9
|
- API version: v3
|
10
|
-
- Package version: 2.4.
|
10
|
+
- Package version: 2.4.7
|
11
|
+
- Generator version: 7.10.0
|
11
12
|
- Build package: org.openapitools.codegen.languages.RubyClientCodegen
|
12
13
|
For more information, please visit [https://pulpproject.org](https://pulpproject.org)
|
13
14
|
|
@@ -24,16 +25,16 @@ gem build pulp_ostree_client.gemspec
|
|
24
25
|
Then either install the gem locally:
|
25
26
|
|
26
27
|
```shell
|
27
|
-
gem install ./pulp_ostree_client-2.4.
|
28
|
+
gem install ./pulp_ostree_client-2.4.7.gem
|
28
29
|
```
|
29
30
|
|
30
|
-
(for development, run `gem install --dev ./pulp_ostree_client-2.4.
|
31
|
+
(for development, run `gem install --dev ./pulp_ostree_client-2.4.7.gem` to install the development dependencies)
|
31
32
|
|
32
33
|
or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
|
33
34
|
|
34
35
|
Finally add this to the Gemfile:
|
35
36
|
|
36
|
-
gem 'pulp_ostree_client', '~> 2.4.
|
37
|
+
gem 'pulp_ostree_client', '~> 2.4.7'
|
37
38
|
|
38
39
|
### Install from Git
|
39
40
|
|
@@ -62,6 +63,8 @@ PulpOstreeClient.configure do |config|
|
|
62
63
|
# Configure HTTP basic authorization: basicAuth
|
63
64
|
config.username = 'YOUR_USERNAME'
|
64
65
|
config.password = 'YOUR_PASSWORD'
|
66
|
+
# Configure faraday connection
|
67
|
+
config.configure_faraday_connection { |connection| 'YOUR CONNECTION CONFIG PROC' }
|
65
68
|
end
|
66
69
|
|
67
70
|
api_instance = PulpOstreeClient::ContentCommitsApi.new
|
@@ -69,17 +72,18 @@ opts = {
|
|
69
72
|
checksum: 'checksum_example', # String | Filter results where checksum matches value
|
70
73
|
limit: 56, # Integer | Number of results to return per page.
|
71
74
|
offset: 56, # Integer | The initial index from which to return the results.
|
72
|
-
ordering: ['
|
73
|
-
orphaned_for:
|
74
|
-
prn__in: ['
|
75
|
-
pulp_href__in: ['
|
76
|
-
pulp_id__in: ['
|
75
|
+
ordering: ['-checksum'], # Array<String> | Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `upstream_id` - Upstream id * `-upstream_id` - Upstream id (descending) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (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)
|
76
|
+
orphaned_for: 8.14, # Float | Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME.
|
77
|
+
prn__in: ['inner_example'], # Array<String> | Multiple values may be separated by commas.
|
78
|
+
pulp_href__in: ['inner_example'], # Array<String> | Multiple values may be separated by commas.
|
79
|
+
pulp_id__in: ['inner_example'], # Array<String> | Multiple values may be separated by commas.
|
80
|
+
pulp_label_select: 'pulp_label_select_example', # String | Filter labels by search string
|
77
81
|
q: 'q_example', # String | Filter results by using NOT, AND and OR operations on other filters
|
78
82
|
repository_version: 'repository_version_example', # String | Repository Version referenced by HREF/PRN
|
79
83
|
repository_version_added: 'repository_version_added_example', # String | Repository Version referenced by HREF/PRN
|
80
84
|
repository_version_removed: 'repository_version_removed_example', # String | Repository Version referenced by HREF/PRN
|
81
|
-
fields: ['
|
82
|
-
exclude_fields: ['
|
85
|
+
fields: ['inner_example'], # Array<String> | A list of fields to include in the response.
|
86
|
+
exclude_fields: ['inner_example'] # Array<String> | A list of fields to exclude from the response.
|
83
87
|
}
|
84
88
|
|
85
89
|
begin
|
@@ -100,17 +104,29 @@ Class | Method | HTTP request | Description
|
|
100
104
|
------------ | ------------- | ------------- | -------------
|
101
105
|
*PulpOstreeClient::ContentCommitsApi* | [**list**](docs/ContentCommitsApi.md#list) | **GET** /pulp/api/v3/content/ostree/commits/ | List ostree commits
|
102
106
|
*PulpOstreeClient::ContentCommitsApi* | [**read**](docs/ContentCommitsApi.md#read) | **GET** {ostree_ostree_commit_href} | Inspect an ostree commit
|
107
|
+
*PulpOstreeClient::ContentCommitsApi* | [**set_label**](docs/ContentCommitsApi.md#set_label) | **POST** {ostree_ostree_commit_href}set_label/ | Set a label
|
108
|
+
*PulpOstreeClient::ContentCommitsApi* | [**unset_label**](docs/ContentCommitsApi.md#unset_label) | **POST** {ostree_ostree_commit_href}unset_label/ | Unset a label
|
103
109
|
*PulpOstreeClient::ContentConfigsApi* | [**list**](docs/ContentConfigsApi.md#list) | **GET** /pulp/api/v3/content/ostree/configs/ | List ostree configs
|
104
110
|
*PulpOstreeClient::ContentConfigsApi* | [**read**](docs/ContentConfigsApi.md#read) | **GET** {ostree_ostree_config_href} | Inspect an ostree config
|
111
|
+
*PulpOstreeClient::ContentConfigsApi* | [**set_label**](docs/ContentConfigsApi.md#set_label) | **POST** {ostree_ostree_config_href}set_label/ | Set a label
|
112
|
+
*PulpOstreeClient::ContentConfigsApi* | [**unset_label**](docs/ContentConfigsApi.md#unset_label) | **POST** {ostree_ostree_config_href}unset_label/ | Unset a label
|
105
113
|
*PulpOstreeClient::ContentContentApi* | [**create**](docs/ContentContentApi.md#create) | **POST** /pulp/api/v3/content/ostree/content/ | Create an ostree content
|
106
114
|
*PulpOstreeClient::ContentContentApi* | [**list**](docs/ContentContentApi.md#list) | **GET** /pulp/api/v3/content/ostree/content/ | List ostree contents
|
107
115
|
*PulpOstreeClient::ContentContentApi* | [**read**](docs/ContentContentApi.md#read) | **GET** {ostree_ostree_content_href} | Inspect an ostree content
|
116
|
+
*PulpOstreeClient::ContentContentApi* | [**set_label**](docs/ContentContentApi.md#set_label) | **POST** {ostree_ostree_content_href}set_label/ | Set a label
|
117
|
+
*PulpOstreeClient::ContentContentApi* | [**unset_label**](docs/ContentContentApi.md#unset_label) | **POST** {ostree_ostree_content_href}unset_label/ | Unset a label
|
108
118
|
*PulpOstreeClient::ContentObjectsApi* | [**list**](docs/ContentObjectsApi.md#list) | **GET** /pulp/api/v3/content/ostree/objects/ | List ostree objects
|
109
119
|
*PulpOstreeClient::ContentObjectsApi* | [**read**](docs/ContentObjectsApi.md#read) | **GET** {ostree_ostree_object_href} | Inspect an ostree object
|
120
|
+
*PulpOstreeClient::ContentObjectsApi* | [**set_label**](docs/ContentObjectsApi.md#set_label) | **POST** {ostree_ostree_object_href}set_label/ | Set a label
|
121
|
+
*PulpOstreeClient::ContentObjectsApi* | [**unset_label**](docs/ContentObjectsApi.md#unset_label) | **POST** {ostree_ostree_object_href}unset_label/ | Unset a label
|
110
122
|
*PulpOstreeClient::ContentRefsApi* | [**list**](docs/ContentRefsApi.md#list) | **GET** /pulp/api/v3/content/ostree/refs/ | List ostree refs
|
111
123
|
*PulpOstreeClient::ContentRefsApi* | [**read**](docs/ContentRefsApi.md#read) | **GET** {ostree_ostree_ref_href} | Inspect an ostree ref
|
124
|
+
*PulpOstreeClient::ContentRefsApi* | [**set_label**](docs/ContentRefsApi.md#set_label) | **POST** {ostree_ostree_ref_href}set_label/ | Set a label
|
125
|
+
*PulpOstreeClient::ContentRefsApi* | [**unset_label**](docs/ContentRefsApi.md#unset_label) | **POST** {ostree_ostree_ref_href}unset_label/ | Unset a label
|
112
126
|
*PulpOstreeClient::ContentSummariesApi* | [**list**](docs/ContentSummariesApi.md#list) | **GET** /pulp/api/v3/content/ostree/summaries/ | List ostree summarys
|
113
127
|
*PulpOstreeClient::ContentSummariesApi* | [**read**](docs/ContentSummariesApi.md#read) | **GET** {ostree_ostree_summary_href} | Inspect an ostree summary
|
128
|
+
*PulpOstreeClient::ContentSummariesApi* | [**set_label**](docs/ContentSummariesApi.md#set_label) | **POST** {ostree_ostree_summary_href}set_label/ | Set a label
|
129
|
+
*PulpOstreeClient::ContentSummariesApi* | [**unset_label**](docs/ContentSummariesApi.md#unset_label) | **POST** {ostree_ostree_summary_href}unset_label/ | Unset a label
|
114
130
|
*PulpOstreeClient::DistributionsOstreeApi* | [**add_role**](docs/DistributionsOstreeApi.md#add_role) | **POST** {ostree_ostree_distribution_href}add_role/ | Add a role
|
115
131
|
*PulpOstreeClient::DistributionsOstreeApi* | [**create**](docs/DistributionsOstreeApi.md#create) | **POST** /pulp/api/v3/distributions/ostree/ostree/ | Create an ostree distribution
|
116
132
|
*PulpOstreeClient::DistributionsOstreeApi* | [**delete**](docs/DistributionsOstreeApi.md#delete) | **DELETE** {ostree_ostree_distribution_href} | Delete an ostree distribution
|
@@ -177,7 +193,7 @@ Class | Method | HTTP request | Description
|
|
177
193
|
- [PulpOstreeClient::OstreeOstreeRefResponse](docs/OstreeOstreeRefResponse.md)
|
178
194
|
- [PulpOstreeClient::OstreeOstreeRemote](docs/OstreeOstreeRemote.md)
|
179
195
|
- [PulpOstreeClient::OstreeOstreeRemoteResponse](docs/OstreeOstreeRemoteResponse.md)
|
180
|
-
- [PulpOstreeClient::
|
196
|
+
- [PulpOstreeClient::OstreeOstreeRemoteResponseHiddenFieldsInner](docs/OstreeOstreeRemoteResponseHiddenFieldsInner.md)
|
181
197
|
- [PulpOstreeClient::OstreeOstreeRepository](docs/OstreeOstreeRepository.md)
|
182
198
|
- [PulpOstreeClient::OstreeOstreeRepositoryResponse](docs/OstreeOstreeRepositoryResponse.md)
|
183
199
|
- [PulpOstreeClient::OstreeOstreeSummaryResponse](docs/OstreeOstreeSummaryResponse.md)
|
@@ -208,6 +224,7 @@ Class | Method | HTTP request | Description
|
|
208
224
|
## Documentation for Authorization
|
209
225
|
|
210
226
|
|
227
|
+
Authentication schemes defined for the API:
|
211
228
|
### basicAuth
|
212
229
|
|
213
230
|
- **Type**: HTTP basic authentication
|
@@ -2,16 +2,17 @@
|
|
2
2
|
|
3
3
|
## Properties
|
4
4
|
|
5
|
-
Name | Type | Description | Notes
|
6
|
-
|
7
|
-
**task** | **String** | The href of the task. |
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **task** | **String** | The href of the task. | |
|
8
8
|
|
9
|
-
##
|
9
|
+
## Example
|
10
10
|
|
11
11
|
```ruby
|
12
|
-
require '
|
12
|
+
require 'pulp_ostree_client'
|
13
13
|
|
14
|
-
instance = PulpOstreeClient::AsyncOperationResponse.new(
|
14
|
+
instance = PulpOstreeClient::AsyncOperationResponse.new(
|
15
|
+
task: null
|
16
|
+
)
|
15
17
|
```
|
16
18
|
|
17
|
-
|
data/docs/ContentCommitsApi.md
CHANGED
@@ -2,25 +2,26 @@
|
|
2
2
|
|
3
3
|
All URIs are relative to *http://localhost:24817*
|
4
4
|
|
5
|
-
Method | HTTP request | Description
|
6
|
-
|
7
|
-
[**list**](ContentCommitsApi.md#list) | **GET** /pulp/api/v3/content/ostree/commits/ | List ostree commits
|
8
|
-
[**read**](ContentCommitsApi.md#read) | **GET** {ostree_ostree_commit_href} | Inspect an ostree commit
|
9
|
-
|
5
|
+
| Method | HTTP request | Description |
|
6
|
+
| ------ | ------------ | ----------- |
|
7
|
+
| [**list**](ContentCommitsApi.md#list) | **GET** /pulp/api/v3/content/ostree/commits/ | List ostree commits |
|
8
|
+
| [**read**](ContentCommitsApi.md#read) | **GET** {ostree_ostree_commit_href} | Inspect an ostree commit |
|
9
|
+
| [**set_label**](ContentCommitsApi.md#set_label) | **POST** {ostree_ostree_commit_href}set_label/ | Set a label |
|
10
|
+
| [**unset_label**](ContentCommitsApi.md#unset_label) | **POST** {ostree_ostree_commit_href}unset_label/ | Unset a label |
|
10
11
|
|
11
12
|
|
12
13
|
## list
|
13
14
|
|
14
|
-
> PaginatedostreeOstreeCommitResponseList list(opts)
|
15
|
+
> <PaginatedostreeOstreeCommitResponseList> list(opts)
|
15
16
|
|
16
17
|
List ostree commits
|
17
18
|
|
18
19
|
A ViewSet class for OSTree commits.
|
19
20
|
|
20
|
-
###
|
21
|
+
### Examples
|
21
22
|
|
22
23
|
```ruby
|
23
|
-
|
24
|
+
require 'time'
|
24
25
|
require 'pulp_ostree_client'
|
25
26
|
# setup authorization
|
26
27
|
PulpOstreeClient.configure do |config|
|
@@ -34,47 +35,66 @@ opts = {
|
|
34
35
|
checksum: 'checksum_example', # String | Filter results where checksum matches value
|
35
36
|
limit: 56, # Integer | Number of results to return per page.
|
36
37
|
offset: 56, # Integer | The initial index from which to return the results.
|
37
|
-
ordering: ['
|
38
|
-
orphaned_for:
|
39
|
-
prn__in: ['
|
40
|
-
pulp_href__in: ['
|
41
|
-
pulp_id__in: ['
|
38
|
+
ordering: ['-checksum'], # Array<String> | Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `upstream_id` - Upstream id * `-upstream_id` - Upstream id (descending) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (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)
|
39
|
+
orphaned_for: 8.14, # Float | Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME.
|
40
|
+
prn__in: ['inner_example'], # Array<String> | Multiple values may be separated by commas.
|
41
|
+
pulp_href__in: ['inner_example'], # Array<String> | Multiple values may be separated by commas.
|
42
|
+
pulp_id__in: ['inner_example'], # Array<String> | Multiple values may be separated by commas.
|
43
|
+
pulp_label_select: 'pulp_label_select_example', # String | Filter labels by search string
|
42
44
|
q: 'q_example', # String | Filter results by using NOT, AND and OR operations on other filters
|
43
45
|
repository_version: 'repository_version_example', # String | Repository Version referenced by HREF/PRN
|
44
46
|
repository_version_added: 'repository_version_added_example', # String | Repository Version referenced by HREF/PRN
|
45
47
|
repository_version_removed: 'repository_version_removed_example', # String | Repository Version referenced by HREF/PRN
|
46
|
-
fields: ['
|
47
|
-
exclude_fields: ['
|
48
|
+
fields: ['inner_example'], # Array<String> | A list of fields to include in the response.
|
49
|
+
exclude_fields: ['inner_example'] # Array<String> | A list of fields to exclude from the response.
|
48
50
|
}
|
49
51
|
|
50
52
|
begin
|
51
|
-
#List ostree commits
|
53
|
+
# List ostree commits
|
52
54
|
result = api_instance.list(opts)
|
53
55
|
p result
|
54
56
|
rescue PulpOstreeClient::ApiError => e
|
55
|
-
puts "
|
57
|
+
puts "Error when calling ContentCommitsApi->list: #{e}"
|
56
58
|
end
|
57
59
|
```
|
58
60
|
|
59
|
-
|
61
|
+
#### Using the list_with_http_info variant
|
60
62
|
|
63
|
+
This returns an Array which contains the response data, status code and headers.
|
61
64
|
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
65
|
+
> <Array(<PaginatedostreeOstreeCommitResponseList>, Integer, Hash)> list_with_http_info(opts)
|
66
|
+
|
67
|
+
```ruby
|
68
|
+
begin
|
69
|
+
# List ostree commits
|
70
|
+
data, status_code, headers = api_instance.list_with_http_info(opts)
|
71
|
+
p status_code # => 2xx
|
72
|
+
p headers # => { ... }
|
73
|
+
p data # => <PaginatedostreeOstreeCommitResponseList>
|
74
|
+
rescue PulpOstreeClient::ApiError => e
|
75
|
+
puts "Error when calling ContentCommitsApi->list_with_http_info: #{e}"
|
76
|
+
end
|
77
|
+
```
|
78
|
+
|
79
|
+
### Parameters
|
80
|
+
|
81
|
+
| Name | Type | Description | Notes |
|
82
|
+
| ---- | ---- | ----------- | ----- |
|
83
|
+
| **checksum** | **String** | Filter results where checksum matches value | [optional] |
|
84
|
+
| **limit** | **Integer** | Number of results to return per page. | [optional] |
|
85
|
+
| **offset** | **Integer** | The initial index from which to return the results. | [optional] |
|
86
|
+
| **ordering** | [**Array<String>**](String.md) | Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `upstream_id` - Upstream id * `-upstream_id` - Upstream id (descending) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (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) | [optional] |
|
87
|
+
| **orphaned_for** | **Float** | Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME. | [optional] |
|
88
|
+
| **prn__in** | [**Array<String>**](String.md) | Multiple values may be separated by commas. | [optional] |
|
89
|
+
| **pulp_href__in** | [**Array<String>**](String.md) | Multiple values may be separated by commas. | [optional] |
|
90
|
+
| **pulp_id__in** | [**Array<String>**](String.md) | Multiple values may be separated by commas. | [optional] |
|
91
|
+
| **pulp_label_select** | **String** | Filter labels by search string | [optional] |
|
92
|
+
| **q** | **String** | Filter results by using NOT, AND and OR operations on other filters | [optional] |
|
93
|
+
| **repository_version** | **String** | Repository Version referenced by HREF/PRN | [optional] |
|
94
|
+
| **repository_version_added** | **String** | Repository Version referenced by HREF/PRN | [optional] |
|
95
|
+
| **repository_version_removed** | **String** | Repository Version referenced by HREF/PRN | [optional] |
|
96
|
+
| **fields** | [**Array<String>**](String.md) | A list of fields to include in the response. | [optional] |
|
97
|
+
| **exclude_fields** | [**Array<String>**](String.md) | A list of fields to exclude from the response. | [optional] |
|
78
98
|
|
79
99
|
### Return type
|
80
100
|
|
@@ -92,16 +112,16 @@ Name | Type | Description | Notes
|
|
92
112
|
|
93
113
|
## read
|
94
114
|
|
95
|
-
> OstreeOstreeCommitResponse read(ostree_ostree_commit_href, opts)
|
115
|
+
> <OstreeOstreeCommitResponse> read(ostree_ostree_commit_href, opts)
|
96
116
|
|
97
117
|
Inspect an ostree commit
|
98
118
|
|
99
119
|
A ViewSet class for OSTree commits.
|
100
120
|
|
101
|
-
###
|
121
|
+
### Examples
|
102
122
|
|
103
123
|
```ruby
|
104
|
-
|
124
|
+
require 'time'
|
105
125
|
require 'pulp_ostree_client'
|
106
126
|
# setup authorization
|
107
127
|
PulpOstreeClient.configure do |config|
|
@@ -113,27 +133,44 @@ end
|
|
113
133
|
api_instance = PulpOstreeClient::ContentCommitsApi.new
|
114
134
|
ostree_ostree_commit_href = 'ostree_ostree_commit_href_example' # String |
|
115
135
|
opts = {
|
116
|
-
fields: ['
|
117
|
-
exclude_fields: ['
|
136
|
+
fields: ['inner_example'], # Array<String> | A list of fields to include in the response.
|
137
|
+
exclude_fields: ['inner_example'] # Array<String> | A list of fields to exclude from the response.
|
118
138
|
}
|
119
139
|
|
120
140
|
begin
|
121
|
-
#Inspect an ostree commit
|
141
|
+
# Inspect an ostree commit
|
122
142
|
result = api_instance.read(ostree_ostree_commit_href, opts)
|
123
143
|
p result
|
124
144
|
rescue PulpOstreeClient::ApiError => e
|
125
|
-
puts "
|
145
|
+
puts "Error when calling ContentCommitsApi->read: #{e}"
|
126
146
|
end
|
127
147
|
```
|
128
148
|
|
129
|
-
|
149
|
+
#### Using the read_with_http_info variant
|
130
150
|
|
151
|
+
This returns an Array which contains the response data, status code and headers.
|
131
152
|
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
153
|
+
> <Array(<OstreeOstreeCommitResponse>, Integer, Hash)> read_with_http_info(ostree_ostree_commit_href, opts)
|
154
|
+
|
155
|
+
```ruby
|
156
|
+
begin
|
157
|
+
# Inspect an ostree commit
|
158
|
+
data, status_code, headers = api_instance.read_with_http_info(ostree_ostree_commit_href, opts)
|
159
|
+
p status_code # => 2xx
|
160
|
+
p headers # => { ... }
|
161
|
+
p data # => <OstreeOstreeCommitResponse>
|
162
|
+
rescue PulpOstreeClient::ApiError => e
|
163
|
+
puts "Error when calling ContentCommitsApi->read_with_http_info: #{e}"
|
164
|
+
end
|
165
|
+
```
|
166
|
+
|
167
|
+
### Parameters
|
168
|
+
|
169
|
+
| Name | Type | Description | Notes |
|
170
|
+
| ---- | ---- | ----------- | ----- |
|
171
|
+
| **ostree_ostree_commit_href** | **String** | | |
|
172
|
+
| **fields** | [**Array<String>**](String.md) | A list of fields to include in the response. | [optional] |
|
173
|
+
| **exclude_fields** | [**Array<String>**](String.md) | A list of fields to exclude from the response. | [optional] |
|
137
174
|
|
138
175
|
### Return type
|
139
176
|
|
@@ -148,3 +185,147 @@ Name | Type | Description | Notes
|
|
148
185
|
- **Content-Type**: Not defined
|
149
186
|
- **Accept**: application/json
|
150
187
|
|
188
|
+
|
189
|
+
## set_label
|
190
|
+
|
191
|
+
> <SetLabelResponse> set_label(ostree_ostree_commit_href, set_label)
|
192
|
+
|
193
|
+
Set a label
|
194
|
+
|
195
|
+
Set a single pulp_label on the object to a specific value or null.
|
196
|
+
|
197
|
+
### Examples
|
198
|
+
|
199
|
+
```ruby
|
200
|
+
require 'time'
|
201
|
+
require 'pulp_ostree_client'
|
202
|
+
# setup authorization
|
203
|
+
PulpOstreeClient.configure do |config|
|
204
|
+
# Configure HTTP basic authorization: basicAuth
|
205
|
+
config.username = 'YOUR USERNAME'
|
206
|
+
config.password = 'YOUR PASSWORD'
|
207
|
+
end
|
208
|
+
|
209
|
+
api_instance = PulpOstreeClient::ContentCommitsApi.new
|
210
|
+
ostree_ostree_commit_href = 'ostree_ostree_commit_href_example' # String |
|
211
|
+
set_label = PulpOstreeClient::SetLabel.new({key: 'key_example', value: 'value_example'}) # SetLabel |
|
212
|
+
|
213
|
+
begin
|
214
|
+
# Set a label
|
215
|
+
result = api_instance.set_label(ostree_ostree_commit_href, set_label)
|
216
|
+
p result
|
217
|
+
rescue PulpOstreeClient::ApiError => e
|
218
|
+
puts "Error when calling ContentCommitsApi->set_label: #{e}"
|
219
|
+
end
|
220
|
+
```
|
221
|
+
|
222
|
+
#### Using the set_label_with_http_info variant
|
223
|
+
|
224
|
+
This returns an Array which contains the response data, status code and headers.
|
225
|
+
|
226
|
+
> <Array(<SetLabelResponse>, Integer, Hash)> set_label_with_http_info(ostree_ostree_commit_href, set_label)
|
227
|
+
|
228
|
+
```ruby
|
229
|
+
begin
|
230
|
+
# Set a label
|
231
|
+
data, status_code, headers = api_instance.set_label_with_http_info(ostree_ostree_commit_href, set_label)
|
232
|
+
p status_code # => 2xx
|
233
|
+
p headers # => { ... }
|
234
|
+
p data # => <SetLabelResponse>
|
235
|
+
rescue PulpOstreeClient::ApiError => e
|
236
|
+
puts "Error when calling ContentCommitsApi->set_label_with_http_info: #{e}"
|
237
|
+
end
|
238
|
+
```
|
239
|
+
|
240
|
+
### Parameters
|
241
|
+
|
242
|
+
| Name | Type | Description | Notes |
|
243
|
+
| ---- | ---- | ----------- | ----- |
|
244
|
+
| **ostree_ostree_commit_href** | **String** | | |
|
245
|
+
| **set_label** | [**SetLabel**](SetLabel.md) | | |
|
246
|
+
|
247
|
+
### Return type
|
248
|
+
|
249
|
+
[**SetLabelResponse**](SetLabelResponse.md)
|
250
|
+
|
251
|
+
### Authorization
|
252
|
+
|
253
|
+
[basicAuth](../README.md#basicAuth)
|
254
|
+
|
255
|
+
### HTTP request headers
|
256
|
+
|
257
|
+
- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
|
258
|
+
- **Accept**: application/json
|
259
|
+
|
260
|
+
|
261
|
+
## unset_label
|
262
|
+
|
263
|
+
> <UnsetLabelResponse> unset_label(ostree_ostree_commit_href, unset_label)
|
264
|
+
|
265
|
+
Unset a label
|
266
|
+
|
267
|
+
Unset a single pulp_label on the object.
|
268
|
+
|
269
|
+
### Examples
|
270
|
+
|
271
|
+
```ruby
|
272
|
+
require 'time'
|
273
|
+
require 'pulp_ostree_client'
|
274
|
+
# setup authorization
|
275
|
+
PulpOstreeClient.configure do |config|
|
276
|
+
# Configure HTTP basic authorization: basicAuth
|
277
|
+
config.username = 'YOUR USERNAME'
|
278
|
+
config.password = 'YOUR PASSWORD'
|
279
|
+
end
|
280
|
+
|
281
|
+
api_instance = PulpOstreeClient::ContentCommitsApi.new
|
282
|
+
ostree_ostree_commit_href = 'ostree_ostree_commit_href_example' # String |
|
283
|
+
unset_label = PulpOstreeClient::UnsetLabel.new({key: 'key_example'}) # UnsetLabel |
|
284
|
+
|
285
|
+
begin
|
286
|
+
# Unset a label
|
287
|
+
result = api_instance.unset_label(ostree_ostree_commit_href, unset_label)
|
288
|
+
p result
|
289
|
+
rescue PulpOstreeClient::ApiError => e
|
290
|
+
puts "Error when calling ContentCommitsApi->unset_label: #{e}"
|
291
|
+
end
|
292
|
+
```
|
293
|
+
|
294
|
+
#### Using the unset_label_with_http_info variant
|
295
|
+
|
296
|
+
This returns an Array which contains the response data, status code and headers.
|
297
|
+
|
298
|
+
> <Array(<UnsetLabelResponse>, Integer, Hash)> unset_label_with_http_info(ostree_ostree_commit_href, unset_label)
|
299
|
+
|
300
|
+
```ruby
|
301
|
+
begin
|
302
|
+
# Unset a label
|
303
|
+
data, status_code, headers = api_instance.unset_label_with_http_info(ostree_ostree_commit_href, unset_label)
|
304
|
+
p status_code # => 2xx
|
305
|
+
p headers # => { ... }
|
306
|
+
p data # => <UnsetLabelResponse>
|
307
|
+
rescue PulpOstreeClient::ApiError => e
|
308
|
+
puts "Error when calling ContentCommitsApi->unset_label_with_http_info: #{e}"
|
309
|
+
end
|
310
|
+
```
|
311
|
+
|
312
|
+
### Parameters
|
313
|
+
|
314
|
+
| Name | Type | Description | Notes |
|
315
|
+
| ---- | ---- | ----------- | ----- |
|
316
|
+
| **ostree_ostree_commit_href** | **String** | | |
|
317
|
+
| **unset_label** | [**UnsetLabel**](UnsetLabel.md) | | |
|
318
|
+
|
319
|
+
### Return type
|
320
|
+
|
321
|
+
[**UnsetLabelResponse**](UnsetLabelResponse.md)
|
322
|
+
|
323
|
+
### Authorization
|
324
|
+
|
325
|
+
[basicAuth](../README.md#basicAuth)
|
326
|
+
|
327
|
+
### HTTP request headers
|
328
|
+
|
329
|
+
- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
|
330
|
+
- **Accept**: application/json
|
331
|
+
|