pulp-python-client 3.17.1__py3-none-any.whl → 3.19.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 (47) hide show
  1. pulp_python_client-3.19.0.dist-info/METADATA +287 -0
  2. {pulp_python_client-3.17.1.dist-info → pulp_python_client-3.19.0.dist-info}/RECORD +46 -46
  3. pulpcore/client/pulp_python/__init__.py +121 -59
  4. pulpcore/client/pulp_python/api/content_packages_api.py +802 -60
  5. pulpcore/client/pulp_python/api_client.py +6 -2
  6. pulpcore/client/pulp_python/configuration.py +10 -3
  7. pulpcore/client/pulp_python/exceptions.py +17 -0
  8. pulpcore/client/pulp_python/models/async_operation_response.py +8 -0
  9. pulpcore/client/pulp_python/models/content_summary_response.py +8 -0
  10. pulpcore/client/pulp_python/models/my_permissions_response.py +8 -0
  11. pulpcore/client/pulp_python/models/nested_role.py +8 -0
  12. pulpcore/client/pulp_python/models/nested_role_response.py +8 -0
  13. pulpcore/client/pulp_python/models/object_roles_response.py +8 -0
  14. pulpcore/client/pulp_python/models/package_metadata_response.py +10 -2
  15. pulpcore/client/pulp_python/models/package_upload_task_response.py +8 -0
  16. pulpcore/client/pulp_python/models/paginated_repository_version_response_list.py +8 -10
  17. pulpcore/client/pulp_python/models/paginatedpython_python_distribution_response_list.py +8 -10
  18. pulpcore/client/pulp_python/models/paginatedpython_python_package_content_response_list.py +8 -10
  19. pulpcore/client/pulp_python/models/paginatedpython_python_publication_response_list.py +8 -10
  20. pulpcore/client/pulp_python/models/paginatedpython_python_remote_response_list.py +8 -10
  21. pulpcore/client/pulp_python/models/paginatedpython_python_repository_response_list.py +8 -10
  22. pulpcore/client/pulp_python/models/patchedpython_python_distribution.py +8 -0
  23. pulpcore/client/pulp_python/models/patchedpython_python_remote.py +9 -1
  24. pulpcore/client/pulp_python/models/patchedpython_python_repository.py +10 -2
  25. pulpcore/client/pulp_python/models/python_python_distribution.py +8 -0
  26. pulpcore/client/pulp_python/models/python_python_distribution_response.py +8 -0
  27. pulpcore/client/pulp_python/models/python_python_package_content_response.py +23 -11
  28. pulpcore/client/pulp_python/models/python_python_publication.py +8 -0
  29. pulpcore/client/pulp_python/models/python_python_publication_response.py +8 -2
  30. pulpcore/client/pulp_python/models/python_python_remote.py +9 -1
  31. pulpcore/client/pulp_python/models/python_python_remote_response.py +9 -3
  32. pulpcore/client/pulp_python/models/python_python_remote_response_hidden_fields_inner.py +8 -0
  33. pulpcore/client/pulp_python/models/python_python_repository.py +10 -2
  34. pulpcore/client/pulp_python/models/python_python_repository_response.py +10 -3
  35. pulpcore/client/pulp_python/models/repair.py +8 -0
  36. pulpcore/client/pulp_python/models/repository_add_remove_content.py +8 -0
  37. pulpcore/client/pulp_python/models/repository_sync_url.py +8 -0
  38. pulpcore/client/pulp_python/models/repository_version_response.py +14 -2
  39. pulpcore/client/pulp_python/models/set_label.py +8 -0
  40. pulpcore/client/pulp_python/models/set_label_response.py +8 -0
  41. pulpcore/client/pulp_python/models/summary_response.py +8 -0
  42. pulpcore/client/pulp_python/models/unset_label.py +8 -0
  43. pulpcore/client/pulp_python/models/unset_label_response.py +8 -0
  44. pulpcore/client/pulp_python/rest.py +1 -0
  45. pulp_python_client-3.17.1.dist-info/METADATA +0 -17
  46. {pulp_python_client-3.17.1.dist-info → pulp_python_client-3.19.0.dist-info}/WHEEL +0 -0
  47. {pulp_python_client-3.17.1.dist-info → pulp_python_client-3.19.0.dist-info}/top_level.txt +0 -0
@@ -24,6 +24,14 @@ from typing import Any, ClassVar, Dict, List, Optional
24
24
  from typing import Optional, Set
25
25
  from typing_extensions import Self
26
26
 
