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.

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.4.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.4.dist-info/METADATA +0 -17
  63. pulp_python_client-3.12.4.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.4.dist-info → pulp_python_client-3.13.0.dist-info}/top_level.txt +0 -0
@@ -3,207 +3,107 @@
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
+ from pydantic import BaseModel, ConfigDict, Field, StrictInt
22
+ from typing import Any, ClassVar, Dict, List, Optional
23
+ from typing import Optional, Set
24
+ from typing_extensions import Self
21
25
 
22
- class PackageMetadataResponse(object):
23
- """NOTE: This class is auto generated by OpenAPI Generator.
24
- Ref: https://openapi-generator.tech
25
-
26
- Do not edit the class manually.
27
- """
28
-
29
- """
30
- Attributes:
31
- openapi_types (dict): The key is attribute name
32
- and the value is attribute type.
33
- attribute_map (dict): The key is attribute name
34
- and the value is json key in definition.
26
+ class PackageMetadataResponse(BaseModel):
35
27
  """
36
- openapi_types = {
37
- 'last_serial': 'int',
38
- 'info': 'object',
39
- 'releases': 'object',
40
- 'urls': 'object'
41
- }
42
-
43
- attribute_map = {
44
- 'last_serial': 'last_serial',
45
- 'info': 'info',
46
- 'releases': 'releases',
47
- 'urls': 'urls'
48
- }
49
-
50
- def __init__(self, last_serial=None, info=None, releases=None, urls=None, local_vars_configuration=None): # noqa: E501
51
- """PackageMetadataResponse - a model defined in OpenAPI""" # noqa: E501
52
- if local_vars_configuration is None:
53
- local_vars_configuration = Configuration()
54
- self.local_vars_configuration = local_vars_configuration
55
-
56
- self._last_serial = None
57
- self._info = None
58
- self._releases = None
59
- self._urls = None
60
- self.discriminator = None
61
-
62
- self.last_serial = last_serial
63
- self.info = info
64
- self.releases = releases
65
- self.urls = urls
66
-
67
- @property
68
- def last_serial(self):
69
- """Gets the last_serial of this PackageMetadataResponse. # noqa: E501
70
-
71
- Cache value from last PyPI sync # noqa: E501
72
-
73
- :return: The last_serial of this PackageMetadataResponse. # noqa: E501
74
- :rtype: int
28
+ A Serializer for a package's metadata.
29
+ """ # noqa: E501
30
+ last_serial: StrictInt = Field(description="Cache value from last PyPI sync")
31
+ info: Optional[Any] = Field(description="Core metadata of the package")
32
+ releases: Optional[Any] = Field(description="List of all the releases of the package")
33
+ urls: Optional[Any]
34
+ __properties: ClassVar[List[str]] = ["last_serial", "info", "releases", "urls"]
35
+
36
+ model_config = ConfigDict(
37
+ populate_by_name=True,
38
+ validate_assignment=True,
39
+ protected_namespaces=(),
40
+ )
41
+
42
+
43
+ def to_str(self) -> str:
44
+ """Returns the string representation of the model using alias"""
45
+ return pprint.pformat(self.model_dump(by_alias=True))
46
+
47
+ def to_json(self) -> str:
48
+ """Returns the JSON representation of the model using alias"""
49
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
50
+ return json.dumps(self.to_dict())
51
+
52
+ @classmethod
53
+ def from_json(cls, json_str: str) -> Optional[Self]:
54
+ """Create an instance of PackageMetadataResponse from a JSON string"""
55
+ return cls.from_dict(json.loads(json_str))
56
+
57
+ def to_dict(self) -> Dict[str, Any]:
58
+ """Return the dictionary representation of the model using alias.
59
+
60
+ This has the following differences from calling pydantic's
61
+ `self.model_dump(by_alias=True)`:
62
+
63
+ * `None` is only added to the output dict for nullable fields that
64
+ were set at model initialization. Other fields with value `None`
65
+ are ignored.
75
66
  """
