pulp_ostree_client 2.1.1 → 2.1.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (49) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +16 -5
  3. data/docs/ContentCommitsApi.md +3 -1
  4. data/docs/ContentConfigsApi.md +3 -1
  5. data/docs/ContentContentApi.md +3 -1
  6. data/docs/ContentObjectsApi.md +3 -1
  7. data/docs/ContentRefsApi.md +7 -1
  8. data/docs/ContentSummariesApi.md +3 -1
  9. data/docs/DistributionsOstreeApi.md +120 -2
  10. data/docs/RemotesOstreeApi.md +119 -1
  11. data/docs/RepositoriesOstreeApi.md +120 -2
  12. data/docs/RepositoriesOstreeVersionsApi.md +3 -1
  13. data/docs/SetLabel.md +19 -0
  14. data/docs/SetLabelResponse.md +19 -0
  15. data/docs/UnsetLabel.md +17 -0
  16. data/docs/UnsetLabelResponse.md +19 -0
  17. data/lib/pulp_ostree_client/api/content_commits_api.rb +3 -0
  18. data/lib/pulp_ostree_client/api/content_configs_api.rb +3 -0
  19. data/lib/pulp_ostree_client/api/content_content_api.rb +3 -0
  20. data/lib/pulp_ostree_client/api/content_objects_api.rb +3 -0
  21. data/lib/pulp_ostree_client/api/content_refs_api.rb +9 -0
  22. data/lib/pulp_ostree_client/api/content_summaries_api.rb +3 -0
  23. data/lib/pulp_ostree_client/api/distributions_ostree_api.rb +149 -0
  24. data/lib/pulp_ostree_client/api/remotes_ostree_api.rb +149 -0
  25. data/lib/pulp_ostree_client/api/repositories_ostree_api.rb +149 -0
  26. data/lib/pulp_ostree_client/api/repositories_ostree_versions_api.rb +3 -0
  27. data/lib/pulp_ostree_client/configuration.rb +2 -2
  28. data/lib/pulp_ostree_client/models/set_label.rb +252 -0
  29. data/lib/pulp_ostree_client/models/set_label_response.rb +243 -0
  30. data/lib/pulp_ostree_client/models/unset_label.rb +242 -0
  31. data/lib/pulp_ostree_client/models/unset_label_response.rb +242 -0
  32. data/lib/pulp_ostree_client/version.rb +1 -1
  33. data/lib/pulp_ostree_client.rb +4 -0
  34. data/spec/api/content_commits_api_spec.rb +1 -0
  35. data/spec/api/content_configs_api_spec.rb +1 -0
  36. data/spec/api/content_content_api_spec.rb +1 -0
  37. data/spec/api/content_objects_api_spec.rb +1 -0
  38. data/spec/api/content_refs_api_spec.rb +3 -0
  39. data/spec/api/content_summaries_api_spec.rb +1 -0
  40. data/spec/api/distributions_ostree_api_spec.rb +29 -0
  41. data/spec/api/remotes_ostree_api_spec.rb +29 -0
  42. data/spec/api/repositories_ostree_api_spec.rb +29 -0
  43. data/spec/api/repositories_ostree_versions_api_spec.rb +1 -0
  44. data/spec/configuration_spec.rb +3 -3
  45. data/spec/models/set_label_response_spec.rb +47 -0
  46. data/spec/models/set_label_spec.rb +47 -0
  47. data/spec/models/unset_label_response_spec.rb +47 -0
  48. data/spec/models/unset_label_spec.rb +41 -0
  49. metadata +49 -33
@@ -91,13 +91,16 @@ describe 'RepositoriesOstreeApi' do
91
91
  # @option opts [String] :name Filter results where name matches value
92
92
  # @option opts [String] :name__contains Filter results where name contains value
93
93
  # @option opts [String] :name__icontains Filter results where name contains value
94
+ # @option opts [String] :name__iexact Filter results where name matches value
94
95
  # @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
96
+ # @option opts [String] :name__istartswith Filter results where name starts with value
95
97
  # @option opts [String] :name__startswith Filter results where name starts with value
96
98
  # @option opts [Integer] :offset The initial index from which to return the results.
