pulp-ansible-client 0.27.1__py3-none-any.whl → 0.28.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.
- {pulp_ansible_client-0.27.1.dist-info → pulp_ansible_client-0.28.0.dist-info}/METADATA +1 -1
- {pulp_ansible_client-0.27.1.dist-info → pulp_ansible_client-0.28.0.dist-info}/RECORD +50 -50
- pulpcore/client/pulp_ansible/__init__.py +1 -1
- pulpcore/client/pulp_ansible/api/content_collection_versions_api.py +45 -45
- pulpcore/client/pulp_ansible/api_client.py +1 -1
- pulpcore/client/pulp_ansible/configuration.py +1 -1
- pulpcore/client/pulp_ansible/models/ansible_ansible_collection_deprecated_response.py +5 -1
- pulpcore/client/pulp_ansible/models/ansible_ansible_repository.py +2 -2
- pulpcore/client/pulp_ansible/models/ansible_ansible_repository_response.py +2 -5
- pulpcore/client/pulp_ansible/models/ansible_collection_remote.py +3 -3
- pulpcore/client/pulp_ansible/models/ansible_collection_remote_response.py +2 -4
- pulpcore/client/pulp_ansible/models/ansible_collection_version_response.py +13 -17
- pulpcore/client/pulp_ansible/models/ansible_collection_version_signature_response.py +5 -1
- pulpcore/client/pulp_ansible/models/ansible_git_remote.py +61 -61
- pulpcore/client/pulp_ansible/models/ansible_git_remote_response.py +49 -51
- pulpcore/client/pulp_ansible/models/ansible_role.py +3 -3
- pulpcore/client/pulp_ansible/models/ansible_role_remote.py +1 -1
- pulpcore/client/pulp_ansible/models/ansible_role_remote_response.py +1 -3
- pulpcore/client/pulp_ansible/models/ansible_role_response.py +13 -9
- pulpcore/client/pulp_ansible/models/collection_metadata_response.py +0 -8
- pulpcore/client/pulp_ansible/models/collection_summary_response.py +1 -5
- pulpcore/client/pulp_ansible/models/collection_version_list_response.py +1 -3
- pulpcore/client/pulp_ansible/models/collection_version_response.py +1 -3
- pulpcore/client/pulp_ansible/models/paginated_collection_response_list_links.py +0 -20
- pulpcore/client/pulp_ansible/models/paginated_galaxy_role_response_list.py +0 -10
- pulpcore/client/pulp_ansible/models/paginated_galaxy_role_version_response_list.py +0 -10
- pulpcore/client/pulp_ansible/models/paginated_repository_version_response_list.py +0 -10
- pulpcore/client/pulp_ansible/models/paginated_tag_response_list.py +0 -10
- pulpcore/client/pulp_ansible/models/paginatedansible_ansible_collection_deprecated_response_list.py +0 -10
- pulpcore/client/pulp_ansible/models/paginatedansible_ansible_distribution_response_list.py +0 -10
- pulpcore/client/pulp_ansible/models/paginatedansible_ansible_namespace_metadata_response_list.py +0 -10
- pulpcore/client/pulp_ansible/models/paginatedansible_ansible_repository_response_list.py +0 -10
- pulpcore/client/pulp_ansible/models/paginatedansible_collection_remote_response_list.py +0 -10
- pulpcore/client/pulp_ansible/models/paginatedansible_collection_response_list.py +0 -10
- pulpcore/client/pulp_ansible/models/paginatedansible_collection_version_mark_response_list.py +0 -10
- pulpcore/client/pulp_ansible/models/paginatedansible_collection_version_response_list.py +0 -10
- pulpcore/client/pulp_ansible/models/paginatedansible_collection_version_signature_response_list.py +0 -10
- pulpcore/client/pulp_ansible/models/paginatedansible_git_remote_response_list.py +0 -10
- pulpcore/client/pulp_ansible/models/paginatedansible_role_remote_response_list.py +0 -10
- pulpcore/client/pulp_ansible/models/paginatedansible_role_response_list.py +0 -10
- pulpcore/client/pulp_ansible/models/patchedansible_ansible_repository.py +2 -2
- pulpcore/client/pulp_ansible/models/patchedansible_collection_remote.py +3 -3
- pulpcore/client/pulp_ansible/models/patchedansible_git_remote.py +61 -61
- pulpcore/client/pulp_ansible/models/patchedansible_role_remote.py +1 -1
- pulpcore/client/pulp_ansible/models/repository.py +2 -2
- pulpcore/client/pulp_ansible/models/repository_response.py +2 -3
- pulpcore/client/pulp_ansible/models/repository_version_response.py +6 -2
- pulpcore/client/pulp_ansible/models/unpaginated_collection_version_response.py +1 -3
- {pulp_ansible_client-0.27.1.dist-info → pulp_ansible_client-0.28.0.dist-info}/WHEEL +0 -0
- {pulp_ansible_client-0.27.1.dist-info → pulp_ansible_client-0.28.0.dist-info}/top_level.txt +0 -0
|
@@ -28,29 +28,29 @@ class PatchedansibleGitRemote(BaseModel):
|
|
|
28
28
|
"""
|
|
29
29
|
A serializer for Git Collection Remotes.
|
|
30
30
|
""" # noqa: E501
|
|
31
|
-
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.")
|
|
32
|
-
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.")
|
|
33
|
-
rate_limit: Optional[StrictInt] = Field(default=None, description="Limits requests per second for each concurrent downloader")
|
|
34
31
|
proxy_password: Optional[Annotated[str, Field(min_length=1, strict=True)]] = Field(default=None, description="The password to authenticate to the proxy. Extra leading and trailing whitespace characters are not trimmed.")
|
|
35
|
-
url: Optional[Annotated[str, Field(min_length=1, strict=True)]] = Field(default=None, description="The URL of an external content source.")
|
|
36
32
|
tls_validation: Optional[StrictBool] = Field(default=None, description="If True, TLS peer validation must be performed.")
|
|
33
|
+
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.")
|
|
34
|
+
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.")
|
|
35
|
+
download_concurrency: Optional[StrictInt] = Field(default=None, description="Total number of simultaneous connections. If not set then the default value will be used.")
|
|
36
|
+
username: Optional[Annotated[str, Field(min_length=1, strict=True)]] = Field(default=None, description="The username to be used for authentication when syncing.")
|
|
37
|
+
proxy_url: Optional[Annotated[str, Field(min_length=1, strict=True)]] = Field(default=None, description="The proxy URL. Format: scheme://host:port")
|
|
37
38
|
client_cert: Optional[Annotated[str, Field(min_length=1, strict=True)]] = Field(default=None, description="A PEM encoded client certificate used for authentication.")
|
|
38
39
|
sock_connect_timeout: Optional[Union[Annotated[float, Field(strict=True, ge=0.0)], Annotated[int, Field(strict=True, ge=0)]]] = Field(default=None, description="aiohttp.ClientTimeout.sock_connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.")
|
|
39
|
-
name: Optional[Annotated[str, Field(min_length=1, strict=True)]] = Field(default=None, description="A unique name for this remote.")
|
|
40
|
-
connect_timeout: Optional[Union[Annotated[float, Field(strict=True, ge=0.0)], Annotated[int, Field(strict=True, ge=0)]]] = Field(default=None, description="aiohttp.ClientTimeout.connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.")
|
|
41
|
-
client_key: Optional[Annotated[str, Field(min_length=1, strict=True)]] = Field(default=None, description="A PEM encoded private key used for authentication.")
|
|
42
|
-
pulp_labels: Optional[Dict[str, Optional[StrictStr]]] = None
|
|
43
|
-
ca_cert: Optional[Annotated[str, Field(min_length=1, strict=True)]] = Field(default=None, description="A PEM encoded CA certificate used to validate the server certificate presented by the remote server.")
|
|
44
40
|
headers: Optional[List[Dict[str, Any]]] = Field(default=None, description="Headers for aiohttp.Clientsession")
|
|
45
|
-
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.")
|
|
46
41
|
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
|
-
sock_read_timeout: Optional[Union[Annotated[float, Field(strict=True, ge=0.0)], Annotated[int, Field(strict=True, ge=0)]]] = Field(default=None, description="aiohttp.ClientTimeout.sock_read (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.")
|
|
48
|
-
proxy_url: Optional[Annotated[str, Field(min_length=1, strict=True)]] = Field(default=None, description="The proxy URL. Format: scheme://host:port")
|
|
49
42
|
proxy_username: Optional[Annotated[str, Field(min_length=1, strict=True)]] = Field(default=None, description="The username to authenticte to the proxy.")
|
|
50
|
-
|
|
43
|
+
rate_limit: Optional[StrictInt] = Field(default=None, description="Limits requests per second for each concurrent downloader")
|
|
44
|
+
pulp_labels: Optional[Dict[str, Optional[StrictStr]]] = None
|
|
45
|
+
connect_timeout: Optional[Union[Annotated[float, Field(strict=True, ge=0.0)], Annotated[int, Field(strict=True, ge=0)]]] = Field(default=None, description="aiohttp.ClientTimeout.connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.")
|
|
46
|
+
client_key: Optional[Annotated[str, Field(min_length=1, strict=True)]] = Field(default=None, description="A PEM encoded private key used for authentication.")
|
|
47
|
+
sock_read_timeout: Optional[Union[Annotated[float, Field(strict=True, ge=0.0)], Annotated[int, Field(strict=True, ge=0)]]] = Field(default=None, description="aiohttp.ClientTimeout.sock_read (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.")
|
|
48
|
+
name: Optional[Annotated[str, Field(min_length=1, strict=True)]] = Field(default=None, description="A unique name for this remote.")
|
|
49
|
+
url: Optional[Annotated[str, Field(min_length=1, strict=True)]] = Field(default=None, description="The URL of an external content source.")
|
|
50
|
+
ca_cert: Optional[Annotated[str, Field(min_length=1, strict=True)]] = Field(default=None, description="A PEM encoded CA certificate used to validate the server certificate presented by the remote server.")
|
|
51
51
|
metadata_only: Optional[StrictBool] = Field(default=None, description="If True, only metadata about the content will be stored in Pulp. Clients will retrieve content from the remote URL.")
|
|
52
52
|
git_ref: Optional[Annotated[str, Field(min_length=1, strict=True)]] = Field(default=None, description="A git ref. e.g.: branch, tag, or commit sha.")
|
|
53
|
-
__properties: ClassVar[List[str]] = ["
|
|
53
|
+
__properties: ClassVar[List[str]] = ["proxy_password", "tls_validation", "password", "total_timeout", "download_concurrency", "username", "proxy_url", "client_cert", "sock_connect_timeout", "headers", "max_retries", "proxy_username", "rate_limit", "pulp_labels", "connect_timeout", "client_key", "sock_read_timeout", "name", "url", "ca_cert", "metadata_only", "git_ref"]
|
|
54
54
|
|
|
55
55
|
model_config = ConfigDict(
|
|
56
56
|
populate_by_name=True,
|
|
@@ -91,25 +91,35 @@ class PatchedansibleGitRemote(BaseModel):
|
|
|
91
91
|
exclude=excluded_fields,
|
|
92
92
|
exclude_none=True,
|
|
93
93
|
)
|
|
94
|
+
# set to None if proxy_password (nullable) is None
|
|
95
|
+
# and model_fields_set contains the field
|
|
96
|
+
if self.proxy_password is None and "proxy_password" in self.model_fields_set:
|
|
97
|
+
_dict['proxy_password'] = None
|
|
98
|
+
|
|
94
99
|
# set to None if password (nullable) is None
|
|
95
100
|
# and model_fields_set contains the field
|
|
96
101
|
if self.password is None and "password" in self.model_fields_set:
|
|
97
102
|
_dict['password'] = None
|
|
98
103
|
|
|
104
|
+
# set to None if total_timeout (nullable) is None
|
|
105
|
+
# and model_fields_set contains the field
|
|
106
|
+
if self.total_timeout is None and "total_timeout" in self.model_fields_set:
|
|
107
|
+
_dict['total_timeout'] = None
|
|
108
|
+
|
|
99
109
|
# set to None if download_concurrency (nullable) is None
|
|
100
110
|
# and model_fields_set contains the field
|
|
101
111
|
if self.download_concurrency is None and "download_concurrency" in self.model_fields_set:
|
|
102
112
|
_dict['download_concurrency'] = None
|
|
103
113
|
|
|
104
|
-
# set to None if
|
|
114
|
+
# set to None if username (nullable) is None
|
|
105
115
|
# and model_fields_set contains the field
|
|
106
|
-
if self.
|
|
107
|
-
_dict['
|
|
116
|
+
if self.username is None and "username" in self.model_fields_set:
|
|
117
|
+
_dict['username'] = None
|
|
108
118
|
|
|
109
|
-
# set to None if
|
|
119
|
+
# set to None if proxy_url (nullable) is None
|
|
110
120
|
# and model_fields_set contains the field
|
|
111
|
-
if self.
|
|
112
|
-
_dict['
|
|
121
|
+
if self.proxy_url is None and "proxy_url" in self.model_fields_set:
|
|
122
|
+
_dict['proxy_url'] = None
|
|
113
123
|
|
|
114
124
|
# set to None if client_cert (nullable) is None
|
|
115
125
|
# and model_fields_set contains the field
|
|
@@ -121,50 +131,40 @@ class PatchedansibleGitRemote(BaseModel):
|
|
|
121
131
|
if self.sock_connect_timeout is None and "sock_connect_timeout" in self.model_fields_set:
|
|
122
132
|
_dict['sock_connect_timeout'] = None
|
|
123
133
|
|
|
124
|
-
# set to None if
|
|
134
|
+
# set to None if max_retries (nullable) is None
|
|
125
135
|
# and model_fields_set contains the field
|
|
126
|
-
if self.
|
|
127
|
-
_dict['
|
|
136
|
+
if self.max_retries is None and "max_retries" in self.model_fields_set:
|
|
137
|
+
_dict['max_retries'] = None
|
|
128
138
|
|
|
129
|
-
# set to None if
|
|
139
|
+
# set to None if proxy_username (nullable) is None
|
|
130
140
|
# and model_fields_set contains the field
|
|
131
|
-
if self.
|
|
132
|
-
_dict['
|
|
141
|
+
if self.proxy_username is None and "proxy_username" in self.model_fields_set:
|
|
142
|
+
_dict['proxy_username'] = None
|
|
133
143
|
|
|
134
|
-
# set to None if
|
|
144
|
+
# set to None if rate_limit (nullable) is None
|
|
135
145
|
# and model_fields_set contains the field
|
|
136
|
-
if self.
|
|
137
|
-
_dict['
|
|
146
|
+
if self.rate_limit is None and "rate_limit" in self.model_fields_set:
|
|
147
|
+
_dict['rate_limit'] = None
|
|
138
148
|
|
|
139
|
-
# set to None if
|
|
149
|
+
# set to None if connect_timeout (nullable) is None
|
|
140
150
|
# and model_fields_set contains the field
|
|
141
|
-
if self.
|
|
142
|
-
_dict['
|
|
151
|
+
if self.connect_timeout is None and "connect_timeout" in self.model_fields_set:
|
|
152
|
+
_dict['connect_timeout'] = None
|
|
143
153
|
|
|
144
|
-
# set to None if
|
|
154
|
+
# set to None if client_key (nullable) is None
|
|
145
155
|
# and model_fields_set contains the field
|
|
146
|
-
if self.
|
|
147
|
-
_dict['
|
|
156
|
+
if self.client_key is None and "client_key" in self.model_fields_set:
|
|
157
|
+
_dict['client_key'] = None
|
|
148
158
|
|
|
149
159
|
# set to None if sock_read_timeout (nullable) is None
|
|
150
160
|
# and model_fields_set contains the field
|
|
151
161
|
if self.sock_read_timeout is None and "sock_read_timeout" in self.model_fields_set:
|
|
152
162
|
_dict['sock_read_timeout'] = None
|
|
153
163
|
|
|
154
|
-
# set to None if
|
|
155
|
-
# and model_fields_set contains the field
|
|
156
|
-
if self.proxy_url is None and "proxy_url" in self.model_fields_set:
|
|
157
|
-
_dict['proxy_url'] = None
|
|
158
|
-
|
|
159
|
-
# set to None if proxy_username (nullable) is None
|
|
160
|
-
# and model_fields_set contains the field
|
|
161
|
-
if self.proxy_username is None and "proxy_username" in self.model_fields_set:
|
|
162
|
-
_dict['proxy_username'] = None
|
|
163
|
-
|
|
164
|
-
# set to None if username (nullable) is None
|
|
164
|
+
# set to None if ca_cert (nullable) is None
|
|
165
165
|
# and model_fields_set contains the field
|
|
166
|
-
if self.
|
|
167
|
-
_dict['
|
|
166
|
+
if self.ca_cert is None and "ca_cert" in self.model_fields_set:
|
|
167
|
+
_dict['ca_cert'] = None
|
|
168
168
|
|
|
169
169
|
return _dict
|
|
170
170
|
|
|
@@ -178,26 +178,26 @@ class PatchedansibleGitRemote(BaseModel):
|
|
|
178
178
|
return cls.model_validate(obj)
|
|
179
179
|
|
|
180
180
|
_obj = cls.model_validate({
|
|
181
|
-
"password": obj.get("password"),
|
|
182
|
-
"download_concurrency": obj.get("download_concurrency"),
|
|
183
|
-
"rate_limit": obj.get("rate_limit"),
|
|
184
181
|
"proxy_password": obj.get("proxy_password"),
|
|
185
|
-
"url": obj.get("url"),
|
|
186
182
|
"tls_validation": obj.get("tls_validation"),
|
|
183
|
+
"password": obj.get("password"),
|
|
184
|
+
"total_timeout": obj.get("total_timeout"),
|
|
185
|
+
"download_concurrency": obj.get("download_concurrency"),
|
|
186
|
+
"username": obj.get("username"),
|
|
187
|
+
"proxy_url": obj.get("proxy_url"),
|
|
187
188
|
"client_cert": obj.get("client_cert"),
|
|
188
189
|
"sock_connect_timeout": obj.get("sock_connect_timeout"),
|
|
189
|
-
"name": obj.get("name"),
|
|
190
|
-
"connect_timeout": obj.get("connect_timeout"),
|
|
191
|
-
"client_key": obj.get("client_key"),
|
|
192
|
-
"pulp_labels": obj.get("pulp_labels"),
|
|
193
|
-
"ca_cert": obj.get("ca_cert"),
|
|
194
190
|
"headers": obj.get("headers"),
|
|
195
|
-
"total_timeout": obj.get("total_timeout"),
|
|
196
191
|
"max_retries": obj.get("max_retries"),
|
|
197
|
-
"sock_read_timeout": obj.get("sock_read_timeout"),
|
|
198
|
-
"proxy_url": obj.get("proxy_url"),
|
|
199
192
|
"proxy_username": obj.get("proxy_username"),
|
|
200
|
-
"
|
|
193
|
+
"rate_limit": obj.get("rate_limit"),
|
|
194
|
+
"pulp_labels": obj.get("pulp_labels"),
|
|
195
|
+
"connect_timeout": obj.get("connect_timeout"),
|
|
196
|
+
"client_key": obj.get("client_key"),
|
|
197
|
+
"sock_read_timeout": obj.get("sock_read_timeout"),
|
|
198
|
+
"name": obj.get("name"),
|
|
199
|
+
"url": obj.get("url"),
|
|
200
|
+
"ca_cert": obj.get("ca_cert"),
|
|
201
201
|
"metadata_only": obj.get("metadata_only"),
|
|
202
202
|
"git_ref": obj.get("git_ref")
|
|
203
203
|
})
|
|
@@ -41,7 +41,7 @@ class PatchedansibleRoleRemote(BaseModel):
|
|
|
41
41
|
username: Optional[Annotated[str, Field(min_length=1, strict=True)]] = Field(default=None, description="The username to be used for authentication when syncing.")
|
|
42
42
|
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.")
|
|
43
43
|
pulp_labels: Optional[Dict[str, Optional[StrictStr]]] = None
|
|
44
|
-
download_concurrency: Optional[
|
|
44
|
+
download_concurrency: Optional[StrictInt] = Field(default=None, description="Total number of simultaneous connections. If not set then the default value will be used.")
|
|
45
45
|
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.")
|
|
46
46
|
policy: Optional[PolicyEnum] = Field(default=None, description="The policy to use when downloading content. * `immediate` - When syncing, download all metadata and content now.")
|
|
47
47
|
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.")
|
|
@@ -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 Repository(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[
|
|
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 RepositoryResponse(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[
|
|
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,7 +37,8 @@ class RepositoryVersionResponse(BaseModel):
|
|
|
37
37
|
repository: Optional[StrictStr] = None
|
|
38
38
|
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
39
|
content_summary: Optional[ContentSummaryResponse] = Field(default=None, description="Various count summaries of the content in the version and the HREF to view them.")
|
|
40
|
-
|
|
40
|
+
vuln_report: Optional[StrictStr] = None
|
|
41
|
+
__properties: ClassVar[List[str]] = ["pulp_href", "prn", "pulp_created", "pulp_last_updated", "number", "repository", "base_version", "content_summary", "vuln_report"]
|
|
41
42
|
|
|
42
43
|
model_config = ConfigDict(
|
|
43
44
|
populate_by_name=True,
|
|
@@ -76,6 +77,7 @@ class RepositoryVersionResponse(BaseModel):
|
|
|
76
77
|
* OpenAPI `readOnly` fields are excluded.
|
|
77
78
|
* OpenAPI `readOnly` fields are excluded.
|
|
78
79
|
* OpenAPI `readOnly` fields are excluded.
|
|
80
|
+
* OpenAPI `readOnly` fields are excluded.
|
|
79
81
|
"""
|
|
80
82
|
excluded_fields: Set[str] = set([
|
|
81
83
|
"pulp_href",
|
|
@@ -85,6 +87,7 @@ class RepositoryVersionResponse(BaseModel):
|
|
|
85
87
|
"number",
|
|
86
88
|
"repository",
|
|
87
89
|
"content_summary",
|
|
90
|
+
"vuln_report",
|
|
88
91
|
])
|
|
89
92
|
|
|
90
93
|
_dict = self.model_dump(
|
|
@@ -114,7 +117,8 @@ class RepositoryVersionResponse(BaseModel):
|
|
|
114
117
|
"number": obj.get("number"),
|
|
115
118
|
"repository": obj.get("repository"),
|
|
116
119
|
"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
|
|
120
|
+
"content_summary": ContentSummaryResponse.from_dict(obj["content_summary"]) if obj.get("content_summary") is not None else None,
|
|
121
|
+
"vuln_report": obj.get("vuln_report")
|
|
118
122
|
})
|
|
119
123
|
return _obj
|
|
120
124
|
|
|
@@ -38,7 +38,7 @@ class UnpaginatedCollectionVersionResponse(BaseModel):
|
|
|
38
38
|
href: Optional[StrictStr] = Field(default=None, description="Get href.")
|
|
39
39
|
created_at: datetime
|
|
40
40
|
updated_at: datetime
|
|
41
|
-
requires_ansible: Optional[
|
|
41
|
+
requires_ansible: Optional[StrictStr] = None
|
|
42
42
|
marks: Optional[List[StrictStr]] = Field(default=None, description="Get a list of mark values filtering only those in the current repo.")
|
|
43
43
|
artifact: Optional[ArtifactRefResponse] = None
|
|
44
44
|
collection: Optional[CollectionRefResponse] = None
|
|
@@ -90,11 +90,9 @@ class UnpaginatedCollectionVersionResponse(BaseModel):
|
|
|
90
90
|
* OpenAPI `readOnly` fields are excluded.
|
|
91
91
|
* OpenAPI `readOnly` fields are excluded.
|
|
92
92
|
* OpenAPI `readOnly` fields are excluded.
|
|
93
|
-
* OpenAPI `readOnly` fields are excluded.
|
|
94
93
|
"""
|
|
95
94
|
excluded_fields: Set[str] = set([
|
|
96
95
|
"href",
|
|
97
|
-
"marks",
|
|
98
96
|
"artifact",
|
|
99
97
|
"collection",
|
|
100
98
|
"download_url",
|
|
File without changes
|
|
File without changes
|