pulp_deb_client 3.5.0 → 3.5.2
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 +37 -9
- data/docs/AptRepositorySyncURL.md +12 -11
- data/docs/AsyncOperationResponse.md +8 -7
- data/docs/ContentGenericContentsApi.md +264 -64
- data/docs/ContentInstallerFileIndicesApi.md +259 -61
- data/docs/ContentInstallerPackagesApi.md +280 -80
- data/docs/ContentPackageIndicesApi.md +259 -61
- data/docs/ContentPackageReleaseComponentsApi.md +259 -61
- data/docs/ContentPackagesApi.md +294 -94
- data/docs/ContentReleaseArchitecturesApi.md +257 -59
- data/docs/ContentReleaseComponentsApi.md +258 -60
- data/docs/ContentReleaseFilesApi.md +259 -61
- data/docs/ContentReleasesApi.md +262 -64
- data/docs/ContentSourceIndicesApi.md +258 -60
- data/docs/ContentSourcePackagesApi.md +285 -87
- data/docs/ContentSourceReleaseComponentsApi.md +259 -61
- data/docs/ContentSummaryResponse.md +12 -11
- data/docs/Copy.md +12 -11
- data/docs/DebAptDistribution.md +20 -19
- data/docs/DebAptDistributionResponse.md +32 -31
- data/docs/DebAptPublication.md +18 -17
- data/docs/DebAptPublicationResponse.md +26 -25
- data/docs/DebAptRemote.md +64 -63
- data/docs/DebAptRemoteResponse.md +64 -63
- data/docs/DebAptRemoteResponseHiddenFieldsInner.md +20 -0
- data/docs/DebAptRepository.md +22 -21
- data/docs/DebAptRepositoryResponse.md +34 -33
- data/docs/DebCopyApi.md +30 -14
- data/docs/DebGenericContentResponse.md +32 -29
- data/docs/DebInstallerFileIndex.md +18 -15
- data/docs/DebInstallerFileIndexResponse.md +24 -21
- data/docs/DebInstallerPackageResponse.md +90 -87
- data/docs/DebPackageIndex.md +18 -15
- data/docs/DebPackageIndexResponse.md +24 -21
- data/docs/DebPackageReleaseComponent.md +14 -11
- data/docs/DebPackageReleaseComponentResponse.md +20 -17
- data/docs/DebPackageResponse.md +94 -91
- data/docs/DebRelease.md +28 -25
- data/docs/DebReleaseArchitecture.md +14 -11
- data/docs/DebReleaseArchitectureResponse.md +20 -17
- data/docs/DebReleaseComponent.md +14 -11
- data/docs/DebReleaseComponentResponse.md +22 -19
- data/docs/DebReleaseFile.md +20 -17
- data/docs/DebReleaseFileResponse.md +26 -23
- data/docs/DebReleaseResponse.md +34 -31
- data/docs/DebSourceIndex.md +18 -15
- data/docs/DebSourceIndexResponse.md +24 -21
- data/docs/DebSourcePackage.md +14 -11
- data/docs/DebSourcePackageReleaseComponent.md +14 -11
- data/docs/DebSourcePackageReleaseComponentResponse.md +20 -17
- data/docs/DebSourcePackageResponse.md +76 -73
- data/docs/DebVerbatimPublication.md +10 -9
- data/docs/DebVerbatimPublicationResponse.md +18 -17
- data/docs/DistributionsAptApi.md +387 -182
- 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/PaginateddebAptDistributionResponseList.md +14 -13
- data/docs/PaginateddebAptPublicationResponseList.md +14 -13
- data/docs/PaginateddebAptRemoteResponseList.md +14 -13
- data/docs/PaginateddebAptRepositoryResponseList.md +14 -13
- data/docs/PaginateddebGenericContentResponseList.md +14 -13
- data/docs/PaginateddebInstallerFileIndexResponseList.md +14 -13
- data/docs/PaginateddebInstallerPackageResponseList.md +14 -13
- data/docs/PaginateddebPackageIndexResponseList.md +14 -13
- data/docs/PaginateddebPackageReleaseComponentResponseList.md +14 -13
- data/docs/PaginateddebPackageResponseList.md +14 -13
- data/docs/PaginateddebReleaseArchitectureResponseList.md +14 -13
- data/docs/PaginateddebReleaseComponentResponseList.md +14 -13
- data/docs/PaginateddebReleaseFileResponseList.md +14 -13
- data/docs/PaginateddebReleaseResponseList.md +14 -13
- data/docs/PaginateddebSourceIndexResponseList.md +14 -13
- data/docs/PaginateddebSourcePackageReleaseComponentResponseList.md +14 -13
- data/docs/PaginateddebSourcePackageResponseList.md +14 -13
- data/docs/PaginateddebVerbatimPublicationResponseList.md +14 -13
- data/docs/PatcheddebAptDistribution.md +20 -19
- data/docs/PatcheddebAptRemote.md +64 -63
- data/docs/PatcheddebAptRepository.md +22 -21
- data/docs/PolicyEnum.md +4 -5
- data/docs/PublicationsAptApi.md +269 -130
- data/docs/PublicationsVerbatimApi.md +269 -130
- data/docs/RemotesAptApi.md +389 -184
- data/docs/Repair.md +8 -7
- data/docs/RepositoriesAptApi.md +444 -207
- data/docs/RepositoriesAptVersionsApi.md +152 -82
- data/docs/RepositoryAddRemoveContent.md +12 -11
- data/docs/RepositoryVersionResponse.md +22 -21
- data/docs/SetLabel.md +10 -9
- data/docs/SetLabelResponse.md +10 -9
- data/docs/UnsetLabel.md +8 -7
- data/docs/UnsetLabelResponse.md +10 -9
- data/lib/pulp_deb_client/api/content_generic_contents_api.rb +177 -17
- data/lib/pulp_deb_client/api/content_installer_file_indices_api.rb +174 -17
- data/lib/pulp_deb_client/api/content_installer_packages_api.rb +177 -25
- data/lib/pulp_deb_client/api/content_package_indices_api.rb +174 -17
- data/lib/pulp_deb_client/api/content_package_release_components_api.rb +174 -17
- data/lib/pulp_deb_client/api/content_packages_api.rb +177 -25
- data/lib/pulp_deb_client/api/content_release_architectures_api.rb +174 -17
- data/lib/pulp_deb_client/api/content_release_components_api.rb +174 -17
- data/lib/pulp_deb_client/api/content_release_files_api.rb +174 -17
- data/lib/pulp_deb_client/api/content_releases_api.rb +174 -17
- data/lib/pulp_deb_client/api/content_source_indices_api.rb +174 -17
- data/lib/pulp_deb_client/api/content_source_packages_api.rb +174 -17
- data/lib/pulp_deb_client/api/content_source_release_components_api.rb +174 -17
- data/lib/pulp_deb_client/api/deb_copy_api.rb +10 -6
- data/lib/pulp_deb_client/api/distributions_apt_api.rb +95 -59
- data/lib/pulp_deb_client/api/publications_apt_api.rb +73 -50
- data/lib/pulp_deb_client/api/publications_verbatim_api.rb +73 -50
- data/lib/pulp_deb_client/api/remotes_apt_api.rb +104 -68
- data/lib/pulp_deb_client/api/repositories_apt_api.rb +107 -66
- data/lib/pulp_deb_client/api/repositories_apt_versions_api.rb +40 -30
- data/lib/pulp_deb_client/api_client.rb +137 -102
- data/lib/pulp_deb_client/api_error.rb +2 -1
- data/lib/pulp_deb_client/configuration.rb +162 -21
- data/lib/pulp_deb_client/models/apt_repository_sync_url.rb +30 -22
- data/lib/pulp_deb_client/models/async_operation_response.rb +32 -22
- data/lib/pulp_deb_client/models/content_summary_response.rb +36 -22
- data/lib/pulp_deb_client/models/copy.rb +34 -28
- data/lib/pulp_deb_client/models/deb_apt_distribution.rb +34 -22
- data/lib/pulp_deb_client/models/deb_apt_distribution_response.rb +36 -24
- data/lib/pulp_deb_client/models/deb_apt_publication.rb +30 -22
- data/lib/pulp_deb_client/models/deb_apt_publication_response.rb +32 -24
- data/lib/pulp_deb_client/models/deb_apt_remote.rb +58 -22
- data/lib/pulp_deb_client/models/deb_apt_remote_response.rb +61 -25
- data/lib/pulp_deb_client/models/{deb_apt_remote_response_hidden_fields.rb → deb_apt_remote_response_hidden_fields_inner.rb} +37 -25
- data/lib/pulp_deb_client/models/deb_apt_repository.rb +32 -22
- data/lib/pulp_deb_client/models/deb_apt_repository_response.rb +34 -24
- data/lib/pulp_deb_client/models/deb_generic_content_response.rb +47 -25
- data/lib/pulp_deb_client/models/deb_installer_file_index.rb +54 -24
- data/lib/pulp_deb_client/models/deb_installer_file_index_response.rb +51 -25
- data/lib/pulp_deb_client/models/deb_installer_package_response.rb +45 -25
- data/lib/pulp_deb_client/models/deb_package_index.rb +60 -26
- data/lib/pulp_deb_client/models/deb_package_index_response.rb +47 -25
- data/lib/pulp_deb_client/models/deb_package_release_component.rb +47 -23
- data/lib/pulp_deb_client/models/deb_package_release_component_response.rb +49 -25
- data/lib/pulp_deb_client/models/deb_package_response.rb +45 -25
- data/lib/pulp_deb_client/models/deb_release.rb +49 -23
- data/lib/pulp_deb_client/models/deb_release_architecture.rb +47 -23
- data/lib/pulp_deb_client/models/deb_release_architecture_response.rb +49 -25
- data/lib/pulp_deb_client/models/deb_release_component.rb +47 -23
- data/lib/pulp_deb_client/models/deb_release_component_response.rb +49 -25
- data/lib/pulp_deb_client/models/deb_release_file.rb +62 -26
- data/lib/pulp_deb_client/models/deb_release_file_response.rb +49 -25
- data/lib/pulp_deb_client/models/deb_release_response.rb +51 -25
- data/lib/pulp_deb_client/models/deb_source_index.rb +54 -24
- data/lib/pulp_deb_client/models/deb_source_index_response.rb +51 -25
- data/lib/pulp_deb_client/models/deb_source_package.rb +50 -24
- data/lib/pulp_deb_client/models/deb_source_package_release_component.rb +47 -23
- data/lib/pulp_deb_client/models/deb_source_package_release_component_response.rb +49 -25
- data/lib/pulp_deb_client/models/deb_source_package_response.rb +47 -25
- data/lib/pulp_deb_client/models/deb_verbatim_publication.rb +30 -22
- data/lib/pulp_deb_client/models/deb_verbatim_publication_response.rb +32 -24
- data/lib/pulp_deb_client/models/my_permissions_response.rb +32 -22
- data/lib/pulp_deb_client/models/nested_role.rb +32 -22
- data/lib/pulp_deb_client/models/nested_role_response.rb +32 -22
- data/lib/pulp_deb_client/models/object_roles_response.rb +32 -22
- data/lib/pulp_deb_client/models/paginated_repository_version_response_list.rb +34 -22
- data/lib/pulp_deb_client/models/paginateddeb_apt_distribution_response_list.rb +34 -22
- data/lib/pulp_deb_client/models/paginateddeb_apt_publication_response_list.rb +34 -22
- data/lib/pulp_deb_client/models/paginateddeb_apt_remote_response_list.rb +34 -22
- data/lib/pulp_deb_client/models/paginateddeb_apt_repository_response_list.rb +34 -22
- data/lib/pulp_deb_client/models/paginateddeb_generic_content_response_list.rb +34 -22
- data/lib/pulp_deb_client/models/paginateddeb_installer_file_index_response_list.rb +34 -22
- data/lib/pulp_deb_client/models/paginateddeb_installer_package_response_list.rb +34 -22
- data/lib/pulp_deb_client/models/paginateddeb_package_index_response_list.rb +34 -22
- data/lib/pulp_deb_client/models/paginateddeb_package_release_component_response_list.rb +34 -22
- data/lib/pulp_deb_client/models/paginateddeb_package_response_list.rb +34 -22
- data/lib/pulp_deb_client/models/paginateddeb_release_architecture_response_list.rb +34 -22
- data/lib/pulp_deb_client/models/paginateddeb_release_component_response_list.rb +34 -22
- data/lib/pulp_deb_client/models/paginateddeb_release_file_response_list.rb +34 -22
- data/lib/pulp_deb_client/models/paginateddeb_release_response_list.rb +34 -22
- data/lib/pulp_deb_client/models/paginateddeb_source_index_response_list.rb +34 -22
- data/lib/pulp_deb_client/models/paginateddeb_source_package_release_component_response_list.rb +34 -22
- data/lib/pulp_deb_client/models/paginateddeb_source_package_response_list.rb +34 -22
- data/lib/pulp_deb_client/models/paginateddeb_verbatim_publication_response_list.rb +34 -22
- data/lib/pulp_deb_client/models/patcheddeb_apt_distribution.rb +40 -24
- data/lib/pulp_deb_client/models/patcheddeb_apt_remote.rb +67 -25
- data/lib/pulp_deb_client/models/patcheddeb_apt_repository.rb +35 -23
- data/lib/pulp_deb_client/models/policy_enum.rb +8 -4
- data/lib/pulp_deb_client/models/repair.rb +30 -22
- data/lib/pulp_deb_client/models/repository_add_remove_content.rb +30 -22
- data/lib/pulp_deb_client/models/repository_version_response.rb +32 -24
- data/lib/pulp_deb_client/models/set_label.rb +34 -22
- data/lib/pulp_deb_client/models/set_label_response.rb +34 -22
- data/lib/pulp_deb_client/models/unset_label.rb +33 -23
- data/lib/pulp_deb_client/models/unset_label_response.rb +33 -23
- data/lib/pulp_deb_client/version.rb +2 -2
- data/lib/pulp_deb_client.rb +2 -5
- data/pulp_deb_client.gemspec +7 -5
- data/spec/api/content_generic_contents_api_spec.rb +33 -5
- data/spec/api/content_installer_file_indices_api_spec.rb +32 -5
- data/spec/api/content_installer_packages_api_spec.rb +33 -5
- data/spec/api/content_package_indices_api_spec.rb +32 -5
- data/spec/api/content_package_release_components_api_spec.rb +32 -5
- data/spec/api/content_packages_api_spec.rb +33 -5
- data/spec/api/content_release_architectures_api_spec.rb +32 -5
- data/spec/api/content_release_components_api_spec.rb +32 -5
- data/spec/api/content_release_files_api_spec.rb +32 -5
- data/spec/api/content_releases_api_spec.rb +32 -5
- data/spec/api/content_source_indices_api_spec.rb +32 -5
- data/spec/api/content_source_packages_api_spec.rb +32 -5
- data/spec/api/content_source_release_components_api_spec.rb +32 -5
- data/spec/api/deb_copy_api_spec.rb +2 -2
- data/spec/api/distributions_apt_api_spec.rb +15 -14
- data/spec/api/publications_apt_api_spec.rb +18 -16
- data/spec/api/publications_verbatim_api_spec.rb +18 -16
- data/spec/api/remotes_apt_api_spec.rb +20 -19
- data/spec/api/repositories_apt_api_spec.rb +15 -15
- data/spec/api/repositories_apt_versions_api_spec.rb +12 -11
- data/spec/models/apt_repository_sync_url_spec.rb +9 -14
- data/spec/models/async_operation_response_spec.rb +7 -12
- data/spec/models/content_summary_response_spec.rb +9 -14
- data/spec/models/copy_spec.rb +9 -14
- data/spec/models/deb_apt_distribution_response_spec.rb +19 -24
- data/spec/models/deb_apt_distribution_spec.rb +13 -18
- data/spec/models/deb_apt_publication_response_spec.rb +16 -21
- data/spec/models/deb_apt_publication_spec.rb +12 -17
- data/spec/models/{deb_apt_remote_response_hidden_fields_spec.rb → deb_apt_remote_response_hidden_fields_inner_spec.rb} +11 -16
- data/spec/models/deb_apt_remote_response_spec.rb +35 -40
- data/spec/models/deb_apt_remote_spec.rb +35 -40
- data/spec/models/deb_apt_repository_response_spec.rb +20 -25
- data/spec/models/deb_apt_repository_spec.rb +14 -19
- data/spec/models/deb_generic_content_response_spec.rb +24 -23
- data/spec/models/deb_installer_file_index_response_spec.rb +20 -19
- data/spec/models/deb_installer_file_index_spec.rb +17 -16
- data/spec/models/deb_installer_package_response_spec.rb +53 -52
- data/spec/models/deb_package_index_response_spec.rb +20 -19
- data/spec/models/deb_package_index_spec.rb +17 -16
- data/spec/models/deb_package_release_component_response_spec.rb +18 -17
- data/spec/models/deb_package_release_component_spec.rb +15 -14
- data/spec/models/deb_package_response_spec.rb +55 -54
- data/spec/models/deb_release_architecture_response_spec.rb +18 -17
- data/spec/models/deb_release_architecture_spec.rb +15 -14
- data/spec/models/deb_release_component_response_spec.rb +19 -18
- data/spec/models/deb_release_component_spec.rb +15 -14
- data/spec/models/deb_release_file_response_spec.rb +21 -20
- data/spec/models/deb_release_file_spec.rb +18 -17
- data/spec/models/deb_release_response_spec.rb +25 -24
- data/spec/models/deb_release_spec.rb +22 -21
- data/spec/models/deb_source_index_response_spec.rb +20 -19
- data/spec/models/deb_source_index_spec.rb +17 -16
- data/spec/models/deb_source_package_release_component_response_spec.rb +18 -17
- data/spec/models/deb_source_package_release_component_spec.rb +15 -14
- data/spec/models/deb_source_package_response_spec.rb +46 -45
- data/spec/models/deb_source_package_spec.rb +15 -14
- data/spec/models/deb_verbatim_publication_response_spec.rb +12 -17
- data/spec/models/deb_verbatim_publication_spec.rb +8 -13
- 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/paginateddeb_apt_distribution_response_list_spec.rb +10 -15
- data/spec/models/paginateddeb_apt_publication_response_list_spec.rb +10 -15
- data/spec/models/paginateddeb_apt_remote_response_list_spec.rb +10 -15
- data/spec/models/paginateddeb_apt_repository_response_list_spec.rb +10 -15
- data/spec/models/paginateddeb_generic_content_response_list_spec.rb +10 -15
- data/spec/models/paginateddeb_installer_file_index_response_list_spec.rb +10 -15
- data/spec/models/paginateddeb_installer_package_response_list_spec.rb +10 -15
- data/spec/models/paginateddeb_package_index_response_list_spec.rb +10 -15
- data/spec/models/paginateddeb_package_release_component_response_list_spec.rb +10 -15
- data/spec/models/paginateddeb_package_response_list_spec.rb +10 -15
- data/spec/models/paginateddeb_release_architecture_response_list_spec.rb +10 -15
- data/spec/models/paginateddeb_release_component_response_list_spec.rb +10 -15
- data/spec/models/paginateddeb_release_file_response_list_spec.rb +10 -15
- data/spec/models/paginateddeb_release_response_list_spec.rb +10 -15
- data/spec/models/paginateddeb_source_index_response_list_spec.rb +10 -15
- data/spec/models/paginateddeb_source_package_release_component_response_list_spec.rb +10 -15
- data/spec/models/paginateddeb_source_package_response_list_spec.rb +10 -15
- data/spec/models/paginateddeb_verbatim_publication_response_list_spec.rb +10 -15
- data/spec/models/patcheddeb_apt_distribution_spec.rb +13 -18
- data/spec/models/patcheddeb_apt_remote_spec.rb +35 -40
- data/spec/models/patcheddeb_apt_repository_spec.rb +14 -19
- data/spec/models/policy_enum_spec.rb +6 -11
- data/spec/models/repair_spec.rb +7 -12
- data/spec/models/repository_add_remove_content_spec.rb +9 -14
- data/spec/models/repository_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/unset_label_response_spec.rb +8 -13
- data/spec/models/unset_label_spec.rb +7 -12
- data/spec/spec_helper.rb +1 -1
- metadata +92 -100
- data/docs/DebAptRemoteResponseHiddenFields.md +0 -19
- data/docs/DebGenericContent.md +0 -27
- data/docs/DebInstallerPackage.md +0 -27
- data/docs/DebPackage.md +0 -31
- data/lib/pulp_deb_client/models/deb_generic_content.rb +0 -297
- data/lib/pulp_deb_client/models/deb_installer_package.rb +0 -288
- data/lib/pulp_deb_client/models/deb_package.rb +0 -338
- data/spec/api_client_spec.rb +0 -188
- data/spec/configuration_spec.rb +0 -42
- data/spec/models/deb_generic_content_spec.rb +0 -71
- data/spec/models/deb_installer_package_spec.rb +0 -71
- data/spec/models/deb_package_spec.rb +0 -83
@@ -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 PulpDebClient
|
16
17
|
# A Serializer for InstallerPackage.
|
@@ -26,6 +27,9 @@ module PulpDebClient
|
|
26
27
|
# Timestamp of the last time this resource was updated. Note: for immutable resources - like content, repository versions, and publication - pulp_created and pulp_last_updated dates will be the same.
|
27
28
|
attr_accessor :pulp_last_updated
|
28
29
|
|
30
|
+
# A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
|
31
|
+
attr_accessor :pulp_labels
|
32
|
+
|
29
33
|
# Artifact file representing the physical content
|
30
34
|
attr_accessor :artifact
|
31
35
|
|
@@ -115,6 +119,7 @@ module PulpDebClient
|
|
115
119
|
:'prn' => :'prn',
|
116
120
|
:'pulp_created' => :'pulp_created',
|
117
121
|
:'pulp_last_updated' => :'pulp_last_updated',
|
122
|
+
:'pulp_labels' => :'pulp_labels',
|
118
123
|
:'artifact' => :'artifact',
|
119
124
|
:'relative_path' => :'relative_path',
|
120
125
|
:'md5' => :'md5',
|
@@ -155,13 +160,19 @@ module PulpDebClient
|
|
155
160
|
}
|
156
161
|
end
|
157
162
|
|
163
|
+
# Returns all the JSON keys this model knows about
|
164
|
+
def self.acceptable_attributes
|
165
|
+
attribute_map.values
|
166
|
+
end
|
167
|
+
|
158
168
|
# Attribute type mapping.
|
159
169
|
def self.openapi_types
|
160
170
|
{
|
161
171
|
:'pulp_href' => :'String',
|
162
172
|
:'prn' => :'String',
|
163
|
-
:'pulp_created' => :'
|
164
|
-
:'pulp_last_updated' => :'
|
173
|
+
:'pulp_created' => :'Time',
|
174
|
+
:'pulp_last_updated' => :'Time',
|
175
|
+
:'pulp_labels' => :'Hash<String, String>',
|
165
176
|
:'artifact' => :'String',
|
166
177
|
:'relative_path' => :'String',
|
167
178
|
:'md5' => :'String',
|
@@ -239,6 +250,12 @@ module PulpDebClient
|
|
239
250
|
self.pulp_last_updated = attributes[:'pulp_last_updated']
|
240
251
|
end
|
241
252
|
|
253
|
+
if attributes.key?(:'pulp_labels')
|
254
|
+
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
255
|
+
self.pulp_labels = value
|
256
|
+
end
|
257
|
+
end
|
258
|
+
|
242
259
|
if attributes.key?(:'artifact')
|
243
260
|
self.artifact = attributes[:'artifact']
|
244
261
|
end
|
@@ -391,6 +408,7 @@ module PulpDebClient
|
|
391
408
|
# Show invalid properties with the reasons. Usually used together with valid?
|
392
409
|
# @return Array for valid properties with the reasons
|
393
410
|
def list_invalid_properties
|
411
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
394
412
|
invalid_properties = Array.new
|
395
413
|
invalid_properties
|
396
414
|
end
|
@@ -398,6 +416,7 @@ module PulpDebClient
|
|
398
416
|
# Check to see if the all the properties in the model are valid
|
399
417
|
# @return true if the model is valid
|
400
418
|
def valid?
|
419
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
401
420
|
true
|
402
421
|
end
|
403
422
|
|
@@ -410,6 +429,7 @@ module PulpDebClient
|
|
410
429
|
prn == o.prn &&
|
411
430
|
pulp_created == o.pulp_created &&
|
412
431
|
pulp_last_updated == o.pulp_last_updated &&
|
432
|
+
pulp_labels == o.pulp_labels &&
|
413
433
|
artifact == o.artifact &&
|
414
434
|
relative_path == o.relative_path &&
|
415
435
|
md5 == o.md5 &&
|
@@ -458,44 +478,40 @@ module PulpDebClient
|
|
458
478
|
# Calculates hash code according to all attributes.
|
459
479
|
# @return [Integer] Hash code
|
460
480
|
def hash
|
461
|
-
[pulp_href, prn, pulp_created, pulp_last_updated, artifact, relative_path, md5, sha1, sha224, sha256, sha384, sha512, package, source, version, architecture, section, priority, origin, tag, bugs, essential, build_essential, installed_size, maintainer, original_maintainer, description, description_md5, homepage, built_using, auto_built_package, multi_arch, breaks, conflicts, depends, recommends, suggests, enhances, pre_depends, provides, replaces].hash
|
481
|
+
[pulp_href, prn, pulp_created, pulp_last_updated, pulp_labels, artifact, relative_path, md5, sha1, sha224, sha256, sha384, sha512, package, source, version, architecture, section, priority, origin, tag, bugs, essential, build_essential, installed_size, maintainer, original_maintainer, description, description_md5, homepage, built_using, auto_built_package, multi_arch, breaks, conflicts, depends, recommends, suggests, enhances, pre_depends, provides, replaces].hash
|
462
482
|
end
|
463
483
|
|
464
484
|
# Builds the object from hash
|
465
485
|
# @param [Hash] attributes Model attributes in the form of hash
|
466
486
|
# @return [Object] Returns the model itself
|
467
487
|
def self.build_from_hash(attributes)
|
468
|
-
new.build_from_hash(attributes)
|
469
|
-
end
|
470
|
-
|
471
|
-
# Builds the object from hash
|
472
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
473
|
-
# @return [Object] Returns the model itself
|
474
|
-
def build_from_hash(attributes)
|
475
488
|
return nil unless attributes.is_a?(Hash)
|
476
|
-
|
477
|
-
|
489
|
+
attributes = attributes.transform_keys(&:to_sym)
|
490
|
+
transformed_hash = {}
|
491
|
+
openapi_types.each_pair do |key, type|
|
492
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
493
|
+
transformed_hash["#{key}"] = nil
|
494
|
+
elsif type =~ /\AArray<(.*)>/i
|
478
495
|
# check to ensure the input is an array given that the attribute
|
479
496
|
# is documented as an array but the input is not
|
480
|
-
if attributes[
|
481
|
-
|
497
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
498
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
482
499
|
end
|
483
|
-
elsif !attributes[
|
484
|
-
|
485
|
-
end
|
500
|
+
elsif !attributes[attribute_map[key]].nil?
|
501
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
502
|
+
end
|
486
503
|
end
|
487
|
-
|
488
|
-
self
|
504
|
+
new(transformed_hash)
|
489
505
|
end
|
490
506
|
|
491
507
|
# Deserializes the data based on type
|
492
508
|
# @param string type Data type
|
493
509
|
# @param string value Value to be deserialized
|
494
510
|
# @return [Object] Deserialized data
|
495
|
-
def _deserialize(type, value)
|
511
|
+
def self._deserialize(type, value)
|
496
512
|
case type.to_sym
|
497
|
-
when :
|
498
|
-
|
513
|
+
when :Time
|
514
|
+
Time.parse(value)
|
499
515
|
when :Date
|
500
516
|
Date.parse(value)
|
501
517
|
when :String
|
@@ -525,7 +541,9 @@ module PulpDebClient
|
|
525
541
|
end
|
526
542
|
end
|
527
543
|
else # model
|
528
|
-
|
544
|
+
# models (e.g. Pet) or oneOf
|
545
|
+
klass = PulpDebClient.const_get(type)
|
546
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
529
547
|
end
|
530
548
|
end
|
531
549
|
|
@@ -551,7 +569,7 @@ module PulpDebClient
|
|
551
569
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
552
570
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
553
571
|
end
|
554
|
-
|
572
|
+
|
555
573
|
hash[param] = _to_hash(value)
|
556
574
|
end
|
557
575
|
hash
|
@@ -574,5 +592,7 @@ module PulpDebClient
|
|
574
592
|
value
|
575
593
|
end
|
576
594
|
end
|
595
|
+
|
577
596
|
end
|
597
|
+
|
578
598
|
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 PulpDebClient
|
16
17
|
# A serializer for PackageIndex.
|
@@ -18,6 +19,9 @@ module PulpDebClient
|
|
18
19
|
# A URI of a repository the new content unit should be associated with.
|
19
20
|
attr_accessor :repository
|
20
21
|
|
22
|
+
# A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
|
23
|
+
attr_accessor :pulp_labels
|
24
|
+
|
21
25
|
# A dict mapping relative paths inside the Content to the correspondingArtifact URLs. E.g.: {'relative/path': '/artifacts/1/'
|
22
26
|
attr_accessor :artifacts
|
23
27
|
|
@@ -34,6 +38,7 @@ module PulpDebClient
|
|
34
38
|
def self.attribute_map
|
35
39
|
{
|
36
40
|
:'repository' => :'repository',
|
41
|
+
:'pulp_labels' => :'pulp_labels',
|
37
42
|
:'artifacts' => :'artifacts',
|
38
43
|
:'component' => :'component',
|
39
44
|
:'architecture' => :'architecture',
|
@@ -41,10 +46,16 @@ module PulpDebClient
|
|
41
46
|
}
|
42
47
|
end
|
43
48
|
|
49
|
+
# Returns all the JSON keys this model knows about
|
50
|
+
def self.acceptable_attributes
|
51
|
+
attribute_map.values
|
52
|
+
end
|
53
|
+
|
44
54
|
# Attribute type mapping.
|
45
55
|
def self.openapi_types
|
46
56
|
{
|
47
57
|
:'repository' => :'String',
|
58
|
+
:'pulp_labels' => :'Hash<String, String>',
|
48
59
|
:'artifacts' => :'Object',
|
49
60
|
:'component' => :'String',
|
50
61
|
:'architecture' => :'String',
|
@@ -77,8 +88,16 @@ module PulpDebClient
|
|
77
88
|
self.repository = attributes[:'repository']
|
78
89
|
end
|
79
90
|
|
91
|
+
if attributes.key?(:'pulp_labels')
|
92
|
+
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
93
|
+
self.pulp_labels = value
|
94
|
+
end
|
95
|
+
end
|
96
|
+
|
80
97
|
if attributes.key?(:'artifacts')
|
81
98
|
self.artifacts = attributes[:'artifacts']
|
99
|
+
else
|
100
|
+
self.artifacts = nil
|
82
101
|
end
|
83
102
|
|
84
103
|
if attributes.key?(:'component')
|
@@ -97,6 +116,7 @@ module PulpDebClient
|
|
97
116
|
# Show invalid properties with the reasons. Usually used together with valid?
|
98
117
|
# @return Array for valid properties with the reasons
|
99
118
|
def list_invalid_properties
|
119
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
100
120
|
invalid_properties = Array.new
|
101
121
|
if @artifacts.nil?
|
102
122
|
invalid_properties.push('invalid value for "artifacts", artifacts cannot be nil.')
|
@@ -120,6 +140,7 @@ module PulpDebClient
|
|
120
140
|
# Check to see if the all the properties in the model are valid
|
121
141
|
# @return true if the model is valid
|
122
142
|
def valid?
|
143
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
123
144
|
return false if @artifacts.nil?
|
124
145
|
return false if !@component.nil? && @component.to_s.length < 1
|
125
146
|
return false if !@architecture.nil? && @architecture.to_s.length < 1
|
@@ -130,7 +151,11 @@ module PulpDebClient
|
|
130
151
|
# Custom attribute writer method with validation
|
131
152
|
# @param [Object] component Value to be assigned
|
132
153
|
def component=(component)
|
133
|
-
if
|
154
|
+
if component.nil?
|
155
|
+
fail ArgumentError, 'component cannot be nil'
|
156
|
+
end
|
157
|
+
|
158
|
+
if component.to_s.length < 1
|
134
159
|
fail ArgumentError, 'invalid value for "component", the character length must be great than or equal to 1.'
|
135
160
|
end
|
136
161
|
|
@@ -140,7 +165,11 @@ module PulpDebClient
|
|
140
165
|
# Custom attribute writer method with validation
|
141
166
|
# @param [Object] architecture Value to be assigned
|
142
167
|
def architecture=(architecture)
|
143
|
-
if
|
168
|
+
if architecture.nil?
|
169
|
+
fail ArgumentError, 'architecture cannot be nil'
|
170
|
+
end
|
171
|
+
|
172
|
+
if architecture.to_s.length < 1
|
144
173
|
fail ArgumentError, 'invalid value for "architecture", the character length must be great than or equal to 1.'
|
145
174
|
end
|
146
175
|
|
@@ -150,7 +179,11 @@ module PulpDebClient
|
|
150
179
|
# Custom attribute writer method with validation
|
151
180
|
# @param [Object] relative_path Value to be assigned
|
152
181
|
def relative_path=(relative_path)
|
153
|
-
if
|
182
|
+
if relative_path.nil?
|
183
|
+
fail ArgumentError, 'relative_path cannot be nil'
|
184
|
+
end
|
185
|
+
|
186
|
+
if relative_path.to_s.length < 1
|
154
187
|
fail ArgumentError, 'invalid value for "relative_path", the character length must be great than or equal to 1.'
|
155
188
|
end
|
156
189
|
|
@@ -163,6 +196,7 @@ module PulpDebClient
|
|
163
196
|
return true if self.equal?(o)
|
164
197
|
self.class == o.class &&
|
165
198
|
repository == o.repository &&
|
199
|
+
pulp_labels == o.pulp_labels &&
|
166
200
|
artifacts == o.artifacts &&
|
167
201
|
component == o.component &&
|
168
202
|
architecture == o.architecture &&
|
@@ -178,44 +212,40 @@ module PulpDebClient
|
|
178
212
|
# Calculates hash code according to all attributes.
|
179
213
|
# @return [Integer] Hash code
|
180
214
|
def hash
|
181
|
-
[repository, artifacts, component, architecture, relative_path].hash
|
215
|
+
[repository, pulp_labels, artifacts, component, architecture, relative_path].hash
|
182
216
|
end
|
183
217
|
|
184
218
|
# Builds the object from hash
|
185
219
|
# @param [Hash] attributes Model attributes in the form of hash
|
186
220
|
# @return [Object] Returns the model itself
|
187
221
|
def self.build_from_hash(attributes)
|
188
|
-
new.build_from_hash(attributes)
|
189
|
-
end
|
190
|
-
|
191
|
-
# Builds the object from hash
|
192
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
193
|
-
# @return [Object] Returns the model itself
|
194
|
-
def build_from_hash(attributes)
|
195
222
|
return nil unless attributes.is_a?(Hash)
|
196
|
-
|
197
|
-
|
223
|
+
attributes = attributes.transform_keys(&:to_sym)
|
224
|
+
transformed_hash = {}
|
225
|
+
openapi_types.each_pair do |key, type|
|
226
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
227
|
+
transformed_hash["#{key}"] = nil
|
228
|
+
elsif type =~ /\AArray<(.*)>/i
|
198
229
|
# check to ensure the input is an array given that the attribute
|
199
230
|
# is documented as an array but the input is not
|
200
|
-
if attributes[
|
201
|
-
|
231
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
232
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
202
233
|
end
|
203
|
-
elsif !attributes[
|
204
|
-
|
205
|
-
end
|
234
|
+
elsif !attributes[attribute_map[key]].nil?
|
235
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
236
|
+
end
|
206
237
|
end
|
207
|
-
|
208
|
-
self
|
238
|
+
new(transformed_hash)
|
209
239
|
end
|
210
240
|
|
211
241
|
# Deserializes the data based on type
|
212
242
|
# @param string type Data type
|
213
243
|
# @param string value Value to be deserialized
|
214
244
|
# @return [Object] Deserialized data
|
215
|
-
def _deserialize(type, value)
|
245
|
+
def self._deserialize(type, value)
|
216
246
|
case type.to_sym
|
217
|
-
when :
|
218
|
-
|
247
|
+
when :Time
|
248
|
+
Time.parse(value)
|
219
249
|
when :Date
|
220
250
|
Date.parse(value)
|
221
251
|
when :String
|
@@ -245,7 +275,9 @@ module PulpDebClient
|
|
245
275
|
end
|
246
276
|
end
|
247
277
|
else # model
|
248
|
-
|
278
|
+
# models (e.g. Pet) or oneOf
|
279
|
+
klass = PulpDebClient.const_get(type)
|
280
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
249
281
|
end
|
250
282
|
end
|
251
283
|
|
@@ -271,7 +303,7 @@ module PulpDebClient
|
|
271
303
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
272
304
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
273
305
|
end
|
274
|
-
|
306
|
+
|
275
307
|
hash[param] = _to_hash(value)
|
276
308
|
end
|
277
309
|
hash
|
@@ -294,5 +326,7 @@ module PulpDebClient
|
|
294
326
|
value
|
295
327
|
end
|
296
328
|
end
|
329
|
+
|
297
330
|
end
|
331
|
+
|
298
332
|
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 PulpDebClient
|
16
17
|
# A serializer for PackageIndex.
|
@@ -26,6 +27,9 @@ module PulpDebClient
|
|
26
27
|
# Timestamp of the last time this resource was updated. Note: for immutable resources - like content, repository versions, and publication - pulp_created and pulp_last_updated dates will be the same.
|
27
28
|
attr_accessor :pulp_last_updated
|
28
29
|
|
30
|
+
# A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
|
31
|
+
attr_accessor :pulp_labels
|
32
|
+
|
29
33
|
# A dict mapping relative paths inside the Content to the correspondingArtifact URLs. E.g.: {'relative/path': '/artifacts/1/'
|
30
34
|
attr_accessor :artifacts
|
31
35
|
|
@@ -45,6 +49,7 @@ module PulpDebClient
|
|
45
49
|
:'prn' => :'prn',
|
46
50
|
:'pulp_created' => :'pulp_created',
|
47
51
|
:'pulp_last_updated' => :'pulp_last_updated',
|
52
|
+
:'pulp_labels' => :'pulp_labels',
|
48
53
|
:'artifacts' => :'artifacts',
|
49
54
|
:'component' => :'component',
|
50
55
|
:'architecture' => :'architecture',
|
@@ -52,13 +57,19 @@ module PulpDebClient
|
|
52
57
|
}
|
53
58
|
end
|
54
59
|
|
60
|
+
# Returns all the JSON keys this model knows about
|
61
|
+
def self.acceptable_attributes
|
62
|
+
attribute_map.values
|
63
|
+
end
|
64
|
+
|
55
65
|
# Attribute type mapping.
|
56
66
|
def self.openapi_types
|
57
67
|
{
|
58
68
|
:'pulp_href' => :'String',
|
59
69
|
:'prn' => :'String',
|
60
|
-
:'pulp_created' => :'
|
61
|
-
:'pulp_last_updated' => :'
|
70
|
+
:'pulp_created' => :'Time',
|
71
|
+
:'pulp_last_updated' => :'Time',
|
72
|
+
:'pulp_labels' => :'Hash<String, String>',
|
62
73
|
:'artifacts' => :'Object',
|
63
74
|
:'component' => :'String',
|
64
75
|
:'architecture' => :'String',
|
@@ -103,8 +114,16 @@ module PulpDebClient
|
|
103
114
|
self.pulp_last_updated = attributes[:'pulp_last_updated']
|
104
115
|
end
|
105
116
|
|
117
|
+
if attributes.key?(:'pulp_labels')
|
118
|
+
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
119
|
+
self.pulp_labels = value
|
120
|
+
end
|
121
|
+
end
|
122
|
+
|
106
123
|
if attributes.key?(:'artifacts')
|
107
124
|
self.artifacts = attributes[:'artifacts']
|
125
|
+
else
|
126
|
+
self.artifacts = nil
|
108
127
|
end
|
109
128
|
|
110
129
|
if attributes.key?(:'component')
|
@@ -123,6 +142,7 @@ module PulpDebClient
|
|
123
142
|
# Show invalid properties with the reasons. Usually used together with valid?
|
124
143
|
# @return Array for valid properties with the reasons
|
125
144
|
def list_invalid_properties
|
145
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
126
146
|
invalid_properties = Array.new
|
127
147
|
if @artifacts.nil?
|
128
148
|
invalid_properties.push('invalid value for "artifacts", artifacts cannot be nil.')
|
@@ -134,6 +154,7 @@ module PulpDebClient
|
|
134
154
|
# Check to see if the all the properties in the model are valid
|
135
155
|
# @return true if the model is valid
|
136
156
|
def valid?
|
157
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
137
158
|
return false if @artifacts.nil?
|
138
159
|
true
|
139
160
|
end
|
@@ -147,6 +168,7 @@ module PulpDebClient
|
|
147
168
|
prn == o.prn &&
|
148
169
|
pulp_created == o.pulp_created &&
|
149
170
|
pulp_last_updated == o.pulp_last_updated &&
|
171
|
+
pulp_labels == o.pulp_labels &&
|
150
172
|
artifacts == o.artifacts &&
|
151
173
|
component == o.component &&
|
152
174
|
architecture == o.architecture &&
|
@@ -162,44 +184,40 @@ module PulpDebClient
|
|
162
184
|
# Calculates hash code according to all attributes.
|
163
185
|
# @return [Integer] Hash code
|
164
186
|
def hash
|
165
|
-
[pulp_href, prn, pulp_created, pulp_last_updated, artifacts, component, architecture, relative_path].hash
|
187
|
+
[pulp_href, prn, pulp_created, pulp_last_updated, pulp_labels, artifacts, component, architecture, relative_path].hash
|
166
188
|
end
|
167
189
|
|
168
190
|
# Builds the object from hash
|
169
191
|
# @param [Hash] attributes Model attributes in the form of hash
|
170
192
|
# @return [Object] Returns the model itself
|
171
193
|
def self.build_from_hash(attributes)
|
172
|
-
new.build_from_hash(attributes)
|
173
|
-
end
|
174
|
-
|
175
|
-
# Builds the object from hash
|
176
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
177
|
-
# @return [Object] Returns the model itself
|
178
|
-
def build_from_hash(attributes)
|
179
194
|
return nil unless attributes.is_a?(Hash)
|
180
|
-
|
181
|
-
|
195
|
+
attributes = attributes.transform_keys(&:to_sym)
|
196
|
+
transformed_hash = {}
|
197
|
+
openapi_types.each_pair do |key, type|
|
198
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
199
|
+
transformed_hash["#{key}"] = nil
|
200
|
+
elsif type =~ /\AArray<(.*)>/i
|
182
201
|
# check to ensure the input is an array given that the attribute
|
183
202
|
# is documented as an array but the input is not
|
184
|
-
if attributes[
|
185
|
-
|
203
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
204
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
186
205
|
end
|
187
|
-
elsif !attributes[
|
188
|
-
|
189
|
-
end
|
206
|
+
elsif !attributes[attribute_map[key]].nil?
|
207
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
208
|
+
end
|
190
209
|
end
|
191
|
-
|
192
|
-
self
|
210
|
+
new(transformed_hash)
|
193
211
|
end
|
194
212
|
|
195
213
|
# Deserializes the data based on type
|
196
214
|
# @param string type Data type
|
197
215
|
# @param string value Value to be deserialized
|
198
216
|
# @return [Object] Deserialized data
|
199
|
-
def _deserialize(type, value)
|
217
|
+
def self._deserialize(type, value)
|
200
218
|
case type.to_sym
|
201
|
-
when :
|
202
|
-
|
219
|
+
when :Time
|
220
|
+
Time.parse(value)
|
203
221
|
when :Date
|
204
222
|
Date.parse(value)
|
205
223
|
when :String
|
@@ -229,7 +247,9 @@ module PulpDebClient
|
|
229
247
|
end
|
230
248
|
end
|
231
249
|
else # model
|
232
|
-
|
250
|
+
# models (e.g. Pet) or oneOf
|
251
|
+
klass = PulpDebClient.const_get(type)
|
252
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
233
253
|
end
|
234
254
|
end
|
235
255
|
|
@@ -255,7 +275,7 @@ module PulpDebClient
|
|
255
275
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
256
276
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
257
277
|
end
|
258
|
-
|
278
|
+
|
259
279
|
hash[param] = _to_hash(value)
|
260
280
|
end
|
261
281
|
hash
|
@@ -278,5 +298,7 @@ module PulpDebClient
|
|
278
298
|
value
|
279
299
|
end
|
280
300
|
end
|
301
|
+
|
281
302
|
end
|
303
|
+
|
282
304
|
end
|