97
99
  # @option opts [Array<String>] :ordering Ordering * &#x60;pulp_id&#x60; - Pulp id * &#x60;-pulp_id&#x60; - Pulp id (descending) * &#x60;pulp_created&#x60; - Pulp created * &#x60;-pulp_created&#x60; - Pulp created (descending) * &#x60;pulp_last_updated&#x60; - Pulp last updated * &#x60;-pulp_last_updated&#x60; - Pulp last updated (descending) * &#x60;pulp_type&#x60; - Pulp type * &#x60;-pulp_type&#x60; - Pulp type (descending) * &#x60;name&#x60; - Name * &#x60;-name&#x60; - Name (descending) * &#x60;pulp_labels&#x60; - Pulp labels * &#x60;-pulp_labels&#x60; - Pulp labels (descending) * &#x60;description&#x60; - Description * &#x60;-description&#x60; - Description (descending) * &#x60;next_version&#x60; - Next version * &#x60;-next_version&#x60; - Next version (descending) * &#x60;retain_repo_versions&#x60; - Retain repo versions * &#x60;-retain_repo_versions&#x60; - Retain repo versions (descending) * &#x60;user_hidden&#x60; - User hidden * &#x60;-user_hidden&#x60; - User hidden (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
98
100
  # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
99
101
  # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
100
102
  # @option opts [String] :pulp_label_select Filter labels by search string
103
+ # @option opts [String] :q
101
104
  # @option opts [String] :remote Foreign Key referenced by HREF
102
105
  # @option opts [Integer] :retain_repo_versions Filter results where retain_repo_versions matches value
103
106
  # @option opts [Integer] :retain_repo_versions__gt Filter results where retain_repo_versions is greater than value
@@ -157,6 +160,19 @@ describe 'RepositoriesOstreeApi' do
157
160
  end
158
161
  end
159
162
 
163
+ # unit tests for set_label
164
+ # Set a label
165
+ # Set a single pulp_label on the object to a specific value or null.
166
+ # @param ostree_ostree_repository_href
167
+ # @param set_label
168
+ # @param [Hash] opts the optional parameters
169
+ # @return [SetLabelResponse]
170
+ describe 'set_label test' do
171
+ it 'should work' do
172
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
173
+ end
174
+ end
175
+
160
176
  # unit tests for sync
161
177
  # Sync from remote
162
178
  # Trigger an asynchronous task to sync content.
@@ -170,6 +186,19 @@ describe 'RepositoriesOstreeApi' do
170
186
  end
171
187
  end
172
188
 
189
+ # unit tests for unset_label
190
+ # Unset a label
191
+ # Unset a single pulp_label on the object.
192
+ # @param ostree_ostree_repository_href
193
+ # @param unset_label
194
+ # @param [Hash] opts the optional parameters
195
+ # @return [UnsetLabelResponse]
196
+ describe 'unset_label test' do
197
+ it 'should work' do
198
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
199
+ end
200
+ end
201
+
173
202
  # unit tests for update
174
203
  # Update an ostree repository
175
204
  # Trigger an asynchronous update task
@@ -67,6 +67,7 @@ describe 'RepositoriesOstreeVersionsApi' do
67
67
  # @option opts [DateTime] :pulp_created__lte Filter results where pulp_created is less than or equal to value
68
68
  # @option opts [Array<DateTime>] :pulp_created__range Filter results where pulp_created is between two comma separated values
69
69
  # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
70
+ # @option opts [String] :q
70
71
  # @option opts [Array<String>] :fields A list of fields to include in the response.
71
72
  # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
72
73
  # @return [PaginatedRepositoryVersionResponseList]
@@ -18,7 +18,7 @@ describe PulpOstreeClient::Configuration do
18
18
  before(:each) do
19
19
  # uncomment below to setup host and base_path
20
20
  # require 'URI'
21
- # uri = URI.parse("https://pulp")
21
+ # uri = URI.parse("http://pulp")
22
22
  # PulpOstreeClient.configure do |c|
23
23
  # c.host = uri.host
24
24
  # c.base_path = uri.path
@@ -28,14 +28,14 @@ describe PulpOstreeClient::Configuration do
28
28
  describe '#base_url' do
29
29
  it 'should have the default value' do
30
30
  # uncomment below to test default value of the base path
31
- # expect(config.base_url).to eq("https://pulp")
31
+ # expect(config.base_url).to eq("http://pulp")
32
32
  end
33
33
 
34
34
  it 'should remove trailing slashes' do
35
35
  [nil, '', '/', '//'].each do |base_path|
