crc-pulpcore-client 20250821.3__py3-none-any.whl → 20250821.4__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 crc-pulpcore-client might be problematic. Click here for more details.

Files changed (86) hide show
  1. crc-pulpcore-client/api/__init__.py +1 -0
  2. crc-pulpcore-client/api/content_api.py +12 -12
  3. crc-pulpcore-client/api/distributions_api.py +12 -12
  4. crc-pulpcore-client/api/remotes_api.py +12 -12
  5. crc-pulpcore-client/api/repositories_api.py +12 -12
  6. crc-pulpcore-client/api/vuln_report_api.py +977 -0
  7. crc-pulpcore-client/api_client.py +1 -1
  8. crc-pulpcore-client/configuration.py +3 -3
  9. crc-pulpcore-client/models/__init__.py +2 -0
  10. crc-pulpcore-client/models/artifact_distribution_response.py +17 -17
  11. crc-pulpcore-client/models/filesystem_export_response.py +0 -2
  12. crc-pulpcore-client/models/generic_remote_response.py +1 -3
  13. crc-pulpcore-client/models/group_role_response.py +0 -2
  14. crc-pulpcore-client/models/multiple_artifact_content_response.py +5 -1
  15. crc-pulpcore-client/models/nested_open_pgp_public_subkey_response.py +0 -2
  16. crc-pulpcore-client/models/nested_open_pgp_signature.py +1 -1
  17. crc-pulpcore-client/models/nested_open_pgp_signature_response.py +2 -3
  18. crc-pulpcore-client/models/nested_open_pgp_user_attribute_response.py +0 -2
  19. crc-pulpcore-client/models/nested_open_pgp_user_id_response.py +0 -2
  20. crc-pulpcore-client/models/open_pgp_keyring.py +2 -2
  21. crc-pulpcore-client/models/open_pgp_keyring_response.py +2 -3
  22. crc-pulpcore-client/models/open_pgp_public_key_response.py +4 -6
  23. crc-pulpcore-client/models/open_pgp_public_subkey_response.py +4 -2
  24. crc-pulpcore-client/models/open_pgp_signature_response.py +6 -3
  25. crc-pulpcore-client/models/open_pgp_user_attribute_response.py +4 -2
  26. crc-pulpcore-client/models/open_pgp_user_id_response.py +4 -2
  27. crc-pulpcore-client/models/orphans_cleanup.py +2 -3
  28. crc-pulpcore-client/models/paginated_access_policy_response_list.py +0 -10
  29. crc-pulpcore-client/models/paginated_artifact_distribution_response_list.py +0 -10
  30. crc-pulpcore-client/models/paginated_artifact_response_list.py +0 -10
  31. crc-pulpcore-client/models/paginated_composite_content_guard_response_list.py +0 -10
  32. crc-pulpcore-client/models/paginated_content_guard_response_list.py +0 -10
  33. crc-pulpcore-client/models/paginated_content_redirect_content_guard_response_list.py +0 -10
  34. crc-pulpcore-client/models/paginated_distribution_response_list.py +0 -10
  35. crc-pulpcore-client/models/paginated_domain_response_list.py +0 -10
  36. crc-pulpcore-client/models/paginated_filesystem_export_response_list.py +0 -10
  37. crc-pulpcore-client/models/paginated_filesystem_exporter_response_list.py +0 -10
  38. crc-pulpcore-client/models/paginated_generic_remote_response_list.py +0 -10
  39. crc-pulpcore-client/models/paginated_group_response_list.py +0 -10
  40. crc-pulpcore-client/models/paginated_group_role_response_list.py +0 -10
  41. crc-pulpcore-client/models/paginated_group_user_response_list.py +0 -10
  42. crc-pulpcore-client/models/paginated_header_content_guard_response_list.py +0 -10
  43. crc-pulpcore-client/models/paginated_import_response_list.py +0 -10
  44. crc-pulpcore-client/models/paginated_multiple_artifact_content_response_list.py +0 -10
  45. crc-pulpcore-client/models/paginated_open_pgp_distribution_response_list.py +0 -10
  46. crc-pulpcore-client/models/paginated_open_pgp_keyring_response_list.py +0 -10
  47. crc-pulpcore-client/models/paginated_open_pgp_public_key_response_list.py +0 -10
  48. crc-pulpcore-client/models/paginated_open_pgp_public_subkey_response_list.py +0 -10
  49. crc-pulpcore-client/models/paginated_open_pgp_signature_response_list.py +0 -10
  50. crc-pulpcore-client/models/paginated_open_pgp_user_attribute_response_list.py +0 -10
  51. crc-pulpcore-client/models/paginated_open_pgp_user_id_response_list.py +0 -10
  52. crc-pulpcore-client/models/paginated_publication_response_list.py +0 -10
  53. crc-pulpcore-client/models/paginated_pulp_export_response_list.py +0 -10
  54. crc-pulpcore-client/models/paginated_pulp_exporter_response_list.py +0 -10
  55. crc-pulpcore-client/models/paginated_pulp_importer_response_list.py +0 -10
  56. crc-pulpcore-client/models/paginated_rbac_content_guard_response_list.py +0 -10
  57. crc-pulpcore-client/models/paginated_repository_response_list.py +0 -10
  58. crc-pulpcore-client/models/paginated_repository_version_response_list.py +0 -10
  59. crc-pulpcore-client/models/paginated_role_response_list.py +0 -10
  60. crc-pulpcore-client/models/paginated_signing_service_response_list.py +0 -10
  61. crc-pulpcore-client/models/paginated_task_group_response_list.py +0 -10
  62. crc-pulpcore-client/models/paginated_task_response_list.py +0 -10
  63. crc-pulpcore-client/models/paginated_task_schedule_response_list.py +0 -10
  64. crc-pulpcore-client/models/paginated_upload_response_list.py +0 -10
  65. crc-pulpcore-client/models/paginated_upstream_pulp_response_list.py +0 -10
  66. crc-pulpcore-client/models/paginated_user_response_list.py +0 -10
  67. crc-pulpcore-client/models/paginated_user_role_response_list.py +0 -10
  68. crc-pulpcore-client/models/paginated_vulnerability_report_response_list.py +102 -0
  69. crc-pulpcore-client/models/paginated_worker_response_list.py +0 -10
  70. crc-pulpcore-client/models/patched_open_pgp_keyring.py +2 -2
  71. crc-pulpcore-client/models/pulp_export_response.py +0 -2
  72. crc-pulpcore-client/models/rbac_content_guard_response.py +0 -4
  73. crc-pulpcore-client/models/repository_response.py +2 -3
  74. crc-pulpcore-client/models/repository_version_response.py +6 -2
  75. crc-pulpcore-client/models/storage_response.py +4 -5
  76. crc-pulpcore-client/models/task_group_response.py +0 -4
  77. crc-pulpcore-client/models/task_response.py +0 -8
  78. crc-pulpcore-client/models/upload_detail_response.py +0 -2
  79. crc-pulpcore-client/models/upstream_pulp_response.py +0 -2
  80. crc-pulpcore-client/models/user_response.py +0 -4
  81. crc-pulpcore-client/models/user_role_response.py +0 -2
  82. crc-pulpcore-client/models/vulnerability_report_response.py +116 -0
  83. {crc_pulpcore_client-20250821.3.dist-info → crc_pulpcore_client-20250821.4.dist-info}/METADATA +1 -1
  84. {crc_pulpcore_client-20250821.3.dist-info → crc_pulpcore_client-20250821.4.dist-info}/RECORD +86 -83
  85. {crc_pulpcore_client-20250821.3.dist-info → crc_pulpcore_client-20250821.4.dist-info}/WHEEL +0 -0
  86. {crc_pulpcore_client-20250821.3.dist-info → crc_pulpcore_client-20250821.4.dist-info}/top_level.txt +0 -0