27
+
28
+ class OneOf:
29
+ @staticmethod
30
+ def from_dict(obj, *args, **kwargs):
31
+ """Noop override to fix missing OneOf import/implementation."""
32
+ return obj
33
+
34
+
27
35
  class PythonPythonPublicationResponse(BaseModel):
28
36
  """
29
37
  A Serializer for PythonPublication.
@@ -71,14 +79,12 @@ class PythonPythonPublicationResponse(BaseModel):
71
79
  * OpenAPI `readOnly` fields are excluded.
72
80
  * OpenAPI `readOnly` fields are excluded.
73
81
  * OpenAPI `readOnly` fields are excluded.
74
- * OpenAPI `readOnly` fields are excluded.
75
82
  """
76
83
  excluded_fields: Set[str] = set([
77
84
  "pulp_href",
78
85
  "prn",
79
86
  "pulp_created",
80
87
  "pulp_last_updated",
81
- "distributions",
82
88
  ])
83
89
 
84
90
  _dict = self.model_dump(
@@ -27,6 +27,14 @@ from pulpcore.client.pulp_python.models.policy_enum import PolicyEnum
27
27
  from typing import Optional, Set
28
28
  from typing_extensions import Self
29
29
 
30
+
31
+ class OneOf:
32
+ @staticmethod
33
+ def from_dict(obj, *args, **kwargs):
34
+ """Noop override to fix missing OneOf import/implementation."""
35
+ return obj
36
+
37
+
30
38
  class PythonPythonRemote(BaseModel):
31
39
  """
32
40
  A Serializer for PythonRemote.
@@ -43,7 +51,7 @@ class PythonPythonRemote(BaseModel):
43
51
  username: Optional[Annotated[str, Field(min_length=1, strict=True)]] = Field(default=None, description="The username to be used for authentication when syncing.")
44
52
  password: Optional[Annotated[str, Field(min_length=1, strict=True)]] = Field(default=None, description="The password to be used for authentication when syncing. Extra leading and trailing whitespace characters are not trimmed.")
45
53
  pulp_labels: Optional[Dict[str, Optional[StrictStr]]] = None
46
- download_concurrency: Optional[Annotated[int, Field(strict=True, ge=1)]] = Field(default=None, description="Total number of simultaneous connections. If not set then the default value will be used.")
54
+ download_concurrency: Optional[StrictInt] = Field(default=None, description="Total number of simultaneous connections. If not set then the default value will be used.")
47
55
  max_retries: Optional[StrictInt] = Field(default=None, description="Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used.")
48
56
  policy: Optional[PolicyEnum] = Field(default=None, description="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.")
49
57
  total_timeout: Optional[Union[Annotated[float, Field(strict=True, ge=0.0)], Annotated[int, Field(strict=True, ge=0)]]] = Field(default=None, description="aiohttp.ClientTimeout.total (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.")
@@ -29,6 +29,14 @@ from pulpcore.client.pulp_python.models.python_python_remote_response_hidden_fie
29
29
  from typing import Optional, Set
30
30
  from typing_extensions import Self
31
31
 
32
+
33
+ class OneOf:
34
+ @staticmethod
35
+ def from_dict(obj, *args, **kwargs):
36
+ """Noop override to fix missing OneOf import/implementation."""
37
+ return obj
38
+
39
+
32
40
  class PythonPythonRemoteResponse(BaseModel):
33
41
  """
34
42
  A Serializer for PythonRemote.
@@ -44,7 +52,7 @@ class PythonPythonRemoteResponse(BaseModel):
44
52
  tls_validation: Optional[StrictBool] = Field(default=None, description="If True, TLS peer validation must be performed.")
45
53
  proxy_url: Optional[StrictStr] = Field(default=None, description="The proxy URL. Format: scheme://host:port")
46
54
  pulp_labels: Optional[Dict[str, Optional[StrictStr]]] = None
47
- download_concurrency: Optional[Annotated[int, Field(strict=True, ge=1)]] = Field(default=None, description="Total number of simultaneous connections. If not set then the default value will be used.")
55
+ download_concurrency: Optional[StrictInt] = Field(default=None, description="Total number of simultaneous connections. If not set then the default value will be used.")
48
56
  max_retries: Optional[StrictInt] = Field(default=None, description="Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used.")
49
57
  policy: Optional[PolicyEnum] = Field(default=None, description="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.")
50
58
  total_timeout: Optional[Union[Annotated[float, Field(strict=True, ge=0.0)], Annotated[int, Field(strict=True, ge=0)]]] = Field(default=None, description="aiohttp.ClientTimeout.total (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.")
@@ -96,14 +104,12 @@ class PythonPythonRemoteResponse(BaseModel):
96
104
  * OpenAPI `readOnly` fields are excluded.
97
105
  * OpenAPI `readOnly` fields are excluded.
98
106
  * OpenAPI `readOnly` fields are excluded.
99
- * OpenAPI `readOnly` fields are excluded.
100
107
  """
101
108
  excluded_fields: Set[str] = set([
102
109
  "pulp_href",
103
110
  "prn",
104
111
  "pulp_created",
105
112
  "pulp_last_updated",
106
- "hidden_fields",
107
113
  ])
108
114
 
109
115
  _dict = self.model_dump(
@@ -23,6 +23,14 @@ from typing import Any, ClassVar, Dict, List
23
23
  from typing import Optional, Set
24
24
  from typing_extensions import Self
25
25
 
26
+
27
+ class OneOf:
28
+ @staticmethod
29
+ def from_dict(obj, *args, **kwargs):
30
+ """Noop override to fix missing OneOf import/implementation."""
31
+ return obj
32
+
33
+
26
34
  class PythonPythonRemoteResponseHiddenFieldsInner(BaseModel):
27
35
  """
28
36
  PythonPythonRemoteResponseHiddenFieldsInner
@@ -18,12 +18,20 @@ import pprint
18
18
  import re # noqa: F401
19
19
  import json
20
20
 
21
- from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr
21
+ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr
22
22
  from typing import Any, ClassVar, Dict, List, Optional
23
23
  from typing_extensions import Annotated
24
24
  from typing import Optional, Set
25
25
  from typing_extensions import Self
26
26
 
27
+
28
+ class OneOf:
29
+ @staticmethod
30
+ def from_dict(obj, *args, **kwargs):
31
+ """Noop override to fix missing OneOf import/implementation."""
32
+ return obj
33
+
34
+
27
35
  class PythonPythonRepository(BaseModel):
28
36
  """
29
37
  Serializer for Python Repositories.
@@ -31,7 +39,7 @@ class PythonPythonRepository(BaseModel):
31
39
  pulp_labels: Optional[Dict[str, Optional[StrictStr]]] = None
32
40
  name: Annotated[str, Field(min_length=1, strict=True)] = Field(description="A unique name for this repository.")
33
41
  description: Optional[Annotated[str, Field(min_length=1, strict=True)]] = Field(default=None, description="An optional description.")
34
- retain_repo_versions: Optional[Annotated[int, Field(strict=True, ge=1)]] = Field(default=None, description="Retain X versions of the repository. Default is null which retains all versions.")
42
+ retain_repo_versions: Optional[StrictInt] = Field(default=None, description="Retain X versions of the repository. Default is null which retains all versions.")
35
43
  remote: Optional[StrictStr] = Field(default=None, description="An optional remote to use by default when syncing.")
36
44
  autopublish: Optional[StrictBool] = Field(default=False, description="Whether to automatically create publications for new repository versions, and update any distributions pointing to this repository.")
37
45
  __properties: ClassVar[List[str]] = ["pulp_labels", "name", "description", "retain_repo_versions", "remote", "autopublish"]
@@ -19,12 +19,19 @@ import re # noqa: F401
19
19
  import json
20
20
 
21
21
  from datetime import datetime
22
- from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr
22
+ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr
23
23
  from typing import Any, ClassVar, Dict, List, Optional
24
- from typing_extensions import Annotated
25
24
  from typing import Optional, Set
26
25
  from typing_extensions import Self
27
26
 
27
+
28
+ class OneOf:
29
+ @staticmethod
30
+ def from_dict(obj, *args, **kwargs):
31
+ """Noop override to fix missing OneOf import/implementation."""
32
+ return obj
33
+
34
+
28
35
  class PythonPythonRepositoryResponse(BaseModel):
29
36
  """
30
37
  Serializer for Python Repositories.
@@ -38,7 +45,7 @@ class PythonPythonRepositoryResponse(BaseModel):
38
45
  latest_version_href: Optional[StrictStr] = None
39
46
  name: StrictStr = Field(description="A unique name for this repository.")
40
47
  description: Optional[StrictStr] = Field(default=None, description="An optional description.")
41
- retain_repo_versions: Optional[Annotated[int, Field(strict=True, ge=1)]] = Field(default=None, description="Retain X versions of the repository. Default is null which retains all versions.")
48
+ retain_repo_versions: Optional[StrictInt] = Field(default=None, description="Retain X versions of the repository. Default is null which retains all versions.")
42
49
  remote: Optional[StrictStr] = Field(default=None, description="An optional remote to use by default when syncing.")
43
50
  autopublish: Optional[StrictBool] = Field(default=False, description="Whether to automatically create publications for new repository versions, and update any distributions pointing to this repository.")
44
51
  __properties: ClassVar[List[str]] = ["pulp_href", "prn", "pulp_created", "pulp_last_updated", "versions_href", "pulp_labels", "latest_version_href", "name", "description", "retain_repo_versions", "remote", "autopublish"]
@@ -23,6 +23,14 @@ from typing import Any, ClassVar, Dict, List, Optional
23
23
  from typing import Optional, Set
24
24
  from typing_extensions import Self
25
25
 
26
+
27
+ class OneOf:
28
+ @staticmethod
29
+ def from_dict(obj, *args, **kwargs):
30
+ """Noop override to fix missing OneOf import/implementation."""
31
+ return obj
32
+
33
+
26
34
  class Repair(BaseModel):
27
35
  """
28
36
  Repair
@@ -24,6 +24,14 @@ from typing_extensions import Annotated
24
24
  from typing import Optional, Set
25
25
  from typing_extensions import Self
26
26
 
27
+
28
+ class OneOf:
29
+ @staticmethod
30
+ def from_dict(obj, *args, **kwargs):
31
+ """Noop override to fix missing OneOf import/implementation."""
32
+ return obj
33
+
34
+
27
35
  class RepositoryAddRemoveContent(BaseModel):
28
36
  """
29
37
  Base serializer for use with [pulpcore.app.models.Model][] This ensures that all Serializers provide values for the 'pulp_href` field. The class provides a default for the ``ref_name`` attribute in the ModelSerializers's ``Meta`` class. This ensures that the OpenAPI definitions of plugins are namespaced properly.
@@ -23,6 +23,14 @@ from typing import Any, ClassVar, Dict, List, Optional
23
23
  from typing import Optional, Set
24
24
  from typing_extensions import Self
25
25
 
26
+
27
+ class OneOf:
28
+ @staticmethod
29
+ def from_dict(obj, *args, **kwargs):
30
+ """Noop override to fix missing OneOf import/implementation."""
31
+ return obj
32
+
33
+
26
34
  class RepositorySyncURL(BaseModel):
27
35
  """
28
36
  A mixin for validating unknown serializers' fields.
@@ -25,6 +25,14 @@ from pulpcore.client.pulp_python.models.content_summary_response import ContentS
25
25
  from typing import Optional, Set
26
26
  from typing_extensions import Self
27
27
 
28
+
29
+ class OneOf:
30
+ @staticmethod
31
+ def from_dict(obj, *args, **kwargs):
32
+ """Noop override to fix missing OneOf import/implementation."""
33
+ return obj
34
+
35
+
28
36
  class RepositoryVersionResponse(BaseModel):
29
37
  """
30
38
  Base serializer for use with [pulpcore.app.models.Model][] This ensures that all Serializers provide values for the 'pulp_href` field. The class provides a default for the ``ref_name`` attribute in the ModelSerializers's ``Meta`` class. This ensures that the OpenAPI definitions of plugins are namespaced properly.
@@ -37,7 +45,8 @@ class RepositoryVersionResponse(BaseModel):
37
45
  repository: Optional[StrictStr] = None
38
46
  base_version: Optional[StrictStr] = Field(default=None, description="A repository version whose content was used as the initial set of content for this repository version")
39
47
  content_summary: Optional[ContentSummaryResponse] = Field(default=None, description="Various count summaries of the content in the version and the HREF to view them.")
40
- __properties: ClassVar[List[str]] = ["pulp_href", "prn", "pulp_created", "pulp_last_updated", "number", "repository", "base_version", "content_summary"]
48
+ vuln_report: Optional[StrictStr] = None
49
+ __properties: ClassVar[List[str]] = ["pulp_href", "prn", "pulp_created", "pulp_last_updated", "number", "repository", "base_version", "content_summary", "vuln_report"]
41
50
 
42
51
  model_config = ConfigDict(
43
52
  populate_by_name=True,
@@ -76,6 +85,7 @@ class RepositoryVersionResponse(BaseModel):
76
85
  * OpenAPI `readOnly` fields are excluded.
77
86
  * OpenAPI `readOnly` fields are excluded.
78
87
  * OpenAPI `readOnly` fields are excluded.
88
+ * OpenAPI `readOnly` fields are excluded.
79
89
  """
80
90
  excluded_fields: Set[str] = set([
81
91
  "pulp_href",
@@ -85,6 +95,7 @@ class RepositoryVersionResponse(BaseModel):
85
95
  "number",
86
96
  "repository",
87
97
  "content_summary",
98
+ "vuln_report",
88
99
  ])
89
100
 
90
101
  _dict = self.model_dump(
@@ -114,7 +125,8 @@ class RepositoryVersionResponse(BaseModel):
114
125
  "number": obj.get("number"),
115
126
  "repository": obj.get("repository"),
116
127
  "base_version": obj.get("base_version"),
117
- "content_summary": ContentSummaryResponse.from_dict(obj["content_summary"]) if obj.get("content_summary") is not None else None
128
+ "content_summary": ContentSummaryResponse.from_dict(obj["content_summary"]) if obj.get("content_summary") is not None else None,
129
+ "vuln_report": obj.get("vuln_report")
118
130
  })
119
131
  return _obj
120
132
 
@@ -24,6 +24,14 @@ from typing_extensions import Annotated
24
24
  from typing import Optional, Set
25
25
  from typing_extensions import Self
26
26
 
27
+
28
+ class OneOf:
29
+ @staticmethod
30
+ def from_dict(obj, *args, **kwargs):
31
+ """Noop override to fix missing OneOf import/implementation."""
32
+ return obj
33
+
34
+
27
35
  class SetLabel(BaseModel):
28
36
  """
29
37
  Serializer for synchronously setting a label.
@@ -24,6 +24,14 @@ from typing_extensions import Annotated
24
24
  from typing import Optional, Set
25
25
  from typing_extensions import Self
26
26
 
27
+
28
+ class OneOf:
29
+ @staticmethod
30
+ def from_dict(obj, *args, **kwargs):
31
+ """Noop override to fix missing OneOf import/implementation."""
32
+ return obj
33
+
34
+
27
35
  class SetLabelResponse(BaseModel):
28
36
  """
29
37
  Serializer for synchronously setting a label.
@@ -23,6 +23,14 @@ from typing import Any, ClassVar, Dict, List
23
23
  from typing import Optional, Set
24
24
  from typing_extensions import Self
25
25
 
26
+
27
+ class OneOf:
28
+ @staticmethod
29
+ def from_dict(obj, *args, **kwargs):
30
+ """Noop override to fix missing OneOf import/implementation."""
31
+ return obj
32
+
33
+
26
34
  class SummaryResponse(BaseModel):
27
35
  """
28
36
  A Serializer for summary information of an index.
@@ -24,6 +24,14 @@ from typing_extensions import Annotated
24
24
  from typing import Optional, Set
25
25
  from typing_extensions import Self
26
26
 
27
+
28
+ class OneOf:
29
+ @staticmethod
30
+ def from_dict(obj, *args, **kwargs):
31
+ """Noop override to fix missing OneOf import/implementation."""
32
+ return obj
33
+
34
+
27
35
  class UnsetLabel(BaseModel):
28
36
  """
29
37
  Serializer for synchronously UNsetting a label.
@@ -24,6 +24,14 @@ from typing_extensions import Annotated
24
24
  from typing import Optional, Set
25
25
  from typing_extensions import Self
26
26
 
27
+
28
+ class OneOf:
29
+ @staticmethod
30
+ def from_dict(obj, *args, **kwargs):
31
+ """Noop override to fix missing OneOf import/implementation."""
32
+ return obj
33
+
34
+
27
35
  class UnsetLabelResponse(BaseModel):
28
36
  """
29
37
  Serializer for synchronously UNsetting a label.
@@ -77,6 +77,7 @@ class RESTClientObject:
77
77
  "ca_certs": configuration.ssl_ca_cert,
78
78
  "cert_file": configuration.cert_file,
79
79
  "key_file": configuration.key_file,
80
+ "ca_cert_data": configuration.ca_cert_data,
80
81
  }
81
82
  if configuration.assert_hostname is not None:
82
83
  pool_args['assert_hostname'] = (
@@ -1,17 +0,0 @@
1
- Metadata-Version: 2.1
2
- Name: pulp-python-client
3
- Version: 3.17.1
4
- Summary: Pulp 3 API
5
- Home-page:
6
- Author: Pulp Team
7
- Author-email: pulp-list@redhat.com
8
- License: GPLv2+
9
- Keywords: pulp,pulpcore,client,Pulp 3 API
10
- Description-Content-Type: text/markdown
11
- Requires-Dist: urllib3<3.0.0,>=1.25.3
12
- Requires-Dist: python-dateutil<2.10.0,>=2.8.1
13
- Requires-Dist: pydantic>=2
14
- Requires-Dist: typing-extensions>=4.7.1
15
-
16
- Fetch, Upload, Organize, and Distribute Software Packages
17
-