36
36
  config.base_path = base_path
37
37
  # uncomment below to test trailing slashes
38
- # expect(config.base_url).to eq("https://pulp")
38
+ # expect(config.base_url).to eq("http://pulp")
39
39
  end
40
40
  end
41
41
  end
@@ -0,0 +1,47 @@
1
+ =begin
2
+ #Pulp 3 API
3
+
4
+ #Fetch, Upload, Organize, and Distribute Software Packages
5
+
6
+ The version of the OpenAPI document: v3
7
+ Contact: pulp-list@redhat.com
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 4.3.1
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+ require 'date'
16
+
17
+ # Unit tests for PulpOstreeClient::SetLabelResponse
18
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
+ # Please update as you see appropriate
20
+ describe 'SetLabelResponse' do
21
+ before do
22
+ # run before each test
23
+ @instance = PulpOstreeClient::SetLabelResponse.new
24
+ end
25
+
26
+ after do
27
+ # run after each test
28
+ end
29
+
30
+ describe 'test an instance of SetLabelResponse' do
31
+ it 'should create an instance of SetLabelResponse' do
32
+ expect(@instance).to be_instance_of(PulpOstreeClient::SetLabelResponse)
33
+ end
34
+ end
35
+ describe 'test attribute "key"' do
36
+ it 'should work' do
37
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
38
+ end
39
+ end
40
+
41
+ describe 'test attribute "value"' do
42
+ it 'should work' do
43
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
44
+ end
45
+ end
46
+
47
+ end
@@ -0,0 +1,47 @@
1
+ =begin
2
+ #Pulp 3 API
3
+
4
+ #Fetch, Upload, Organize, and Distribute Software Packages
5
+
6
+ The version of the OpenAPI document: v3
7
+ Contact: pulp-list@redhat.com
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 4.3.1
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+ require 'date'
16
+
17
+ # Unit tests for PulpOstreeClient::SetLabel
18
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
+ # Please update as you see appropriate
20
+ describe 'SetLabel' do
21
+ before do
22
+ # run before each test
23
+ @instance = PulpOstreeClient::SetLabel.new
24
+ end
25
+
26
+ after do
27
+ # run after each test
28
+ end
29
+
30
+ describe 'test an instance of SetLabel' do
31
+ it 'should create an instance of SetLabel' do
32
+ expect(@instance).to be_instance_of(PulpOstreeClient::SetLabel)
33
+ end
34
+ end
35
+ describe 'test attribute "key"' do
36
+ it 'should work' do
37
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
38
+ end
39
+ end
40
+
41
+ describe 'test attribute "value"' do
42
+ it 'should work' do
43
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
44
+ end
45
+ end
46
+
47
+ end
@@ -0,0 +1,47 @@
1
+ =begin
2
+ #Pulp 3 API
3
+
4
+ #Fetch, Upload, Organize, and Distribute Software Packages
5
+
6
+ The version of the OpenAPI document: v3
7
+ Contact: pulp-list@redhat.com
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 4.3.1
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+ require 'date'
16
+
17
+ # Unit tests for PulpOstreeClient::UnsetLabelResponse
18
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
+ # Please update as you see appropriate
20
+ describe 'UnsetLabelResponse' do
21
+ before do
22
+ # run before each test
23
+ @instance = PulpOstreeClient::UnsetLabelResponse.new
24
+ end
25
+
26
+ after do
27
+ # run after each test
28
+ end
29
+
30
+ describe 'test an instance of UnsetLabelResponse' do
31
+ it 'should create an instance of UnsetLabelResponse' do
32
+ expect(@instance).to be_instance_of(PulpOstreeClient::UnsetLabelResponse)
33
+ end
34
+ end
35
+ describe 'test attribute "key"' do
36
+ it 'should work' do
37
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
38
+ end
39
+ end
40
+
41
+ describe 'test attribute "value"' do
42
+ it 'should work' do
43
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
44
+ end
45
+ end
46
+
47
+ end
@@ -0,0 +1,41 @@
1
+ =begin
2
+ #Pulp 3 API
3
+
4
+ #Fetch, Upload, Organize, and Distribute Software Packages
5
+
6
+ The version of the OpenAPI document: v3
7
+ Contact: pulp-list@redhat.com
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 4.3.1
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+ require 'date'
16
+
17
+ # Unit tests for PulpOstreeClient::UnsetLabel
18
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
+ # Please update as you see appropriate
20
+ describe 'UnsetLabel' do
21
+ before do
22
+ # run before each test
23
+ @instance = PulpOstreeClient::UnsetLabel.new
24
+ end
25
+
26
+ after do
27
+ # run after each test
28
+ end
29
+
30
+ describe 'test an instance of UnsetLabel' do
31
+ it 'should create an instance of UnsetLabel' do
32
+ expect(@instance).to be_instance_of(PulpOstreeClient::UnsetLabel)
33
+ end
34
+ end
35
+ describe 'test attribute "key"' do
36
+ it 'should work' do
37
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
38
+ end
39
+ end
40
+
41
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pulp_ostree_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.1
4
+ version: 2.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - OpenAPI-Generator
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-07-12 00:00:00.000000000 Z
11
+ date: 2023-09-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -125,6 +125,10 @@ files:
125
125
  - docs/RepositoryAddRemoveContent.md
