pulp-python-client 3.12.5__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.5.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.5.dist-info/METADATA +0 -17
- pulp_python_client-3.12.5.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.5.dist-info → pulp_python_client-3.13.0.dist-info}/top_level.txt +0 -0
|
@@ -3,147 +3,88 @@
|
|
|
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
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
class PythonPythonPublication(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
|
-
"""
|
|
21
|
+
from pydantic import BaseModel, ConfigDict, Field, StrictStr
|
|
22
|
+
from typing import Any, ClassVar, Dict, List, Optional
|
|
23
|
+
from typing import Optional, Set
|
|
24
|
+
from typing_extensions import Self
|
|
28
25
|
|
|
26
|
+
class PythonPythonPublication(BaseModel):
|
|
29
27
|
"""
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
self.
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
:return: The repository_version of this PythonPythonPublication. # noqa: E501
|
|
67
|
-
:rtype: str
|
|
28
|
+
A Serializer for PythonPublication.
|
|
29
|
+
""" # noqa: E501
|
|
30
|
+
repository_version: Optional[StrictStr] = None
|
|
31
|
+
repository: Optional[StrictStr] = Field(default=None, description="A URI of the repository to be published.")
|
|
32
|
+
__properties: ClassVar[List[str]] = ["repository_version", "repository"]
|
|
33
|
+
|
|
34
|
+
model_config = ConfigDict(
|
|
35
|
+
populate_by_name=True,
|
|
36
|
+
validate_assignment=True,
|
|
37
|
+
protected_namespaces=(),
|
|
38
|
+
)
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
def to_str(self) -> str:
|
|
42
|
+
"""Returns the string representation of the model using alias"""
|
|
43
|
+
return pprint.pformat(self.model_dump(by_alias=True))
|
|
44
|
+
|
|
45
|
+
def to_json(self) -> str:
|
|
46
|
+
"""Returns the JSON representation of the model using alias"""
|
|
47
|
+
# TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
|
|
48
|
+
return json.dumps(self.to_dict())
|
|
49
|
+
|
|
50
|
+
@classmethod
|
|
51
|
+
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
52
|
+
"""Create an instance of PythonPythonPublication from a JSON string"""
|
|
53
|
+
return cls.from_dict(json.loads(json_str))
|
|
54
|
+
|
|
55
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
56
|
+
"""Return the dictionary representation of the model using alias.
|
|
57
|
+
|
|
58
|
+
This has the following differences from calling pydantic's
|
|
59
|
+
`self.model_dump(by_alias=True)`:
|
|
60
|
+
|
|
61
|
+
* `None` is only added to the output dict for nullable fields that
|
|
62
|
+
were set at model initialization. Other fields with value `None`
|
|
63
|
+
are ignored.
|
|
68
64
|
"""
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
@repository_version.setter
|
|
72
|
-
def repository_version(self, repository_version):
|
|
73
|
-
"""Sets the repository_version of this PythonPythonPublication.
|
|
65
|
+
excluded_fields: Set[str] = set([
|
|
66
|
+
])
|
|
74
67
|
|
|
68
|
+
_dict = self.model_dump(
|
|
69
|
+
by_alias=True,
|
|
70
|
+
exclude=excluded_fields,
|
|
71
|
+
exclude_none=True,
|
|
72
|
+
)
|
|
73
|
+
return _dict
|
|
75
74
|
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
"""
|
|
75
|
+
@classmethod
|
|
76
|
+
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
77
|
+
"""Create an instance of PythonPythonPublication from a dict"""
|
|
78
|
+
if obj is None:
|
|
79
|
+
return None
|
|
79
80
|
|
|
80
|
-
|
|
81
|
+
if not isinstance(obj, dict):
|
|
82
|
+
return cls.model_validate(obj)
|
|
81
83
|
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
84
|
+
_obj = cls.model_validate({
|
|
85
|
+
"repository_version": obj.get("repository_version"),
|
|
86
|
+
"repository": obj.get("repository")
|
|
87
|
+
})
|
|
88
|
+
return _obj
|
|
85
89
|
|
|
86
|
-
A URI of the repository to be published. # noqa: E501
|
|
87
|
-
|
|
88
|
-
:return: The repository of this PythonPythonPublication. # noqa: E501
|
|
89
|
-
:rtype: str
|
|
90
|
-
"""
|
|
91
|
-
return self._repository
|
|
92
|
-
|
|
93
|
-
@repository.setter
|
|
94
|
-
def repository(self, repository):
|
|
95
|
-
"""Sets the repository of this PythonPythonPublication.
|
|
96
|
-
|
|
97
|
-
A URI of the repository to be published. # noqa: E501
|
|
98
|
-
|
|
99
|
-
:param repository: The repository of this PythonPythonPublication. # noqa: E501
|
|
100
|
-
:type: str
|
|
101
|
-
"""
|
|
102
90
|
|
|
103
|
-
self._repository = repository
|
|
104
|
-
|
|
105
|
-
def to_dict(self):
|
|
106
|
-
"""Returns the model properties as a dict"""
|
|
107
|
-
result = {}
|
|
108
|
-
|
|
109
|
-
for attr, _ in six.iteritems(self.openapi_types):
|
|
110
|
-
value = getattr(self, attr)
|
|
111
|
-
if isinstance(value, list):
|
|
112
|
-
result[attr] = list(map(
|
|
113
|
-
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
114
|
-
value
|
|
115
|
-
))
|
|
116
|
-
elif hasattr(value, "to_dict"):
|
|
117
|
-
result[attr] = value.to_dict()
|
|
118
|
-
elif isinstance(value, dict):
|
|
119
|
-
result[attr] = dict(map(
|
|
120
|
-
lambda item: (item[0], item[1].to_dict())
|
|
121
|
-
if hasattr(item[1], "to_dict") else item,
|
|
122
|
-
value.items()
|
|
123
|
-
))
|
|
124
|
-
else:
|
|
125
|
-
result[attr] = value
|
|
126
|
-
|
|
127
|
-
return result
|
|
128
|
-
|
|
129
|
-
def to_str(self):
|
|
130
|
-
"""Returns the string representation of the model"""
|
|
131
|
-
return pprint.pformat(self.to_dict())
|
|
132
|
-
|
|
133
|
-
def __repr__(self):
|
|
134
|
-
"""For `print` and `pprint`"""
|
|
135
|
-
return self.to_str()
|
|
136
|
-
|
|
137
|
-
def __eq__(self, other):
|
|
138
|
-
"""Returns true if both objects are equal"""
|
|
139
|
-
if not isinstance(other, PythonPythonPublication):
|
|
140
|
-
return False
|
|
141
|
-
|
|
142
|
-
return self.to_dict() == other.to_dict()
|
|
143
|
-
|
|
144
|
-
def __ne__(self, other):
|
|
145
|
-
"""Returns true if both objects are not equal"""
|
|
146
|
-
if not isinstance(other, PythonPythonPublication):
|
|
147
|
-
return True
|
|
148
|
-
|
|
149
|
-
return self.to_dict() != other.to_dict()
|
|
@@ -3,285 +3,109 @@
|
|
|
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
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
class PythonPythonPublicationResponse(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
|
-
"""
|
|
21
|
+
from datetime import datetime
|
|
22
|
+
from pydantic import BaseModel, ConfigDict, Field, StrictStr
|
|
23
|
+
from typing import Any, ClassVar, Dict, List, Optional
|
|
24
|
+
from typing import Optional, Set
|
|
25
|
+
from typing_extensions import Self
|
|
28
26
|
|
|
27
|
+
class PythonPythonPublicationResponse(BaseModel):
|
|
29
28
|
"""
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
""
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
self.
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
self.pulp_created = pulp_created
|
|
77
|
-
if pulp_last_updated is not None:
|
|
78
|
-
self.pulp_last_updated = pulp_last_updated
|
|
79
|
-
if repository_version is not None:
|
|
80
|
-
self.repository_version = repository_version
|
|
81
|
-
if repository is not None:
|
|
82
|
-
self.repository = repository
|
|
83
|
-
if distributions is not None:
|
|
84
|
-
self.distributions = distributions
|
|
85
|
-
|
|
86
|
-
@property
|
|
87
|
-
def pulp_href(self):
|
|
88
|
-
"""Gets the pulp_href of this PythonPythonPublicationResponse. # noqa: E501
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
:return: The pulp_href of this PythonPythonPublicationResponse. # noqa: E501
|
|
92
|
-
:rtype: str
|
|
93
|
-
"""
|
|
94
|
-
return self._pulp_href
|
|
95
|
-
|
|
96
|
-
@pulp_href.setter
|
|
97
|
-
def pulp_href(self, pulp_href):
|
|
98
|
-
"""Sets the pulp_href of this PythonPythonPublicationResponse.
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
:param pulp_href: The pulp_href of this PythonPythonPublicationResponse. # noqa: E501
|
|
102
|
-
:type: str
|
|
29
|
+
A Serializer for PythonPublication.
|
|
30
|
+
""" # noqa: E501
|
|
31
|
+
pulp_href: Optional[StrictStr] = None
|
|
32
|
+
prn: Optional[StrictStr] = Field(default=None, description="The Pulp Resource Name (PRN).")
|
|
33
|
+
pulp_created: Optional[datetime] = Field(default=None, description="Timestamp of creation.")
|
|
34
|
+
pulp_last_updated: Optional[datetime] = Field(default=None, description="Timestamp of the last time this resource was updated. Note: for immutable resources - like content, repository versions, and publication - pulp_created and pulp_last_updated dates will be the same.")
|
|
35
|
+
repository_version: Optional[StrictStr] = None
|
|
36
|
+
repository: Optional[StrictStr] = Field(default=None, description="A URI of the repository to be published.")
|
|
37
|
+
distributions: Optional[List[StrictStr]] = Field(default=None, description="This publication is currently being hosted as configured by these distributions.")
|
|
38
|
+
__properties: ClassVar[List[str]] = ["pulp_href", "prn", "pulp_created", "pulp_last_updated", "repository_version", "repository", "distributions"]
|
|
39
|
+
|
|
40
|
+
model_config = ConfigDict(
|
|
41
|
+
populate_by_name=True,
|
|
42
|
+
validate_assignment=True,
|
|
43
|
+
protected_namespaces=(),
|
|
44
|
+
)
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
def to_str(self) -> str:
|
|
48
|
+
"""Returns the string representation of the model using alias"""
|
|
49
|
+
return pprint.pformat(self.model_dump(by_alias=True))
|
|
50
|
+
|
|
51
|
+
def to_json(self) -> str:
|
|
52
|
+
"""Returns the JSON representation of the model using alias"""
|
|
53
|
+
# TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
|
|
54
|
+
return json.dumps(self.to_dict())
|
|
55
|
+
|
|
56
|
+
@classmethod
|
|
57
|
+
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
58
|
+
"""Create an instance of PythonPythonPublicationResponse from a JSON string"""
|
|
59
|
+
return cls.from_dict(json.loads(json_str))
|
|
60
|
+
|
|
61
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
62
|
+
"""Return the dictionary representation of the model using alias.
|
|
63
|
+
|
|
64
|
+
This has the following differences from calling pydantic's
|
|
65
|
+
`self.model_dump(by_alias=True)`:
|
|
66
|
+
|
|
67
|
+
* `None` is only added to the output dict for nullable fields that
|
|
68
|
+
were set at model initialization. Other fields with value `None`
|
|
69
|
+
are ignored.
|
|
70
|
+
* OpenAPI `readOnly` fields are excluded.
|
|
71
|
+
* OpenAPI `readOnly` fields are excluded.
|
|
72
|
+
* OpenAPI `readOnly` fields are excluded.
|
|
73
|
+
* OpenAPI `readOnly` fields are excluded.
|
|
74
|
+
* OpenAPI `readOnly` fields are excluded.
|
|
103
75
|
"""
|
|
76
|
+
excluded_fields: Set[str] = set([
|
|
77
|
+
"pulp_href",
|
|
78
|
+
"prn",
|
|
79
|
+
"pulp_created",
|
|
80
|
+
"pulp_last_updated",
|
|
81
|
+
"distributions",
|
|
82
|
+
])
|
|
83
|
+
|
|
84
|
+
_dict = self.model_dump(
|
|
85
|
+
by_alias=True,
|
|
86
|
+
exclude=excluded_fields,
|
|
87
|
+
exclude_none=True,
|
|
88
|
+
)
|
|
89
|
+
return _dict
|
|
90
|
+
|
|
91
|
+
@classmethod
|
|
92
|
+
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
93
|
+
"""Create an instance of PythonPythonPublicationResponse from a dict"""
|
|
94
|
+
if obj is None:
|
|
95
|
+
return None
|
|
96
|
+
|
|
97
|
+
if not isinstance(obj, dict):
|
|
98
|
+
return cls.model_validate(obj)
|
|
99
|
+
|
|
100
|
+
_obj = cls.model_validate({
|
|
101
|
+
"pulp_href": obj.get("pulp_href"),
|
|
102
|
+
"prn": obj.get("prn"),
|
|
103
|
+
"pulp_created": obj.get("pulp_created"),
|
|
104
|
+
"pulp_last_updated": obj.get("pulp_last_updated"),
|
|
105
|
+
"repository_version": obj.get("repository_version"),
|
|
106
|
+
"repository": obj.get("repository"),
|
|
107
|
+
"distributions": obj.get("distributions")
|
|
108
|
+
})
|
|
109
|
+
return _obj
|
|
104
110
|
|
|
105
|
-
self._pulp_href = pulp_href
|
|
106
|
-
|
|
107
|
-
@property
|
|
108
|
-
def prn(self):
|
|
109
|
-
"""Gets the prn of this PythonPythonPublicationResponse. # noqa: E501
|
|
110
|
-
|
|
111
|
-
The Pulp Resource Name (PRN). # noqa: E501
|
|
112
|
-
|
|
113
|
-
:return: The prn of this PythonPythonPublicationResponse. # noqa: E501
|
|
114
|
-
:rtype: str
|
|
115
|
-
"""
|
|
116
|
-
return self._prn
|
|
117
|
-
|
|
118
|
-
@prn.setter
|
|
119
|
-
def prn(self, prn):
|
|
120
|
-
"""Sets the prn of this PythonPythonPublicationResponse.
|
|
121
|
-
|
|
122
|
-
The Pulp Resource Name (PRN). # noqa: E501
|
|
123
|
-
|
|
124
|
-
:param prn: The prn of this PythonPythonPublicationResponse. # noqa: E501
|
|
125
|
-
:type: str
|
|
126
|
-
"""
|
|
127
|
-
|
|
128
|
-
self._prn = prn
|
|
129
|
-
|
|
130
|
-
@property
|
|
131
|
-
def pulp_created(self):
|
|
132
|
-
"""Gets the pulp_created of this PythonPythonPublicationResponse. # noqa: E501
|
|
133
|
-
|
|
134
|
-
Timestamp of creation. # noqa: E501
|
|
135
|
-
|
|
136
|
-
:return: The pulp_created of this PythonPythonPublicationResponse. # noqa: E501
|
|
137
|
-
:rtype: datetime
|
|
138
|
-
"""
|
|
139
|
-
return self._pulp_created
|
|
140
|
-
|
|
141
|
-
@pulp_created.setter
|
|
142
|
-
def pulp_created(self, pulp_created):
|
|
143
|
-
"""Sets the pulp_created of this PythonPythonPublicationResponse.
|
|
144
|
-
|
|
145
|
-
Timestamp of creation. # noqa: E501
|
|
146
|
-
|
|
147
|
-
:param pulp_created: The pulp_created of this PythonPythonPublicationResponse. # noqa: E501
|
|
148
|
-
:type: datetime
|
|
149
|
-
"""
|
|
150
|
-
|
|
151
|
-
self._pulp_created = pulp_created
|
|
152
|
-
|
|
153
|
-
@property
|
|
154
|
-
def pulp_last_updated(self):
|
|
155
|
-
"""Gets the pulp_last_updated of this PythonPythonPublicationResponse. # noqa: E501
|
|
156
|
-
|
|
157
|
-
Timestamp of the last time this resource was updated. Note: for immutable resources - like content, repository versions, and publication - pulp_created and pulp_last_updated dates will be the same. # noqa: E501
|
|
158
|
-
|
|
159
|
-
:return: The pulp_last_updated of this PythonPythonPublicationResponse. # noqa: E501
|
|
160
|
-
:rtype: datetime
|
|
161
|
-
"""
|
|
162
|
-
return self._pulp_last_updated
|
|
163
|
-
|
|
164
|
-
@pulp_last_updated.setter
|
|
165
|
-
def pulp_last_updated(self, pulp_last_updated):
|
|
166
|
-
"""Sets the pulp_last_updated of this PythonPythonPublicationResponse.
|
|
167
|
-
|
|
168
|
-
Timestamp of the last time this resource was updated. Note: for immutable resources - like content, repository versions, and publication - pulp_created and pulp_last_updated dates will be the same. # noqa: E501
|
|
169
|
-
|
|
170
|
-
:param pulp_last_updated: The pulp_last_updated of this PythonPythonPublicationResponse. # noqa: E501
|
|
171
|
-
:type: datetime
|
|
172
|
-
"""
|
|
173
|
-
|
|
174
|
-
self._pulp_last_updated = pulp_last_updated
|
|
175
|
-
|
|
176
|
-
@property
|
|
177
|
-
def repository_version(self):
|
|
178
|
-
"""Gets the repository_version of this PythonPythonPublicationResponse. # noqa: E501
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
:return: The repository_version of this PythonPythonPublicationResponse. # noqa: E501
|
|
182
|
-
:rtype: str
|
|
183
|
-
"""
|
|
184
|
-
return self._repository_version
|
|
185
|
-
|
|
186
|
-
@repository_version.setter
|
|
187
|
-
def repository_version(self, repository_version):
|
|
188
|
-
"""Sets the repository_version of this PythonPythonPublicationResponse.
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
:param repository_version: The repository_version of this PythonPythonPublicationResponse. # noqa: E501
|
|
192
|
-
:type: str
|
|
193
|
-
"""
|
|
194
|
-
|
|
195
|
-
self._repository_version = repository_version
|
|
196
|
-
|
|
197
|
-
@property
|
|
198
|
-
def repository(self):
|
|
199
|
-
"""Gets the repository of this PythonPythonPublicationResponse. # noqa: E501
|
|
200
|
-
|
|
201
|
-
A URI of the repository to be published. # noqa: E501
|
|
202
|
-
|
|
203
|
-
:return: The repository of this PythonPythonPublicationResponse. # noqa: E501
|
|
204
|
-
:rtype: str
|
|
205
|
-
"""
|
|
206
|
-
return self._repository
|
|
207
|
-
|
|
208
|
-
@repository.setter
|
|
209
|
-
def repository(self, repository):
|
|
210
|
-
"""Sets the repository of this PythonPythonPublicationResponse.
|
|
211
|
-
|
|
212
|
-
A URI of the repository to be published. # noqa: E501
|
|
213
|
-
|
|
214
|
-
:param repository: The repository of this PythonPythonPublicationResponse. # noqa: E501
|
|
215
|
-
:type: str
|
|
216
|
-
"""
|
|
217
|
-
|
|
218
|
-
self._repository = repository
|
|
219
|
-
|
|
220
|
-
@property
|
|
221
|
-
def distributions(self):
|
|
222
|
-
"""Gets the distributions of this PythonPythonPublicationResponse. # noqa: E501
|
|
223
|
-
|
|
224
|
-
This publication is currently being hosted as configured by these distributions. # noqa: E501
|
|
225
|
-
|
|
226
|
-
:return: The distributions of this PythonPythonPublicationResponse. # noqa: E501
|
|
227
|
-
:rtype: list[str]
|
|
228
|
-
"""
|
|
229
|
-
return self._distributions
|
|
230
|
-
|
|
231
|
-
@distributions.setter
|
|
232
|
-
def distributions(self, distributions):
|
|
233
|
-
"""Sets the distributions of this PythonPythonPublicationResponse.
|
|
234
|
-
|
|
235
|
-
This publication is currently being hosted as configured by these distributions. # noqa: E501
|
|
236
|
-
|
|
237
|
-
:param distributions: The distributions of this PythonPythonPublicationResponse. # noqa: E501
|
|
238
|
-
:type: list[str]
|
|
239
|
-
"""
|
|
240
|
-
|
|
241
|
-
self._distributions = distributions
|
|
242
|
-
|
|
243
|
-
def to_dict(self):
|
|
244
|
-
"""Returns the model properties as a dict"""
|
|
245
|
-
result = {}
|
|
246
|
-
|
|
247
|
-
for attr, _ in six.iteritems(self.openapi_types):
|
|
248
|
-
value = getattr(self, attr)
|
|
249
|
-
if isinstance(value, list):
|
|
250
|
-
result[attr] = list(map(
|
|
251
|
-
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
252
|
-
value
|
|
253
|
-
))
|
|
254
|
-
elif hasattr(value, "to_dict"):
|
|
255
|
-
result[attr] = value.to_dict()
|
|
256
|
-
elif isinstance(value, dict):
|
|
257
|
-
result[attr] = dict(map(
|
|
258
|
-
lambda item: (item[0], item[1].to_dict())
|
|
259
|
-
if hasattr(item[1], "to_dict") else item,
|
|
260
|
-
value.items()
|
|
261
|
-
))
|
|
262
|
-
else:
|
|
263
|
-
result[attr] = value
|
|
264
|
-
|
|
265
|
-
return result
|
|
266
|
-
|
|
267
|
-
def to_str(self):
|
|
268
|
-
"""Returns the string representation of the model"""
|
|
269
|
-
return pprint.pformat(self.to_dict())
|
|
270
|
-
|
|
271
|
-
def __repr__(self):
|
|
272
|
-
"""For `print` and `pprint`"""
|
|
273
|
-
return self.to_str()
|
|
274
|
-
|
|
275
|
-
def __eq__(self, other):
|
|
276
|
-
"""Returns true if both objects are equal"""
|
|
277
|
-
if not isinstance(other, PythonPythonPublicationResponse):
|
|
278
|
-
return False
|
|
279
|
-
|
|
280
|
-
return self.to_dict() == other.to_dict()
|
|
281
|
-
|
|
282
|
-
def __ne__(self, other):
|
|
283
|
-
"""Returns true if both objects are not equal"""
|
|
284
|
-
if not isinstance(other, PythonPythonPublicationResponse):
|
|
285
|
-
return True
|
|
286
111
|
|
|
287
|
-
return self.to_dict() != other.to_dict()
|