@@ -91,7 +91,7 @@ class ApiClient:
91
91
  self.default_headers[header_name] = header_value
92
92
  self.cookie = cookie
93
93
  # Set default User-Agent.
94
- self.user_agent = 'OpenAPI-Generator/20250821.3/python'
94
+ self.user_agent = 'OpenAPI-Generator/20250821.4/python'
95
95
  self.client_side_validation = configuration.client_side_validation
96
96
 
97
97
  def __enter__(self):
@@ -225,7 +225,7 @@ conf = crc-pulpcore-client.Configuration(
225
225
  ) -> None:
226
226
  """Constructor
227
227
  """
228
- self._base_path = "https://env-ephemeral-seinor.apps.crc-eph.r9lp.p1.openshiftapps.com" if host is None else host
228
+ self._base_path = "https://env-ephemeral-rxp4hy.apps.crc-eph.r9lp.p1.openshiftapps.com" if host is None else host
229
229
  """Default Base url
230
230
  """
231
231
  self.server_index = 0 if server_index is None and host is None else server_index
@@ -557,7 +557,7 @@ conf = crc-pulpcore-client.Configuration(
557
557
  "OS: {env}\n"\
558
558
  "Python Version: {pyversion}\n"\
559
559
  "Version of the API: v3\n"\
560
- "SDK Package Version: 20250821.3".\
560
+ "SDK Package Version: 20250821.4".\
561
561
  format(env=sys.platform, pyversion=sys.version)
562
562
 
563
563
  def get_host_settings(self) -> List[HostSetting]:
@@ -567,7 +567,7 @@ conf = crc-pulpcore-client.Configuration(
567
567
  """
568
568
  return [
569
569
  {
570
- 'url': "https://env-ephemeral-seinor.apps.crc-eph.r9lp.p1.openshiftapps.com",
570
+ 'url': "https://env-ephemeral-rxp4hy.apps.crc-eph.r9lp.p1.openshiftapps.com",
571
571
  'description': "No description provided",
572
572
  }
573
573
  ]
@@ -118,6 +118,7 @@ from crc-pulpcore-client.models.paginated_upload_response_list import PaginatedU
118
118
  from crc-pulpcore-client.models.paginated_upstream_pulp_response_list import PaginatedUpstreamPulpResponseList
119
119
  from crc-pulpcore-client.models.paginated_user_response_list import PaginatedUserResponseList
120
120
  from crc-pulpcore-client.models.paginated_user_role_response_list import PaginatedUserRoleResponseList
121
+ from crc-pulpcore-client.models.paginated_vulnerability_report_response_list import PaginatedVulnerabilityReportResponseList
121
122
  from crc-pulpcore-client.models.paginated_worker_response_list import PaginatedWorkerResponseList
122
123
  from crc-pulpcore-client.models.patched_access_policy import PatchedAccessPolicy
123
124
  from crc-pulpcore-client.models.patched_composite_content_guard import PatchedCompositeContentGuard
@@ -186,4 +187,5 @@ from crc-pulpcore-client.models.user_response import UserResponse
186
187
  from crc-pulpcore-client.models.user_role import UserRole
187
188
  from crc-pulpcore-client.models.user_role_response import UserRoleResponse
188
189
  from crc-pulpcore-client.models.version_response import VersionResponse
190
+ from crc-pulpcore-client.models.vulnerability_report_response import VulnerabilityReportResponse
189
191
  from crc-pulpcore-client.models.worker_response import WorkerResponse
@@ -28,18 +28,18 @@ class ArtifactDistributionResponse(BaseModel):
28
28
  """
29
29
  A serializer for ArtifactDistribution.
30
30
  """ # noqa: E501
31
- base_path: StrictStr = Field(description="The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")")
32
31
  hidden: Optional[StrictBool] = Field(default=False, description="Whether this distribution should be shown in the content app.")
33
- no_content_change_since: Optional[StrictStr] = Field(default=None, description="Timestamp since when the distributed content served by this distribution has not changed. If equals to `null`, no guarantee is provided about content changes.")
34
- content_guard: Optional[StrictStr] = Field(default=None, description="An optional content-guard.")
35
32
  pulp_labels: Optional[Dict[str, Optional[StrictStr]]] = None
36
- name: StrictStr = Field(description="A unique name. Ex, `rawhide` and `stable`.")
37
- 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.")
38
33
  pulp_href: Optional[StrictStr] = None
34
+ base_path: StrictStr = Field(description="The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")")
35
+ name: StrictStr = Field(description="A unique name. Ex, `rawhide` and `stable`.")
39
36
  pulp_created: Optional[datetime] = Field(default=None, description="Timestamp of creation.")
40
- prn: Optional[StrictStr] = Field(default=None, description="The Pulp Resource Name (PRN).")
37
+ content_guard: Optional[StrictStr] = Field(default=None, description="An optional content-guard.")
41
38
  base_url: Optional[StrictStr] = Field(default=None, description="The URL for accessing the publication as defined by this distribution.")
42
- __properties: ClassVar[List[str]] = ["base_path", "hidden", "no_content_change_since", "content_guard", "pulp_labels", "name", "pulp_last_updated", "pulp_href", "pulp_created", "prn", "base_url"]
39
+ 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.")
40
+ no_content_change_since: Optional[StrictStr] = Field(default=None, description="Timestamp since when the distributed content served by this distribution has not changed. If equals to `null`, no guarantee is provided about content changes.")
41
+ prn: Optional[StrictStr] = Field(default=None, description="The Pulp Resource Name (PRN).")
42
+ __properties: ClassVar[List[str]] = ["hidden", "pulp_labels", "pulp_href", "base_path", "name", "pulp_created", "content_guard", "base_url", "pulp_last_updated", "no_content_change_since", "prn"]
43
43
 
44
44
  model_config = ConfigDict(
45
45
  populate_by_name=True,
@@ -79,12 +79,12 @@ class ArtifactDistributionResponse(BaseModel):
79
79
  * OpenAPI `readOnly` fields are excluded.
80
80
  """
81
81
  excluded_fields: Set[str] = set([
82
- "no_content_change_since",
83
- "pulp_last_updated",
84
82
  "pulp_href",
85
83
  "pulp_created",
86
- "prn",
87
84
  "base_url",
85
+ "pulp_last_updated",
86
+ "no_content_change_since",
87
+ "prn",
88
88
  ])
89
89
 
90
90
  _dict = self.model_dump(
@@ -109,17 +109,17 @@ class ArtifactDistributionResponse(BaseModel):
109
109
  return cls.model_validate(obj)
110
110
 
111
111
  _obj = cls.model_validate({
112
- "base_path": obj.get("base_path"),
113
112
  "hidden": obj.get("hidden") if obj.get("hidden") is not None else False,
114
- "no_content_change_since": obj.get("no_content_change_since"),
115
- "content_guard": obj.get("content_guard"),
116
113
  "pulp_labels": obj.get("pulp_labels"),
117
- "name": obj.get("name"),
118
- "pulp_last_updated": obj.get("pulp_last_updated"),
119
114
  "pulp_href": obj.get("pulp_href"),
115
+ "base_path": obj.get("base_path"),
116
+ "name": obj.get("name"),
120
117
  "pulp_created": obj.get("pulp_created"),
121
- "prn": obj.get("prn"),
122
- "base_url": obj.get("base_url")
118
+ "content_guard": obj.get("content_guard"),
119
+ "base_url": obj.get("base_url"),
120
+ "pulp_last_updated": obj.get("pulp_last_updated"),
121
+ "no_content_change_since": obj.get("no_content_change_since"),
122
+ "prn": obj.get("prn")
123
123
  })
124
124
  return _obj
125
125
 
@@ -72,14 +72,12 @@ class FilesystemExportResponse(BaseModel):
72
72
  * OpenAPI `readOnly` fields are excluded.
73
73
  * OpenAPI `readOnly` fields are excluded.
74
74
  * OpenAPI `readOnly` fields are excluded.
75
- * OpenAPI `readOnly` fields are excluded.
76
75
  """
77
76
  excluded_fields: Set[str] = set([
78
77
  "pulp_href",
79
78
  "prn",
80
79
  "pulp_created",
81
80
  "pulp_last_updated",
82
- "exported_resources",
83
81
  "params",
84
82
  ])
85
83
 
@@ -42,7 +42,7 @@ class GenericRemoteResponse(BaseModel):
42
42
  tls_validation: Optional[StrictBool] = Field(default=None, description="If True, TLS peer validation must be performed.")
43
43
  proxy_url: Optional[StrictStr] = Field(default=None, description="The proxy URL. Format: scheme://host:port")
44
44
  pulp_labels: Optional[Dict[str, Optional[StrictStr]]] = None
45
- 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.")
45
+ download_concurrency: Optional[StrictInt] = Field(default=None, description="Total number of simultaneous connections. If not set then the default value will be used.")
46
46
  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.")
47
47
  policy: Optional[GenericRemoteResponsePolicyEnum] = Field(default=None, description="The policy to use when downloading content. * `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.")
48
48
  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.")
@@ -88,14 +88,12 @@ class GenericRemoteResponse(BaseModel):
88
88
  * OpenAPI `readOnly` fields are excluded.
89
89
  * OpenAPI `readOnly` fields are excluded.
90
90
  * OpenAPI `readOnly` fields are excluded.
91
- * OpenAPI `readOnly` fields are excluded.
92
91
  """
93
92
  excluded_fields: Set[str] = set([
94
93
  "pulp_href",
95
94
  "prn",
96
95
  "pulp_created",
97
96
  "pulp_last_updated",
98
- "hidden_fields",
99
97
  ])
100
98
 
101
99
  _dict = self.model_dump(
@@ -75,7 +75,6 @@ class GroupRoleResponse(BaseModel):
75
75
  * OpenAPI `readOnly` fields are excluded.
76
76
  * OpenAPI `readOnly` fields are excluded.
77
77
  * OpenAPI `readOnly` fields are excluded.
78
- * OpenAPI `readOnly` fields are excluded.
79
78
  """
80
79
  excluded_fields: Set[str] = set([
81
80
  "pulp_href",
@@ -83,7 +82,6 @@ class GroupRoleResponse(BaseModel):
83
82
  "pulp_created",
84
83
  "pulp_last_updated",
85
84
  "description",
86
- "permissions",
87
85
  ])
88
86
 
89
87
  _dict = self.model_dump(
@@ -33,8 +33,9 @@ class MultipleArtifactContentResponse(BaseModel):
33
33
  pulp_created: Optional[datetime] = Field(default=None, description="Timestamp of creation.")
34
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
35
  pulp_labels: Optional[Dict[str, Optional[StrictStr]]] = Field(default=None, description="A dictionary of arbitrary key/value pairs used to describe a specific Content instance.")
36
+ vuln_report: Optional[StrictStr] = None
36
37
  artifacts: Dict[str, Any] = Field(description="A dict mapping relative paths inside the Content to the correspondingArtifact URLs. E.g.: {'relative/path': '/artifacts/1/'")
37
- __properties: ClassVar[List[str]] = ["pulp_href", "prn", "pulp_created", "pulp_last_updated", "pulp_labels", "artifacts"]
38
+ __properties: ClassVar[List[str]] = ["pulp_href", "prn", "pulp_created", "pulp_last_updated", "pulp_labels", "vuln_report", "artifacts"]
38
39
 
39
40
  model_config = ConfigDict(
40
41
  populate_by_name=True,
@@ -70,12 +71,14 @@ class MultipleArtifactContentResponse(BaseModel):
70
71
  * OpenAPI `readOnly` fields are excluded.
71
72
  * OpenAPI `readOnly` fields are excluded.
72
73
  * OpenAPI `readOnly` fields are excluded.
74
+ * OpenAPI `readOnly` fields are excluded.
73
75
  """
74
76
  excluded_fields: Set[str] = set([
75
77
  "pulp_href",
76
78
  "prn",
77
79
  "pulp_created",
78
80
  "pulp_last_updated",
81
+ "vuln_report",
79
82
  ])
80
83
 
81
84
  _dict = self.model_dump(
@@ -100,6 +103,7 @@ class MultipleArtifactContentResponse(BaseModel):
100
103
  "pulp_created": obj.get("pulp_created"),
101
104
  "pulp_last_updated": obj.get("pulp_last_updated"),
102
105
  "pulp_labels": obj.get("pulp_labels"),
106
+ "vuln_report": obj.get("vuln_report"),
103
107
  "artifacts": obj.get("artifacts")
104
108
  })
105
109
  return _obj
@@ -65,10 +65,8 @@ class NestedOpenPGPPublicSubkeyResponse(BaseModel):
65
65
  * `None` is only added to the output dict for nullable fields that
66
66
  were set at model initialization. Other fields with value `None`
67
67
  are ignored.
68
- * OpenAPI `readOnly` fields are excluded.
69
68
  """
70
69
  excluded_fields: Set[str] = set([
71
- "signatures",
72
70
  ])
73
71
 
74
72
  _dict = self.model_dump(
@@ -29,7 +29,7 @@ class NestedOpenPGPSignature(BaseModel):
29
29
  """
30
30
  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.
31
31
  """ # noqa: E501
32
- issuer: Optional[Annotated[str, Field(min_length=1, strict=True, max_length=16)]] = None
32
+ issuer: Optional[Annotated[str, Field(min_length=1, strict=True)]] = None
33
33
  created: datetime
34
34
  expiration_time: Optional[StrictStr] = None
35
35
  signers_user_id: Optional[Annotated[str, Field(min_length=1, strict=True)]] = None
@@ -19,9 +19,8 @@ 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, StrictBool, 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
 
@@ -29,7 +28,7 @@ class NestedOpenPGPSignatureResponse(BaseModel):
29
28
  """
30
29
  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.
31
30
  """ # noqa: E501
32
- issuer: Optional[Annotated[str, Field(strict=True, max_length=16)]] = None
31
+ issuer: Optional[StrictStr] = None
33
32
  created: datetime
34
33
  expiration_time: Optional[StrictStr] = None
35
34
  signers_user_id: Optional[StrictStr] = None
@@ -63,10 +63,8 @@ class NestedOpenPGPUserAttributeResponse(BaseModel):
63
63
  * `None` is only added to the output dict for nullable fields that
64
64
  were set at model initialization. Other fields with value `None`
65
65
  are ignored.
66
- * OpenAPI `readOnly` fields are excluded.
67
66
  """
68
67
  excluded_fields: Set[str] = set([
69
- "signatures",
70
68
  ])
71
69
 
72
70
  _dict = self.model_dump(
@@ -62,10 +62,8 @@ class NestedOpenPGPUserIDResponse(BaseModel):
62
62
  * `None` is only added to the output dict for nullable fields that
63
63
  were set at model initialization. Other fields with value `None`
64
64
  are ignored.
65
- * OpenAPI `readOnly` fields are excluded.
66
65
  """
67
66
  excluded_fields: Set[str] = set([
68
- "signatures",
69
67
  ])
70
68
 
71
69
  _dict = self.model_dump(
@@ -18,7 +18,7 @@ import pprint
18
18
  import re # noqa: F401
19
19
  import json
20
20
 
21
- from pydantic import BaseModel, ConfigDict, Field, StrictStr
21
+ from pydantic import BaseModel, ConfigDict, Field, 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
@@ -31,7 +31,7 @@ class OpenPGPKeyring(BaseModel):
31
31
  pulp_labels: Optional[Dict[str, Optional[StrictStr]]] = None
32
32
  name: Annotated[str, Field(min_length=1, strict=True)] = Field(description="A unique name for this repository.")
33
33
  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.")
34
+ retain_repo_versions: Optional[StrictInt] = Field(default=None, description="Retain X versions of the repository. Default is null which retains all versions.")
35
35
  remote: Optional[StrictStr] = Field(default=None, description="An optional remote to use by default when syncing.")
36
36
  __properties: ClassVar[List[str]] = ["pulp_labels", "name", "description", "retain_repo_versions", "remote"]
37
37
 
@@ -19,9 +19,8 @@ import re # noqa: F401
19
19
  import json
20
20
 
21
21
  from datetime import datetime
22
- from pydantic import BaseModel, ConfigDict, Field, StrictStr
22
+ from pydantic import BaseModel, ConfigDict, Field, 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
 
@@ -38,7 +37,7 @@ class OpenPGPKeyringResponse(BaseModel):
38
37
  latest_version_href: Optional[StrictStr] = None
39
38
  name: StrictStr = Field(description="A unique name for this repository.")
40
39
  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.")
40
+ retain_repo_versions: Optional[StrictInt] = Field(default=None, description="Retain X versions of the repository. Default is null which retains all versions.")
42
41
  remote: Optional[StrictStr] = Field(default=None, description="An optional remote to use by default when syncing.")
43
42
  __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"]
44
43
 
@@ -37,12 +37,13 @@ class OpenPGPPublicKeyResponse(BaseModel):
37
37
  pulp_created: Optional[datetime] = Field(default=None, description="Timestamp of creation.")
38
38
  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.")
39
39
  pulp_labels: Optional[Dict[str, Optional[StrictStr]]] = Field(default=None, description="A dictionary of arbitrary key/value pairs used to describe a specific Content instance.")
40
+ vuln_report: Optional[StrictStr] = None
40
41
  fingerprint: Optional[Annotated[str, Field(strict=True, max_length=64)]] = None
41
42
  created: Optional[datetime] = None
42
43
  user_ids: Optional[List[NestedOpenPGPUserIDResponse]] = None
43
44
  user_attributes: Optional[List[NestedOpenPGPUserAttributeResponse]] = None
44
45
  public_subkeys: Optional[List[NestedOpenPGPPublicSubkeyResponse]] = None
45
- __properties: ClassVar[List[str]] = ["pulp_href", "prn", "pulp_created", "pulp_last_updated", "pulp_labels", "fingerprint", "created", "user_ids", "user_attributes", "public_subkeys"]
46
+ __properties: ClassVar[List[str]] = ["pulp_href", "prn", "pulp_created", "pulp_last_updated", "pulp_labels", "vuln_report", "fingerprint", "created", "user_ids", "user_attributes", "public_subkeys"]
46
47
 
47
48
  model_config = ConfigDict(
48
49
  populate_by_name=True,
@@ -81,19 +82,15 @@ class OpenPGPPublicKeyResponse(BaseModel):
81
82
  * OpenAPI `readOnly` fields are excluded.
82
83
  * OpenAPI `readOnly` fields are excluded.
83
84
  * OpenAPI `readOnly` fields are excluded.
84
- * OpenAPI `readOnly` fields are excluded.
85
- * OpenAPI `readOnly` fields are excluded.
86
85
  """
87
86
  excluded_fields: Set[str] = set([
88
87
  "pulp_href",
89
88
  "prn",
90
89
  "pulp_created",
91
90
  "pulp_last_updated",
91
+ "vuln_report",
92
92
  "fingerprint",
93
93
  "created",
94
- "user_ids",
95
- "user_attributes",
96
- "public_subkeys",
97
94
  ])
98
95
 
99
96
  _dict = self.model_dump(
@@ -139,6 +136,7 @@ class OpenPGPPublicKeyResponse(BaseModel):
139
136
  "pulp_created": obj.get("pulp_created"),
140
137
  "pulp_last_updated": obj.get("pulp_last_updated"),
141
138
  "pulp_labels": obj.get("pulp_labels"),
139
+ "vuln_report": obj.get("vuln_report"),
142
140
  "fingerprint": obj.get("fingerprint"),
143
141
  "created": obj.get("created"),
144
142
  "user_ids": [NestedOpenPGPUserIDResponse.from_dict(_item) for _item in obj["user_ids"]] if obj.get("user_ids") is not None else None,
@@ -35,11 +35,12 @@ class OpenPGPPublicSubkeyResponse(BaseModel):
35
35
  pulp_created: Optional[datetime] = Field(default=None, description="Timestamp of creation.")
36
36
  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.")
37
37
  pulp_labels: Optional[Dict[str, Optional[StrictStr]]] = Field(default=None, description="A dictionary of arbitrary key/value pairs used to describe a specific Content instance.")
38
+ vuln_report: Optional[StrictStr] = None
38
39
  fingerprint: Annotated[str, Field(strict=True, max_length=64)]
39
40
  created: datetime
40
41
  signatures: Optional[List[NestedOpenPGPSignatureResponse]] = None
41
42
  public_key: Optional[StrictStr] = None
42
- __properties: ClassVar[List[str]] = ["pulp_href", "prn", "pulp_created", "pulp_last_updated", "pulp_labels", "fingerprint", "created", "signatures", "public_key"]
43
+ __properties: ClassVar[List[str]] = ["pulp_href", "prn", "pulp_created", "pulp_last_updated", "pulp_labels", "vuln_report", "fingerprint", "created", "signatures", "public_key"]
43
44
 
44
45
  model_config = ConfigDict(
45
46
  populate_by_name=True,
@@ -83,7 +84,7 @@ class OpenPGPPublicSubkeyResponse(BaseModel):
83
84
  "prn",
84
85
  "pulp_created",
85
86
  "pulp_last_updated",
86
- "signatures",
87
+ "vuln_report",
87
88
  "public_key",
88
89
  ])
89
90
 
@@ -116,6 +117,7 @@ class OpenPGPPublicSubkeyResponse(BaseModel):
116
117
  "pulp_created": obj.get("pulp_created"),
117
118
  "pulp_last_updated": obj.get("pulp_last_updated"),
118
119
  "pulp_labels": obj.get("pulp_labels"),
120
+ "vuln_report": obj.get("vuln_report"),
119
121
  "fingerprint": obj.get("fingerprint"),
120
122
  "created": obj.get("created"),
121
123
  "signatures": [NestedOpenPGPSignatureResponse.from_dict(_item) for _item in obj["signatures"]] if obj.get("signatures") is not None else None,
@@ -21,7 +21,6 @@ import json
21
21
  from datetime import datetime
22
22
  from pydantic import BaseModel, ConfigDict, Field, StrictBool, 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
 
@@ -34,7 +33,8 @@ class OpenPGPSignatureResponse(BaseModel):
34
33
  pulp_created: Optional[datetime] = Field(default=None, description="Timestamp of creation.")
35
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.")
36
35
  pulp_labels: Optional[Dict[str, Optional[StrictStr]]] = Field(default=None, description="A dictionary of arbitrary key/value pairs used to describe a specific Content instance.")
37
- issuer: Optional[Annotated[str, Field(strict=True, max_length=16)]] = None
36
+ vuln_report: Optional[StrictStr] = None
37
+ issuer: Optional[StrictStr] = None
38
38
  created: datetime
39
39
  expiration_time: Optional[StrictStr] = None
40
40
  signers_user_id: Optional[StrictStr] = None
@@ -42,7 +42,7 @@ class OpenPGPSignatureResponse(BaseModel):
42
42
  expired: StrictBool
43
43
  key_expired: Optional[StrictStr] = None
44
44
  signed_content: Optional[StrictStr] = None
45
- __properties: ClassVar[List[str]] = ["pulp_href", "prn", "pulp_created", "pulp_last_updated", "pulp_labels", "issuer", "created", "expiration_time", "signers_user_id", "key_expiration_time", "expired", "key_expired", "signed_content"]
45
+ __properties: ClassVar[List[str]] = ["pulp_href", "prn", "pulp_created", "pulp_last_updated", "pulp_labels", "vuln_report", "issuer", "created", "expiration_time", "signers_user_id", "key_expiration_time", "expired", "key_expired", "signed_content"]
46
46
 
47
47
  model_config = ConfigDict(
48
48
  populate_by_name=True,
@@ -80,12 +80,14 @@ class OpenPGPSignatureResponse(BaseModel):
80
80
  * OpenAPI `readOnly` fields are excluded.
81
81
  * OpenAPI `readOnly` fields are excluded.
82
82
  * OpenAPI `readOnly` fields are excluded.
83
+ * OpenAPI `readOnly` fields are excluded.
83
84
  """
84
85
  excluded_fields: Set[str] = set([
85
86
  "pulp_href",
86
87
  "prn",
87
88
  "pulp_created",
88
89
  "pulp_last_updated",
90
+ "vuln_report",
89
91
  "key_expired",
90
92
  "signed_content",
91
93
  ])
@@ -132,6 +134,7 @@ class OpenPGPSignatureResponse(BaseModel):
132
134
  "pulp_created": obj.get("pulp_created"),
133
135
  "pulp_last_updated": obj.get("pulp_last_updated"),
134
136
  "pulp_labels": obj.get("pulp_labels"),
137
+ "vuln_report": obj.get("vuln_report"),
135
138
  "issuer": obj.get("issuer"),
136
139
  "created": obj.get("created"),
137
140
  "expiration_time": obj.get("expiration_time"),
@@ -35,10 +35,11 @@ class OpenPGPUserAttributeResponse(BaseModel):
35
35
  pulp_created: Optional[datetime] = Field(default=None, description="Timestamp of creation.")
36
36
  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.")
37
37
  pulp_labels: Optional[Dict[str, Optional[StrictStr]]] = Field(default=None, description="A dictionary of arbitrary key/value pairs used to describe a specific Content instance.")
38
+ vuln_report: Optional[StrictStr] = None
38
39
  sha256: Annotated[str, Field(strict=True, max_length=128)]
39
40
  signatures: Optional[List[NestedOpenPGPSignatureResponse]] = None
40
41
  public_key: Optional[StrictStr] = None
41
- __properties: ClassVar[List[str]] = ["pulp_href", "prn", "pulp_created", "pulp_last_updated", "pulp_labels", "sha256", "signatures", "public_key"]
42
+ __properties: ClassVar[List[str]] = ["pulp_href", "prn", "pulp_created", "pulp_last_updated", "pulp_labels", "vuln_report", "sha256", "signatures", "public_key"]
42
43
 
43
44
  model_config = ConfigDict(
44
45
  populate_by_name=True,
@@ -82,7 +83,7 @@ class OpenPGPUserAttributeResponse(BaseModel):
82
83
  "prn",
83
84
  "pulp_created",
84
85
  "pulp_last_updated",
85
- "signatures",
86
+ "vuln_report",
86
87
  "public_key",
87
88
  ])
88
89
 
@@ -115,6 +116,7 @@ class OpenPGPUserAttributeResponse(BaseModel):
115
116
  "pulp_created": obj.get("pulp_created"),
116
117
  "pulp_last_updated": obj.get("pulp_last_updated"),
117
118
  "pulp_labels": obj.get("pulp_labels"),
119
+ "vuln_report": obj.get("vuln_report"),
118
120
  "sha256": obj.get("sha256"),
119
121
  "signatures": [NestedOpenPGPSignatureResponse.from_dict(_item) for _item in obj["signatures"]] if obj.get("signatures") is not None else None,
120
122
  "public_key": obj.get("public_key")
@@ -34,10 +34,11 @@ class OpenPGPUserIDResponse(BaseModel):
34
34
  pulp_created: Optional[datetime] = Field(default=None, description="Timestamp of creation.")
35
35
  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.")
36
36
  pulp_labels: Optional[Dict[str, Optional[StrictStr]]] = Field(default=None, description="A dictionary of arbitrary key/value pairs used to describe a specific Content instance.")
37
+ vuln_report: Optional[StrictStr] = None
37
38
  user_id: StrictStr
38
39
  signatures: Optional[List[NestedOpenPGPSignatureResponse]] = None
39
40
  public_key: Optional[StrictStr] = None
40
- __properties: ClassVar[List[str]] = ["pulp_href", "prn", "pulp_created", "pulp_last_updated", "pulp_labels", "user_id", "signatures", "public_key"]
41
+ __properties: ClassVar[List[str]] = ["pulp_href", "prn", "pulp_created", "pulp_last_updated", "pulp_labels", "vuln_report", "user_id", "signatures", "public_key"]
41
42
 
42
43
  model_config = ConfigDict(
43
44
  populate_by_name=True,
@@ -81,7 +82,7 @@ class OpenPGPUserIDResponse(BaseModel):
81
82
  "prn",
82
83
  "pulp_created",
83
84
  "pulp_last_updated",
84
- "signatures",
85
+ "vuln_report",
85
86
  "public_key",
86
87
  ])
87
88
 
@@ -114,6 +115,7 @@ class OpenPGPUserIDResponse(BaseModel):
114
115
  "pulp_created": obj.get("pulp_created"),
115
116
  "pulp_last_updated": obj.get("pulp_last_updated"),
116
117
  "pulp_labels": obj.get("pulp_labels"),
118
+ "vuln_report": obj.get("vuln_report"),
117
119
  "user_id": obj.get("user_id"),
118
120
  "signatures": [NestedOpenPGPSignatureResponse.from_dict(_item) for _item in obj["signatures"]] if obj.get("signatures") is not None else None,
119
121
  "public_key": obj.get("public_key")
@@ -18,9 +18,8 @@ import pprint
18
18
  import re # noqa: F401
19
19
  import json
20
20
 
21
- from pydantic import BaseModel, ConfigDict, Field
21
+ from pydantic import BaseModel, ConfigDict, Field, StrictInt
22
22
  from typing import Any, ClassVar, Dict, List, Optional
23
- from typing_extensions import Annotated
24
23
  from typing import Optional, Set
25
24
  from typing_extensions import Self
26
25
 
@@ -29,7 +28,7 @@ class OrphansCleanup(BaseModel):
29
28
  OrphansCleanup
30
29
  """ # noqa: E501
31
30
  content_hrefs: Optional[List[Any]] = Field(default=None, description="Will delete specified content and associated Artifacts if they are orphans.")
32
- orphan_protection_time: Optional[Annotated[int, Field(le=4294967295, strict=True, ge=0)]] = Field(default=None, description="The time in minutes for how long Pulp will hold orphan Content and Artifacts before they become candidates for deletion by this orphan cleanup task. This should ideally be longer than your longest running task otherwise any content created during that task could be cleaned up before the task finishes. If not specified, a default value is taken from the setting ORPHAN_PROTECTION_TIME.")
31
+ orphan_protection_time: Optional[StrictInt] = Field(default=None, description="The time in minutes for how long Pulp will hold orphan Content and Artifacts before they become candidates for deletion by this orphan cleanup task. This should ideally be longer than your longest running task otherwise any content created during that task could be cleaned up before the task finishes. If not specified, a default value is taken from the setting ORPHAN_PROTECTION_TIME.")
33
32
  __properties: ClassVar[List[str]] = ["content_hrefs", "orphan_protection_time"]
34
33
 
35
34
  model_config = ConfigDict(
@@ -80,16 +80,6 @@ class PaginatedAccessPolicyResponseList(BaseModel):
80
80
  if _item_results:
81
81
  _items.append(_item_results.to_dict())
82
82
  _dict['results'] = _items
83
- # set to None if next (nullable) is None
84
- # and model_fields_set contains the field
85
- if self.next is None and "next" in self.model_fields_set:
86
- _dict['next'] = None
87
-
88
- # set to None if previous (nullable) is None
89
- # and model_fields_set contains the field
90
- if self.previous is None and "previous" in self.model_fields_set:
91
- _dict['previous'] = None
92
-
93
83
  return _dict
94
84
 
95
85
  @classmethod
@@ -80,16 +80,6 @@ class PaginatedArtifactDistributionResponseList(BaseModel):
80
80
  if _item_results:
81
81
  _items.append(_item_results.to_dict())
82
82
  _dict['results'] = _items
83
- # set to None if next (nullable) is None
84
- # and model_fields_set contains the field
85
- if self.next is None and "next" in self.model_fields_set:
86
- _dict['next'] = None
87
-
88
- # set to None if previous (nullable) is None
89
- # and model_fields_set contains the field
90
- if self.previous is None and "previous" in self.model_fields_set:
91
- _dict['previous'] = None
92
-
93
83
  return _dict
94
84
 
95
85
  @classmethod
@@ -80,16 +80,6 @@ class PaginatedArtifactResponseList(BaseModel):
80
80
  if _item_results:
81
81
  _items.append(_item_results.to_dict())
82
82
  _dict['results'] = _items
83
- # set to None if next (nullable) is None
84
- # and model_fields_set contains the field
85
- if self.next is None and "next" in self.model_fields_set:
86
- _dict['next'] = None
87
-
88
- # set to None if previous (nullable) is None
89
- # and model_fields_set contains the field
90
- if self.previous is None and "previous" in self.model_fields_set:
91
- _dict['previous'] = None
92
-
93
83
  return _dict
94
84
 
95
85
  @classmethod
@@ -80,16 +80,6 @@ class PaginatedCompositeContentGuardResponseList(BaseModel):
80
80
  if _item_results:
81
81
  _items.append(_item_results.to_dict())
82
82
  _dict['results'] = _items
83
- # set to None if next (nullable) is None
84
- # and model_fields_set contains the field
85
- if self.next is None and "next" in self.model_fields_set:
86
- _dict['next'] = None
87
-
88
- # set to None if previous (nullable) is None
89
- # and model_fields_set contains the field
90
- if self.previous is None and "previous" in self.model_fields_set:
91
- _dict['previous'] = None
92
-
93
83
  return _dict
94
84
 
95
85
  @classmethod
@@ -80,16 +80,6 @@ class PaginatedContentGuardResponseList(BaseModel):
80
80
  if _item_results:
81
81
  _items.append(_item_results.to_dict())
82
82
  _dict['results'] = _items
83
- # set to None if next (nullable) is None
84
- # and model_fields_set contains the field
85
- if self.next is None and "next" in self.model_fields_set:
86
- _dict['next'] = None
87
-
88
- # set to None if previous (nullable) is None
89
- # and model_fields_set contains the field
90
- if self.previous is None and "previous" in self.model_fields_set:
91
- _dict['previous'] = None
92
-
93
83
  return _dict
94
84
 
95
85
  @classmethod