pulp_python_client 3.4.0 → 3.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/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,260 +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 PythonPythonRepository(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
|
-
'pulp_labels': 'object',
|
|
38
|
-
'name': 'str',
|
|
39
|
-
'description': 'str',
|
|
40
|
-
'retained_versions': 'int',
|
|
41
|
-
'remote': 'str',
|
|
42
|
-
'autopublish': 'bool'
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
attribute_map = {
|
|
46
|
-
'pulp_labels': 'pulp_labels',
|
|
47
|
-
'name': 'name',
|
|
48
|
-
'description': 'description',
|
|
49
|
-
'retained_versions': 'retained_versions',
|
|
50
|
-
'remote': 'remote',
|
|
51
|
-
'autopublish': 'autopublish'
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
def __init__(self, pulp_labels=None, name=None, description=None, retained_versions=None, remote=None, autopublish=False, local_vars_configuration=None): # noqa: E501
|
|
55
|
-
"""PythonPythonRepository - a model defined in OpenAPI""" # noqa: E501
|
|
56
|
-
if local_vars_configuration is None:
|
|
57
|
-
local_vars_configuration = Configuration()
|
|
58
|
-
self.local_vars_configuration = local_vars_configuration
|
|
59
|
-
|
|
60
|
-
self._pulp_labels = None
|
|
61
|
-
self._name = None
|
|
62
|
-
self._description = None
|
|
63
|
-
self._retained_versions = None
|
|
64
|
-
self._remote = None
|
|
65
|
-
self._autopublish = None
|
|
66
|
-
self.discriminator = None
|
|
67
|
-
|
|
68
|
-
if pulp_labels is not None:
|
|
69
|
-
self.pulp_labels = pulp_labels
|
|
70
|
-
self.name = name
|
|
71
|
-
self.description = description
|
|
72
|
-
self.retained_versions = retained_versions
|
|
73
|
-
self.remote = remote
|
|
74
|
-
if autopublish is not None:
|
|
75
|
-
self.autopublish = autopublish
|
|
76
|
-
|
|
77
|
-
@property
|
|
78
|
-
def pulp_labels(self):
|
|
79
|
-
"""Gets the pulp_labels of this PythonPythonRepository. # noqa: E501
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
:return: The pulp_labels of this PythonPythonRepository. # noqa: E501
|
|
83
|
-
:rtype: object
|
|
84
|
-
"""
|
|
85
|
-
return self._pulp_labels
|
|
86
|
-
|
|
87
|
-
@pulp_labels.setter
|
|
88
|
-
def pulp_labels(self, pulp_labels):
|
|
89
|
-
"""Sets the pulp_labels of this PythonPythonRepository.
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
:param pulp_labels: The pulp_labels of this PythonPythonRepository. # noqa: E501
|
|
93
|
-
:type: object
|
|
94
|
-
"""
|
|
95
|
-
|
|
96
|
-
self._pulp_labels = pulp_labels
|
|
97
|
-
|
|
98
|
-
@property
|
|
99
|
-
def name(self):
|
|
100
|
-
"""Gets the name of this PythonPythonRepository. # noqa: E501
|
|
101
|
-
|
|
102
|
-
A unique name for this repository. # noqa: E501
|
|
103
|
-
|
|
104
|
-
:return: The name of this PythonPythonRepository. # noqa: E501
|
|
105
|
-
:rtype: str
|
|
106
|
-
"""
|
|
107
|
-
return self._name
|
|
108
|
-
|
|
109
|
-
@name.setter
|
|
110
|
-
def name(self, name):
|
|
111
|
-
"""Sets the name of this PythonPythonRepository.
|
|
112
|
-
|
|
113
|
-
A unique name for this repository. # noqa: E501
|
|
114
|
-
|
|
115
|
-
:param name: The name of this PythonPythonRepository. # noqa: E501
|
|
116
|
-
:type: str
|
|
117
|
-
"""
|
|
118
|
-
if self.local_vars_configuration.client_side_validation and name is None: # noqa: E501
|
|
119
|
-
raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501
|
|
120
|
-
|
|
121
|
-
self._name = name
|
|
122
|
-
|
|
123
|
-
@property
|
|
124
|
-
def description(self):
|
|
125
|
-
"""Gets the description of this PythonPythonRepository. # noqa: E501
|
|
126
|
-
|
|
127
|
-
An optional description. # noqa: E501
|
|
128
|
-
|
|
129
|
-
:return: The description of this PythonPythonRepository. # noqa: E501
|
|
130
|
-
:rtype: str
|
|
131
|
-
"""
|
|
132
|
-
return self._description
|
|
133
|
-
|
|
134
|
-
@description.setter
|
|
135
|
-
def description(self, description):
|
|
136
|
-
"""Sets the description of this PythonPythonRepository.
|
|
137
|
-
|
|
138
|
-
An optional description. # noqa: E501
|
|
139
|
-
|
|
140
|
-
:param description: The description of this PythonPythonRepository. # noqa: E501
|
|
141
|
-
:type: str
|
|
142
|
-
"""
|
|
143
|
-
|
|
144
|
-
self._description = description
|
|
145
|
-
|
|
146
|
-
@property
|
|
147
|
-
def retained_versions(self):
|
|
148
|
-
"""Gets the retained_versions of this PythonPythonRepository. # noqa: E501
|
|
149
|
-
|
|
150
|
-
Retain X versions of the repository. Default is null which retains all versions. This is provided as a tech preview in Pulp 3 and may change in the future. # noqa: E501
|
|
151
|
-
|
|
152
|
-
:return: The retained_versions of this PythonPythonRepository. # noqa: E501
|
|
153
|
-
:rtype: int
|
|
154
|
-
"""
|
|
155
|
-
return self._retained_versions
|
|
156
|
-
|
|
157
|
-
@retained_versions.setter
|
|
158
|
-
def retained_versions(self, retained_versions):
|
|
159
|
-
"""Sets the retained_versions of this PythonPythonRepository.
|
|
160
|
-
|
|
161
|
-
Retain X versions of the repository. Default is null which retains all versions. This is provided as a tech preview in Pulp 3 and may change in the future. # noqa: E501
|
|
162
|
-
|
|
163
|
-
:param retained_versions: The retained_versions of this PythonPythonRepository. # noqa: E501
|
|
164
|
-
:type: int
|
|
165
|
-
"""
|
|
166
|
-
if (self.local_vars_configuration.client_side_validation and
|
|
167
|
-
retained_versions is not None and retained_versions < 1): # noqa: E501
|
|
168
|
-
raise ValueError("Invalid value for `retained_versions`, must be a value greater than or equal to `1`") # noqa: E501
|
|
169
|
-
|
|
170
|
-
self._retained_versions = retained_versions
|
|
171
|
-
|
|
172
|
-
@property
|
|
173
|
-
def remote(self):
|
|
174
|
-
"""Gets the remote of this PythonPythonRepository. # noqa: E501
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
:return: The remote of this PythonPythonRepository. # noqa: E501
|
|
178
|
-
:rtype: str
|
|
179
|
-
"""
|
|
180
|
-
return self._remote
|
|
181
|
-
|
|
182
|
-
@remote.setter
|
|
183
|
-
def remote(self, remote):
|
|
184
|
-
"""Sets the remote of this PythonPythonRepository.
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
:param remote: The remote of this PythonPythonRepository. # noqa: E501
|
|
188
|
-
:type: str
|
|
189
|
-
"""
|
|
190
|
-
|
|
191
|
-
self._remote = remote
|
|
192
|
-
|
|
193
|
-
@property
|
|
194
|
-
def autopublish(self):
|
|
195
|
-
"""Gets the autopublish of this PythonPythonRepository. # noqa: E501
|
|
196
|
-
|
|
197
|
-
Whether to automatically create publications for new repository versions, and update any distributions pointing to this repository. # noqa: E501
|
|
198
|
-
|
|
199
|
-
:return: The autopublish of this PythonPythonRepository. # noqa: E501
|
|
200
|
-
:rtype: bool
|
|
201
|
-
"""
|
|
202
|
-
return self._autopublish
|
|
203
|
-
|
|
204
|
-
@autopublish.setter
|
|
205
|
-
def autopublish(self, autopublish):
|
|
206
|
-
"""Sets the autopublish of this PythonPythonRepository.
|
|
207
|
-
|
|
208
|
-
Whether to automatically create publications for new repository versions, and update any distributions pointing to this repository. # noqa: E501
|
|
209
|
-
|
|
210
|
-
:param autopublish: The autopublish of this PythonPythonRepository. # noqa: E501
|
|
211
|
-
:type: bool
|
|
212
|
-
"""
|
|
213
|
-
|
|
214
|
-
self._autopublish = autopublish
|
|
215
|
-
|
|
216
|
-
def to_dict(self):
|
|
217
|
-
"""Returns the model properties as a dict"""
|
|
218
|
-
result = {}
|
|
219
|
-
|
|
220
|
-
for attr, _ in six.iteritems(self.openapi_types):
|
|
221
|
-
value = getattr(self, attr)
|
|
222
|
-
if isinstance(value, list):
|
|
223
|
-
result[attr] = list(map(
|
|
224
|
-
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
225
|
-
value
|
|
226
|
-
))
|
|
227
|
-
elif hasattr(value, "to_dict"):
|
|
228
|
-
result[attr] = value.to_dict()
|
|
229
|
-
elif isinstance(value, dict):
|
|
230
|
-
result[attr] = dict(map(
|
|
231
|
-
lambda item: (item[0], item[1].to_dict())
|
|
232
|
-
if hasattr(item[1], "to_dict") else item,
|
|
233
|
-
value.items()
|
|
234
|
-
))
|
|
235
|
-
else:
|
|
236
|
-
result[attr] = value
|
|
237
|
-
|
|
238
|
-
return result
|
|
239
|
-
|
|
240
|
-
def to_str(self):
|
|
241
|
-
"""Returns the string representation of the model"""
|
|
242
|
-
return pprint.pformat(self.to_dict())
|
|
243
|
-
|
|
244
|
-
def __repr__(self):
|
|
245
|
-
"""For `print` and `pprint`"""
|
|
246
|
-
return self.to_str()
|
|
247
|
-
|
|
248
|
-
def __eq__(self, other):
|
|
249
|
-
"""Returns true if both objects are equal"""
|
|
250
|
-
if not isinstance(other, PythonPythonRepository):
|
|
251
|
-
return False
|
|
252
|
-
|
|
253
|
-
return self.to_dict() == other.to_dict()
|
|
254
|
-
|
|
255
|
-
def __ne__(self, other):
|
|
256
|
-
"""Returns true if both objects are not equal"""
|
|
257
|
-
if not isinstance(other, PythonPythonRepository):
|
|
258
|
-
return True
|
|
259
|
-
|
|
260
|
-
return self.to_dict() != other.to_dict()
|
|
@@ -1,366 +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 PythonPythonRepositoryResponse(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
|
-
'pulp_href': 'str',
|
|
38
|
-
'pulp_created': 'datetime',
|
|
39
|
-
'versions_href': 'str',
|
|
40
|
-
'pulp_labels': 'object',
|
|
41
|
-
'latest_version_href': 'str',
|
|
42
|
-
'name': 'str',
|
|
43
|
-
'description': 'str',
|
|
44
|
-
'retained_versions': 'int',
|
|
45
|
-
'remote': 'str',
|
|
46
|
-
'autopublish': 'bool'
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
attribute_map = {
|
|
50
|
-
'pulp_href': 'pulp_href',
|
|
51
|
-
'pulp_created': 'pulp_created',
|
|
52
|
-
'versions_href': 'versions_href',
|
|
53
|
-
'pulp_labels': 'pulp_labels',
|
|
54
|
-
'latest_version_href': 'latest_version_href',
|
|
55
|
-
'name': 'name',
|
|
56
|
-
'description': 'description',
|
|
57
|
-
'retained_versions': 'retained_versions',
|
|
58
|
-
'remote': 'remote',
|
|
59
|
-
'autopublish': 'autopublish'
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
def __init__(self, pulp_href=None, pulp_created=None, versions_href=None, pulp_labels=None, latest_version_href=None, name=None, description=None, retained_versions=None, remote=None, autopublish=False, local_vars_configuration=None): # noqa: E501
|
|
63
|
-
"""PythonPythonRepositoryResponse - a model defined in OpenAPI""" # noqa: E501
|
|
64
|
-
if local_vars_configuration is None:
|
|
65
|
-
local_vars_configuration = Configuration()
|
|
66
|
-
self.local_vars_configuration = local_vars_configuration
|
|
67
|
-
|
|
68
|
-
self._pulp_href = None
|
|
69
|
-
self._pulp_created = None
|
|
70
|
-
self._versions_href = None
|
|
71
|
-
self._pulp_labels = None
|
|
72
|
-
self._latest_version_href = None
|
|
73
|
-
self._name = None
|
|
74
|
-
self._description = None
|
|
75
|
-
self._retained_versions = None
|
|
76
|
-
self._remote = None
|
|
77
|
-
self._autopublish = None
|
|
78
|
-
self.discriminator = None
|
|
79
|
-
|
|
80
|
-
if pulp_href is not None:
|
|
81
|
-
self.pulp_href = pulp_href
|
|
82
|
-
if pulp_created is not None:
|
|
83
|
-
self.pulp_created = pulp_created
|
|
84
|
-
if versions_href is not None:
|
|
85
|
-
self.versions_href = versions_href
|
|
86
|
-
if pulp_labels is not None:
|
|
87
|
-
self.pulp_labels = pulp_labels
|
|
88
|
-
if latest_version_href is not None:
|
|
89
|
-
self.latest_version_href = latest_version_href
|
|
90
|
-
self.name = name
|
|
91
|
-
self.description = description
|
|
92
|
-
self.retained_versions = retained_versions
|
|
93
|
-
self.remote = remote
|
|
94
|
-
if autopublish is not None:
|
|
95
|
-
self.autopublish = autopublish
|
|
96
|
-
|
|
97
|
-
@property
|
|
98
|
-
def pulp_href(self):
|
|
99
|
-
"""Gets the pulp_href of this PythonPythonRepositoryResponse. # noqa: E501
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
:return: The pulp_href of this PythonPythonRepositoryResponse. # noqa: E501
|
|
103
|
-
:rtype: str
|
|
104
|
-
"""
|
|
105
|
-
return self._pulp_href
|
|
106
|
-
|
|
107
|
-
@pulp_href.setter
|
|
108
|
-
def pulp_href(self, pulp_href):
|
|
109
|
-
"""Sets the pulp_href of this PythonPythonRepositoryResponse.
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
:param pulp_href: The pulp_href of this PythonPythonRepositoryResponse. # noqa: E501
|
|
113
|
-
:type: str
|
|
114
|
-
"""
|
|
115
|
-
|
|
116
|
-
self._pulp_href = pulp_href
|
|
117
|
-
|
|
118
|
-
@property
|
|
119
|
-
def pulp_created(self):
|
|
120
|
-
"""Gets the pulp_created of this PythonPythonRepositoryResponse. # noqa: E501
|
|
121
|
-
|
|
122
|
-
Timestamp of creation. # noqa: E501
|
|
123
|
-
|
|
124
|
-
:return: The pulp_created of this PythonPythonRepositoryResponse. # noqa: E501
|
|
125
|
-
:rtype: datetime
|
|
126
|
-
"""
|
|
127
|
-
return self._pulp_created
|
|
128
|
-
|
|
129
|
-
@pulp_created.setter
|
|
130
|
-
def pulp_created(self, pulp_created):
|
|
131
|
-
"""Sets the pulp_created of this PythonPythonRepositoryResponse.
|
|
132
|
-
|
|
133
|
-
Timestamp of creation. # noqa: E501
|
|
134
|
-
|
|
135
|
-
:param pulp_created: The pulp_created of this PythonPythonRepositoryResponse. # noqa: E501
|
|
136
|
-
:type: datetime
|
|
137
|
-
"""
|
|
138
|
-
|
|
139
|
-
self._pulp_created = pulp_created
|
|
140
|
-
|
|
141
|
-
@property
|
|
142
|
-
def versions_href(self):
|
|
143
|
-
"""Gets the versions_href of this PythonPythonRepositoryResponse. # noqa: E501
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
:return: The versions_href of this PythonPythonRepositoryResponse. # noqa: E501
|
|
147
|
-
:rtype: str
|
|
148
|
-
"""
|
|
149
|
-
return self._versions_href
|
|
150
|
-
|
|
151
|
-
@versions_href.setter
|
|
152
|
-
def versions_href(self, versions_href):
|
|
153
|
-
"""Sets the versions_href of this PythonPythonRepositoryResponse.
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
:param versions_href: The versions_href of this PythonPythonRepositoryResponse. # noqa: E501
|
|
157
|
-
:type: str
|
|
158
|
-
"""
|
|
159
|
-
|
|
160
|
-
self._versions_href = versions_href
|
|
161
|
-
|
|
162
|
-
@property
|
|
163
|
-
def pulp_labels(self):
|
|
164
|
-
"""Gets the pulp_labels of this PythonPythonRepositoryResponse. # noqa: E501
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
:return: The pulp_labels of this PythonPythonRepositoryResponse. # noqa: E501
|
|
168
|
-
:rtype: object
|
|
169
|
-
"""
|
|
170
|
-
return self._pulp_labels
|
|
171
|
-
|
|
172
|
-
@pulp_labels.setter
|
|
173
|
-
def pulp_labels(self, pulp_labels):
|
|
174
|
-
"""Sets the pulp_labels of this PythonPythonRepositoryResponse.
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
:param pulp_labels: The pulp_labels of this PythonPythonRepositoryResponse. # noqa: E501
|
|
178
|
-
:type: object
|
|
179
|
-
"""
|
|
180
|
-
|
|
181
|
-
self._pulp_labels = pulp_labels
|
|
182
|
-
|
|
183
|
-
@property
|
|
184
|
-
def latest_version_href(self):
|
|
185
|
-
"""Gets the latest_version_href of this PythonPythonRepositoryResponse. # noqa: E501
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
:return: The latest_version_href of this PythonPythonRepositoryResponse. # noqa: E501
|
|
189
|
-
:rtype: str
|
|
190
|
-
"""
|
|
191
|
-
return self._latest_version_href
|
|
192
|
-
|
|
193
|
-
@latest_version_href.setter
|
|
194
|
-
def latest_version_href(self, latest_version_href):
|
|
195
|
-
"""Sets the latest_version_href of this PythonPythonRepositoryResponse.
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
:param latest_version_href: The latest_version_href of this PythonPythonRepositoryResponse. # noqa: E501
|
|
199
|
-
:type: str
|
|
200
|
-
"""
|
|
201
|
-
|
|
202
|
-
self._latest_version_href = latest_version_href
|
|
203
|
-
|
|
204
|
-
@property
|
|
205
|
-
def name(self):
|
|
206
|
-
"""Gets the name of this PythonPythonRepositoryResponse. # noqa: E501
|
|
207
|
-
|
|
208
|
-
A unique name for this repository. # noqa: E501
|
|
209
|
-
|
|
210
|
-
:return: The name of this PythonPythonRepositoryResponse. # noqa: E501
|
|
211
|
-
:rtype: str
|
|
212
|
-
"""
|
|
213
|
-
return self._name
|
|
214
|
-
|
|
215
|
-
@name.setter
|
|
216
|
-
def name(self, name):
|
|
217
|
-
"""Sets the name of this PythonPythonRepositoryResponse.
|
|
218
|
-
|
|
219
|
-
A unique name for this repository. # noqa: E501
|
|
220
|
-
|
|
221
|
-
:param name: The name of this PythonPythonRepositoryResponse. # noqa: E501
|
|
222
|
-
:type: str
|
|
223
|
-
"""
|
|
224
|
-
if self.local_vars_configuration.client_side_validation and name is None: # noqa: E501
|
|
225
|
-
raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501
|
|
226
|
-
|
|
227
|
-
self._name = name
|
|
228
|
-
|
|
229
|
-
@property
|
|
230
|
-
def description(self):
|
|
231
|
-
"""Gets the description of this PythonPythonRepositoryResponse. # noqa: E501
|
|
232
|
-
|
|
233
|
-
An optional description. # noqa: E501
|
|
234
|
-
|
|
235
|
-
:return: The description of this PythonPythonRepositoryResponse. # noqa: E501
|
|
236
|
-
:rtype: str
|
|
237
|
-
"""
|
|
238
|
-
return self._description
|
|
239
|
-
|
|
240
|
-
@description.setter
|
|
241
|
-
def description(self, description):
|
|
242
|
-
"""Sets the description of this PythonPythonRepositoryResponse.
|
|
243
|
-
|
|
244
|
-
An optional description. # noqa: E501
|
|
245
|
-
|
|
246
|
-
:param description: The description of this PythonPythonRepositoryResponse. # noqa: E501
|
|
247
|
-
:type: str
|
|
248
|
-
"""
|
|
249
|
-
|
|
250
|
-
self._description = description
|
|
251
|
-
|
|
252
|
-
@property
|
|
253
|
-
def retained_versions(self):
|
|
254
|
-
"""Gets the retained_versions of this PythonPythonRepositoryResponse. # noqa: E501
|
|
255
|
-
|
|
256
|
-
Retain X versions of the repository. Default is null which retains all versions. This is provided as a tech preview in Pulp 3 and may change in the future. # noqa: E501
|
|
257
|
-
|
|
258
|
-
:return: The retained_versions of this PythonPythonRepositoryResponse. # noqa: E501
|
|
259
|
-
:rtype: int
|
|
260
|
-
"""
|
|
261
|
-
return self._retained_versions
|
|
262
|
-
|
|
263
|
-
@retained_versions.setter
|
|
264
|
-
def retained_versions(self, retained_versions):
|
|
265
|
-
"""Sets the retained_versions of this PythonPythonRepositoryResponse.
|
|
266
|
-
|
|
267
|
-
Retain X versions of the repository. Default is null which retains all versions. This is provided as a tech preview in Pulp 3 and may change in the future. # noqa: E501
|
|
268
|
-
|
|
269
|
-
:param retained_versions: The retained_versions of this PythonPythonRepositoryResponse. # noqa: E501
|
|
270
|
-
:type: int
|
|
271
|
-
"""
|
|
272
|
-
if (self.local_vars_configuration.client_side_validation and
|
|
273
|
-
retained_versions is not None and retained_versions < 1): # noqa: E501
|
|
274
|
-
raise ValueError("Invalid value for `retained_versions`, must be a value greater than or equal to `1`") # noqa: E501
|
|
275
|
-
|
|
276
|
-
self._retained_versions = retained_versions
|
|
277
|
-
|
|
278
|
-
@property
|
|
279
|
-
def remote(self):
|
|
280
|
-
"""Gets the remote of this PythonPythonRepositoryResponse. # noqa: E501
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
:return: The remote of this PythonPythonRepositoryResponse. # noqa: E501
|
|
284
|
-
:rtype: str
|
|
285
|
-
"""
|
|
286
|
-
return self._remote
|
|
287
|
-
|
|
288
|
-
@remote.setter
|
|
289
|
-
def remote(self, remote):
|
|
290
|
-
"""Sets the remote of this PythonPythonRepositoryResponse.
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
:param remote: The remote of this PythonPythonRepositoryResponse. # noqa: E501
|
|
294
|
-
:type: str
|
|
295
|
-
"""
|
|
296
|
-
|
|
297
|
-
self._remote = remote
|
|
298
|
-
|
|
299
|
-
@property
|
|
300
|
-
def autopublish(self):
|
|
301
|
-
"""Gets the autopublish of this PythonPythonRepositoryResponse. # noqa: E501
|
|
302
|
-
|
|
303
|
-
Whether to automatically create publications for new repository versions, and update any distributions pointing to this repository. # noqa: E501
|
|
304
|
-
|
|
305
|
-
:return: The autopublish of this PythonPythonRepositoryResponse. # noqa: E501
|
|
306
|
-
:rtype: bool
|
|
307
|
-
"""
|
|
308
|
-
return self._autopublish
|
|
309
|
-
|
|
310
|
-
@autopublish.setter
|
|
311
|
-
def autopublish(self, autopublish):
|
|
312
|
-
"""Sets the autopublish of this PythonPythonRepositoryResponse.
|
|
313
|
-
|
|
314
|
-
Whether to automatically create publications for new repository versions, and update any distributions pointing to this repository. # noqa: E501
|
|
315
|
-
|
|
316
|
-
:param autopublish: The autopublish of this PythonPythonRepositoryResponse. # noqa: E501
|
|
317
|
-
:type: bool
|
|
318
|
-
"""
|
|
319
|
-
|
|
320
|
-
self._autopublish = autopublish
|
|
321
|
-
|
|
322
|
-
def to_dict(self):
|
|
323
|
-
"""Returns the model properties as a dict"""
|
|
324
|
-
result = {}
|
|
325
|
-
|
|
326
|
-
for attr, _ in six.iteritems(self.openapi_types):
|
|
327
|
-
value = getattr(self, attr)
|
|
328
|
-
if isinstance(value, list):
|
|
329
|
-
result[attr] = list(map(
|
|
330
|
-
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
331
|
-
value
|
|
332
|
-
))
|
|
333
|
-
elif hasattr(value, "to_dict"):
|
|
334
|
-
result[attr] = value.to_dict()
|
|
335
|
-
elif isinstance(value, dict):
|
|
336
|
-
result[attr] = dict(map(
|
|
337
|
-
lambda item: (item[0], item[1].to_dict())
|
|
338
|
-
if hasattr(item[1], "to_dict") else item,
|
|
339
|
-
value.items()
|
|
340
|
-
))
|
|
341
|
-
else:
|
|
342
|
-
result[attr] = value
|
|
343
|
-
|
|
344
|
-
return result
|
|
345
|
-
|
|
346
|
-
def to_str(self):
|
|
347
|
-
"""Returns the string representation of the model"""
|
|
348
|
-
return pprint.pformat(self.to_dict())
|
|
349
|
-
|
|
350
|
-
def __repr__(self):
|
|
351
|
-
"""For `print` and `pprint`"""
|
|
352
|
-
return self.to_str()
|
|
353
|
-
|
|
354
|
-
def __eq__(self, other):
|
|
355
|
-
"""Returns true if both objects are equal"""
|
|
356
|
-
if not isinstance(other, PythonPythonRepositoryResponse):
|
|
357
|
-
return False
|
|
358
|
-
|
|
359
|
-
return self.to_dict() == other.to_dict()
|
|
360
|
-
|
|
361
|
-
def __ne__(self, other):
|
|
362
|
-
"""Returns true if both objects are not equal"""
|
|
363
|
-
if not isinstance(other, PythonPythonRepositoryResponse):
|
|
364
|
-
return True
|
|
365
|
-
|
|
366
|
-
return self.to_dict() != other.to_dict()
|