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.

Files changed (68) hide show
  1. pulp_python_client-3.13.0.dist-info/METADATA +17 -0
  2. pulp_python_client-3.13.0.dist-info/RECORD +64 -0
  3. {pulp_python_client-3.12.5.dist-info → pulp_python_client-3.13.0.dist-info}/WHEEL +1 -1
  4. pulpcore/client/pulp_python/__init__.py +9 -10
  5. pulpcore/client/pulp_python/api/__init__.py +1 -2
  6. pulpcore/client/pulp_python/api/content_packages_api.py +1800 -655
  7. pulpcore/client/pulp_python/api/distributions_pypi_api.py +3755 -1474
  8. pulpcore/client/pulp_python/api/publications_pypi_api.py +2574 -982
  9. pulpcore/client/pulp_python/api/pypi_api.py +302 -128
  10. pulpcore/client/pulp_python/api/pypi_legacy_api.py +326 -153
  11. pulpcore/client/pulp_python/api/pypi_metadata_api.py +319 -139
  12. pulpcore/client/pulp_python/api/pypi_simple_api.py +899 -382
  13. pulpcore/client/pulp_python/api/remotes_python_api.py +4092 -1589
  14. pulpcore/client/pulp_python/api/repositories_python_api.py +4380 -1719
  15. pulpcore/client/pulp_python/api/repositories_python_versions_api.py +1526 -561
  16. pulpcore/client/pulp_python/api_client.py +444 -313
  17. pulpcore/client/pulp_python/api_response.py +21 -0
  18. pulpcore/client/pulp_python/configuration.py +266 -73
  19. pulpcore/client/pulp_python/exceptions.py +99 -20
  20. pulpcore/client/pulp_python/models/__init__.py +5 -8
  21. pulpcore/client/pulp_python/models/async_operation_response.py +60 -96
  22. pulpcore/client/pulp_python/models/content_summary_response.py +70 -154
  23. pulpcore/client/pulp_python/models/exclude_platforms_enum.py +19 -82
  24. pulpcore/client/pulp_python/models/my_permissions_response.py +60 -94
  25. pulpcore/client/pulp_python/models/nested_role.py +71 -155
  26. pulpcore/client/pulp_python/models/nested_role_response.py +70 -152
  27. pulpcore/client/pulp_python/models/object_roles_response.py +70 -96
  28. pulpcore/client/pulp_python/models/package_metadata_response.py +91 -191
  29. pulpcore/client/pulp_python/models/package_types_enum.py +23 -86
  30. pulpcore/client/pulp_python/models/package_upload_task_response.py +85 -154
  31. pulpcore/client/pulp_python/models/paginated_repository_version_response_list.py +94 -181
  32. pulpcore/client/pulp_python/models/paginatedpython_python_distribution_response_list.py +94 -181
  33. pulpcore/client/pulp_python/models/paginatedpython_python_package_content_response_list.py +94 -181
  34. pulpcore/client/pulp_python/models/paginatedpython_python_publication_response_list.py +94 -181
  35. pulpcore/client/pulp_python/models/paginatedpython_python_remote_response_list.py +94 -181
  36. pulpcore/client/pulp_python/models/paginatedpython_python_repository_response_list.py +94 -181
  37. pulpcore/client/pulp_python/models/patchedpython_python_distribution.py +108 -330
  38. pulpcore/client/pulp_python/models/patchedpython_python_remote.py +204 -864
  39. pulpcore/client/pulp_python/models/patchedpython_python_repository.py +96 -249
  40. pulpcore/client/pulp_python/models/policy_enum.py +18 -81
  41. pulpcore/client/pulp_python/models/python_python_distribution.py +108 -332
  42. pulpcore/client/pulp_python/models/python_python_distribution_response.py +132 -490
  43. pulpcore/client/pulp_python/models/python_python_package_content_response.py +182 -972
  44. pulpcore/client/pulp_python/models/python_python_publication.py +68 -127
  45. pulpcore/client/pulp_python/models/python_python_publication_response.py +93 -269
  46. pulpcore/client/pulp_python/models/python_python_remote.py +204 -866
  47. pulpcore/client/pulp_python/models/python_python_remote_response.py +198 -839
  48. pulpcore/client/pulp_python/models/python_python_remote_response_hidden_fields_inner.py +90 -0
  49. pulpcore/client/pulp_python/models/python_python_repository.py +96 -250
  50. pulpcore/client/pulp_python/models/python_python_repository_response.py +122 -407
  51. pulpcore/client/pulp_python/models/repair.py +60 -95
  52. pulpcore/client/pulp_python/models/repository_add_remove_content.py +71 -157
  53. pulpcore/client/pulp_python/models/repository_sync_url.py +68 -129
  54. pulpcore/client/pulp_python/models/repository_version_response.py +104 -296
  55. pulpcore/client/pulp_python/models/set_label.py +80 -130
  56. pulpcore/client/pulp_python/models/set_label_response.py +80 -127
  57. pulpcore/client/pulp_python/models/summary_response.py +70 -160
  58. pulpcore/client/pulp_python/models/unset_label.py +75 -107
  59. pulpcore/client/pulp_python/models/unset_label_response.py +78 -129
  60. pulpcore/client/pulp_python/py.typed +0 -0
  61. pulpcore/client/pulp_python/rest.py +136 -170
  62. pulp_python_client-3.12.5.dist-info/METADATA +0 -17
  63. pulp_python_client-3.12.5.dist-info/RECORD +0 -65
  64. pulpcore/client/pulp_python/models/package_upload.py +0 -190
  65. pulpcore/client/pulp_python/models/python_bander_remote.py +0 -184
  66. pulpcore/client/pulp_python/models/python_python_package_content.py +0 -889
  67. pulpcore/client/pulp_python/models/python_python_remote_response_hidden_fields.py +0 -149
  68. {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 # noqa: E501
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: https://openapi-generator.tech
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 six
18
-
19
- from pulpcore.client.pulp_python.configuration import Configuration
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
- 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
- 'repository_version': 'str',
38
- 'repository': 'str'
39
- }
40
-
41
- attribute_map = {
42
- 'repository_version': 'repository_version',
43
- 'repository': 'repository'
44
- }
45
-
46
- def __init__(self, repository_version=None, repository=None, local_vars_configuration=None): # noqa: E501
47
- """PythonPythonPublication - a model defined in OpenAPI""" # noqa: E501
48
- if local_vars_configuration is None:
49
- local_vars_configuration = Configuration()
50
- self.local_vars_configuration = local_vars_configuration
51
-
52
- self._repository_version = None
53
- self._repository = None
54
- self.discriminator = None
55
-
56
- if repository_version is not None:
57
- self.repository_version = repository_version
58
- if repository is not None:
59
- self.repository = repository
60
-
61
- @property
62
- def repository_version(self):
63
- """Gets the repository_version of this PythonPythonPublication. # noqa: E501
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
- return self._repository_version
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
- :param repository_version: The repository_version of this PythonPythonPublication. # noqa: E501
77
- :type: str
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
- self._repository_version = repository_version
81
+ if not isinstance(obj, dict):
82
+ return cls.model_validate(obj)
81
83
 
82
- @property
83
- def repository(self):
84
- """Gets the repository of this PythonPythonPublication. # noqa: E501
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 # noqa: E501
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: https://openapi-generator.tech
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 six
18
-
19
- from pulpcore.client.pulp_python.configuration import Configuration
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
- 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
- 'prn': 'str',
39
- 'pulp_created': 'datetime',
40
- 'pulp_last_updated': 'datetime',
41
- 'repository_version': 'str',
42
- 'repository': 'str',
43
- 'distributions': 'list[str]'
44
- }
45
-
46
- attribute_map = {
47
- 'pulp_href': 'pulp_href',
48
- 'prn': 'prn',
49
- 'pulp_created': 'pulp_created',
50
- 'pulp_last_updated': 'pulp_last_updated',
51
- 'repository_version': 'repository_version',
52
- 'repository': 'repository',
53
- 'distributions': 'distributions'
54
- }
55
-
56
- def __init__(self, pulp_href=None, prn=None, pulp_created=None, pulp_last_updated=None, repository_version=None, repository=None, distributions=None, local_vars_configuration=None): # noqa: E501
57
- """PythonPythonPublicationResponse - a model defined in OpenAPI""" # noqa: E501
58
- if local_vars_configuration is None:
59
- local_vars_configuration = Configuration()
60
- self.local_vars_configuration = local_vars_configuration
61
-
62
- self._pulp_href = None
63
- self._prn = None
64
- self._pulp_created = None
65
- self._pulp_last_updated = None
66
- self._repository_version = None
67
- self._repository = None
68
- self._distributions = None
69
- self.discriminator = None
70
-
71
- if pulp_href is not None:
72
- self.pulp_href = pulp_href
73
- if prn is not None:
74
- self.prn = prn
75
- if pulp_created is not None:
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()