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,14 +6,15 @@
|
|
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
|
-
class
|
17
|
+
class DebAptRemoteResponseHiddenFieldsInner
|
17
18
|
attr_accessor :name
|
18
19
|
|
19
20
|
attr_accessor :is_set
|
@@ -26,6 +27,11 @@ module PulpDebClient
|
|
26
27
|
}
|
27
28
|
end
|
28
29
|
|
30
|
+
# Returns all the JSON keys this model knows about
|
31
|
+
def self.acceptable_attributes
|
32
|
+
attribute_map.values
|
33
|
+
end
|
34
|
+
|
29
35
|
# Attribute type mapping.
|
30
36
|
def self.openapi_types
|
31
37
|
{
|
@@ -44,29 +50,34 @@ module PulpDebClient
|
|
44
50
|
# @param [Hash] attributes Model attributes in the form of hash
|
45
51
|
def initialize(attributes = {})
|
46
52
|
if (!attributes.is_a?(Hash))
|
47
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `PulpDebClient::
|
53
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `PulpDebClient::DebAptRemoteResponseHiddenFieldsInner` initialize method"
|
48
54
|
end
|
49
55
|
|
50
56
|
# check to see if the attribute exists and convert string to symbol for hash key
|
51
57
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
52
58
|
if (!self.class.attribute_map.key?(k.to_sym))
|
53
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `PulpDebClient::
|
59
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `PulpDebClient::DebAptRemoteResponseHiddenFieldsInner`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
54
60
|
end
|
55
61
|
h[k.to_sym] = v
|
56
62
|
}
|
57
63
|
|
58
64
|
if attributes.key?(:'name')
|
59
65
|
self.name = attributes[:'name']
|
66
|
+
else
|
67
|
+
self.name = nil
|
60
68
|
end
|
61
69
|
|
62
70
|
if attributes.key?(:'is_set')
|
63
71
|
self.is_set = attributes[:'is_set']
|
72
|
+
else
|
73
|
+
self.is_set = nil
|
64
74
|
end
|
65
75
|
end
|
66
76
|
|
67
77
|
# Show invalid properties with the reasons. Usually used together with valid?
|
68
78
|
# @return Array for valid properties with the reasons
|
69
79
|
def list_invalid_properties
|
80
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
70
81
|
invalid_properties = Array.new
|
71
82
|
if @name.nil?
|
72
83
|
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
@@ -82,6 +93,7 @@ module PulpDebClient
|
|
82
93
|
# Check to see if the all the properties in the model are valid
|
83
94
|
# @return true if the model is valid
|
84
95
|
def valid?
|
96
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
85
97
|
return false if @name.nil?
|
86
98
|
return false if @is_set.nil?
|
87
99
|
true
|
@@ -112,37 +124,33 @@ module PulpDebClient
|
|
112
124
|
# @param [Hash] attributes Model attributes in the form of hash
|
113
125
|
# @return [Object] Returns the model itself
|
114
126
|
def self.build_from_hash(attributes)
|
115
|
-
new.build_from_hash(attributes)
|
116
|
-
end
|
117
|
-
|
118
|
-
# Builds the object from hash
|
119
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
120
|
-
# @return [Object] Returns the model itself
|
121
|
-
def build_from_hash(attributes)
|
122
127
|
return nil unless attributes.is_a?(Hash)
|
123
|
-
|
124
|
-
|
128
|
+
attributes = attributes.transform_keys(&:to_sym)
|
129
|
+
transformed_hash = {}
|
130
|
+
openapi_types.each_pair do |key, type|
|
131
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
132
|
+
transformed_hash["#{key}"] = nil
|
133
|
+
elsif type =~ /\AArray<(.*)>/i
|
125
134
|
# check to ensure the input is an array given that the attribute
|
126
135
|
# is documented as an array but the input is not
|
127
|
-
if attributes[
|
128
|
-
|
136
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
137
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
129
138
|
end
|
130
|
-
elsif !attributes[
|
131
|
-
|
132
|
-
end
|
139
|
+
elsif !attributes[attribute_map[key]].nil?
|
140
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
141
|
+
end
|
133
142
|
end
|
134
|
-
|
135
|
-
self
|
143
|
+
new(transformed_hash)
|
136
144
|
end
|
137
145
|
|
138
146
|
# Deserializes the data based on type
|
139
147
|
# @param string type Data type
|
140
148
|
# @param string value Value to be deserialized
|
141
149
|
# @return [Object] Deserialized data
|
142
|
-
def _deserialize(type, value)
|
150
|
+
def self._deserialize(type, value)
|
143
151
|
case type.to_sym
|
144
|
-
when :
|
145
|
-
|
152
|
+
when :Time
|
153
|
+
Time.parse(value)
|
146
154
|
when :Date
|
147
155
|
Date.parse(value)
|
148
156
|
when :String
|
@@ -172,7 +180,9 @@ module PulpDebClient
|
|
172
180
|
end
|
173
181
|
end
|
174
182
|
else # model
|
175
|
-
|
183
|
+
# models (e.g. Pet) or oneOf
|
184
|
+
klass = PulpDebClient.const_get(type)
|
185
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
176
186
|
end
|
177
187
|
end
|
178
188
|
|
@@ -198,7 +208,7 @@ module PulpDebClient
|
|
198
208
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
199
209
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
200
210
|
end
|
201
|
-
|
211
|
+
|
202
212
|
hash[param] = _to_hash(value)
|
203
213
|
end
|
204
214
|
hash
|
@@ -221,5 +231,7 @@ module PulpDebClient
|
|
221
231
|
value
|
222
232
|
end
|
223
233
|
end
|
234
|
+
|
224
235
|
end
|
236
|
+
|
225
237
|
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 AptRepository.
|
@@ -52,6 +53,11 @@ 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
|
{
|
@@ -99,6 +105,8 @@ module PulpDebClient
|
|
99
105
|
|
100
106
|
if attributes.key?(:'name')
|
101
107
|
self.name = attributes[:'name']
|
108
|
+
else
|
109
|
+
self.name = nil
|
102
110
|
end
|
103
111
|
|
104
112
|
if attributes.key?(:'description')
|
@@ -131,6 +139,7 @@ module PulpDebClient
|
|
131
139
|
# Show invalid properties with the reasons. Usually used together with valid?
|
132
140
|
# @return Array for valid properties with the reasons
|
133
141
|
def list_invalid_properties
|
142
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
134
143
|
invalid_properties = Array.new
|
135
144
|
if @name.nil?
|
136
145
|
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
@@ -154,6 +163,7 @@ module PulpDebClient
|
|
154
163
|
# Check to see if the all the properties in the model are valid
|
155
164
|
# @return true if the model is valid
|
156
165
|
def valid?
|
166
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
157
167
|
return false if @name.nil?
|
158
168
|
return false if @name.to_s.length < 1
|
159
169
|
return false if !@description.nil? && @description.to_s.length < 1
|
@@ -226,37 +236,33 @@ module PulpDebClient
|
|
226
236
|
# @param [Hash] attributes Model attributes in the form of hash
|
227
237
|
# @return [Object] Returns the model itself
|
228
238
|
def self.build_from_hash(attributes)
|
229
|
-
new.build_from_hash(attributes)
|
230
|
-
end
|
231
|
-
|
232
|
-
# Builds the object from hash
|
233
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
234
|
-
# @return [Object] Returns the model itself
|
235
|
-
def build_from_hash(attributes)
|
236
239
|
return nil unless attributes.is_a?(Hash)
|
237
|
-
|
238
|
-
|
240
|
+
attributes = attributes.transform_keys(&:to_sym)
|
241
|
+
transformed_hash = {}
|
242
|
+
openapi_types.each_pair do |key, type|
|
243
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
244
|
+
transformed_hash["#{key}"] = nil
|
245
|
+
elsif type =~ /\AArray<(.*)>/i
|
239
246
|
# check to ensure the input is an array given that the attribute
|
240
247
|
# is documented as an array but the input is not
|
241
|
-
if attributes[
|
242
|
-
|
248
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
249
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
243
250
|
end
|
244
|
-
elsif !attributes[
|
245
|
-
|
246
|
-
end
|
251
|
+
elsif !attributes[attribute_map[key]].nil?
|
252
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
253
|
+
end
|
247
254
|
end
|
248
|
-
|
249
|
-
self
|
255
|
+
new(transformed_hash)
|
250
256
|
end
|
251
257
|
|
252
258
|
# Deserializes the data based on type
|
253
259
|
# @param string type Data type
|
254
260
|
# @param string value Value to be deserialized
|
255
261
|
# @return [Object] Deserialized data
|
256
|
-
def _deserialize(type, value)
|
262
|
+
def self._deserialize(type, value)
|
257
263
|
case type.to_sym
|
258
|
-
when :
|
259
|
-
|
264
|
+
when :Time
|
265
|
+
Time.parse(value)
|
260
266
|
when :Date
|
261
267
|
Date.parse(value)
|
262
268
|
when :String
|
@@ -286,7 +292,9 @@ module PulpDebClient
|
|
286
292
|
end
|
287
293
|
end
|
288
294
|
else # model
|
289
|
-
|
295
|
+
# models (e.g. Pet) or oneOf
|
296
|
+
klass = PulpDebClient.const_get(type)
|
297
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
290
298
|
end
|
291
299
|
end
|
292
300
|
|
@@ -312,7 +320,7 @@ module PulpDebClient
|
|
312
320
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
313
321
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
314
322
|
end
|
315
|
-
|
323
|
+
|
316
324
|
hash[param] = _to_hash(value)
|
317
325
|
end
|
318
326
|
hash
|
@@ -335,5 +343,7 @@ module PulpDebClient
|
|
335
343
|
value
|
336
344
|
end
|
337
345
|
end
|
346
|
+
|
338
347
|
end
|
348
|
+
|
339
349
|
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 AptRepository.
|
@@ -73,13 +74,18 @@ module PulpDebClient
|
|
73
74
|
}
|
74
75
|
end
|
75
76
|
|
77
|
+
# Returns all the JSON keys this model knows about
|
78
|
+
def self.acceptable_attributes
|
79
|
+
attribute_map.values
|
80
|
+
end
|
81
|
+
|
76
82
|
# Attribute type mapping.
|
77
83
|
def self.openapi_types
|
78
84
|
{
|
79
85
|
:'pulp_href' => :'String',
|
80
86
|
:'prn' => :'String',
|
81
|
-
:'pulp_created' => :'
|
82
|
-
:'pulp_last_updated' => :'
|
87
|
+
:'pulp_created' => :'Time',
|
88
|
+
:'pulp_last_updated' => :'Time',
|
83
89
|
:'versions_href' => :'String',
|
84
90
|
:'pulp_labels' => :'Hash<String, String>',
|
85
91
|
:'latest_version_href' => :'String',
|
@@ -150,6 +156,8 @@ module PulpDebClient
|
|
150
156
|
|
151
157
|
if attributes.key?(:'name')
|
152
158
|
self.name = attributes[:'name']
|
159
|
+
else
|
160
|
+
self.name = nil
|
153
161
|
end
|
154
162
|
|
155
163
|
if attributes.key?(:'description')
|
@@ -182,6 +190,7 @@ module PulpDebClient
|
|
182
190
|
# Show invalid properties with the reasons. Usually used together with valid?
|
183
191
|
# @return Array for valid properties with the reasons
|
184
192
|
def list_invalid_properties
|
193
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
185
194
|
invalid_properties = Array.new
|
186
195
|
if @name.nil?
|
187
196
|
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
@@ -197,6 +206,7 @@ module PulpDebClient
|
|
197
206
|
# Check to see if the all the properties in the model are valid
|
198
207
|
# @return true if the model is valid
|
199
208
|
def valid?
|
209
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
200
210
|
return false if @name.nil?
|
201
211
|
return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
202
212
|
true
|
@@ -249,37 +259,33 @@ module PulpDebClient
|
|
249
259
|
# @param [Hash] attributes Model attributes in the form of hash
|
250
260
|
# @return [Object] Returns the model itself
|
251
261
|
def self.build_from_hash(attributes)
|
252
|
-
new.build_from_hash(attributes)
|
253
|
-
end
|
254
|
-
|
255
|
-
# Builds the object from hash
|
256
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
257
|
-
# @return [Object] Returns the model itself
|
258
|
-
def build_from_hash(attributes)
|
259
262
|
return nil unless attributes.is_a?(Hash)
|
260
|
-
|
261
|
-
|
263
|
+
attributes = attributes.transform_keys(&:to_sym)
|
264
|
+
transformed_hash = {}
|
265
|
+
openapi_types.each_pair do |key, type|
|
266
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
267
|
+
transformed_hash["#{key}"] = nil
|
268
|
+
elsif type =~ /\AArray<(.*)>/i
|
262
269
|
# check to ensure the input is an array given that the attribute
|
263
270
|
# is documented as an array but the input is not
|
264
|
-
if attributes[
|
265
|
-
|
271
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
272
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
266
273
|
end
|
267
|
-
elsif !attributes[
|
268
|
-
|
269
|
-
end
|
274
|
+
elsif !attributes[attribute_map[key]].nil?
|
275
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
276
|
+
end
|
270
277
|
end
|
271
|
-
|
272
|
-
self
|
278
|
+
new(transformed_hash)
|
273
279
|
end
|
274
280
|
|
275
281
|
# Deserializes the data based on type
|
276
282
|
# @param string type Data type
|
277
283
|
# @param string value Value to be deserialized
|
278
284
|
# @return [Object] Deserialized data
|
279
|
-
def _deserialize(type, value)
|
285
|
+
def self._deserialize(type, value)
|
280
286
|
case type.to_sym
|
281
|
-
when :
|
282
|
-
|
287
|
+
when :Time
|
288
|
+
Time.parse(value)
|
283
289
|
when :Date
|
284
290
|
Date.parse(value)
|
285
291
|
when :String
|
@@ -309,7 +315,9 @@ module PulpDebClient
|
|
309
315
|
end
|
310
316
|
end
|
311
317
|
else # model
|
312
|
-
|
318
|
+
# models (e.g. Pet) or oneOf
|
319
|
+
klass = PulpDebClient.const_get(type)
|
320
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
313
321
|
end
|
314
322
|
end
|
315
323
|
|
@@ -335,7 +343,7 @@ module PulpDebClient
|
|
335
343
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
336
344
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
337
345
|
end
|
338
|
-
|
346
|
+
|
339
347
|
hash[param] = _to_hash(value)
|
340
348
|
end
|
341
349
|
hash
|
@@ -358,5 +366,7 @@ module PulpDebClient
|
|
358
366
|
value
|
359
367
|
end
|
360
368
|
end
|
369
|
+
|
361
370
|
end
|
371
|
+
|
362
372
|
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 GenericContent.
|
@@ -68,13 +69,18 @@ module PulpDebClient
|
|
68
69
|
}
|
69
70
|
end
|
70
71
|
|
72
|
+
# Returns all the JSON keys this model knows about
|
73
|
+
def self.acceptable_attributes
|
74
|
+
attribute_map.values
|
75
|
+
end
|
76
|
+
|
71
77
|
# Attribute type mapping.
|
72
78
|
def self.openapi_types
|
73
79
|
{
|
74
80
|
:'pulp_href' => :'String',
|
75
81
|
:'prn' => :'String',
|
76
|
-
:'pulp_created' => :'
|
77
|
-
:'pulp_last_updated' => :'
|
82
|
+
:'pulp_created' => :'Time',
|
83
|
+
:'pulp_last_updated' => :'Time',
|
78
84
|
:'artifact' => :'String',
|
79
85
|
:'relative_path' => :'String',
|
80
86
|
:'md5' => :'String',
|
@@ -129,6 +135,8 @@ module PulpDebClient
|
|
129
135
|
|
130
136
|
if attributes.key?(:'relative_path')
|
131
137
|
self.relative_path = attributes[:'relative_path']
|
138
|
+
else
|
139
|
+
self.relative_path = nil
|
132
140
|
end
|
133
141
|
|
134
142
|
if attributes.key?(:'md5')
|
@@ -159,6 +167,7 @@ module PulpDebClient
|
|
159
167
|
# Show invalid properties with the reasons. Usually used together with valid?
|
160
168
|
# @return Array for valid properties with the reasons
|
161
169
|
def list_invalid_properties
|
170
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
162
171
|
invalid_properties = Array.new
|
163
172
|
if @relative_path.nil?
|
164
173
|
invalid_properties.push('invalid value for "relative_path", relative_path cannot be nil.')
|
@@ -170,6 +179,7 @@ module PulpDebClient
|
|
170
179
|
# Check to see if the all the properties in the model are valid
|
171
180
|
# @return true if the model is valid
|
172
181
|
def valid?
|
182
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
173
183
|
return false if @relative_path.nil?
|
174
184
|
true
|
175
185
|
end
|
@@ -209,37 +219,33 @@ module PulpDebClient
|
|
209
219
|
# @param [Hash] attributes Model attributes in the form of hash
|
210
220
|
# @return [Object] Returns the model itself
|
211
221
|
def self.build_from_hash(attributes)
|
212
|
-
new.build_from_hash(attributes)
|
213
|
-
end
|
214
|
-
|
215
|
-
# Builds the object from hash
|
216
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
217
|
-
# @return [Object] Returns the model itself
|
218
|
-
def build_from_hash(attributes)
|
219
222
|
return nil unless attributes.is_a?(Hash)
|
220
|
-
|
221
|
-
|
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
|
222
229
|
# check to ensure the input is an array given that the attribute
|
223
230
|
# is documented as an array but the input is not
|
224
|
-
if attributes[
|
225
|
-
|
231
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
232
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
226
233
|
end
|
227
|
-
elsif !attributes[
|
228
|
-
|
229
|
-
end
|
234
|
+
elsif !attributes[attribute_map[key]].nil?
|
235
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
236
|
+
end
|
230
237
|
end
|
231
|
-
|
232
|
-
self
|
238
|
+
new(transformed_hash)
|
233
239
|
end
|
234
240
|
|
235
241
|
# Deserializes the data based on type
|
236
242
|
# @param string type Data type
|
237
243
|
# @param string value Value to be deserialized
|
238
244
|
# @return [Object] Deserialized data
|
239
|
-
def _deserialize(type, value)
|
245
|
+
def self._deserialize(type, value)
|
240
246
|
case type.to_sym
|
241
|
-
when :
|
242
|
-
|
247
|
+
when :Time
|
248
|
+
Time.parse(value)
|
243
249
|
when :Date
|
244
250
|
Date.parse(value)
|
245
251
|
when :String
|
@@ -269,7 +275,9 @@ module PulpDebClient
|
|
269
275
|
end
|
270
276
|
end
|
271
277
|
else # model
|
272
|
-
|
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)
|
273
281
|
end
|
274
282
|
end
|
275
283
|
|
@@ -295,7 +303,7 @@ module PulpDebClient
|
|
295
303
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
296
304
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
297
305
|
end
|
298
|
-
|
306
|
+
|
299
307
|
hash[param] = _to_hash(value)
|
300
308
|
end
|
301
309
|
hash
|
@@ -318,5 +326,7 @@ module PulpDebClient
|
|
318
326
|
value
|
319
327
|
end
|
320
328
|
end
|
329
|
+
|
321
330
|
end
|
331
|
+
|
322
332
|
end
|