pulp_deb_client 3.5.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 +10 -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 -19
- 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 -73
- data/docs/DebVerbatimPublication.md +10 -9
- data/docs/DebVerbatimPublicationResponse.md +18 -17
- data/docs/DistributionsAptApi.md +385 -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 +267 -130
- data/docs/PublicationsVerbatimApi.md +267 -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 +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 +89 -56
- data/lib/pulp_deb_client/api/publications_apt_api.rb +67 -47
- data/lib/pulp_deb_client/api/publications_verbatim_api.rb +67 -47
- 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 +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 +36 -24
- 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 +34 -24
- 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 +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 +2 -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 +13 -13
- data/spec/api/publications_apt_api_spec.rb +16 -15
- data/spec/api/publications_verbatim_api_spec.rb +16 -15
- 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 +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 +13 -18
- 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 +40 -45
- 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 +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 +115 -103
- 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 SourceIndex.
|
@@ -41,6 +42,11 @@ module PulpDebClient
|
|
41
42
|
}
|
42
43
|
end
|
43
44
|
|
45
|
+
# Returns all the JSON keys this model knows about
|
46
|
+
def self.acceptable_attributes
|
47
|
+
attribute_map.values
|
48
|
+
end
|
49
|
+
|
44
50
|
# Attribute type mapping.
|
45
51
|
def self.openapi_types
|
46
52
|
{
|
@@ -79,14 +85,20 @@ module PulpDebClient
|
|
79
85
|
|
80
86
|
if attributes.key?(:'artifacts')
|
81
87
|
self.artifacts = attributes[:'artifacts']
|
88
|
+
else
|
89
|
+
self.artifacts = nil
|
82
90
|
end
|
83
91
|
|
84
92
|
if attributes.key?(:'release')
|
85
93
|
self.release = attributes[:'release']
|
94
|
+
else
|
95
|
+
self.release = nil
|
86
96
|
end
|
87
97
|
|
88
98
|
if attributes.key?(:'component')
|
89
99
|
self.component = attributes[:'component']
|
100
|
+
else
|
101
|
+
self.component = nil
|
90
102
|
end
|
91
103
|
|
92
104
|
if attributes.key?(:'relative_path')
|
@@ -97,6 +109,7 @@ module PulpDebClient
|
|
97
109
|
# Show invalid properties with the reasons. Usually used together with valid?
|
98
110
|
# @return Array for valid properties with the reasons
|
99
111
|
def list_invalid_properties
|
112
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
100
113
|
invalid_properties = Array.new
|
101
114
|
if @artifacts.nil?
|
102
115
|
invalid_properties.push('invalid value for "artifacts", artifacts cannot be nil.')
|
@@ -124,6 +137,7 @@ module PulpDebClient
|
|
124
137
|
# Check to see if the all the properties in the model are valid
|
125
138
|
# @return true if the model is valid
|
126
139
|
def valid?
|
140
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
127
141
|
return false if @artifacts.nil?
|
128
142
|
return false if @release.nil?
|
129
143
|
return false if @component.nil?
|
@@ -149,7 +163,11 @@ module PulpDebClient
|
|
149
163
|
# Custom attribute writer method with validation
|
150
164
|
# @param [Object] relative_path Value to be assigned
|
151
165
|
def relative_path=(relative_path)
|
152
|
-
if
|
166
|
+
if relative_path.nil?
|
167
|
+
fail ArgumentError, 'relative_path cannot be nil'
|
168
|
+
end
|
169
|
+
|
170
|
+
if relative_path.to_s.length < 1
|
153
171
|
fail ArgumentError, 'invalid value for "relative_path", the character length must be great than or equal to 1.'
|
154
172
|
end
|
155
173
|
|
@@ -184,37 +202,33 @@ module PulpDebClient
|
|
184
202
|
# @param [Hash] attributes Model attributes in the form of hash
|
185
203
|
# @return [Object] Returns the model itself
|
186
204
|
def self.build_from_hash(attributes)
|
187
|
-
new.build_from_hash(attributes)
|
188
|
-
end
|
189
|
-
|
190
|
-
# Builds the object from hash
|
191
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
192
|
-
# @return [Object] Returns the model itself
|
193
|
-
def build_from_hash(attributes)
|
194
205
|
return nil unless attributes.is_a?(Hash)
|
195
|
-
|
196
|
-
|
206
|
+
attributes = attributes.transform_keys(&:to_sym)
|
207
|
+
transformed_hash = {}
|
208
|
+
openapi_types.each_pair do |key, type|
|
209
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
210
|
+
transformed_hash["#{key}"] = nil
|
211
|
+
elsif type =~ /\AArray<(.*)>/i
|
197
212
|
# check to ensure the input is an array given that the attribute
|
198
213
|
# is documented as an array but the input is not
|
199
|
-
if attributes[
|
200
|
-
|
214
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
215
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
201
216
|
end
|
202
|
-
elsif !attributes[
|
203
|
-
|
204
|
-
end
|
217
|
+
elsif !attributes[attribute_map[key]].nil?
|
218
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
219
|
+
end
|
205
220
|
end
|
206
|
-
|
207
|
-
self
|
221
|
+
new(transformed_hash)
|
208
222
|
end
|
209
223
|
|
210
224
|
# Deserializes the data based on type
|
211
225
|
# @param string type Data type
|
212
226
|
# @param string value Value to be deserialized
|
213
227
|
# @return [Object] Deserialized data
|
214
|
-
def _deserialize(type, value)
|
228
|
+
def self._deserialize(type, value)
|
215
229
|
case type.to_sym
|
216
|
-
when :
|
217
|
-
|
230
|
+
when :Time
|
231
|
+
Time.parse(value)
|
218
232
|
when :Date
|
219
233
|
Date.parse(value)
|
220
234
|
when :String
|
@@ -244,7 +258,9 @@ module PulpDebClient
|
|
244
258
|
end
|
245
259
|
end
|
246
260
|
else # model
|
247
|
-
|
261
|
+
# models (e.g. Pet) or oneOf
|
262
|
+
klass = PulpDebClient.const_get(type)
|
263
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
248
264
|
end
|
249
265
|
end
|
250
266
|
|
@@ -270,7 +286,7 @@ module PulpDebClient
|
|
270
286
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
271
287
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
272
288
|
end
|
273
|
-
|
289
|
+
|
274
290
|
hash[param] = _to_hash(value)
|
275
291
|
end
|
276
292
|
hash
|
@@ -293,5 +309,7 @@ module PulpDebClient
|
|
293
309
|
value
|
294
310
|
end
|
295
311
|
end
|
312
|
+
|
296
313
|
end
|
314
|
+
|
297
315
|
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 SourceIndex.
|
@@ -52,13 +53,18 @@ module PulpDebClient
|
|
52
53
|
}
|
53
54
|
end
|
54
55
|
|
56
|
+
# Returns all the JSON keys this model knows about
|
57
|
+
def self.acceptable_attributes
|
58
|
+
attribute_map.values
|
59
|
+
end
|
60
|
+
|
55
61
|
# Attribute type mapping.
|
56
62
|
def self.openapi_types
|
57
63
|
{
|
58
64
|
:'pulp_href' => :'String',
|
59
65
|
:'prn' => :'String',
|
60
|
-
:'pulp_created' => :'
|
61
|
-
:'pulp_last_updated' => :'
|
66
|
+
:'pulp_created' => :'Time',
|
67
|
+
:'pulp_last_updated' => :'Time',
|
62
68
|
:'artifacts' => :'Object',
|
63
69
|
:'release' => :'String',
|
64
70
|
:'component' => :'String',
|
@@ -105,14 +111,20 @@ module PulpDebClient
|
|
105
111
|
|
106
112
|
if attributes.key?(:'artifacts')
|
107
113
|
self.artifacts = attributes[:'artifacts']
|
114
|
+
else
|
115
|
+
self.artifacts = nil
|
108
116
|
end
|
109
117
|
|
110
118
|
if attributes.key?(:'release')
|
111
119
|
self.release = attributes[:'release']
|
120
|
+
else
|
121
|
+
self.release = nil
|
112
122
|
end
|
113
123
|
|
114
124
|
if attributes.key?(:'component')
|
115
125
|
self.component = attributes[:'component']
|
126
|
+
else
|
127
|
+
self.component = nil
|
116
128
|
end
|
117
129
|
|
118
130
|
if attributes.key?(:'relative_path')
|
@@ -123,6 +135,7 @@ module PulpDebClient
|
|
123
135
|
# Show invalid properties with the reasons. Usually used together with valid?
|
124
136
|
# @return Array for valid properties with the reasons
|
125
137
|
def list_invalid_properties
|
138
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
126
139
|
invalid_properties = Array.new
|
127
140
|
if @artifacts.nil?
|
128
141
|
invalid_properties.push('invalid value for "artifacts", artifacts cannot be nil.')
|
@@ -142,6 +155,7 @@ module PulpDebClient
|
|
142
155
|
# Check to see if the all the properties in the model are valid
|
143
156
|
# @return true if the model is valid
|
144
157
|
def valid?
|
158
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
145
159
|
return false if @artifacts.nil?
|
146
160
|
return false if @release.nil?
|
147
161
|
return false if @component.nil?
|
@@ -179,37 +193,33 @@ module PulpDebClient
|
|
179
193
|
# @param [Hash] attributes Model attributes in the form of hash
|
180
194
|
# @return [Object] Returns the model itself
|
181
195
|
def self.build_from_hash(attributes)
|
182
|
-
new.build_from_hash(attributes)
|
183
|
-
end
|
184
|
-
|
185
|
-
# Builds the object from hash
|
186
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
187
|
-
# @return [Object] Returns the model itself
|
188
|
-
def build_from_hash(attributes)
|
189
196
|
return nil unless attributes.is_a?(Hash)
|
190
|
-
|
191
|
-
|
197
|
+
attributes = attributes.transform_keys(&:to_sym)
|
198
|
+
transformed_hash = {}
|
199
|
+
openapi_types.each_pair do |key, type|
|
200
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
201
|
+
transformed_hash["#{key}"] = nil
|
202
|
+
elsif type =~ /\AArray<(.*)>/i
|
192
203
|
# check to ensure the input is an array given that the attribute
|
193
204
|
# is documented as an array but the input is not
|
194
|
-
if attributes[
|
195
|
-
|
205
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
206
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
196
207
|
end
|
197
|
-
elsif !attributes[
|
198
|
-
|
199
|
-
end
|
208
|
+
elsif !attributes[attribute_map[key]].nil?
|
209
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
210
|
+
end
|
200
211
|
end
|
201
|
-
|
202
|
-
self
|
212
|
+
new(transformed_hash)
|
203
213
|
end
|
204
214
|
|
205
215
|
# Deserializes the data based on type
|
206
216
|
# @param string type Data type
|
207
217
|
# @param string value Value to be deserialized
|
208
218
|
# @return [Object] Deserialized data
|
209
|
-
def _deserialize(type, value)
|
219
|
+
def self._deserialize(type, value)
|
210
220
|
case type.to_sym
|
211
|
-
when :
|
212
|
-
|
221
|
+
when :Time
|
222
|
+
Time.parse(value)
|
213
223
|
when :Date
|
214
224
|
Date.parse(value)
|
215
225
|
when :String
|
@@ -239,7 +249,9 @@ module PulpDebClient
|
|
239
249
|
end
|
240
250
|
end
|
241
251
|
else # model
|
242
|
-
|
252
|
+
# models (e.g. Pet) or oneOf
|
253
|
+
klass = PulpDebClient.const_get(type)
|
254
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
243
255
|
end
|
244
256
|
end
|
245
257
|
|
@@ -265,7 +277,7 @@ module PulpDebClient
|
|
265
277
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
266
278
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
267
279
|
end
|
268
|
-
|
280
|
+
|
269
281
|
hash[param] = _to_hash(value)
|
270
282
|
end
|
271
283
|
hash
|
@@ -288,5 +300,7 @@ module PulpDebClient
|
|
288
300
|
value
|
289
301
|
end
|
290
302
|
end
|
303
|
+
|
291
304
|
end
|
305
|
+
|
292
306
|
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 DscFile.
|
@@ -33,6 +34,11 @@ module PulpDebClient
|
|
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
|
{
|
@@ -69,6 +75,8 @@ module PulpDebClient
|
|
69
75
|
|
70
76
|
if attributes.key?(:'artifact')
|
71
77
|
self.artifact = attributes[:'artifact']
|
78
|
+
else
|
79
|
+
self.artifact = nil
|
72
80
|
end
|
73
81
|
|
74
82
|
if attributes.key?(:'relative_path')
|
@@ -79,6 +87,7 @@ module PulpDebClient
|
|
79
87
|
# Show invalid properties with the reasons. Usually used together with valid?
|
80
88
|
# @return Array for valid properties with the reasons
|
81
89
|
def list_invalid_properties
|
90
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
82
91
|
invalid_properties = Array.new
|
83
92
|
if @artifact.nil?
|
84
93
|
invalid_properties.push('invalid value for "artifact", artifact cannot be nil.')
|
@@ -94,6 +103,7 @@ module PulpDebClient
|
|
94
103
|
# Check to see if the all the properties in the model are valid
|
95
104
|
# @return true if the model is valid
|
96
105
|
def valid?
|
106
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
97
107
|
return false if @artifact.nil?
|
98
108
|
return false if !@relative_path.nil? && @relative_path.to_s.length < 1
|
99
109
|
true
|
@@ -102,7 +112,11 @@ module PulpDebClient
|
|
102
112
|
# Custom attribute writer method with validation
|
103
113
|
# @param [Object] relative_path Value to be assigned
|
104
114
|
def relative_path=(relative_path)
|
105
|
-
if
|
115
|
+
if relative_path.nil?
|
116
|
+
fail ArgumentError, 'relative_path cannot be nil'
|
117
|
+
end
|
118
|
+
|
119
|
+
if relative_path.to_s.length < 1
|
106
120
|
fail ArgumentError, 'invalid value for "relative_path", the character length must be great than or equal to 1.'
|
107
121
|
end
|
108
122
|
|
@@ -135,37 +149,33 @@ module PulpDebClient
|
|
135
149
|
# @param [Hash] attributes Model attributes in the form of hash
|
136
150
|
# @return [Object] Returns the model itself
|
137
151
|
def self.build_from_hash(attributes)
|
138
|
-
new.build_from_hash(attributes)
|
139
|
-
end
|
140
|
-
|
141
|
-
# Builds the object from hash
|
142
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
143
|
-
# @return [Object] Returns the model itself
|
144
|
-
def build_from_hash(attributes)
|
145
152
|
return nil unless attributes.is_a?(Hash)
|
146
|
-
|
147
|
-
|
153
|
+
attributes = attributes.transform_keys(&:to_sym)
|
154
|
+
transformed_hash = {}
|
155
|
+
openapi_types.each_pair do |key, type|
|
156
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
157
|
+
transformed_hash["#{key}"] = nil
|
158
|
+
elsif type =~ /\AArray<(.*)>/i
|
148
159
|
# check to ensure the input is an array given that the attribute
|
149
160
|
# is documented as an array but the input is not
|
150
|
-
if attributes[
|
151
|
-
|
161
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
162
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
152
163
|
end
|
153
|
-
elsif !attributes[
|
154
|
-
|
155
|
-
end
|
164
|
+
elsif !attributes[attribute_map[key]].nil?
|
165
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
166
|
+
end
|
156
167
|
end
|
157
|
-
|
158
|
-
self
|
168
|
+
new(transformed_hash)
|
159
169
|
end
|
160
170
|
|
161
171
|
# Deserializes the data based on type
|
162
172
|
# @param string type Data type
|
163
173
|
# @param string value Value to be deserialized
|
164
174
|
# @return [Object] Deserialized data
|
165
|
-
def _deserialize(type, value)
|
175
|
+
def self._deserialize(type, value)
|
166
176
|
case type.to_sym
|
167
|
-
when :
|
168
|
-
|
177
|
+
when :Time
|
178
|
+
Time.parse(value)
|
169
179
|
when :Date
|
170
180
|
Date.parse(value)
|
171
181
|
when :String
|
@@ -195,7 +205,9 @@ module PulpDebClient
|
|
195
205
|
end
|
196
206
|
end
|
197
207
|
else # model
|
198
|
-
|
208
|
+
# models (e.g. Pet) or oneOf
|
209
|
+
klass = PulpDebClient.const_get(type)
|
210
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
199
211
|
end
|
200
212
|
end
|
201
213
|
|
@@ -221,7 +233,7 @@ module PulpDebClient
|
|
221
233
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
222
234
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
223
235
|
end
|
224
|
-
|
236
|
+
|
225
237
|
hash[param] = _to_hash(value)
|
226
238
|
end
|
227
239
|
hash
|
@@ -244,5 +256,7 @@ module PulpDebClient
|
|
244
256
|
value
|
245
257
|
end
|
246
258
|
end
|
259
|
+
|
247
260
|
end
|
261
|
+
|
248
262
|
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 SourcePackageReleaseComponent.
|
@@ -33,6 +34,11 @@ module PulpDebClient
|
|
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
|
{
|
@@ -69,16 +75,21 @@ module PulpDebClient
|
|
69
75
|
|
70
76
|
if attributes.key?(:'source_package')
|
71
77
|
self.source_package = attributes[:'source_package']
|
78
|
+
else
|
79
|
+
self.source_package = nil
|
72
80
|
end
|
73
81
|
|
74
82
|
if attributes.key?(:'release_component')
|
75
83
|
self.release_component = attributes[:'release_component']
|
84
|
+
else
|
85
|
+
self.release_component = nil
|
76
86
|
end
|
77
87
|
end
|
78
88
|
|
79
89
|
# Show invalid properties with the reasons. Usually used together with valid?
|
80
90
|
# @return Array for valid properties with the reasons
|
81
91
|
def list_invalid_properties
|
92
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
82
93
|
invalid_properties = Array.new
|
83
94
|
if @source_package.nil?
|
84
95
|
invalid_properties.push('invalid value for "source_package", source_package cannot be nil.')
|
@@ -94,6 +105,7 @@ module PulpDebClient
|
|
94
105
|
# Check to see if the all the properties in the model are valid
|
95
106
|
# @return true if the model is valid
|
96
107
|
def valid?
|
108
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
97
109
|
return false if @source_package.nil?
|
98
110
|
return false if @release_component.nil?
|
99
111
|
true
|
@@ -125,37 +137,33 @@ module PulpDebClient
|
|
125
137
|
# @param [Hash] attributes Model attributes in the form of hash
|
126
138
|
# @return [Object] Returns the model itself
|
127
139
|
def self.build_from_hash(attributes)
|
128
|
-
new.build_from_hash(attributes)
|
129
|
-
end
|
130
|
-
|
131
|
-
# Builds the object from hash
|
132
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
133
|
-
# @return [Object] Returns the model itself
|
134
|
-
def build_from_hash(attributes)
|
135
140
|
return nil unless attributes.is_a?(Hash)
|
136
|
-
|
137
|
-
|
141
|
+
attributes = attributes.transform_keys(&:to_sym)
|
142
|
+
transformed_hash = {}
|
143
|
+
openapi_types.each_pair do |key, type|
|
144
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
145
|
+
transformed_hash["#{key}"] = nil
|
146
|
+
elsif type =~ /\AArray<(.*)>/i
|
138
147
|
# check to ensure the input is an array given that the attribute
|
139
148
|
# is documented as an array but the input is not
|
140
|
-
if attributes[
|
141
|
-
|
149
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
150
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
142
151
|
end
|
143
|
-
elsif !attributes[
|
144
|
-
|
145
|
-
end
|
152
|
+
elsif !attributes[attribute_map[key]].nil?
|
153
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
154
|
+
end
|
146
155
|
end
|
147
|
-
|
148
|
-
self
|
156
|
+
new(transformed_hash)
|
149
157
|
end
|
150
158
|
|
151
159
|
# Deserializes the data based on type
|
152
160
|
# @param string type Data type
|
153
161
|
# @param string value Value to be deserialized
|
154
162
|
# @return [Object] Deserialized data
|
155
|
-
def _deserialize(type, value)
|
163
|
+
def self._deserialize(type, value)
|
156
164
|
case type.to_sym
|
157
|
-
when :
|
158
|
-
|
165
|
+
when :Time
|
166
|
+
Time.parse(value)
|
159
167
|
when :Date
|
160
168
|
Date.parse(value)
|
161
169
|
when :String
|
@@ -185,7 +193,9 @@ module PulpDebClient
|
|
185
193
|
end
|
186
194
|
end
|
187
195
|
else # model
|
188
|
-
|
196
|
+
# models (e.g. Pet) or oneOf
|
197
|
+
klass = PulpDebClient.const_get(type)
|
198
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
189
199
|
end
|
190
200
|
end
|
191
201
|
|
@@ -211,7 +221,7 @@ module PulpDebClient
|
|
211
221
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
212
222
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
213
223
|
end
|
214
|
-
|
224
|
+
|
215
225
|
hash[param] = _to_hash(value)
|
216
226
|
end
|
217
227
|
hash
|
@@ -234,5 +244,7 @@ module PulpDebClient
|
|
234
244
|
value
|
235
245
|
end
|
236
246
|
end
|
247
|
+
|
237
248
|
end
|
249
|
+
|
238
250
|
end
|