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 Container Repositories.
|
|
@@ -65,13 +66,18 @@ module PulpContainerClient
|
|
|
65
66
|
}
|
|
66
67
|
end
|
|
67
68
|
|
|
69
|
+
# Returns all the JSON keys this model knows about
|
|
70
|
+
def self.acceptable_attributes
|
|
71
|
+
attribute_map.values
|
|
72
|
+
end
|
|
73
|
+
|
|
68
74
|
# Attribute type mapping.
|
|
69
75
|
def self.openapi_types
|
|
70
76
|
{
|
|
71
77
|
:'pulp_href' => :'String',
|
|
72
78
|
:'prn' => :'String',
|
|
73
|
-
:'pulp_created' => :'
|
|
74
|
-
:'pulp_last_updated' => :'
|
|
79
|
+
:'pulp_created' => :'Time',
|
|
80
|
+
:'pulp_last_updated' => :'Time',
|
|
75
81
|
:'versions_href' => :'String',
|
|
76
82
|
:'pulp_labels' => :'Hash<String, String>',
|
|
77
83
|
:'latest_version_href' => :'String',
|
|
@@ -140,6 +146,8 @@ module PulpContainerClient
|
|
|
140
146
|
|
|
141
147
|
if attributes.key?(:'name')
|
|
142
148
|
self.name = attributes[:'name']
|
|
149
|
+
else
|
|
150
|
+
self.name = nil
|
|
143
151
|
end
|
|
144
152
|
|
|
145
153
|
if attributes.key?(:'description')
|
|
@@ -162,6 +170,7 @@ module PulpContainerClient
|
|
|
162
170
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
163
171
|
# @return Array for valid properties with the reasons
|
|
164
172
|
def list_invalid_properties
|
|
173
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
165
174
|
invalid_properties = Array.new
|
|
166
175
|
if @name.nil?
|
|
167
176
|
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
|
@@ -177,6 +186,7 @@ module PulpContainerClient
|
|
|
177
186
|
# Check to see if the all the properties in the model are valid
|
|
178
187
|
# @return true if the model is valid
|
|
179
188
|
def valid?
|
|
189
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
180
190
|
return false if @name.nil?
|
|
181
191
|
return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
|
182
192
|
true
|
|
@@ -227,37 +237,33 @@ module PulpContainerClient
|
|
|
227
237
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
228
238
|
# @return [Object] Returns the model itself
|
|
229
239
|
def self.build_from_hash(attributes)
|
|
230
|
-
new.build_from_hash(attributes)
|
|
231
|
-
end
|
|
232
|
-
|
|
233
|
-
# Builds the object from hash
|
|
234
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
|
235
|
-
# @return [Object] Returns the model itself
|
|
236
|
-
def build_from_hash(attributes)
|
|
237
240
|
return nil unless attributes.is_a?(Hash)
|
|
238
|
-
|
|
239
|
-
|
|
241
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
242
|
+
transformed_hash = {}
|
|
243
|
+
openapi_types.each_pair do |key, type|
|
|
244
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
245
|
+
transformed_hash["#{key}"] = nil
|
|
246
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
240
247
|
# check to ensure the input is an array given that the attribute
|
|
241
248
|
# is documented as an array but the input is not
|
|
242
|
-
if attributes[
|
|
243
|
-
|
|
249
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
250
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
244
251
|
end
|
|
245
|
-
elsif !attributes[
|
|
246
|
-
|
|
247
|
-
end
|
|
252
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
253
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
254
|
+
end
|
|
248
255
|
end
|
|
249
|
-
|
|
250
|
-
self
|
|
256
|
+
new(transformed_hash)
|
|
251
257
|
end
|
|
252
258
|
|
|
253
259
|
# Deserializes the data based on type
|
|
254
260
|
# @param string type Data type
|
|
255
261
|
# @param string value Value to be deserialized
|
|
256
262
|
# @return [Object] Deserialized data
|
|
257
|
-
def _deserialize(type, value)
|
|
263
|
+
def self._deserialize(type, value)
|
|
258
264
|
case type.to_sym
|
|
259
|
-
when :
|
|
260
|
-
|
|
265
|
+
when :Time
|
|
266
|
+
Time.parse(value)
|
|
261
267
|
when :Date
|
|
262
268
|
Date.parse(value)
|
|
263
269
|
when :String
|
|
@@ -287,7 +293,9 @@ module PulpContainerClient
|
|
|
287
293
|
end
|
|
288
294
|
end
|
|
289
295
|
else # model
|
|
290
|
-
|
|
296
|
+
# models (e.g. Pet) or oneOf
|
|
297
|
+
klass = PulpContainerClient.const_get(type)
|
|
298
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
291
299
|
end
|
|
292
300
|
end
|
|
293
301
|
|
|
@@ -313,7 +321,7 @@ module PulpContainerClient
|
|
|
313
321
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
314
322
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
315
323
|
end
|
|
316
|
-
|
|
324
|
+
|
|
317
325
|
hash[param] = _to_hash(value)
|
|
318
326
|
end
|
|
319
327
|
hash
|
|
@@ -336,5 +344,7 @@ module PulpContainerClient
|
|
|
336
344
|
value
|
|
337
345
|
end
|
|
338
346
|
end
|
|
347
|
+
|
|
339
348
|
end
|
|
349
|
+
|
|
340
350
|
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 Manifests.
|
|
@@ -92,13 +93,18 @@ module PulpContainerClient
|
|
|
92
93
|
}
|
|
93
94
|
end
|
|
94
95
|
|
|
96
|
+
# Returns all the JSON keys this model knows about
|
|
97
|
+
def self.acceptable_attributes
|
|
98
|
+
attribute_map.values
|
|
99
|
+
end
|
|
100
|
+
|
|
95
101
|
# Attribute type mapping.
|
|
96
102
|
def self.openapi_types
|
|
97
103
|
{
|
|
98
104
|
:'pulp_href' => :'String',
|
|
99
105
|
:'prn' => :'String',
|
|
100
|
-
:'pulp_created' => :'
|
|
101
|
-
:'pulp_last_updated' => :'
|
|
106
|
+
:'pulp_created' => :'Time',
|
|
107
|
+
:'pulp_last_updated' => :'Time',
|
|
102
108
|
:'digest' => :'String',
|
|
103
109
|
:'schema_version' => :'Integer',
|
|
104
110
|
:'media_type' => :'String',
|
|
@@ -155,20 +161,28 @@ module PulpContainerClient
|
|
|
155
161
|
|
|
156
162
|
if attributes.key?(:'digest')
|
|
157
163
|
self.digest = attributes[:'digest']
|
|
164
|
+
else
|
|
165
|
+
self.digest = nil
|
|
158
166
|
end
|
|
159
167
|
|
|
160
168
|
if attributes.key?(:'schema_version')
|
|
161
169
|
self.schema_version = attributes[:'schema_version']
|
|
170
|
+
else
|
|
171
|
+
self.schema_version = nil
|
|
162
172
|
end
|
|
163
173
|
|
|
164
174
|
if attributes.key?(:'media_type')
|
|
165
175
|
self.media_type = attributes[:'media_type']
|
|
176
|
+
else
|
|
177
|
+
self.media_type = nil
|
|
166
178
|
end
|
|
167
179
|
|
|
168
180
|
if attributes.key?(:'listed_manifests')
|
|
169
181
|
if (value = attributes[:'listed_manifests']).is_a?(Array)
|
|
170
182
|
self.listed_manifests = value
|
|
171
183
|
end
|
|
184
|
+
else
|
|
185
|
+
self.listed_manifests = nil
|
|
172
186
|
end
|
|
173
187
|
|
|
174
188
|
if attributes.key?(:'config_blob')
|
|
@@ -179,6 +193,8 @@ module PulpContainerClient
|
|
|
179
193
|
if (value = attributes[:'blobs']).is_a?(Array)
|
|
180
194
|
self.blobs = value
|
|
181
195
|
end
|
|
196
|
+
else
|
|
197
|
+
self.blobs = nil
|
|
182
198
|
end
|
|
183
199
|
|
|
184
200
|
if attributes.key?(:'annotations')
|
|
@@ -221,6 +237,7 @@ module PulpContainerClient
|
|
|
221
237
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
222
238
|
# @return Array for valid properties with the reasons
|
|
223
239
|
def list_invalid_properties
|
|
240
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
224
241
|
invalid_properties = Array.new
|
|
225
242
|
if @digest.nil?
|
|
226
243
|
invalid_properties.push('invalid value for "digest", digest cannot be nil.')
|
|
@@ -248,6 +265,7 @@ module PulpContainerClient
|
|
|
248
265
|
# Check to see if the all the properties in the model are valid
|
|
249
266
|
# @return true if the model is valid
|
|
250
267
|
def valid?
|
|
268
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
251
269
|
return false if @digest.nil?
|
|
252
270
|
return false if @schema_version.nil?
|
|
253
271
|
return false if @media_type.nil?
|
|
@@ -297,37 +315,33 @@ module PulpContainerClient
|
|
|
297
315
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
298
316
|
# @return [Object] Returns the model itself
|
|
299
317
|
def self.build_from_hash(attributes)
|
|
300
|
-
new.build_from_hash(attributes)
|
|
301
|
-
end
|
|
302
|
-
|
|
303
|
-
# Builds the object from hash
|
|
304
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
|
305
|
-
# @return [Object] Returns the model itself
|
|
306
|
-
def build_from_hash(attributes)
|
|
307
318
|
return nil unless attributes.is_a?(Hash)
|
|
308
|
-
|
|
309
|
-
|
|
319
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
320
|
+
transformed_hash = {}
|
|
321
|
+
openapi_types.each_pair do |key, type|
|
|
322
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
323
|
+
transformed_hash["#{key}"] = nil
|
|
324
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
310
325
|
# check to ensure the input is an array given that the attribute
|
|
311
326
|
# is documented as an array but the input is not
|
|
312
|
-
if attributes[
|
|
313
|
-
|
|
327
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
328
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
314
329
|
end
|
|
315
|
-
elsif !attributes[
|
|
316
|
-
|
|
317
|
-
end
|
|
330
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
331
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
332
|
+
end
|
|
318
333
|
end
|
|
319
|
-
|
|
320
|
-
self
|
|
334
|
+
new(transformed_hash)
|
|
321
335
|
end
|
|
322
336
|
|
|
323
337
|
# Deserializes the data based on type
|
|
324
338
|
# @param string type Data type
|
|
325
339
|
# @param string value Value to be deserialized
|
|
326
340
|
# @return [Object] Deserialized data
|
|
327
|
-
def _deserialize(type, value)
|
|
341
|
+
def self._deserialize(type, value)
|
|
328
342
|
case type.to_sym
|
|
329
|
-
when :
|
|
330
|
-
|
|
343
|
+
when :Time
|
|
344
|
+
Time.parse(value)
|
|
331
345
|
when :Date
|
|
332
346
|
Date.parse(value)
|
|
333
347
|
when :String
|
|
@@ -357,7 +371,9 @@ module PulpContainerClient
|
|
|
357
371
|
end
|
|
358
372
|
end
|
|
359
373
|
else # model
|
|
360
|
-
|
|
374
|
+
# models (e.g. Pet) or oneOf
|
|
375
|
+
klass = PulpContainerClient.const_get(type)
|
|
376
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
361
377
|
end
|
|
362
378
|
end
|
|
363
379
|
|
|
@@ -383,7 +399,7 @@ module PulpContainerClient
|
|
|
383
399
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
384
400
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
385
401
|
end
|
|
386
|
-
|
|
402
|
+
|
|
387
403
|
hash[param] = _to_hash(value)
|
|
388
404
|
end
|
|
389
405
|
hash
|
|
@@ -406,5 +422,7 @@ module PulpContainerClient
|
|
|
406
422
|
value
|
|
407
423
|
end
|
|
408
424
|
end
|
|
425
|
+
|
|
409
426
|
end
|
|
427
|
+
|
|
410
428
|
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 image manifest signatures.
|
|
@@ -64,13 +65,18 @@ module PulpContainerClient
|
|
|
64
65
|
}
|
|
65
66
|
end
|
|
66
67
|
|
|
68
|
+
# Returns all the JSON keys this model knows about
|
|
69
|
+
def self.acceptable_attributes
|
|
70
|
+
attribute_map.values
|
|
71
|
+
end
|
|
72
|
+
|
|
67
73
|
# Attribute type mapping.
|
|
68
74
|
def self.openapi_types
|
|
69
75
|
{
|
|
70
76
|
:'pulp_href' => :'String',
|
|
71
77
|
:'prn' => :'String',
|
|
72
|
-
:'pulp_created' => :'
|
|
73
|
-
:'pulp_last_updated' => :'
|
|
78
|
+
:'pulp_created' => :'Time',
|
|
79
|
+
:'pulp_last_updated' => :'Time',
|
|
74
80
|
:'name' => :'String',
|
|
75
81
|
:'digest' => :'String',
|
|
76
82
|
:'type' => :'String',
|
|
@@ -120,36 +126,51 @@ module PulpContainerClient
|
|
|
120
126
|
|
|
121
127
|
if attributes.key?(:'name')
|
|
122
128
|
self.name = attributes[:'name']
|
|
129
|
+
else
|
|
130
|
+
self.name = nil
|
|
123
131
|
end
|
|
124
132
|
|
|
125
133
|
if attributes.key?(:'digest')
|
|
126
134
|
self.digest = attributes[:'digest']
|
|
135
|
+
else
|
|
136
|
+
self.digest = nil
|
|
127
137
|
end
|
|
128
138
|
|
|
129
139
|
if attributes.key?(:'type')
|
|
130
140
|
self.type = attributes[:'type']
|
|
141
|
+
else
|
|
142
|
+
self.type = nil
|
|
131
143
|
end
|
|
132
144
|
|
|
133
145
|
if attributes.key?(:'key_id')
|
|
134
146
|
self.key_id = attributes[:'key_id']
|
|
147
|
+
else
|
|
148
|
+
self.key_id = nil
|
|
135
149
|
end
|
|
136
150
|
|
|
137
151
|
if attributes.key?(:'timestamp')
|
|
138
152
|
self.timestamp = attributes[:'timestamp']
|
|
153
|
+
else
|
|
154
|
+
self.timestamp = nil
|
|
139
155
|
end
|
|
140
156
|
|
|
141
157
|
if attributes.key?(:'creator')
|
|
142
158
|
self.creator = attributes[:'creator']
|
|
159
|
+
else
|
|
160
|
+
self.creator = nil
|
|
143
161
|
end
|
|
144
162
|
|
|
145
163
|
if attributes.key?(:'signed_manifest')
|
|
146
164
|
self.signed_manifest = attributes[:'signed_manifest']
|
|
165
|
+
else
|
|
166
|
+
self.signed_manifest = nil
|
|
147
167
|
end
|
|
148
168
|
end
|
|
149
169
|
|
|
150
170
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
151
171
|
# @return Array for valid properties with the reasons
|
|
152
172
|
def list_invalid_properties
|
|
173
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
153
174
|
invalid_properties = Array.new
|
|
154
175
|
if @name.nil?
|
|
155
176
|
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
|
@@ -185,6 +206,7 @@ module PulpContainerClient
|
|
|
185
206
|
# Check to see if the all the properties in the model are valid
|
|
186
207
|
# @return true if the model is valid
|
|
187
208
|
def valid?
|
|
209
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
188
210
|
return false if @name.nil?
|
|
189
211
|
return false if @digest.nil?
|
|
190
212
|
return false if @type.nil?
|
|
@@ -229,37 +251,33 @@ module PulpContainerClient
|
|
|
229
251
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
230
252
|
# @return [Object] Returns the model itself
|
|
231
253
|
def self.build_from_hash(attributes)
|
|
232
|
-
new.build_from_hash(attributes)
|
|
233
|
-
end
|
|
234
|
-
|
|
235
|
-
# Builds the object from hash
|
|
236
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
|
237
|
-
# @return [Object] Returns the model itself
|
|
238
|
-
def build_from_hash(attributes)
|
|
239
254
|
return nil unless attributes.is_a?(Hash)
|
|
240
|
-
|
|
241
|
-
|
|
255
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
256
|
+
transformed_hash = {}
|
|
257
|
+
openapi_types.each_pair do |key, type|
|
|
258
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
259
|
+
transformed_hash["#{key}"] = nil
|
|
260
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
242
261
|
# check to ensure the input is an array given that the attribute
|
|
243
262
|
# is documented as an array but the input is not
|
|
244
|
-
if attributes[
|
|
245
|
-
|
|
263
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
264
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
246
265
|
end
|
|
247
|
-
elsif !attributes[
|
|
248
|
-
|
|
249
|
-
end
|
|
266
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
267
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
268
|
+
end
|
|
250
269
|
end
|
|
251
|
-
|
|
252
|
-
self
|
|
270
|
+
new(transformed_hash)
|
|
253
271
|
end
|
|
254
272
|
|
|
255
273
|
# Deserializes the data based on type
|
|
256
274
|
# @param string type Data type
|
|
257
275
|
# @param string value Value to be deserialized
|
|
258
276
|
# @return [Object] Deserialized data
|
|
259
|
-
def _deserialize(type, value)
|
|
277
|
+
def self._deserialize(type, value)
|
|
260
278
|
case type.to_sym
|
|
261
|
-
when :
|
|
262
|
-
|
|
279
|
+
when :Time
|
|
280
|
+
Time.parse(value)
|
|
263
281
|
when :Date
|
|
264
282
|
Date.parse(value)
|
|
265
283
|
when :String
|
|
@@ -289,7 +307,9 @@ module PulpContainerClient
|
|
|
289
307
|
end
|
|
290
308
|
end
|
|
291
309
|
else # model
|
|
292
|
-
|
|
310
|
+
# models (e.g. Pet) or oneOf
|
|
311
|
+
klass = PulpContainerClient.const_get(type)
|
|
312
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
293
313
|
end
|
|
294
314
|
end
|
|
295
315
|
|
|
@@ -315,7 +335,7 @@ module PulpContainerClient
|
|
|
315
335
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
316
336
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
317
337
|
end
|
|
318
|
-
|
|
338
|
+
|
|
319
339
|
hash[param] = _to_hash(value)
|
|
320
340
|
end
|
|
321
341
|
hash
|
|
@@ -338,5 +358,7 @@ module PulpContainerClient
|
|
|
338
358
|
value
|
|
339
359
|
end
|
|
340
360
|
end
|
|
361
|
+
|
|
341
362
|
end
|
|
363
|
+
|
|
342
364
|
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 Container Sync.
|
|
@@ -33,6 +34,11 @@ module PulpContainerClient
|
|
|
33
34
|
}
|
|
34
35
|
end
|
|
35
36
|
|
|
37
|
+
# Returns all the JSON keys this model knows about
|
|
38
|
+
def self.acceptable_attributes
|
|
39
|
+
attribute_map.values
|
|
40
|
+
end
|
|
41
|
+
|
|
36
42
|
# Attribute type mapping.
|
|
37
43
|
def self.openapi_types
|
|
38
44
|
{
|
|
@@ -83,6 +89,7 @@ module PulpContainerClient
|
|
|
83
89
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
84
90
|
# @return Array for valid properties with the reasons
|
|
85
91
|
def list_invalid_properties
|
|
92
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
86
93
|
invalid_properties = Array.new
|
|
87
94
|
invalid_properties
|
|
88
95
|
end
|
|
@@ -90,6 +97,7 @@ module PulpContainerClient
|
|
|
90
97
|
# Check to see if the all the properties in the model are valid
|
|
91
98
|
# @return true if the model is valid
|
|
92
99
|
def valid?
|
|
100
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
93
101
|
true
|
|
94
102
|
end
|
|
95
103
|
|
|
@@ -119,37 +127,33 @@ module PulpContainerClient
|
|
|
119
127
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
120
128
|
# @return [Object] Returns the model itself
|
|
121
129
|
def self.build_from_hash(attributes)
|
|
122
|
-
new.build_from_hash(attributes)
|
|
123
|
-
end
|
|
124
|
-
|
|
125
|
-
# Builds the object from hash
|
|
126
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
|
127
|
-
# @return [Object] Returns the model itself
|
|
128
|
-
def build_from_hash(attributes)
|
|
129
130
|
return nil unless attributes.is_a?(Hash)
|
|
130
|
-
|
|
131
|
-
|
|
131
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
132
|
+
transformed_hash = {}
|
|
133
|
+
openapi_types.each_pair do |key, type|
|
|
134
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
135
|
+
transformed_hash["#{key}"] = nil
|
|
136
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
132
137
|
# check to ensure the input is an array given that the attribute
|
|
133
138
|
# is documented as an array but the input is not
|
|
134
|
-
if attributes[
|
|
135
|
-
|
|
139
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
140
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
136
141
|
end
|
|
137
|
-
elsif !attributes[
|
|
138
|
-
|
|
139
|
-
end
|
|
142
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
143
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
144
|
+
end
|
|
140
145
|
end
|
|
141
|
-
|
|
142
|
-
self
|
|
146
|
+
new(transformed_hash)
|
|
143
147
|
end
|
|
144
148
|
|
|
145
149
|
# Deserializes the data based on type
|
|
146
150
|
# @param string type Data type
|
|
147
151
|
# @param string value Value to be deserialized
|
|
148
152
|
# @return [Object] Deserialized data
|
|
149
|
-
def _deserialize(type, value)
|
|
153
|
+
def self._deserialize(type, value)
|
|
150
154
|
case type.to_sym
|
|
151
|
-
when :
|
|
152
|
-
|
|
155
|
+
when :Time
|
|
156
|
+
Time.parse(value)
|
|
153
157
|
when :Date
|
|
154
158
|
Date.parse(value)
|
|
155
159
|
when :String
|
|
@@ -179,7 +183,9 @@ module PulpContainerClient
|
|
|
179
183
|
end
|
|
180
184
|
end
|
|
181
185
|
else # model
|
|
182
|
-
|
|
186
|
+
# models (e.g. Pet) or oneOf
|
|
187
|
+
klass = PulpContainerClient.const_get(type)
|
|
188
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
183
189
|
end
|
|
184
190
|
end
|
|
185
191
|
|
|
@@ -205,7 +211,7 @@ module PulpContainerClient
|
|
|
205
211
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
206
212
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
207
213
|
end
|
|
208
|
-
|
|
214
|
+
|
|
209
215
|
hash[param] = _to_hash(value)
|
|
210
216
|
end
|
|
211
217
|
hash
|
|
@@ -228,5 +234,7 @@ module PulpContainerClient
|
|
|
228
234
|
value
|
|
229
235
|
end
|
|
230
236
|
end
|
|
237
|
+
|
|
231
238
|
end
|
|
239
|
+
|
|
232
240
|
end
|