126
126
  - docs/RepositorySyncURL.md
127
127
  - docs/RepositoryVersionResponse.md
128
+ - docs/SetLabel.md
129
+ - docs/SetLabelResponse.md
130
+ - docs/UnsetLabel.md
131
+ - docs/UnsetLabelResponse.md
128
132
  - lib/pulp_ostree_client.rb
129
133
  - lib/pulp_ostree_client/api/content_commits_api.rb
130
134
  - lib/pulp_ostree_client/api/content_configs_api.rb
@@ -174,6 +178,10 @@ files:
174
178
  - lib/pulp_ostree_client/models/repository_add_remove_content.rb
175
179
  - lib/pulp_ostree_client/models/repository_sync_url.rb
176
180
  - lib/pulp_ostree_client/models/repository_version_response.rb
181
+ - lib/pulp_ostree_client/models/set_label.rb
182
+ - lib/pulp_ostree_client/models/set_label_response.rb
183
+ - lib/pulp_ostree_client/models/unset_label.rb
184
+ - lib/pulp_ostree_client/models/unset_label_response.rb
177
185
  - lib/pulp_ostree_client/version.rb
178
186
  - pulp_ostree_client.gemspec
179
187
  - spec/api/content_commits_api_spec.rb
@@ -223,6 +231,10 @@ files:
223
231
  - spec/models/repository_add_remove_content_spec.rb
224
232
  - spec/models/repository_sync_url_spec.rb
225
233
  - spec/models/repository_version_response_spec.rb
234
+ - spec/models/set_label_response_spec.rb
235
+ - spec/models/set_label_spec.rb
236
+ - spec/models/unset_label_response_spec.rb
237
+ - spec/models/unset_label_spec.rb
226
238
  - spec/spec_helper.rb
227
239
  homepage: https://github.com/pulp/pulp_ostree
228
240
  licenses:
@@ -249,50 +261,54 @@ specification_version: 4
249
261
  summary: Pulp 3 API Ruby Gem
250
262
  test_files:
251
263
  - spec/api/remotes_ostree_api_spec.rb
252
- - spec/api/content_objects_api_spec.rb
253
- - spec/api/content_configs_api_spec.rb
254
- - spec/api/distributions_ostree_api_spec.rb
255
264
  - spec/api/repositories_ostree_versions_api_spec.rb
256
- - spec/api/repositories_ostree_api_spec.rb
257
265
  - spec/api/content_summaries_api_spec.rb
258
- - spec/api/content_commits_api_spec.rb
259
- - spec/api/content_content_api_spec.rb
266
+ - spec/api/content_objects_api_spec.rb
267
+ - spec/api/repositories_ostree_api_spec.rb
268
+ - spec/api/distributions_ostree_api_spec.rb
269
+ - spec/api/content_configs_api_spec.rb
260
270
  - spec/api/content_refs_api_spec.rb
271
+ - spec/api/content_content_api_spec.rb
272
+ - spec/api/content_commits_api_spec.rb
261
273
  - spec/api_client_spec.rb
262
274
  - spec/configuration_spec.rb