76
- return self._last_serial
77
-
78
- @last_serial.setter
79
- def last_serial(self, last_serial):
80
- """Sets the last_serial of this PackageMetadataResponse.
81
-
82
- Cache value from last PyPI sync # noqa: E501
83
-
84
- :param last_serial: The last_serial of this PackageMetadataResponse. # noqa: E501
85
- :type: int
86
- """
87
- if self.local_vars_configuration.client_side_validation and last_serial is None: # noqa: E501
88
- raise ValueError("Invalid value for `last_serial`, must not be `None`") # noqa: E501
89
-
90
- self._last_serial = last_serial
91
-
92
- @property
93
- def info(self):
94
- """Gets the info of this PackageMetadataResponse. # noqa: E501
95
-
96
- Core metadata of the package # noqa: E501
97
-
98
- :return: The info of this PackageMetadataResponse. # noqa: E501
99
- :rtype: object
100
- """
101
- return self._info
102
-
103
- @info.setter
104
- def info(self, info):
105
- """Sets the info of this PackageMetadataResponse.
67
+ excluded_fields: Set[str] = set([
68
+ ])
69
+
70
+ _dict = self.model_dump(
71
+ by_alias=True,
72
+ exclude=excluded_fields,
73
+ exclude_none=True,
74
+ )
75
+ # set to None if info (nullable) is None
76
+ # and model_fields_set contains the field
77
+ if self.info is None and "info" in self.model_fields_set:
78
+ _dict['info'] = None
79
+
80
+ # set to None if releases (nullable) is None
81
+ # and model_fields_set contains the field
82
+ if self.releases is None and "releases" in self.model_fields_set:
83
+ _dict['releases'] = None
84
+
85
+ # set to None if urls (nullable) is None
86
+ # and model_fields_set contains the field
87
+ if self.urls is None and "urls" in self.model_fields_set:
88
+ _dict['urls'] = None
89
+
90
+ return _dict
91
+
92
+ @classmethod
93
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
94
+ """Create an instance of PackageMetadataResponse from a dict"""
95
+ if obj is None:
96
+ return None
97
+
98
+ if not isinstance(obj, dict):
99
+ return cls.model_validate(obj)
100
+
101
+ _obj = cls.model_validate({
102
+ "last_serial": obj.get("last_serial"),
103
+ "info": obj.get("info"),
104
+ "releases": obj.get("releases"),
105
+ "urls": obj.get("urls")
106
+ })
107
+ return _obj
106
108
 
107
- Core metadata of the package # noqa: E501
108
109
 
109
- :param info: The info of this PackageMetadataResponse. # noqa: E501
110
- :type: object
111
- """
112
- if self.local_vars_configuration.client_side_validation and info is None: # noqa: E501
113
- raise ValueError("Invalid value for `info`, must not be `None`") # noqa: E501
114
-
115
- self._info = info
116
-
117
- @property
118
- def releases(self):
119
- """Gets the releases of this PackageMetadataResponse. # noqa: E501
120
-
121
- List of all the releases of the package # noqa: E501
122
-
123
- :return: The releases of this PackageMetadataResponse. # noqa: E501
124
- :rtype: object
125
- """
126
- return self._releases
127
-
128
- @releases.setter
129
- def releases(self, releases):
130
- """Sets the releases of this PackageMetadataResponse.
131
-
132
- List of all the releases of the package # noqa: E501
133
-
134
- :param releases: The releases of this PackageMetadataResponse. # noqa: E501
135
- :type: object
136
- """
137
- if self.local_vars_configuration.client_side_validation and releases is None: # noqa: E501
138
- raise ValueError("Invalid value for `releases`, must not be `None`") # noqa: E501
139
-
140
- self._releases = releases
141
-
142
- @property
143
- def urls(self):
144
- """Gets the urls of this PackageMetadataResponse. # noqa: E501
145
-
146
-
147
- :return: The urls of this PackageMetadataResponse. # noqa: E501
148
- :rtype: object
149
- """
150
- return self._urls
151
-
152
- @urls.setter
153
- def urls(self, urls):
154
- """Sets the urls of this PackageMetadataResponse.
155
-
156
-
157
- :param urls: The urls of this PackageMetadataResponse. # noqa: E501
158
- :type: object
159
- """
160
- if self.local_vars_configuration.client_side_validation and urls is None: # noqa: E501
161
- raise ValueError("Invalid value for `urls`, must not be `None`") # noqa: E501
162
-
163
- self._urls = urls
164
-
165
- def to_dict(self):
166
- """Returns the model properties as a dict"""
167
- result = {}
168
-
169
- for attr, _ in six.iteritems(self.openapi_types):
170
- value = getattr(self, attr)
171
- if isinstance(value, list):
172
- result[attr] = list(map(
173
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
174
- value
175
- ))
176
- elif hasattr(value, "to_dict"):
177
- result[attr] = value.to_dict()
178
- elif isinstance(value, dict):
179
- result[attr] = dict(map(
180
- lambda item: (item[0], item[1].to_dict())
181
- if hasattr(item[1], "to_dict") else item,
182
- value.items()
183
- ))
184
- else:
185
- result[attr] = value
186
-
187
- return result
188
-
189
- def to_str(self):
190
- """Returns the string representation of the model"""
191
- return pprint.pformat(self.to_dict())
192
-
193
- def __repr__(self):
194
- """For `print` and `pprint`"""
195
- return self.to_str()
196
-
197
- def __eq__(self, other):
198
- """Returns true if both objects are equal"""
199
- if not isinstance(other, PackageMetadataResponse):
200
- return False
201
-
202
- return self.to_dict() == other.to_dict()
203
-
204
- def __ne__(self, other):
205
- """Returns true if both objects are not equal"""
206
- if not isinstance(other, PackageMetadataResponse):
207
- return True
208
-
209
- return self.to_dict() != other.to_dict()
@@ -3,105 +3,42 @@
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
- """
12
-
13
-
14
- import pprint
15
- import re # noqa: F401
10
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
16
11
 
17
- import six
12
+ Do not edit the class manually.
13
+ """ # noqa: E501
18
14
 
