pulp_deb_client 3.5.0 → 3.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +37 -9
- data/docs/AptRepositorySyncURL.md +12 -11
- data/docs/AsyncOperationResponse.md +8 -7
- data/docs/ContentGenericContentsApi.md +264 -64
- data/docs/ContentInstallerFileIndicesApi.md +259 -61
- data/docs/ContentInstallerPackagesApi.md +280 -80
- data/docs/ContentPackageIndicesApi.md +259 -61
- data/docs/ContentPackageReleaseComponentsApi.md +259 -61
- data/docs/ContentPackagesApi.md +294 -94
- data/docs/ContentReleaseArchitecturesApi.md +257 -59
- data/docs/ContentReleaseComponentsApi.md +258 -60
- data/docs/ContentReleaseFilesApi.md +259 -61
- data/docs/ContentReleasesApi.md +262 -64
- data/docs/ContentSourceIndicesApi.md +258 -60
- data/docs/ContentSourcePackagesApi.md +285 -87
- data/docs/ContentSourceReleaseComponentsApi.md +259 -61
- data/docs/ContentSummaryResponse.md +12 -11
- data/docs/Copy.md +12 -11
- data/docs/DebAptDistribution.md +20 -19
- data/docs/DebAptDistributionResponse.md +32 -31
- data/docs/DebAptPublication.md +18 -17
- data/docs/DebAptPublicationResponse.md +26 -25
- data/docs/DebAptRemote.md +64 -63
- data/docs/DebAptRemoteResponse.md +64 -63
- data/docs/DebAptRemoteResponseHiddenFieldsInner.md +20 -0
- data/docs/DebAptRepository.md +22 -21
- data/docs/DebAptRepositoryResponse.md +34 -33
- data/docs/DebCopyApi.md +30 -14
- data/docs/DebGenericContentResponse.md +32 -29
- data/docs/DebInstallerFileIndex.md +18 -15
- data/docs/DebInstallerFileIndexResponse.md +24 -21
- data/docs/DebInstallerPackageResponse.md +90 -87
- data/docs/DebPackageIndex.md +18 -15
- data/docs/DebPackageIndexResponse.md +24 -21
- data/docs/DebPackageReleaseComponent.md +14 -11
- data/docs/DebPackageReleaseComponentResponse.md +20 -17
- data/docs/DebPackageResponse.md +94 -91
- data/docs/DebRelease.md +28 -25
- data/docs/DebReleaseArchitecture.md +14 -11
- data/docs/DebReleaseArchitectureResponse.md +20 -17
- data/docs/DebReleaseComponent.md +14 -11
- data/docs/DebReleaseComponentResponse.md +22 -19
- data/docs/DebReleaseFile.md +20 -17
- data/docs/DebReleaseFileResponse.md +26 -23
- data/docs/DebReleaseResponse.md +34 -31
- data/docs/DebSourceIndex.md +18 -15
- data/docs/DebSourceIndexResponse.md +24 -21
- data/docs/DebSourcePackage.md +14 -11
- data/docs/DebSourcePackageReleaseComponent.md +14 -11
- data/docs/DebSourcePackageReleaseComponentResponse.md +20 -17
- data/docs/DebSourcePackageResponse.md +76 -73
- data/docs/DebVerbatimPublication.md +10 -9
- data/docs/DebVerbatimPublicationResponse.md +18 -17
- data/docs/DistributionsAptApi.md +387 -182
- data/docs/MyPermissionsResponse.md +8 -7
- data/docs/NestedRole.md +12 -11
- data/docs/NestedRoleResponse.md +12 -11
- data/docs/ObjectRolesResponse.md +8 -7
- data/docs/PaginatedRepositoryVersionResponseList.md +14 -13
- data/docs/PaginateddebAptDistributionResponseList.md +14 -13
- data/docs/PaginateddebAptPublicationResponseList.md +14 -13
- data/docs/PaginateddebAptRemoteResponseList.md +14 -13
- data/docs/PaginateddebAptRepositoryResponseList.md +14 -13
- data/docs/PaginateddebGenericContentResponseList.md +14 -13
- data/docs/PaginateddebInstallerFileIndexResponseList.md +14 -13
- data/docs/PaginateddebInstallerPackageResponseList.md +14 -13
- data/docs/PaginateddebPackageIndexResponseList.md +14 -13
- data/docs/PaginateddebPackageReleaseComponentResponseList.md +14 -13
- data/docs/PaginateddebPackageResponseList.md +14 -13
- data/docs/PaginateddebReleaseArchitectureResponseList.md +14 -13
- data/docs/PaginateddebReleaseComponentResponseList.md +14 -13
- data/docs/PaginateddebReleaseFileResponseList.md +14 -13
- data/docs/PaginateddebReleaseResponseList.md +14 -13
- data/docs/PaginateddebSourceIndexResponseList.md +14 -13
- data/docs/PaginateddebSourcePackageReleaseComponentResponseList.md +14 -13
- data/docs/PaginateddebSourcePackageResponseList.md +14 -13
- data/docs/PaginateddebVerbatimPublicationResponseList.md +14 -13
- data/docs/PatcheddebAptDistribution.md +20 -19
- data/docs/PatcheddebAptRemote.md +64 -63
- data/docs/PatcheddebAptRepository.md +22 -21
- data/docs/PolicyEnum.md +4 -5
- data/docs/PublicationsAptApi.md +269 -130
- data/docs/PublicationsVerbatimApi.md +269 -130
- data/docs/RemotesAptApi.md +389 -184
- data/docs/Repair.md +8 -7
- data/docs/RepositoriesAptApi.md +444 -207
- data/docs/RepositoriesAptVersionsApi.md +152 -82
- data/docs/RepositoryAddRemoveContent.md +12 -11
- data/docs/RepositoryVersionResponse.md +22 -21
- data/docs/SetLabel.md +10 -9
- data/docs/SetLabelResponse.md +10 -9
- data/docs/UnsetLabel.md +8 -7
- data/docs/UnsetLabelResponse.md +10 -9
- data/lib/pulp_deb_client/api/content_generic_contents_api.rb +177 -17
- data/lib/pulp_deb_client/api/content_installer_file_indices_api.rb +174 -17
- data/lib/pulp_deb_client/api/content_installer_packages_api.rb +177 -25
- data/lib/pulp_deb_client/api/content_package_indices_api.rb +174 -17
- data/lib/pulp_deb_client/api/content_package_release_components_api.rb +174 -17
- data/lib/pulp_deb_client/api/content_packages_api.rb +177 -25
- data/lib/pulp_deb_client/api/content_release_architectures_api.rb +174 -17
- data/lib/pulp_deb_client/api/content_release_components_api.rb +174 -17
- data/lib/pulp_deb_client/api/content_release_files_api.rb +174 -17
- data/lib/pulp_deb_client/api/content_releases_api.rb +174 -17
- data/lib/pulp_deb_client/api/content_source_indices_api.rb +174 -17
- data/lib/pulp_deb_client/api/content_source_packages_api.rb +174 -17
- data/lib/pulp_deb_client/api/content_source_release_components_api.rb +174 -17
- data/lib/pulp_deb_client/api/deb_copy_api.rb +10 -6
- data/lib/pulp_deb_client/api/distributions_apt_api.rb +95 -59
- data/lib/pulp_deb_client/api/publications_apt_api.rb +73 -50
- data/lib/pulp_deb_client/api/publications_verbatim_api.rb +73 -50
- data/lib/pulp_deb_client/api/remotes_apt_api.rb +104 -68
- data/lib/pulp_deb_client/api/repositories_apt_api.rb +107 -66
- data/lib/pulp_deb_client/api/repositories_apt_versions_api.rb +40 -30
- data/lib/pulp_deb_client/api_client.rb +137 -102
- data/lib/pulp_deb_client/api_error.rb +2 -1
- data/lib/pulp_deb_client/configuration.rb +162 -21
- data/lib/pulp_deb_client/models/apt_repository_sync_url.rb +30 -22
- data/lib/pulp_deb_client/models/async_operation_response.rb +32 -22
- data/lib/pulp_deb_client/models/content_summary_response.rb +36 -22
- data/lib/pulp_deb_client/models/copy.rb +34 -28
- data/lib/pulp_deb_client/models/deb_apt_distribution.rb +34 -22
- data/lib/pulp_deb_client/models/deb_apt_distribution_response.rb +36 -24
- data/lib/pulp_deb_client/models/deb_apt_publication.rb +30 -22
- data/lib/pulp_deb_client/models/deb_apt_publication_response.rb +32 -24
- data/lib/pulp_deb_client/models/deb_apt_remote.rb +58 -22
- data/lib/pulp_deb_client/models/deb_apt_remote_response.rb +61 -25
- data/lib/pulp_deb_client/models/{deb_apt_remote_response_hidden_fields.rb → deb_apt_remote_response_hidden_fields_inner.rb} +37 -25
- data/lib/pulp_deb_client/models/deb_apt_repository.rb +32 -22
- data/lib/pulp_deb_client/models/deb_apt_repository_response.rb +34 -24
- data/lib/pulp_deb_client/models/deb_generic_content_response.rb +47 -25
- data/lib/pulp_deb_client/models/deb_installer_file_index.rb +54 -24
- data/lib/pulp_deb_client/models/deb_installer_file_index_response.rb +51 -25
- data/lib/pulp_deb_client/models/deb_installer_package_response.rb +45 -25
- data/lib/pulp_deb_client/models/deb_package_index.rb +60 -26
- data/lib/pulp_deb_client/models/deb_package_index_response.rb +47 -25
- data/lib/pulp_deb_client/models/deb_package_release_component.rb +47 -23
- data/lib/pulp_deb_client/models/deb_package_release_component_response.rb +49 -25
- data/lib/pulp_deb_client/models/deb_package_response.rb +45 -25
- data/lib/pulp_deb_client/models/deb_release.rb +49 -23
- data/lib/pulp_deb_client/models/deb_release_architecture.rb +47 -23
- data/lib/pulp_deb_client/models/deb_release_architecture_response.rb +49 -25
- data/lib/pulp_deb_client/models/deb_release_component.rb +47 -23
- data/lib/pulp_deb_client/models/deb_release_component_response.rb +49 -25
- data/lib/pulp_deb_client/models/deb_release_file.rb +62 -26
- data/lib/pulp_deb_client/models/deb_release_file_response.rb +49 -25
- data/lib/pulp_deb_client/models/deb_release_response.rb +51 -25
- data/lib/pulp_deb_client/models/deb_source_index.rb +54 -24
- data/lib/pulp_deb_client/models/deb_source_index_response.rb +51 -25
- data/lib/pulp_deb_client/models/deb_source_package.rb +50 -24
- data/lib/pulp_deb_client/models/deb_source_package_release_component.rb +47 -23
- data/lib/pulp_deb_client/models/deb_source_package_release_component_response.rb +49 -25
- data/lib/pulp_deb_client/models/deb_source_package_response.rb +47 -25
- data/lib/pulp_deb_client/models/deb_verbatim_publication.rb +30 -22
- data/lib/pulp_deb_client/models/deb_verbatim_publication_response.rb +32 -24
- data/lib/pulp_deb_client/models/my_permissions_response.rb +32 -22
- data/lib/pulp_deb_client/models/nested_role.rb +32 -22
- data/lib/pulp_deb_client/models/nested_role_response.rb +32 -22
- data/lib/pulp_deb_client/models/object_roles_response.rb +32 -22
- data/lib/pulp_deb_client/models/paginated_repository_version_response_list.rb +34 -22
- data/lib/pulp_deb_client/models/paginateddeb_apt_distribution_response_list.rb +34 -22
- data/lib/pulp_deb_client/models/paginateddeb_apt_publication_response_list.rb +34 -22
- data/lib/pulp_deb_client/models/paginateddeb_apt_remote_response_list.rb +34 -22
- data/lib/pulp_deb_client/models/paginateddeb_apt_repository_response_list.rb +34 -22
- data/lib/pulp_deb_client/models/paginateddeb_generic_content_response_list.rb +34 -22
- data/lib/pulp_deb_client/models/paginateddeb_installer_file_index_response_list.rb +34 -22
- data/lib/pulp_deb_client/models/paginateddeb_installer_package_response_list.rb +34 -22
- data/lib/pulp_deb_client/models/paginateddeb_package_index_response_list.rb +34 -22
- data/lib/pulp_deb_client/models/paginateddeb_package_release_component_response_list.rb +34 -22
- data/lib/pulp_deb_client/models/paginateddeb_package_response_list.rb +34 -22
- data/lib/pulp_deb_client/models/paginateddeb_release_architecture_response_list.rb +34 -22
- data/lib/pulp_deb_client/models/paginateddeb_release_component_response_list.rb +34 -22
- data/lib/pulp_deb_client/models/paginateddeb_release_file_response_list.rb +34 -22
- data/lib/pulp_deb_client/models/paginateddeb_release_response_list.rb +34 -22
- data/lib/pulp_deb_client/models/paginateddeb_source_index_response_list.rb +34 -22
- data/lib/pulp_deb_client/models/paginateddeb_source_package_release_component_response_list.rb +34 -22
- data/lib/pulp_deb_client/models/paginateddeb_source_package_response_list.rb +34 -22
- data/lib/pulp_deb_client/models/paginateddeb_verbatim_publication_response_list.rb +34 -22
- data/lib/pulp_deb_client/models/patcheddeb_apt_distribution.rb +40 -24
- data/lib/pulp_deb_client/models/patcheddeb_apt_remote.rb +67 -25
- data/lib/pulp_deb_client/models/patcheddeb_apt_repository.rb +35 -23
- data/lib/pulp_deb_client/models/policy_enum.rb +8 -4
- data/lib/pulp_deb_client/models/repair.rb +30 -22
- data/lib/pulp_deb_client/models/repository_add_remove_content.rb +30 -22
- data/lib/pulp_deb_client/models/repository_version_response.rb +32 -24
- data/lib/pulp_deb_client/models/set_label.rb +34 -22
- data/lib/pulp_deb_client/models/set_label_response.rb +34 -22
- data/lib/pulp_deb_client/models/unset_label.rb +33 -23
- data/lib/pulp_deb_client/models/unset_label_response.rb +33 -23
- data/lib/pulp_deb_client/version.rb +2 -2
- data/lib/pulp_deb_client.rb +2 -5
- data/pulp_deb_client.gemspec +7 -5
- data/spec/api/content_generic_contents_api_spec.rb +33 -5
- data/spec/api/content_installer_file_indices_api_spec.rb +32 -5
- data/spec/api/content_installer_packages_api_spec.rb +33 -5
- data/spec/api/content_package_indices_api_spec.rb +32 -5
- data/spec/api/content_package_release_components_api_spec.rb +32 -5
- data/spec/api/content_packages_api_spec.rb +33 -5
- data/spec/api/content_release_architectures_api_spec.rb +32 -5
- data/spec/api/content_release_components_api_spec.rb +32 -5
- data/spec/api/content_release_files_api_spec.rb +32 -5
- data/spec/api/content_releases_api_spec.rb +32 -5
- data/spec/api/content_source_indices_api_spec.rb +32 -5
- data/spec/api/content_source_packages_api_spec.rb +32 -5
- data/spec/api/content_source_release_components_api_spec.rb +32 -5
- data/spec/api/deb_copy_api_spec.rb +2 -2
- data/spec/api/distributions_apt_api_spec.rb +15 -14
- data/spec/api/publications_apt_api_spec.rb +18 -16
- data/spec/api/publications_verbatim_api_spec.rb +18 -16
- data/spec/api/remotes_apt_api_spec.rb +20 -19
- data/spec/api/repositories_apt_api_spec.rb +15 -15
- data/spec/api/repositories_apt_versions_api_spec.rb +12 -11
- data/spec/models/apt_repository_sync_url_spec.rb +9 -14
- data/spec/models/async_operation_response_spec.rb +7 -12
- data/spec/models/content_summary_response_spec.rb +9 -14
- data/spec/models/copy_spec.rb +9 -14
- data/spec/models/deb_apt_distribution_response_spec.rb +19 -24
- data/spec/models/deb_apt_distribution_spec.rb +13 -18
- data/spec/models/deb_apt_publication_response_spec.rb +16 -21
- data/spec/models/deb_apt_publication_spec.rb +12 -17
- data/spec/models/{deb_apt_remote_response_hidden_fields_spec.rb → deb_apt_remote_response_hidden_fields_inner_spec.rb} +11 -16
- data/spec/models/deb_apt_remote_response_spec.rb +35 -40
- data/spec/models/deb_apt_remote_spec.rb +35 -40
- data/spec/models/deb_apt_repository_response_spec.rb +20 -25
- data/spec/models/deb_apt_repository_spec.rb +14 -19
- data/spec/models/deb_generic_content_response_spec.rb +24 -23
- data/spec/models/deb_installer_file_index_response_spec.rb +20 -19
- data/spec/models/deb_installer_file_index_spec.rb +17 -16
- data/spec/models/deb_installer_package_response_spec.rb +53 -52
- data/spec/models/deb_package_index_response_spec.rb +20 -19
- data/spec/models/deb_package_index_spec.rb +17 -16
- data/spec/models/deb_package_release_component_response_spec.rb +18 -17
- data/spec/models/deb_package_release_component_spec.rb +15 -14
- data/spec/models/deb_package_response_spec.rb +55 -54
- data/spec/models/deb_release_architecture_response_spec.rb +18 -17
- data/spec/models/deb_release_architecture_spec.rb +15 -14
- data/spec/models/deb_release_component_response_spec.rb +19 -18
- data/spec/models/deb_release_component_spec.rb +15 -14
- data/spec/models/deb_release_file_response_spec.rb +21 -20
- data/spec/models/deb_release_file_spec.rb +18 -17
- data/spec/models/deb_release_response_spec.rb +25 -24
- data/spec/models/deb_release_spec.rb +22 -21
- data/spec/models/deb_source_index_response_spec.rb +20 -19
- data/spec/models/deb_source_index_spec.rb +17 -16
- data/spec/models/deb_source_package_release_component_response_spec.rb +18 -17
- data/spec/models/deb_source_package_release_component_spec.rb +15 -14
- data/spec/models/deb_source_package_response_spec.rb +46 -45
- data/spec/models/deb_source_package_spec.rb +15 -14
- data/spec/models/deb_verbatim_publication_response_spec.rb +12 -17
- data/spec/models/deb_verbatim_publication_spec.rb +8 -13
- data/spec/models/my_permissions_response_spec.rb +7 -12
- data/spec/models/nested_role_response_spec.rb +9 -14
- data/spec/models/nested_role_spec.rb +9 -14
- data/spec/models/object_roles_response_spec.rb +7 -12
- data/spec/models/paginated_repository_version_response_list_spec.rb +10 -15
- data/spec/models/paginateddeb_apt_distribution_response_list_spec.rb +10 -15
- data/spec/models/paginateddeb_apt_publication_response_list_spec.rb +10 -15
- data/spec/models/paginateddeb_apt_remote_response_list_spec.rb +10 -15
- data/spec/models/paginateddeb_apt_repository_response_list_spec.rb +10 -15
- data/spec/models/paginateddeb_generic_content_response_list_spec.rb +10 -15
- data/spec/models/paginateddeb_installer_file_index_response_list_spec.rb +10 -15
- data/spec/models/paginateddeb_installer_package_response_list_spec.rb +10 -15
- data/spec/models/paginateddeb_package_index_response_list_spec.rb +10 -15
- data/spec/models/paginateddeb_package_release_component_response_list_spec.rb +10 -15
- data/spec/models/paginateddeb_package_response_list_spec.rb +10 -15
- data/spec/models/paginateddeb_release_architecture_response_list_spec.rb +10 -15
- data/spec/models/paginateddeb_release_component_response_list_spec.rb +10 -15
- data/spec/models/paginateddeb_release_file_response_list_spec.rb +10 -15
- data/spec/models/paginateddeb_release_response_list_spec.rb +10 -15
- data/spec/models/paginateddeb_source_index_response_list_spec.rb +10 -15
- data/spec/models/paginateddeb_source_package_release_component_response_list_spec.rb +10 -15
- data/spec/models/paginateddeb_source_package_response_list_spec.rb +10 -15
- data/spec/models/paginateddeb_verbatim_publication_response_list_spec.rb +10 -15
- data/spec/models/patcheddeb_apt_distribution_spec.rb +13 -18
- data/spec/models/patcheddeb_apt_remote_spec.rb +35 -40
- data/spec/models/patcheddeb_apt_repository_spec.rb +14 -19
- data/spec/models/policy_enum_spec.rb +6 -11
- data/spec/models/repair_spec.rb +7 -12
- data/spec/models/repository_add_remove_content_spec.rb +9 -14
- data/spec/models/repository_version_response_spec.rb +14 -19
- data/spec/models/set_label_response_spec.rb +8 -13
- data/spec/models/set_label_spec.rb +8 -13
- data/spec/models/unset_label_response_spec.rb +8 -13
- data/spec/models/unset_label_spec.rb +7 -12
- data/spec/spec_helper.rb +1 -1
- metadata +92 -100
- data/docs/DebAptRemoteResponseHiddenFields.md +0 -19
- data/docs/DebGenericContent.md +0 -27
- data/docs/DebInstallerPackage.md +0 -27
- data/docs/DebPackage.md +0 -31
- data/lib/pulp_deb_client/models/deb_generic_content.rb +0 -297
- data/lib/pulp_deb_client/models/deb_installer_package.rb +0 -288
- data/lib/pulp_deb_client/models/deb_package.rb +0 -338
- data/spec/api_client_spec.rb +0 -188
- data/spec/configuration_spec.rb +0 -42
- data/spec/models/deb_generic_content_spec.rb +0 -71
- data/spec/models/deb_installer_package_spec.rb +0 -71
- data/spec/models/deb_package_spec.rb +0 -83
@@ -6,11 +6,12 @@
|
|
6
6
|
The version of the OpenAPI document: v3
|
7
7
|
Contact: pulp-list@redhat.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
|
9
|
+
Generator version: 7.10.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
13
13
|
require 'date'
|
14
|
+
require 'time'
|
14
15
|
|
15
16
|
module PulpDebClient
|
16
17
|
# A serializer for SourceIndex.
|
@@ -26,6 +27,9 @@ module PulpDebClient
|
|
26
27
|
# Timestamp of the last time this resource was updated. Note: for immutable resources - like content, repository versions, and publication - pulp_created and pulp_last_updated dates will be the same.
|
27
28
|
attr_accessor :pulp_last_updated
|
28
29
|
|
30
|
+
# A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
|
31
|
+
attr_accessor :pulp_labels
|
32
|
+
|
29
33
|
# A dict mapping relative paths inside the Content to the correspondingArtifact URLs. E.g.: {'relative/path': '/artifacts/1/'
|
30
34
|
attr_accessor :artifacts
|
31
35
|
|
@@ -45,6 +49,7 @@ module PulpDebClient
|
|
45
49
|
:'prn' => :'prn',
|
46
50
|
:'pulp_created' => :'pulp_created',
|
47
51
|
:'pulp_last_updated' => :'pulp_last_updated',
|
52
|
+
:'pulp_labels' => :'pulp_labels',
|
48
53
|
:'artifacts' => :'artifacts',
|
49
54
|
:'release' => :'release',
|
50
55
|
:'component' => :'component',
|
@@ -52,13 +57,19 @@ module PulpDebClient
|
|
52
57
|
}
|
53
58
|
end
|
54
59
|
|
60
|
+
# Returns all the JSON keys this model knows about
|
61
|
+
def self.acceptable_attributes
|
62
|
+
attribute_map.values
|
63
|
+
end
|
64
|
+
|
55
65
|
# Attribute type mapping.
|
56
66
|
def self.openapi_types
|
57
67
|
{
|
58
68
|
:'pulp_href' => :'String',
|
59
69
|
:'prn' => :'String',
|
60
|
-
:'pulp_created' => :'
|
61
|
-
:'pulp_last_updated' => :'
|
70
|
+
:'pulp_created' => :'Time',
|
71
|
+
:'pulp_last_updated' => :'Time',
|
72
|
+
:'pulp_labels' => :'Hash<String, String>',
|
62
73
|
:'artifacts' => :'Object',
|
63
74
|
:'release' => :'String',
|
64
75
|
:'component' => :'String',
|
@@ -103,16 +114,28 @@ module PulpDebClient
|
|
103
114
|
self.pulp_last_updated = attributes[:'pulp_last_updated']
|
104
115
|
end
|
105
116
|
|
117
|
+
if attributes.key?(:'pulp_labels')
|
118
|
+
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
119
|
+
self.pulp_labels = value
|
120
|
+
end
|
121
|
+
end
|
122
|
+
|
106
123
|
if attributes.key?(:'artifacts')
|
107
124
|
self.artifacts = attributes[:'artifacts']
|
125
|
+
else
|
126
|
+
self.artifacts = nil
|
108
127
|
end
|
109
128
|
|
110
129
|
if attributes.key?(:'release')
|
111
130
|
self.release = attributes[:'release']
|
131
|
+
else
|
132
|
+
self.release = nil
|
112
133
|
end
|
113
134
|
|
114
135
|
if attributes.key?(:'component')
|
115
136
|
self.component = attributes[:'component']
|
137
|
+
else
|
138
|
+
self.component = nil
|
116
139
|
end
|
117
140
|
|
118
141
|
if attributes.key?(:'relative_path')
|
@@ -123,6 +146,7 @@ module PulpDebClient
|
|
123
146
|
# Show invalid properties with the reasons. Usually used together with valid?
|
124
147
|
# @return Array for valid properties with the reasons
|
125
148
|
def list_invalid_properties
|
149
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
126
150
|
invalid_properties = Array.new
|
127
151
|
if @artifacts.nil?
|
128
152
|
invalid_properties.push('invalid value for "artifacts", artifacts cannot be nil.')
|
@@ -142,6 +166,7 @@ module PulpDebClient
|
|
142
166
|
# Check to see if the all the properties in the model are valid
|
143
167
|
# @return true if the model is valid
|
144
168
|
def valid?
|
169
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
145
170
|
return false if @artifacts.nil?
|
146
171
|
return false if @release.nil?
|
147
172
|
return false if @component.nil?
|
@@ -157,6 +182,7 @@ module PulpDebClient
|
|
157
182
|
prn == o.prn &&
|
158
183
|
pulp_created == o.pulp_created &&
|
159
184
|
pulp_last_updated == o.pulp_last_updated &&
|
185
|
+
pulp_labels == o.pulp_labels &&
|
160
186
|
artifacts == o.artifacts &&
|
161
187
|
release == o.release &&
|
162
188
|
component == o.component &&
|
@@ -172,44 +198,40 @@ module PulpDebClient
|
|
172
198
|
# Calculates hash code according to all attributes.
|
173
199
|
# @return [Integer] Hash code
|
174
200
|
def hash
|
175
|
-
[pulp_href, prn, pulp_created, pulp_last_updated, artifacts, release, component, relative_path].hash
|
201
|
+
[pulp_href, prn, pulp_created, pulp_last_updated, pulp_labels, artifacts, release, component, relative_path].hash
|
176
202
|
end
|
177
203
|
|
178
204
|
# Builds the object from hash
|
179
205
|
# @param [Hash] attributes Model attributes in the form of hash
|
180
206
|
# @return [Object] Returns the model itself
|
181
207
|
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
208
|
return nil unless attributes.is_a?(Hash)
|
190
|
-
|
191
|
-
|
209
|
+
attributes = attributes.transform_keys(&:to_sym)
|
210
|
+
transformed_hash = {}
|
211
|
+
openapi_types.each_pair do |key, type|
|
212
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
213
|
+
transformed_hash["#{key}"] = nil
|
214
|
+
elsif type =~ /\AArray<(.*)>/i
|
192
215
|
# check to ensure the input is an array given that the attribute
|
193
216
|
# is documented as an array but the input is not
|
194
|
-
if attributes[
|
195
|
-
|
217
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
218
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
196
219
|
end
|
197
|
-
elsif !attributes[
|
198
|
-
|
199
|
-
end
|
220
|
+
elsif !attributes[attribute_map[key]].nil?
|
221
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
222
|
+
end
|
200
223
|
end
|
201
|
-
|
202
|
-
self
|
224
|
+
new(transformed_hash)
|
203
225
|
end
|
204
226
|
|
205
227
|
# Deserializes the data based on type
|
206
228
|
# @param string type Data type
|
207
229
|
# @param string value Value to be deserialized
|
208
230
|
# @return [Object] Deserialized data
|
209
|
-
def _deserialize(type, value)
|
231
|
+
def self._deserialize(type, value)
|
210
232
|
case type.to_sym
|
211
|
-
when :
|
212
|
-
|
233
|
+
when :Time
|
234
|
+
Time.parse(value)
|
213
235
|
when :Date
|
214
236
|
Date.parse(value)
|
215
237
|
when :String
|
@@ -239,7 +261,9 @@ module PulpDebClient
|
|
239
261
|
end
|
240
262
|
end
|
241
263
|
else # model
|
242
|
-
|
264
|
+
# models (e.g. Pet) or oneOf
|
265
|
+
klass = PulpDebClient.const_get(type)
|
266
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
243
267
|
end
|
244
268
|
end
|
245
269
|
|
@@ -265,7 +289,7 @@ module PulpDebClient
|
|
265
289
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
266
290
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
267
291
|
end
|
268
|
-
|
292
|
+
|
269
293
|
hash[param] = _to_hash(value)
|
270
294
|
end
|
271
295
|
hash
|
@@ -288,5 +312,7 @@ module PulpDebClient
|
|
288
312
|
value
|
289
313
|
end
|
290
314
|
end
|
315
|
+
|
291
316
|
end
|
317
|
+
|
292
318
|
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.
|
@@ -18,6 +19,9 @@ module PulpDebClient
|
|
18
19
|
# A URI of a repository the new content unit should be associated with.
|
19
20
|
attr_accessor :repository
|
20
21
|
|
22
|
+
# A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
|
23
|
+
attr_accessor :pulp_labels
|
24
|
+
|
21
25
|
# Artifact URL of the Debian Source Control (dsc) file.
|
22
26
|
attr_accessor :artifact
|
23
27
|
|
@@ -28,15 +32,22 @@ module PulpDebClient
|
|
28
32
|
def self.attribute_map
|
29
33
|
{
|
30
34
|
:'repository' => :'repository',
|
35
|
+
:'pulp_labels' => :'pulp_labels',
|
31
36
|
:'artifact' => :'artifact',
|
32
37
|
:'relative_path' => :'relative_path'
|
33
38
|
}
|
34
39
|
end
|
35
40
|
|
41
|
+
# Returns all the JSON keys this model knows about
|
42
|
+
def self.acceptable_attributes
|
43
|
+
attribute_map.values
|
44
|
+
end
|
45
|
+
|
36
46
|
# Attribute type mapping.
|
37
47
|
def self.openapi_types
|
38
48
|
{
|
39
49
|
:'repository' => :'String',
|
50
|
+
:'pulp_labels' => :'Hash<String, String>',
|
40
51
|
:'artifact' => :'String',
|
41
52
|
:'relative_path' => :'String'
|
42
53
|
}
|
@@ -67,8 +78,16 @@ module PulpDebClient
|
|
67
78
|
self.repository = attributes[:'repository']
|
68
79
|
end
|
69
80
|
|
81
|
+
if attributes.key?(:'pulp_labels')
|
82
|
+
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
83
|
+
self.pulp_labels = value
|
84
|
+
end
|
85
|
+
end
|
86
|
+
|
70
87
|
if attributes.key?(:'artifact')
|
71
88
|
self.artifact = attributes[:'artifact']
|
89
|
+
else
|
90
|
+
self.artifact = nil
|
72
91
|
end
|
73
92
|
|
74
93
|
if attributes.key?(:'relative_path')
|
@@ -79,6 +98,7 @@ module PulpDebClient
|
|
79
98
|
# Show invalid properties with the reasons. Usually used together with valid?
|
80
99
|
# @return Array for valid properties with the reasons
|
81
100
|
def list_invalid_properties
|
101
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
82
102
|
invalid_properties = Array.new
|
83
103
|
if @artifact.nil?
|
84
104
|
invalid_properties.push('invalid value for "artifact", artifact cannot be nil.')
|
@@ -94,6 +114,7 @@ module PulpDebClient
|
|
94
114
|
# Check to see if the all the properties in the model are valid
|
95
115
|
# @return true if the model is valid
|
96
116
|
def valid?
|
117
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
97
118
|
return false if @artifact.nil?
|
98
119
|
return false if !@relative_path.nil? && @relative_path.to_s.length < 1
|
99
120
|
true
|
@@ -102,7 +123,11 @@ module PulpDebClient
|
|
102
123
|
# Custom attribute writer method with validation
|
103
124
|
# @param [Object] relative_path Value to be assigned
|
104
125
|
def relative_path=(relative_path)
|
105
|
-
if
|
126
|
+
if relative_path.nil?
|
127
|
+
fail ArgumentError, 'relative_path cannot be nil'
|
128
|
+
end
|
129
|
+
|
130
|
+
if relative_path.to_s.length < 1
|
106
131
|
fail ArgumentError, 'invalid value for "relative_path", the character length must be great than or equal to 1.'
|
107
132
|
end
|
108
133
|
|
@@ -115,6 +140,7 @@ module PulpDebClient
|
|
115
140
|
return true if self.equal?(o)
|
116
141
|
self.class == o.class &&
|
117
142
|
repository == o.repository &&
|
143
|
+
pulp_labels == o.pulp_labels &&
|
118
144
|
artifact == o.artifact &&
|
119
145
|
relative_path == o.relative_path
|
120
146
|
end
|
@@ -128,44 +154,40 @@ module PulpDebClient
|
|
128
154
|
# Calculates hash code according to all attributes.
|
129
155
|
# @return [Integer] Hash code
|
130
156
|
def hash
|
131
|
-
[repository, artifact, relative_path].hash
|
157
|
+
[repository, pulp_labels, artifact, relative_path].hash
|
132
158
|
end
|
133
159
|
|
134
160
|
# Builds the object from hash
|
135
161
|
# @param [Hash] attributes Model attributes in the form of hash
|
136
162
|
# @return [Object] Returns the model itself
|
137
163
|
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
164
|
return nil unless attributes.is_a?(Hash)
|
146
|
-
|
147
|
-
|
165
|
+
attributes = attributes.transform_keys(&:to_sym)
|
166
|
+
transformed_hash = {}
|
167
|
+
openapi_types.each_pair do |key, type|
|
168
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
169
|
+
transformed_hash["#{key}"] = nil
|
170
|
+
elsif type =~ /\AArray<(.*)>/i
|
148
171
|
# check to ensure the input is an array given that the attribute
|
149
172
|
# is documented as an array but the input is not
|
150
|
-
if attributes[
|
151
|
-
|
173
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
174
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
152
175
|
end
|
153
|
-
elsif !attributes[
|
154
|
-
|
155
|
-
end
|
176
|
+
elsif !attributes[attribute_map[key]].nil?
|
177
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
178
|
+
end
|
156
179
|
end
|
157
|
-
|
158
|
-
self
|
180
|
+
new(transformed_hash)
|
159
181
|
end
|
160
182
|
|
161
183
|
# Deserializes the data based on type
|
162
184
|
# @param string type Data type
|
163
185
|
# @param string value Value to be deserialized
|
164
186
|
# @return [Object] Deserialized data
|
165
|
-
def _deserialize(type, value)
|
187
|
+
def self._deserialize(type, value)
|
166
188
|
case type.to_sym
|
167
|
-
when :
|
168
|
-
|
189
|
+
when :Time
|
190
|
+
Time.parse(value)
|
169
191
|
when :Date
|
170
192
|
Date.parse(value)
|
171
193
|
when :String
|
@@ -195,7 +217,9 @@ module PulpDebClient
|
|
195
217
|
end
|
196
218
|
end
|
197
219
|
else # model
|
198
|
-
|
220
|
+
# models (e.g. Pet) or oneOf
|
221
|
+
klass = PulpDebClient.const_get(type)
|
222
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
199
223
|
end
|
200
224
|
end
|
201
225
|
|
@@ -221,7 +245,7 @@ module PulpDebClient
|
|
221
245
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
222
246
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
223
247
|
end
|
224
|
-
|
248
|
+
|
225
249
|
hash[param] = _to_hash(value)
|
226
250
|
end
|
227
251
|
hash
|
@@ -244,5 +268,7 @@ module PulpDebClient
|
|
244
268
|
value
|
245
269
|
end
|
246
270
|
end
|
271
|
+
|
247
272
|
end
|
273
|
+
|
248
274
|
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.
|
@@ -18,6 +19,9 @@ module PulpDebClient
|
|
18
19
|
# A URI of a repository the new content unit should be associated with.
|
19
20
|
attr_accessor :repository
|
20
21
|
|
22
|
+
# A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
|
23
|
+
attr_accessor :pulp_labels
|
24
|
+
|
21
25
|
# Source package that is contained in release_component.
|
22
26
|
attr_accessor :source_package
|
23
27
|
|
@@ -28,15 +32,22 @@ module PulpDebClient
|
|
28
32
|
def self.attribute_map
|
29
33
|
{
|
30
34
|
:'repository' => :'repository',
|
35
|
+
:'pulp_labels' => :'pulp_labels',
|
31
36
|
:'source_package' => :'source_package',
|
32
37
|
:'release_component' => :'release_component'
|
33
38
|
}
|
34
39
|
end
|
35
40
|
|
41
|
+
# Returns all the JSON keys this model knows about
|
42
|
+
def self.acceptable_attributes
|
43
|
+
attribute_map.values
|
44
|
+
end
|
45
|
+
|
36
46
|
# Attribute type mapping.
|
37
47
|
def self.openapi_types
|
38
48
|
{
|
39
49
|
:'repository' => :'String',
|
50
|
+
:'pulp_labels' => :'Hash<String, String>',
|
40
51
|
:'source_package' => :'String',
|
41
52
|
:'release_component' => :'String'
|
42
53
|
}
|
@@ -67,18 +78,29 @@ module PulpDebClient
|
|
67
78
|
self.repository = attributes[:'repository']
|
68
79
|
end
|
69
80
|
|
81
|
+
if attributes.key?(:'pulp_labels')
|
82
|
+
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
83
|
+
self.pulp_labels = value
|
84
|
+
end
|
85
|
+
end
|
86
|
+
|
70
87
|
if attributes.key?(:'source_package')
|
71
88
|
self.source_package = attributes[:'source_package']
|
89
|
+
else
|
90
|
+
self.source_package = nil
|
72
91
|
end
|
73
92
|
|
74
93
|
if attributes.key?(:'release_component')
|
75
94
|
self.release_component = attributes[:'release_component']
|
95
|
+
else
|
96
|
+
self.release_component = nil
|
76
97
|
end
|
77
98
|
end
|
78
99
|
|
79
100
|
# Show invalid properties with the reasons. Usually used together with valid?
|
80
101
|
# @return Array for valid properties with the reasons
|
81
102
|
def list_invalid_properties
|
103
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
82
104
|
invalid_properties = Array.new
|
83
105
|
if @source_package.nil?
|
84
106
|
invalid_properties.push('invalid value for "source_package", source_package cannot be nil.')
|
@@ -94,6 +116,7 @@ module PulpDebClient
|
|
94
116
|
# Check to see if the all the properties in the model are valid
|
95
117
|
# @return true if the model is valid
|
96
118
|
def valid?
|
119
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
97
120
|
return false if @source_package.nil?
|
98
121
|
return false if @release_component.nil?
|
99
122
|
true
|
@@ -105,6 +128,7 @@ module PulpDebClient
|
|
105
128
|
return true if self.equal?(o)
|
106
129
|
self.class == o.class &&
|
107
130
|
repository == o.repository &&
|
131
|
+
pulp_labels == o.pulp_labels &&
|
108
132
|
source_package == o.source_package &&
|
109
133
|
release_component == o.release_component
|
110
134
|
end
|
@@ -118,44 +142,40 @@ module PulpDebClient
|
|
118
142
|
# Calculates hash code according to all attributes.
|
119
143
|
# @return [Integer] Hash code
|
120
144
|
def hash
|
121
|
-
[repository, source_package, release_component].hash
|
145
|
+
[repository, pulp_labels, source_package, release_component].hash
|
122
146
|
end
|
123
147
|
|
124
148
|
# Builds the object from hash
|
125
149
|
# @param [Hash] attributes Model attributes in the form of hash
|
126
150
|
# @return [Object] Returns the model itself
|
127
151
|
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
152
|
return nil unless attributes.is_a?(Hash)
|
136
|
-
|
137
|
-
|
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
|
138
159
|
# check to ensure the input is an array given that the attribute
|
139
160
|
# is documented as an array but the input is not
|
140
|
-
if attributes[
|
141
|
-
|
161
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
162
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
142
163
|
end
|
143
|
-
elsif !attributes[
|
144
|
-
|
145
|
-
end
|
164
|
+
elsif !attributes[attribute_map[key]].nil?
|
165
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
166
|
+
end
|
146
167
|
end
|
147
|
-
|
148
|
-
self
|
168
|
+
new(transformed_hash)
|
149
169
|
end
|
150
170
|
|
151
171
|
# Deserializes the data based on type
|
152
172
|
# @param string type Data type
|
153
173
|
# @param string value Value to be deserialized
|
154
174
|
# @return [Object] Deserialized data
|
155
|
-
def _deserialize(type, value)
|
175
|
+
def self._deserialize(type, value)
|
156
176
|
case type.to_sym
|
157
|
-
when :
|
158
|
-
|
177
|
+
when :Time
|
178
|
+
Time.parse(value)
|
159
179
|
when :Date
|
160
180
|
Date.parse(value)
|
161
181
|
when :String
|
@@ -185,7 +205,9 @@ module PulpDebClient
|
|
185
205
|
end
|
186
206
|
end
|
187
207
|
else # model
|
188
|
-
|
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)
|
189
211
|
end
|
190
212
|
end
|
191
213
|
|
@@ -211,7 +233,7 @@ module PulpDebClient
|
|
211
233
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
212
234
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
213
235
|
end
|
214
|
-
|
236
|
+
|
215
237
|
hash[param] = _to_hash(value)
|
216
238
|
end
|
217
239
|
hash
|
@@ -234,5 +256,7 @@ module PulpDebClient
|
|
234
256
|
value
|
235
257
|
end
|
236
258
|
end
|
259
|
+
|
237
260
|
end
|
261
|
+
|
238
262
|
end
|