pulp_gem_client 0.1.1 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (43) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +17 -7
  3. data/docs/ContentGemApi.md +8 -6
  4. data/docs/DistributionsGemApi.md +120 -2
  5. data/docs/GemGemContent.md +4 -4
  6. data/docs/GemGemContentResponse.md +2 -0
  7. data/docs/PublicationsGemApi.md +3 -1
  8. data/docs/RemotesGemApi.md +119 -1
  9. data/docs/RepositoriesGemApi.md +120 -2
  10. data/docs/RepositoriesGemVersionsApi.md +3 -1
  11. data/docs/SetLabel.md +19 -0
  12. data/docs/SetLabelResponse.md +19 -0
  13. data/docs/UnsetLabel.md +17 -0
  14. data/docs/UnsetLabelResponse.md +19 -0
  15. data/lib/pulp_gem_client/api/content_gem_api.rb +9 -6
  16. data/lib/pulp_gem_client/api/distributions_gem_api.rb +149 -0
  17. data/lib/pulp_gem_client/api/publications_gem_api.rb +3 -0
  18. data/lib/pulp_gem_client/api/remotes_gem_api.rb +149 -0
  19. data/lib/pulp_gem_client/api/repositories_gem_api.rb +149 -0
  20. data/lib/pulp_gem_client/api/repositories_gem_versions_api.rb +3 -0
  21. data/lib/pulp_gem_client/configuration.rb +2 -2
  22. data/lib/pulp_gem_client/models/gem_gem_content.rb +14 -14
  23. data/lib/pulp_gem_client/models/gem_gem_content_response.rb +11 -1
  24. data/lib/pulp_gem_client/models/set_label.rb +252 -0
  25. data/lib/pulp_gem_client/models/set_label_response.rb +243 -0
  26. data/lib/pulp_gem_client/models/unset_label.rb +242 -0
  27. data/lib/pulp_gem_client/models/unset_label_response.rb +242 -0
  28. data/lib/pulp_gem_client/version.rb +1 -1
  29. data/lib/pulp_gem_client.rb +4 -0
  30. data/spec/api/content_gem_api_spec.rb +3 -2
  31. data/spec/api/distributions_gem_api_spec.rb +29 -0
  32. data/spec/api/publications_gem_api_spec.rb +1 -0
  33. data/spec/api/remotes_gem_api_spec.rb +29 -0
  34. data/spec/api/repositories_gem_api_spec.rb +29 -0
  35. data/spec/api/repositories_gem_versions_api_spec.rb +1 -0
  36. data/spec/configuration_spec.rb +3 -3
  37. data/spec/models/gem_gem_content_response_spec.rb +6 -0
  38. data/spec/models/gem_gem_content_spec.rb +3 -3
  39. data/spec/models/set_label_response_spec.rb +47 -0
  40. data/spec/models/set_label_spec.rb +47 -0
  41. data/spec/models/unset_label_response_spec.rb +47 -0
  42. data/spec/models/unset_label_spec.rb +41 -0
  43. metadata +39 -23
@@ -65,13 +65,16 @@ describe 'RepositoriesGemApi' do
65
65
  # @option opts [String] :name Filter results where name matches value
66
66
  # @option opts [String] :name__contains Filter results where name contains value
67
67
  # @option opts [String] :name__icontains Filter results where name contains value
68
+ # @option opts [String] :name__iexact Filter results where name matches value
68
69
  # @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
70
+ # @option opts [String] :name__istartswith Filter results where name starts with value
69
71
  # @option opts [String] :name__startswith Filter results where name starts with value
70
72
  # @option opts [Integer] :offset The initial index from which to return the results.
71
73
  # @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)
72
74
  # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
73
75
  # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
74
76
  # @option opts [String] :pulp_label_select Filter labels by search string
77
+ # @option opts [String] :q
75
78
  # @option opts [String] :remote Foreign Key referenced by HREF
76
79
  # @option opts [Integer] :retain_repo_versions Filter results where retain_repo_versions matches value
77
80
  # @option opts [Integer] :retain_repo_versions__gt Filter results where retain_repo_versions is greater than value
@@ -131,6 +134,19 @@ describe 'RepositoriesGemApi' do
131
134
  end
132
135
  end
133
136
 
