pulp_container_client 2.22.0 → 2.23.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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 +55 -43
- data/lib/pulp_container_client/models/container_container_distribution_response.rb +76 -64
- 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 +57 -43
- data/lib/pulp_container_client/models/container_container_pull_through_distribution_response.rb +78 -64
- data/lib/pulp_container_client/models/container_container_pull_through_remote.rb +76 -42
- data/lib/pulp_container_client/models/container_container_pull_through_remote_response.rb +79 -45
- 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 +80 -70
- data/lib/pulp_container_client/models/container_container_push_repository_response.rb +101 -91
- data/lib/pulp_container_client/models/container_container_remote.rb +83 -43
- data/lib/pulp_container_client/models/container_container_remote_response.rb +81 -45
- 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 +61 -45
- data/lib/pulp_container_client/models/patchedcontainer_container_pull_through_distribution.rb +61 -45
- data/lib/pulp_container_client/models/patchedcontainer_container_pull_through_remote.rb +82 -44
- data/lib/pulp_container_client/models/patchedcontainer_container_push_repository.rb +83 -71
- data/lib/pulp_container_client/models/patchedcontainer_container_remote.rb +92 -46
- 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 +19 -24
- 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 +20 -25
- 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 +16 -21
- 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 +19 -24
- data/spec/models/patchedcontainer_container_pull_through_distribution_spec.rb +20 -25
- data/spec/models/patchedcontainer_container_pull_through_remote_spec.rb +29 -34
- data/spec/models/patchedcontainer_container_push_repository_spec.rb +16 -21
- 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 +108 -88
- 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
|
@@ -6,11 +6,12 @@
|
|
|
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
|
|
|
13
13
|
require 'date'
|
|
14
|
+
require 'time'
|
|
14
15
|
|
|
15
16
|
module PulpContainerClient
|
|
16
17
|
# Serializer for Tags.
|
|
@@ -44,13 +45,18 @@ module PulpContainerClient
|
|
|
44
45
|
}
|
|
45
46
|
end
|
|
46
47
|
|
|
48
|
+
# Returns all the JSON keys this model knows about
|
|
49
|
+
def self.acceptable_attributes
|
|
50
|
+
attribute_map.values
|
|
51
|
+
end
|
|
52
|
+
|
|
47
53
|
# Attribute type mapping.
|
|
48
54
|
def self.openapi_types
|
|
49
55
|
{
|
|
50
56
|
:'pulp_href' => :'String',
|
|
51
57
|
:'prn' => :'String',
|
|
52
|
-
:'pulp_created' => :'
|
|
53
|
-
:'pulp_last_updated' => :'
|
|
58
|
+
:'pulp_created' => :'Time',
|
|
59
|
+
:'pulp_last_updated' => :'Time',
|
|
54
60
|
:'name' => :'String',
|
|
55
61
|
:'tagged_manifest' => :'String'
|
|
56
62
|
}
|
|
@@ -95,16 +101,21 @@ module PulpContainerClient
|
|
|
95
101
|
|
|
96
102
|
if attributes.key?(:'name')
|
|
97
103
|
self.name = attributes[:'name']
|
|
104
|
+
else
|
|
105
|
+
self.name = nil
|
|
98
106
|
end
|
|
99
107
|
|
|
100
108
|
if attributes.key?(:'tagged_manifest')
|
|
101
109
|
self.tagged_manifest = attributes[:'tagged_manifest']
|
|
110
|
+
else
|
|
111
|
+
self.tagged_manifest = nil
|
|
102
112
|
end
|
|
103
113
|
end
|
|
104
114
|
|
|
105
115
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
106
116
|
# @return Array for valid properties with the reasons
|
|
107
117
|
def list_invalid_properties
|
|
118
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
108
119
|
invalid_properties = Array.new
|
|
109
120
|
if @name.nil?
|
|
110
121
|
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
|
@@ -120,6 +131,7 @@ module PulpContainerClient
|
|
|
120
131
|
# Check to see if the all the properties in the model are valid
|
|
121
132
|
# @return true if the model is valid
|
|
122
133
|
def valid?
|
|
134
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
123
135
|
return false if @name.nil?
|
|
124
136
|
return false if @tagged_manifest.nil?
|
|
125
137
|
true
|
|
@@ -154,37 +166,33 @@ module PulpContainerClient
|
|
|
154
166
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
155
167
|
# @return [Object] Returns the model itself
|
|
156
168
|
def self.build_from_hash(attributes)
|
|
157
|
-
new.build_from_hash(attributes)
|
|
158
|
-
end
|
|
159
|
-
|
|
160
|
-
# Builds the object from hash
|
|
161
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
|
162
|
-
# @return [Object] Returns the model itself
|
|
163
|
-
def build_from_hash(attributes)
|
|
164
169
|
return nil unless attributes.is_a?(Hash)
|
|
165
|
-
|
|
166
|
-
|
|
170
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
171
|
+
transformed_hash = {}
|
|
172
|
+
openapi_types.each_pair do |key, type|
|
|
173
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
174
|
+
transformed_hash["#{key}"] = nil
|
|
175
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
167
176
|
# check to ensure the input is an array given that the attribute
|
|
168
177
|
# is documented as an array but the input is not
|
|
169
|
-
if attributes[
|
|
170
|
-
|
|
178
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
179
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
171
180
|
end
|
|
172
|
-
elsif !attributes[
|
|
173
|
-
|
|
174
|
-
end
|
|
181
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
182
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
183
|
+
end
|
|
175
184
|
end
|
|
176
|
-
|
|
177
|
-
self
|
|
185
|
+
new(transformed_hash)
|
|
178
186
|
end
|
|
179
187
|
|
|
180
188
|
# Deserializes the data based on type
|
|
181
189
|
# @param string type Data type
|
|
182
190
|
# @param string value Value to be deserialized
|
|
183
191
|
# @return [Object] Deserialized data
|
|
184
|
-
def _deserialize(type, value)
|
|
192
|
+
def self._deserialize(type, value)
|
|
185
193
|
case type.to_sym
|
|
186
|
-
when :
|
|
187
|
-
|
|
194
|
+
when :Time
|
|
195
|
+
Time.parse(value)
|
|
188
196
|
when :Date
|
|
189
197
|
Date.parse(value)
|
|
190
198
|
when :String
|
|
@@ -214,7 +222,9 @@ module PulpContainerClient
|
|
|
214
222
|
end
|
|
215
223
|
end
|
|
216
224
|
else # model
|
|
217
|
-
|
|
225
|
+
# models (e.g. Pet) or oneOf
|
|
226
|
+
klass = PulpContainerClient.const_get(type)
|
|
227
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
218
228
|
end
|
|
219
229
|
end
|
|
220
230
|
|
|
@@ -240,7 +250,7 @@ module PulpContainerClient
|
|
|
240
250
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
241
251
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
242
252
|
end
|
|
243
|
-
|
|
253
|
+
|
|
244
254
|
hash[param] = _to_hash(value)
|
|
245
255
|
end
|
|
246
256
|
hash
|
|
@@ -263,5 +273,7 @@ module PulpContainerClient
|
|
|
263
273
|
value
|
|
264
274
|
end
|
|
265
275
|
end
|
|
276
|
+
|
|
266
277
|
end
|
|
278
|
+
|
|
267
279
|
end
|
|
@@ -6,11 +6,12 @@
|
|
|
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
|
|
|
13
13
|
require 'date'
|
|
14
|
+
require 'time'
|
|
14
15
|
|
|
15
16
|
module PulpContainerClient
|
|
16
17
|
# Serializer for the RepositoryVersion content summary
|
|
@@ -30,6 +31,11 @@ module PulpContainerClient
|
|
|
30
31
|
}
|
|
31
32
|
end
|
|
32
33
|
|
|
34
|
+
# Returns all the JSON keys this model knows about
|
|
35
|
+
def self.acceptable_attributes
|
|
36
|
+
attribute_map.values
|
|
37
|
+
end
|
|
38
|
+
|
|
33
39
|
# Attribute type mapping.
|
|
34
40
|
def self.openapi_types
|
|
35
41
|
{
|
|
@@ -64,24 +70,31 @@ module PulpContainerClient
|
|
|
64
70
|
if (value = attributes[:'added']).is_a?(Hash)
|
|
65
71
|
self.added = value
|
|
66
72
|
end
|
|
73
|
+
else
|
|
74
|
+
self.added = nil
|
|
67
75
|
end
|
|
68
76
|
|
|
69
77
|
if attributes.key?(:'removed')
|
|
70
78
|
if (value = attributes[:'removed']).is_a?(Hash)
|
|
71
79
|
self.removed = value
|
|
72
80
|
end
|
|
81
|
+
else
|
|
82
|
+
self.removed = nil
|
|
73
83
|
end
|
|
74
84
|
|
|
75
85
|
if attributes.key?(:'present')
|
|
76
86
|
if (value = attributes[:'present']).is_a?(Hash)
|
|
77
87
|
self.present = value
|
|
78
88
|
end
|
|
89
|
+
else
|
|
90
|
+
self.present = nil
|
|
79
91
|
end
|
|
80
92
|
end
|
|
81
93
|
|
|
82
94
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
83
95
|
# @return Array for valid properties with the reasons
|
|
84
96
|
def list_invalid_properties
|
|
97
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
85
98
|
invalid_properties = Array.new
|
|
86
99
|
if @added.nil?
|
|
87
100
|
invalid_properties.push('invalid value for "added", added cannot be nil.')
|
|
@@ -101,6 +114,7 @@ module PulpContainerClient
|
|
|
101
114
|
# Check to see if the all the properties in the model are valid
|
|
102
115
|
# @return true if the model is valid
|
|
103
116
|
def valid?
|
|
117
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
104
118
|
return false if @added.nil?
|
|
105
119
|
return false if @removed.nil?
|
|
106
120
|
return false if @present.nil?
|
|
@@ -133,37 +147,33 @@ module PulpContainerClient
|
|
|
133
147
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
134
148
|
# @return [Object] Returns the model itself
|
|
135
149
|
def self.build_from_hash(attributes)
|
|
136
|
-
new.build_from_hash(attributes)
|
|
137
|
-
end
|
|
138
|
-
|
|
139
|
-
# Builds the object from hash
|
|
140
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
|
141
|
-
# @return [Object] Returns the model itself
|
|
142
|
-
def build_from_hash(attributes)
|
|
143
150
|
return nil unless attributes.is_a?(Hash)
|
|
144
|
-
|
|
145
|
-
|
|
151
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
152
|
+
transformed_hash = {}
|
|
153
|
+
openapi_types.each_pair do |key, type|
|
|
154
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
155
|
+
transformed_hash["#{key}"] = nil
|
|
156
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
146
157
|
# check to ensure the input is an array given that the attribute
|
|
147
158
|
# is documented as an array but the input is not
|
|
148
|
-
if attributes[
|
|
149
|
-
|
|
159
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
160
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
150
161
|
end
|
|
151
|
-
elsif !attributes[
|
|
152
|
-
|
|
153
|
-
end
|
|
162
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
163
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
164
|
+
end
|
|
154
165
|
end
|
|
155
|
-
|
|
156
|
-
self
|
|
166
|
+
new(transformed_hash)
|
|
157
167
|
end
|
|
158
168
|
|
|
159
169
|
# Deserializes the data based on type
|
|
160
170
|
# @param string type Data type
|
|
161
171
|
# @param string value Value to be deserialized
|
|
162
172
|
# @return [Object] Deserialized data
|
|
163
|
-
def _deserialize(type, value)
|
|
173
|
+
def self._deserialize(type, value)
|
|
164
174
|
case type.to_sym
|
|
165
|
-
when :
|
|
166
|
-
|
|
175
|
+
when :Time
|
|
176
|
+
Time.parse(value)
|
|
167
177
|
when :Date
|
|
168
178
|
Date.parse(value)
|
|
169
179
|
when :String
|
|
@@ -193,7 +203,9 @@ module PulpContainerClient
|
|
|
193
203
|
end
|
|
194
204
|
end
|
|
195
205
|
else # model
|
|
196
|
-
|
|
206
|
+
# models (e.g. Pet) or oneOf
|
|
207
|
+
klass = PulpContainerClient.const_get(type)
|
|
208
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
197
209
|
end
|
|
198
210
|
end
|
|
199
211
|
|
|
@@ -219,7 +231,7 @@ module PulpContainerClient
|
|
|
219
231
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
220
232
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
221
233
|
end
|
|
222
|
-
|
|
234
|
+
|
|
223
235
|
hash[param] = _to_hash(value)
|
|
224
236
|
end
|
|
225
237
|
hash
|
|
@@ -242,5 +254,7 @@ module PulpContainerClient
|
|
|
242
254
|
value
|
|
243
255
|
end
|
|
244
256
|
end
|
|
257
|
+
|
|
245
258
|
end
|
|
259
|
+
|
|
246
260
|
end
|
|
@@ -6,11 +6,12 @@
|
|
|
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
|
|
|
13
13
|
require 'date'
|
|
14
|
+
require 'time'
|
|
14
15
|
|
|
15
16
|
module PulpContainerClient
|
|
16
17
|
# Serializer for copying manifests from a source repository to a destination repository.
|
|
@@ -37,12 +38,17 @@ module PulpContainerClient
|
|
|
37
38
|
}
|
|
38
39
|
end
|
|
39
40
|
|
|
41
|
+
# Returns all the JSON keys this model knows about
|
|
42
|
+
def self.acceptable_attributes
|
|
43
|
+
attribute_map.values
|
|
44
|
+
end
|
|
45
|
+
|
|
40
46
|
# Attribute type mapping.
|
|
41
47
|
def self.openapi_types
|
|
42
48
|
{
|
|
43
49
|
:'source_repository' => :'String',
|
|
44
50
|
:'source_repository_version' => :'String',
|
|
45
|
-
:'digests' => :'Array<
|
|
51
|
+
:'digests' => :'Array<Object>',
|
|
46
52
|
:'media_types' => :'Array<MediaTypesEnum>'
|
|
47
53
|
}
|
|
48
54
|
end
|
|
@@ -92,6 +98,7 @@ module PulpContainerClient
|
|
|
92
98
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
93
99
|
# @return Array for valid properties with the reasons
|
|
94
100
|
def list_invalid_properties
|
|
101
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
95
102
|
invalid_properties = Array.new
|
|
96
103
|
invalid_properties
|
|
97
104
|
end
|
|
@@ -99,6 +106,7 @@ module PulpContainerClient
|
|
|
99
106
|
# Check to see if the all the properties in the model are valid
|
|
100
107
|
# @return true if the model is valid
|
|
101
108
|
def valid?
|
|
109
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
102
110
|
true
|
|
103
111
|
end
|
|
104
112
|
|
|
@@ -129,37 +137,33 @@ module PulpContainerClient
|
|
|
129
137
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
130
138
|
# @return [Object] Returns the model itself
|
|
131
139
|
def self.build_from_hash(attributes)
|
|
132
|
-
new.build_from_hash(attributes)
|
|
133
|
-
end
|
|
134
|
-
|
|
135
|
-
# Builds the object from hash
|
|
136
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
|
137
|
-
# @return [Object] Returns the model itself
|
|
138
|
-
def build_from_hash(attributes)
|
|
139
140
|
return nil unless attributes.is_a?(Hash)
|
|
140
|
-
|
|
141
|
-
|
|
141
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
142
|
+
transformed_hash = {}
|
|
143
|
+
openapi_types.each_pair do |key, type|
|
|
144
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
145
|
+
transformed_hash["#{key}"] = nil
|
|
146
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
142
147
|
# check to ensure the input is an array given that the attribute
|
|
143
148
|
# is documented as an array but the input is not
|
|
144
|
-
if attributes[
|
|
145
|
-
|
|
149
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
150
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
146
151
|
end
|
|
147
|
-
elsif !attributes[
|
|
148
|
-
|
|
149
|
-
end
|
|
152
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
153
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
154
|
+
end
|
|
150
155
|
end
|
|
151
|
-
|
|
152
|
-
self
|
|
156
|
+
new(transformed_hash)
|
|
153
157
|
end
|
|
154
158
|
|
|
155
159
|
# Deserializes the data based on type
|
|
156
160
|
# @param string type Data type
|
|
157
161
|
# @param string value Value to be deserialized
|
|
158
162
|
# @return [Object] Deserialized data
|
|
159
|
-
def _deserialize(type, value)
|
|
163
|
+
def self._deserialize(type, value)
|
|
160
164
|
case type.to_sym
|
|
161
|
-
when :
|
|
162
|
-
|
|
165
|
+
when :Time
|
|
166
|
+
Time.parse(value)
|
|
163
167
|
when :Date
|
|
164
168
|
Date.parse(value)
|
|
165
169
|
when :String
|
|
@@ -189,7 +193,9 @@ module PulpContainerClient
|
|
|
189
193
|
end
|
|
190
194
|
end
|
|
191
195
|
else # model
|
|
192
|
-
|
|
196
|
+
# models (e.g. Pet) or oneOf
|
|
197
|
+
klass = PulpContainerClient.const_get(type)
|
|
198
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
193
199
|
end
|
|
194
200
|
end
|
|
195
201
|
|
|
@@ -215,7 +221,7 @@ module PulpContainerClient
|
|
|
215
221
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
216
222
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
217
223
|
end
|
|
218
|
-
|
|
224
|
+
|
|
219
225
|
hash[param] = _to_hash(value)
|
|
220
226
|
end
|
|
221
227
|
hash
|
|
@@ -238,5 +244,7 @@ module PulpContainerClient
|
|
|
238
244
|
value
|
|
239
245
|
end
|
|
240
246
|
end
|
|
247
|
+
|
|
241
248
|
end
|
|
249
|
+
|
|
242
250
|
end
|
|
@@ -6,11 +6,12 @@
|
|
|
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
|
|
|
13
13
|
require 'date'
|
|
14
|
+
require 'time'
|
|
14
15
|
|
|
15
16
|
module PulpContainerClient
|
|
16
17
|
class MediaTypesEnum
|
|
@@ -20,6 +21,10 @@ module PulpContainerClient
|
|
|
20
21
|
OCI_IMAGE_MANIFEST_V1JSON = "application/vnd.oci.image.manifest.v1+json".freeze
|
|
21
22
|
OCI_IMAGE_INDEX_V1JSON = "application/vnd.oci.image.index.v1+json".freeze
|
|
22
23
|
|
|
24
|
+
def self.all_vars
|
|
25
|
+
@all_vars ||= [DOCKER_DISTRIBUTION_MANIFEST_V1JSON, DOCKER_DISTRIBUTION_MANIFEST_V2JSON, DOCKER_DISTRIBUTION_MANIFEST_LIST_V2JSON, OCI_IMAGE_MANIFEST_V1JSON, OCI_IMAGE_INDEX_V1JSON].freeze
|
|
26
|
+
end
|
|
27
|
+
|
|
23
28
|
# Builds the enum from string
|
|
24
29
|
# @param [String] The enum value in the form of the string
|
|
25
30
|
# @return [String] The enum value
|
|
@@ -31,9 +36,8 @@ module PulpContainerClient
|
|
|
31
36
|
# @param [String] The enum value in the form of the string
|
|
32
37
|
# @return [String] The enum value
|
|
33
38
|
def build_from_hash(value)
|
|
34
|
-
|
|
35
|
-
raise "Invalid ENUM value #{value} for class #MediaTypesEnum"
|
|
36
|
-
value
|
|
39
|
+
return value if MediaTypesEnum.all_vars.include?(value)
|
|
40
|
+
raise "Invalid ENUM value #{value} for class #MediaTypesEnum"
|
|
37
41
|
end
|
|
38
42
|
end
|
|
39
43
|
end
|
|
@@ -6,11 +6,12 @@
|
|
|
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
|
|
|
13
13
|
require 'date'
|
|
14
|
+
require 'time'
|
|
14
15
|
|
|
15
16
|
module PulpContainerClient
|
|
16
17
|
class MyPermissionsResponse
|
|
@@ -23,6 +24,11 @@ module PulpContainerClient
|
|
|
23
24
|
}
|
|
24
25
|
end
|
|
25
26
|
|
|
27
|
+
# Returns all the JSON keys this model knows about
|
|
28
|
+
def self.acceptable_attributes
|
|
29
|
+
attribute_map.values
|
|
30
|
+
end
|
|
31
|
+
|
|
26
32
|
# Attribute type mapping.
|
|
27
33
|
def self.openapi_types
|
|
28
34
|
{
|
|
@@ -55,12 +61,15 @@ module PulpContainerClient
|
|
|
55
61
|
if (value = attributes[:'permissions']).is_a?(Array)
|
|
56
62
|
self.permissions = value
|
|
57
63
|
end
|
|
64
|
+
else
|
|
65
|
+
self.permissions = nil
|
|
58
66
|
end
|
|
59
67
|
end
|
|
60
68
|
|
|
61
69
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
62
70
|
# @return Array for valid properties with the reasons
|
|
63
71
|
def list_invalid_properties
|
|
72
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
64
73
|
invalid_properties = Array.new
|
|
65
74
|
if @permissions.nil?
|
|
66
75
|
invalid_properties.push('invalid value for "permissions", permissions cannot be nil.')
|
|
@@ -72,6 +81,7 @@ module PulpContainerClient
|
|
|
72
81
|
# Check to see if the all the properties in the model are valid
|
|
73
82
|
# @return true if the model is valid
|
|
74
83
|
def valid?
|
|
84
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
75
85
|
return false if @permissions.nil?
|
|
76
86
|
true
|
|
77
87
|
end
|
|
@@ -100,37 +110,33 @@ module PulpContainerClient
|
|
|
100
110
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
101
111
|
# @return [Object] Returns the model itself
|
|
102
112
|
def self.build_from_hash(attributes)
|
|
103
|
-
new.build_from_hash(attributes)
|
|
104
|
-
end
|
|
105
|
-
|
|
106
|
-
# Builds the object from hash
|
|
107
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
|
108
|
-
# @return [Object] Returns the model itself
|
|
109
|
-
def build_from_hash(attributes)
|
|
110
113
|
return nil unless attributes.is_a?(Hash)
|
|
111
|
-
|
|
112
|
-
|
|
114
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
115
|
+
transformed_hash = {}
|
|
116
|
+
openapi_types.each_pair do |key, type|
|
|
117
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
118
|
+
transformed_hash["#{key}"] = nil
|
|
119
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
113
120
|
# check to ensure the input is an array given that the attribute
|
|
114
121
|
# is documented as an array but the input is not
|
|
115
|
-
if attributes[
|
|
116
|
-
|
|
122
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
123
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
117
124
|
end
|
|
118
|
-
elsif !attributes[
|
|
119
|
-
|
|
120
|
-
end
|
|
125
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
126
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
127
|
+
end
|
|
121
128
|
end
|
|
122
|
-
|
|
123
|
-
self
|
|
129
|
+
new(transformed_hash)
|
|
124
130
|
end
|
|
125
131
|
|
|
126
132
|
# Deserializes the data based on type
|
|
127
133
|
# @param string type Data type
|
|
128
134
|
# @param string value Value to be deserialized
|
|
129
135
|
# @return [Object] Deserialized data
|
|
130
|
-
def _deserialize(type, value)
|
|
136
|
+
def self._deserialize(type, value)
|
|
131
137
|
case type.to_sym
|
|
132
|
-
when :
|
|
133
|
-
|
|
138
|
+
when :Time
|
|
139
|
+
Time.parse(value)
|
|
134
140
|
when :Date
|
|
135
141
|
Date.parse(value)
|
|
136
142
|
when :String
|
|
@@ -160,7 +166,9 @@ module PulpContainerClient
|
|
|
160
166
|
end
|
|
161
167
|
end
|
|
162
168
|
else # model
|
|
163
|
-
|
|
169
|
+
# models (e.g. Pet) or oneOf
|
|
170
|
+
klass = PulpContainerClient.const_get(type)
|
|
171
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
164
172
|
end
|
|
165
173
|
end
|
|
166
174
|
|
|
@@ -186,7 +194,7 @@ module PulpContainerClient
|
|
|
186
194
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
187
195
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
188
196
|
end
|
|
189
|
-
|
|
197
|
+
|
|
190
198
|
hash[param] = _to_hash(value)
|
|
191
199
|
end
|
|
192
200
|
hash
|
|
@@ -209,5 +217,7 @@ module PulpContainerClient
|
|
|
209
217
|
value
|
|
210
218
|
end
|
|
211
219
|
end
|
|
220
|
+
|
|
212
221
|
end
|
|
222
|
+
|
|
213
223
|
end
|