pulp_gem_client 0.6.0 → 0.6.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +11 -8
- data/docs/AsyncOperationResponse.md +8 -7
- data/docs/ContentGemApi.md +118 -66
- data/docs/ContentSummaryResponse.md +12 -11
- data/docs/DistributionsGemApi.md +388 -183
- data/docs/GemGemContentResponse.md +32 -29
- data/docs/GemGemDistribution.md +22 -21
- data/docs/GemGemDistributionResponse.md +34 -29
- data/docs/GemGemPublication.md +10 -9
- data/docs/GemGemPublicationResponse.md +18 -15
- data/docs/GemGemRemote.md +54 -53
- data/docs/GemGemRemoteResponse.md +54 -51
- data/docs/GemGemRemoteResponseHiddenFieldsInner.md +20 -0
- data/docs/GemGemRepository.md +16 -15
- data/docs/GemGemRepositoryResponse.md +28 -25
- 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/PaginatedRepositoryVersionResponseList.md +14 -13
- data/docs/PaginatedgemGemContentResponseList.md +14 -13
- data/docs/PaginatedgemGemDistributionResponseList.md +14 -13
- data/docs/PaginatedgemGemPublicationResponseList.md +14 -13
- data/docs/PaginatedgemGemRemoteResponseList.md +14 -13
- data/docs/PaginatedgemGemRepositoryResponseList.md +14 -13
- data/docs/PatchedgemGemDistribution.md +22 -21
- data/docs/PatchedgemGemRemote.md +54 -53
- data/docs/PatchedgemGemRepository.md +16 -15
- data/docs/PolicyEnum.md +4 -5
- data/docs/PublicationsGemApi.md +271 -132
- data/docs/RemotesGemApi.md +392 -185
- data/docs/Repair.md +8 -7
- data/docs/RepositoriesGemApi.md +449 -210
- data/docs/RepositoriesGemVersionsApi.md +155 -83
- data/docs/RepositoryAddRemoveContent.md +12 -11
- data/docs/RepositorySyncURL.md +10 -9
- data/docs/RepositoryVersionResponse.md +22 -19
- 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_gem_client/api/content_gem_api.rb +31 -22
- data/lib/pulp_gem_client/api/distributions_gem_api.rb +94 -58
- data/lib/pulp_gem_client/api/publications_gem_api.rb +81 -58
- data/lib/pulp_gem_client/api/remotes_gem_api.rb +109 -70
- data/lib/pulp_gem_client/api/repositories_gem_api.rb +116 -72
- data/lib/pulp_gem_client/api/repositories_gem_versions_api.rb +50 -37
- data/lib/pulp_gem_client/api_client.rb +137 -102
- data/lib/pulp_gem_client/api_error.rb +2 -1
- data/lib/pulp_gem_client/configuration.rb +162 -21
- data/lib/pulp_gem_client/models/async_operation_response.rb +32 -22
- data/lib/pulp_gem_client/models/content_summary_response.rb +36 -22
- data/lib/pulp_gem_client/models/gem_gem_content_response.rb +45 -25
- data/lib/pulp_gem_client/models/gem_gem_distribution.rb +34 -22
- data/lib/pulp_gem_client/models/gem_gem_distribution_response.rb +57 -25
- data/lib/pulp_gem_client/models/gem_gem_publication.rb +30 -22
- data/lib/pulp_gem_client/models/gem_gem_publication_response.rb +43 -25
- data/lib/pulp_gem_client/models/gem_gem_remote.rb +56 -22
- data/lib/pulp_gem_client/models/gem_gem_remote_response.rb +70 -26
- data/lib/pulp_gem_client/models/{gem_gem_remote_response_hidden_fields.rb → gem_gem_remote_response_hidden_fields_inner.rb} +37 -25
- data/lib/pulp_gem_client/models/gem_gem_repository.rb +32 -22
- data/lib/pulp_gem_client/models/gem_gem_repository_response.rb +45 -25
- data/lib/pulp_gem_client/models/my_permissions_response.rb +32 -22
- data/lib/pulp_gem_client/models/nested_role.rb +32 -22
- data/lib/pulp_gem_client/models/nested_role_response.rb +32 -22
- data/lib/pulp_gem_client/models/object_roles_response.rb +32 -22
- data/lib/pulp_gem_client/models/paginated_repository_version_response_list.rb +34 -22
- data/lib/pulp_gem_client/models/paginatedgem_gem_content_response_list.rb +34 -22
- data/lib/pulp_gem_client/models/paginatedgem_gem_distribution_response_list.rb +34 -22
- data/lib/pulp_gem_client/models/paginatedgem_gem_publication_response_list.rb +34 -22
- data/lib/pulp_gem_client/models/paginatedgem_gem_remote_response_list.rb +34 -22
- data/lib/pulp_gem_client/models/paginatedgem_gem_repository_response_list.rb +34 -22
- data/lib/pulp_gem_client/models/patchedgem_gem_distribution.rb +40 -24
- data/lib/pulp_gem_client/models/patchedgem_gem_remote.rb +62 -24
- data/lib/pulp_gem_client/models/patchedgem_gem_repository.rb +35 -23
- data/lib/pulp_gem_client/models/policy_enum.rb +8 -4
- data/lib/pulp_gem_client/models/repair.rb +30 -22
- data/lib/pulp_gem_client/models/repository_add_remove_content.rb +31 -23
- data/lib/pulp_gem_client/models/repository_sync_url.rb +30 -22
- data/lib/pulp_gem_client/models/repository_version_response.rb +44 -26
- data/lib/pulp_gem_client/models/set_label.rb +34 -22
- data/lib/pulp_gem_client/models/set_label_response.rb +34 -22
- data/lib/pulp_gem_client/models/unset_label.rb +32 -22
- data/lib/pulp_gem_client/models/unset_label_response.rb +32 -22
- data/lib/pulp_gem_client/version.rb +2 -2
- data/lib/pulp_gem_client.rb +2 -3
- data/pulp_gem_client.gemspec +9 -6
- data/spec/api/content_gem_api_spec.rb +9 -8
- data/spec/api/distributions_gem_api_spec.rb +15 -14
- data/spec/api/publications_gem_api_spec.rb +22 -20
- data/spec/api/remotes_gem_api_spec.rb +22 -20
- data/spec/api/repositories_gem_api_spec.rb +19 -18
- data/spec/api/repositories_gem_versions_api_spec.rb +16 -14
- data/spec/models/async_operation_response_spec.rb +7 -12
- data/spec/models/content_summary_response_spec.rb +9 -14
- data/spec/models/gem_gem_content_response_spec.rb +24 -23
- data/spec/models/gem_gem_distribution_response_spec.rb +30 -23
- data/spec/models/gem_gem_distribution_spec.rb +14 -19
- data/spec/models/gem_gem_publication_response_spec.rb +17 -16
- data/spec/models/gem_gem_publication_spec.rb +8 -13
- data/spec/models/{gem_gem_remote_response_hidden_fields_spec.rb → gem_gem_remote_response_hidden_fields_inner_spec.rb} +11 -16
- data/spec/models/gem_gem_remote_response_spec.rb +35 -34
- data/spec/models/gem_gem_remote_spec.rb +30 -35
- data/spec/models/gem_gem_repository_response_spec.rb +22 -21
- data/spec/models/gem_gem_repository_spec.rb +11 -16
- 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/paginated_repository_version_response_list_spec.rb +10 -15
- data/spec/models/paginatedgem_gem_content_response_list_spec.rb +10 -15
- data/spec/models/paginatedgem_gem_distribution_response_list_spec.rb +10 -15
- data/spec/models/paginatedgem_gem_publication_response_list_spec.rb +10 -15
- data/spec/models/paginatedgem_gem_remote_response_list_spec.rb +10 -15
- data/spec/models/paginatedgem_gem_repository_response_list_spec.rb +10 -15
- data/spec/models/patchedgem_gem_distribution_spec.rb +14 -19
- data/spec/models/patchedgem_gem_remote_spec.rb +30 -35
- data/spec/models/patchedgem_gem_repository_spec.rb +11 -16
- 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 +19 -18
- 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 +80 -60
- data/docs/GemGemContent.md +0 -21
- data/docs/GemGemRemoteResponseHiddenFields.md +0 -19
- data/lib/pulp_gem_client/models/gem_gem_content.rb +0 -228
- data/spec/api_client_spec.rb +0 -188
- data/spec/configuration_spec.rb +0 -42
- data/spec/models/gem_gem_content_spec.rb +0 -53
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: v3
|
7
7
|
Contact: pulp-list@redhat.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
|
9
|
+
Generator version: 7.10.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -17,30 +17,25 @@ require 'date'
|
|
17
17
|
# Unit tests for PulpGemClient::UnsetLabelResponse
|
18
18
|
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
19
|
# Please update as you see appropriate
|
20
|
-
describe
|
21
|
-
|
22
|
-
# run before each test
|
23
|
-
@instance = PulpGemClient::UnsetLabelResponse.new
|
24
|
-
end
|
25
|
-
|
26
|
-
after do
|
27
|
-
# run after each test
|
28
|
-
end
|
20
|
+
describe PulpGemClient::UnsetLabelResponse do
|
21
|
+
let(:instance) { PulpGemClient::UnsetLabelResponse.new }
|
29
22
|
|
30
23
|
describe 'test an instance of UnsetLabelResponse' do
|
31
24
|
it 'should create an instance of UnsetLabelResponse' do
|
32
|
-
|
25
|
+
# uncomment below to test the instance creation
|
26
|
+
#expect(instance).to be_instance_of(PulpGemClient::UnsetLabelResponse)
|
33
27
|
end
|
34
28
|
end
|
29
|
+
|
35
30
|
describe 'test attribute "key"' do
|
36
31
|
it 'should work' do
|
37
|
-
# assertion here. ref: https://
|
32
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
38
33
|
end
|
39
34
|
end
|
40
35
|
|
41
36
|
describe 'test attribute "value"' do
|
42
37
|
it 'should work' do
|
43
|
-
# assertion here. ref: https://
|
38
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
44
39
|
end
|
45
40
|
end
|
46
41
|
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: v3
|
7
7
|
Contact: pulp-list@redhat.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
|
9
|
+
Generator version: 7.10.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -17,24 +17,19 @@ require 'date'
|
|
17
17
|
# Unit tests for PulpGemClient::UnsetLabel
|
18
18
|
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
19
|
# Please update as you see appropriate
|
20
|
-
describe
|
21
|
-
|
22
|
-
# run before each test
|
23
|
-
@instance = PulpGemClient::UnsetLabel.new
|
24
|
-
end
|
25
|
-
|
26
|
-
after do
|
27
|
-
# run after each test
|
28
|
-
end
|
20
|
+
describe PulpGemClient::UnsetLabel do
|
21
|
+
let(:instance) { PulpGemClient::UnsetLabel.new }
|
29
22
|
|
30
23
|
describe 'test an instance of UnsetLabel' do
|
31
24
|
it 'should create an instance of UnsetLabel' do
|
32
|
-
|
25
|
+
# uncomment below to test the instance creation
|
26
|
+
#expect(instance).to be_instance_of(PulpGemClient::UnsetLabel)
|
33
27
|
end
|
34
28
|
end
|
29
|
+
|
35
30
|
describe 'test attribute "key"' do
|
36
31
|
it 'should work' do
|
37
|
-
# assertion here. ref: https://
|
32
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
38
33
|
end
|
39
34
|
end
|
40
35
|
|
data/spec/spec_helper.rb
CHANGED
metadata
CHANGED
@@ -1,15 +1,35 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pulp_gem_client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- OpenAPI-Generator
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2025-02-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: faraday-net_http
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '2.0'
|
20
|
+
- - "<"
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: '3.1'
|
23
|
+
type: :runtime
|
24
|
+
prerelease: false
|
25
|
+
version_requirements: !ruby/object:Gem::Requirement
|
26
|
+
requirements:
|
27
|
+
- - ">="
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '2.0'
|
30
|
+
- - "<"
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: '3.1'
|
13
33
|
- !ruby/object:Gem::Dependency
|
14
34
|
name: faraday
|
15
35
|
requirement: !ruby/object:Gem::Requirement
|
@@ -19,7 +39,7 @@ dependencies:
|
|
19
39
|
version: 1.0.1
|
20
40
|
- - "<"
|
21
41
|
- !ruby/object:Gem::Version
|
22
|
-
version: '2.
|
42
|
+
version: '2.9'
|
23
43
|
type: :runtime
|
24
44
|
prerelease: false
|
25
45
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -29,47 +49,55 @@ dependencies:
|
|
29
49
|
version: 1.0.1
|
30
50
|
- - "<"
|
31
51
|
- !ruby/object:Gem::Version
|
32
|
-
version: '2.
|
52
|
+
version: '2.9'
|
33
53
|
- !ruby/object:Gem::Dependency
|
34
|
-
name:
|
54
|
+
name: faraday-multipart
|
35
55
|
requirement: !ruby/object:Gem::Requirement
|
36
56
|
requirements:
|
37
57
|
- - ">="
|
38
58
|
- !ruby/object:Gem::Version
|
39
|
-
version:
|
40
|
-
- - "~>"
|
41
|
-
- !ruby/object:Gem::Version
|
42
|
-
version: '2.1'
|
59
|
+
version: '0'
|
43
60
|
type: :runtime
|
44
61
|
prerelease: false
|
45
62
|
version_requirements: !ruby/object:Gem::Requirement
|
46
63
|
requirements:
|
47
64
|
- - ">="
|
48
65
|
- !ruby/object:Gem::Version
|
49
|
-
version:
|
50
|
-
- - "~>"
|
51
|
-
- !ruby/object:Gem::Version
|
52
|
-
version: '2.1'
|
66
|
+
version: '0'
|
53
67
|
- !ruby/object:Gem::Dependency
|
54
|
-
name:
|
68
|
+
name: marcel
|
55
69
|
requirement: !ruby/object:Gem::Requirement
|
56
70
|
requirements:
|
57
71
|
- - ">="
|
58
72
|
- !ruby/object:Gem::Version
|
59
|
-
version:
|
73
|
+
version: '0'
|
74
|
+
type: :runtime
|
75
|
+
prerelease: false
|
76
|
+
version_requirements: !ruby/object:Gem::Requirement
|
77
|
+
requirements:
|
78
|
+
- - ">="
|
79
|
+
- !ruby/object:Gem::Version
|
80
|
+
version: '0'
|
81
|
+
- !ruby/object:Gem::Dependency
|
82
|
+
name: rspec
|
83
|
+
requirement: !ruby/object:Gem::Requirement
|
84
|
+
requirements:
|
60
85
|
- - "~>"
|
61
86
|
- !ruby/object:Gem::Version
|
62
87
|
version: '3.6'
|
88
|
+
- - ">="
|
89
|
+
- !ruby/object:Gem::Version
|
90
|
+
version: 3.6.0
|
63
91
|
type: :development
|
64
92
|
prerelease: false
|
65
93
|
version_requirements: !ruby/object:Gem::Requirement
|
66
94
|
requirements:
|
67
|
-
- - ">="
|
68
|
-
- !ruby/object:Gem::Version
|
69
|
-
version: 3.6.0
|
70
95
|
- - "~>"
|
71
96
|
- !ruby/object:Gem::Version
|
72
97
|
version: '3.6'
|
98
|
+
- - ">="
|
99
|
+
- !ruby/object:Gem::Version
|
100
|
+
version: 3.6.0
|
73
101
|
description: Fetch, Upload, Organize, and Distribute Software Packages
|
74
102
|
email:
|
75
103
|
- pulp-list@redhat.com
|
@@ -84,7 +112,6 @@ files:
|
|
84
112
|
- docs/ContentGemApi.md
|
85
113
|
- docs/ContentSummaryResponse.md
|
86
114
|
- docs/DistributionsGemApi.md
|
87
|
-
- docs/GemGemContent.md
|
88
115
|
- docs/GemGemContentResponse.md
|
89
116
|
- docs/GemGemDistribution.md
|
90
117
|
- docs/GemGemDistributionResponse.md
|
@@ -92,7 +119,7 @@ files:
|
|
92
119
|
- docs/GemGemPublicationResponse.md
|
93
120
|
- docs/GemGemRemote.md
|
94
121
|
- docs/GemGemRemoteResponse.md
|
95
|
-
- docs/
|
122
|
+
- docs/GemGemRemoteResponseHiddenFieldsInner.md
|
96
123
|
- docs/GemGemRepository.md
|
97
124
|
- docs/GemGemRepositoryResponse.md
|
98
125
|
- docs/MyPermissionsResponse.md
|
@@ -133,7 +160,6 @@ files:
|
|
133
160
|
- lib/pulp_gem_client/configuration.rb
|
134
161
|
- lib/pulp_gem_client/models/async_operation_response.rb
|
135
162
|
- lib/pulp_gem_client/models/content_summary_response.rb
|
136
|
-
- lib/pulp_gem_client/models/gem_gem_content.rb
|
137
163
|
- lib/pulp_gem_client/models/gem_gem_content_response.rb
|
138
164
|
- lib/pulp_gem_client/models/gem_gem_distribution.rb
|
139
165
|
- lib/pulp_gem_client/models/gem_gem_distribution_response.rb
|
@@ -141,7 +167,7 @@ files:
|
|
141
167
|
- lib/pulp_gem_client/models/gem_gem_publication_response.rb
|
142
168
|
- lib/pulp_gem_client/models/gem_gem_remote.rb
|
143
169
|
- lib/pulp_gem_client/models/gem_gem_remote_response.rb
|
144
|
-
- lib/pulp_gem_client/models/
|
170
|
+
- lib/pulp_gem_client/models/gem_gem_remote_response_hidden_fields_inner.rb
|
145
171
|
- lib/pulp_gem_client/models/gem_gem_repository.rb
|
146
172
|
- lib/pulp_gem_client/models/gem_gem_repository_response.rb
|
147
173
|
- lib/pulp_gem_client/models/my_permissions_response.rb
|
@@ -174,17 +200,14 @@ files:
|
|
174
200
|
- spec/api/remotes_gem_api_spec.rb
|
175
201
|
- spec/api/repositories_gem_api_spec.rb
|
176
202
|
- spec/api/repositories_gem_versions_api_spec.rb
|
177
|
-
- spec/api_client_spec.rb
|
178
|
-
- spec/configuration_spec.rb
|
179
203
|
- spec/models/async_operation_response_spec.rb
|
180
204
|
- spec/models/content_summary_response_spec.rb
|
181
205
|
- spec/models/gem_gem_content_response_spec.rb
|
182
|
-
- spec/models/gem_gem_content_spec.rb
|
183
206
|
- spec/models/gem_gem_distribution_response_spec.rb
|
184
207
|
- spec/models/gem_gem_distribution_spec.rb
|
185
208
|
- spec/models/gem_gem_publication_response_spec.rb
|
186
209
|
- spec/models/gem_gem_publication_spec.rb
|
187
|
-
- spec/models/
|
210
|
+
- spec/models/gem_gem_remote_response_hidden_fields_inner_spec.rb
|
188
211
|
- spec/models/gem_gem_remote_response_spec.rb
|
189
212
|
- spec/models/gem_gem_remote_spec.rb
|
190
213
|
- spec/models/gem_gem_repository_response_spec.rb
|
@@ -216,7 +239,7 @@ homepage: https://github.com/pulp/pulp_gem
|
|
216
239
|
licenses:
|
217
240
|
- GPLv2+
|
218
241
|
metadata: {}
|
219
|
-
post_install_message:
|
242
|
+
post_install_message:
|
220
243
|
rdoc_options: []
|
221
244
|
require_paths:
|
222
245
|
- lib
|
@@ -224,59 +247,56 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
224
247
|
requirements:
|
225
248
|
- - ">="
|
226
249
|
- !ruby/object:Gem::Version
|
227
|
-
version: '
|
250
|
+
version: '2.7'
|
228
251
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
229
252
|
requirements:
|
230
253
|
- - ">="
|
231
254
|
- !ruby/object:Gem::Version
|
232
255
|
version: '0'
|
233
256
|
requirements: []
|
234
|
-
rubygems_version: 3.
|
235
|
-
signing_key:
|
257
|
+
rubygems_version: 3.4.20
|
258
|
+
signing_key:
|
236
259
|
specification_version: 4
|
237
260
|
summary: Pulp 3 API Ruby Gem
|
238
261
|
test_files:
|
262
|
+
- spec/api/repositories_gem_api_spec.rb
|
263
|
+
- spec/api/repositories_gem_versions_api_spec.rb
|
239
264
|
- spec/api/content_gem_api_spec.rb
|
240
265
|
- spec/api/distributions_gem_api_spec.rb
|
241
266
|
- spec/api/remotes_gem_api_spec.rb
|
242
|
-
- spec/api/repositories_gem_versions_api_spec.rb
|
243
|
-
- spec/api/repositories_gem_api_spec.rb
|
244
267
|
- spec/api/publications_gem_api_spec.rb
|
245
|
-
- spec/
|
246
|
-
- spec/
|
247
|
-
- spec/models/paginatedgem_gem_content_response_list_spec.rb
|
248
|
-
- spec/models/gem_gem_content_spec.rb
|
268
|
+
- spec/models/repository_version_response_spec.rb
|
269
|
+
- spec/models/gem_gem_publication_response_spec.rb
|
249
270
|
- spec/models/object_roles_response_spec.rb
|
250
|
-
- spec/models/gem_gem_repository_response_spec.rb
|
251
271
|
- spec/models/unset_label_response_spec.rb
|
252
|
-
- spec/models/
|
272
|
+
- spec/models/set_label_spec.rb
|
273
|
+
- spec/models/gem_gem_remote_response_spec.rb
|
253
274
|
- spec/models/repository_sync_url_spec.rb
|
275
|
+
- spec/models/repository_add_remove_content_spec.rb
|
276
|
+
- spec/models/paginatedgem_gem_publication_response_list_spec.rb
|
277
|
+
- spec/models/patchedgem_gem_distribution_spec.rb
|
278
|
+
- spec/models/gem_gem_distribution_response_spec.rb
|
279
|
+
- spec/models/paginatedgem_gem_repository_response_list_spec.rb
|
280
|
+
- spec/models/gem_gem_repository_response_spec.rb
|
281
|
+
- spec/models/paginatedgem_gem_content_response_list_spec.rb
|
282
|
+
- spec/models/gem_gem_distribution_spec.rb
|
283
|
+
- spec/models/nested_role_spec.rb
|
284
|
+
- spec/models/repair_spec.rb
|
285
|
+
- spec/models/gem_gem_remote_response_hidden_fields_inner_spec.rb
|
254
286
|
- spec/models/gem_gem_repository_spec.rb
|
255
|
-
- spec/models/
|
287
|
+
- spec/models/gem_gem_publication_spec.rb
|
288
|
+
- spec/models/content_summary_response_spec.rb
|
256
289
|
- spec/models/my_permissions_response_spec.rb
|
257
|
-
- spec/models/
|
290
|
+
- spec/models/paginatedgem_gem_distribution_response_list_spec.rb
|
291
|
+
- spec/models/paginatedgem_gem_remote_response_list_spec.rb
|
258
292
|
- spec/models/gem_gem_content_response_spec.rb
|
259
|
-
- spec/models/
|
260
|
-
- spec/models/
|
261
|
-
- spec/models/
|
262
|
-
- spec/models/
|
293
|
+
- spec/models/patchedgem_gem_remote_spec.rb
|
294
|
+
- spec/models/set_label_response_spec.rb
|
295
|
+
- spec/models/nested_role_response_spec.rb
|
296
|
+
- spec/models/patchedgem_gem_repository_spec.rb
|
263
297
|
- spec/models/policy_enum_spec.rb
|
264
|
-
- spec/models/
|
265
|
-
- spec/models/gem_gem_remote_response_spec.rb
|
266
|
-
- spec/models/repository_version_response_spec.rb
|
267
|
-
- spec/models/gem_gem_publication_response_spec.rb
|
298
|
+
- spec/models/gem_gem_remote_spec.rb
|
268
299
|
- spec/models/async_operation_response_spec.rb
|
269
300
|
- spec/models/paginated_repository_version_response_list_spec.rb
|
270
|
-
- spec/models/nested_role_response_spec.rb
|
271
|
-
- spec/models/set_label_spec.rb
|
272
|
-
- spec/models/nested_role_spec.rb
|
273
|
-
- spec/models/paginatedgem_gem_distribution_response_list_spec.rb
|
274
|
-
- spec/models/patchedgem_gem_remote_spec.rb
|
275
|
-
- spec/models/paginatedgem_gem_repository_response_list_spec.rb
|
276
|
-
- spec/models/gem_gem_publication_spec.rb
|
277
|
-
- spec/models/paginatedgem_gem_remote_response_list_spec.rb
|
278
301
|
- spec/models/unset_label_spec.rb
|
279
|
-
- spec/models/gem_gem_remote_response_hidden_fields_spec.rb
|
280
|
-
- spec/models/paginatedgem_gem_publication_response_list_spec.rb
|
281
|
-
- spec/models/gem_gem_distribution_spec.rb
|
282
302
|
- spec/spec_helper.rb
|
data/docs/GemGemContent.md
DELETED
@@ -1,21 +0,0 @@
|
|
1
|
-
# PulpGemClient::GemGemContent
|
2
|
-
|
3
|
-
## Properties
|
4
|
-
|
5
|
-
Name | Type | Description | Notes
|
6
|
-
------------ | ------------- | ------------- | -------------
|
7
|
-
**repository** | **String** | A URI of a repository the new content unit should be associated with. | [optional]
|
8
|
-
**artifact** | **String** | Artifact file representing the physical content | [optional]
|
9
|
-
**file** | **File** | An uploaded file that should be turned into the artifact of the content unit. | [optional]
|
10
|
-
|
11
|
-
## Code Sample
|
12
|
-
|
13
|
-
```ruby
|
14
|
-
require 'PulpGemClient'
|
15
|
-
|
16
|
-
instance = PulpGemClient::GemGemContent.new(repository: null,
|
17
|
-
artifact: null,
|
18
|
-
file: null)
|
19
|
-
```
|
20
|
-
|
21
|
-
|
@@ -1,19 +0,0 @@
|
|
1
|
-
# PulpGemClient::GemGemRemoteResponseHiddenFields
|
2
|
-
|
3
|
-
## Properties
|
4
|
-
|
5
|
-
Name | Type | Description | Notes
|
6
|
-
------------ | ------------- | ------------- | -------------
|
7
|
-
**name** | **String** | |
|
8
|
-
**is_set** | **Boolean** | |
|
9
|
-
|
10
|
-
## Code Sample
|
11
|
-
|
12
|
-
```ruby
|
13
|
-
require 'PulpGemClient'
|
14
|
-
|
15
|
-
instance = PulpGemClient::GemGemRemoteResponseHiddenFields.new(name: null,
|
16
|
-
is_set: null)
|
17
|
-
```
|
18
|
-
|
19
|
-
|
@@ -1,228 +0,0 @@
|
|
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 'date'
|
14
|
-
|
15
|
-
module PulpGemClient
|
16
|
-
# A Serializer for GemContent.
|
17
|
-
class GemGemContent
|
18
|
-
# A URI of a repository the new content unit should be associated with.
|
19
|
-
attr_accessor :repository
|
20
|
-
|
21
|
-
# Artifact file representing the physical content
|
22
|
-
attr_accessor :artifact
|
23
|
-
|
24
|
-
# An uploaded file that should be turned into the artifact of the content unit.
|
25
|
-
attr_accessor :file
|
26
|
-
|
27
|
-
# Attribute mapping from ruby-style variable name to JSON key.
|
28
|
-
def self.attribute_map
|
29
|
-
{
|
30
|
-
:'repository' => :'repository',
|
31
|
-
:'artifact' => :'artifact',
|
32
|
-
:'file' => :'file'
|
33
|
-
}
|
34
|
-
end
|
35
|
-
|
36
|
-
# Attribute type mapping.
|
37
|
-
def self.openapi_types
|
38
|
-
{
|
39
|
-
:'repository' => :'String',
|
40
|
-
:'artifact' => :'String',
|
41
|
-
:'file' => :'File'
|
42
|
-
}
|
43
|
-
end
|
44
|
-
|
45
|
-
# List of attributes with nullable: true
|
46
|
-
def self.openapi_nullable
|
47
|
-
Set.new([
|
48
|
-
])
|
49
|
-
end
|
50
|
-
|
51
|
-
# Initializes the object
|
52
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
53
|
-
def initialize(attributes = {})
|
54
|
-
if (!attributes.is_a?(Hash))
|
55
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `PulpGemClient::GemGemContent` initialize method"
|
56
|
-
end
|
57
|
-
|
58
|
-
# check to see if the attribute exists and convert string to symbol for hash key
|
59
|
-
attributes = attributes.each_with_object({}) { |(k, v), h|
|
60
|
-
if (!self.class.attribute_map.key?(k.to_sym))
|
61
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `PulpGemClient::GemGemContent`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
62
|
-
end
|
63
|
-
h[k.to_sym] = v
|
64
|
-
}
|
65
|
-
|
66
|
-
if attributes.key?(:'repository')
|
67
|
-
self.repository = attributes[:'repository']
|
68
|
-
end
|
69
|
-
|
70
|
-
if attributes.key?(:'artifact')
|
71
|
-
self.artifact = attributes[:'artifact']
|
72
|
-
end
|
73
|
-
|
74
|
-
if attributes.key?(:'file')
|
75
|
-
self.file = attributes[:'file']
|
76
|
-
end
|
77
|
-
end
|
78
|
-
|
79
|
-
# Show invalid properties with the reasons. Usually used together with valid?
|
80
|
-
# @return Array for valid properties with the reasons
|
81
|
-
def list_invalid_properties
|
82
|
-
invalid_properties = Array.new
|
83
|
-
invalid_properties
|
84
|
-
end
|
85
|
-
|
86
|
-
# Check to see if the all the properties in the model are valid
|
87
|
-
# @return true if the model is valid
|
88
|
-
def valid?
|
89
|
-
true
|
90
|
-
end
|
91
|
-
|
92
|
-
# Checks equality by comparing each attribute.
|
93
|
-
# @param [Object] Object to be compared
|
94
|
-
def ==(o)
|
95
|
-
return true if self.equal?(o)
|
96
|
-
self.class == o.class &&
|
97
|
-
repository == o.repository &&
|
98
|
-
artifact == o.artifact &&
|
99
|
-
file == o.file
|
100
|
-
end
|
101
|
-
|
102
|
-
# @see the `==` method
|
103
|
-
# @param [Object] Object to be compared
|
104
|
-
def eql?(o)
|
105
|
-
self == o
|
106
|
-
end
|
107
|
-
|
108
|
-
# Calculates hash code according to all attributes.
|
109
|
-
# @return [Integer] Hash code
|
110
|
-
def hash
|
111
|
-
[repository, artifact, file].hash
|
112
|
-
end
|
113
|
-
|
114
|
-
# Builds the object from hash
|
115
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
116
|
-
# @return [Object] Returns the model itself
|
117
|
-
def self.build_from_hash(attributes)
|
118
|
-
new.build_from_hash(attributes)
|
119
|
-
end
|
120
|
-
|
121
|
-
# Builds the object from hash
|
122
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
123
|
-
# @return [Object] Returns the model itself
|
124
|
-
def build_from_hash(attributes)
|
125
|
-
return nil unless attributes.is_a?(Hash)
|
126
|
-
self.class.openapi_types.each_pair do |key, type|
|
127
|
-
if type =~ /\AArray<(.*)>/i
|
128
|
-
# check to ensure the input is an array given that the attribute
|
129
|
-
# is documented as an array but the input is not
|
130
|
-
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
131
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
132
|
-
end
|
133
|
-
elsif !attributes[self.class.attribute_map[key]].nil?
|
134
|
-
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
135
|
-
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
136
|
-
end
|
137
|
-
|
138
|
-
self
|
139
|
-
end
|
140
|
-
|
141
|
-
# Deserializes the data based on type
|
142
|
-
# @param string type Data type
|
143
|
-
# @param string value Value to be deserialized
|
144
|
-
# @return [Object] Deserialized data
|
145
|
-
def _deserialize(type, value)
|
146
|
-
case type.to_sym
|
147
|
-
when :DateTime
|
148
|
-
DateTime.parse(value)
|
149
|
-
when :Date
|
150
|
-
Date.parse(value)
|
151
|
-
when :String
|
152
|
-
value.to_s
|
153
|
-
when :Integer
|
154
|
-
value.to_i
|
155
|
-
when :Float
|
156
|
-
value.to_f
|
157
|
-
when :Boolean
|
158
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
159
|
-
true
|
160
|
-
else
|
161
|
-
false
|
162
|
-
end
|
163
|
-
when :Object
|
164
|
-
# generic object (usually a Hash), return directly
|
165
|
-
value
|
166
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
167
|
-
inner_type = Regexp.last_match[:inner_type]
|
168
|
-
value.map { |v| _deserialize(inner_type, v) }
|
169
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
170
|
-
k_type = Regexp.last_match[:k_type]
|
171
|
-
v_type = Regexp.last_match[:v_type]
|
172
|
-
{}.tap do |hash|
|
173
|
-
value.each do |k, v|
|
174
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
175
|
-
end
|
176
|
-
end
|
177
|
-
else # model
|
178
|
-
PulpGemClient.const_get(type).build_from_hash(value)
|
179
|
-
end
|
180
|
-
end
|
181
|
-
|
182
|
-
# Returns the string representation of the object
|
183
|
-
# @return [String] String presentation of the object
|
184
|
-
def to_s
|
185
|
-
to_hash.to_s
|
186
|
-
end
|
187
|
-
|
188
|
-
# to_body is an alias to to_hash (backward compatibility)
|
189
|
-
# @return [Hash] Returns the object in the form of hash
|
190
|
-
def to_body
|
191
|
-
to_hash
|
192
|
-
end
|
193
|
-
|
194
|
-
# Returns the object in the form of hash
|
195
|
-
# @return [Hash] Returns the object in the form of hash
|
196
|
-
def to_hash
|
197
|
-
hash = {}
|
198
|
-
self.class.attribute_map.each_pair do |attr, param|
|
199
|
-
value = self.send(attr)
|
200
|
-
if value.nil?
|
201
|
-
is_nullable = self.class.openapi_nullable.include?(attr)
|
202
|
-
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
203
|
-
end
|
204
|
-
|
205
|
-
hash[param] = _to_hash(value)
|
206
|
-
end
|
207
|
-
hash
|
208
|
-
end
|
209
|
-
|
210
|
-
# Outputs non-array value in the form of hash
|
211
|
-
# For object, use to_hash. Otherwise, just return the value
|
212
|
-
# @param [Object] value Any valid value
|
213
|
-
# @return [Hash] Returns the value in the form of hash
|
214
|
-
def _to_hash(value)
|
215
|
-
if value.is_a?(Array)
|
216
|
-
value.compact.map { |v| _to_hash(v) }
|
217
|
-
elsif value.is_a?(Hash)
|
218
|
-
{}.tap do |hash|
|
219
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
220
|
-
end
|
221
|
-
elsif value.respond_to? :to_hash
|
222
|
-
value.to_hash
|
223
|
-
else
|
224
|
-
value
|
225
|
-
end
|
226
|
-
end
|
227
|
-
end
|
228
|
-
end
|