pulp-python-client 3.12.5__py3-none-any.whl → 3.13.1__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.1.dist-info/METADATA +17 -0
  2. pulp_python_client-3.13.1.dist-info/RECORD +64 -0
  3. {pulp_python_client-3.12.5.dist-info → pulp_python_client-3.13.1.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.1.dist-info}/top_level.txt +0 -0
@@ -1,190 +0,0 @@
1
- # coding: utf-8
2
-
3
- """
4
- Pulp 3 API
5
-
6
- Fetch, Upload, Organize, and Distribute Software Packages # noqa: E501
7
-
8
- The version of the OpenAPI document: v3
9
- Contact: pulp-list@redhat.com
10
- Generated by: https://openapi-generator.tech
11
- """
12
-
13
-
14
- import pprint
15
- import re # noqa: F401
16
-
17
- import six
18
-
19
- from pulpcore.client.pulp_python.configuration import Configuration
20
-
21
-
22
- class PackageUpload(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.
35
- """
36
- openapi_types = {
37
- 'content': 'file',
38
- 'action': 'str',
39
- 'sha256_digest': 'str'
40
- }
41
-
42
- attribute_map = {
43
- 'content': 'content',
44
- 'action': 'action',
45
- 'sha256_digest': 'sha256_digest'
46
- }
47
-
48
- def __init__(self, content=None, action='file_upload', sha256_digest=None, local_vars_configuration=None): # noqa: E501
49
- """PackageUpload - a model defined in OpenAPI""" # noqa: E501
50
- if local_vars_configuration is None:
51
- local_vars_configuration = Configuration()
52
- self.local_vars_configuration = local_vars_configuration
53
-
54
- self._content = None
55
- self._action = None
56
- self._sha256_digest = None
57
- self.discriminator = None
58
-
59
- self.content = content
60
- if action is not None:
61
- self.action = action
62
- self.sha256_digest = sha256_digest
63
-
64
- @property
65
- def content(self):
66
- """Gets the content of this PackageUpload. # noqa: E501
67
-
68
- A Python package release file to upload to the index. # noqa: E501
69
-
70
- :return: The content of this PackageUpload. # noqa: E501
71
- :rtype: file
72
- """
73
- return self._content
74
-
75
- @content.setter
76
- def content(self, content):
77
- """Sets the content of this PackageUpload.
78
-
79
- A Python package release file to upload to the index. # noqa: E501
80
-
81
- :param content: The content of this PackageUpload. # noqa: E501
82
- :type: file
83
- """
84
- if self.local_vars_configuration.client_side_validation and content is None: # noqa: E501
85
- raise ValueError("Invalid value for `content`, must not be `None`") # noqa: E501
86
-
87
- self._content = content
88
-
89
- @property
90
- def action(self):
91
- """Gets the action of this PackageUpload. # noqa: E501
92
-
93
- Defaults to `file_upload`, don't change it or request will fail! # noqa: E501
94
-
95
- :return: The action of this PackageUpload. # noqa: E501
96
- :rtype: str
97
- """
98
- return self._action
99
-
100
- @action.setter
101
- def action(self, action):
102
- """Sets the action of this PackageUpload.
103
-
104
- Defaults to `file_upload`, don't change it or request will fail! # noqa: E501
105
-
106
- :param action: The action of this PackageUpload. # noqa: E501
107
- :type: str
108
- """
109
- if (self.local_vars_configuration.client_side_validation and
110
- action is not None and len(action) < 1):
111
- raise ValueError("Invalid value for `action`, length must be greater than or equal to `1`") # noqa: E501
112
-
113
- self._action = action
114
-
115
- @property
116
- def sha256_digest(self):
117
- """Gets the sha256_digest of this PackageUpload. # noqa: E501
118
-
119
- SHA256 of package to validate upload integrity. # noqa: E501
120
-
121
- :return: The sha256_digest of this PackageUpload. # noqa: E501
122
- :rtype: str
123
- """
124
- return self._sha256_digest
125
-
126
- @sha256_digest.setter
127
- def sha256_digest(self, sha256_digest):
128
- """Sets the sha256_digest of this PackageUpload.
129
-
130
- SHA256 of package to validate upload integrity. # noqa: E501
131
-
132
- :param sha256_digest: The sha256_digest of this PackageUpload. # noqa: E501
133
- :type: str
134
- """
135
- if self.local_vars_configuration.client_side_validation and sha256_digest is None: # noqa: E501
136
- raise ValueError("Invalid value for `sha256_digest`, must not be `None`") # noqa: E501
137
- if (self.local_vars_configuration.client_side_validation and
138
- sha256_digest is not None and len(sha256_digest) > 64):
139
- raise ValueError("Invalid value for `sha256_digest`, length must be less than or equal to `64`") # noqa: E501
140
- if (self.local_vars_configuration.client_side_validation and
141
- sha256_digest is not None and len(sha256_digest) < 64):
142
- raise ValueError("Invalid value for `sha256_digest`, length must be greater than or equal to `64`") # noqa: E501
143
-
144
- self._sha256_digest = sha256_digest
145
-
146
- def to_dict(self):
147
- """Returns the model properties as a dict"""
148
- result = {}
149
-
150
- for attr, _ in six.iteritems(self.openapi_types):
151
- value = getattr(self, attr)
152
- if isinstance(value, list):
153
- result[attr] = list(map(
154
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
155
- value
156
- ))
157
- elif hasattr(value, "to_dict"):
158
- result[attr] = value.to_dict()
159
- elif isinstance(value, dict):
160
- result[attr] = dict(map(
161
- lambda item: (item[0], item[1].to_dict())
162
- if hasattr(item[1], "to_dict") else item,
163
- value.items()
164
- ))
165
- else:
166
- result[attr] = value
167
-
168
- return result
169
-
170
- def to_str(self):
171
- """Returns the string representation of the model"""
172
- return pprint.pformat(self.to_dict())
173
-
174
- def __repr__(self):
175
- """For `print` and `pprint`"""
176
- return self.to_str()
177
-
178
- def __eq__(self, other):
179
- """Returns true if both objects are equal"""
180
- if not isinstance(other, PackageUpload):
181
- return False
182
-
183
- return self.to_dict() == other.to_dict()
184
-
185
- def __ne__(self, other):
186
- """Returns true if both objects are not equal"""
187
- if not isinstance(other, PackageUpload):
188
- return True
189
-
190
- return self.to_dict() != other.to_dict()
@@ -1,184 +0,0 @@
1
- # coding: utf-8
2
-
3
- """
4
- Pulp 3 API
5
-
6
- Fetch, Upload, Organize, and Distribute Software Packages # noqa: E501
7
-
8
- The version of the OpenAPI document: v3
9
- Contact: pulp-list@redhat.com
10
- Generated by: https://openapi-generator.tech
11
- """
12
-
13
-
14
- import pprint
15
- import re # noqa: F401
16
-
17
- import six
18
-
19
- from pulpcore.client.pulp_python.configuration import Configuration
20
-
21
-
22
- class PythonBanderRemote(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.
35
- """
36
- openapi_types = {
37
- 'config': 'file',
38
- 'name': 'str',
39
- 'policy': 'PolicyEnum'
40
- }
41
-
42
- attribute_map = {
43
- 'config': 'config',
44
- 'name': 'name',
45
- 'policy': 'policy'
46
- }
47
-
48
- def __init__(self, config=None, name=None, policy=None, local_vars_configuration=None): # noqa: E501
49
- """PythonBanderRemote - a model defined in OpenAPI""" # noqa: E501
50
- if local_vars_configuration is None:
51
- local_vars_configuration = Configuration()
52
- self.local_vars_configuration = local_vars_configuration
53
-
54
- self._config = None
55
- self._name = None
56
- self._policy = None
57
- self.discriminator = None
58
-
59
- self.config = config
60
- self.name = name
61
- if policy is not None:
62
- self.policy = policy
63
-
64
- @property
65
- def config(self):
66
- """Gets the config of this PythonBanderRemote. # noqa: E501
67
-
68
- A Bandersnatch config that may be used to construct a Python Remote. # noqa: E501
69
-
70
- :return: The config of this PythonBanderRemote. # noqa: E501
71
- :rtype: file
72
- """
73
- return self._config
74
-
75
- @config.setter
76
- def config(self, config):
77
- """Sets the config of this PythonBanderRemote.
78
-
79
- A Bandersnatch config that may be used to construct a Python Remote. # noqa: E501
80
-
81
- :param config: The config of this PythonBanderRemote. # noqa: E501
82
- :type: file
83
- """
84
- if self.local_vars_configuration.client_side_validation and config is None: # noqa: E501
85
- raise ValueError("Invalid value for `config`, must not be `None`") # noqa: E501
86
-
87
- self._config = config
88
-
89
- @property
90
- def name(self):
91
- """Gets the name of this PythonBanderRemote. # noqa: E501
92
-
93
- A unique name for this remote # noqa: E501
94
-
95
- :return: The name of this PythonBanderRemote. # noqa: E501
96
- :rtype: str
97
- """
98
- return self._name
99
-
100
- @name.setter
101
- def name(self, name):
102
- """Sets the name of this PythonBanderRemote.
103
-
104
- A unique name for this remote # noqa: E501
105
-
106
- :param name: The name of this PythonBanderRemote. # noqa: E501
107
- :type: str
108
- """
109
- if self.local_vars_configuration.client_side_validation and name is None: # noqa: E501
110
- raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501
111
- if (self.local_vars_configuration.client_side_validation and
112
- name is not None and len(name) < 1):
113
- raise ValueError("Invalid value for `name`, length must be greater than or equal to `1`") # noqa: E501
114
-
115
- self._name = name
116
-
117
- @property
118
- def policy(self):
119
- """Gets the policy of this PythonBanderRemote. # noqa: E501
120
-
121
- The policy to use when downloading content. The possible values include: 'immediate', 'on_demand', and 'streamed'. 'on_demand' is the default. * `immediate` - When syncing, download all metadata and content now. * `on_demand` - When syncing, download metadata, but do not download content now. Instead, download content as clients request it, and save it in Pulp to be served for future client requests. * `streamed` - When syncing, download metadata, but do not download content now. Instead,download content as clients request it, but never save it in Pulp. This causes future requests for that same content to have to be downloaded again. # noqa: E501
122
-
123
- :return: The policy of this PythonBanderRemote. # noqa: E501
124
- :rtype: PolicyEnum
125
- """
126
- return self._policy
127
-
128
- @policy.setter
129
- def policy(self, policy):
130
- """Sets the policy of this PythonBanderRemote.
131
-
132
- The policy to use when downloading content. The possible values include: 'immediate', 'on_demand', and 'streamed'. 'on_demand' is the default. * `immediate` - When syncing, download all metadata and content now. * `on_demand` - When syncing, download metadata, but do not download content now. Instead, download content as clients request it, and save it in Pulp to be served for future client requests. * `streamed` - When syncing, download metadata, but do not download content now. Instead,download content as clients request it, but never save it in Pulp. This causes future requests for that same content to have to be downloaded again. # noqa: E501
133
-
134
- :param policy: The policy of this PythonBanderRemote. # noqa: E501
135
- :type: PolicyEnum
136
- """
137
-
138
- self._policy = policy
139
-
140
- def to_dict(self):
141
- """Returns the model properties as a dict"""
142
- result = {}
143
-
144
- for attr, _ in six.iteritems(self.openapi_types):
145
- value = getattr(self, attr)
146
- if isinstance(value, list):
147
- result[attr] = list(map(
148
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
149
- value
150
- ))
151
- elif hasattr(value, "to_dict"):
152
- result[attr] = value.to_dict()
153
- elif isinstance(value, dict):
154
- result[attr] = dict(map(
155
- lambda item: (item[0], item[1].to_dict())
156
- if hasattr(item[1], "to_dict") else item,
157
- value.items()
158
- ))
159
- else:
160
- result[attr] = value
161
-
162
- return result
163
-
164
- def to_str(self):
165
- """Returns the string representation of the model"""
166
- return pprint.pformat(self.to_dict())
167
-
168
- def __repr__(self):
169
- """For `print` and `pprint`"""
170
- return self.to_str()
171
-
172
- def __eq__(self, other):
173
- """Returns true if both objects are equal"""
174
- if not isinstance(other, PythonBanderRemote):
175
- return False
176
-
177
- return self.to_dict() == other.to_dict()
178
-
179
- def __ne__(self, other):
180
- """Returns true if both objects are not equal"""
181
- if not isinstance(other, PythonBanderRemote):
182
- return True
183
-
184
- return self.to_dict() != other.to_dict()