pulp_container_client 2.14.18 → 2.15.0.dev1661401897
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.
Potentially problematic release.
This version of pulp_container_client might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/README.md +7 -8
- data/docs/ContainerContainerDistribution.md +3 -3
- data/docs/ContainerContainerDistributionResponse.md +7 -7
- data/docs/ContainerContainerPushRepository.md +6 -6
- data/docs/ContainerContainerPushRepositoryResponse.md +10 -10
- data/docs/ContainerContainerRemote.md +1 -1
- data/docs/ContainerContainerRemoteResponse.md +1 -3
- data/docs/ContainerContainerRepository.md +1 -1
- data/docs/ContainerContainerRepositoryResponse.md +1 -1
- data/docs/ContentBlobsApi.md +9 -9
- data/docs/ContentManifestsApi.md +9 -9
- data/docs/ContentSignaturesApi.md +9 -9
- data/docs/ContentTagsApi.md +9 -9
- data/docs/DistributionsContainerApi.md +21 -21
- data/docs/PatchedcontainerContainerDistribution.md +3 -3
- data/docs/PatchedcontainerContainerPushRepository.md +6 -6
- data/docs/PatchedcontainerContainerRemote.md +1 -1
- data/docs/PatchedcontainerContainerRepository.md +1 -1
- data/docs/PulpContainerNamespacesApi.md +17 -17
- data/docs/RemotesContainerApi.md +21 -21
- data/docs/RepositoriesContainerApi.md +20 -20
- data/docs/RepositoriesContainerPushApi.md +20 -20
- data/docs/RepositoriesContainerPushVersionsApi.md +13 -13
- data/docs/RepositoriesContainerVersionsApi.md +13 -13
- data/docs/TokenApi.md +1 -1
- data/lib/pulp_container_client/api/content_blobs_api.rb +13 -13
- data/lib/pulp_container_client/api/content_manifests_api.rb +13 -13
- data/lib/pulp_container_client/api/content_signatures_api.rb +13 -13
- data/lib/pulp_container_client/api/content_tags_api.rb +13 -13
- data/lib/pulp_container_client/api/distributions_container_api.rb +29 -29
- data/lib/pulp_container_client/api/pulp_container_namespaces_api.rb +25 -25
- data/lib/pulp_container_client/api/remotes_container_api.rb +29 -29
- data/lib/pulp_container_client/api/repositories_container_api.rb +27 -27
- data/lib/pulp_container_client/api/repositories_container_push_api.rb +27 -27
- data/lib/pulp_container_client/api/repositories_container_push_versions_api.rb +17 -17
- data/lib/pulp_container_client/api/repositories_container_versions_api.rb +17 -17
- data/lib/pulp_container_client/configuration.rb +3 -3
- data/lib/pulp_container_client/models/container_container_distribution.rb +13 -15
- data/lib/pulp_container_client/models/container_container_distribution_response.rb +29 -31
- data/lib/pulp_container_client/models/container_container_push_repository.rb +24 -26
- data/lib/pulp_container_client/models/container_container_push_repository_response.rb +42 -44
- data/lib/pulp_container_client/models/container_container_remote.rb +2 -4
- data/lib/pulp_container_client/models/container_container_remote_response.rb +3 -17
- data/lib/pulp_container_client/models/container_container_repository.rb +2 -4
- data/lib/pulp_container_client/models/container_container_repository_response.rb +2 -4
- data/lib/pulp_container_client/models/patchedcontainer_container_distribution.rb +13 -15
- data/lib/pulp_container_client/models/patchedcontainer_container_push_repository.rb +24 -26
- data/lib/pulp_container_client/models/patchedcontainer_container_remote.rb +2 -4
- data/lib/pulp_container_client/models/patchedcontainer_container_repository.rb +2 -4
- data/lib/pulp_container_client/version.rb +1 -1
- data/lib/pulp_container_client.rb +0 -1
- data/spec/api/content_blobs_api_spec.rb +4 -4
- data/spec/api/content_manifests_api_spec.rb +4 -4
- data/spec/api/content_signatures_api_spec.rb +4 -4
- data/spec/api/content_tags_api_spec.rb +4 -4
- data/spec/api/distributions_container_api_spec.rb +10 -10
- data/spec/api/pulp_container_namespaces_api_spec.rb +8 -8
- data/spec/api/remotes_container_api_spec.rb +10 -10
- data/spec/api/repositories_container_api_spec.rb +9 -9
- data/spec/api/repositories_container_push_api_spec.rb +9 -9
- data/spec/api/repositories_container_push_versions_api_spec.rb +6 -6
- data/spec/api/repositories_container_versions_api_spec.rb +6 -6
- data/spec/configuration_spec.rb +3 -3
- data/spec/models/container_container_distribution_response_spec.rb +5 -5
- data/spec/models/container_container_distribution_spec.rb +3 -3
- data/spec/models/container_container_push_repository_response_spec.rb +7 -7
- data/spec/models/container_container_push_repository_spec.rb +4 -4
- data/spec/models/container_container_remote_response_spec.rb +0 -6
- data/spec/models/patchedcontainer_container_distribution_spec.rb +3 -3
- data/spec/models/patchedcontainer_container_push_repository_spec.rb +4 -4
- metadata +64 -68
- data/docs/ContainerContainerRemoteResponseHiddenFields.md +0 -19
- data/lib/pulp_container_client/models/container_container_remote_response_hidden_fields.rb +0 -225
- data/spec/models/container_container_remote_response_hidden_fields_spec.rb +0 -47
@@ -32,13 +32,13 @@ describe 'ContainerContainerPushRepository' do
|
|
32
32
|
expect(@instance).to be_instance_of(PulpContainerClient::ContainerContainerPushRepository)
|
33
33
|
end
|
34
34
|
end
|
35
|
-
describe 'test attribute "
|
35
|
+
describe 'test attribute "manifest_signing_service"' 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 "
|
41
|
+
describe 'test attribute "retain_repo_versions"' 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
|
@@ -50,13 +50,13 @@ describe 'ContainerContainerPushRepository' do
|
|
50
50
|
end
|
51
51
|
end
|
52
52
|
|
53
|
-
describe 'test attribute "
|
53
|
+
describe 'test attribute "description"' do
|
54
54
|
it 'should work' do
|
55
55
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
56
56
|
end
|
57
57
|
end
|
58
58
|
|
59
|
-
describe 'test attribute "
|
59
|
+
describe 'test attribute "name"' do
|
60
60
|
it 'should work' do
|
61
61
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
62
62
|
end
|
@@ -146,12 +146,6 @@ describe 'ContainerContainerRemoteResponse' do
|
|
146
146
|
end
|
147
147
|
end
|
148
148
|
|
149
|
-
describe 'test attribute "hidden_fields"' do
|
150
|
-
it 'should work' do
|
151
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
152
|
-
end
|
153
|
-
end
|
154
|
-
|
155
149
|
describe 'test attribute "upstream_name"' do
|
156
150
|
it 'should work' do
|
157
151
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
@@ -38,19 +38,19 @@ describe 'PatchedcontainerContainerDistribution' do
|
|
38
38
|
end
|
39
39
|
end
|
40
40
|
|
41
|
-
describe 'test attribute "
|
41
|
+
describe 'test attribute "content_guard"' 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 "
|
47
|
+
describe 'test attribute "pulp_labels"' 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
|
51
51
|
end
|
52
52
|
|
53
|
-
describe 'test attribute "
|
53
|
+
describe 'test attribute "name"' do
|
54
54
|
it 'should work' do
|
55
55
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
56
56
|
end
|
@@ -32,13 +32,13 @@ describe 'PatchedcontainerContainerPushRepository' do
|
|
32
32
|
expect(@instance).to be_instance_of(PulpContainerClient::PatchedcontainerContainerPushRepository)
|
33
33
|
end
|
34
34
|
end
|
35
|
-
describe 'test attribute "
|
35
|
+
describe 'test attribute "manifest_signing_service"' 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 "
|
41
|
+
describe 'test attribute "retain_repo_versions"' 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
|
@@ -50,13 +50,13 @@ describe 'PatchedcontainerContainerPushRepository' do
|
|
50
50
|
end
|
51
51
|
end
|
52
52
|
|
53
|
-
describe 'test attribute "
|
53
|
+
describe 'test attribute "description"' do
|
54
54
|
it 'should work' do
|
55
55
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
56
56
|
end
|
57
57
|
end
|
58
58
|
|
59
|
-
describe 'test attribute "
|
59
|
+
describe 'test attribute "name"' do
|
60
60
|
it 'should work' do
|
61
61
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
62
62
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pulp_container_client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.15.0.dev1661401897
|
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: 2022-08-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -34,42 +34,42 @@ dependencies:
|
|
34
34
|
name: json
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|
36
36
|
requirements:
|
37
|
-
- - "~>"
|
38
|
-
- !ruby/object:Gem::Version
|
39
|
-
version: '2.1'
|
40
37
|
- - ">="
|
41
38
|
- !ruby/object:Gem::Version
|
42
39
|
version: 2.1.0
|
40
|
+
- - "~>"
|
41
|
+
- !ruby/object:Gem::Version
|
42
|
+
version: '2.1'
|
43
43
|
type: :runtime
|
44
44
|
prerelease: false
|
45
45
|
version_requirements: !ruby/object:Gem::Requirement
|
46
46
|
requirements:
|
47
|
-
- - "~>"
|
48
|
-
- !ruby/object:Gem::Version
|
49
|
-
version: '2.1'
|
50
47
|
- - ">="
|
51
48
|
- !ruby/object:Gem::Version
|
52
49
|
version: 2.1.0
|
50
|
+
- - "~>"
|
51
|
+
- !ruby/object:Gem::Version
|
52
|
+
version: '2.1'
|
53
53
|
- !ruby/object:Gem::Dependency
|
54
54
|
name: rspec
|
55
55
|
requirement: !ruby/object:Gem::Requirement
|
56
56
|
requirements:
|
57
|
-
- - "~>"
|
58
|
-
- !ruby/object:Gem::Version
|
59
|
-
version: '3.6'
|
60
57
|
- - ">="
|
61
58
|
- !ruby/object:Gem::Version
|
62
59
|
version: 3.6.0
|
60
|
+
- - "~>"
|
61
|
+
- !ruby/object:Gem::Version
|
62
|
+
version: '3.6'
|
63
63
|
type: :development
|
64
64
|
prerelease: false
|
65
65
|
version_requirements: !ruby/object:Gem::Requirement
|
66
66
|
requirements:
|
67
|
-
- - "~>"
|
68
|
-
- !ruby/object:Gem::Version
|
69
|
-
version: '3.6'
|
70
67
|
- - ">="
|
71
68
|
- !ruby/object:Gem::Version
|
72
69
|
version: 3.6.0
|
70
|
+
- - "~>"
|
71
|
+
- !ruby/object:Gem::Version
|
72
|
+
version: '3.6'
|
73
73
|
description: Fetch, Upload, Organize, and Distribute Software Packages
|
74
74
|
email:
|
75
75
|
- pulp-list@redhat.com
|
@@ -90,7 +90,6 @@ files:
|
|
90
90
|
- docs/ContainerContainerPushRepositoryResponse.md
|
91
91
|
- docs/ContainerContainerRemote.md
|
92
92
|
- docs/ContainerContainerRemoteResponse.md
|
93
|
-
- docs/ContainerContainerRemoteResponseHiddenFields.md
|
94
93
|
- docs/ContainerContainerRepository.md
|
95
94
|
- docs/ContainerContainerRepositoryResponse.md
|
96
95
|
- docs/ContainerManifestResponse.md
|
@@ -168,7 +167,6 @@ files:
|
|
168
167
|
- lib/pulp_container_client/models/container_container_push_repository_response.rb
|
169
168
|
- lib/pulp_container_client/models/container_container_remote.rb
|
170
169
|
- lib/pulp_container_client/models/container_container_remote_response.rb
|
171
|
-
- lib/pulp_container_client/models/container_container_remote_response_hidden_fields.rb
|
172
170
|
- lib/pulp_container_client/models/container_container_repository.rb
|
173
171
|
- lib/pulp_container_client/models/container_container_repository_response.rb
|
174
172
|
- lib/pulp_container_client/models/container_manifest_response.rb
|
@@ -232,7 +230,6 @@ files:
|
|
232
230
|
- spec/models/container_container_namespace_spec.rb
|
233
231
|
- spec/models/container_container_push_repository_response_spec.rb
|
234
232
|
- spec/models/container_container_push_repository_spec.rb
|
235
|
-
- spec/models/container_container_remote_response_hidden_fields_spec.rb
|
236
233
|
- spec/models/container_container_remote_response_spec.rb
|
237
234
|
- spec/models/container_container_remote_spec.rb
|
238
235
|
- spec/models/container_container_repository_response_spec.rb
|
@@ -279,7 +276,7 @@ homepage: https://github.com/pulp/pulp_container
|
|
279
276
|
licenses:
|
280
277
|
- GPLv2+
|
281
278
|
metadata: {}
|
282
|
-
post_install_message:
|
279
|
+
post_install_message:
|
283
280
|
rdoc_options: []
|
284
281
|
require_paths:
|
285
282
|
- lib
|
@@ -290,77 +287,76 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
290
287
|
version: '1.9'
|
291
288
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
292
289
|
requirements:
|
293
|
-
- - "
|
290
|
+
- - ">"
|
294
291
|
- !ruby/object:Gem::Version
|
295
|
-
version:
|
292
|
+
version: 1.3.1
|
296
293
|
requirements: []
|
297
|
-
rubygems_version: 3.
|
298
|
-
signing_key:
|
294
|
+
rubygems_version: 3.0.3.1
|
295
|
+
signing_key:
|
299
296
|
specification_version: 4
|
300
297
|
summary: Pulp 3 API Ruby Gem
|
301
298
|
test_files:
|
302
|
-
- spec/api/content_tags_api_spec.rb
|
303
299
|
- spec/api/repositories_container_push_versions_api_spec.rb
|
304
|
-
- spec/api/remotes_container_api_spec.rb
|
305
|
-
- spec/api/content_manifests_api_spec.rb
|
306
|
-
- spec/api/pulp_container_namespaces_api_spec.rb
|
307
|
-
- spec/api/distributions_container_api_spec.rb
|
308
300
|
- spec/api/repositories_container_versions_api_spec.rb
|
309
|
-
- spec/api/repositories_container_api_spec.rb
|
310
301
|
- spec/api/content_signatures_api_spec.rb
|
302
|
+
- spec/api/content_manifests_api_spec.rb
|
303
|
+
- spec/api/token_api_spec.rb
|
311
304
|
- spec/api/content_blobs_api_spec.rb
|
312
305
|
- spec/api/repositories_container_push_api_spec.rb
|
313
|
-
- spec/api/
|
306
|
+
- spec/api/repositories_container_api_spec.rb
|
307
|
+
- spec/api/pulp_container_namespaces_api_spec.rb
|
308
|
+
- spec/api/distributions_container_api_spec.rb
|
309
|
+
- spec/api/remotes_container_api_spec.rb
|
310
|
+
- spec/api/content_tags_api_spec.rb
|
314
311
|
- spec/api_client_spec.rb
|
315
312
|
- spec/configuration_spec.rb
|
316
|
-
- spec/models/
|
317
|
-
- spec/models/
|
318
|
-
- spec/models/
|
319
|
-
- spec/models/
|
313
|
+
- spec/models/paginatedcontainer_container_distribution_response_list_spec.rb
|
314
|
+
- spec/models/container_manifest_response_spec.rb
|
315
|
+
- spec/models/remove_signatures_response_spec.rb
|
316
|
+
- spec/models/my_permissions_response_spec.rb
|
317
|
+
- spec/models/patchedcontainer_container_distribution_spec.rb
|
320
318
|
- spec/models/container_repository_sync_url_spec.rb
|
321
|
-
- spec/models/
|
322
|
-
- spec/models/
|
323
|
-
- spec/models/
|
324
|
-
- spec/models/
|
325
|
-
- spec/models/container_container_namespace_spec.rb
|
326
|
-
- spec/models/container_container_distribution_spec.rb
|
319
|
+
- spec/models/async_operation_response_spec.rb
|
320
|
+
- spec/models/container_manifest_signature_response_spec.rb
|
321
|
+
- spec/models/remove_image_spec.rb
|
322
|
+
- spec/models/recursive_manage_spec.rb
|
327
323
|
- spec/models/container_container_distribution_response_spec.rb
|
328
|
-
- spec/models/
|
329
|
-
- spec/models/
|
330
|
-
- spec/models/
|
324
|
+
- spec/models/repository_version_response_spec.rb
|
325
|
+
- spec/models/container_tag_response_spec.rb
|
326
|
+
- spec/models/remove_signatures_spec.rb
|
327
|
+
- spec/models/repair_spec.rb
|
331
328
|
- spec/models/nested_role_spec.rb
|
332
|
-
- spec/models/
|
333
|
-
- spec/models/
|
329
|
+
- spec/models/manifest_copy_spec.rb
|
330
|
+
- spec/models/paginatedcontainer_manifest_signature_response_list_spec.rb
|
331
|
+
- spec/models/container_container_remote_spec.rb
|
332
|
+
- spec/models/container_container_push_repository_response_spec.rb
|
333
|
+
- spec/models/repository_sign_spec.rb
|
334
|
+
- spec/models/patchedcontainer_container_remote_spec.rb
|
335
|
+
- spec/models/container_container_push_repository_spec.rb
|
336
|
+
- spec/models/paginatedcontainer_blob_response_list_spec.rb
|
337
|
+
- spec/models/tag_image_spec.rb
|
338
|
+
- spec/models/container_blob_response_spec.rb
|
334
339
|
- spec/models/container_container_repository_response_spec.rb
|
335
|
-
- spec/models/
|
336
|
-
- spec/models/container_container_remote_response_spec.rb
|
340
|
+
- spec/models/paginatedcontainer_manifest_response_list_spec.rb
|
337
341
|
- spec/models/media_types_enum_spec.rb
|
338
342
|
- spec/models/paginatedcontainer_container_remote_response_list_spec.rb
|
339
|
-
- spec/models/paginatedcontainer_manifest_signature_response_list_spec.rb
|
340
|
-
- spec/models/patchedcontainer_container_push_repository_spec.rb
|
341
343
|
- spec/models/paginatedcontainer_container_push_repository_response_list_spec.rb
|
342
|
-
- spec/models/
|
343
|
-
- spec/models/repository_version_response_spec.rb
|
344
|
-
- spec/models/container_container_push_repository_spec.rb
|
345
|
-
- spec/models/recursive_manage_spec.rb
|
346
|
-
- spec/models/container_container_push_repository_response_spec.rb
|
347
|
-
- spec/models/remove_signatures_response_spec.rb
|
348
|
-
- spec/models/paginated_repository_version_response_list_spec.rb
|
349
|
-
- spec/models/my_permissions_response_spec.rb
|
344
|
+
- spec/models/policy_enum_spec.rb
|
350
345
|
- spec/models/paginatedcontainer_container_repository_response_list_spec.rb
|
351
|
-
- spec/models/
|
346
|
+
- spec/models/patchedcontainer_container_push_repository_spec.rb
|
352
347
|
- spec/models/object_roles_response_spec.rb
|
353
|
-
- spec/models/patchedcontainer_container_repository_spec.rb
|
354
|
-
- spec/models/paginatedcontainer_tag_response_list_spec.rb
|
355
|
-
- spec/models/container_manifest_signature_response_spec.rb
|
356
348
|
- spec/models/paginatedcontainer_container_namespace_response_list_spec.rb
|
357
|
-
- spec/models/
|
358
|
-
- spec/models/
|
359
|
-
- spec/models/
|
360
|
-
- spec/models/
|
349
|
+
- spec/models/paginated_repository_version_response_list_spec.rb
|
350
|
+
- spec/models/container_container_distribution_spec.rb
|
351
|
+
- spec/models/nested_role_response_spec.rb
|
352
|
+
- spec/models/container_container_namespace_spec.rb
|
353
|
+
- spec/models/patchedcontainer_container_repository_spec.rb
|
354
|
+
- spec/models/un_tag_image_spec.rb
|
355
|
+
- spec/models/container_container_repository_spec.rb
|
356
|
+
- spec/models/container_container_remote_response_spec.rb
|
361
357
|
- spec/models/oci_build_image_spec.rb
|
358
|
+
- spec/models/paginatedcontainer_tag_response_list_spec.rb
|
362
359
|
- spec/models/content_summary_response_spec.rb
|
363
|
-
- spec/models/
|
364
|
-
- spec/models/
|
365
|
-
- spec/models/manifest_copy_spec.rb
|
360
|
+
- spec/models/tag_copy_spec.rb
|
361
|
+
- spec/models/container_container_namespace_response_spec.rb
|
366
362
|
- spec/spec_helper.rb
|
@@ -1,19 +0,0 @@
|
|
1
|
-
# PulpContainerClient::ContainerContainerRemoteResponseHiddenFields
|
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 'PulpContainerClient'
|
14
|
-
|
15
|
-
instance = PulpContainerClient::ContainerContainerRemoteResponseHiddenFields.new(name: null,
|
16
|
-
is_set: null)
|
17
|
-
```
|
18
|
-
|
19
|
-
|
@@ -1,225 +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 PulpContainerClient
|
16
|
-
class ContainerContainerRemoteResponseHiddenFields
|
17
|
-
attr_accessor :name
|
18
|
-
|
19
|
-
attr_accessor :is_set
|
20
|
-
|
21
|
-
# Attribute mapping from ruby-style variable name to JSON key.
|
22
|
-
def self.attribute_map
|
23
|
-
{
|
24
|
-
:'name' => :'name',
|
25
|
-
:'is_set' => :'is_set'
|
26
|
-
}
|
27
|
-
end
|
28
|
-
|
29
|
-
# Attribute type mapping.
|
30
|
-
def self.openapi_types
|
31
|
-
{
|
32
|
-
:'name' => :'String',
|
33
|
-
:'is_set' => :'Boolean'
|
34
|
-
}
|
35
|
-
end
|
36
|
-
|
37
|
-
# List of attributes with nullable: true
|
38
|
-
def self.openapi_nullable
|
39
|
-
Set.new([
|
40
|
-
])
|
41
|
-
end
|
42
|
-
|
43
|
-
# Initializes the object
|
44
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
45
|
-
def initialize(attributes = {})
|
46
|
-
if (!attributes.is_a?(Hash))
|
47
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `PulpContainerClient::ContainerContainerRemoteResponseHiddenFields` initialize method"
|
48
|
-
end
|
49
|
-
|
50
|
-
# check to see if the attribute exists and convert string to symbol for hash key
|
51
|
-
attributes = attributes.each_with_object({}) { |(k, v), h|
|
52
|
-
if (!self.class.attribute_map.key?(k.to_sym))
|
53
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `PulpContainerClient::ContainerContainerRemoteResponseHiddenFields`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
54
|
-
end
|
55
|
-
h[k.to_sym] = v
|
56
|
-
}
|
57
|
-
|
58
|
-
if attributes.key?(:'name')
|
59
|
-
self.name = attributes[:'name']
|
60
|
-
end
|
61
|
-
|
62
|
-
if attributes.key?(:'is_set')
|
63
|
-
self.is_set = attributes[:'is_set']
|
64
|
-
end
|
65
|
-
end
|
66
|
-
|
67
|
-
# Show invalid properties with the reasons. Usually used together with valid?
|
68
|
-
# @return Array for valid properties with the reasons
|
69
|
-
def list_invalid_properties
|
70
|
-
invalid_properties = Array.new
|
71
|
-
if @name.nil?
|
72
|
-
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
73
|
-
end
|
74
|
-
|
75
|
-
if @is_set.nil?
|
76
|
-
invalid_properties.push('invalid value for "is_set", is_set cannot be nil.')
|
77
|
-
end
|
78
|
-
|
79
|
-
invalid_properties
|
80
|
-
end
|
81
|
-
|
82
|
-
# Check to see if the all the properties in the model are valid
|
83
|
-
# @return true if the model is valid
|
84
|
-
def valid?
|
85
|
-
return false if @name.nil?
|
86
|
-
return false if @is_set.nil?
|
87
|
-
true
|
88
|
-
end
|
89
|
-
|
90
|
-
# Checks equality by comparing each attribute.
|
91
|
-
# @param [Object] Object to be compared
|
92
|
-
def ==(o)
|
93
|
-
return true if self.equal?(o)
|
94
|
-
self.class == o.class &&
|
95
|
-
name == o.name &&
|
96
|
-
is_set == o.is_set
|
97
|
-
end
|
98
|
-
|
99
|
-
# @see the `==` method
|
100
|
-
# @param [Object] Object to be compared
|
101
|
-
def eql?(o)
|
102
|
-
self == o
|
103
|
-
end
|
104
|
-
|
105
|
-
# Calculates hash code according to all attributes.
|
106
|
-
# @return [Integer] Hash code
|
107
|
-
def hash
|
108
|
-
[name, is_set].hash
|
109
|
-
end
|
110
|
-
|
111
|
-
# Builds the object from hash
|
112
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
113
|
-
# @return [Object] Returns the model itself
|
114
|
-
def self.build_from_hash(attributes)
|
115
|
-
new.build_from_hash(attributes)
|
116
|
-
end
|
117
|
-
|
118
|
-
# Builds the object from hash
|
119
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
120
|
-
# @return [Object] Returns the model itself
|
121
|
-
def build_from_hash(attributes)
|
122
|
-
return nil unless attributes.is_a?(Hash)
|
123
|
-
self.class.openapi_types.each_pair do |key, type|
|
124
|
-
if type =~ /\AArray<(.*)>/i
|
125
|
-
# check to ensure the input is an array given that the attribute
|
126
|
-
# is documented as an array but the input is not
|
127
|
-
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
128
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
129
|
-
end
|
130
|
-
elsif !attributes[self.class.attribute_map[key]].nil?
|
131
|
-
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
132
|
-
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
133
|
-
end
|
134
|
-
|
135
|
-
self
|
136
|
-
end
|
137
|
-
|
138
|
-
# Deserializes the data based on type
|
139
|
-
# @param string type Data type
|
140
|
-
# @param string value Value to be deserialized
|
141
|
-
# @return [Object] Deserialized data
|
142
|
-
def _deserialize(type, value)
|
143
|
-
case type.to_sym
|
144
|
-
when :DateTime
|
145
|
-
DateTime.parse(value)
|
146
|
-
when :Date
|
147
|
-
Date.parse(value)
|
148
|
-
when :String
|
149
|
-
value.to_s
|
150
|
-
when :Integer
|
151
|
-
value.to_i
|
152
|
-
when :Float
|
153
|
-
value.to_f
|
154
|
-
when :Boolean
|
155
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
156
|
-
true
|
157
|
-
else
|
158
|
-
false
|
159
|
-
end
|
160
|
-
when :Object
|
161
|
-
# generic object (usually a Hash), return directly
|
162
|
-
value
|
163
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
164
|
-
inner_type = Regexp.last_match[:inner_type]
|
165
|
-
value.map { |v| _deserialize(inner_type, v) }
|
166
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
167
|
-
k_type = Regexp.last_match[:k_type]
|
168
|
-
v_type = Regexp.last_match[:v_type]
|
169
|
-
{}.tap do |hash|
|
170
|
-
value.each do |k, v|
|
171
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
172
|
-
end
|
173
|
-
end
|
174
|
-
else # model
|
175
|
-
PulpContainerClient.const_get(type).build_from_hash(value)
|
176
|
-
end
|
177
|
-
end
|
178
|
-
|
179
|
-
# Returns the string representation of the object
|
180
|
-
# @return [String] String presentation of the object
|
181
|
-
def to_s
|
182
|
-
to_hash.to_s
|
183
|
-
end
|
184
|
-
|
185
|
-
# to_body is an alias to to_hash (backward compatibility)
|
186
|
-
# @return [Hash] Returns the object in the form of hash
|
187
|
-
def to_body
|
188
|
-
to_hash
|
189
|
-
end
|
190
|
-
|
191
|
-
# Returns the object in the form of hash
|
192
|
-
# @return [Hash] Returns the object in the form of hash
|
193
|
-
def to_hash
|
194
|
-
hash = {}
|
195
|
-
self.class.attribute_map.each_pair do |attr, param|
|
196
|
-
value = self.send(attr)
|
197
|
-
if value.nil?
|
198
|
-
is_nullable = self.class.openapi_nullable.include?(attr)
|
199
|
-
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
200
|
-
end
|
201
|
-
|
202
|
-
hash[param] = _to_hash(value)
|
203
|
-
end
|
204
|
-
hash
|
205
|
-
end
|
206
|
-
|
207
|
-
# Outputs non-array value in the form of hash
|
208
|
-
# For object, use to_hash. Otherwise, just return the value
|
209
|
-
# @param [Object] value Any valid value
|
210
|
-
# @return [Hash] Returns the value in the form of hash
|
211
|
-
def _to_hash(value)
|
212
|
-
if value.is_a?(Array)
|
213
|
-
value.compact.map { |v| _to_hash(v) }
|
214
|
-
elsif value.is_a?(Hash)
|
215
|
-
{}.tap do |hash|
|
216
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
217
|
-
end
|
218
|
-
elsif value.respond_to? :to_hash
|
219
|
-
value.to_hash
|
220
|
-
else
|
221
|
-
value
|
222
|
-
end
|
223
|
-
end
|
224
|
-
end
|
225
|
-
end
|
@@ -1,47 +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 'spec_helper'
|
14
|
-
require 'json'
|
15
|
-
require 'date'
|
16
|
-
|
17
|
-
# Unit tests for PulpContainerClient::ContainerContainerRemoteResponseHiddenFields
|
18
|
-
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
-
# Please update as you see appropriate
|
20
|
-
describe 'ContainerContainerRemoteResponseHiddenFields' do
|
21
|
-
before do
|
22
|
-
# run before each test
|
23
|
-
@instance = PulpContainerClient::ContainerContainerRemoteResponseHiddenFields.new
|
24
|
-
end
|
25
|
-
|
26
|
-
after do
|
27
|
-
# run after each test
|
28
|
-
end
|
29
|
-
|
30
|
-
describe 'test an instance of ContainerContainerRemoteResponseHiddenFields' do
|
31
|
-
it 'should create an instance of ContainerContainerRemoteResponseHiddenFields' do
|
32
|
-
expect(@instance).to be_instance_of(PulpContainerClient::ContainerContainerRemoteResponseHiddenFields)
|
33
|
-
end
|
34
|
-
end
|
35
|
-
describe 'test attribute "name"' 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 "is_set"' 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
|