263
- - spec/models/ostree_ostree_remote_response_hidden_fields_spec.rb
264
- - spec/models/repair_spec.rb
265
- - spec/models/patchedostree_ostree_repository_spec.rb
266
- - spec/models/ostree_import_commits_to_ref_spec.rb
267
- - spec/models/paginatedostree_ostree_config_response_list_spec.rb
268
- - spec/models/ostree_ostree_distribution_response_spec.rb
269
- - spec/models/ostree_ostree_summary_response_spec.rb
275
+ - spec/models/paginatedostree_ostree_object_response_list_spec.rb
276
+ - spec/models/ostree_ostree_remote_spec.rb
270
277
  - spec/models/ostree_ostree_remote_response_spec.rb
271
- - spec/models/patchedostree_ostree_remote_spec.rb
272
278
  - spec/models/repository_sync_url_spec.rb
273
- - spec/models/ostree_ostree_repository_response_spec.rb
279
+ - spec/models/patchedostree_ostree_repository_spec.rb
274
280
  - spec/models/ostree_ostree_content_response_spec.rb
275
- - spec/models/paginatedostree_ostree_repository_response_list_spec.rb
276
- - spec/models/ostree_ostree_commit_response_spec.rb
277
281
  - spec/models/ostree_ostree_object_response_spec.rb
278
- - spec/models/ostree_ostree_config_response_spec.rb
279
- - spec/models/paginatedostree_ostree_object_response_list_spec.rb
280
- - spec/models/paginatedostree_ostree_commit_response_list_spec.rb
281
- - spec/models/paginatedostree_ostree_content_response_list_spec.rb
282
+ - spec/models/ostree_ostree_repository_spec.rb
282
283
  - spec/models/async_operation_response_spec.rb
284
+ - spec/models/repair_spec.rb
285
+ - spec/models/unset_label_response_spec.rb
286
+ - spec/models/ostree_ostree_distribution_response_spec.rb
287
+ - spec/models/set_label_response_spec.rb
288
+ - spec/models/repository_add_remove_content_spec.rb
289
+ - spec/models/ostree_import_commits_to_ref_spec.rb
283
290
  - spec/models/paginatedostree_ostree_remote_response_list_spec.rb
284
- - spec/models/patchedostree_ostree_distribution_spec.rb
291
+ - spec/models/set_label_spec.rb
292
+ - spec/models/paginated_repository_version_response_list_spec.rb
285
293
  - spec/models/paginatedostree_ostree_ref_response_list_spec.rb
286
- - spec/models/paginatedostree_ostree_distribution_response_list_spec.rb
287
- - spec/models/repository_version_response_spec.rb
294
+ - spec/models/patchedostree_ostree_distribution_spec.rb
295
+ - spec/models/ostree_ostree_commit_response_spec.rb
296
+ - spec/models/patchedostree_ostree_remote_spec.rb
297
+ - spec/models/ostree_ostree_config_response_spec.rb
298
+ - spec/models/paginatedostree_ostree_content_response_list_spec.rb
299
+ - spec/models/paginatedostree_ostree_config_response_list_spec.rb
300
+ - spec/models/ostree_import_all_spec.rb
288
301
  - spec/models/ostree_ostree_distribution_spec.rb
289
- - spec/models/policy_enum_spec.rb
290
- - spec/models/ostree_ostree_remote_spec.rb
291
- - spec/models/repository_add_remove_content_spec.rb
302
+ - spec/models/ostree_ostree_repository_response_spec.rb
303
+ - spec/models/paginatedostree_ostree_commit_response_list_spec.rb
304
+ - spec/models/ostree_ostree_summary_response_spec.rb
305
+ - spec/models/repository_version_response_spec.rb
306
+ - spec/models/paginatedostree_ostree_distribution_response_list_spec.rb
292
307
  - spec/models/ostree_ostree_ref_response_spec.rb
293
- - spec/models/paginatedostree_ostree_summary_response_list_spec.rb
294
- - spec/models/ostree_ostree_repository_spec.rb
295
- - spec/models/ostree_import_all_spec.rb
296
- - spec/models/paginated_repository_version_response_list_spec.rb
308
+ - spec/models/unset_label_spec.rb
297
309
  - spec/models/content_summary_response_spec.rb
310
+ - spec/models/paginatedostree_ostree_repository_response_list_spec.rb
311
+ - spec/models/policy_enum_spec.rb
312
+ - spec/models/paginatedostree_ostree_summary_response_list_spec.rb
313
+ - spec/models/ostree_ostree_remote_response_hidden_fields_spec.rb
298
314
  - spec/spec_helper.rb