19
- from pulpcore.client.pulp_python.configuration import Configuration
20
15
 
16
+ from __future__ import annotations
17
+ import json
18
+ from enum import Enum
19
+ from typing_extensions import Self
21
20
 
22
- class PackageTypesEnum(object):
23
- """NOTE: This class is auto generated by OpenAPI Generator.
24
- Ref: https://openapi-generator.tech
25
21
 
26
- Do not edit the class manually.
22
+ class PackageTypesEnum(str, Enum):
27
23
  """
28
-
29
- """
30
- allowed enum values
24
+ * `bdist_dmg` - bdist_dmg * `bdist_dumb` - bdist_dumb * `bdist_egg` - bdist_egg * `bdist_msi` - bdist_msi * `bdist_rpm` - bdist_rpm * `bdist_wheel` - bdist_wheel * `bdist_wininst` - bdist_wininst * `sdist` - sdist
31
25
  """
32
- BDIST_DMG = "bdist_dmg"
33
- BDIST_DUMB = "bdist_dumb"
34
- BDIST_EGG = "bdist_egg"
35
- BDIST_MSI = "bdist_msi"
36
- BDIST_RPM = "bdist_rpm"
37
- BDIST_WHEEL = "bdist_wheel"
38
- BDIST_WININST = "bdist_wininst"
39
- SDIST = "sdist"
40
-
41
- allowable_values = [BDIST_DMG, BDIST_DUMB, BDIST_EGG, BDIST_MSI, BDIST_RPM, BDIST_WHEEL, BDIST_WININST, SDIST] # noqa: E501
42
26
 
43
27
  """
44
- Attributes:
45
- openapi_types (dict): The key is attribute name
46
- and the value is attribute type.
47
- attribute_map (dict): The key is attribute name
48
- and the value is json key in definition.
28
+ allowed enum values
49
29
  """
50
- openapi_types = {
51
- }
52
-
53
- attribute_map = {
54
- }
55
-
56
- def __init__(self, local_vars_configuration=None): # noqa: E501
57
- """PackageTypesEnum - a model defined in OpenAPI""" # noqa: E501
58
- if local_vars_configuration is None:
59
- local_vars_configuration = Configuration()
60
- self.local_vars_configuration = local_vars_configuration
61
- self.discriminator = None
62
-
63
- def to_dict(self):
64
- """Returns the model properties as a dict"""
65
- result = {}
66
-
67
- for attr, _ in six.iteritems(self.openapi_types):
68
- value = getattr(self, attr)
69
- if isinstance(value, list):
70
- result[attr] = list(map(
71
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
72
- value
73
- ))
74
- elif hasattr(value, "to_dict"):
75
- result[attr] = value.to_dict()
76
- elif isinstance(value, dict):
77
- result[attr] = dict(map(
78
- lambda item: (item[0], item[1].to_dict())
79
- if hasattr(item[1], "to_dict") else item,
80
- value.items()
81
- ))
82
- else:
83
- result[attr] = value
84
-
85
- return result
86
-
87
- def to_str(self):
88
- """Returns the string representation of the model"""
89
- return pprint.pformat(self.to_dict())
90
-
91
- def __repr__(self):
92
- """For `print` and `pprint`"""
93
- return self.to_str()
94
-
95
- def __eq__(self, other):
96
- """Returns true if both objects are equal"""
97
- if not isinstance(other, PackageTypesEnum):
98
- return False
30
+ BDIST_DMG = 'bdist_dmg'
31
+ BDIST_DUMB = 'bdist_dumb'
32
+ BDIST_EGG = 'bdist_egg'
33
+ BDIST_MSI = 'bdist_msi'
34
+ BDIST_RPM = 'bdist_rpm'
35
+ BDIST_WHEEL = 'bdist_wheel'
36
+ BDIST_WININST = 'bdist_wininst'
37
+ SDIST = 'sdist'
99
38
 
100
- return self.to_dict() == other.to_dict()
39
+ @classmethod
40
+ def from_json(cls, json_str: str) -> Self:
41
+ """Create an instance of PackageTypesEnum from a JSON string"""
42
+ return cls(json.loads(json_str))
101
43
 
102
- def __ne__(self, other):
103
- """Returns true if both objects are not equal"""
104
- if not isinstance(other, PackageTypesEnum):
105
- return True
106
44
 
107
- return self.to_dict() != other.to_dict()