pulp_container_client 2.22.1 → 2.23.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +17 -14
- data/docs/AsyncOperationResponse.md +8 -7
- data/docs/ContainerBlobResponse.md +18 -17
- data/docs/ContainerContainerDistribution.md +24 -23
- data/docs/ContainerContainerDistributionResponse.md +40 -39
- data/docs/ContainerContainerNamespace.md +8 -7
- data/docs/ContainerContainerNamespaceResponse.md +16 -15
- data/docs/ContainerContainerPullThroughDistribution.md +26 -25
- data/docs/ContainerContainerPullThroughDistributionResponse.md +38 -37
- data/docs/ContainerContainerPullThroughRemote.md +52 -51
- data/docs/ContainerContainerPullThroughRemoteResponse.md +52 -51
- data/docs/ContainerContainerPullThroughRemoteResponseHiddenFieldsInner.md +20 -0
- data/docs/ContainerContainerPushRepository.md +16 -15
- data/docs/ContainerContainerPushRepositoryResponse.md +28 -27
- data/docs/ContainerContainerRemote.md +56 -55
- data/docs/ContainerContainerRemoteResponse.md +56 -55
- data/docs/ContainerContainerRepository.md +18 -17
- data/docs/ContainerContainerRepositoryResponse.md +30 -29
- data/docs/ContainerManifestResponse.md +42 -41
- data/docs/ContainerManifestSignatureResponse.md +28 -27
- data/docs/ContainerRepositorySyncURL.md +12 -11
- data/docs/ContainerTagResponse.md +18 -17
- data/docs/ContentBlobsApi.md +82 -49
- data/docs/ContentManifestsApi.md +86 -53
- data/docs/ContentSignaturesApi.md +97 -64
- data/docs/ContentSummaryResponse.md +12 -11
- data/docs/ContentTagsApi.md +86 -53
- data/docs/DistributionsContainerApi.md +386 -183
- data/docs/DistributionsPullThroughApi.md +385 -182
- data/docs/ManifestCopy.md +14 -13
- data/docs/MediaTypesEnum.md +4 -5
- 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/PaginatedcontainerBlobResponseList.md +14 -13
- data/docs/PaginatedcontainerContainerDistributionResponseList.md +14 -13
- data/docs/PaginatedcontainerContainerNamespaceResponseList.md +14 -13
- data/docs/PaginatedcontainerContainerPullThroughDistributionResponseList.md +14 -13
- data/docs/PaginatedcontainerContainerPullThroughRemoteResponseList.md +14 -13
- data/docs/PaginatedcontainerContainerPushRepositoryResponseList.md +14 -13
- data/docs/PaginatedcontainerContainerRemoteResponseList.md +14 -13
- data/docs/PaginatedcontainerContainerRepositoryResponseList.md +14 -13
- data/docs/PaginatedcontainerManifestResponseList.md +14 -13
- data/docs/PaginatedcontainerManifestSignatureResponseList.md +14 -13
- data/docs/PaginatedcontainerTagResponseList.md +14 -13
- data/docs/PatchedcontainerContainerDistribution.md +24 -23
- data/docs/PatchedcontainerContainerPullThroughDistribution.md +26 -25
- data/docs/PatchedcontainerContainerPullThroughRemote.md +52 -51
- data/docs/PatchedcontainerContainerPushRepository.md +16 -15
- data/docs/PatchedcontainerContainerRemote.md +56 -55
- data/docs/PatchedcontainerContainerRepository.md +18 -17
- data/docs/Policy692Enum.md +4 -5
- data/docs/Policy7e0Enum.md +4 -5
- data/docs/PulpContainerNamespacesApi.md +259 -124
- data/docs/RecursiveManage.md +8 -7
- data/docs/RemotesContainerApi.md +389 -184
- data/docs/RemotesPullThroughApi.md +389 -184
- data/docs/RemoveImage.md +8 -7
- data/docs/RemoveSignatures.md +8 -7
- data/docs/RemoveSignaturesResponse.md +8 -7
- data/docs/Repair.md +8 -7
- data/docs/RepositoriesContainerApi.md +647 -291
- data/docs/RepositoriesContainerPushApi.md +419 -198
- data/docs/RepositoriesContainerPushVersionsApi.md +152 -82
- data/docs/RepositoriesContainerVersionsApi.md +152 -82
- data/docs/RepositorySign.md +12 -11
- data/docs/RepositoryVersionResponse.md +22 -21
- data/docs/SetLabel.md +10 -9
- data/docs/SetLabelResponse.md +10 -9
- data/docs/TagCopy.md +12 -11
- data/docs/TagImage.md +10 -9
- data/docs/TokenApi.md +25 -7
- data/docs/UnTagImage.md +8 -7
- data/docs/UnsetLabel.md +8 -7
- data/docs/UnsetLabelResponse.md +10 -9
- data/lib/pulp_container_client/api/content_blobs_api.rb +11 -9
- data/lib/pulp_container_client/api/content_manifests_api.rb +11 -9
- data/lib/pulp_container_client/api/content_signatures_api.rb +11 -9
- data/lib/pulp_container_client/api/content_tags_api.rb +11 -9
- data/lib/pulp_container_client/api/distributions_container_api.rb +89 -56
- data/lib/pulp_container_client/api/distributions_pull_through_api.rb +89 -56
- data/lib/pulp_container_client/api/pulp_container_namespaces_api.rb +53 -36
- data/lib/pulp_container_client/api/remotes_container_api.rb +104 -68
- data/lib/pulp_container_client/api/remotes_pull_through_api.rb +104 -68
- data/lib/pulp_container_client/api/repositories_container_api.rb +171 -102
- data/lib/pulp_container_client/api/repositories_container_push_api.rb +102 -62
- data/lib/pulp_container_client/api/repositories_container_push_versions_api.rb +40 -30
- data/lib/pulp_container_client/api/repositories_container_versions_api.rb +40 -30
- data/lib/pulp_container_client/api/token_api.rb +5 -4
- data/lib/pulp_container_client/api_client.rb +137 -102
- data/lib/pulp_container_client/api_error.rb +2 -1
- data/lib/pulp_container_client/configuration.rb +162 -21
- data/lib/pulp_container_client/models/async_operation_response.rb +32 -22
- data/lib/pulp_container_client/models/container_blob_response.rb +37 -29
- data/lib/pulp_container_client/models/container_container_distribution.rb +86 -74
- data/lib/pulp_container_client/models/container_container_distribution_response.rb +95 -83
- data/lib/pulp_container_client/models/container_container_namespace.rb +32 -22
- data/lib/pulp_container_client/models/container_container_namespace_response.rb +34 -24
- data/lib/pulp_container_client/models/container_container_pull_through_distribution.rb +88 -74
- data/lib/pulp_container_client/models/container_container_pull_through_distribution_response.rb +97 -83
- data/lib/pulp_container_client/models/container_container_pull_through_remote.rb +56 -22
- data/lib/pulp_container_client/models/container_container_pull_through_remote_response.rb +59 -25
- data/lib/pulp_container_client/models/{container_container_pull_through_remote_response_hidden_fields.rb → container_container_pull_through_remote_response_hidden_fields_inner.rb} +37 -25
- data/lib/pulp_container_client/models/container_container_push_repository.rb +83 -73
- data/lib/pulp_container_client/models/container_container_push_repository_response.rb +91 -81
- data/lib/pulp_container_client/models/container_container_remote.rb +63 -23
- data/lib/pulp_container_client/models/container_container_remote_response.rb +61 -25
- data/lib/pulp_container_client/models/container_container_repository.rb +32 -22
- data/lib/pulp_container_client/models/container_container_repository_response.rb +34 -24
- data/lib/pulp_container_client/models/container_manifest_response.rb +42 -24
- data/lib/pulp_container_client/models/container_manifest_signature_response.rb +46 -24
- data/lib/pulp_container_client/models/container_repository_sync_url.rb +30 -22
- data/lib/pulp_container_client/models/container_tag_response.rb +36 -24
- data/lib/pulp_container_client/models/content_summary_response.rb +36 -22
- data/lib/pulp_container_client/models/manifest_copy.rb +31 -23
- data/lib/pulp_container_client/models/media_types_enum.rb +8 -4
- data/lib/pulp_container_client/models/my_permissions_response.rb +32 -22
- data/lib/pulp_container_client/models/nested_role.rb +32 -22
- data/lib/pulp_container_client/models/nested_role_response.rb +32 -22
- data/lib/pulp_container_client/models/object_roles_response.rb +32 -22
- data/lib/pulp_container_client/models/paginated_repository_version_response_list.rb +34 -22
- data/lib/pulp_container_client/models/paginatedcontainer_blob_response_list.rb +34 -22
- data/lib/pulp_container_client/models/paginatedcontainer_container_distribution_response_list.rb +34 -22
- data/lib/pulp_container_client/models/paginatedcontainer_container_namespace_response_list.rb +34 -22
- data/lib/pulp_container_client/models/paginatedcontainer_container_pull_through_distribution_response_list.rb +34 -22
- data/lib/pulp_container_client/models/paginatedcontainer_container_pull_through_remote_response_list.rb +34 -22
- data/lib/pulp_container_client/models/paginatedcontainer_container_push_repository_response_list.rb +34 -22
- data/lib/pulp_container_client/models/paginatedcontainer_container_remote_response_list.rb +34 -22
- data/lib/pulp_container_client/models/paginatedcontainer_container_repository_response_list.rb +34 -22
- data/lib/pulp_container_client/models/paginatedcontainer_manifest_response_list.rb +34 -22
- data/lib/pulp_container_client/models/paginatedcontainer_manifest_signature_response_list.rb +34 -22
- data/lib/pulp_container_client/models/paginatedcontainer_tag_response_list.rb +34 -22
- data/lib/pulp_container_client/models/patchedcontainer_container_distribution.rb +81 -65
- data/lib/pulp_container_client/models/patchedcontainer_container_pull_through_distribution.rb +81 -65
- data/lib/pulp_container_client/models/patchedcontainer_container_pull_through_remote.rb +62 -24
- data/lib/pulp_container_client/models/patchedcontainer_container_push_repository.rb +77 -65
- data/lib/pulp_container_client/models/patchedcontainer_container_remote.rb +72 -26
- data/lib/pulp_container_client/models/patchedcontainer_container_repository.rb +35 -23
- data/lib/pulp_container_client/models/policy692_enum.rb +8 -4
- data/lib/pulp_container_client/models/policy7e0_enum.rb +8 -4
- data/lib/pulp_container_client/models/recursive_manage.rb +31 -23
- data/lib/pulp_container_client/models/remove_image.rb +32 -22
- data/lib/pulp_container_client/models/remove_signatures.rb +32 -22
- data/lib/pulp_container_client/models/remove_signatures_response.rb +32 -22
- data/lib/pulp_container_client/models/repair.rb +30 -22
- data/lib/pulp_container_client/models/repository_sign.rb +36 -24
- data/lib/pulp_container_client/models/repository_version_response.rb +32 -24
- data/lib/pulp_container_client/models/set_label.rb +34 -22
- data/lib/pulp_container_client/models/set_label_response.rb +34 -22
- data/lib/pulp_container_client/models/tag_copy.rb +31 -23
- data/lib/pulp_container_client/models/tag_image.rb +34 -22
- data/lib/pulp_container_client/models/un_tag_image.rb +32 -22
- data/lib/pulp_container_client/models/unset_label.rb +32 -22
- data/lib/pulp_container_client/models/unset_label_response.rb +32 -22
- data/lib/pulp_container_client/version.rb +2 -2
- data/lib/pulp_container_client.rb +2 -3
- data/pulp_container_client.gemspec +9 -6
- data/spec/api/content_blobs_api_spec.rb +3 -3
- data/spec/api/content_manifests_api_spec.rb +3 -3
- data/spec/api/content_signatures_api_spec.rb +3 -3
- data/spec/api/content_tags_api_spec.rb +3 -3
- data/spec/api/distributions_container_api_spec.rb +13 -13
- data/spec/api/distributions_pull_through_api_spec.rb +13 -13
- data/spec/api/pulp_container_namespaces_api_spec.rb +9 -9
- data/spec/api/remotes_container_api_spec.rb +20 -19
- data/spec/api/remotes_pull_through_api_spec.rb +20 -19
- data/spec/api/repositories_container_api_spec.rb +22 -22
- data/spec/api/repositories_container_push_api_spec.rb +14 -14
- data/spec/api/repositories_container_push_versions_api_spec.rb +12 -11
- data/spec/api/repositories_container_versions_api_spec.rb +12 -11
- data/spec/api/token_api_spec.rb +2 -2
- data/spec/models/async_operation_response_spec.rb +7 -12
- data/spec/models/container_blob_response_spec.rb +12 -17
- data/spec/models/container_container_distribution_response_spec.rb +34 -39
- data/spec/models/container_container_distribution_spec.rb +20 -25
- data/spec/models/container_container_namespace_response_spec.rb +11 -16
- data/spec/models/container_container_namespace_spec.rb +7 -12
- data/spec/models/container_container_pull_through_distribution_response_spec.rb +33 -38
- data/spec/models/container_container_pull_through_distribution_spec.rb +21 -26
- data/spec/models/{container_container_pull_through_remote_response_hidden_fields_spec.rb → container_container_pull_through_remote_response_hidden_fields_inner_spec.rb} +11 -16
- data/spec/models/container_container_pull_through_remote_response_spec.rb +29 -34
- data/spec/models/container_container_pull_through_remote_spec.rb +29 -34
- data/spec/models/container_container_push_repository_response_spec.rb +28 -33
- data/spec/models/container_container_push_repository_spec.rb +15 -20
- data/spec/models/container_container_remote_response_spec.rb +31 -36
- data/spec/models/container_container_remote_spec.rb +31 -36
- data/spec/models/container_container_repository_response_spec.rb +18 -23
- data/spec/models/container_container_repository_spec.rb +12 -17
- data/spec/models/container_manifest_response_spec.rb +24 -29
- data/spec/models/container_manifest_signature_response_spec.rb +17 -22
- data/spec/models/container_repository_sync_url_spec.rb +9 -14
- data/spec/models/container_tag_response_spec.rb +12 -17
- data/spec/models/content_summary_response_spec.rb +9 -14
- data/spec/models/manifest_copy_spec.rb +10 -15
- data/spec/models/media_types_enum_spec.rb +6 -11
- 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/paginatedcontainer_blob_response_list_spec.rb +10 -15
- data/spec/models/paginatedcontainer_container_distribution_response_list_spec.rb +10 -15
- data/spec/models/paginatedcontainer_container_namespace_response_list_spec.rb +10 -15
- data/spec/models/paginatedcontainer_container_pull_through_distribution_response_list_spec.rb +10 -15
- data/spec/models/paginatedcontainer_container_pull_through_remote_response_list_spec.rb +10 -15
- data/spec/models/paginatedcontainer_container_push_repository_response_list_spec.rb +10 -15
- data/spec/models/paginatedcontainer_container_remote_response_list_spec.rb +10 -15
- data/spec/models/paginatedcontainer_container_repository_response_list_spec.rb +10 -15
- data/spec/models/paginatedcontainer_manifest_response_list_spec.rb +10 -15
- data/spec/models/paginatedcontainer_manifest_signature_response_list_spec.rb +10 -15
- data/spec/models/paginatedcontainer_tag_response_list_spec.rb +10 -15
- data/spec/models/patchedcontainer_container_distribution_spec.rb +20 -25
- data/spec/models/patchedcontainer_container_pull_through_distribution_spec.rb +21 -26
- data/spec/models/patchedcontainer_container_pull_through_remote_spec.rb +29 -34
- data/spec/models/patchedcontainer_container_push_repository_spec.rb +15 -20
- data/spec/models/patchedcontainer_container_remote_spec.rb +31 -36
- data/spec/models/patchedcontainer_container_repository_spec.rb +12 -17
- data/spec/models/policy692_enum_spec.rb +6 -11
- data/spec/models/policy7e0_enum_spec.rb +6 -11
- data/spec/models/recursive_manage_spec.rb +7 -12
- data/spec/models/remove_image_spec.rb +7 -12
- data/spec/models/remove_signatures_response_spec.rb +7 -12
- data/spec/models/remove_signatures_spec.rb +7 -12
- data/spec/models/repair_spec.rb +7 -12
- data/spec/models/repository_sign_spec.rb +9 -14
- data/spec/models/repository_version_response_spec.rb +14 -19
- data/spec/models/set_label_response_spec.rb +8 -13
- data/spec/models/set_label_spec.rb +8 -13
- data/spec/models/tag_copy_spec.rb +9 -14
- data/spec/models/tag_image_spec.rb +8 -13
- data/spec/models/un_tag_image_spec.rb +7 -12
- 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 +105 -85
- data/docs/ContainerContainerPullThroughRemoteResponseHiddenFields.md +0 -19
- data/docs/OCIBuildImage.md +0 -23
- data/lib/pulp_container_client/models/oci_build_image.rb +0 -256
- data/spec/api_client_spec.rb +0 -188
- data/spec/configuration_spec.rb +0 -42
- data/spec/models/oci_build_image_spec.rb +0 -59
metadata
CHANGED
@@ -1,15 +1,35 @@
|
|
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.23.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: 2025-
|
11
|
+
date: 2025-02-17 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,27 +49,35 @@ 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
|
-
- - "~>"
|
38
|
-
- !ruby/object:Gem::Version
|
39
|
-
version: '2.1'
|
40
57
|
- - ">="
|
41
58
|
- !ruby/object:Gem::Version
|
42
|
-
version:
|
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: '
|
66
|
+
version: '0'
|
67
|
+
- !ruby/object:Gem::Dependency
|
68
|
+
name: marcel
|
69
|
+
requirement: !ruby/object:Gem::Requirement
|
70
|
+
requirements:
|
50
71
|
- - ">="
|
51
72
|
- !ruby/object:Gem::Version
|
52
|
-
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'
|
53
81
|
- !ruby/object:Gem::Dependency
|
54
82
|
name: rspec
|
55
83
|
requirement: !ruby/object:Gem::Requirement
|
@@ -90,7 +118,7 @@ files:
|
|
90
118
|
- docs/ContainerContainerPullThroughDistributionResponse.md
|
91
119
|
- docs/ContainerContainerPullThroughRemote.md
|
92
120
|
- docs/ContainerContainerPullThroughRemoteResponse.md
|
93
|
-
- docs/
|
121
|
+
- docs/ContainerContainerPullThroughRemoteResponseHiddenFieldsInner.md
|
94
122
|
- docs/ContainerContainerPushRepository.md
|
95
123
|
- docs/ContainerContainerPushRepositoryResponse.md
|
96
124
|
- docs/ContainerContainerRemote.md
|
@@ -113,7 +141,6 @@ files:
|
|
113
141
|
- docs/MyPermissionsResponse.md
|
114
142
|
- docs/NestedRole.md
|
115
143
|
- docs/NestedRoleResponse.md
|
116
|
-
- docs/OCIBuildImage.md
|
117
144
|
- docs/ObjectRolesResponse.md
|
118
145
|
- docs/PaginatedRepositoryVersionResponseList.md
|
119
146
|
- docs/PaginatedcontainerBlobResponseList.md
|
@@ -185,7 +212,7 @@ files:
|
|
185
212
|
- lib/pulp_container_client/models/container_container_pull_through_distribution_response.rb
|
186
213
|
- lib/pulp_container_client/models/container_container_pull_through_remote.rb
|
187
214
|
- lib/pulp_container_client/models/container_container_pull_through_remote_response.rb
|
188
|
-
- lib/pulp_container_client/models/
|
215
|
+
- lib/pulp_container_client/models/container_container_pull_through_remote_response_hidden_fields_inner.rb
|
189
216
|
- lib/pulp_container_client/models/container_container_push_repository.rb
|
190
217
|
- lib/pulp_container_client/models/container_container_push_repository_response.rb
|
191
218
|
- lib/pulp_container_client/models/container_container_remote.rb
|
@@ -203,7 +230,6 @@ files:
|
|
203
230
|
- lib/pulp_container_client/models/nested_role.rb
|
204
231
|
- lib/pulp_container_client/models/nested_role_response.rb
|
205
232
|
- lib/pulp_container_client/models/object_roles_response.rb
|
206
|
-
- lib/pulp_container_client/models/oci_build_image.rb
|
207
233
|
- lib/pulp_container_client/models/paginated_repository_version_response_list.rb
|
208
234
|
- lib/pulp_container_client/models/paginatedcontainer_blob_response_list.rb
|
209
235
|
- lib/pulp_container_client/models/paginatedcontainer_container_distribution_response_list.rb
|
@@ -254,8 +280,6 @@ files:
|
|
254
280
|
- spec/api/repositories_container_push_versions_api_spec.rb
|
255
281
|
- spec/api/repositories_container_versions_api_spec.rb
|
256
282
|
- spec/api/token_api_spec.rb
|
257
|
-
- spec/api_client_spec.rb
|
258
|
-
- spec/configuration_spec.rb
|
259
283
|
- spec/models/async_operation_response_spec.rb
|
260
284
|
- spec/models/container_blob_response_spec.rb
|
261
285
|
- spec/models/container_container_distribution_response_spec.rb
|
@@ -264,7 +288,7 @@ files:
|
|
264
288
|
- spec/models/container_container_namespace_spec.rb
|
265
289
|
- spec/models/container_container_pull_through_distribution_response_spec.rb
|
266
290
|
- spec/models/container_container_pull_through_distribution_spec.rb
|
267
|
-
- spec/models/
|
291
|
+
- spec/models/container_container_pull_through_remote_response_hidden_fields_inner_spec.rb
|
268
292
|
- spec/models/container_container_pull_through_remote_response_spec.rb
|
269
293
|
- spec/models/container_container_pull_through_remote_spec.rb
|
270
294
|
- spec/models/container_container_push_repository_response_spec.rb
|
@@ -284,7 +308,6 @@ files:
|
|
284
308
|
- spec/models/nested_role_response_spec.rb
|
285
309
|
- spec/models/nested_role_spec.rb
|
286
310
|
- spec/models/object_roles_response_spec.rb
|
287
|
-
- spec/models/oci_build_image_spec.rb
|
288
311
|
- spec/models/paginated_repository_version_response_list_spec.rb
|
289
312
|
- spec/models/paginatedcontainer_blob_response_list_spec.rb
|
290
313
|
- spec/models/paginatedcontainer_container_distribution_response_list_spec.rb
|
@@ -332,7 +355,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
332
355
|
requirements:
|
333
356
|
- - ">="
|
334
357
|
- !ruby/object:Gem::Version
|
335
|
-
version: '
|
358
|
+
version: '2.7'
|
336
359
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
337
360
|
requirements:
|
338
361
|
- - ">="
|
@@ -344,83 +367,80 @@ signing_key:
|
|
344
367
|
specification_version: 4
|
345
368
|
summary: Pulp 3 API Ruby Gem
|
346
369
|
test_files:
|
347
|
-
- spec/api/distributions_container_api_spec.rb
|
348
|
-
- spec/api/content_signatures_api_spec.rb
|
349
|
-
- spec/api/content_tags_api_spec.rb
|
350
|
-
- spec/api/repositories_container_push_versions_api_spec.rb
|
351
|
-
- spec/api/content_manifests_api_spec.rb
|
352
370
|
- spec/api/repositories_container_push_api_spec.rb
|
353
|
-
- spec/api/
|
354
|
-
- spec/api/repositories_container_versions_api_spec.rb
|
355
|
-
- spec/api/distributions_pull_through_api_spec.rb
|
356
|
-
- spec/api/remotes_container_api_spec.rb
|
371
|
+
- spec/api/repositories_container_api_spec.rb
|
357
372
|
- spec/api/remotes_pull_through_api_spec.rb
|
373
|
+
- spec/api/content_manifests_api_spec.rb
|
358
374
|
- spec/api/content_blobs_api_spec.rb
|
375
|
+
- spec/api/pulp_container_namespaces_api_spec.rb
|
376
|
+
- spec/api/content_signatures_api_spec.rb
|
359
377
|
- spec/api/token_api_spec.rb
|
360
|
-
- spec/api/
|
361
|
-
- spec/
|
362
|
-
- spec/
|
363
|
-
- spec/
|
364
|
-
- spec/
|
365
|
-
- spec/
|
366
|
-
- spec/models/
|
367
|
-
- spec/models/
|
368
|
-
- spec/models/
|
378
|
+
- spec/api/repositories_container_versions_api_spec.rb
|
379
|
+
- spec/api/remotes_container_api_spec.rb
|
380
|
+
- spec/api/repositories_container_push_versions_api_spec.rb
|
381
|
+
- spec/api/distributions_container_api_spec.rb
|
382
|
+
- spec/api/content_tags_api_spec.rb
|
383
|
+
- spec/api/distributions_pull_through_api_spec.rb
|
384
|
+
- spec/models/paginatedcontainer_blob_response_list_spec.rb
|
385
|
+
- spec/models/tag_copy_spec.rb
|
386
|
+
- spec/models/container_container_push_repository_spec.rb
|
387
|
+
- spec/models/patchedcontainer_container_repository_spec.rb
|
388
|
+
- spec/models/remove_signatures_response_spec.rb
|
389
|
+
- spec/models/paginated_repository_version_response_list_spec.rb
|
390
|
+
- spec/models/container_tag_response_spec.rb
|
391
|
+
- spec/models/paginatedcontainer_manifest_response_list_spec.rb
|
369
392
|
- spec/models/repository_sign_spec.rb
|
370
|
-
- spec/models/
|
371
|
-
- spec/models/
|
372
|
-
- spec/models/
|
373
|
-
- spec/models/paginatedcontainer_manifest_signature_response_list_spec.rb
|
374
|
-
- spec/models/patchedcontainer_container_pull_through_remote_spec.rb
|
375
|
-
- spec/models/patchedcontainer_container_push_repository_spec.rb
|
376
|
-
- spec/models/recursive_manage_spec.rb
|
377
|
-
- spec/models/async_operation_response_spec.rb
|
378
|
-
- spec/models/policy7e0_enum_spec.rb
|
379
|
-
- spec/models/paginatedcontainer_container_distribution_response_list_spec.rb
|
393
|
+
- spec/models/nested_role_response_spec.rb
|
394
|
+
- spec/models/container_container_pull_through_distribution_spec.rb
|
395
|
+
- spec/models/container_container_pull_through_remote_response_hidden_fields_inner_spec.rb
|
380
396
|
- spec/models/paginatedcontainer_tag_response_list_spec.rb
|
381
|
-
- spec/models/container_container_repository_spec.rb
|
382
|
-
- spec/models/object_roles_response_spec.rb
|
383
397
|
- spec/models/container_container_push_repository_response_spec.rb
|
384
|
-
- spec/models/
|
385
|
-
- spec/models/
|
386
|
-
- spec/models/
|
398
|
+
- spec/models/set_label_response_spec.rb
|
399
|
+
- spec/models/container_container_repository_spec.rb
|
400
|
+
- spec/models/remove_signatures_spec.rb
|
401
|
+
- spec/models/container_container_pull_through_remote_response_spec.rb
|
387
402
|
- spec/models/paginatedcontainer_container_namespace_response_list_spec.rb
|
388
|
-
- spec/models/
|
389
|
-
- spec/models/
|
390
|
-
- spec/models/
|
391
|
-
- spec/models/
|
392
|
-
- spec/models/
|
393
|
-
- spec/models/content_summary_response_spec.rb
|
394
|
-
- spec/models/container_container_namespace_spec.rb
|
395
|
-
- spec/models/container_manifest_response_spec.rb
|
396
|
-
- spec/models/paginatedcontainer_container_push_repository_response_list_spec.rb
|
403
|
+
- spec/models/unset_label_spec.rb
|
404
|
+
- spec/models/async_operation_response_spec.rb
|
405
|
+
- spec/models/patchedcontainer_container_push_repository_spec.rb
|
406
|
+
- spec/models/patchedcontainer_container_distribution_spec.rb
|
407
|
+
- spec/models/paginatedcontainer_container_repository_response_list_spec.rb
|
397
408
|
- spec/models/container_container_pull_through_distribution_response_spec.rb
|
398
|
-
- spec/models/
|
399
|
-
- spec/models/nested_role_spec.rb
|
400
|
-
- spec/models/policy692_enum_spec.rb
|
401
|
-
- spec/models/repository_version_response_spec.rb
|
409
|
+
- spec/models/repair_spec.rb
|
402
410
|
- spec/models/paginatedcontainer_container_pull_through_remote_response_list_spec.rb
|
403
|
-
- spec/models/
|
404
|
-
- spec/models/
|
405
|
-
- spec/models/
|
406
|
-
- spec/models/
|
407
|
-
- spec/models/
|
408
|
-
- spec/models/
|
409
|
-
- spec/models/patchedcontainer_container_repository_spec.rb
|
410
|
-
- spec/models/container_container_pull_through_remote_response_spec.rb
|
411
|
-
- spec/models/container_container_pull_through_distribution_spec.rb
|
412
|
-
- spec/models/container_manifest_signature_response_spec.rb
|
411
|
+
- spec/models/policy692_enum_spec.rb
|
412
|
+
- spec/models/paginatedcontainer_container_distribution_response_list_spec.rb
|
413
|
+
- spec/models/manifest_copy_spec.rb
|
414
|
+
- spec/models/container_blob_response_spec.rb
|
415
|
+
- spec/models/container_container_repository_response_spec.rb
|
416
|
+
- spec/models/paginatedcontainer_container_pull_through_distribution_response_list_spec.rb
|
413
417
|
- spec/models/un_tag_image_spec.rb
|
414
|
-
- spec/models/
|
415
|
-
- spec/models/
|
416
|
-
- spec/models/paginatedcontainer_container_repository_response_list_spec.rb
|
418
|
+
- spec/models/container_container_namespace_response_spec.rb
|
419
|
+
- spec/models/recursive_manage_spec.rb
|
417
420
|
- spec/models/container_repository_sync_url_spec.rb
|
418
421
|
- spec/models/tag_image_spec.rb
|
422
|
+
- spec/models/container_manifest_signature_response_spec.rb
|
423
|
+
- spec/models/policy7e0_enum_spec.rb
|
419
424
|
- spec/models/unset_label_response_spec.rb
|
420
|
-
- spec/models/
|
421
|
-
- spec/models/
|
422
|
-
- spec/models/
|
423
|
-
- spec/models/paginated_repository_version_response_list_spec.rb
|
424
|
-
- spec/models/paginatedcontainer_container_pull_through_distribution_response_list_spec.rb
|
425
|
+
- spec/models/paginatedcontainer_container_push_repository_response_list_spec.rb
|
426
|
+
- spec/models/media_types_enum_spec.rb
|
427
|
+
- spec/models/patchedcontainer_container_pull_through_remote_spec.rb
|
425
428
|
- spec/models/patchedcontainer_container_remote_spec.rb
|
429
|
+
- spec/models/container_container_namespace_spec.rb
|
430
|
+
- spec/models/container_container_distribution_response_spec.rb
|
431
|
+
- spec/models/object_roles_response_spec.rb
|
432
|
+
- spec/models/container_container_distribution_spec.rb
|
433
|
+
- spec/models/nested_role_spec.rb
|
434
|
+
- spec/models/patchedcontainer_container_pull_through_distribution_spec.rb
|
435
|
+
- spec/models/repository_version_response_spec.rb
|
436
|
+
- spec/models/remove_image_spec.rb
|
437
|
+
- spec/models/paginatedcontainer_manifest_signature_response_list_spec.rb
|
438
|
+
- spec/models/content_summary_response_spec.rb
|
439
|
+
- spec/models/paginatedcontainer_container_remote_response_list_spec.rb
|
440
|
+
- spec/models/my_permissions_response_spec.rb
|
441
|
+
- spec/models/container_container_pull_through_remote_spec.rb
|
442
|
+
- spec/models/set_label_spec.rb
|
443
|
+
- spec/models/container_container_remote_spec.rb
|
444
|
+
- spec/models/container_container_remote_response_spec.rb
|
445
|
+
- spec/models/container_manifest_response_spec.rb
|
426
446
|
- spec/spec_helper.rb
|
@@ -1,19 +0,0 @@
|
|
1
|
-
# PulpContainerClient::ContainerContainerPullThroughRemoteResponseHiddenFields
|
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::ContainerContainerPullThroughRemoteResponseHiddenFields.new(name: null,
|
16
|
-
is_set: null)
|
17
|
-
```
|
18
|
-
|
19
|
-
|
data/docs/OCIBuildImage.md
DELETED
@@ -1,23 +0,0 @@
|
|
1
|
-
# PulpContainerClient::OCIBuildImage
|
2
|
-
|
3
|
-
## Properties
|
4
|
-
|
5
|
-
Name | Type | Description | Notes
|
6
|
-
------------ | ------------- | ------------- | -------------
|
7
|
-
**containerfile_name** | **String** | Name of the Containerfile, from build_context, that should be used to run podman-build. | [optional]
|
8
|
-
**containerfile** | **File** | An uploaded Containerfile that should be used to run podman-build. | [optional]
|
9
|
-
**tag** | **String** | A tag name for the new image being built. | [optional] [default to 'latest']
|
10
|
-
**build_context** | **String** | RepositoryVersion to be used as the build context for container images. | [optional]
|
11
|
-
|
12
|
-
## Code Sample
|
13
|
-
|
14
|
-
```ruby
|
15
|
-
require 'PulpContainerClient'
|
16
|
-
|
17
|
-
instance = PulpContainerClient::OCIBuildImage.new(containerfile_name: null,
|
18
|
-
containerfile: null,
|
19
|
-
tag: null,
|
20
|
-
build_context: null)
|
21
|
-
```
|
22
|
-
|
23
|
-
|
@@ -1,256 +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
|
-
# Serializer for building an OCI container image from a Containerfile. The Containerfile can either be specified via an artifact url, or a new file can be uploaded. A repository must be specified, to which the container image content will be added.
|
17
|
-
class OCIBuildImage
|
18
|
-
# Name of the Containerfile, from build_context, that should be used to run podman-build.
|
19
|
-
attr_accessor :containerfile_name
|
20
|
-
|
21
|
-
# An uploaded Containerfile that should be used to run podman-build.
|
22
|
-
attr_accessor :containerfile
|
23
|
-
|
24
|
-
# A tag name for the new image being built.
|
25
|
-
attr_accessor :tag
|
26
|
-
|
27
|
-
# RepositoryVersion to be used as the build context for container images.
|
28
|
-
attr_accessor :build_context
|
29
|
-
|
30
|
-
# Attribute mapping from ruby-style variable name to JSON key.
|
31
|
-
def self.attribute_map
|
32
|
-
{
|
33
|
-
:'containerfile_name' => :'containerfile_name',
|
34
|
-
:'containerfile' => :'containerfile',
|
35
|
-
:'tag' => :'tag',
|
36
|
-
:'build_context' => :'build_context'
|
37
|
-
}
|
38
|
-
end
|
39
|
-
|
40
|
-
# Attribute type mapping.
|
41
|
-
def self.openapi_types
|
42
|
-
{
|
43
|
-
:'containerfile_name' => :'String',
|
44
|
-
:'containerfile' => :'File',
|
45
|
-
:'tag' => :'String',
|
46
|
-
:'build_context' => :'String'
|
47
|
-
}
|
48
|
-
end
|
49
|
-
|
50
|
-
# List of attributes with nullable: true
|
51
|
-
def self.openapi_nullable
|
52
|
-
Set.new([
|
53
|
-
:'build_context'
|
54
|
-
])
|
55
|
-
end
|
56
|
-
|
57
|
-
# Initializes the object
|
58
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
59
|
-
def initialize(attributes = {})
|
60
|
-
if (!attributes.is_a?(Hash))
|
61
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `PulpContainerClient::OCIBuildImage` initialize method"
|
62
|
-
end
|
63
|
-
|
64
|
-
# check to see if the attribute exists and convert string to symbol for hash key
|
65
|
-
attributes = attributes.each_with_object({}) { |(k, v), h|
|
66
|
-
if (!self.class.attribute_map.key?(k.to_sym))
|
67
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `PulpContainerClient::OCIBuildImage`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
68
|
-
end
|
69
|
-
h[k.to_sym] = v
|
70
|
-
}
|
71
|
-
|
72
|
-
if attributes.key?(:'containerfile_name')
|
73
|
-
self.containerfile_name = attributes[:'containerfile_name']
|
74
|
-
end
|
75
|
-
|
76
|
-
if attributes.key?(:'containerfile')
|
77
|
-
self.containerfile = attributes[:'containerfile']
|
78
|
-
end
|
79
|
-
|
80
|
-
if attributes.key?(:'tag')
|
81
|
-
self.tag = attributes[:'tag']
|
82
|
-
else
|
83
|
-
self.tag = 'latest'
|
84
|
-
end
|
85
|
-
|
86
|
-
if attributes.key?(:'build_context')
|
87
|
-
self.build_context = attributes[:'build_context']
|
88
|
-
end
|
89
|
-
end
|
90
|
-
|
91
|
-
# Show invalid properties with the reasons. Usually used together with valid?
|
92
|
-
# @return Array for valid properties with the reasons
|
93
|
-
def list_invalid_properties
|
94
|
-
invalid_properties = Array.new
|
95
|
-
if !@tag.nil? && @tag.to_s.length < 1
|
96
|
-
invalid_properties.push('invalid value for "tag", the character length must be great than or equal to 1.')
|
97
|
-
end
|
98
|
-
|
99
|
-
invalid_properties
|
100
|
-
end
|
101
|
-
|
102
|
-
# Check to see if the all the properties in the model are valid
|
103
|
-
# @return true if the model is valid
|
104
|
-
def valid?
|
105
|
-
return false if !@tag.nil? && @tag.to_s.length < 1
|
106
|
-
true
|
107
|
-
end
|
108
|
-
|
109
|
-
# Custom attribute writer method with validation
|
110
|
-
# @param [Object] tag Value to be assigned
|
111
|
-
def tag=(tag)
|
112
|
-
if !tag.nil? && tag.to_s.length < 1
|
113
|
-
fail ArgumentError, 'invalid value for "tag", the character length must be great than or equal to 1.'
|
114
|
-
end
|
115
|
-
|
116
|
-
@tag = tag
|
117
|
-
end
|
118
|
-
|
119
|
-
# Checks equality by comparing each attribute.
|
120
|
-
# @param [Object] Object to be compared
|
121
|
-
def ==(o)
|
122
|
-
return true if self.equal?(o)
|
123
|
-
self.class == o.class &&
|
124
|
-
containerfile_name == o.containerfile_name &&
|
125
|
-
containerfile == o.containerfile &&
|
126
|
-
tag == o.tag &&
|
127
|
-
build_context == o.build_context
|
128
|
-
end
|
129
|
-
|
130
|
-
# @see the `==` method
|
131
|
-
# @param [Object] Object to be compared
|
132
|
-
def eql?(o)
|
133
|
-
self == o
|
134
|
-
end
|
135
|
-
|
136
|
-
# Calculates hash code according to all attributes.
|
137
|
-
# @return [Integer] Hash code
|
138
|
-
def hash
|
139
|
-
[containerfile_name, containerfile, tag, build_context].hash
|
140
|
-
end
|
141
|
-
|
142
|
-
# Builds the object from hash
|
143
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
144
|
-
# @return [Object] Returns the model itself
|
145
|
-
def self.build_from_hash(attributes)
|
146
|
-
new.build_from_hash(attributes)
|
147
|
-
end
|
148
|
-
|
149
|
-
# Builds the object from hash
|
150
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
151
|
-
# @return [Object] Returns the model itself
|
152
|
-
def build_from_hash(attributes)
|
153
|
-
return nil unless attributes.is_a?(Hash)
|
154
|
-
self.class.openapi_types.each_pair do |key, type|
|
155
|
-
if type =~ /\AArray<(.*)>/i
|
156
|
-
# check to ensure the input is an array given that the attribute
|
157
|
-
# is documented as an array but the input is not
|
158
|
-
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
159
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
160
|
-
end
|
161
|
-
elsif !attributes[self.class.attribute_map[key]].nil?
|
162
|
-
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
163
|
-
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
164
|
-
end
|
165
|
-
|
166
|
-
self
|
167
|
-
end
|
168
|
-
|
169
|
-
# Deserializes the data based on type
|
170
|
-
# @param string type Data type
|
171
|
-
# @param string value Value to be deserialized
|
172
|
-
# @return [Object] Deserialized data
|
173
|
-
def _deserialize(type, value)
|
174
|
-
case type.to_sym
|
175
|
-
when :DateTime
|
176
|
-
DateTime.parse(value)
|
177
|
-
when :Date
|
178
|
-
Date.parse(value)
|
179
|
-
when :String
|
180
|
-
value.to_s
|
181
|
-
when :Integer
|
182
|
-
value.to_i
|
183
|
-
when :Float
|
184
|
-
value.to_f
|
185
|
-
when :Boolean
|
186
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
187
|
-
true
|
188
|
-
else
|
189
|
-
false
|
190
|
-
end
|
191
|
-
when :Object
|
192
|
-
# generic object (usually a Hash), return directly
|
193
|
-
value
|
194
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
195
|
-
inner_type = Regexp.last_match[:inner_type]
|
196
|
-
value.map { |v| _deserialize(inner_type, v) }
|
197
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
198
|
-
k_type = Regexp.last_match[:k_type]
|
199
|
-
v_type = Regexp.last_match[:v_type]
|
200
|
-
{}.tap do |hash|
|
201
|
-
value.each do |k, v|
|
202
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
203
|
-
end
|
204
|
-
end
|
205
|
-
else # model
|
206
|
-
PulpContainerClient.const_get(type).build_from_hash(value)
|
207
|
-
end
|
208
|
-
end
|
209
|
-
|
210
|
-
# Returns the string representation of the object
|
211
|
-
# @return [String] String presentation of the object
|
212
|
-
def to_s
|
213
|
-
to_hash.to_s
|
214
|
-
end
|
215
|
-
|
216
|
-
# to_body is an alias to to_hash (backward compatibility)
|
217
|
-
# @return [Hash] Returns the object in the form of hash
|
218
|
-
def to_body
|
219
|
-
to_hash
|
220
|
-
end
|
221
|
-
|
222
|
-
# Returns the object in the form of hash
|
223
|
-
# @return [Hash] Returns the object in the form of hash
|
224
|
-
def to_hash
|
225
|
-
hash = {}
|
226
|
-
self.class.attribute_map.each_pair do |attr, param|
|
227
|
-
value = self.send(attr)
|
228
|
-
if value.nil?
|
229
|
-
is_nullable = self.class.openapi_nullable.include?(attr)
|
230
|
-
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
231
|
-
end
|
232
|
-
|
233
|
-
hash[param] = _to_hash(value)
|
234
|
-
end
|
235
|
-
hash
|
236
|
-
end
|
237
|
-
|
238
|
-
# Outputs non-array value in the form of hash
|
239
|
-
# For object, use to_hash. Otherwise, just return the value
|
240
|
-
# @param [Object] value Any valid value
|
241
|
-
# @return [Hash] Returns the value in the form of hash
|
242
|
-
def _to_hash(value)
|
243
|
-
if value.is_a?(Array)
|
244
|
-
value.compact.map { |v| _to_hash(v) }
|
245
|
-
elsif value.is_a?(Hash)
|
246
|
-
{}.tap do |hash|
|
247
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
248
|
-
end
|
249
|
-
elsif value.respond_to? :to_hash
|
250
|
-
value.to_hash
|
251
|
-
else
|
252
|
-
value
|
253
|
-
end
|
254
|
-
end
|
255
|
-
end
|
256
|
-
end
|