137
+ # unit tests for set_label
138
+ # Set a label
139
+ # Set a single pulp_label on the object to a specific value or null.
140
+ # @param gem_gem_repository_href
141
+ # @param set_label
142
+ # @param [Hash] opts the optional parameters
143
+ # @return [SetLabelResponse]
144
+ describe 'set_label test' do
145
+ it 'should work' do
146
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
147
+ end
148
+ end
149
+
134
150
  # unit tests for sync
135
151
  # Sync from a remote
136
152
  # Trigger an asynchronous task to sync gem content.
@@ -144,6 +160,19 @@ describe 'RepositoriesGemApi' do
144
160
  end
145
161
  end
146
162
 
163
+ # unit tests for unset_label
164
+ # Unset a label
165
+ # Unset a single pulp_label on the object.
166
+ # @param gem_gem_repository_href
167
+ # @param unset_label
168
+ # @param [Hash] opts the optional parameters
169
+ # @return [UnsetLabelResponse]
170
+ describe 'unset_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
+
147
176
  # unit tests for update
148
177
  # Update a gem repository
149
178
  # Trigger an asynchronous update task
@@ -67,6 +67,7 @@ describe 'RepositoriesGemVersionsApi' 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 PulpGemClient::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
  # PulpGemClient.configure do |c|
23
23
  # c.host = uri.host
24
24
  # c.base_path = uri.path
@@ -28,14 +28,14 @@ describe PulpGemClient::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
@@ -68,6 +68,12 @@ describe 'GemGemContentResponse' do
68
68
  end
69
69
  end
70
70
 
71
+ describe 'test attribute "platform"' do
72
+ it 'should work' do
73
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
74
+ end
75
+ end
76
+
71
77
  describe 'test attribute "prerelease"' do
72
78
  it 'should work' do
73
79
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -32,19 +32,19 @@ describe 'GemGemContent' do
32
32
  expect(@instance).to be_instance_of(PulpGemClient::GemGemContent)
33
33
  end
34
34
  end
35
- describe 'test attribute "artifact"' do
35
+ describe 'test attribute "repository"' do
36
36
  it 'should work' do
37
37
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
38
38
  end
39
39
  end
40
40
 
41
- describe 'test attribute "file"' do
41
+ describe 'test attribute "artifact"' do
42
42
  it 'should work' do
43
43
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
44
44
  end
45
45
  end
46
46
 
47
- describe 'test attribute "repository"' do
47
+ describe 'test attribute "file"' do
48
48
  it 'should work' do
