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,126 +3,94 @@
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 UnsetLabel(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, field_validator
22
+ from typing import Any, ClassVar, Dict, List
23
+ from typing_extensions import Annotated
24
+ from typing import Optional, Set
25
+ from typing_extensions import Self
28
26
 
27
+ class UnsetLabel(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
- 'key': 'str'
38
- }
39
-
40
- attribute_map = {
41
- 'key': 'key'
42
- }
43
-
44
- def __init__(self, key=None, local_vars_configuration=None): # noqa: E501
45
- """UnsetLabel - a model defined in OpenAPI""" # noqa: E501
46
- if local_vars_configuration is None:
47
- local_vars_configuration = Configuration()
48
- self.local_vars_configuration = local_vars_configuration
49
-
50
- self._key = None
51
- self.discriminator = None
52
-
53
- self.key = key
29
+ Serializer for synchronously setting a label.
30
+ """ # noqa: E501
31
+ key: Annotated[str, Field(min_length=1, strict=True)]
32
+ __properties: ClassVar[List[str]] = ["key"]
33
+
34
+ @field_validator('key')
35
+ def key_validate_regular_expression(cls, value):
36
+ """Validates the regular expression"""
37
+ if not re.match(r"^[-a-zA-Z0-9_]+$", value):
38
+ raise ValueError(r"must validate the regular expression /^[-a-zA-Z0-9_]+$/")
39
+ return value
40
+
41
+ model_config = ConfigDict(
42
+ populate_by_name=True,
43
+ validate_assignment=True,
44
+ protected_namespaces=(),
45
+ )
46
+
47
+
48
+ def to_str(self) -> str:
49
+ """Returns the string representation of the model using alias"""
50
+ return pprint.pformat(self.model_dump(by_alias=True))
51
+
52
+ def to_json(self) -> str:
53
+ """Returns the JSON representation of the model using alias"""
54
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
55
+ return json.dumps(self.to_dict())
56
+
57
+ @classmethod
58
+ def from_json(cls, json_str: str) -> Optional[Self]:
59
+ """Create an instance of UnsetLabel from a JSON string"""
60
+ return cls.from_dict(json.loads(json_str))
61
+
62
+ def to_dict(self) -> Dict[str, Any]:
63
+ """Return the dictionary representation of the model using alias.
64
+
65
+ This has the following differences from calling pydantic's
66
+ `self.model_dump(by_alias=True)`:
67
+
68
+ * `None` is only added to the output dict for nullable fields that
69
+ were set at model initialization. Other fields with value `None`
70
+ are ignored.
71
+ """
72
+ excluded_fields: Set[str] = set([
73
+ ])
54
74
 
55
- @property
56
- def key(self):
57
- """Gets the key of this UnsetLabel. # noqa: E501
75
+ _dict = self.model_dump(
76
+ by_alias=True,
77
+ exclude=excluded_fields,
78
+ exclude_none=True,
79
+ )
80
+ return _dict
58
81
 
82
+ @classmethod
83
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
84
+ """Create an instance of UnsetLabel from a dict"""
85
+ if obj is None:
86
+ return None
59
87
 
60
- :return: The key of this UnsetLabel. # noqa: E501
61
- :rtype: str
62
- """
63
- return self._key
88
+ if not isinstance(obj, dict):
89
+ return cls.model_validate(obj)
64
90
 
65
- @key.setter
66
- def key(self, key):
67
- """Sets the key of this UnsetLabel.
91
+ _obj = cls.model_validate({
92
+ "key": obj.get("key")
93
+ })
94
+ return _obj
68
95
 
69
96
 
70
- :param key: The key of this UnsetLabel. # noqa: E501
71
- :type: str
72
- """
73
- if self.local_vars_configuration.client_side_validation and key is None: # noqa: E501
74
- raise ValueError("Invalid value for `key`, must not be `None`") # noqa: E501
75
- if (self.local_vars_configuration.client_side_validation and
76
- key is not None and len(key) < 1):
77
- raise ValueError("Invalid value for `key`, length must be greater than or equal to `1`") # noqa: E501
78
- if (self.local_vars_configuration.client_side_validation and
79
- key is not None and not re.search(r'^[-a-zA-Z0-9_]+$', key)): # noqa: E501
80
- raise ValueError(r"Invalid value for `key`, must be a follow pattern or equal to `/^[-a-zA-Z0-9_]+$/`") # noqa: E501
81
-
82
- self._key = key
83
-
84
- def to_dict(self):
85
- """Returns the model properties as a dict"""
86
- result = {}
87
-
88
- for attr, _ in six.iteritems(self.openapi_types):
89
- value = getattr(self, attr)
90
- if isinstance(value, list):
91
- result[attr] = list(map(
92
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
93
- value
94
- ))
95
- elif hasattr(value, "to_dict"):
96
- result[attr] = value.to_dict()
97
- elif isinstance(value, dict):
98
- result[attr] = dict(map(
99
- lambda item: (item[0], item[1].to_dict())
100
- if hasattr(item[1], "to_dict") else item,
101
- value.items()
102
- ))
103
- else:
104
- result[attr] = value
105
-
106
- return result
107
-
108
- def to_str(self):
109
- """Returns the string representation of the model"""
110
- return pprint.pformat(self.to_dict())
111
-
112
- def __repr__(self):
113
- """For `print` and `pprint`"""
114
- return self.to_str()
115
-
116
- def __eq__(self, other):
117
- """Returns true if both objects are equal"""
118
- if not isinstance(other, UnsetLabel):
119
- return False
120
-
121
- return self.to_dict() == other.to_dict()
122
-
123
- def __ne__(self, other):
124
- """Returns true if both objects are not equal"""
125
- if not isinstance(other, UnsetLabel):
126
- return True
127
-
128
- return self.to_dict() != other.to_dict()
@@ -3,149 +3,98 @@
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
21
+ from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator
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 UnsetLabelResponse(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 UnsetLabelResponse(BaseModel):
27
28
  """
28
-
29
- """
30
- Attributes:
31
- openapi_types (dict): The key is attribute name
32
- and the value is attribute type.
33
- attribute_map (dict): The key is attribute name
34
- and the value is json key in definition.
35
- """
36
- openapi_types = {
37
- 'key': 'str',
38
- 'value': 'str'
39
- }
40
-
41
- attribute_map = {
42
- 'key': 'key',
43
- 'value': 'value'
44
- }
45
-
46
- def __init__(self, key=None, value=None, local_vars_configuration=None): # noqa: E501
47
- """UnsetLabelResponse - 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._key = None
53
- self._value = None
54
- self.discriminator = None
55
-
56
- self.key = key
57
- if value is not None:
58
- self.value = value
59
-
60
- @property
61
- def key(self):
62
- """Gets the key of this UnsetLabelResponse. # noqa: E501
63
-
64
-
65
- :return: The key of this UnsetLabelResponse. # noqa: E501
66
- :rtype: str
67
- """
68
- return self._key
69
-
70
- @key.setter
71
- def key(self, key):
72
- """Sets the key of this UnsetLabelResponse.
73
-
74
-
75
- :param key: The key of this UnsetLabelResponse. # noqa: E501
76
- :type: str
29
+ Serializer for synchronously setting a label.
30
+ """ # noqa: E501
31
+ key: Annotated[str, Field(strict=True)]
32
+ value: Optional[StrictStr] = None
33
+ __properties: ClassVar[List[str]] = ["key", "value"]
34
+
35
+ @field_validator('key')
36
+ def key_validate_regular_expression(cls, value):
37
+ """Validates the regular expression"""
38
+ if not re.match(r"^[-a-zA-Z0-9_]+$", value):
39
+ raise ValueError(r"must validate the regular expression /^[-a-zA-Z0-9_]+$/")
40
+ return value
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 UnsetLabelResponse 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
+ * OpenAPI `readOnly` fields are excluded.
77
73
  """
78
- if self.local_vars_configuration.client_side_validation and key is None: # noqa: E501
79
- raise ValueError("Invalid value for `key`, must not be `None`") # noqa: E501
80
- if (self.local_vars_configuration.client_side_validation and
81
- key is not None and not re.search(r'^[-a-zA-Z0-9_]+$', key)): # noqa: E501
82
- raise ValueError(r"Invalid value for `key`, must be a follow pattern or equal to `/^[-a-zA-Z0-9_]+$/`") # noqa: E501
83
-
84
- self._key = key
74
+ excluded_fields: Set[str] = set([
75
+ "value",
76
+ ])
85
77
 
86
- @property
87
- def value(self):
88
- """Gets the value of this UnsetLabelResponse. # noqa: E501
78
+ _dict = self.model_dump(
79
+ by_alias=True,
80
+ exclude=excluded_fields,
81
+ exclude_none=True,
82
+ )
83
+ return _dict
89
84
 
85
+ @classmethod
86
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
87
+ """Create an instance of UnsetLabelResponse from a dict"""
88
+ if obj is None:
89
+ return None
90
90
 
91
- :return: The value of this UnsetLabelResponse. # noqa: E501
92
- :rtype: str
93
- """
94
- return self._value
95
-
96
- @value.setter
97
- def value(self, value):
98
- """Sets the value of this UnsetLabelResponse.
91
+ if not isinstance(obj, dict):
92
+ return cls.model_validate(obj)
99
93
 
94
+ _obj = cls.model_validate({
95
+ "key": obj.get("key"),
96
+ "value": obj.get("value")
97
+ })
98
+ return _obj
100
99
 
101
- :param value: The value of this UnsetLabelResponse. # noqa: E501
102
- :type: str
103
- """
104
100
 
105
- self._value = value
106
-
107
- def to_dict(self):
108
- """Returns the model properties as a dict"""
109
- result = {}
110
-
111
- for attr, _ in six.iteritems(self.openapi_types):
112
- value = getattr(self, attr)
113
- if isinstance(value, list):
114
- result[attr] = list(map(
115
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
116
- value
117
- ))
118
- elif hasattr(value, "to_dict"):
119
- result[attr] = value.to_dict()
120
- elif isinstance(value, dict):
121
- result[attr] = dict(map(
122
- lambda item: (item[0], item[1].to_dict())
123
- if hasattr(item[1], "to_dict") else item,
124
- value.items()
125
- ))
126
- else:
127
- result[attr] = value
128
-
129
- return result
130
-
131
- def to_str(self):
132
- """Returns the string representation of the model"""
133
- return pprint.pformat(self.to_dict())
134
-
135
- def __repr__(self):
136
- """For `print` and `pprint`"""
137
- return self.to_str()
138
-
139
- def __eq__(self, other):
140
- """Returns true if both objects are equal"""
141
- if not isinstance(other, UnsetLabelResponse):
142
- return False
143
-
144
- return self.to_dict() == other.to_dict()
145
-
146
- def __ne__(self, other):
147
- """Returns true if both objects are not equal"""
148
- if not isinstance(other, UnsetLabelResponse):
149
- return True
150
-
151
- return self.to_dict() != other.to_dict()
File without changes