pulp-python-client 3.12.4__py3-none-any.whl → 3.13.0__py3-none-any.whl
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.
Potentially problematic release.
This version of pulp-python-client might be problematic. Click here for more details.
- pulp_python_client-3.13.0.dist-info/METADATA +17 -0
- pulp_python_client-3.13.0.dist-info/RECORD +64 -0
- {pulp_python_client-3.12.4.dist-info → pulp_python_client-3.13.0.dist-info}/WHEEL +1 -1
- pulpcore/client/pulp_python/__init__.py +9 -10
- pulpcore/client/pulp_python/api/__init__.py +1 -2
- pulpcore/client/pulp_python/api/content_packages_api.py +1800 -655
- pulpcore/client/pulp_python/api/distributions_pypi_api.py +3755 -1474
- pulpcore/client/pulp_python/api/publications_pypi_api.py +2574 -982
- pulpcore/client/pulp_python/api/pypi_api.py +302 -128
- pulpcore/client/pulp_python/api/pypi_legacy_api.py +326 -153
- pulpcore/client/pulp_python/api/pypi_metadata_api.py +319 -139
- pulpcore/client/pulp_python/api/pypi_simple_api.py +899 -382
- pulpcore/client/pulp_python/api/remotes_python_api.py +4092 -1589
- pulpcore/client/pulp_python/api/repositories_python_api.py +4380 -1719
- pulpcore/client/pulp_python/api/repositories_python_versions_api.py +1526 -561
- pulpcore/client/pulp_python/api_client.py +444 -313
- pulpcore/client/pulp_python/api_response.py +21 -0
- pulpcore/client/pulp_python/configuration.py +266 -73
- pulpcore/client/pulp_python/exceptions.py +99 -20
- pulpcore/client/pulp_python/models/__init__.py +5 -8
- pulpcore/client/pulp_python/models/async_operation_response.py +60 -96
- pulpcore/client/pulp_python/models/content_summary_response.py +70 -154
- pulpcore/client/pulp_python/models/exclude_platforms_enum.py +19 -82
- pulpcore/client/pulp_python/models/my_permissions_response.py +60 -94
- pulpcore/client/pulp_python/models/nested_role.py +71 -155
- pulpcore/client/pulp_python/models/nested_role_response.py +70 -152
- pulpcore/client/pulp_python/models/object_roles_response.py +70 -96
- pulpcore/client/pulp_python/models/package_metadata_response.py +91 -191
- pulpcore/client/pulp_python/models/package_types_enum.py +23 -86
- pulpcore/client/pulp_python/models/package_upload_task_response.py +85 -154
- pulpcore/client/pulp_python/models/paginated_repository_version_response_list.py +94 -181
- pulpcore/client/pulp_python/models/paginatedpython_python_distribution_response_list.py +94 -181
- pulpcore/client/pulp_python/models/paginatedpython_python_package_content_response_list.py +94 -181
- pulpcore/client/pulp_python/models/paginatedpython_python_publication_response_list.py +94 -181
- pulpcore/client/pulp_python/models/paginatedpython_python_remote_response_list.py +94 -181
- pulpcore/client/pulp_python/models/paginatedpython_python_repository_response_list.py +94 -181
- pulpcore/client/pulp_python/models/patchedpython_python_distribution.py +108 -330
- pulpcore/client/pulp_python/models/patchedpython_python_remote.py +204 -864
- pulpcore/client/pulp_python/models/patchedpython_python_repository.py +96 -249
- pulpcore/client/pulp_python/models/policy_enum.py +18 -81
- pulpcore/client/pulp_python/models/python_python_distribution.py +108 -332
- pulpcore/client/pulp_python/models/python_python_distribution_response.py +132 -490
- pulpcore/client/pulp_python/models/python_python_package_content_response.py +182 -972
- pulpcore/client/pulp_python/models/python_python_publication.py +68 -127
- pulpcore/client/pulp_python/models/python_python_publication_response.py +93 -269
- pulpcore/client/pulp_python/models/python_python_remote.py +204 -866
- pulpcore/client/pulp_python/models/python_python_remote_response.py +198 -839
- pulpcore/client/pulp_python/models/python_python_remote_response_hidden_fields_inner.py +90 -0
- pulpcore/client/pulp_python/models/python_python_repository.py +96 -250
- pulpcore/client/pulp_python/models/python_python_repository_response.py +122 -407
- pulpcore/client/pulp_python/models/repair.py +60 -95
- pulpcore/client/pulp_python/models/repository_add_remove_content.py +71 -157
- pulpcore/client/pulp_python/models/repository_sync_url.py +68 -129
- pulpcore/client/pulp_python/models/repository_version_response.py +104 -296
- pulpcore/client/pulp_python/models/set_label.py +80 -130
- pulpcore/client/pulp_python/models/set_label_response.py +80 -127
- pulpcore/client/pulp_python/models/summary_response.py +70 -160
- pulpcore/client/pulp_python/models/unset_label.py +75 -107
- pulpcore/client/pulp_python/models/unset_label_response.py +78 -129
- pulpcore/client/pulp_python/py.typed +0 -0
- pulpcore/client/pulp_python/rest.py +136 -170
- pulp_python_client-3.12.4.dist-info/METADATA +0 -17
- pulp_python_client-3.12.4.dist-info/RECORD +0 -65
- pulpcore/client/pulp_python/models/package_upload.py +0 -190
- pulpcore/client/pulp_python/models/python_bander_remote.py +0 -184
- pulpcore/client/pulp_python/models/python_python_package_content.py +0 -889
- pulpcore/client/pulp_python/models/python_python_remote_response_hidden_fields.py +0 -149
- {pulp_python_client-3.12.4.dist-info → pulp_python_client-3.13.0.dist-info}/top_level.txt +0 -0
|
@@ -3,347 +3,123 @@
|
|
|
3
3
|
"""
|
|
4
4
|
Pulp 3 API
|
|
5
5
|
|
|
6
|
-
Fetch, Upload, Organize, and Distribute Software Packages
|
|
6
|
+
Fetch, Upload, Organize, and Distribute Software Packages
|
|
7
7
|
|
|
8
8
|
The version of the OpenAPI document: v3
|
|
9
9
|
Contact: pulp-list@redhat.com
|
|
10
|
-
Generated by
|
|
11
|
-
|
|
10
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
11
|
+
|
|
12
|
+
Do not edit the class manually.
|
|
13
|
+
""" # noqa: E501
|
|
12
14
|
|
|
13
15
|
|
|
16
|
+
from __future__ import annotations
|
|
14
17
|
import pprint
|
|
15
18
|
import re # noqa: F401
|
|
19
|
+
import json
|
|
16
20
|
|
|
17
|
-
import
|
|
18
|
-
|
|
19
|
-
from
|
|
21
|
+
from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr
|
|
22
|
+
from typing import Any, ClassVar, Dict, List, Optional
|
|
23
|
+
from typing_extensions import Annotated
|
|
24
|
+
from typing import Optional, Set
|
|
25
|
+
from typing_extensions import Self
|
|
20
26
|
|
|
21
|
-
|
|
22
|
-
class PythonPythonDistribution(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
|
+
class PythonPythonDistribution(BaseModel):
|
|
27
28
|
"""
|
|
29
|
+
Serializer for Pulp distributions for the Python type.
|
|
30
|
+
""" # noqa: E501
|
|
31
|
+
base_path: Annotated[str, Field(min_length=1, strict=True)] = Field(description="The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")")
|
|
32
|
+
content_guard: Optional[StrictStr] = Field(default=None, description="An optional content-guard.")
|
|
33
|
+
hidden: Optional[StrictBool] = Field(default=False, description="Whether this distribution should be shown in the content app.")
|
|
34
|
+
pulp_labels: Optional[Dict[str, Optional[StrictStr]]] = None
|
|
35
|
+
name: Annotated[str, Field(min_length=1, strict=True)] = Field(description="A unique name. Ex, `rawhide` and `stable`.")
|
|
36
|
+
repository: Optional[StrictStr] = Field(default=None, description="The latest RepositoryVersion for this Repository will be served.")
|
|
37
|
+
publication: Optional[StrictStr] = Field(default=None, description="Publication to be served")
|
|
38
|
+
allow_uploads: Optional[StrictBool] = Field(default=True, description="Allow packages to be uploaded to this index.")
|
|
39
|
+
remote: Optional[StrictStr] = Field(default=None, description="Remote that can be used to fetch content when using pull-through caching.")
|
|
40
|
+
__properties: ClassVar[List[str]] = ["base_path", "content_guard", "hidden", "pulp_labels", "name", "repository", "publication", "allow_uploads", "remote"]
|
|
41
|
+
|
|
42
|
+
model_config = ConfigDict(
|
|
43
|
+
populate_by_name=True,
|
|
44
|
+
validate_assignment=True,
|
|
45
|
+
protected_namespaces=(),
|
|
46
|
+
)
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
def to_str(self) -> str:
|
|
50
|
+
"""Returns the string representation of the model using alias"""
|
|
51
|
+
return pprint.pformat(self.model_dump(by_alias=True))
|
|
52
|
+
|
|
53
|
+
def to_json(self) -> str:
|
|
54
|
+
"""Returns the JSON representation of the model using alias"""
|
|
55
|
+
# TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
|
|
56
|
+
return json.dumps(self.to_dict())
|
|
57
|
+
|
|
58
|
+
@classmethod
|
|
59
|
+
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
60
|
+
"""Create an instance of PythonPythonDistribution from a JSON string"""
|
|
61
|
+
return cls.from_dict(json.loads(json_str))
|
|
62
|
+
|
|
63
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
64
|
+
"""Return the dictionary representation of the model using alias.
|
|
65
|
+
|
|
66
|
+
This has the following differences from calling pydantic's
|
|
67
|
+
`self.model_dump(by_alias=True)`:
|
|
68
|
+
|
|
69
|
+
* `None` is only added to the output dict for nullable fields that
|
|
70
|
+
were set at model initialization. Other fields with value `None`
|
|
71
|
+
are ignored.
|
|
72
|
+
"""
|
|
73
|
+
excluded_fields: Set[str] = set([
|
|
74
|
+
])
|
|
75
|
+
|
|
76
|
+
_dict = self.model_dump(
|
|
77
|
+
by_alias=True,
|
|
78
|
+
exclude=excluded_fields,
|
|
79
|
+
exclude_none=True,
|
|
80
|
+
)
|
|
81
|
+
# set to None if content_guard (nullable) is None
|
|
82
|
+
# and model_fields_set contains the field
|
|
83
|
+
if self.content_guard is None and "content_guard" in self.model_fields_set:
|
|
84
|
+
_dict['content_guard'] = None
|
|
85
|
+
|
|
86
|
+
# set to None if repository (nullable) is None
|
|
87
|
+
# and model_fields_set contains the field
|
|
88
|
+
if self.repository is None and "repository" in self.model_fields_set:
|
|
89
|
+
_dict['repository'] = None
|
|
90
|
+
|
|
91
|
+
# set to None if publication (nullable) is None
|
|
92
|
+
# and model_fields_set contains the field
|
|
93
|
+
if self.publication is None and "publication" in self.model_fields_set:
|
|
94
|
+
_dict['publication'] = None
|
|
95
|
+
|
|
96
|
+
# set to None if remote (nullable) is None
|
|
97
|
+
# and model_fields_set contains the field
|
|
98
|
+
if self.remote is None and "remote" in self.model_fields_set:
|
|
99
|
+
_dict['remote'] = None
|
|
100
|
+
|
|
101
|
+
return _dict
|
|
102
|
+
|
|
103
|
+
@classmethod
|
|
104
|
+
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
105
|
+
"""Create an instance of PythonPythonDistribution from a dict"""
|
|
106
|
+
if obj is None:
|
|
107
|
+
return None
|
|
108
|
+
|
|
109
|
+
if not isinstance(obj, dict):
|
|
110
|
+
return cls.model_validate(obj)
|
|
111
|
+
|
|
112
|
+
_obj = cls.model_validate({
|
|
113
|
+
"base_path": obj.get("base_path"),
|
|
114
|
+
"content_guard": obj.get("content_guard"),
|
|
115
|
+
"hidden": obj.get("hidden") if obj.get("hidden") is not None else False,
|
|
116
|
+
"pulp_labels": obj.get("pulp_labels"),
|
|
117
|
+
"name": obj.get("name"),
|
|
118
|
+
"repository": obj.get("repository"),
|
|
119
|
+
"publication": obj.get("publication"),
|
|
120
|
+
"allow_uploads": obj.get("allow_uploads") if obj.get("allow_uploads") is not None else True,
|
|
121
|
+
"remote": obj.get("remote")
|
|
122
|
+
})
|
|
123
|
+
return _obj
|
|
28
124
|
|
|
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
|
-
'base_path': 'str',
|
|
38
|
-
'content_guard': 'str',
|
|
39
|
-
'hidden': 'bool',
|
|
40
|
-
'pulp_labels': 'dict(str, str)',
|
|
41
|
-
'name': 'str',
|
|
42
|
-
'repository': 'str',
|
|
43
|
-
'publication': 'str',
|
|
44
|
-
'allow_uploads': 'bool',
|
|
45
|
-
'remote': 'str'
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
attribute_map = {
|
|
49
|
-
'base_path': 'base_path',
|
|
50
|
-
'content_guard': 'content_guard',
|
|
51
|
-
'hidden': 'hidden',
|
|
52
|
-
'pulp_labels': 'pulp_labels',
|
|
53
|
-
'name': 'name',
|
|
54
|
-
'repository': 'repository',
|
|
55
|
-
'publication': 'publication',
|
|
56
|
-
'allow_uploads': 'allow_uploads',
|
|
57
|
-
'remote': 'remote'
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
def __init__(self, base_path=None, content_guard=None, hidden=False, pulp_labels=None, name=None, repository=None, publication=None, allow_uploads=True, remote=None, local_vars_configuration=None): # noqa: E501
|
|
61
|
-
"""PythonPythonDistribution - a model defined in OpenAPI""" # noqa: E501
|
|
62
|
-
if local_vars_configuration is None:
|
|
63
|
-
local_vars_configuration = Configuration()
|
|
64
|
-
self.local_vars_configuration = local_vars_configuration
|
|
65
|
-
|
|
66
|
-
self._base_path = None
|
|
67
|
-
self._content_guard = None
|
|
68
|
-
self._hidden = None
|
|
69
|
-
self._pulp_labels = None
|
|
70
|
-
self._name = None
|
|
71
|
-
self._repository = None
|
|
72
|
-
self._publication = None
|
|
73
|
-
self._allow_uploads = None
|
|
74
|
-
self._remote = None
|
|
75
|
-
self.discriminator = None
|
|
76
|
-
|
|
77
|
-
self.base_path = base_path
|
|
78
|
-
self.content_guard = content_guard
|
|
79
|
-
if hidden is not None:
|
|
80
|
-
self.hidden = hidden
|
|
81
|
-
if pulp_labels is not None:
|
|
82
|
-
self.pulp_labels = pulp_labels
|
|
83
|
-
self.name = name
|
|
84
|
-
self.repository = repository
|
|
85
|
-
self.publication = publication
|
|
86
|
-
if allow_uploads is not None:
|
|
87
|
-
self.allow_uploads = allow_uploads
|
|
88
|
-
self.remote = remote
|
|
89
|
-
|
|
90
|
-
@property
|
|
91
|
-
def base_path(self):
|
|
92
|
-
"""Gets the base_path of this PythonPythonDistribution. # noqa: E501
|
|
93
|
-
|
|
94
|
-
The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\") # noqa: E501
|
|
95
|
-
|
|
96
|
-
:return: The base_path of this PythonPythonDistribution. # noqa: E501
|
|
97
|
-
:rtype: str
|
|
98
|
-
"""
|
|
99
|
-
return self._base_path
|
|
100
|
-
|
|
101
|
-
@base_path.setter
|
|
102
|
-
def base_path(self, base_path):
|
|
103
|
-
"""Sets the base_path of this PythonPythonDistribution.
|
|
104
|
-
|
|
105
|
-
The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\") # noqa: E501
|
|
106
|
-
|
|
107
|
-
:param base_path: The base_path of this PythonPythonDistribution. # noqa: E501
|
|
108
|
-
:type: str
|
|
109
|
-
"""
|
|
110
|
-
if self.local_vars_configuration.client_side_validation and base_path is None: # noqa: E501
|
|
111
|
-
raise ValueError("Invalid value for `base_path`, must not be `None`") # noqa: E501
|
|
112
|
-
if (self.local_vars_configuration.client_side_validation and
|
|
113
|
-
base_path is not None and len(base_path) < 1):
|
|
114
|
-
raise ValueError("Invalid value for `base_path`, length must be greater than or equal to `1`") # noqa: E501
|
|
115
|
-
|
|
116
|
-
self._base_path = base_path
|
|
117
|
-
|
|
118
|
-
@property
|
|
119
|
-
def content_guard(self):
|
|
120
|
-
"""Gets the content_guard of this PythonPythonDistribution. # noqa: E501
|
|
121
|
-
|
|
122
|
-
An optional content-guard. # noqa: E501
|
|
123
|
-
|
|
124
|
-
:return: The content_guard of this PythonPythonDistribution. # noqa: E501
|
|
125
|
-
:rtype: str
|
|
126
|
-
"""
|
|
127
|
-
return self._content_guard
|
|
128
|
-
|
|
129
|
-
@content_guard.setter
|
|
130
|
-
def content_guard(self, content_guard):
|
|
131
|
-
"""Sets the content_guard of this PythonPythonDistribution.
|
|
132
|
-
|
|
133
|
-
An optional content-guard. # noqa: E501
|
|
134
|
-
|
|
135
|
-
:param content_guard: The content_guard of this PythonPythonDistribution. # noqa: E501
|
|
136
|
-
:type: str
|
|
137
|
-
"""
|
|
138
|
-
|
|
139
|
-
self._content_guard = content_guard
|
|
140
|
-
|
|
141
|
-
@property
|
|
142
|
-
def hidden(self):
|
|
143
|
-
"""Gets the hidden of this PythonPythonDistribution. # noqa: E501
|
|
144
|
-
|
|
145
|
-
Whether this distribution should be shown in the content app. # noqa: E501
|
|
146
|
-
|
|
147
|
-
:return: The hidden of this PythonPythonDistribution. # noqa: E501
|
|
148
|
-
:rtype: bool
|
|
149
|
-
"""
|
|
150
|
-
return self._hidden
|
|
151
|
-
|
|
152
|
-
@hidden.setter
|
|
153
|
-
def hidden(self, hidden):
|
|
154
|
-
"""Sets the hidden of this PythonPythonDistribution.
|
|
155
|
-
|
|
156
|
-
Whether this distribution should be shown in the content app. # noqa: E501
|
|
157
|
-
|
|
158
|
-
:param hidden: The hidden of this PythonPythonDistribution. # noqa: E501
|
|
159
|
-
:type: bool
|
|
160
|
-
"""
|
|
161
|
-
|
|
162
|
-
self._hidden = hidden
|
|
163
|
-
|
|
164
|
-
@property
|
|
165
|
-
def pulp_labels(self):
|
|
166
|
-
"""Gets the pulp_labels of this PythonPythonDistribution. # noqa: E501
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
:return: The pulp_labels of this PythonPythonDistribution. # noqa: E501
|
|
170
|
-
:rtype: dict(str, str)
|
|
171
|
-
"""
|
|
172
|
-
return self._pulp_labels
|
|
173
|
-
|
|
174
|
-
@pulp_labels.setter
|
|
175
|
-
def pulp_labels(self, pulp_labels):
|
|
176
|
-
"""Sets the pulp_labels of this PythonPythonDistribution.
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
:param pulp_labels: The pulp_labels of this PythonPythonDistribution. # noqa: E501
|
|
180
|
-
:type: dict(str, str)
|
|
181
|
-
"""
|
|
182
|
-
|
|
183
|
-
self._pulp_labels = pulp_labels
|
|
184
|
-
|
|
185
|
-
@property
|
|
186
|
-
def name(self):
|
|
187
|
-
"""Gets the name of this PythonPythonDistribution. # noqa: E501
|
|
188
|
-
|
|
189
|
-
A unique name. Ex, `rawhide` and `stable`. # noqa: E501
|
|
190
|
-
|
|
191
|
-
:return: The name of this PythonPythonDistribution. # noqa: E501
|
|
192
|
-
:rtype: str
|
|
193
|
-
"""
|
|
194
|
-
return self._name
|
|
195
|
-
|
|
196
|
-
@name.setter
|
|
197
|
-
def name(self, name):
|
|
198
|
-
"""Sets the name of this PythonPythonDistribution.
|
|
199
|
-
|
|
200
|
-
A unique name. Ex, `rawhide` and `stable`. # noqa: E501
|
|
201
|
-
|
|
202
|
-
:param name: The name of this PythonPythonDistribution. # noqa: E501
|
|
203
|
-
:type: str
|
|
204
|
-
"""
|
|
205
|
-
if self.local_vars_configuration.client_side_validation and name is None: # noqa: E501
|
|
206
|
-
raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501
|
|
207
|
-
if (self.local_vars_configuration.client_side_validation and
|
|
208
|
-
name is not None and len(name) < 1):
|
|
209
|
-
raise ValueError("Invalid value for `name`, length must be greater than or equal to `1`") # noqa: E501
|
|
210
|
-
|
|
211
|
-
self._name = name
|
|
212
|
-
|
|
213
|
-
@property
|
|
214
|
-
def repository(self):
|
|
215
|
-
"""Gets the repository of this PythonPythonDistribution. # noqa: E501
|
|
216
|
-
|
|
217
|
-
The latest RepositoryVersion for this Repository will be served. # noqa: E501
|
|
218
|
-
|
|
219
|
-
:return: The repository of this PythonPythonDistribution. # noqa: E501
|
|
220
|
-
:rtype: str
|
|
221
|
-
"""
|
|
222
|
-
return self._repository
|
|
223
|
-
|
|
224
|
-
@repository.setter
|
|
225
|
-
def repository(self, repository):
|
|
226
|
-
"""Sets the repository of this PythonPythonDistribution.
|
|
227
|
-
|
|
228
|
-
The latest RepositoryVersion for this Repository will be served. # noqa: E501
|
|
229
|
-
|
|
230
|
-
:param repository: The repository of this PythonPythonDistribution. # noqa: E501
|
|
231
|
-
:type: str
|
|
232
|
-
"""
|
|
233
|
-
|
|
234
|
-
self._repository = repository
|
|
235
|
-
|
|
236
|
-
@property
|
|
237
|
-
def publication(self):
|
|
238
|
-
"""Gets the publication of this PythonPythonDistribution. # noqa: E501
|
|
239
|
-
|
|
240
|
-
Publication to be served # noqa: E501
|
|
241
|
-
|
|
242
|
-
:return: The publication of this PythonPythonDistribution. # noqa: E501
|
|
243
|
-
:rtype: str
|
|
244
|
-
"""
|
|
245
|
-
return self._publication
|
|
246
|
-
|
|
247
|
-
@publication.setter
|
|
248
|
-
def publication(self, publication):
|
|
249
|
-
"""Sets the publication of this PythonPythonDistribution.
|
|
250
|
-
|
|
251
|
-
Publication to be served # noqa: E501
|
|
252
|
-
|
|
253
|
-
:param publication: The publication of this PythonPythonDistribution. # noqa: E501
|
|
254
|
-
:type: str
|
|
255
|
-
"""
|
|
256
|
-
|
|
257
|
-
self._publication = publication
|
|
258
|
-
|
|
259
|
-
@property
|
|
260
|
-
def allow_uploads(self):
|
|
261
|
-
"""Gets the allow_uploads of this PythonPythonDistribution. # noqa: E501
|
|
262
|
-
|
|
263
|
-
Allow packages to be uploaded to this index. # noqa: E501
|
|
264
|
-
|
|
265
|
-
:return: The allow_uploads of this PythonPythonDistribution. # noqa: E501
|
|
266
|
-
:rtype: bool
|
|
267
|
-
"""
|
|
268
|
-
return self._allow_uploads
|
|
269
|
-
|
|
270
|
-
@allow_uploads.setter
|
|
271
|
-
def allow_uploads(self, allow_uploads):
|
|
272
|
-
"""Sets the allow_uploads of this PythonPythonDistribution.
|
|
273
|
-
|
|
274
|
-
Allow packages to be uploaded to this index. # noqa: E501
|
|
275
|
-
|
|
276
|
-
:param allow_uploads: The allow_uploads of this PythonPythonDistribution. # noqa: E501
|
|
277
|
-
:type: bool
|
|
278
|
-
"""
|
|
279
|
-
|
|
280
|
-
self._allow_uploads = allow_uploads
|
|
281
|
-
|
|
282
|
-
@property
|
|
283
|
-
def remote(self):
|
|
284
|
-
"""Gets the remote of this PythonPythonDistribution. # noqa: E501
|
|
285
|
-
|
|
286
|
-
Remote that can be used to fetch content when using pull-through caching. # noqa: E501
|
|
287
|
-
|
|
288
|
-
:return: The remote of this PythonPythonDistribution. # noqa: E501
|
|
289
|
-
:rtype: str
|
|
290
|
-
"""
|
|
291
|
-
return self._remote
|
|
292
|
-
|
|
293
|
-
@remote.setter
|
|
294
|
-
def remote(self, remote):
|
|
295
|
-
"""Sets the remote of this PythonPythonDistribution.
|
|
296
|
-
|
|
297
|
-
Remote that can be used to fetch content when using pull-through caching. # noqa: E501
|
|
298
|
-
|
|
299
|
-
:param remote: The remote of this PythonPythonDistribution. # noqa: E501
|
|
300
|
-
:type: str
|
|
301
|
-
"""
|
|
302
|
-
|
|
303
|
-
self._remote = remote
|
|
304
|
-
|
|
305
|
-
def to_dict(self):
|
|
306
|
-
"""Returns the model properties as a dict"""
|
|
307
|
-
result = {}
|
|
308
|
-
|
|
309
|
-
for attr, _ in six.iteritems(self.openapi_types):
|
|
310
|
-
value = getattr(self, attr)
|
|
311
|
-
if isinstance(value, list):
|
|
312
|
-
result[attr] = list(map(
|
|
313
|
-
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
314
|
-
value
|
|
315
|
-
))
|
|
316
|
-
elif hasattr(value, "to_dict"):
|
|
317
|
-
result[attr] = value.to_dict()
|
|
318
|
-
elif isinstance(value, dict):
|
|
319
|
-
result[attr] = dict(map(
|
|
320
|
-
lambda item: (item[0], item[1].to_dict())
|
|
321
|
-
if hasattr(item[1], "to_dict") else item,
|
|
322
|
-
value.items()
|
|
323
|
-
))
|
|
324
|
-
else:
|
|
325
|
-
result[attr] = value
|
|
326
|
-
|
|
327
|
-
return result
|
|
328
|
-
|
|
329
|
-
def to_str(self):
|
|
330
|
-
"""Returns the string representation of the model"""
|
|
331
|
-
return pprint.pformat(self.to_dict())
|
|
332
|
-
|
|
333
|
-
def __repr__(self):
|
|
334
|
-
"""For `print` and `pprint`"""
|
|
335
|
-
return self.to_str()
|
|
336
|
-
|
|
337
|
-
def __eq__(self, other):
|
|
338
|
-
"""Returns true if both objects are equal"""
|
|
339
|
-
if not isinstance(other, PythonPythonDistribution):
|
|
340
|
-
return False
|
|
341
|
-
|
|
342
|
-
return self.to_dict() == other.to_dict()
|
|
343
|
-
|
|
344
|
-
def __ne__(self, other):
|
|
345
|
-
"""Returns true if both objects are not equal"""
|
|
346
|
-
if not isinstance(other, PythonPythonDistribution):
|
|
347
|
-
return True
|
|
348
125
|
|
|
349
|
-
return self.to_dict() != other.to_dict()
|