pulp_ostree_client 2.4.6 → 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 +18 -5
- data/docs/ContentCommitsApi.md +150 -2
- data/docs/ContentConfigsApi.md +148 -0
- data/docs/ContentContentApi.md +148 -0
- data/docs/ContentObjectsApi.md +150 -2
- data/docs/ContentRefsApi.md +150 -2
- data/docs/ContentSummariesApi.md +148 -0
- data/docs/DistributionsOstreeApi.md +4 -2
- data/docs/OstreeOstreeCommitResponse.md +2 -0
- data/docs/OstreeOstreeConfigResponse.md +2 -0
- data/docs/OstreeOstreeContent.md +2 -0
- data/docs/OstreeOstreeContentResponse.md +2 -0
- data/docs/OstreeOstreeObjectResponse.md +2 -0
- data/docs/OstreeOstreeRefResponse.md +2 -0
- data/docs/OstreeOstreeSummaryResponse.md +2 -0
- data/lib/pulp_ostree_client/api/content_commits_api.rb +154 -3
- data/lib/pulp_ostree_client/api/content_configs_api.rb +151 -0
- data/lib/pulp_ostree_client/api/content_content_api.rb +151 -0
- data/lib/pulp_ostree_client/api/content_objects_api.rb +154 -3
- data/lib/pulp_ostree_client/api/content_refs_api.rb +154 -3
- data/lib/pulp_ostree_client/api/content_summaries_api.rb +151 -0
- data/lib/pulp_ostree_client/api/distributions_ostree_api.rb +6 -3
- data/lib/pulp_ostree_client/models/ostree_ostree_commit_response.rb +13 -1
- data/lib/pulp_ostree_client/models/ostree_ostree_config_response.rb +13 -1
- data/lib/pulp_ostree_client/models/ostree_ostree_content.rb +13 -1
- data/lib/pulp_ostree_client/models/ostree_ostree_content_response.rb +13 -1
- data/lib/pulp_ostree_client/models/ostree_ostree_object_response.rb +13 -1
- data/lib/pulp_ostree_client/models/ostree_ostree_ref_response.rb +13 -1
- data/lib/pulp_ostree_client/models/ostree_ostree_summary_response.rb +13 -1
- data/lib/pulp_ostree_client/models/unset_label.rb +1 -1
- data/lib/pulp_ostree_client/models/unset_label_response.rb +1 -1
- data/lib/pulp_ostree_client/version.rb +1 -1
- data/spec/api/content_commits_api_spec.rb +28 -1
- data/spec/api/content_configs_api_spec.rb +27 -0
- data/spec/api/content_content_api_spec.rb +27 -0
- data/spec/api/content_objects_api_spec.rb +28 -1
- data/spec/api/content_refs_api_spec.rb +28 -1
- data/spec/api/content_summaries_api_spec.rb +27 -0
- data/spec/api/distributions_ostree_api_spec.rb +2 -1
- 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 +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_summary_response_spec.rb +6 -0
- metadata +42 -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,7 @@ 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
11
|
- Generator version: 7.10.0
|
12
12
|
- Build package: org.openapitools.codegen.languages.RubyClientCodegen
|
13
13
|
For more information, please visit [https://pulpproject.org](https://pulpproject.org)
|
@@ -25,16 +25,16 @@ gem build pulp_ostree_client.gemspec
|
|
25
25
|
Then either install the gem locally:
|
26
26
|
|
27
27
|
```shell
|
28
|
-
gem install ./pulp_ostree_client-2.4.
|
28
|
+
gem install ./pulp_ostree_client-2.4.7.gem
|
29
29
|
```
|
30
30
|
|
31
|
-
(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)
|
32
32
|
|
33
33
|
or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
|
34
34
|
|
35
35
|
Finally add this to the Gemfile:
|
36
36
|
|
37
|
-
gem 'pulp_ostree_client', '~> 2.4.
|
37
|
+
gem 'pulp_ostree_client', '~> 2.4.7'
|
38
38
|
|
39
39
|
### Install from Git
|
40
40
|
|
@@ -72,11 +72,12 @@ opts = {
|
|
72
72
|
checksum: 'checksum_example', # String | Filter results where checksum matches value
|
73
73
|
limit: 56, # Integer | Number of results to return per page.
|
74
74
|
offset: 56, # Integer | The initial index from which to return the results.
|
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) * `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)
|
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
76
|
orphaned_for: 8.14, # Float | Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME.
|
77
77
|
prn__in: ['inner_example'], # Array<String> | Multiple values may be separated by commas.
|
78
78
|
pulp_href__in: ['inner_example'], # Array<String> | Multiple values may be separated by commas.
|
79
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
|
80
81
|
q: 'q_example', # String | Filter results by using NOT, AND and OR operations on other filters
|
81
82
|
repository_version: 'repository_version_example', # String | Repository Version referenced by HREF/PRN
|
82
83
|
repository_version_added: 'repository_version_added_example', # String | Repository Version referenced by HREF/PRN
|
@@ -103,17 +104,29 @@ Class | Method | HTTP request | Description
|
|
103
104
|
------------ | ------------- | ------------- | -------------
|
104
105
|
*PulpOstreeClient::ContentCommitsApi* | [**list**](docs/ContentCommitsApi.md#list) | **GET** /pulp/api/v3/content/ostree/commits/ | List ostree commits
|
105
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
|
106
109
|
*PulpOstreeClient::ContentConfigsApi* | [**list**](docs/ContentConfigsApi.md#list) | **GET** /pulp/api/v3/content/ostree/configs/ | List ostree configs
|
107
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
|
108
113
|
*PulpOstreeClient::ContentContentApi* | [**create**](docs/ContentContentApi.md#create) | **POST** /pulp/api/v3/content/ostree/content/ | Create an ostree content
|
109
114
|
*PulpOstreeClient::ContentContentApi* | [**list**](docs/ContentContentApi.md#list) | **GET** /pulp/api/v3/content/ostree/content/ | List ostree contents
|
110
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
|
111
118
|
*PulpOstreeClient::ContentObjectsApi* | [**list**](docs/ContentObjectsApi.md#list) | **GET** /pulp/api/v3/content/ostree/objects/ | List ostree objects
|
112
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
|
113
122
|
*PulpOstreeClient::ContentRefsApi* | [**list**](docs/ContentRefsApi.md#list) | **GET** /pulp/api/v3/content/ostree/refs/ | List ostree refs
|
114
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
|
115
126
|
*PulpOstreeClient::ContentSummariesApi* | [**list**](docs/ContentSummariesApi.md#list) | **GET** /pulp/api/v3/content/ostree/summaries/ | List ostree summarys
|
116
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
|
117
130
|
*PulpOstreeClient::DistributionsOstreeApi* | [**add_role**](docs/DistributionsOstreeApi.md#add_role) | **POST** {ostree_ostree_distribution_href}add_role/ | Add a role
|
118
131
|
*PulpOstreeClient::DistributionsOstreeApi* | [**create**](docs/DistributionsOstreeApi.md#create) | **POST** /pulp/api/v3/distributions/ostree/ostree/ | Create an ostree distribution
|
119
132
|
*PulpOstreeClient::DistributionsOstreeApi* | [**delete**](docs/DistributionsOstreeApi.md#delete) | **DELETE** {ostree_ostree_distribution_href} | Delete an ostree distribution
|
data/docs/ContentCommitsApi.md
CHANGED
@@ -6,6 +6,8 @@ All URIs are relative to *http://localhost:24817*
|
|
6
6
|
| ------ | ------------ | ----------- |
|
7
7
|
| [**list**](ContentCommitsApi.md#list) | **GET** /pulp/api/v3/content/ostree/commits/ | List ostree commits |
|
8
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 |
|
9
11
|
|
10
12
|
|
11
13
|
## list
|
@@ -33,11 +35,12 @@ opts = {
|
|
33
35
|
checksum: 'checksum_example', # String | Filter results where checksum matches value
|
34
36
|
limit: 56, # Integer | Number of results to return per page.
|
35
37
|
offset: 56, # Integer | The initial index from which to return the results.
|
36
|
-
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) * `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)
|
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)
|
37
39
|
orphaned_for: 8.14, # Float | Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME.
|
38
40
|
prn__in: ['inner_example'], # Array<String> | Multiple values may be separated by commas.
|
39
41
|
pulp_href__in: ['inner_example'], # Array<String> | Multiple values may be separated by commas.
|
40
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
|
41
44
|
q: 'q_example', # String | Filter results by using NOT, AND and OR operations on other filters
|
42
45
|
repository_version: 'repository_version_example', # String | Repository Version referenced by HREF/PRN
|
43
46
|
repository_version_added: 'repository_version_added_example', # String | Repository Version referenced by HREF/PRN
|
@@ -80,11 +83,12 @@ end
|
|
80
83
|
| **checksum** | **String** | Filter results where checksum matches value | [optional] |
|
81
84
|
| **limit** | **Integer** | Number of results to return per page. | [optional] |
|
82
85
|
| **offset** | **Integer** | The initial index from which to return the results. | [optional] |
|
83
|
-
| **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) * `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] |
|
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] |
|
84
87
|
| **orphaned_for** | **Float** | Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME. | [optional] |
|
85
88
|
| **prn__in** | [**Array<String>**](String.md) | Multiple values may be separated by commas. | [optional] |
|
86
89
|
| **pulp_href__in** | [**Array<String>**](String.md) | Multiple values may be separated by commas. | [optional] |
|
87
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] |
|
88
92
|
| **q** | **String** | Filter results by using NOT, AND and OR operations on other filters | [optional] |
|
89
93
|
| **repository_version** | **String** | Repository Version referenced by HREF/PRN | [optional] |
|
90
94
|
| **repository_version_added** | **String** | Repository Version referenced by HREF/PRN | [optional] |
|
@@ -181,3 +185,147 @@ end
|
|
181
185
|
- **Content-Type**: Not defined
|
182
186
|
- **Accept**: application/json
|
183
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
|
+
|
data/docs/ContentConfigsApi.md
CHANGED
@@ -6,6 +6,8 @@ All URIs are relative to *http://localhost:24817*
|
|
6
6
|
| ------ | ------------ | ----------- |
|
7
7
|
| [**list**](ContentConfigsApi.md#list) | **GET** /pulp/api/v3/content/ostree/configs/ | List ostree configs |
|
8
8
|
| [**read**](ContentConfigsApi.md#read) | **GET** {ostree_ostree_config_href} | Inspect an ostree config |
|
9
|
+
| [**set_label**](ContentConfigsApi.md#set_label) | **POST** {ostree_ostree_config_href}set_label/ | Set a label |
|
10
|
+
| [**unset_label**](ContentConfigsApi.md#unset_label) | **POST** {ostree_ostree_config_href}unset_label/ | Unset a label |
|
9
11
|
|
10
12
|
|
11
13
|
## list
|
@@ -37,6 +39,7 @@ opts = {
|
|
37
39
|
prn__in: ['inner_example'], # Array<String> | Multiple values may be separated by commas.
|
38
40
|
pulp_href__in: ['inner_example'], # Array<String> | Multiple values may be separated by commas.
|
39
41
|
pulp_id__in: ['inner_example'], # Array<String> | Multiple values may be separated by commas.
|
42
|
+
pulp_label_select: 'pulp_label_select_example', # String | Filter labels by search string
|
40
43
|
q: 'q_example', # String | Filter results by using NOT, AND and OR operations on other filters
|
41
44
|
repository_version: 'repository_version_example', # String | Repository Version referenced by HREF/PRN
|
42
45
|
repository_version_added: 'repository_version_added_example', # String | Repository Version referenced by HREF/PRN
|
@@ -83,6 +86,7 @@ end
|
|
83
86
|
| **prn__in** | [**Array<String>**](String.md) | Multiple values may be separated by commas. | [optional] |
|
84
87
|
| **pulp_href__in** | [**Array<String>**](String.md) | Multiple values may be separated by commas. | [optional] |
|
85
88
|
| **pulp_id__in** | [**Array<String>**](String.md) | Multiple values may be separated by commas. | [optional] |
|
89
|
+
| **pulp_label_select** | **String** | Filter labels by search string | [optional] |
|
86
90
|
| **q** | **String** | Filter results by using NOT, AND and OR operations on other filters | [optional] |
|
87
91
|
| **repository_version** | **String** | Repository Version referenced by HREF/PRN | [optional] |
|
88
92
|
| **repository_version_added** | **String** | Repository Version referenced by HREF/PRN | [optional] |
|
@@ -179,3 +183,147 @@ end
|
|
179
183
|
- **Content-Type**: Not defined
|
180
184
|
- **Accept**: application/json
|
181
185
|
|
186
|
+
|
187
|
+
## set_label
|
188
|
+
|
189
|
+
> <SetLabelResponse> set_label(ostree_ostree_config_href, set_label)
|
190
|
+
|
191
|
+
Set a label
|
192
|
+
|
193
|
+
Set a single pulp_label on the object to a specific value or null.
|
194
|
+
|
195
|
+
### Examples
|
196
|
+
|
197
|
+
```ruby
|
198
|
+
require 'time'
|
199
|
+
require 'pulp_ostree_client'
|
200
|
+
# setup authorization
|
201
|
+
PulpOstreeClient.configure do |config|
|
202
|
+
# Configure HTTP basic authorization: basicAuth
|
203
|
+
config.username = 'YOUR USERNAME'
|
204
|
+
config.password = 'YOUR PASSWORD'
|
205
|
+
end
|
206
|
+
|
207
|
+
api_instance = PulpOstreeClient::ContentConfigsApi.new
|
208
|
+
ostree_ostree_config_href = 'ostree_ostree_config_href_example' # String |
|
209
|
+
set_label = PulpOstreeClient::SetLabel.new({key: 'key_example', value: 'value_example'}) # SetLabel |
|
210
|
+
|
211
|
+
begin
|
212
|
+
# Set a label
|
213
|
+
result = api_instance.set_label(ostree_ostree_config_href, set_label)
|
214
|
+
p result
|
215
|
+
rescue PulpOstreeClient::ApiError => e
|
216
|
+
puts "Error when calling ContentConfigsApi->set_label: #{e}"
|
217
|
+
end
|
218
|
+
```
|
219
|
+
|
220
|
+
#### Using the set_label_with_http_info variant
|
221
|
+
|
222
|
+
This returns an Array which contains the response data, status code and headers.
|
223
|
+
|
224
|
+
> <Array(<SetLabelResponse>, Integer, Hash)> set_label_with_http_info(ostree_ostree_config_href, set_label)
|
225
|
+
|
226
|
+
```ruby
|
227
|
+
begin
|
228
|
+
# Set a label
|
229
|
+
data, status_code, headers = api_instance.set_label_with_http_info(ostree_ostree_config_href, set_label)
|
230
|
+
p status_code # => 2xx
|
231
|
+
p headers # => { ... }
|
232
|
+
p data # => <SetLabelResponse>
|
233
|
+
rescue PulpOstreeClient::ApiError => e
|
234
|
+
puts "Error when calling ContentConfigsApi->set_label_with_http_info: #{e}"
|
235
|
+
end
|
236
|
+
```
|
237
|
+
|
238
|
+
### Parameters
|
239
|
+
|
240
|
+
| Name | Type | Description | Notes |
|
241
|
+
| ---- | ---- | ----------- | ----- |
|
242
|
+
| **ostree_ostree_config_href** | **String** | | |
|
243
|
+
| **set_label** | [**SetLabel**](SetLabel.md) | | |
|
244
|
+
|
245
|
+
### Return type
|
246
|
+
|
247
|
+
[**SetLabelResponse**](SetLabelResponse.md)
|
248
|
+
|
249
|
+
### Authorization
|
250
|
+
|
251
|
+
[basicAuth](../README.md#basicAuth)
|
252
|
+
|
253
|
+
### HTTP request headers
|
254
|
+
|
255
|
+
- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
|
256
|
+
- **Accept**: application/json
|
257
|
+
|
258
|
+
|
259
|
+
## unset_label
|
260
|
+
|
261
|
+
> <UnsetLabelResponse> unset_label(ostree_ostree_config_href, unset_label)
|
262
|
+
|
263
|
+
Unset a label
|
264
|
+
|
265
|
+
Unset a single pulp_label on the object.
|
266
|
+
|
267
|
+
### Examples
|
268
|
+
|
269
|
+
```ruby
|
270
|
+
require 'time'
|
271
|
+
require 'pulp_ostree_client'
|
272
|
+
# setup authorization
|
273
|
+
PulpOstreeClient.configure do |config|
|
274
|
+
# Configure HTTP basic authorization: basicAuth
|
275
|
+
config.username = 'YOUR USERNAME'
|
276
|
+
config.password = 'YOUR PASSWORD'
|
277
|
+
end
|
278
|
+
|
279
|
+
api_instance = PulpOstreeClient::ContentConfigsApi.new
|
280
|
+
ostree_ostree_config_href = 'ostree_ostree_config_href_example' # String |
|
281
|
+
unset_label = PulpOstreeClient::UnsetLabel.new({key: 'key_example'}) # UnsetLabel |
|
282
|
+
|
283
|
+
begin
|
284
|
+
# Unset a label
|
285
|
+
result = api_instance.unset_label(ostree_ostree_config_href, unset_label)
|
286
|
+
p result
|
287
|
+
rescue PulpOstreeClient::ApiError => e
|
288
|
+
puts "Error when calling ContentConfigsApi->unset_label: #{e}"
|
289
|
+
end
|
290
|
+
```
|
291
|
+
|
292
|
+
#### Using the unset_label_with_http_info variant
|
293
|
+
|
294
|
+
This returns an Array which contains the response data, status code and headers.
|
295
|
+
|
296
|
+
> <Array(<UnsetLabelResponse>, Integer, Hash)> unset_label_with_http_info(ostree_ostree_config_href, unset_label)
|
297
|
+
|
298
|
+
```ruby
|
299
|
+
begin
|
300
|
+
# Unset a label
|
301
|
+
data, status_code, headers = api_instance.unset_label_with_http_info(ostree_ostree_config_href, unset_label)
|
302
|
+
p status_code # => 2xx
|
303
|
+
p headers # => { ... }
|
304
|
+
p data # => <UnsetLabelResponse>
|
305
|
+
rescue PulpOstreeClient::ApiError => e
|
306
|
+
puts "Error when calling ContentConfigsApi->unset_label_with_http_info: #{e}"
|
307
|
+
end
|
308
|
+
```
|
309
|
+
|
310
|
+
### Parameters
|
311
|
+
|
312
|
+
| Name | Type | Description | Notes |
|
313
|
+
| ---- | ---- | ----------- | ----- |
|
314
|
+
| **ostree_ostree_config_href** | **String** | | |
|
315
|
+
| **unset_label** | [**UnsetLabel**](UnsetLabel.md) | | |
|
316
|
+
|
317
|
+
### Return type
|
318
|
+
|
319
|
+
[**UnsetLabelResponse**](UnsetLabelResponse.md)
|
320
|
+
|
321
|
+
### Authorization
|
322
|
+
|
323
|
+
[basicAuth](../README.md#basicAuth)
|
324
|
+
|
325
|
+
### HTTP request headers
|
326
|
+
|
327
|
+
- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
|
328
|
+
- **Accept**: application/json
|
329
|
+
|
data/docs/ContentContentApi.md
CHANGED
@@ -7,6 +7,8 @@ All URIs are relative to *http://localhost:24817*
|
|
7
7
|
| [**create**](ContentContentApi.md#create) | **POST** /pulp/api/v3/content/ostree/content/ | Create an ostree content |
|
8
8
|
| [**list**](ContentContentApi.md#list) | **GET** /pulp/api/v3/content/ostree/content/ | List ostree contents |
|
9
9
|
| [**read**](ContentContentApi.md#read) | **GET** {ostree_ostree_content_href} | Inspect an ostree content |
|
10
|
+
| [**set_label**](ContentContentApi.md#set_label) | **POST** {ostree_ostree_content_href}set_label/ | Set a label |
|
11
|
+
| [**unset_label**](ContentContentApi.md#unset_label) | **POST** {ostree_ostree_content_href}unset_label/ | Unset a label |
|
10
12
|
|
11
13
|
|
12
14
|
## create
|
@@ -108,6 +110,7 @@ opts = {
|
|
108
110
|
prn__in: ['inner_example'], # Array<String> | Multiple values may be separated by commas.
|
109
111
|
pulp_href__in: ['inner_example'], # Array<String> | Multiple values may be separated by commas.
|
110
112
|
pulp_id__in: ['inner_example'], # Array<String> | Multiple values may be separated by commas.
|
113
|
+
pulp_label_select: 'pulp_label_select_example', # String | Filter labels by search string
|
111
114
|
q: 'q_example', # String | Filter results by using NOT, AND and OR operations on other filters
|
112
115
|
repository_version: 'repository_version_example', # String | Repository Version referenced by HREF/PRN
|
113
116
|
repository_version_added: 'repository_version_added_example', # String | Repository Version referenced by HREF/PRN
|
@@ -154,6 +157,7 @@ end
|
|
154
157
|
| **prn__in** | [**Array<String>**](String.md) | Multiple values may be separated by commas. | [optional] |
|
155
158
|
| **pulp_href__in** | [**Array<String>**](String.md) | Multiple values may be separated by commas. | [optional] |
|
156
159
|
| **pulp_id__in** | [**Array<String>**](String.md) | Multiple values may be separated by commas. | [optional] |
|
160
|
+
| **pulp_label_select** | **String** | Filter labels by search string | [optional] |
|
157
161
|
| **q** | **String** | Filter results by using NOT, AND and OR operations on other filters | [optional] |
|
158
162
|
| **repository_version** | **String** | Repository Version referenced by HREF/PRN | [optional] |
|
159
163
|
| **repository_version_added** | **String** | Repository Version referenced by HREF/PRN | [optional] |
|
@@ -250,3 +254,147 @@ end
|
|
250
254
|
- **Content-Type**: Not defined
|
251
255
|
- **Accept**: application/json
|
252
256
|
|
257
|
+
|
258
|
+
## set_label
|
259
|
+
|
260
|
+
> <SetLabelResponse> set_label(ostree_ostree_content_href, set_label)
|
261
|
+
|
262
|
+
Set a label
|
263
|
+
|
264
|
+
Set a single pulp_label on the object to a specific value or null.
|
265
|
+
|
266
|
+
### Examples
|
267
|
+
|
268
|
+
```ruby
|
269
|
+
require 'time'
|
270
|
+
require 'pulp_ostree_client'
|
271
|
+
# setup authorization
|
272
|
+
PulpOstreeClient.configure do |config|
|
273
|
+
# Configure HTTP basic authorization: basicAuth
|
274
|
+
config.username = 'YOUR USERNAME'
|
275
|
+
config.password = 'YOUR PASSWORD'
|
276
|
+
end
|
277
|
+
|
278
|
+
api_instance = PulpOstreeClient::ContentContentApi.new
|
279
|
+
ostree_ostree_content_href = 'ostree_ostree_content_href_example' # String |
|
280
|
+
set_label = PulpOstreeClient::SetLabel.new({key: 'key_example', value: 'value_example'}) # SetLabel |
|
281
|
+
|
282
|
+
begin
|
283
|
+
# Set a label
|
284
|
+
result = api_instance.set_label(ostree_ostree_content_href, set_label)
|
285
|
+
p result
|
286
|
+
rescue PulpOstreeClient::ApiError => e
|
287
|
+
puts "Error when calling ContentContentApi->set_label: #{e}"
|
288
|
+
end
|
289
|
+
```
|
290
|
+
|
291
|
+
#### Using the set_label_with_http_info variant
|
292
|
+
|
293
|
+
This returns an Array which contains the response data, status code and headers.
|
294
|
+
|
295
|
+
> <Array(<SetLabelResponse>, Integer, Hash)> set_label_with_http_info(ostree_ostree_content_href, set_label)
|
296
|
+
|
297
|
+
```ruby
|
298
|
+
begin
|
299
|
+
# Set a label
|
300
|
+
data, status_code, headers = api_instance.set_label_with_http_info(ostree_ostree_content_href, set_label)
|
301
|
+
p status_code # => 2xx
|
302
|
+
p headers # => { ... }
|
303
|
+
p data # => <SetLabelResponse>
|
304
|
+
rescue PulpOstreeClient::ApiError => e
|
305
|
+
puts "Error when calling ContentContentApi->set_label_with_http_info: #{e}"
|
306
|
+
end
|
307
|
+
```
|
308
|
+
|
309
|
+
### Parameters
|
310
|
+
|
311
|
+
| Name | Type | Description | Notes |
|
312
|
+
| ---- | ---- | ----------- | ----- |
|
313
|
+
| **ostree_ostree_content_href** | **String** | | |
|
314
|
+
| **set_label** | [**SetLabel**](SetLabel.md) | | |
|
315
|
+
|
316
|
+
### Return type
|
317
|
+
|
318
|
+
[**SetLabelResponse**](SetLabelResponse.md)
|
319
|
+
|
320
|
+
### Authorization
|
321
|
+
|
322
|
+
[basicAuth](../README.md#basicAuth)
|
323
|
+
|
324
|
+
### HTTP request headers
|
325
|
+
|
326
|
+
- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
|
327
|
+
- **Accept**: application/json
|
328
|
+
|
329
|
+
|
330
|
+
## unset_label
|
331
|
+
|
332
|
+
> <UnsetLabelResponse> unset_label(ostree_ostree_content_href, unset_label)
|
333
|
+
|
334
|
+
Unset a label
|
335
|
+
|
336
|
+
Unset a single pulp_label on the object.
|
337
|
+
|
338
|
+
### Examples
|
339
|
+
|
340
|
+
```ruby
|
341
|
+
require 'time'
|
342
|
+
require 'pulp_ostree_client'
|
343
|
+
# setup authorization
|
344
|
+
PulpOstreeClient.configure do |config|
|
345
|
+
# Configure HTTP basic authorization: basicAuth
|
346
|
+
config.username = 'YOUR USERNAME'
|
347
|
+
config.password = 'YOUR PASSWORD'
|
348
|
+
end
|
349
|
+
|
350
|
+
api_instance = PulpOstreeClient::ContentContentApi.new
|
351
|
+
ostree_ostree_content_href = 'ostree_ostree_content_href_example' # String |
|
352
|
+
unset_label = PulpOstreeClient::UnsetLabel.new({key: 'key_example'}) # UnsetLabel |
|
353
|
+
|
354
|
+
begin
|
355
|
+
# Unset a label
|
356
|
+
result = api_instance.unset_label(ostree_ostree_content_href, unset_label)
|
357
|
+
p result
|
358
|
+
rescue PulpOstreeClient::ApiError => e
|
359
|
+
puts "Error when calling ContentContentApi->unset_label: #{e}"
|
360
|
+
end
|
361
|
+
```
|
362
|
+
|
363
|
+
#### Using the unset_label_with_http_info variant
|
364
|
+
|
365
|
+
This returns an Array which contains the response data, status code and headers.
|
366
|
+
|
367
|
+
> <Array(<UnsetLabelResponse>, Integer, Hash)> unset_label_with_http_info(ostree_ostree_content_href, unset_label)
|
368
|
+
|
369
|
+
```ruby
|
370
|
+
begin
|
371
|
+
# Unset a label
|
372
|
+
data, status_code, headers = api_instance.unset_label_with_http_info(ostree_ostree_content_href, unset_label)
|
373
|
+
p status_code # => 2xx
|
374
|
+
p headers # => { ... }
|
375
|
+
p data # => <UnsetLabelResponse>
|
376
|
+
rescue PulpOstreeClient::ApiError => e
|
377
|
+
puts "Error when calling ContentContentApi->unset_label_with_http_info: #{e}"
|
378
|
+
end
|
379
|
+
```
|
380
|
+
|
381
|
+
### Parameters
|
382
|
+
|
383
|
+
| Name | Type | Description | Notes |
|
384
|
+
| ---- | ---- | ----------- | ----- |
|
385
|
+
| **ostree_ostree_content_href** | **String** | | |
|
386
|
+
| **unset_label** | [**UnsetLabel**](UnsetLabel.md) | | |
|
387
|
+
|
388
|
+
### Return type
|
389
|
+
|
390
|
+
[**UnsetLabelResponse**](UnsetLabelResponse.md)
|
391
|
+
|
392
|
+
### Authorization
|
393
|
+
|
394
|
+
[basicAuth](../README.md#basicAuth)
|
395
|
+
|
396
|
+
### HTTP request headers
|
397
|
+
|
398
|
+
- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
|
399
|
+
- **Accept**: application/json
|
400
|
+
|