pulp_deb_client 3.4.0 → 3.5.1
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 +34 -9
- data/docs/AptRepositorySyncURL.md +12 -11
- data/docs/AsyncOperationResponse.md +8 -7
- data/docs/ContentGenericContentsApi.md +114 -64
- data/docs/ContentInstallerFileIndicesApi.md +111 -61
- data/docs/ContentInstallerPackagesApi.md +130 -80
- data/docs/ContentPackageIndicesApi.md +111 -61
- data/docs/ContentPackageReleaseComponentsApi.md +111 -61
- data/docs/ContentPackagesApi.md +144 -94
- data/docs/ContentReleaseArchitecturesApi.md +109 -59
- data/docs/ContentReleaseComponentsApi.md +110 -60
- data/docs/ContentReleaseFilesApi.md +111 -61
- data/docs/ContentReleasesApi.md +114 -64
- data/docs/ContentSourceIndicesApi.md +110 -60
- data/docs/ContentSourcePackagesApi.md +137 -87
- data/docs/ContentSourceReleaseComponentsApi.md +111 -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 +30 -29
- data/docs/DebInstallerFileIndex.md +16 -15
- data/docs/DebInstallerFileIndexResponse.md +22 -21
- data/docs/DebInstallerPackageResponse.md +88 -87
- data/docs/DebPackageIndex.md +16 -15
- data/docs/DebPackageIndexResponse.md +22 -21
- data/docs/DebPackageReleaseComponent.md +12 -11
- data/docs/DebPackageReleaseComponentResponse.md +18 -17
- data/docs/DebPackageResponse.md +92 -91
- data/docs/DebRelease.md +26 -25
- data/docs/DebReleaseArchitecture.md +12 -11
- data/docs/DebReleaseArchitectureResponse.md +18 -17
- data/docs/DebReleaseComponent.md +12 -11
- data/docs/DebReleaseComponentResponse.md +20 -17
- data/docs/DebReleaseFile.md +18 -17
- data/docs/DebReleaseFileResponse.md +24 -23
- data/docs/DebReleaseResponse.md +32 -31
- data/docs/DebSourceIndex.md +16 -15
- data/docs/DebSourceIndexResponse.md +22 -21
- data/docs/DebSourcePackage.md +12 -11
- data/docs/DebSourcePackageReleaseComponent.md +12 -11
- data/docs/DebSourcePackageReleaseComponentResponse.md +18 -17
- data/docs/DebSourcePackageResponse.md +74 -71
- data/docs/DebVerbatimPublication.md +10 -9
- data/docs/DebVerbatimPublicationResponse.md +18 -17
- data/docs/DistributionsAptApi.md +564 -129
- data/docs/MyPermissionsResponse.md +18 -0
- data/docs/NestedRole.md +22 -0
- data/docs/NestedRoleResponse.md +22 -0
- data/docs/ObjectRolesResponse.md +18 -0
- 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 +446 -77
- data/docs/PublicationsVerbatimApi.md +446 -77
- data/docs/RemotesAptApi.md +568 -131
- data/docs/Repair.md +8 -7
- data/docs/RepositoriesAptApi.md +623 -154
- 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 +20 -14
- data/lib/pulp_deb_client/api/content_installer_file_indices_api.rb +20 -14
- data/lib/pulp_deb_client/api/content_installer_packages_api.rb +20 -22
- data/lib/pulp_deb_client/api/content_package_indices_api.rb +20 -14
- data/lib/pulp_deb_client/api/content_package_release_components_api.rb +20 -14
- data/lib/pulp_deb_client/api/content_packages_api.rb +20 -22
- data/lib/pulp_deb_client/api/content_release_architectures_api.rb +20 -14
- data/lib/pulp_deb_client/api/content_release_components_api.rb +20 -14
- data/lib/pulp_deb_client/api/content_release_files_api.rb +20 -14
- data/lib/pulp_deb_client/api/content_releases_api.rb +20 -14
- data/lib/pulp_deb_client/api/content_source_indices_api.rb +20 -14
- data/lib/pulp_deb_client/api/content_source_packages_api.rb +20 -14
- data/lib/pulp_deb_client/api/content_source_release_components_api.rb +20 -14
- data/lib/pulp_deb_client/api/deb_copy_api.rb +10 -6
- data/lib/pulp_deb_client/api/distributions_apt_api.rb +347 -38
- data/lib/pulp_deb_client/api/publications_apt_api.rb +325 -29
- data/lib/pulp_deb_client/api/publications_verbatim_api.rb +325 -29
- data/lib/pulp_deb_client/api/remotes_apt_api.rb +362 -50
- data/lib/pulp_deb_client/api/repositories_apt_api.rb +365 -48
- 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 +78 -42
- data/lib/pulp_deb_client/models/deb_apt_remote_response.rb +81 -45
- 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 +34 -24
- data/lib/pulp_deb_client/models/deb_installer_file_index.rb +41 -23
- data/lib/pulp_deb_client/models/deb_installer_file_index_response.rb +38 -24
- data/lib/pulp_deb_client/models/deb_installer_package_response.rb +32 -24
- data/lib/pulp_deb_client/models/deb_package_index.rb +47 -25
- data/lib/pulp_deb_client/models/deb_package_index_response.rb +34 -24
- data/lib/pulp_deb_client/models/deb_package_release_component.rb +34 -22
- data/lib/pulp_deb_client/models/deb_package_release_component_response.rb +36 -24
- data/lib/pulp_deb_client/models/deb_package_response.rb +32 -24
- data/lib/pulp_deb_client/models/deb_release.rb +36 -22
- data/lib/pulp_deb_client/models/deb_release_architecture.rb +34 -22
- data/lib/pulp_deb_client/models/deb_release_architecture_response.rb +36 -24
- data/lib/pulp_deb_client/models/deb_release_component.rb +34 -22
- data/lib/pulp_deb_client/models/deb_release_component_response.rb +50 -28
- data/lib/pulp_deb_client/models/deb_release_file.rb +49 -25
- data/lib/pulp_deb_client/models/deb_release_file_response.rb +36 -24
- data/lib/pulp_deb_client/models/deb_release_response.rb +38 -24
- data/lib/pulp_deb_client/models/deb_source_index.rb +41 -23
- data/lib/pulp_deb_client/models/deb_source_index_response.rb +38 -24
- data/lib/pulp_deb_client/models/deb_source_package.rb +37 -23
- data/lib/pulp_deb_client/models/deb_source_package_release_component.rb +34 -22
- data/lib/pulp_deb_client/models/deb_source_package_release_component_response.rb +36 -24
- data/lib/pulp_deb_client/models/deb_source_package_response.rb +45 -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 +223 -0
- data/lib/pulp_deb_client/models/{deb_installer_package.rb → nested_role.rb} +72 -97
- data/lib/pulp_deb_client/models/{deb_generic_content.rb → nested_role_response.rb} +62 -115
- data/lib/pulp_deb_client/models/object_roles_response.rb +223 -0
- 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 +87 -45
- 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 +32 -22
- data/lib/pulp_deb_client/models/unset_label_response.rb +32 -22
- data/lib/pulp_deb_client/version.rb +2 -2
- data/lib/pulp_deb_client.rb +6 -5
- data/pulp_deb_client.gemspec +9 -6
- data/spec/api/content_generic_contents_api_spec.rb +4 -4
- data/spec/api/content_installer_file_indices_api_spec.rb +4 -4
- data/spec/api/content_installer_packages_api_spec.rb +4 -4
- data/spec/api/content_package_indices_api_spec.rb +4 -4
- data/spec/api/content_package_release_components_api_spec.rb +4 -4
- data/spec/api/content_packages_api_spec.rb +4 -4
- data/spec/api/content_release_architectures_api_spec.rb +4 -4
- data/spec/api/content_release_components_api_spec.rb +4 -4
- data/spec/api/content_release_files_api_spec.rb +4 -4
- data/spec/api/content_releases_api_spec.rb +4 -4
- data/spec/api/content_source_indices_api_spec.rb +4 -4
- data/spec/api/content_source_packages_api_spec.rb +4 -4
- data/spec/api/content_source_release_components_api_spec.rb +4 -4
- data/spec/api/deb_copy_api_spec.rb +2 -2
- data/spec/api/distributions_apt_api_spec.rb +63 -9
- data/spec/api/publications_apt_api_spec.rb +66 -11
- data/spec/api/publications_verbatim_api_spec.rb +66 -11
- data/spec/api/remotes_apt_api_spec.rb +70 -15
- data/spec/api/repositories_apt_api_spec.rb +65 -11
- 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 +18 -23
- data/spec/models/deb_installer_file_index_response_spec.rb +14 -19
- data/spec/models/deb_installer_file_index_spec.rb +11 -16
- data/spec/models/deb_installer_package_response_spec.rb +47 -52
- data/spec/models/deb_package_index_response_spec.rb +14 -19
- data/spec/models/deb_package_index_spec.rb +11 -16
- data/spec/models/deb_package_release_component_response_spec.rb +12 -17
- data/spec/models/deb_package_release_component_spec.rb +9 -14
- data/spec/models/deb_package_response_spec.rb +49 -54
- data/spec/models/deb_release_architecture_response_spec.rb +12 -17
- data/spec/models/deb_release_architecture_spec.rb +9 -14
- data/spec/models/deb_release_component_response_spec.rb +18 -17
- data/spec/models/deb_release_component_spec.rb +9 -14
- data/spec/models/deb_release_file_response_spec.rb +15 -20
- data/spec/models/deb_release_file_spec.rb +12 -17
- data/spec/models/deb_release_response_spec.rb +19 -24
- data/spec/models/deb_release_spec.rb +16 -21
- data/spec/models/deb_source_index_response_spec.rb +14 -19
- data/spec/models/deb_source_index_spec.rb +11 -16
- data/spec/models/deb_source_package_release_component_response_spec.rb +12 -17
- data/spec/models/deb_source_package_release_component_spec.rb +9 -14
- data/spec/models/deb_source_package_response_spec.rb +45 -44
- data/spec/models/deb_source_package_spec.rb +9 -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 +36 -0
- data/spec/models/nested_role_response_spec.rb +48 -0
- data/spec/models/nested_role_spec.rb +48 -0
- data/spec/models/object_roles_response_spec.rb +36 -0
- 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 +136 -108
- 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_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 AptRemote.
|
@@ -101,6 +102,28 @@ module PulpDebClient
|
|
101
102
|
# By default, upstream repositories that declare architectures and corresponding package indices in their Release files without actually publishing them, will fail to synchronize. Set this flag to True to allow the synchronization of such \"partial mirrors\" instead. Alternatively, you could make your remote filter by architectures for which the upstream repository does have indices.
|
102
103
|
attr_accessor :ignore_missing_package_indices
|
103
104
|
|
105
|
+
class EnumAttributeValidator
|
106
|
+
attr_reader :datatype
|
107
|
+
attr_reader :allowable_values
|
108
|
+
|
109
|
+
def initialize(datatype, allowable_values)
|
110
|
+
@allowable_values = allowable_values.map do |value|
|
111
|
+
case datatype.to_s
|
112
|
+
when /Integer/i
|
113
|
+
value.to_i
|
114
|
+
when /Float/i
|
115
|
+
value.to_f
|
116
|
+
else
|
117
|
+
value
|
118
|
+
end
|
119
|
+
end
|
120
|
+
end
|
121
|
+
|
122
|
+
def valid?(value)
|
123
|
+
!value || allowable_values.include?(value)
|
124
|
+
end
|
125
|
+
end
|
126
|
+
|
104
127
|
# Attribute mapping from ruby-style variable name to JSON key.
|
105
128
|
def self.attribute_map
|
106
129
|
{
|
@@ -136,6 +159,11 @@ module PulpDebClient
|
|
136
159
|
}
|
137
160
|
end
|
138
161
|
|
162
|
+
# Returns all the JSON keys this model knows about
|
163
|
+
def self.acceptable_attributes
|
164
|
+
attribute_map.values
|
165
|
+
end
|
166
|
+
|
139
167
|
# Attribute type mapping.
|
140
168
|
def self.openapi_types
|
141
169
|
{
|
@@ -212,10 +240,14 @@ module PulpDebClient
|
|
212
240
|
|
213
241
|
if attributes.key?(:'name')
|
214
242
|
self.name = attributes[:'name']
|
243
|
+
else
|
244
|
+
self.name = nil
|
215
245
|
end
|
216
246
|
|
217
247
|
if attributes.key?(:'url')
|
218
248
|
self.url = attributes[:'url']
|
249
|
+
else
|
250
|
+
self.url = nil
|
219
251
|
end
|
220
252
|
|
221
253
|
if attributes.key?(:'ca_cert')
|
@@ -300,6 +332,8 @@ module PulpDebClient
|
|
300
332
|
|
301
333
|
if attributes.key?(:'distributions')
|
302
334
|
self.distributions = attributes[:'distributions']
|
335
|
+
else
|
336
|
+
self.distributions = nil
|
303
337
|
end
|
304
338
|
|
305
339
|
if attributes.key?(:'components')
|
@@ -334,6 +368,7 @@ module PulpDebClient
|
|
334
368
|
# Show invalid properties with the reasons. Usually used together with valid?
|
335
369
|
# @return Array for valid properties with the reasons
|
336
370
|
def list_invalid_properties
|
371
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
337
372
|
invalid_properties = Array.new
|
338
373
|
if @name.nil?
|
339
374
|
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
@@ -387,20 +422,20 @@ module PulpDebClient
|
|
387
422
|
invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
|
388
423
|
end
|
389
424
|
|
390
|
-
if !@total_timeout.nil? && @total_timeout < 0
|
391
|
-
invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.')
|
425
|
+
if !@total_timeout.nil? && @total_timeout < 0.0
|
426
|
+
invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
|
392
427
|
end
|
393
428
|
|
394
|
-
if !@connect_timeout.nil? && @connect_timeout < 0
|
395
|
-
invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.')
|
429
|
+
if !@connect_timeout.nil? && @connect_timeout < 0.0
|
430
|
+
invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.0.')
|
396
431
|
end
|
397
432
|
|
398
|
-
if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
|
399
|
-
invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.')
|
433
|
+
if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
|
434
|
+
invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.')
|
400
435
|
end
|
401
436
|
|
402
|
-
if !@sock_read_timeout.nil? && @sock_read_timeout < 0
|
403
|
-
invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.')
|
437
|
+
if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
|
438
|
+
invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
|
404
439
|
end
|
405
440
|
|
406
441
|
if @distributions.nil?
|
@@ -429,6 +464,7 @@ module PulpDebClient
|
|
429
464
|
# Check to see if the all the properties in the model are valid
|
430
465
|
# @return true if the model is valid
|
431
466
|
def valid?
|
467
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
432
468
|
return false if @name.nil?
|
433
469
|
return false if @name.to_s.length < 1
|
434
470
|
return false if @url.nil?
|
@@ -442,10 +478,10 @@ module PulpDebClient
|
|
442
478
|
return false if !@username.nil? && @username.to_s.length < 1
|
443
479
|
return false if !@password.nil? && @password.to_s.length < 1
|
444
480
|
return false if !@download_concurrency.nil? && @download_concurrency < 1
|
445
|
-
return false if !@total_timeout.nil? && @total_timeout < 0
|
446
|
-
return false if !@connect_timeout.nil? && @connect_timeout < 0
|
447
|
-
return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
|
448
|
-
return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0
|
481
|
+
return false if !@total_timeout.nil? && @total_timeout < 0.0
|
482
|
+
return false if !@connect_timeout.nil? && @connect_timeout < 0.0
|
483
|
+
return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
|
484
|
+
return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
|
449
485
|
return false if @distributions.nil?
|
450
486
|
return false if @distributions.to_s.length < 1
|
451
487
|
return false if !@components.nil? && @components.to_s.length < 1
|
@@ -575,8 +611,8 @@ module PulpDebClient
|
|
575
611
|
# Custom attribute writer method with validation
|
576
612
|
# @param [Object] total_timeout Value to be assigned
|
577
613
|
def total_timeout=(total_timeout)
|
578
|
-
if !total_timeout.nil? && total_timeout < 0
|
579
|
-
fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.'
|
614
|
+
if !total_timeout.nil? && total_timeout < 0.0
|
615
|
+
fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.0.'
|
580
616
|
end
|
581
617
|
|
582
618
|
@total_timeout = total_timeout
|
@@ -585,8 +621,8 @@ module PulpDebClient
|
|
585
621
|
# Custom attribute writer method with validation
|
586
622
|
# @param [Object] connect_timeout Value to be assigned
|
587
623
|
def connect_timeout=(connect_timeout)
|
588
|
-
if !connect_timeout.nil? && connect_timeout < 0
|
589
|
-
fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.'
|
624
|
+
if !connect_timeout.nil? && connect_timeout < 0.0
|
625
|
+
fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.0.'
|
590
626
|
end
|
591
627
|
|
592
628
|
@connect_timeout = connect_timeout
|
@@ -595,8 +631,8 @@ module PulpDebClient
|
|
595
631
|
# Custom attribute writer method with validation
|
596
632
|
# @param [Object] sock_connect_timeout Value to be assigned
|
597
633
|
def sock_connect_timeout=(sock_connect_timeout)
|
598
|
-
if !sock_connect_timeout.nil? && sock_connect_timeout < 0
|
599
|
-
fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.'
|
634
|
+
if !sock_connect_timeout.nil? && sock_connect_timeout < 0.0
|
635
|
+
fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.'
|
600
636
|
end
|
601
637
|
|
602
638
|
@sock_connect_timeout = sock_connect_timeout
|
@@ -605,8 +641,8 @@ module PulpDebClient
|
|
605
641
|
# Custom attribute writer method with validation
|
606
642
|
# @param [Object] sock_read_timeout Value to be assigned
|
607
643
|
def sock_read_timeout=(sock_read_timeout)
|
608
|
-
if !sock_read_timeout.nil? && sock_read_timeout < 0
|
609
|
-
fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.'
|
644
|
+
if !sock_read_timeout.nil? && sock_read_timeout < 0.0
|
645
|
+
fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.0.'
|
610
646
|
end
|
611
647
|
|
612
648
|
@sock_read_timeout = sock_read_timeout
|
@@ -708,37 +744,33 @@ module PulpDebClient
|
|
708
744
|
# @param [Hash] attributes Model attributes in the form of hash
|
709
745
|
# @return [Object] Returns the model itself
|
710
746
|
def self.build_from_hash(attributes)
|
711
|
-
new.build_from_hash(attributes)
|
712
|
-
end
|
713
|
-
|
714
|
-
# Builds the object from hash
|
715
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
716
|
-
# @return [Object] Returns the model itself
|
717
|
-
def build_from_hash(attributes)
|
718
747
|
return nil unless attributes.is_a?(Hash)
|
719
|
-
|
720
|
-
|
748
|
+
attributes = attributes.transform_keys(&:to_sym)
|
749
|
+
transformed_hash = {}
|
750
|
+
openapi_types.each_pair do |key, type|
|
751
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
752
|
+
transformed_hash["#{key}"] = nil
|
753
|
+
elsif type =~ /\AArray<(.*)>/i
|
721
754
|
# check to ensure the input is an array given that the attribute
|
722
755
|
# is documented as an array but the input is not
|
723
|
-
if attributes[
|
724
|
-
|
756
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
757
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
725
758
|
end
|
726
|
-
elsif !attributes[
|
727
|
-
|
728
|
-
end
|
759
|
+
elsif !attributes[attribute_map[key]].nil?
|
760
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
761
|
+
end
|
729
762
|
end
|
730
|
-
|
731
|
-
self
|
763
|
+
new(transformed_hash)
|
732
764
|
end
|
733
765
|
|
734
766
|
# Deserializes the data based on type
|
735
767
|
# @param string type Data type
|
736
768
|
# @param string value Value to be deserialized
|
737
769
|
# @return [Object] Deserialized data
|
738
|
-
def _deserialize(type, value)
|
770
|
+
def self._deserialize(type, value)
|
739
771
|
case type.to_sym
|
740
|
-
when :
|
741
|
-
|
772
|
+
when :Time
|
773
|
+
Time.parse(value)
|
742
774
|
when :Date
|
743
775
|
Date.parse(value)
|
744
776
|
when :String
|
@@ -768,7 +800,9 @@ module PulpDebClient
|
|
768
800
|
end
|
769
801
|
end
|
770
802
|
else # model
|
771
|
-
|
803
|
+
# models (e.g. Pet) or oneOf
|
804
|
+
klass = PulpDebClient.const_get(type)
|
805
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
772
806
|
end
|
773
807
|
end
|
774
808
|
|
@@ -794,7 +828,7 @@ module PulpDebClient
|
|
794
828
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
795
829
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
796
830
|
end
|
797
|
-
|
831
|
+
|
798
832
|
hash[param] = _to_hash(value)
|
799
833
|
end
|
800
834
|
hash
|
@@ -817,5 +851,7 @@ module PulpDebClient
|
|
817
851
|
value
|
818
852
|
end
|
819
853
|
end
|
854
|
+
|
820
855
|
end
|
856
|
+
|
821
857
|
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 AptRemote.
|
@@ -100,6 +101,28 @@ module PulpDebClient
|
|
100
101
|
# By default, upstream repositories that declare architectures and corresponding package indices in their Release files without actually publishing them, will fail to synchronize. Set this flag to True to allow the synchronization of such \"partial mirrors\" instead. Alternatively, you could make your remote filter by architectures for which the upstream repository does have indices.
|
101
102
|
attr_accessor :ignore_missing_package_indices
|
102
103
|
|
104
|
+
class EnumAttributeValidator
|
105
|
+
attr_reader :datatype
|
106
|
+
attr_reader :allowable_values
|
107
|
+
|
108
|
+
def initialize(datatype, allowable_values)
|
109
|
+
@allowable_values = allowable_values.map do |value|
|
110
|
+
case datatype.to_s
|
111
|
+
when /Integer/i
|
112
|
+
value.to_i
|
113
|
+
when /Float/i
|
114
|
+
value.to_f
|
115
|
+
else
|
116
|
+
value
|
117
|
+
end
|
118
|
+
end
|
119
|
+
end
|
120
|
+
|
121
|
+
def valid?(value)
|
122
|
+
!value || allowable_values.include?(value)
|
123
|
+
end
|
124
|
+
end
|
125
|
+
|
103
126
|
# Attribute mapping from ruby-style variable name to JSON key.
|
104
127
|
def self.attribute_map
|
105
128
|
{
|
@@ -135,13 +158,18 @@ module PulpDebClient
|
|
135
158
|
}
|
136
159
|
end
|
137
160
|
|
161
|
+
# Returns all the JSON keys this model knows about
|
162
|
+
def self.acceptable_attributes
|
163
|
+
attribute_map.values
|
164
|
+
end
|
165
|
+
|
138
166
|
# Attribute type mapping.
|
139
167
|
def self.openapi_types
|
140
168
|
{
|
141
169
|
:'pulp_href' => :'String',
|
142
170
|
:'prn' => :'String',
|
143
|
-
:'pulp_created' => :'
|
144
|
-
:'pulp_last_updated' => :'
|
171
|
+
:'pulp_created' => :'Time',
|
172
|
+
:'pulp_last_updated' => :'Time',
|
145
173
|
:'name' => :'String',
|
146
174
|
:'url' => :'String',
|
147
175
|
:'ca_cert' => :'String',
|
@@ -158,7 +186,7 @@ module PulpDebClient
|
|
158
186
|
:'sock_read_timeout' => :'Float',
|
159
187
|
:'headers' => :'Array<Object>',
|
160
188
|
:'rate_limit' => :'Integer',
|
161
|
-
:'hidden_fields' => :'Array<
|
189
|
+
:'hidden_fields' => :'Array<DebAptRemoteResponseHiddenFieldsInner>',
|
162
190
|
:'distributions' => :'String',
|
163
191
|
:'components' => :'String',
|
164
192
|
:'architectures' => :'String',
|
@@ -222,10 +250,14 @@ module PulpDebClient
|
|
222
250
|
|
223
251
|
if attributes.key?(:'name')
|
224
252
|
self.name = attributes[:'name']
|
253
|
+
else
|
254
|
+
self.name = nil
|
225
255
|
end
|
226
256
|
|
227
257
|
if attributes.key?(:'url')
|
228
258
|
self.url = attributes[:'url']
|
259
|
+
else
|
260
|
+
self.url = nil
|
229
261
|
end
|
230
262
|
|
231
263
|
if attributes.key?(:'ca_cert')
|
@@ -296,6 +328,8 @@ module PulpDebClient
|
|
296
328
|
|
297
329
|
if attributes.key?(:'distributions')
|
298
330
|
self.distributions = attributes[:'distributions']
|
331
|
+
else
|
332
|
+
self.distributions = nil
|
299
333
|
end
|
300
334
|
|
301
335
|
if attributes.key?(:'components')
|
@@ -330,6 +364,7 @@ module PulpDebClient
|
|
330
364
|
# Show invalid properties with the reasons. Usually used together with valid?
|
331
365
|
# @return Array for valid properties with the reasons
|
332
366
|
def list_invalid_properties
|
367
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
333
368
|
invalid_properties = Array.new
|
334
369
|
if @name.nil?
|
335
370
|
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
@@ -343,20 +378,20 @@ module PulpDebClient
|
|
343
378
|
invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
|
344
379
|
end
|
345
380
|
|
346
|
-
if !@total_timeout.nil? && @total_timeout < 0
|
347
|
-
invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.')
|
381
|
+
if !@total_timeout.nil? && @total_timeout < 0.0
|
382
|
+
invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
|
348
383
|
end
|
349
384
|
|
350
|
-
if !@connect_timeout.nil? && @connect_timeout < 0
|
351
|
-
invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.')
|
385
|
+
if !@connect_timeout.nil? && @connect_timeout < 0.0
|
386
|
+
invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.0.')
|
352
387
|
end
|
353
388
|
|
354
|
-
if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
|
355
|
-
invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.')
|
389
|
+
if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
|
390
|
+
invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.')
|
356
391
|
end
|
357
392
|
|
358
|
-
if !@sock_read_timeout.nil? && @sock_read_timeout < 0
|
359
|
-
invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.')
|
393
|
+
if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
|
394
|
+
invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
|
360
395
|
end
|
361
396
|
|
362
397
|
if @distributions.nil?
|
@@ -369,13 +404,14 @@ module PulpDebClient
|
|
369
404
|
# Check to see if the all the properties in the model are valid
|
370
405
|
# @return true if the model is valid
|
371
406
|
def valid?
|
407
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
372
408
|
return false if @name.nil?
|
373
409
|
return false if @url.nil?
|
374
410
|
return false if !@download_concurrency.nil? && @download_concurrency < 1
|
375
|
-
return false if !@total_timeout.nil? && @total_timeout < 0
|
376
|
-
return false if !@connect_timeout.nil? && @connect_timeout < 0
|
377
|
-
return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
|
378
|
-
return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0
|
411
|
+
return false if !@total_timeout.nil? && @total_timeout < 0.0
|
412
|
+
return false if !@connect_timeout.nil? && @connect_timeout < 0.0
|
413
|
+
return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
|
414
|
+
return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
|
379
415
|
return false if @distributions.nil?
|
380
416
|
true
|
381
417
|
end
|
@@ -393,8 +429,8 @@ module PulpDebClient
|
|
393
429
|
# Custom attribute writer method with validation
|
394
430
|
# @param [Object] total_timeout Value to be assigned
|
395
431
|
def total_timeout=(total_timeout)
|
396
|
-
if !total_timeout.nil? && total_timeout < 0
|
397
|
-
fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.'
|
432
|
+
if !total_timeout.nil? && total_timeout < 0.0
|
433
|
+
fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.0.'
|
398
434
|
end
|
399
435
|
|
400
436
|
@total_timeout = total_timeout
|
@@ -403,8 +439,8 @@ module PulpDebClient
|
|
403
439
|
# Custom attribute writer method with validation
|
404
440
|
# @param [Object] connect_timeout Value to be assigned
|
405
441
|
def connect_timeout=(connect_timeout)
|
406
|
-
if !connect_timeout.nil? && connect_timeout < 0
|
407
|
-
fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.'
|
442
|
+
if !connect_timeout.nil? && connect_timeout < 0.0
|
443
|
+
fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.0.'
|
408
444
|
end
|
409
445
|
|
410
446
|
@connect_timeout = connect_timeout
|
@@ -413,8 +449,8 @@ module PulpDebClient
|
|
413
449
|
# Custom attribute writer method with validation
|
414
450
|
# @param [Object] sock_connect_timeout Value to be assigned
|
415
451
|
def sock_connect_timeout=(sock_connect_timeout)
|
416
|
-
if !sock_connect_timeout.nil? && sock_connect_timeout < 0
|
417
|
-
fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.'
|
452
|
+
if !sock_connect_timeout.nil? && sock_connect_timeout < 0.0
|
453
|
+
fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.'
|
418
454
|
end
|
419
455
|
|
420
456
|
@sock_connect_timeout = sock_connect_timeout
|
@@ -423,8 +459,8 @@ module PulpDebClient
|
|
423
459
|
# Custom attribute writer method with validation
|
424
460
|
# @param [Object] sock_read_timeout Value to be assigned
|
425
461
|
def sock_read_timeout=(sock_read_timeout)
|
426
|
-
if !sock_read_timeout.nil? && sock_read_timeout < 0
|
427
|
-
fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.'
|
462
|
+
if !sock_read_timeout.nil? && sock_read_timeout < 0.0
|
463
|
+
fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.0.'
|
428
464
|
end
|
429
465
|
|
430
466
|
@sock_read_timeout = sock_read_timeout
|
@@ -482,37 +518,33 @@ module PulpDebClient
|
|
482
518
|
# @param [Hash] attributes Model attributes in the form of hash
|
483
519
|
# @return [Object] Returns the model itself
|
484
520
|
def self.build_from_hash(attributes)
|
485
|
-
new.build_from_hash(attributes)
|
486
|
-
end
|
487
|
-
|
488
|
-
# Builds the object from hash
|
489
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
490
|
-
# @return [Object] Returns the model itself
|
491
|
-
def build_from_hash(attributes)
|
492
521
|
return nil unless attributes.is_a?(Hash)
|
493
|
-
|
494
|
-
|
522
|
+
attributes = attributes.transform_keys(&:to_sym)
|
523
|
+
transformed_hash = {}
|
524
|
+
openapi_types.each_pair do |key, type|
|
525
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
526
|
+
transformed_hash["#{key}"] = nil
|
527
|
+
elsif type =~ /\AArray<(.*)>/i
|
495
528
|
# check to ensure the input is an array given that the attribute
|
496
529
|
# is documented as an array but the input is not
|
497
|
-
if attributes[
|
498
|
-
|
530
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
531
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
499
532
|
end
|
500
|
-
elsif !attributes[
|
501
|
-
|
502
|
-
end
|
533
|
+
elsif !attributes[attribute_map[key]].nil?
|
534
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
535
|
+
end
|
503
536
|
end
|
504
|
-
|
505
|
-
self
|
537
|
+
new(transformed_hash)
|
506
538
|
end
|
507
539
|
|
508
540
|
# Deserializes the data based on type
|
509
541
|
# @param string type Data type
|
510
542
|
# @param string value Value to be deserialized
|
511
543
|
# @return [Object] Deserialized data
|
512
|
-
def _deserialize(type, value)
|
544
|
+
def self._deserialize(type, value)
|
513
545
|
case type.to_sym
|
514
|
-
when :
|
515
|
-
|
546
|
+
when :Time
|
547
|
+
Time.parse(value)
|
516
548
|
when :Date
|
517
549
|
Date.parse(value)
|
518
550
|
when :String
|
@@ -542,7 +574,9 @@ module PulpDebClient
|
|
542
574
|
end
|
543
575
|
end
|
544
576
|
else # model
|
545
|
-
|
577
|
+
# models (e.g. Pet) or oneOf
|
578
|
+
klass = PulpDebClient.const_get(type)
|
579
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
546
580
|
end
|
547
581
|
end
|
548
582
|
|
@@ -568,7 +602,7 @@ module PulpDebClient
|
|
568
602
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
569
603
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
570
604
|
end
|
571
|
-
|
605
|
+
|
572
606
|
hash[param] = _to_hash(value)
|
573
607
|
end
|
574
608
|
hash
|
@@ -591,5 +625,7 @@ module PulpDebClient
|
|
591
625
|
value
|
592
626
|
end
|
593
627
|
end
|
628
|
+
|
594
629
|
end
|
630
|
+
|
595
631
|
end
|