pulp_python_client 3.3.0 → 3.4.0
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 +17 -4
- data/build/lib/pulpcore/__init__.py +2 -0
- data/build/lib/pulpcore/client/__init__.py +2 -0
- data/build/lib/pulpcore/client/pulp_python/__init__.py +75 -0
- data/build/lib/pulpcore/client/pulp_python/api/__init__.py +15 -0
- data/build/lib/pulpcore/client/pulp_python/api/content_packages_api.py +626 -0
- data/build/lib/pulpcore/client/pulp_python/api/distributions_pypi_api.py +830 -0
- data/build/lib/pulpcore/client/pulp_python/api/publications_pypi_api.py +566 -0
- data/build/lib/pulpcore/client/pulp_python/api/pypi_api.py +162 -0
- data/build/lib/pulpcore/client/pulp_python/api/pypi_legacy_api.py +185 -0
- data/build/lib/pulpcore/client/pulp_python/api/pypi_metadata_api.py +171 -0
- data/build/lib/pulpcore/client/pulp_python/api/pypi_simple_api.py +434 -0
- data/build/lib/pulpcore/client/pulp_python/api/remotes_python_api.py +972 -0
- data/build/lib/pulpcore/client/pulp_python/api/repositories_python_api.py +1063 -0
- data/build/lib/pulpcore/client/pulp_python/api/repositories_python_versions_api.py +614 -0
- data/build/lib/pulpcore/client/pulp_python/api_client.py +667 -0
- data/build/lib/pulpcore/client/pulp_python/configuration.py +427 -0
- data/build/lib/pulpcore/client/pulp_python/exceptions.py +121 -0
- data/build/lib/pulpcore/client/pulp_python/models/__init__.py +51 -0
- data/build/lib/pulpcore/client/pulp_python/models/async_operation_response.py +124 -0
- data/build/lib/pulpcore/client/pulp_python/models/content_summary.py +176 -0
- data/build/lib/pulpcore/client/pulp_python/models/content_summary_response.py +176 -0
- data/build/lib/pulpcore/client/pulp_python/models/exclude_platforms_enum.py +103 -0
- data/build/lib/pulpcore/client/pulp_python/models/package_metadata_response.py +209 -0
- data/build/lib/pulpcore/client/pulp_python/models/package_types_enum.py +107 -0
- data/build/lib/pulpcore/client/pulp_python/models/package_upload.py +187 -0
- data/build/lib/pulpcore/client/pulp_python/models/package_upload_task_response.py +176 -0
- data/build/lib/pulpcore/client/pulp_python/models/paginated_repository_version_response_list.py +197 -0
- data/build/lib/pulpcore/client/pulp_python/models/paginatedpython_python_distribution_response_list.py +197 -0
- data/build/lib/pulpcore/client/pulp_python/models/paginatedpython_python_package_content_response_list.py +197 -0
- data/build/lib/pulpcore/client/pulp_python/models/paginatedpython_python_publication_response_list.py +197 -0
- data/build/lib/pulpcore/client/pulp_python/models/paginatedpython_python_remote_response_list.py +197 -0
- data/build/lib/pulpcore/client/pulp_python/models/paginatedpython_python_repository_response_list.py +197 -0
- data/build/lib/pulpcore/client/pulp_python/models/patchedpython_python_distribution.py +286 -0
- data/build/lib/pulpcore/client/pulp_python/models/patchedpython_python_remote.py +823 -0
- data/build/lib/pulpcore/client/pulp_python/models/patchedpython_python_repository.py +259 -0
- data/build/lib/pulpcore/client/pulp_python/models/policy_enum.py +102 -0
- data/build/lib/pulpcore/client/pulp_python/models/python_bander_remote.py +181 -0
- data/build/lib/pulpcore/client/pulp_python/models/python_python_distribution.py +288 -0
- data/build/lib/pulpcore/client/pulp_python/models/python_python_distribution_response.py +368 -0
- data/build/lib/pulpcore/client/pulp_python/models/python_python_package_content.py +824 -0
- data/build/lib/pulpcore/client/pulp_python/models/python_python_package_content_response.py +933 -0
- data/build/lib/pulpcore/client/pulp_python/models/python_python_publication.py +149 -0
- data/build/lib/pulpcore/client/pulp_python/models/python_python_publication_response.py +231 -0
- data/build/lib/pulpcore/client/pulp_python/models/python_python_remote.py +825 -0
- data/build/lib/pulpcore/client/pulp_python/models/python_python_remote_response.py +772 -0
- data/build/lib/pulpcore/client/pulp_python/models/python_python_repository.py +260 -0
- data/build/lib/pulpcore/client/pulp_python/models/python_python_repository_response.py +366 -0
- data/build/lib/pulpcore/client/pulp_python/models/repository_add_remove_content.py +179 -0
- data/build/lib/pulpcore/client/pulp_python/models/repository_sync_url.py +151 -0
- data/build/lib/pulpcore/client/pulp_python/models/repository_version.py +123 -0
- data/build/lib/pulpcore/client/pulp_python/models/repository_version_response.py +257 -0
- data/build/lib/pulpcore/client/pulp_python/models/summary_response.py +182 -0
- data/build/lib/pulpcore/client/pulp_python/rest.py +292 -0
- data/dist/pulp_python-client-3.4.0.tar.gz +0 -0
- data/dist/pulp_python_client-3.4.0-py3-none-any.whl +0 -0
- data/docs/ContentPackagesApi.md +6 -0
- data/docs/DistributionsPypiApi.md +2 -2
- data/docs/PackageMetadataResponse.md +23 -0
- data/docs/PackageUpload.md +21 -0
- data/docs/PackageUploadTaskResponse.md +21 -0
- data/docs/PatchedpythonPythonDistribution.md +3 -1
- data/docs/PatchedpythonPythonRemote.md +1 -1
- data/docs/PublicationsPypiApi.md +1 -1
- data/docs/PypiApi.md +62 -0
- data/docs/PypiLegacyApi.md +70 -0
- data/docs/PypiMetadataApi.md +64 -0
- data/docs/PypiSimpleApi.md +190 -0
- data/docs/PythonBanderRemote.md +1 -1
- data/docs/PythonPythonDistribution.md +3 -1
- data/docs/PythonPythonDistributionResponse.md +4 -2
- data/docs/PythonPythonPackageContent.md +6 -0
- data/docs/PythonPythonPackageContentResponse.md +5 -1
- data/docs/PythonPythonRemote.md +1 -1
- data/docs/PythonPythonRemoteResponse.md +1 -1
- data/docs/RemotesPythonApi.md +3 -3
- data/docs/RepositoriesPythonApi.md +4 -4
- data/docs/SummaryResponse.md +21 -0
- data/lib/pulp_python_client/api/content_packages_api.rb +9 -0
- data/lib/pulp_python_client/api/distributions_pypi_api.rb +4 -4
- data/lib/pulp_python_client/api/publications_pypi_api.rb +2 -2
- data/lib/pulp_python_client/api/pypi_api.rb +90 -0
- data/lib/pulp_python_client/api/pypi_legacy_api.rb +111 -0
- data/lib/pulp_python_client/api/pypi_metadata_api.rb +96 -0
- data/lib/pulp_python_client/api/pypi_simple_api.rb +249 -0
- data/lib/pulp_python_client/api/remotes_python_api.rb +4 -4
- data/lib/pulp_python_client/api/repositories_python_api.rb +8 -8
- data/lib/pulp_python_client/models/package_metadata_response.rb +257 -0
- data/lib/pulp_python_client/models/package_upload.rb +268 -0
- data/lib/pulp_python_client/models/package_upload_task_response.rb +240 -0
- data/lib/pulp_python_client/models/patchedpython_python_distribution.rb +17 -5
- data/lib/pulp_python_client/models/patchedpython_python_remote.rb +1 -1
- data/lib/pulp_python_client/models/python_bander_remote.rb +1 -1
- data/lib/pulp_python_client/models/python_python_distribution.rb +17 -5
- data/lib/pulp_python_client/models/python_python_distribution_response.rb +17 -6
- data/lib/pulp_python_client/models/python_python_package_content.rb +33 -1
- data/lib/pulp_python_client/models/python_python_package_content_response.rb +23 -1
- data/lib/pulp_python_client/models/python_python_remote.rb +1 -1
- data/lib/pulp_python_client/models/python_python_remote_response.rb +1 -1
- data/lib/pulp_python_client/models/summary_response.rb +243 -0
- data/lib/pulp_python_client/version.rb +1 -1
- data/lib/pulp_python_client.rb +8 -0
- data/pulp_python_client.egg-info/PKG-INFO +15 -0
- data/pulp_python_client.egg-info/SOURCES.txt +105 -0
- data/pulp_python_client.egg-info/dependency_links.txt +1 -0
- data/pulp_python_client.egg-info/requires.txt +4 -0
- data/pulp_python_client.egg-info/top_level.txt +1 -0
- data/pulpcore/__init__.py +2 -0
- data/pulpcore/client/__init__.py +2 -0
- data/pulpcore/client/pulp_python/__init__.py +75 -0
- data/pulpcore/client/pulp_python/api/__init__.py +15 -0
- data/pulpcore/client/pulp_python/api/content_packages_api.py +626 -0
- data/pulpcore/client/pulp_python/api/distributions_pypi_api.py +830 -0
- data/pulpcore/client/pulp_python/api/publications_pypi_api.py +566 -0
- data/pulpcore/client/pulp_python/api/pypi_api.py +162 -0
- data/pulpcore/client/pulp_python/api/pypi_legacy_api.py +185 -0
- data/pulpcore/client/pulp_python/api/pypi_metadata_api.py +171 -0
- data/pulpcore/client/pulp_python/api/pypi_simple_api.py +434 -0
- data/pulpcore/client/pulp_python/api/remotes_python_api.py +972 -0
- data/pulpcore/client/pulp_python/api/repositories_python_api.py +1063 -0
- data/pulpcore/client/pulp_python/api/repositories_python_versions_api.py +614 -0
- data/pulpcore/client/pulp_python/api_client.py +667 -0
- data/pulpcore/client/pulp_python/configuration.py +427 -0
- data/pulpcore/client/pulp_python/exceptions.py +121 -0
- data/pulpcore/client/pulp_python/models/__init__.py +51 -0
- data/pulpcore/client/pulp_python/models/async_operation_response.py +124 -0
- data/pulpcore/client/pulp_python/models/content_summary.py +176 -0
- data/pulpcore/client/pulp_python/models/content_summary_response.py +176 -0
- data/pulpcore/client/pulp_python/models/exclude_platforms_enum.py +103 -0
- data/pulpcore/client/pulp_python/models/package_metadata_response.py +209 -0
- data/pulpcore/client/pulp_python/models/package_types_enum.py +107 -0
- data/pulpcore/client/pulp_python/models/package_upload.py +187 -0
- data/pulpcore/client/pulp_python/models/package_upload_task_response.py +176 -0
- data/pulpcore/client/pulp_python/models/paginated_repository_version_response_list.py +197 -0
- data/pulpcore/client/pulp_python/models/paginatedpython_python_distribution_response_list.py +197 -0
- data/pulpcore/client/pulp_python/models/paginatedpython_python_package_content_response_list.py +197 -0
- data/pulpcore/client/pulp_python/models/paginatedpython_python_publication_response_list.py +197 -0
- data/pulpcore/client/pulp_python/models/paginatedpython_python_remote_response_list.py +197 -0
- data/pulpcore/client/pulp_python/models/paginatedpython_python_repository_response_list.py +197 -0
- data/pulpcore/client/pulp_python/models/patchedpython_python_distribution.py +286 -0
- data/pulpcore/client/pulp_python/models/patchedpython_python_remote.py +823 -0
- data/pulpcore/client/pulp_python/models/patchedpython_python_repository.py +259 -0
- data/pulpcore/client/pulp_python/models/policy_enum.py +102 -0
- data/pulpcore/client/pulp_python/models/python_bander_remote.py +181 -0
- data/pulpcore/client/pulp_python/models/python_python_distribution.py +288 -0
- data/pulpcore/client/pulp_python/models/python_python_distribution_response.py +368 -0
- data/pulpcore/client/pulp_python/models/python_python_package_content.py +824 -0
- data/pulpcore/client/pulp_python/models/python_python_package_content_response.py +933 -0
- data/pulpcore/client/pulp_python/models/python_python_publication.py +149 -0
- data/pulpcore/client/pulp_python/models/python_python_publication_response.py +231 -0
- data/pulpcore/client/pulp_python/models/python_python_remote.py +825 -0
- data/pulpcore/client/pulp_python/models/python_python_remote_response.py +772 -0
- data/pulpcore/client/pulp_python/models/python_python_repository.py +260 -0
- data/pulpcore/client/pulp_python/models/python_python_repository_response.py +366 -0
- data/pulpcore/client/pulp_python/models/repository_add_remove_content.py +179 -0
- data/pulpcore/client/pulp_python/models/repository_sync_url.py +151 -0
- data/pulpcore/client/pulp_python/models/repository_version.py +123 -0
- data/pulpcore/client/pulp_python/models/repository_version_response.py +257 -0
- data/pulpcore/client/pulp_python/models/summary_response.py +182 -0
- data/pulpcore/client/pulp_python/rest.py +292 -0
- data/requirements.txt +6 -0
- data/setup.cfg +2 -0
- data/setup.py +42 -0
- data/spec/api/content_packages_api_spec.rb +3 -0
- data/spec/api/distributions_pypi_api_spec.rb +2 -2
- data/spec/api/publications_pypi_api_spec.rb +1 -1
- data/spec/api/pypi_api_spec.rb +49 -0
- data/spec/api/pypi_legacy_api_spec.rb +50 -0
- data/spec/api/pypi_metadata_api_spec.rb +50 -0
- data/spec/api/pypi_simple_api_spec.rb +79 -0
- data/spec/api/remotes_python_api_spec.rb +2 -2
- data/spec/api/repositories_python_api_spec.rb +4 -4
- data/spec/models/package_metadata_response_spec.rb +59 -0
- data/spec/models/package_upload_spec.rb +53 -0
- data/spec/models/package_upload_task_response_spec.rb +53 -0
- data/spec/models/patchedpython_python_distribution_spec.rb +6 -0
- data/spec/models/python_python_distribution_response_spec.rb +6 -0
- data/spec/models/python_python_distribution_spec.rb +6 -0
- data/spec/models/python_python_package_content_response_spec.rb +12 -0
- data/spec/models/python_python_package_content_spec.rb +18 -0
- data/spec/models/summary_response_spec.rb +53 -0
- data/test/__init__.py +0 -0
- data/test/test_async_operation_response.py +54 -0
- data/test/test_content_packages_api.py +55 -0
- data/test/test_content_summary.py +70 -0
- data/test/test_content_summary_response.py +70 -0
- data/test/test_distributions_pypi_api.py +76 -0
- data/test/test_exclude_platforms_enum.py +52 -0
- data/test/test_package_metadata_response.py +60 -0
- data/test/test_package_types_enum.py +52 -0
- data/test/test_package_upload.py +57 -0
- data/test/test_package_upload_task_response.py +58 -0
- data/test/test_paginated_repository_version_response_list.py +64 -0
- data/test/test_paginatedpython_python_distribution_response_list.py +68 -0
- data/test/test_paginatedpython_python_package_content_response_list.py +88 -0
- data/test/test_paginatedpython_python_publication_response_list.py +65 -0
- data/test/test_paginatedpython_python_remote_response_list.py +88 -0
- data/test/test_paginatedpython_python_repository_response_list.py +68 -0
- data/test/test_patchedpython_python_distribution.py +59 -0
- data/test/test_patchedpython_python_remote.py +84 -0
- data/test/test_patchedpython_python_repository.py +58 -0
- data/test/test_policy_enum.py +52 -0
- data/test/test_publications_pypi_api.py +62 -0
- data/test/test_pypi_api.py +41 -0
- data/test/test_pypi_legacy_api.py +41 -0
- data/test/test_pypi_metadata_api.py +41 -0
- data/test/test_pypi_simple_api.py +55 -0
- data/test/test_python_bander_remote.py +57 -0
- data/test/test_python_python_distribution.py +61 -0
- data/test/test_python_python_distribution_response.py +64 -0
- data/test/test_python_python_package_content.py +79 -0
- data/test/test_python_python_package_content_response.py +82 -0
- data/test/test_python_python_publication.py +54 -0
- data/test/test_python_python_publication_response.py +59 -0
- data/test/test_python_python_remote.py +86 -0
- data/test/test_python_python_remote_response.py +84 -0
- data/test/test_python_python_repository.py +59 -0
- data/test/test_python_python_repository_response.py +63 -0
- data/test/test_remotes_python_api.py +83 -0
- data/test/test_repositories_python_api.py +90 -0
- data/test/test_repositories_python_versions_api.py +61 -0
- data/test/test_repository_add_remove_content.py +59 -0
- data/test/test_repository_sync_url.py +54 -0
- data/test/test_repository_version.py +53 -0
- data/test/test_repository_version_response.py +58 -0
- data/test/test_summary_response.py +58 -0
- data/test-requirements.txt +3 -0
- data/tox.ini +9 -0
- metadata +221 -26
|
@@ -0,0 +1,240 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Pulp 3 API
|
|
3
|
+
|
|
4
|
+
#Fetch, Upload, Organize, and Distribute Software Packages
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: v3
|
|
7
|
+
Contact: pulp-list@redhat.com
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
OpenAPI Generator version: 4.2.3
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'date'
|
|
14
|
+
|
|
15
|
+
module PulpPythonClient
|
|
16
|
+
# A Serializer for responding to a package upload task.
|
|
17
|
+
class PackageUploadTaskResponse
|
|
18
|
+
attr_accessor :session
|
|
19
|
+
|
|
20
|
+
attr_accessor :task
|
|
21
|
+
|
|
22
|
+
attr_accessor :task_start_time
|
|
23
|
+
|
|
24
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
25
|
+
def self.attribute_map
|
|
26
|
+
{
|
|
27
|
+
:'session' => :'session',
|
|
28
|
+
:'task' => :'task',
|
|
29
|
+
:'task_start_time' => :'task_start_time'
|
|
30
|
+
}
|
|
31
|
+
end
|
|
32
|
+
|
|
33
|
+
# Attribute type mapping.
|
|
34
|
+
def self.openapi_types
|
|
35
|
+
{
|
|
36
|
+
:'session' => :'String',
|
|
37
|
+
:'task' => :'String',
|
|
38
|
+
:'task_start_time' => :'DateTime'
|
|
39
|
+
}
|
|
40
|
+
end
|
|
41
|
+
|
|
42
|
+
# List of attributes with nullable: true
|
|
43
|
+
def self.openapi_nullable
|
|
44
|
+
Set.new([
|
|
45
|
+
])
|
|
46
|
+
end
|
|
47
|
+
|
|
48
|
+
# Initializes the object
|
|
49
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
50
|
+
def initialize(attributes = {})
|
|
51
|
+
if (!attributes.is_a?(Hash))
|
|
52
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `PulpPythonClient::PackageUploadTaskResponse` initialize method"
|
|
53
|
+
end
|
|
54
|
+
|
|
55
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
56
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
57
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
|
58
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `PulpPythonClient::PackageUploadTaskResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
|
59
|
+
end
|
|
60
|
+
h[k.to_sym] = v
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
if attributes.key?(:'session')
|
|
64
|
+
self.session = attributes[:'session']
|
|
65
|
+
end
|
|
66
|
+
|
|
67
|
+
if attributes.key?(:'task')
|
|
68
|
+
self.task = attributes[:'task']
|
|
69
|
+
end
|
|
70
|
+
|
|
71
|
+
if attributes.key?(:'task_start_time')
|
|
72
|
+
self.task_start_time = attributes[:'task_start_time']
|
|
73
|
+
end
|
|
74
|
+
end
|
|
75
|
+
|
|
76
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
77
|
+
# @return Array for valid properties with the reasons
|
|
78
|
+
def list_invalid_properties
|
|
79
|
+
invalid_properties = Array.new
|
|
80
|
+
if @session.nil?
|
|
81
|
+
invalid_properties.push('invalid value for "session", session cannot be nil.')
|
|
82
|
+
end
|
|
83
|
+
|
|
84
|
+
if @task.nil?
|
|
85
|
+
invalid_properties.push('invalid value for "task", task cannot be nil.')
|
|
86
|
+
end
|
|
87
|
+
|
|
88
|
+
if @task_start_time.nil?
|
|
89
|
+
invalid_properties.push('invalid value for "task_start_time", task_start_time cannot be nil.')
|
|
90
|
+
end
|
|
91
|
+
|
|
92
|
+
invalid_properties
|
|
93
|
+
end
|
|
94
|
+
|
|
95
|
+
# Check to see if the all the properties in the model are valid
|
|
96
|
+
# @return true if the model is valid
|
|
97
|
+
def valid?
|
|
98
|
+
return false if @session.nil?
|
|
99
|
+
return false if @task.nil?
|
|
100
|
+
return false if @task_start_time.nil?
|
|
101
|
+
true
|
|
102
|
+
end
|
|
103
|
+
|
|
104
|
+
# Checks equality by comparing each attribute.
|
|
105
|
+
# @param [Object] Object to be compared
|
|
106
|
+
def ==(o)
|
|
107
|
+
return true if self.equal?(o)
|
|
108
|
+
self.class == o.class &&
|
|
109
|
+
session == o.session &&
|
|
110
|
+
task == o.task &&
|
|
111
|
+
task_start_time == o.task_start_time
|
|
112
|
+
end
|
|
113
|
+
|
|
114
|
+
# @see the `==` method
|
|
115
|
+
# @param [Object] Object to be compared
|
|
116
|
+
def eql?(o)
|
|
117
|
+
self == o
|
|
118
|
+
end
|
|
119
|
+
|
|
120
|
+
# Calculates hash code according to all attributes.
|
|
121
|
+
# @return [Integer] Hash code
|
|
122
|
+
def hash
|
|
123
|
+
[session, task, task_start_time].hash
|
|
124
|
+
end
|
|
125
|
+
|
|
126
|
+
# Builds the object from hash
|
|
127
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
128
|
+
# @return [Object] Returns the model itself
|
|
129
|
+
def self.build_from_hash(attributes)
|
|
130
|
+
new.build_from_hash(attributes)
|
|
131
|
+
end
|
|
132
|
+
|
|
133
|
+
# Builds the object from hash
|
|
134
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
135
|
+
# @return [Object] Returns the model itself
|
|
136
|
+
def build_from_hash(attributes)
|
|
137
|
+
return nil unless attributes.is_a?(Hash)
|
|
138
|
+
self.class.openapi_types.each_pair do |key, type|
|
|
139
|
+
if type =~ /\AArray<(.*)>/i
|
|
140
|
+
# check to ensure the input is an array given that the attribute
|
|
141
|
+
# is documented as an array but the input is not
|
|
142
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
143
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
|
144
|
+
end
|
|
145
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
146
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
|
147
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
|
148
|
+
end
|
|
149
|
+
|
|
150
|
+
self
|
|
151
|
+
end
|
|
152
|
+
|
|
153
|
+
# Deserializes the data based on type
|
|
154
|
+
# @param string type Data type
|
|
155
|
+
# @param string value Value to be deserialized
|
|
156
|
+
# @return [Object] Deserialized data
|
|
157
|
+
def _deserialize(type, value)
|
|
158
|
+
case type.to_sym
|
|
159
|
+
when :DateTime
|
|
160
|
+
DateTime.parse(value)
|
|
161
|
+
when :Date
|
|
162
|
+
Date.parse(value)
|
|
163
|
+
when :String
|
|
164
|
+
value.to_s
|
|
165
|
+
when :Integer
|
|
166
|
+
value.to_i
|
|
167
|
+
when :Float
|
|
168
|
+
value.to_f
|
|
169
|
+
when :Boolean
|
|
170
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
171
|
+
true
|
|
172
|
+
else
|
|
173
|
+
false
|
|
174
|
+
end
|
|
175
|
+
when :Object
|
|
176
|
+
# generic object (usually a Hash), return directly
|
|
177
|
+
value
|
|
178
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
|
179
|
+
inner_type = Regexp.last_match[:inner_type]
|
|
180
|
+
value.map { |v| _deserialize(inner_type, v) }
|
|
181
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
182
|
+
k_type = Regexp.last_match[:k_type]
|
|
183
|
+
v_type = Regexp.last_match[:v_type]
|
|
184
|
+
{}.tap do |hash|
|
|
185
|
+
value.each do |k, v|
|
|
186
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
187
|
+
end
|
|
188
|
+
end
|
|
189
|
+
else # model
|
|
190
|
+
PulpPythonClient.const_get(type).build_from_hash(value)
|
|
191
|
+
end
|
|
192
|
+
end
|
|
193
|
+
|
|
194
|
+
# Returns the string representation of the object
|
|
195
|
+
# @return [String] String presentation of the object
|
|
196
|
+
def to_s
|
|
197
|
+
to_hash.to_s
|
|
198
|
+
end
|
|
199
|
+
|
|
200
|
+
# to_body is an alias to to_hash (backward compatibility)
|
|
201
|
+
# @return [Hash] Returns the object in the form of hash
|
|
202
|
+
def to_body
|
|
203
|
+
to_hash
|
|
204
|
+
end
|
|
205
|
+
|
|
206
|
+
# Returns the object in the form of hash
|
|
207
|
+
# @return [Hash] Returns the object in the form of hash
|
|
208
|
+
def to_hash
|
|
209
|
+
hash = {}
|
|
210
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
211
|
+
value = self.send(attr)
|
|
212
|
+
if value.nil?
|
|
213
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
214
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
215
|
+
end
|
|
216
|
+
|
|
217
|
+
hash[param] = _to_hash(value)
|
|
218
|
+
end
|
|
219
|
+
hash
|
|
220
|
+
end
|
|
221
|
+
|
|
222
|
+
# Outputs non-array value in the form of hash
|
|
223
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
224
|
+
# @param [Object] value Any valid value
|
|
225
|
+
# @return [Hash] Returns the value in the form of hash
|
|
226
|
+
def _to_hash(value)
|
|
227
|
+
if value.is_a?(Array)
|
|
228
|
+
value.compact.map { |v| _to_hash(v) }
|
|
229
|
+
elsif value.is_a?(Hash)
|
|
230
|
+
{}.tap do |hash|
|
|
231
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
232
|
+
end
|
|
233
|
+
elsif value.respond_to? :to_hash
|
|
234
|
+
value.to_hash
|
|
235
|
+
else
|
|
236
|
+
value
|
|
237
|
+
end
|
|
238
|
+
end
|
|
239
|
+
end
|
|
240
|
+
end
|
|
@@ -32,6 +32,9 @@ module PulpPythonClient
|
|
|
32
32
|
# Publication to be served
|
|
33
33
|
attr_accessor :publication
|
|
34
34
|
|
|
35
|
+
# Allow packages to be uploaded to this index.
|
|
36
|
+
attr_accessor :allow_uploads
|
|
37
|
+
|
|
35
38
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
36
39
|
def self.attribute_map
|
|
37
40
|
{
|
|
@@ -40,7 +43,8 @@ module PulpPythonClient
|
|
|
40
43
|
:'pulp_labels' => :'pulp_labels',
|
|
41
44
|
:'name' => :'name',
|
|
42
45
|
:'repository' => :'repository',
|
|
43
|
-
:'publication' => :'publication'
|
|
46
|
+
:'publication' => :'publication',
|
|
47
|
+
:'allow_uploads' => :'allow_uploads'
|
|
44
48
|
}
|
|
45
49
|
end
|
|
46
50
|
|
|
@@ -52,7 +56,8 @@ module PulpPythonClient
|
|
|
52
56
|
:'pulp_labels' => :'Object',
|
|
53
57
|
:'name' => :'String',
|
|
54
58
|
:'repository' => :'String',
|
|
55
|
-
:'publication' => :'String'
|
|
59
|
+
:'publication' => :'String',
|
|
60
|
+
:'allow_uploads' => :'Boolean'
|
|
56
61
|
}
|
|
57
62
|
end
|
|
58
63
|
|
|
@@ -61,7 +66,7 @@ module PulpPythonClient
|
|
|
61
66
|
Set.new([
|
|
62
67
|
:'content_guard',
|
|
63
68
|
:'repository',
|
|
64
|
-
:'publication'
|
|
69
|
+
:'publication',
|
|
65
70
|
])
|
|
66
71
|
end
|
|
67
72
|
|
|
@@ -103,6 +108,12 @@ module PulpPythonClient
|
|
|
103
108
|
if attributes.key?(:'publication')
|
|
104
109
|
self.publication = attributes[:'publication']
|
|
105
110
|
end
|
|
111
|
+
|
|
112
|
+
if attributes.key?(:'allow_uploads')
|
|
113
|
+
self.allow_uploads = attributes[:'allow_uploads']
|
|
114
|
+
else
|
|
115
|
+
self.allow_uploads = true
|
|
116
|
+
end
|
|
106
117
|
end
|
|
107
118
|
|
|
108
119
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -128,7 +139,8 @@ module PulpPythonClient
|
|
|
128
139
|
pulp_labels == o.pulp_labels &&
|
|
129
140
|
name == o.name &&
|
|
130
141
|
repository == o.repository &&
|
|
131
|
-
publication == o.publication
|
|
142
|
+
publication == o.publication &&
|
|
143
|
+
allow_uploads == o.allow_uploads
|
|
132
144
|
end
|
|
133
145
|
|
|
134
146
|
# @see the `==` method
|
|
@@ -140,7 +152,7 @@ module PulpPythonClient
|
|
|
140
152
|
# Calculates hash code according to all attributes.
|
|
141
153
|
# @return [Integer] Hash code
|
|
142
154
|
def hash
|
|
143
|
-
[base_path, content_guard, pulp_labels, name, repository, publication].hash
|
|
155
|
+
[base_path, content_guard, pulp_labels, name, repository, publication, allow_uploads].hash
|
|
144
156
|
end
|
|
145
157
|
|
|
146
158
|
# Builds the object from hash
|
|
@@ -53,7 +53,7 @@ module PulpPythonClient
|
|
|
53
53
|
# Total number of simultaneous connections.
|
|
54
54
|
attr_accessor :download_concurrency
|
|
55
55
|
|
|
56
|
-
# The policy to use when downloading content. The possible values include: 'immediate', 'on_demand', and '
|
|
56
|
+
# The policy to use when downloading content. The possible values include: 'immediate', 'on_demand', and 'streamed'. 'on_demand' is the default.
|
|
57
57
|
attr_accessor :policy
|
|
58
58
|
|
|
59
59
|
# aiohttp.ClientTimeout.total (q.v.) for download-connections.
|
|
@@ -21,7 +21,7 @@ module PulpPythonClient
|
|
|
21
21
|
# A unique name for this remote
|
|
22
22
|
attr_accessor :name
|
|
23
23
|
|
|
24
|
-
# The policy to use when downloading content. The possible values include: 'immediate', 'on_demand', and '
|
|
24
|
+
# The policy to use when downloading content. The possible values include: 'immediate', 'on_demand', and 'streamed'. 'on_demand' is the default.
|
|
25
25
|
attr_accessor :policy
|
|
26
26
|
|
|
27
27
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
@@ -32,6 +32,9 @@ module PulpPythonClient
|
|
|
32
32
|
# Publication to be served
|
|
33
33
|
attr_accessor :publication
|
|
34
34
|
|
|
35
|
+
# Allow packages to be uploaded to this index.
|
|
36
|
+
attr_accessor :allow_uploads
|
|
37
|
+
|
|
35
38
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
36
39
|
def self.attribute_map
|
|
37
40
|
{
|
|
@@ -40,7 +43,8 @@ module PulpPythonClient
|
|
|
40
43
|
:'pulp_labels' => :'pulp_labels',
|
|
41
44
|
:'name' => :'name',
|
|
42
45
|
:'repository' => :'repository',
|
|
43
|
-
:'publication' => :'publication'
|
|
46
|
+
:'publication' => :'publication',
|
|
47
|
+
:'allow_uploads' => :'allow_uploads'
|
|
44
48
|
}
|
|
45
49
|
end
|
|
46
50
|
|
|
@@ -52,7 +56,8 @@ module PulpPythonClient
|
|
|
52
56
|
:'pulp_labels' => :'Object',
|
|
53
57
|
:'name' => :'String',
|
|
54
58
|
:'repository' => :'String',
|
|
55
|
-
:'publication' => :'String'
|
|
59
|
+
:'publication' => :'String',
|
|
60
|
+
:'allow_uploads' => :'Boolean'
|
|
56
61
|
}
|
|
57
62
|
end
|
|
58
63
|
|
|
@@ -61,7 +66,7 @@ module PulpPythonClient
|
|
|
61
66
|
Set.new([
|
|
62
67
|
:'content_guard',
|
|
63
68
|
:'repository',
|
|
64
|
-
:'publication'
|
|
69
|
+
:'publication',
|
|
65
70
|
])
|
|
66
71
|
end
|
|
67
72
|
|
|
@@ -103,6 +108,12 @@ module PulpPythonClient
|
|
|
103
108
|
if attributes.key?(:'publication')
|
|
104
109
|
self.publication = attributes[:'publication']
|
|
105
110
|
end
|
|
111
|
+
|
|
112
|
+
if attributes.key?(:'allow_uploads')
|
|
113
|
+
self.allow_uploads = attributes[:'allow_uploads']
|
|
114
|
+
else
|
|
115
|
+
self.allow_uploads = true
|
|
116
|
+
end
|
|
106
117
|
end
|
|
107
118
|
|
|
108
119
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -138,7 +149,8 @@ module PulpPythonClient
|
|
|
138
149
|
pulp_labels == o.pulp_labels &&
|
|
139
150
|
name == o.name &&
|
|
140
151
|
repository == o.repository &&
|
|
141
|
-
publication == o.publication
|
|
152
|
+
publication == o.publication &&
|
|
153
|
+
allow_uploads == o.allow_uploads
|
|
142
154
|
end
|
|
143
155
|
|
|
144
156
|
# @see the `==` method
|
|
@@ -150,7 +162,7 @@ module PulpPythonClient
|
|
|
150
162
|
# Calculates hash code according to all attributes.
|
|
151
163
|
# @return [Integer] Hash code
|
|
152
164
|
def hash
|
|
153
|
-
[base_path, content_guard, pulp_labels, name, repository, publication].hash
|
|
165
|
+
[base_path, content_guard, pulp_labels, name, repository, publication, allow_uploads].hash
|
|
154
166
|
end
|
|
155
167
|
|
|
156
168
|
# Builds the object from hash
|
|
@@ -23,7 +23,6 @@ module PulpPythonClient
|
|
|
23
23
|
# The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
|
|
24
24
|
attr_accessor :base_path
|
|
25
25
|
|
|
26
|
-
# The URL for accessing the publication as defined by this distribution.
|
|
27
26
|
attr_accessor :base_url
|
|
28
27
|
|
|
29
28
|
# An optional content-guard.
|
|
@@ -40,6 +39,9 @@ module PulpPythonClient
|
|
|
40
39
|
# Publication to be served
|
|
41
40
|
attr_accessor :publication
|
|
42
41
|
|
|
42
|
+
# Allow packages to be uploaded to this index.
|
|
43
|
+
attr_accessor :allow_uploads
|
|
44
|
+
|
|
43
45
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
44
46
|
def self.attribute_map
|
|
45
47
|
{
|
|
@@ -51,7 +53,8 @@ module PulpPythonClient
|
|
|
51
53
|
:'pulp_labels' => :'pulp_labels',
|
|
52
54
|
:'name' => :'name',
|
|
53
55
|
:'repository' => :'repository',
|
|
54
|
-
:'publication' => :'publication'
|
|
56
|
+
:'publication' => :'publication',
|
|
57
|
+
:'allow_uploads' => :'allow_uploads'
|
|
55
58
|
}
|
|
56
59
|
end
|
|
57
60
|
|
|
@@ -66,7 +69,8 @@ module PulpPythonClient
|
|
|
66
69
|
:'pulp_labels' => :'Object',
|
|
67
70
|
:'name' => :'String',
|
|
68
71
|
:'repository' => :'String',
|
|
69
|
-
:'publication' => :'String'
|
|
72
|
+
:'publication' => :'String',
|
|
73
|
+
:'allow_uploads' => :'Boolean'
|
|
70
74
|
}
|
|
71
75
|
end
|
|
72
76
|
|
|
@@ -75,7 +79,7 @@ module PulpPythonClient
|
|
|
75
79
|
Set.new([
|
|
76
80
|
:'content_guard',
|
|
77
81
|
:'repository',
|
|
78
|
-
:'publication'
|
|
82
|
+
:'publication',
|
|
79
83
|
])
|
|
80
84
|
end
|
|
81
85
|
|
|
@@ -129,6 +133,12 @@ module PulpPythonClient
|
|
|
129
133
|
if attributes.key?(:'publication')
|
|
130
134
|
self.publication = attributes[:'publication']
|
|
131
135
|
end
|
|
136
|
+
|
|
137
|
+
if attributes.key?(:'allow_uploads')
|
|
138
|
+
self.allow_uploads = attributes[:'allow_uploads']
|
|
139
|
+
else
|
|
140
|
+
self.allow_uploads = true
|
|
141
|
+
end
|
|
132
142
|
end
|
|
133
143
|
|
|
134
144
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -167,7 +177,8 @@ module PulpPythonClient
|
|
|
167
177
|
pulp_labels == o.pulp_labels &&
|
|
168
178
|
name == o.name &&
|
|
169
179
|
repository == o.repository &&
|
|
170
|
-
publication == o.publication
|
|
180
|
+
publication == o.publication &&
|
|
181
|
+
allow_uploads == o.allow_uploads
|
|
171
182
|
end
|
|
172
183
|
|
|
173
184
|
# @see the `==` method
|
|
@@ -179,7 +190,7 @@ module PulpPythonClient
|
|
|
179
190
|
# Calculates hash code according to all attributes.
|
|
180
191
|
# @return [Integer] Hash code
|
|
181
192
|
def hash
|
|
182
|
-
[pulp_href, pulp_created, base_path, base_url, content_guard, pulp_labels, name, repository, publication].hash
|
|
193
|
+
[pulp_href, pulp_created, base_path, base_url, content_guard, pulp_labels, name, repository, publication, allow_uploads].hash
|
|
183
194
|
end
|
|
184
195
|
|
|
185
196
|
# Builds the object from hash
|
|
@@ -27,12 +27,18 @@ module PulpPythonClient
|
|
|
27
27
|
# A URI of a repository the new content unit should be associated with.
|
|
28
28
|
attr_accessor :repository
|
|
29
29
|
|
|
30
|
+
# The SHA256 digest of this package.
|
|
31
|
+
attr_accessor :sha256
|
|
32
|
+
|
|
30
33
|
# A one-line summary of what the package does.
|
|
31
34
|
attr_accessor :summary
|
|
32
35
|
|
|
33
36
|
# A longer description of the package that can run to several paragraphs.
|
|
34
37
|
attr_accessor :description
|
|
35
38
|
|
|
39
|
+
# A string stating the markup syntax (if any) used in the distribution’s description, so that tools can intelligently render the description.
|
|
40
|
+
attr_accessor :description_content_type
|
|
41
|
+
|
|
36
42
|
# Additional keywords to be used to assist searching for the package in a larger catalog.
|
|
37
43
|
attr_accessor :keywords
|
|
38
44
|
|
|
@@ -63,6 +69,9 @@ module PulpPythonClient
|
|
|
63
69
|
# A browsable URL for the project and a label for it, separated by a comma.
|
|
64
70
|
attr_accessor :project_url
|
|
65
71
|
|
|
72
|
+
# A dictionary of labels and URLs for the project.
|
|
73
|
+
attr_accessor :project_urls
|
|
74
|
+
|
|
66
75
|
# A comma-separated list of platform specifications, summarizing the operating systems supported by the package.
|
|
67
76
|
attr_accessor :platform
|
|
68
77
|
|
|
@@ -91,8 +100,10 @@ module PulpPythonClient
|
|
|
91
100
|
:'relative_path' => :'relative_path',
|
|
92
101
|
:'file' => :'file',
|
|
93
102
|
:'repository' => :'repository',
|
|
103
|
+
:'sha256' => :'sha256',
|
|
94
104
|
:'summary' => :'summary',
|
|
95
105
|
:'description' => :'description',
|
|
106
|
+
:'description_content_type' => :'description_content_type',
|
|
96
107
|
:'keywords' => :'keywords',
|
|
97
108
|
:'home_page' => :'home_page',
|
|
98
109
|
:'download_url' => :'download_url',
|
|
@@ -103,6 +114,7 @@ module PulpPythonClient
|
|
|
103
114
|
:'license' => :'license',
|
|
104
115
|
:'requires_python' => :'requires_python',
|
|
105
116
|
:'project_url' => :'project_url',
|
|
117
|
+
:'project_urls' => :'project_urls',
|
|
106
118
|
:'platform' => :'platform',
|
|
107
119
|
:'supported_platform' => :'supported_platform',
|
|
108
120
|
:'requires_dist' => :'requires_dist',
|
|
@@ -120,8 +132,10 @@ module PulpPythonClient
|
|
|
120
132
|
:'relative_path' => :'String',
|
|
121
133
|
:'file' => :'File',
|
|
122
134
|
:'repository' => :'String',
|
|
135
|
+
:'sha256' => :'String',
|
|
123
136
|
:'summary' => :'String',
|
|
124
137
|
:'description' => :'String',
|
|
138
|
+
:'description_content_type' => :'String',
|
|
125
139
|
:'keywords' => :'String',
|
|
126
140
|
:'home_page' => :'String',
|
|
127
141
|
:'download_url' => :'String',
|
|
@@ -132,6 +146,7 @@ module PulpPythonClient
|
|
|
132
146
|
:'license' => :'String',
|
|
133
147
|
:'requires_python' => :'String',
|
|
134
148
|
:'project_url' => :'String',
|
|
149
|
+
:'project_urls' => :'Object',
|
|
135
150
|
:'platform' => :'String',
|
|
136
151
|
:'supported_platform' => :'String',
|
|
137
152
|
:'requires_dist' => :'Object',
|
|
@@ -179,6 +194,12 @@ module PulpPythonClient
|
|
|
179
194
|
self.repository = attributes[:'repository']
|
|
180
195
|
end
|
|
181
196
|
|
|
197
|
+
if attributes.key?(:'sha256')
|
|
198
|
+
self.sha256 = attributes[:'sha256']
|
|
199
|
+
else
|
|
200
|
+
self.sha256 = ''
|
|
201
|
+
end
|
|
202
|
+
|
|
182
203
|
if attributes.key?(:'summary')
|
|
183
204
|
self.summary = attributes[:'summary']
|
|
184
205
|
end
|
|
@@ -187,6 +208,10 @@ module PulpPythonClient
|
|
|
187
208
|
self.description = attributes[:'description']
|
|
188
209
|
end
|
|
189
210
|
|
|
211
|
+
if attributes.key?(:'description_content_type')
|
|
212
|
+
self.description_content_type = attributes[:'description_content_type']
|
|
213
|
+
end
|
|
214
|
+
|
|
190
215
|
if attributes.key?(:'keywords')
|
|
191
216
|
self.keywords = attributes[:'keywords']
|
|
192
217
|
end
|
|
@@ -227,6 +252,10 @@ module PulpPythonClient
|
|
|
227
252
|
self.project_url = attributes[:'project_url']
|
|
228
253
|
end
|
|
229
254
|
|
|
255
|
+
if attributes.key?(:'project_urls')
|
|
256
|
+
self.project_urls = attributes[:'project_urls']
|
|
257
|
+
end
|
|
258
|
+
|
|
230
259
|
if attributes.key?(:'platform')
|
|
231
260
|
self.platform = attributes[:'platform']
|
|
232
261
|
end
|
|
@@ -283,8 +312,10 @@ module PulpPythonClient
|
|
|
283
312
|
relative_path == o.relative_path &&
|
|
284
313
|
file == o.file &&
|
|
285
314
|
repository == o.repository &&
|
|
315
|
+
sha256 == o.sha256 &&
|
|
286
316
|
summary == o.summary &&
|
|
287
317
|
description == o.description &&
|
|
318
|
+
description_content_type == o.description_content_type &&
|
|
288
319
|
keywords == o.keywords &&
|
|
289
320
|
home_page == o.home_page &&
|
|
290
321
|
download_url == o.download_url &&
|
|
@@ -295,6 +326,7 @@ module PulpPythonClient
|
|
|
295
326
|
license == o.license &&
|
|
296
327
|
requires_python == o.requires_python &&
|
|
297
328
|
project_url == o.project_url &&
|
|
329
|
+
project_urls == o.project_urls &&
|
|
298
330
|
platform == o.platform &&
|
|
299
331
|
supported_platform == o.supported_platform &&
|
|
300
332
|
requires_dist == o.requires_dist &&
|
|
@@ -313,7 +345,7 @@ module PulpPythonClient
|
|
|
313
345
|
# Calculates hash code according to all attributes.
|
|
314
346
|
# @return [Integer] Hash code
|
|
315
347
|
def hash
|
|
316
|
-
[artifact, relative_path, file, repository, summary, description, keywords, home_page, download_url, author, author_email, maintainer, maintainer_email, license, requires_python, project_url, platform, supported_platform, requires_dist, provides_dist, obsoletes_dist, requires_external, classifiers].hash
|
|
348
|
+
[artifact, relative_path, file, repository, sha256, summary, description, description_content_type, keywords, home_page, download_url, author, author_email, maintainer, maintainer_email, license, requires_python, project_url, project_urls, platform, supported_platform, requires_dist, provides_dist, obsoletes_dist, requires_external, classifiers].hash
|
|
317
349
|
end
|
|
318
350
|
|
|
319
351
|
# Builds the object from hash
|