pulp_python_client 3.4.0 → 3.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +1 -1
- data/README.md +4 -4
- data/docs/ContentPackagesApi.md +4 -0
- data/docs/RepositoryAddRemoveContent.md +2 -2
- data/lib/pulp_python_client/api/content_packages_api.rb +7 -1
- data/lib/pulp_python_client/api/distributions_pypi_api.rb +1 -1
- data/lib/pulp_python_client/api/publications_pypi_api.rb +1 -1
- data/lib/pulp_python_client/api/pypi_api.rb +1 -1
- data/lib/pulp_python_client/api/pypi_legacy_api.rb +1 -1
- data/lib/pulp_python_client/api/pypi_metadata_api.rb +1 -1
- data/lib/pulp_python_client/api/pypi_simple_api.rb +1 -1
- data/lib/pulp_python_client/api/remotes_python_api.rb +1 -1
- data/lib/pulp_python_client/api/repositories_python_api.rb +1 -1
- data/lib/pulp_python_client/api/repositories_python_versions_api.rb +1 -1
- data/lib/pulp_python_client/api_client.rb +12 -8
- data/lib/pulp_python_client/api_error.rb +1 -1
- data/lib/pulp_python_client/configuration.rb +8 -1
- data/lib/pulp_python_client/models/async_operation_response.rb +1 -1
- data/lib/pulp_python_client/models/content_summary.rb +1 -1
- data/lib/pulp_python_client/models/content_summary_response.rb +1 -1
- data/lib/pulp_python_client/models/exclude_platforms_enum.rb +1 -1
- data/lib/pulp_python_client/models/package_metadata_response.rb +1 -1
- data/lib/pulp_python_client/models/package_types_enum.rb +1 -1
- data/lib/pulp_python_client/models/package_upload.rb +1 -1
- data/lib/pulp_python_client/models/package_upload_task_response.rb +1 -1
- data/lib/pulp_python_client/models/paginated_repository_version_response_list.rb +1 -1
- data/lib/pulp_python_client/models/paginatedpython_python_distribution_response_list.rb +1 -1
- data/lib/pulp_python_client/models/paginatedpython_python_package_content_response_list.rb +1 -1
- data/lib/pulp_python_client/models/paginatedpython_python_publication_response_list.rb +1 -1
- data/lib/pulp_python_client/models/paginatedpython_python_remote_response_list.rb +1 -1
- data/lib/pulp_python_client/models/paginatedpython_python_repository_response_list.rb +1 -1
- data/lib/pulp_python_client/models/patchedpython_python_distribution.rb +1 -1
- data/lib/pulp_python_client/models/patchedpython_python_remote.rb +1 -1
- data/lib/pulp_python_client/models/patchedpython_python_repository.rb +1 -1
- data/lib/pulp_python_client/models/policy_enum.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 +1 -1
- data/lib/pulp_python_client/models/python_python_distribution_response.rb +1 -1
- data/lib/pulp_python_client/models/python_python_package_content.rb +1 -1
- data/lib/pulp_python_client/models/python_python_package_content_response.rb +1 -1
- data/lib/pulp_python_client/models/python_python_publication.rb +1 -1
- data/lib/pulp_python_client/models/python_python_publication_response.rb +1 -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/python_python_repository.rb +1 -1
- data/lib/pulp_python_client/models/python_python_repository_response.rb +1 -1
- data/lib/pulp_python_client/models/repository_add_remove_content.rb +3 -3
- data/lib/pulp_python_client/models/repository_sync_url.rb +1 -1
- data/lib/pulp_python_client/models/repository_version.rb +1 -1
- data/lib/pulp_python_client/models/repository_version_response.rb +1 -1
- data/lib/pulp_python_client/models/summary_response.rb +1 -1
- data/lib/pulp_python_client/version.rb +2 -2
- data/lib/pulp_python_client.rb +1 -1
- data/pulp_python_client.gemspec +1 -1
- data/spec/api/content_packages_api_spec.rb +3 -1
- data/spec/api/distributions_pypi_api_spec.rb +1 -1
- data/spec/api/publications_pypi_api_spec.rb +1 -1
- data/spec/api/pypi_api_spec.rb +1 -1
- data/spec/api/pypi_legacy_api_spec.rb +1 -1
- data/spec/api/pypi_metadata_api_spec.rb +1 -1
- data/spec/api/pypi_simple_api_spec.rb +1 -1
- data/spec/api/remotes_python_api_spec.rb +1 -1
- data/spec/api/repositories_python_api_spec.rb +1 -1
- data/spec/api/repositories_python_versions_api_spec.rb +1 -1
- data/spec/api_client_spec.rb +2 -2
- data/spec/configuration_spec.rb +1 -1
- data/spec/models/async_operation_response_spec.rb +1 -1
- data/spec/models/content_summary_response_spec.rb +1 -1
- data/spec/models/content_summary_spec.rb +1 -1
- data/spec/models/exclude_platforms_enum_spec.rb +1 -1
- data/spec/models/package_metadata_response_spec.rb +1 -1
- data/spec/models/package_types_enum_spec.rb +1 -1
- data/spec/models/package_upload_spec.rb +1 -1
- data/spec/models/package_upload_task_response_spec.rb +1 -1
- data/spec/models/paginated_repository_version_response_list_spec.rb +1 -1
- data/spec/models/paginatedpython_python_distribution_response_list_spec.rb +1 -1
- data/spec/models/paginatedpython_python_package_content_response_list_spec.rb +1 -1
- data/spec/models/paginatedpython_python_publication_response_list_spec.rb +1 -1
- data/spec/models/paginatedpython_python_remote_response_list_spec.rb +1 -1
- data/spec/models/paginatedpython_python_repository_response_list_spec.rb +1 -1
- data/spec/models/patchedpython_python_distribution_spec.rb +1 -1
- data/spec/models/patchedpython_python_remote_spec.rb +1 -1
- data/spec/models/patchedpython_python_repository_spec.rb +1 -1
- data/spec/models/policy_enum_spec.rb +1 -1
- data/spec/models/python_bander_remote_spec.rb +1 -1
- data/spec/models/python_python_distribution_response_spec.rb +1 -1
- data/spec/models/python_python_distribution_spec.rb +1 -1
- data/spec/models/python_python_package_content_response_spec.rb +1 -1
- data/spec/models/python_python_package_content_spec.rb +1 -1
- data/spec/models/python_python_publication_response_spec.rb +1 -1
- data/spec/models/python_python_publication_spec.rb +1 -1
- data/spec/models/python_python_remote_response_spec.rb +1 -1
- data/spec/models/python_python_remote_spec.rb +1 -1
- data/spec/models/python_python_repository_response_spec.rb +1 -1
- data/spec/models/python_python_repository_spec.rb +1 -1
- data/spec/models/repository_add_remove_content_spec.rb +1 -1
- data/spec/models/repository_sync_url_spec.rb +1 -1
- data/spec/models/repository_version_response_spec.rb +1 -1
- data/spec/models/repository_version_spec.rb +1 -1
- data/spec/models/summary_response_spec.rb +1 -1
- data/spec/spec_helper.rb +1 -1
- metadata +33 -196
- data/build/lib/pulpcore/__init__.py +0 -2
- data/build/lib/pulpcore/client/__init__.py +0 -2
- data/build/lib/pulpcore/client/pulp_python/__init__.py +0 -75
- data/build/lib/pulpcore/client/pulp_python/api/__init__.py +0 -15
- data/build/lib/pulpcore/client/pulp_python/api/content_packages_api.py +0 -626
- data/build/lib/pulpcore/client/pulp_python/api/distributions_pypi_api.py +0 -830
- data/build/lib/pulpcore/client/pulp_python/api/publications_pypi_api.py +0 -566
- data/build/lib/pulpcore/client/pulp_python/api/pypi_api.py +0 -162
- data/build/lib/pulpcore/client/pulp_python/api/pypi_legacy_api.py +0 -185
- data/build/lib/pulpcore/client/pulp_python/api/pypi_metadata_api.py +0 -171
- data/build/lib/pulpcore/client/pulp_python/api/pypi_simple_api.py +0 -434
- data/build/lib/pulpcore/client/pulp_python/api/remotes_python_api.py +0 -972
- data/build/lib/pulpcore/client/pulp_python/api/repositories_python_api.py +0 -1063
- data/build/lib/pulpcore/client/pulp_python/api/repositories_python_versions_api.py +0 -614
- data/build/lib/pulpcore/client/pulp_python/api_client.py +0 -667
- data/build/lib/pulpcore/client/pulp_python/configuration.py +0 -427
- data/build/lib/pulpcore/client/pulp_python/exceptions.py +0 -121
- data/build/lib/pulpcore/client/pulp_python/models/__init__.py +0 -51
- data/build/lib/pulpcore/client/pulp_python/models/async_operation_response.py +0 -124
- data/build/lib/pulpcore/client/pulp_python/models/content_summary.py +0 -176
- data/build/lib/pulpcore/client/pulp_python/models/content_summary_response.py +0 -176
- data/build/lib/pulpcore/client/pulp_python/models/exclude_platforms_enum.py +0 -103
- data/build/lib/pulpcore/client/pulp_python/models/package_metadata_response.py +0 -209
- data/build/lib/pulpcore/client/pulp_python/models/package_types_enum.py +0 -107
- data/build/lib/pulpcore/client/pulp_python/models/package_upload.py +0 -187
- data/build/lib/pulpcore/client/pulp_python/models/package_upload_task_response.py +0 -176
- data/build/lib/pulpcore/client/pulp_python/models/paginated_repository_version_response_list.py +0 -197
- data/build/lib/pulpcore/client/pulp_python/models/paginatedpython_python_distribution_response_list.py +0 -197
- data/build/lib/pulpcore/client/pulp_python/models/paginatedpython_python_package_content_response_list.py +0 -197
- data/build/lib/pulpcore/client/pulp_python/models/paginatedpython_python_publication_response_list.py +0 -197
- data/build/lib/pulpcore/client/pulp_python/models/paginatedpython_python_remote_response_list.py +0 -197
- data/build/lib/pulpcore/client/pulp_python/models/paginatedpython_python_repository_response_list.py +0 -197
- data/build/lib/pulpcore/client/pulp_python/models/patchedpython_python_distribution.py +0 -286
- data/build/lib/pulpcore/client/pulp_python/models/patchedpython_python_remote.py +0 -823
- data/build/lib/pulpcore/client/pulp_python/models/patchedpython_python_repository.py +0 -259
- data/build/lib/pulpcore/client/pulp_python/models/policy_enum.py +0 -102
- data/build/lib/pulpcore/client/pulp_python/models/python_bander_remote.py +0 -181
- data/build/lib/pulpcore/client/pulp_python/models/python_python_distribution.py +0 -288
- data/build/lib/pulpcore/client/pulp_python/models/python_python_distribution_response.py +0 -368
- data/build/lib/pulpcore/client/pulp_python/models/python_python_package_content.py +0 -824
- data/build/lib/pulpcore/client/pulp_python/models/python_python_package_content_response.py +0 -933
- data/build/lib/pulpcore/client/pulp_python/models/python_python_publication.py +0 -149
- data/build/lib/pulpcore/client/pulp_python/models/python_python_publication_response.py +0 -231
- data/build/lib/pulpcore/client/pulp_python/models/python_python_remote.py +0 -825
- data/build/lib/pulpcore/client/pulp_python/models/python_python_remote_response.py +0 -772
- data/build/lib/pulpcore/client/pulp_python/models/python_python_repository.py +0 -260
- data/build/lib/pulpcore/client/pulp_python/models/python_python_repository_response.py +0 -366
- data/build/lib/pulpcore/client/pulp_python/models/repository_add_remove_content.py +0 -179
- data/build/lib/pulpcore/client/pulp_python/models/repository_sync_url.py +0 -151
- data/build/lib/pulpcore/client/pulp_python/models/repository_version.py +0 -123
- data/build/lib/pulpcore/client/pulp_python/models/repository_version_response.py +0 -257
- data/build/lib/pulpcore/client/pulp_python/models/summary_response.py +0 -182
- data/build/lib/pulpcore/client/pulp_python/rest.py +0 -292
- 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/pulp_python_client.egg-info/PKG-INFO +0 -15
- data/pulp_python_client.egg-info/SOURCES.txt +0 -105
- data/pulp_python_client.egg-info/dependency_links.txt +0 -1
- data/pulp_python_client.egg-info/requires.txt +0 -4
- data/pulp_python_client.egg-info/top_level.txt +0 -1
- data/pulpcore/__init__.py +0 -2
- data/pulpcore/client/__init__.py +0 -2
- data/pulpcore/client/pulp_python/__init__.py +0 -75
- data/pulpcore/client/pulp_python/api/__init__.py +0 -15
- data/pulpcore/client/pulp_python/api/content_packages_api.py +0 -626
- data/pulpcore/client/pulp_python/api/distributions_pypi_api.py +0 -830
- data/pulpcore/client/pulp_python/api/publications_pypi_api.py +0 -566
- data/pulpcore/client/pulp_python/api/pypi_api.py +0 -162
- data/pulpcore/client/pulp_python/api/pypi_legacy_api.py +0 -185
- data/pulpcore/client/pulp_python/api/pypi_metadata_api.py +0 -171
- data/pulpcore/client/pulp_python/api/pypi_simple_api.py +0 -434
- data/pulpcore/client/pulp_python/api/remotes_python_api.py +0 -972
- data/pulpcore/client/pulp_python/api/repositories_python_api.py +0 -1063
- data/pulpcore/client/pulp_python/api/repositories_python_versions_api.py +0 -614
- data/pulpcore/client/pulp_python/api_client.py +0 -667
- data/pulpcore/client/pulp_python/configuration.py +0 -427
- data/pulpcore/client/pulp_python/exceptions.py +0 -121
- data/pulpcore/client/pulp_python/models/__init__.py +0 -51
- data/pulpcore/client/pulp_python/models/async_operation_response.py +0 -124
- data/pulpcore/client/pulp_python/models/content_summary.py +0 -176
- data/pulpcore/client/pulp_python/models/content_summary_response.py +0 -176
- data/pulpcore/client/pulp_python/models/exclude_platforms_enum.py +0 -103
- data/pulpcore/client/pulp_python/models/package_metadata_response.py +0 -209
- data/pulpcore/client/pulp_python/models/package_types_enum.py +0 -107
- data/pulpcore/client/pulp_python/models/package_upload.py +0 -187
- data/pulpcore/client/pulp_python/models/package_upload_task_response.py +0 -176
- data/pulpcore/client/pulp_python/models/paginated_repository_version_response_list.py +0 -197
- data/pulpcore/client/pulp_python/models/paginatedpython_python_distribution_response_list.py +0 -197
- data/pulpcore/client/pulp_python/models/paginatedpython_python_package_content_response_list.py +0 -197
- data/pulpcore/client/pulp_python/models/paginatedpython_python_publication_response_list.py +0 -197
- data/pulpcore/client/pulp_python/models/paginatedpython_python_remote_response_list.py +0 -197
- data/pulpcore/client/pulp_python/models/paginatedpython_python_repository_response_list.py +0 -197
- data/pulpcore/client/pulp_python/models/patchedpython_python_distribution.py +0 -286
- data/pulpcore/client/pulp_python/models/patchedpython_python_remote.py +0 -823
- data/pulpcore/client/pulp_python/models/patchedpython_python_repository.py +0 -259
- data/pulpcore/client/pulp_python/models/policy_enum.py +0 -102
- data/pulpcore/client/pulp_python/models/python_bander_remote.py +0 -181
- data/pulpcore/client/pulp_python/models/python_python_distribution.py +0 -288
- data/pulpcore/client/pulp_python/models/python_python_distribution_response.py +0 -368
- data/pulpcore/client/pulp_python/models/python_python_package_content.py +0 -824
- data/pulpcore/client/pulp_python/models/python_python_package_content_response.py +0 -933
- data/pulpcore/client/pulp_python/models/python_python_publication.py +0 -149
- data/pulpcore/client/pulp_python/models/python_python_publication_response.py +0 -231
- data/pulpcore/client/pulp_python/models/python_python_remote.py +0 -825
- data/pulpcore/client/pulp_python/models/python_python_remote_response.py +0 -772
- data/pulpcore/client/pulp_python/models/python_python_repository.py +0 -260
- data/pulpcore/client/pulp_python/models/python_python_repository_response.py +0 -366
- data/pulpcore/client/pulp_python/models/repository_add_remove_content.py +0 -179
- data/pulpcore/client/pulp_python/models/repository_sync_url.py +0 -151
- data/pulpcore/client/pulp_python/models/repository_version.py +0 -123
- data/pulpcore/client/pulp_python/models/repository_version_response.py +0 -257
- data/pulpcore/client/pulp_python/models/summary_response.py +0 -182
- data/pulpcore/client/pulp_python/rest.py +0 -292
- data/requirements.txt +0 -6
- data/setup.cfg +0 -2
- data/setup.py +0 -42
- data/test/__init__.py +0 -0
- data/test/test_async_operation_response.py +0 -54
- data/test/test_content_packages_api.py +0 -55
- data/test/test_content_summary.py +0 -70
- data/test/test_content_summary_response.py +0 -70
- data/test/test_distributions_pypi_api.py +0 -76
- data/test/test_exclude_platforms_enum.py +0 -52
- data/test/test_package_metadata_response.py +0 -60
- data/test/test_package_types_enum.py +0 -52
- data/test/test_package_upload.py +0 -57
- data/test/test_package_upload_task_response.py +0 -58
- data/test/test_paginated_repository_version_response_list.py +0 -64
- data/test/test_paginatedpython_python_distribution_response_list.py +0 -68
- data/test/test_paginatedpython_python_package_content_response_list.py +0 -88
- data/test/test_paginatedpython_python_publication_response_list.py +0 -65
- data/test/test_paginatedpython_python_remote_response_list.py +0 -88
- data/test/test_paginatedpython_python_repository_response_list.py +0 -68
- data/test/test_patchedpython_python_distribution.py +0 -59
- data/test/test_patchedpython_python_remote.py +0 -84
- data/test/test_patchedpython_python_repository.py +0 -58
- data/test/test_policy_enum.py +0 -52
- data/test/test_publications_pypi_api.py +0 -62
- data/test/test_pypi_api.py +0 -41
- data/test/test_pypi_legacy_api.py +0 -41
- data/test/test_pypi_metadata_api.py +0 -41
- data/test/test_pypi_simple_api.py +0 -55
- data/test/test_python_bander_remote.py +0 -57
- data/test/test_python_python_distribution.py +0 -61
- data/test/test_python_python_distribution_response.py +0 -64
- data/test/test_python_python_package_content.py +0 -79
- data/test/test_python_python_package_content_response.py +0 -82
- data/test/test_python_python_publication.py +0 -54
- data/test/test_python_python_publication_response.py +0 -59
- data/test/test_python_python_remote.py +0 -86
- data/test/test_python_python_remote_response.py +0 -84
- data/test/test_python_python_repository.py +0 -59
- data/test/test_python_python_repository_response.py +0 -63
- data/test/test_remotes_python_api.py +0 -83
- data/test/test_repositories_python_api.py +0 -90
- data/test/test_repositories_python_versions_api.py +0 -61
- data/test/test_repository_add_remove_content.py +0 -59
- data/test/test_repository_sync_url.py +0 -54
- data/test/test_repository_version.py +0 -53
- data/test/test_repository_version_response.py +0 -58
- data/test/test_summary_response.py +0 -58
- data/test-requirements.txt +0 -3
- data/tox.ini +0 -9
@@ -1,103 +0,0 @@
|
|
1
|
-
# coding: utf-8
|
2
|
-
|
3
|
-
"""
|
4
|
-
Pulp 3 API
|
5
|
-
|
6
|
-
Fetch, Upload, Organize, and Distribute Software Packages # noqa: E501
|
7
|
-
|
8
|
-
The version of the OpenAPI document: v3
|
9
|
-
Contact: pulp-list@redhat.com
|
10
|
-
Generated by: https://openapi-generator.tech
|
11
|
-
"""
|
12
|
-
|
13
|
-
|
14
|
-
import pprint
|
15
|
-
import re # noqa: F401
|
16
|
-
|
17
|
-
import six
|
18
|
-
|
19
|
-
from pulpcore.client.pulp_python.configuration import Configuration
|
20
|
-
|
21
|
-
|
22
|
-
class ExcludePlatformsEnum(object):
|
23
|
-
"""NOTE: This class is auto generated by OpenAPI Generator.
|
24
|
-
Ref: https://openapi-generator.tech
|
25
|
-
|
26
|
-
Do not edit the class manually.
|
27
|
-
"""
|
28
|
-
|
29
|
-
"""
|
30
|
-
allowed enum values
|
31
|
-
"""
|
32
|
-
WINDOWS = "windows"
|
33
|
-
MACOS = "macos"
|
34
|
-
FREEBSD = "freebsd"
|
35
|
-
LINUX = "linux"
|
36
|
-
|
37
|
-
allowable_values = [WINDOWS, MACOS, FREEBSD, LINUX] # noqa: E501
|
38
|
-
|
39
|
-
"""
|
40
|
-
Attributes:
|
41
|
-
openapi_types (dict): The key is attribute name
|
42
|
-
and the value is attribute type.
|
43
|
-
attribute_map (dict): The key is attribute name
|
44
|
-
and the value is json key in definition.
|
45
|
-
"""
|
46
|
-
openapi_types = {
|
47
|
-
}
|
48
|
-
|
49
|
-
attribute_map = {
|
50
|
-
}
|
51
|
-
|
52
|
-
def __init__(self, local_vars_configuration=None): # noqa: E501
|
53
|
-
"""ExcludePlatformsEnum - a model defined in OpenAPI""" # noqa: E501
|
54
|
-
if local_vars_configuration is None:
|
55
|
-
local_vars_configuration = Configuration()
|
56
|
-
self.local_vars_configuration = local_vars_configuration
|
57
|
-
self.discriminator = None
|
58
|
-
|
59
|
-
def to_dict(self):
|
60
|
-
"""Returns the model properties as a dict"""
|
61
|
-
result = {}
|
62
|
-
|
63
|
-
for attr, _ in six.iteritems(self.openapi_types):
|
64
|
-
value = getattr(self, attr)
|
65
|
-
if isinstance(value, list):
|
66
|
-
result[attr] = list(map(
|
67
|
-
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
68
|
-
value
|
69
|
-
))
|
70
|
-
elif hasattr(value, "to_dict"):
|
71
|
-
result[attr] = value.to_dict()
|
72
|
-
elif isinstance(value, dict):
|
73
|
-
result[attr] = dict(map(
|
74
|
-
lambda item: (item[0], item[1].to_dict())
|
75
|
-
if hasattr(item[1], "to_dict") else item,
|
76
|
-
value.items()
|
77
|
-
))
|
78
|
-
else:
|
79
|
-
result[attr] = value
|
80
|
-
|
81
|
-
return result
|
82
|
-
|
83
|
-
def to_str(self):
|
84
|
-
"""Returns the string representation of the model"""
|
85
|
-
return pprint.pformat(self.to_dict())
|
86
|
-
|
87
|
-
def __repr__(self):
|
88
|
-
"""For `print` and `pprint`"""
|
89
|
-
return self.to_str()
|
90
|
-
|
91
|
-
def __eq__(self, other):
|
92
|
-
"""Returns true if both objects are equal"""
|
93
|
-
if not isinstance(other, ExcludePlatformsEnum):
|
94
|
-
return False
|
95
|
-
|
96
|
-
return self.to_dict() == other.to_dict()
|
97
|
-
|
98
|
-
def __ne__(self, other):
|
99
|
-
"""Returns true if both objects are not equal"""
|
100
|
-
if not isinstance(other, ExcludePlatformsEnum):
|
101
|
-
return True
|
102
|
-
|
103
|
-
return self.to_dict() != other.to_dict()
|
@@ -1,209 +0,0 @@
|
|
1
|
-
# coding: utf-8
|
2
|
-
|
3
|
-
"""
|
4
|
-
Pulp 3 API
|
5
|
-
|
6
|
-
Fetch, Upload, Organize, and Distribute Software Packages # noqa: E501
|
7
|
-
|
8
|
-
The version of the OpenAPI document: v3
|
9
|
-
Contact: pulp-list@redhat.com
|
10
|
-
Generated by: https://openapi-generator.tech
|
11
|
-
"""
|
12
|
-
|
13
|
-
|
14
|
-
import pprint
|
15
|
-
import re # noqa: F401
|
16
|
-
|
17
|
-
import six
|
18
|
-
|
19
|
-
from pulpcore.client.pulp_python.configuration import Configuration
|
20
|
-
|
21
|
-
|
22
|
-
class PackageMetadataResponse(object):
|
23
|
-
"""NOTE: This class is auto generated by OpenAPI Generator.
|
24
|
-
Ref: https://openapi-generator.tech
|
25
|
-
|
26
|
-
Do not edit the class manually.
|
27
|
-
"""
|
28
|
-
|
29
|
-
"""
|
30
|
-
Attributes:
|
31
|
-
openapi_types (dict): The key is attribute name
|
32
|
-
and the value is attribute type.
|
33
|
-
attribute_map (dict): The key is attribute name
|
34
|
-
and the value is json key in definition.
|
35
|
-
"""
|
36
|
-
openapi_types = {
|
37
|
-
'last_serial': 'int',
|
38
|
-
'info': 'object',
|
39
|
-
'releases': 'object',
|
40
|
-
'urls': 'object'
|
41
|
-
}
|
42
|
-
|
43
|
-
attribute_map = {
|
44
|
-
'last_serial': 'last_serial',
|
45
|
-
'info': 'info',
|
46
|
-
'releases': 'releases',
|
47
|
-
'urls': 'urls'
|
48
|
-
}
|
49
|
-
|
50
|
-
def __init__(self, last_serial=None, info=None, releases=None, urls=None, local_vars_configuration=None): # noqa: E501
|
51
|
-
"""PackageMetadataResponse - a model defined in OpenAPI""" # noqa: E501
|
52
|
-
if local_vars_configuration is None:
|
53
|
-
local_vars_configuration = Configuration()
|
54
|
-
self.local_vars_configuration = local_vars_configuration
|
55
|
-
|
56
|
-
self._last_serial = None
|
57
|
-
self._info = None
|
58
|
-
self._releases = None
|
59
|
-
self._urls = None
|
60
|
-
self.discriminator = None
|
61
|
-
|
62
|
-
self.last_serial = last_serial
|
63
|
-
self.info = info
|
64
|
-
self.releases = releases
|
65
|
-
self.urls = urls
|
66
|
-
|
67
|
-
@property
|
68
|
-
def last_serial(self):
|
69
|
-
"""Gets the last_serial of this PackageMetadataResponse. # noqa: E501
|
70
|
-
|
71
|
-
Cache value from last PyPI sync # noqa: E501
|
72
|
-
|
73
|
-
:return: The last_serial of this PackageMetadataResponse. # noqa: E501
|
74
|
-
:rtype: int
|
75
|
-
"""
|
76
|
-
return self._last_serial
|
77
|
-
|
78
|
-
@last_serial.setter
|
79
|
-
def last_serial(self, last_serial):
|
80
|
-
"""Sets the last_serial of this PackageMetadataResponse.
|
81
|
-
|
82
|
-
Cache value from last PyPI sync # noqa: E501
|
83
|
-
|
84
|
-
:param last_serial: The last_serial of this PackageMetadataResponse. # noqa: E501
|
85
|
-
:type: int
|
86
|
-
"""
|
87
|
-
if self.local_vars_configuration.client_side_validation and last_serial is None: # noqa: E501
|
88
|
-
raise ValueError("Invalid value for `last_serial`, must not be `None`") # noqa: E501
|
89
|
-
|
90
|
-
self._last_serial = last_serial
|
91
|
-
|
92
|
-
@property
|
93
|
-
def info(self):
|
94
|
-
"""Gets the info of this PackageMetadataResponse. # noqa: E501
|
95
|
-
|
96
|
-
Core metadata of the package # noqa: E501
|
97
|
-
|
98
|
-
:return: The info of this PackageMetadataResponse. # noqa: E501
|
99
|
-
:rtype: object
|
100
|
-
"""
|
101
|
-
return self._info
|
102
|
-
|
103
|
-
@info.setter
|
104
|
-
def info(self, info):
|
105
|
-
"""Sets the info of this PackageMetadataResponse.
|
106
|
-
|
107
|
-
Core metadata of the package # noqa: E501
|
108
|
-
|
109
|
-
:param info: The info of this PackageMetadataResponse. # noqa: E501
|
110
|
-
:type: object
|
111
|
-
"""
|
112
|
-
if self.local_vars_configuration.client_side_validation and info is None: # noqa: E501
|
113
|
-
raise ValueError("Invalid value for `info`, must not be `None`") # noqa: E501
|
114
|
-
|
115
|
-
self._info = info
|
116
|
-
|
117
|
-
@property
|
118
|
-
def releases(self):
|
119
|
-
"""Gets the releases of this PackageMetadataResponse. # noqa: E501
|
120
|
-
|
121
|
-
List of all the releases of the package # noqa: E501
|
122
|
-
|
123
|
-
:return: The releases of this PackageMetadataResponse. # noqa: E501
|
124
|
-
:rtype: object
|
125
|
-
"""
|
126
|
-
return self._releases
|
127
|
-
|
128
|
-
@releases.setter
|
129
|
-
def releases(self, releases):
|
130
|
-
"""Sets the releases of this PackageMetadataResponse.
|
131
|
-
|
132
|
-
List of all the releases of the package # noqa: E501
|
133
|
-
|
134
|
-
:param releases: The releases of this PackageMetadataResponse. # noqa: E501
|
135
|
-
:type: object
|
136
|
-
"""
|
137
|
-
if self.local_vars_configuration.client_side_validation and releases is None: # noqa: E501
|
138
|
-
raise ValueError("Invalid value for `releases`, must not be `None`") # noqa: E501
|
139
|
-
|
140
|
-
self._releases = releases
|
141
|
-
|
142
|
-
@property
|
143
|
-
def urls(self):
|
144
|
-
"""Gets the urls of this PackageMetadataResponse. # noqa: E501
|
145
|
-
|
146
|
-
|
147
|
-
:return: The urls of this PackageMetadataResponse. # noqa: E501
|
148
|
-
:rtype: object
|
149
|
-
"""
|
150
|
-
return self._urls
|
151
|
-
|
152
|
-
@urls.setter
|
153
|
-
def urls(self, urls):
|
154
|
-
"""Sets the urls of this PackageMetadataResponse.
|
155
|
-
|
156
|
-
|
157
|
-
:param urls: The urls of this PackageMetadataResponse. # noqa: E501
|
158
|
-
:type: object
|
159
|
-
"""
|
160
|
-
if self.local_vars_configuration.client_side_validation and urls is None: # noqa: E501
|
161
|
-
raise ValueError("Invalid value for `urls`, must not be `None`") # noqa: E501
|
162
|
-
|
163
|
-
self._urls = urls
|
164
|
-
|
165
|
-
def to_dict(self):
|
166
|
-
"""Returns the model properties as a dict"""
|
167
|
-
result = {}
|
168
|
-
|
169
|
-
for attr, _ in six.iteritems(self.openapi_types):
|
170
|
-
value = getattr(self, attr)
|
171
|
-
if isinstance(value, list):
|
172
|
-
result[attr] = list(map(
|
173
|
-
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
174
|
-
value
|
175
|
-
))
|
176
|
-
elif hasattr(value, "to_dict"):
|
177
|
-
result[attr] = value.to_dict()
|
178
|
-
elif isinstance(value, dict):
|
179
|
-
result[attr] = dict(map(
|
180
|
-
lambda item: (item[0], item[1].to_dict())
|
181
|
-
if hasattr(item[1], "to_dict") else item,
|
182
|
-
value.items()
|
183
|
-
))
|
184
|
-
else:
|
185
|
-
result[attr] = value
|
186
|
-
|
187
|
-
return result
|
188
|
-
|
189
|
-
def to_str(self):
|
190
|
-
"""Returns the string representation of the model"""
|
191
|
-
return pprint.pformat(self.to_dict())
|
192
|
-
|
193
|
-
def __repr__(self):
|
194
|
-
"""For `print` and `pprint`"""
|
195
|
-
return self.to_str()
|
196
|
-
|
197
|
-
def __eq__(self, other):
|
198
|
-
"""Returns true if both objects are equal"""
|
199
|
-
if not isinstance(other, PackageMetadataResponse):
|
200
|
-
return False
|
201
|
-
|
202
|
-
return self.to_dict() == other.to_dict()
|
203
|
-
|
204
|
-
def __ne__(self, other):
|
205
|
-
"""Returns true if both objects are not equal"""
|
206
|
-
if not isinstance(other, PackageMetadataResponse):
|
207
|
-
return True
|
208
|
-
|
209
|
-
return self.to_dict() != other.to_dict()
|
@@ -1,107 +0,0 @@
|
|
1
|
-
# coding: utf-8
|
2
|
-
|
3
|
-
"""
|
4
|
-
Pulp 3 API
|
5
|
-
|
6
|
-
Fetch, Upload, Organize, and Distribute Software Packages # noqa: E501
|
7
|
-
|
8
|
-
The version of the OpenAPI document: v3
|
9
|
-
Contact: pulp-list@redhat.com
|
10
|
-
Generated by: https://openapi-generator.tech
|
11
|
-
"""
|
12
|
-
|
13
|
-
|
14
|
-
import pprint
|
15
|
-
import re # noqa: F401
|
16
|
-
|
17
|
-
import six
|
18
|
-
|
19
|
-
from pulpcore.client.pulp_python.configuration import Configuration
|
20
|
-
|
21
|
-
|
22
|
-
class PackageTypesEnum(object):
|
23
|
-
"""NOTE: This class is auto generated by OpenAPI Generator.
|
24
|
-
Ref: https://openapi-generator.tech
|
25
|
-
|
26
|
-
Do not edit the class manually.
|
27
|
-
"""
|
28
|
-
|
29
|
-
"""
|
30
|
-
allowed enum values
|
31
|
-
"""
|
32
|
-
BDIST_DMG = "bdist_dmg"
|
33
|
-
BDIST_DUMB = "bdist_dumb"
|
34
|
-
BDIST_EGG = "bdist_egg"
|
35
|
-
BDIST_MSI = "bdist_msi"
|
36
|
-
BDIST_RPM = "bdist_rpm"
|
37
|
-
BDIST_WHEEL = "bdist_wheel"
|
38
|
-
BDIST_WININST = "bdist_wininst"
|
39
|
-
SDIST = "sdist"
|
40
|
-
|
41
|
-
allowable_values = [BDIST_DMG, BDIST_DUMB, BDIST_EGG, BDIST_MSI, BDIST_RPM, BDIST_WHEEL, BDIST_WININST, SDIST] # noqa: E501
|
42
|
-
|
43
|
-
"""
|
44
|
-
Attributes:
|
45
|
-
openapi_types (dict): The key is attribute name
|
46
|
-
and the value is attribute type.
|
47
|
-
attribute_map (dict): The key is attribute name
|
48
|
-
and the value is json key in definition.
|
49
|
-
"""
|
50
|
-
openapi_types = {
|
51
|
-
}
|
52
|
-
|
53
|
-
attribute_map = {
|
54
|
-
}
|
55
|
-
|
56
|
-
def __init__(self, local_vars_configuration=None): # noqa: E501
|
57
|
-
"""PackageTypesEnum - a model defined in OpenAPI""" # noqa: E501
|
58
|
-
if local_vars_configuration is None:
|
59
|
-
local_vars_configuration = Configuration()
|
60
|
-
self.local_vars_configuration = local_vars_configuration
|
61
|
-
self.discriminator = None
|
62
|
-
|
63
|
-
def to_dict(self):
|
64
|
-
"""Returns the model properties as a dict"""
|
65
|
-
result = {}
|
66
|
-
|
67
|
-
for attr, _ in six.iteritems(self.openapi_types):
|
68
|
-
value = getattr(self, attr)
|
69
|
-
if isinstance(value, list):
|
70
|
-
result[attr] = list(map(
|
71
|
-
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
72
|
-
value
|
73
|
-
))
|
74
|
-
elif hasattr(value, "to_dict"):
|
75
|
-
result[attr] = value.to_dict()
|
76
|
-
elif isinstance(value, dict):
|
77
|
-
result[attr] = dict(map(
|
78
|
-
lambda item: (item[0], item[1].to_dict())
|
79
|
-
if hasattr(item[1], "to_dict") else item,
|
80
|
-
value.items()
|
81
|
-
))
|
82
|
-
else:
|
83
|
-
result[attr] = value
|
84
|
-
|
85
|
-
return result
|
86
|
-
|
87
|
-
def to_str(self):
|
88
|
-
"""Returns the string representation of the model"""
|
89
|
-
return pprint.pformat(self.to_dict())
|
90
|
-
|
91
|
-
def __repr__(self):
|
92
|
-
"""For `print` and `pprint`"""
|
93
|
-
return self.to_str()
|
94
|
-
|
95
|
-
def __eq__(self, other):
|
96
|
-
"""Returns true if both objects are equal"""
|
97
|
-
if not isinstance(other, PackageTypesEnum):
|
98
|
-
return False
|
99
|
-
|
100
|
-
return self.to_dict() == other.to_dict()
|
101
|
-
|
102
|
-
def __ne__(self, other):
|
103
|
-
"""Returns true if both objects are not equal"""
|
104
|
-
if not isinstance(other, PackageTypesEnum):
|
105
|
-
return True
|
106
|
-
|
107
|
-
return self.to_dict() != other.to_dict()
|
@@ -1,187 +0,0 @@
|
|
1
|
-
# coding: utf-8
|
2
|
-
|
3
|
-
"""
|
4
|
-
Pulp 3 API
|
5
|
-
|
6
|
-
Fetch, Upload, Organize, and Distribute Software Packages # noqa: E501
|
7
|
-
|
8
|
-
The version of the OpenAPI document: v3
|
9
|
-
Contact: pulp-list@redhat.com
|
10
|
-
Generated by: https://openapi-generator.tech
|
11
|
-
"""
|
12
|
-
|
13
|
-
|
14
|
-
import pprint
|
15
|
-
import re # noqa: F401
|
16
|
-
|
17
|
-
import six
|
18
|
-
|
19
|
-
from pulpcore.client.pulp_python.configuration import Configuration
|
20
|
-
|
21
|
-
|
22
|
-
class PackageUpload(object):
|
23
|
-
"""NOTE: This class is auto generated by OpenAPI Generator.
|
24
|
-
Ref: https://openapi-generator.tech
|
25
|
-
|
26
|
-
Do not edit the class manually.
|
27
|
-
"""
|
28
|
-
|
29
|
-
"""
|
30
|
-
Attributes:
|
31
|
-
openapi_types (dict): The key is attribute name
|
32
|
-
and the value is attribute type.
|
33
|
-
attribute_map (dict): The key is attribute name
|
34
|
-
and the value is json key in definition.
|
35
|
-
"""
|
36
|
-
openapi_types = {
|
37
|
-
'content': 'file',
|
38
|
-
'action': 'str',
|
39
|
-
'sha256_digest': 'str'
|
40
|
-
}
|
41
|
-
|
42
|
-
attribute_map = {
|
43
|
-
'content': 'content',
|
44
|
-
'action': 'action',
|
45
|
-
'sha256_digest': 'sha256_digest'
|
46
|
-
}
|
47
|
-
|
48
|
-
def __init__(self, content=None, action='file_upload', sha256_digest=None, local_vars_configuration=None): # noqa: E501
|
49
|
-
"""PackageUpload - a model defined in OpenAPI""" # noqa: E501
|
50
|
-
if local_vars_configuration is None:
|
51
|
-
local_vars_configuration = Configuration()
|
52
|
-
self.local_vars_configuration = local_vars_configuration
|
53
|
-
|
54
|
-
self._content = None
|
55
|
-
self._action = None
|
56
|
-
self._sha256_digest = None
|
57
|
-
self.discriminator = None
|
58
|
-
|
59
|
-
self.content = content
|
60
|
-
if action is not None:
|
61
|
-
self.action = action
|
62
|
-
self.sha256_digest = sha256_digest
|
63
|
-
|
64
|
-
@property
|
65
|
-
def content(self):
|
66
|
-
"""Gets the content of this PackageUpload. # noqa: E501
|
67
|
-
|
68
|
-
A Python package release file to upload to the index. # noqa: E501
|
69
|
-
|
70
|
-
:return: The content of this PackageUpload. # noqa: E501
|
71
|
-
:rtype: file
|
72
|
-
"""
|
73
|
-
return self._content
|
74
|
-
|
75
|
-
@content.setter
|
76
|
-
def content(self, content):
|
77
|
-
"""Sets the content of this PackageUpload.
|
78
|
-
|
79
|
-
A Python package release file to upload to the index. # noqa: E501
|
80
|
-
|
81
|
-
:param content: The content of this PackageUpload. # noqa: E501
|
82
|
-
:type: file
|
83
|
-
"""
|
84
|
-
if self.local_vars_configuration.client_side_validation and content is None: # noqa: E501
|
85
|
-
raise ValueError("Invalid value for `content`, must not be `None`") # noqa: E501
|
86
|
-
|
87
|
-
self._content = content
|
88
|
-
|
89
|
-
@property
|
90
|
-
def action(self):
|
91
|
-
"""Gets the action of this PackageUpload. # noqa: E501
|
92
|
-
|
93
|
-
Defaults to `file_upload`, don't change it or request will fail! # noqa: E501
|
94
|
-
|
95
|
-
:return: The action of this PackageUpload. # noqa: E501
|
96
|
-
:rtype: str
|
97
|
-
"""
|
98
|
-
return self._action
|
99
|
-
|
100
|
-
@action.setter
|
101
|
-
def action(self, action):
|
102
|
-
"""Sets the action of this PackageUpload.
|
103
|
-
|
104
|
-
Defaults to `file_upload`, don't change it or request will fail! # noqa: E501
|
105
|
-
|
106
|
-
:param action: The action of this PackageUpload. # noqa: E501
|
107
|
-
:type: str
|
108
|
-
"""
|
109
|
-
|
110
|
-
self._action = action
|
111
|
-
|
112
|
-
@property
|
113
|
-
def sha256_digest(self):
|
114
|
-
"""Gets the sha256_digest of this PackageUpload. # noqa: E501
|
115
|
-
|
116
|
-
SHA256 of package to validate upload integrity. # noqa: E501
|
117
|
-
|
118
|
-
:return: The sha256_digest of this PackageUpload. # noqa: E501
|
119
|
-
:rtype: str
|
120
|
-
"""
|
121
|
-
return self._sha256_digest
|
122
|
-
|
123
|
-
@sha256_digest.setter
|
124
|
-
def sha256_digest(self, sha256_digest):
|
125
|
-
"""Sets the sha256_digest of this PackageUpload.
|
126
|
-
|
127
|
-
SHA256 of package to validate upload integrity. # noqa: E501
|
128
|
-
|
129
|
-
:param sha256_digest: The sha256_digest of this PackageUpload. # noqa: E501
|
130
|
-
:type: str
|
131
|
-
"""
|
132
|
-
if self.local_vars_configuration.client_side_validation and sha256_digest is None: # noqa: E501
|
133
|
-
raise ValueError("Invalid value for `sha256_digest`, must not be `None`") # noqa: E501
|
134
|
-
if (self.local_vars_configuration.client_side_validation and
|
135
|
-
sha256_digest is not None and len(sha256_digest) > 64):
|
136
|
-
raise ValueError("Invalid value for `sha256_digest`, length must be less than or equal to `64`") # noqa: E501
|
137
|
-
if (self.local_vars_configuration.client_side_validation and
|
138
|
-
sha256_digest is not None and len(sha256_digest) < 64):
|
139
|
-
raise ValueError("Invalid value for `sha256_digest`, length must be greater than or equal to `64`") # noqa: E501
|
140
|
-
|
141
|
-
self._sha256_digest = sha256_digest
|
142
|
-
|
143
|
-
def to_dict(self):
|
144
|
-
"""Returns the model properties as a dict"""
|
145
|
-
result = {}
|
146
|
-
|
147
|
-
for attr, _ in six.iteritems(self.openapi_types):
|
148
|
-
value = getattr(self, attr)
|
149
|
-
if isinstance(value, list):
|
150
|
-
result[attr] = list(map(
|
151
|
-
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
152
|
-
value
|
153
|
-
))
|
154
|
-
elif hasattr(value, "to_dict"):
|
155
|
-
result[attr] = value.to_dict()
|
156
|
-
elif isinstance(value, dict):
|
157
|
-
result[attr] = dict(map(
|
158
|
-
lambda item: (item[0], item[1].to_dict())
|
159
|
-
if hasattr(item[1], "to_dict") else item,
|
160
|
-
value.items()
|
161
|
-
))
|
162
|
-
else:
|
163
|
-
result[attr] = value
|
164
|
-
|
165
|
-
return result
|
166
|
-
|
167
|
-
def to_str(self):
|
168
|
-
"""Returns the string representation of the model"""
|
169
|
-
return pprint.pformat(self.to_dict())
|
170
|
-
|
171
|
-
def __repr__(self):
|
172
|
-
"""For `print` and `pprint`"""
|
173
|
-
return self.to_str()
|
174
|
-
|
175
|
-
def __eq__(self, other):
|
176
|
-
"""Returns true if both objects are equal"""
|
177
|
-
if not isinstance(other, PackageUpload):
|
178
|
-
return False
|
179
|
-
|
180
|
-
return self.to_dict() == other.to_dict()
|
181
|
-
|
182
|
-
def __ne__(self, other):
|
183
|
-
"""Returns true if both objects are not equal"""
|
184
|
-
if not isinstance(other, PackageUpload):
|
185
|
-
return True
|
186
|
-
|
187
|
-
return self.to_dict() != other.to_dict()
|