49
49
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
50
50
  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 PulpGemClient::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 = PulpGemClient::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(PulpGemClient::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 PulpGemClient::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 = PulpGemClient::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(PulpGemClient::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 PulpGemClient::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 = PulpGemClient::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(PulpGemClient::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 PulpGemClient::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 = PulpGemClient::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(PulpGemClient::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_gem_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.3.0
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-06-29 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
@@ -113,6 +113,10 @@ files:
113
113
  - docs/RepositoryAddRemoveContent.md
114
114
  - docs/RepositorySyncURL.md
115
115
  - docs/RepositoryVersionResponse.md
116
+ - docs/SetLabel.md
117
+ - docs/SetLabelResponse.md
118
+ - docs/UnsetLabel.md
119
+ - docs/UnsetLabelResponse.md
116
120
  - lib/pulp_gem_client.rb
117
121
  - lib/pulp_gem_client/api/content_gem_api.rb
118
122
  - lib/pulp_gem_client/api/distributions_gem_api.rb
@@ -150,6 +154,10 @@ files:
150
154
  - lib/pulp_gem_client/models/repository_add_remove_content.rb
151
155
  - lib/pulp_gem_client/models/repository_sync_url.rb
152
156
  - lib/pulp_gem_client/models/repository_version_response.rb
157
+ - lib/pulp_gem_client/models/set_label.rb
158
+ - lib/pulp_gem_client/models/set_label_response.rb
159
+ - lib/pulp_gem_client/models/unset_label.rb
160
+ - lib/pulp_gem_client/models/unset_label_response.rb
153
161
  - lib/pulp_gem_client/version.rb
154
162
  - pulp_gem_client.gemspec
155
163
  - spec/api/content_gem_api_spec.rb
@@ -187,6 +195,10 @@ files:
187
195
  - spec/models/repository_add_remove_content_spec.rb
188
196
  - spec/models/repository_sync_url_spec.rb
189
197
  - spec/models/repository_version_response_spec.rb
198
+ - spec/models/set_label_response_spec.rb
199
+ - spec/models/set_label_spec.rb
200
+ - spec/models/unset_label_response_spec.rb
201
+ - spec/models/unset_label_spec.rb
190
202
  - spec/spec_helper.rb
191
203
  homepage: https://github.com/pulp/pulp_gem
192
204
  licenses:
@@ -212,39 +224,43 @@ signing_key:
212
224
  specification_version: 4
213
225
  summary: Pulp 3 API Ruby Gem
214
226
  test_files:
215
- - spec/api/distributions_gem_api_spec.rb
216
227
  - spec/api/repositories_gem_api_spec.rb
217
- - spec/api/content_gem_api_spec.rb
218
228
  - spec/api/remotes_gem_api_spec.rb
219
- - spec/api/publications_gem_api_spec.rb
229
+ - spec/api/distributions_gem_api_spec.rb
220
230
  - spec/api/repositories_gem_versions_api_spec.rb
231
+ - spec/api/content_gem_api_spec.rb
232
+ - spec/api/publications_gem_api_spec.rb
221
233
  - spec/api_client_spec.rb
222
234
  - spec/configuration_spec.rb
223
- - spec/models/gem_gem_content_spec.rb
235
+ - spec/models/repository_sync_url_spec.rb
224
236
  - spec/models/patchedgem_gem_distribution_spec.rb
237
+ - spec/models/gem_gem_publication_response_spec.rb
225
238
  - spec/models/async_operation_response_spec.rb
226
- - spec/models/gem_gem_distribution_spec.rb
227
- - spec/models/paginatedgem_gem_publication_response_list_spec.rb
239
+ - spec/models/repair_spec.rb
228
240
  - spec/models/gem_gem_remote_spec.rb
241
+ - spec/models/unset_label_response_spec.rb
242
+ - spec/models/set_label_response_spec.rb
243
+ - spec/models/repository_add_remove_content_spec.rb
229
244
  - spec/models/paginatedgem_gem_repository_response_list_spec.rb
230
- - spec/models/repository_sync_url_spec.rb
231
- - spec/models/gem_gem_repository_spec.rb
232
- - spec/models/gem_gem_remote_response_hidden_fields_spec.rb
245
+ - spec/models/gem_gem_distribution_spec.rb
246
+ - spec/models/gem_gem_publication_spec.rb
247
+ - spec/models/paginatedgem_gem_publication_response_list_spec.rb
233
248
  - spec/models/gem_gem_remote_response_spec.rb
249
+ - spec/models/set_label_spec.rb
250
+ - spec/models/paginated_repository_version_response_list_spec.rb
251
+ - spec/models/gem_gem_content_response_spec.rb
252
+ - spec/models/gem_gem_repository_response_spec.rb
234
253
  - spec/models/paginatedgem_gem_remote_response_list_spec.rb
235
- - spec/models/patchedgem_gem_remote_spec.rb
236
- - spec/models/paginatedgem_gem_distribution_response_list_spec.rb
237
- - spec/models/gem_gem_distribution_response_spec.rb
238
254
  - spec/models/paginatedgem_gem_content_response_list_spec.rb
239
- - spec/models/gem_gem_publication_response_spec.rb
240
- - spec/models/content_summary_response_spec.rb
241
- - spec/models/policy_enum_spec.rb
242
- - spec/models/gem_gem_publication_spec.rb
243
- - spec/models/gem_gem_content_response_spec.rb
255
+ - spec/models/gem_gem_repository_spec.rb
256
+ - spec/models/paginatedgem_gem_distribution_response_list_spec.rb
257
+ - spec/models/gem_gem_content_spec.rb
258
+ - spec/models/patchedgem_gem_remote_spec.rb
259
+ - spec/models/gem_gem_remote_response_hidden_fields_spec.rb
244
260
  - spec/models/repository_version_response_spec.rb
261
+ - spec/models/unset_label_spec.rb
262
+ - spec/models/content_summary_response_spec.rb
245
263
  - spec/models/patchedgem_gem_repository_spec.rb
246
- - spec/models/paginated_repository_version_response_list_spec.rb
247
- - spec/models/gem_gem_repository_response_spec.rb
248
- - spec/models/repair_spec.rb
249
- - spec/models/repository_add_remove_content_spec.rb
264
+ - spec/models/policy_enum_spec.rb
265
+ - spec/models/gem_gem_distribution_response_spec.rb
250
266
  - spec/spec_helper.rb