pulp-ansible-client 0.28.0__py3-none-any.whl → 0.28.2__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.28.2.dist-info/METADATA +437 -0
- {pulp_ansible_client-0.28.0.dist-info → pulp_ansible_client-0.28.2.dist-info}/RECORD +107 -107
- {pulp_ansible_client-0.28.0.dist-info → pulp_ansible_client-0.28.2.dist-info}/WHEEL +1 -1
- pulpcore/client/pulp_ansible/__init__.py +323 -160
- pulpcore/client/pulp_ansible/api/content_collection_versions_api.py +60 -60
- pulpcore/client/pulp_ansible/api/distributions_ansible_api.py +16 -10
- pulpcore/client/pulp_ansible/api/remotes_collection_api.py +16 -10
- pulpcore/client/pulp_ansible/api/remotes_git_api.py +16 -10
- pulpcore/client/pulp_ansible/api/remotes_role_api.py +16 -10
- pulpcore/client/pulp_ansible/api/repositories_ansible_api.py +16 -10
- pulpcore/client/pulp_ansible/api_client.py +6 -2
- pulpcore/client/pulp_ansible/configuration.py +10 -3
- pulpcore/client/pulp_ansible/exceptions.py +17 -0
- pulpcore/client/pulp_ansible/models/ansible_ansible_collection_deprecated.py +1 -6
- pulpcore/client/pulp_ansible/models/ansible_ansible_collection_deprecated_response.py +1 -10
- pulpcore/client/pulp_ansible/models/ansible_ansible_distribution.py +1 -8
- pulpcore/client/pulp_ansible/models/ansible_ansible_distribution_response.py +1 -11
- pulpcore/client/pulp_ansible/models/ansible_ansible_namespace_metadata.py +1 -9
- pulpcore/client/pulp_ansible/models/ansible_ansible_namespace_metadata_response.py +1 -12
- pulpcore/client/pulp_ansible/models/ansible_ansible_repository.py +1 -10
- pulpcore/client/pulp_ansible/models/ansible_ansible_repository_response.py +1 -17
- pulpcore/client/pulp_ansible/models/ansible_collection_remote.py +1 -28
- pulpcore/client/pulp_ansible/models/ansible_collection_remote_response.py +1 -28
- pulpcore/client/pulp_ansible/models/ansible_collection_remote_response_hidden_fields_inner.py +1 -4
- pulpcore/client/pulp_ansible/models/ansible_collection_response.py +1 -4
- pulpcore/client/pulp_ansible/models/ansible_collection_version_mark.py +1 -4
- pulpcore/client/pulp_ansible/models/ansible_collection_version_mark_response.py +1 -6
- pulpcore/client/pulp_ansible/models/ansible_collection_version_response.py +7 -39
- pulpcore/client/pulp_ansible/models/ansible_collection_version_signature_response.py +1 -11
- pulpcore/client/pulp_ansible/models/ansible_git_remote.py +55 -78
- pulpcore/client/pulp_ansible/models/ansible_git_remote_response.py +40 -63
- pulpcore/client/pulp_ansible/models/ansible_repository_mark.py +1 -4
- pulpcore/client/pulp_ansible/models/ansible_repository_rebuild.py +1 -5
- pulpcore/client/pulp_ansible/models/ansible_repository_signature.py +1 -4
- pulpcore/client/pulp_ansible/models/ansible_repository_sync_url.py +1 -5
- pulpcore/client/pulp_ansible/models/ansible_role.py +4 -11
- pulpcore/client/pulp_ansible/models/ansible_role_remote.py +1 -23
- pulpcore/client/pulp_ansible/models/ansible_role_remote_response.py +1 -23
- pulpcore/client/pulp_ansible/models/ansible_role_response.py +7 -18
- pulpcore/client/pulp_ansible/models/artifact_ref_response.py +1 -5
- pulpcore/client/pulp_ansible/models/async_operation_response.py +1 -3
- pulpcore/client/pulp_ansible/models/client_configuration_response.py +1 -3
- pulpcore/client/pulp_ansible/models/collection_import_detail_response.py +1 -10
- pulpcore/client/pulp_ansible/models/collection_metadata_response.py +1 -12
- pulpcore/client/pulp_ansible/models/collection_namespace_response.py +1 -4
- pulpcore/client/pulp_ansible/models/collection_ref_response.py +1 -5
- pulpcore/client/pulp_ansible/models/collection_response.py +1 -11
- pulpcore/client/pulp_ansible/models/collection_summary_response.py +1 -12
- pulpcore/client/pulp_ansible/models/collection_summary_response_tags_inner.py +1 -3
- pulpcore/client/pulp_ansible/models/collection_version_copy_move.py +1 -5
- pulpcore/client/pulp_ansible/models/collection_version_docs_response.py +1 -3
- pulpcore/client/pulp_ansible/models/collection_version_list_response.py +1 -8
- pulpcore/client/pulp_ansible/models/collection_version_response.py +1 -19
- pulpcore/client/pulp_ansible/models/collection_version_search_list.py +1 -7
- pulpcore/client/pulp_ansible/models/collection_version_search_list_response.py +1 -9
- pulpcore/client/pulp_ansible/models/collection_version_signature_response.py +1 -6
- pulpcore/client/pulp_ansible/models/content_summary_response.py +1 -5
- pulpcore/client/pulp_ansible/models/copy.py +1 -3
- pulpcore/client/pulp_ansible/models/galaxy_role_response.py +1 -5
- pulpcore/client/pulp_ansible/models/galaxy_role_version_response.py +1 -4
- pulpcore/client/pulp_ansible/models/my_permissions_response.py +1 -3
- pulpcore/client/pulp_ansible/models/namespace_link.py +1 -4
- pulpcore/client/pulp_ansible/models/namespace_link_response.py +1 -4
- pulpcore/client/pulp_ansible/models/nested_role.py +1 -5
- pulpcore/client/pulp_ansible/models/nested_role_response.py +1 -5
- pulpcore/client/pulp_ansible/models/object_roles_response.py +1 -3
- pulpcore/client/pulp_ansible/models/paginated_collection_response_list.py +1 -5
- pulpcore/client/pulp_ansible/models/paginated_collection_response_list_links.py +1 -6
- pulpcore/client/pulp_ansible/models/paginated_collection_response_list_meta.py +1 -3
- pulpcore/client/pulp_ansible/models/paginated_collection_version_list_response_list.py +1 -5
- pulpcore/client/pulp_ansible/models/paginated_collection_version_search_list_response_list.py +1 -5
- pulpcore/client/pulp_ansible/models/paginated_galaxy_role_response_list.py +1 -6
- pulpcore/client/pulp_ansible/models/paginated_galaxy_role_version_response_list.py +1 -6
- pulpcore/client/pulp_ansible/models/paginated_repository_version_response_list.py +1 -6
- pulpcore/client/pulp_ansible/models/paginated_tag_response_list.py +1 -6
- pulpcore/client/pulp_ansible/models/paginatedansible_ansible_collection_deprecated_response_list.py +1 -6
- pulpcore/client/pulp_ansible/models/paginatedansible_ansible_distribution_response_list.py +1 -6
- pulpcore/client/pulp_ansible/models/paginatedansible_ansible_namespace_metadata_response_list.py +1 -6
- pulpcore/client/pulp_ansible/models/paginatedansible_ansible_repository_response_list.py +1 -6
- pulpcore/client/pulp_ansible/models/paginatedansible_collection_remote_response_list.py +1 -6
- pulpcore/client/pulp_ansible/models/paginatedansible_collection_response_list.py +1 -6
- pulpcore/client/pulp_ansible/models/paginatedansible_collection_version_mark_response_list.py +1 -6
- pulpcore/client/pulp_ansible/models/paginatedansible_collection_version_response_list.py +1 -6
- pulpcore/client/pulp_ansible/models/paginatedansible_collection_version_signature_response_list.py +1 -6
- pulpcore/client/pulp_ansible/models/paginatedansible_git_remote_response_list.py +1 -6
- pulpcore/client/pulp_ansible/models/paginatedansible_role_remote_response_list.py +1 -6
- pulpcore/client/pulp_ansible/models/paginatedansible_role_response_list.py +1 -6
- pulpcore/client/pulp_ansible/models/patched_collection.py +1 -3
- pulpcore/client/pulp_ansible/models/patchedansible_ansible_distribution.py +1 -8
- pulpcore/client/pulp_ansible/models/patchedansible_ansible_repository.py +1 -10
- pulpcore/client/pulp_ansible/models/patchedansible_collection_remote.py +1 -28
- pulpcore/client/pulp_ansible/models/patchedansible_git_remote.py +55 -78
- pulpcore/client/pulp_ansible/models/patchedansible_role_remote.py +1 -23
- pulpcore/client/pulp_ansible/models/repair.py +1 -3
- pulpcore/client/pulp_ansible/models/repo_metadata_response.py +1 -3
- pulpcore/client/pulp_ansible/models/repository.py +1 -7
- pulpcore/client/pulp_ansible/models/repository_add_remove_content.py +1 -5
- pulpcore/client/pulp_ansible/models/repository_response.py +1 -13
- pulpcore/client/pulp_ansible/models/repository_version_response.py +1 -11
- pulpcore/client/pulp_ansible/models/set_label.py +1 -4
- pulpcore/client/pulp_ansible/models/set_label_response.py +1 -4
- pulpcore/client/pulp_ansible/models/tag_response.py +1 -4
- pulpcore/client/pulp_ansible/models/unpaginated_collection_version_response.py +1 -17
- pulpcore/client/pulp_ansible/models/unset_label.py +1 -3
- pulpcore/client/pulp_ansible/models/unset_label_response.py +1 -4
- pulpcore/client/pulp_ansible/rest.py +1 -0
- pulp_ansible_client-0.28.0.dist-info/METADATA +0 -17
- {pulp_ansible_client-0.28.0.dist-info → pulp_ansible_client-0.28.2.dist-info}/top_level.txt +0 -0
|
@@ -31,12 +31,12 @@ class AnsibleCollectionVersionResponse(BaseModel):
|
|
|
31
31
|
A serializer for CollectionVersion Content.
|
|
32
32
|
""" # noqa: E501
|
|
33
33
|
prn: Optional[StrictStr] = Field(default=None, description="The Pulp Resource Name (PRN).")
|
|
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
34
|
pulp_href: Optional[StrictStr] = None
|
|
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
35
|
artifact: Optional[StrictStr] = Field(default=None, description="Artifact file representing the physical content")
|
|
38
|
-
pulp_created: Optional[datetime] = Field(default=None, description="Timestamp of creation.")
|
|
39
36
|
vuln_report: Optional[StrictStr] = None
|
|
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
|
+
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.")
|
|
39
|
+
pulp_created: Optional[datetime] = Field(default=None, description="Timestamp of creation.")
|
|
40
40
|
sha256: Optional[StrictStr] = Field(default=None, description="The SHA-256 checksum if available.")
|
|
41
41
|
md5: Optional[StrictStr] = Field(default=None, description="The MD5 checksum if available.")
|
|
42
42
|
sha1: Optional[StrictStr] = Field(default=None, description="The SHA-1 checksum if available.")
|
|
@@ -61,7 +61,7 @@ class AnsibleCollectionVersionResponse(BaseModel):
|
|
|
61
61
|
tags: Optional[List[CollectionSummaryResponseTagsInner]] = None
|
|
62
62
|
version: Optional[Annotated[str, Field(strict=True, max_length=128)]] = Field(default=None, description="The version of the collection.")
|
|
63
63
|
requires_ansible: Optional[StrictStr] = Field(default=None, description="The version of Ansible required to use the collection. Multiple versions can be separated with a comma.")
|
|
64
|
-
__properties: ClassVar[List[str]] = ["prn", "
|
|
64
|
+
__properties: ClassVar[List[str]] = ["prn", "pulp_href", "artifact", "vuln_report", "pulp_last_updated", "pulp_labels", "pulp_created", "sha256", "md5", "sha1", "sha224", "sha384", "sha512", "id", "authors", "contents", "dependencies", "description", "docs_blob", "manifest", "files", "documentation", "homepage", "issues", "license", "name", "namespace", "origin_repository", "tags", "version", "requires_ansible"]
|
|
65
65
|
|
|
66
66
|
model_config = ConfigDict(
|
|
67
67
|
populate_by_name=True,
|
|
@@ -121,10 +121,10 @@ class AnsibleCollectionVersionResponse(BaseModel):
|
|
|
121
121
|
"""
|
|
122
122
|
excluded_fields: Set[str] = set([
|
|
123
123
|
"prn",
|
|
124
|
-
"pulp_last_updated",
|
|
125
124
|
"pulp_href",
|
|
126
|
-
"pulp_created",
|
|
127
125
|
"vuln_report",
|
|
126
|
+
"pulp_last_updated",
|
|
127
|
+
"pulp_created",
|
|
128
128
|
"sha256",
|
|
129
129
|
"md5",
|
|
130
130
|
"sha1",
|
|
@@ -175,39 +175,7 @@ class AnsibleCollectionVersionResponse(BaseModel):
|
|
|
175
175
|
if not isinstance(obj, dict):
|
|
176
176
|
return cls.model_validate(obj)
|
|
177
177
|
|
|
178
|
-
_obj = cls.model_validate(
|
|
179
|
-
"prn": obj.get("prn"),
|
|
180
|
-
"pulp_last_updated": obj.get("pulp_last_updated"),
|
|
181
|
-
"pulp_href": obj.get("pulp_href"),
|
|
182
|
-
"pulp_labels": obj.get("pulp_labels"),
|
|
183
|
-
"artifact": obj.get("artifact"),
|
|
184
|
-
"pulp_created": obj.get("pulp_created"),
|
|
185
|
-
"vuln_report": obj.get("vuln_report"),
|
|
186
|
-
"sha256": obj.get("sha256"),
|
|
187
|
-
"md5": obj.get("md5"),
|
|
188
|
-
"sha1": obj.get("sha1"),
|
|
189
|
-
"sha224": obj.get("sha224"),
|
|
190
|
-
"sha384": obj.get("sha384"),
|
|
191
|
-
"sha512": obj.get("sha512"),
|
|
192
|
-
"id": obj.get("id"),
|
|
193
|
-
"authors": obj.get("authors"),
|
|
194
|
-
"contents": obj.get("contents"),
|
|
195
|
-
"dependencies": obj.get("dependencies"),
|
|
196
|
-
"description": obj.get("description"),
|
|
197
|
-
"docs_blob": obj.get("docs_blob"),
|
|
198
|
-
"manifest": obj.get("manifest"),
|
|
199
|
-
"files": obj.get("files"),
|
|
200
|
-
"documentation": obj.get("documentation"),
|
|
201
|
-
"homepage": obj.get("homepage"),
|
|
202
|
-
"issues": obj.get("issues"),
|
|
203
|
-
"license": obj.get("license"),
|
|
204
|
-
"name": obj.get("name"),
|
|
205
|
-
"namespace": obj.get("namespace"),
|
|
206
|
-
"origin_repository": obj.get("origin_repository"),
|
|
207
|
-
"tags": [CollectionSummaryResponseTagsInner.from_dict(_item) for _item in obj["tags"]] if obj.get("tags") is not None else None,
|
|
208
|
-
"version": obj.get("version"),
|
|
209
|
-
"requires_ansible": obj.get("requires_ansible")
|
|
210
|
-
})
|
|
178
|
+
_obj = cls.model_validate(obj)
|
|
211
179
|
return _obj
|
|
212
180
|
|
|
213
181
|
|
|
@@ -108,17 +108,7 @@ class AnsibleCollectionVersionSignatureResponse(BaseModel):
|
|
|
108
108
|
if not isinstance(obj, dict):
|
|
109
109
|
return cls.model_validate(obj)
|
|
110
110
|
|
|
111
|
-
_obj = cls.model_validate(
|
|
112
|
-
"pulp_href": obj.get("pulp_href"),
|
|
113
|
-
"prn": obj.get("prn"),
|
|
114
|
-
"pulp_created": obj.get("pulp_created"),
|
|
115
|
-
"pulp_last_updated": obj.get("pulp_last_updated"),
|
|
116
|
-
"pulp_labels": obj.get("pulp_labels"),
|
|
117
|
-
"vuln_report": obj.get("vuln_report"),
|
|
118
|
-
"signed_collection": obj.get("signed_collection"),
|
|
119
|
-
"pubkey_fingerprint": obj.get("pubkey_fingerprint"),
|
|
120
|
-
"signing_service": obj.get("signing_service")
|
|
121
|
-
})
|
|
111
|
+
_obj = cls.model_validate(obj)
|
|
122
112
|
return _obj
|
|
123
113
|
|
|
124
114
|
|
|
@@ -28,29 +28,29 @@ class AnsibleGitRemote(BaseModel):
|
|
|
28
28
|
"""
|
|
29
29
|
A serializer for Git Collection Remotes.
|
|
30
30
|
""" # noqa: E501
|
|
31
|
-
|
|
31
|
+
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.")
|
|
32
|
+
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.")
|
|
33
|
+
rate_limit: Optional[StrictInt] = Field(default=None, description="Limits requests per second for each concurrent downloader")
|
|
34
|
+
proxy_username: Optional[Annotated[str, Field(min_length=1, strict=True)]] = Field(default=None, description="The username to authenticte to the proxy.")
|
|
32
35
|
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
36
|
proxy_url: Optional[Annotated[str, Field(min_length=1, strict=True)]] = Field(default=None, description="The proxy URL. Format: scheme://host:port")
|
|
38
|
-
client_cert: Optional[Annotated[str, Field(min_length=1, strict=True)]] = Field(default=None, description="A PEM encoded client certificate used for authentication.")
|
|
39
37
|
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.")
|
|
38
|
+
client_key: Optional[Annotated[str, Field(min_length=1, strict=True)]] = Field(default=None, description="A PEM encoded private key used for authentication.")
|
|
39
|
+
pulp_labels: Optional[Dict[str, Optional[StrictStr]]] = None
|
|
40
|
+
download_concurrency: Optional[StrictInt] = Field(default=None, description="Total number of simultaneous connections. If not set then the default value will be used.")
|
|
41
|
+
client_cert: Optional[Annotated[str, Field(min_length=1, strict=True)]] = Field(default=None, description="A PEM encoded client certificate used for authentication.")
|
|
42
|
+
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.")
|
|
40
43
|
headers: Optional[List[Dict[str, Any]]] = Field(default=None, description="Headers for aiohttp.Clientsession")
|
|
44
|
+
url: Annotated[str, Field(min_length=1, strict=True)] = Field(description="The URL of an external content source.")
|
|
45
|
+
username: Optional[Annotated[str, Field(min_length=1, strict=True)]] = Field(default=None, description="The username to be used for authentication when syncing.")
|
|
41
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.")
|
|
42
|
-
|
|
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.")
|
|
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.")
|
|
48
48
|
name: Annotated[str, Field(min_length=1, strict=True)] = Field(description="A unique name for this remote.")
|
|
49
|
-
url: Annotated[str, Field(min_length=1, strict=True)] = Field(description="The URL of an external content source.")
|
|
50
49
|
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.")
|
|
50
|
+
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.")
|
|
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]] = ["sock_read_timeout", "connect_timeout", "rate_limit", "proxy_username", "tls_validation", "proxy_url", "sock_connect_timeout", "client_key", "pulp_labels", "download_concurrency", "client_cert", "proxy_password", "headers", "url", "username", "max_retries", "total_timeout", "name", "ca_cert", "password", "metadata_only", "git_ref"]
|
|
54
54
|
|
|
55
55
|
model_config = ConfigDict(
|
|
56
56
|
populate_by_name=True,
|
|
@@ -91,81 +91,81 @@ class AnsibleGitRemote(BaseModel):
|
|
|
91
91
|
exclude=excluded_fields,
|
|
92
92
|
exclude_none=True,
|
|
93
93
|
)
|
|
94
|
-
# set to None if
|
|
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
|
-
|
|
99
|
-
# set to None if password (nullable) is None
|
|
94
|
+
# set to None if sock_read_timeout (nullable) is None
|
|
100
95
|
# and model_fields_set contains the field
|
|
101
|
-
if self.
|
|
102
|
-
_dict['
|
|
96
|
+
if self.sock_read_timeout is None and "sock_read_timeout" in self.model_fields_set:
|
|
97
|
+
_dict['sock_read_timeout'] = None
|
|
103
98
|
|
|
104
|
-
# set to None if
|
|
99
|
+
# set to None if connect_timeout (nullable) is None
|
|
105
100
|
# and model_fields_set contains the field
|
|
106
|
-
if self.
|
|
107
|
-
_dict['
|
|
101
|
+
if self.connect_timeout is None and "connect_timeout" in self.model_fields_set:
|
|
102
|
+
_dict['connect_timeout'] = None
|
|
108
103
|
|
|
109
|
-
# set to None if
|
|
104
|
+
# set to None if rate_limit (nullable) is None
|
|
110
105
|
# and model_fields_set contains the field
|
|
111
|
-
if self.
|
|
112
|
-
_dict['
|
|
106
|
+
if self.rate_limit is None and "rate_limit" in self.model_fields_set:
|
|
107
|
+
_dict['rate_limit'] = None
|
|
113
108
|
|
|
114
|
-
# set to None if
|
|
109
|
+
# set to None if proxy_username (nullable) is None
|
|
115
110
|
# and model_fields_set contains the field
|
|
116
|
-
if self.
|
|
117
|
-
_dict['
|
|
111
|
+
if self.proxy_username is None and "proxy_username" in self.model_fields_set:
|
|
112
|
+
_dict['proxy_username'] = None
|
|
118
113
|
|
|
119
114
|
# set to None if proxy_url (nullable) is None
|
|
120
115
|
# and model_fields_set contains the field
|
|
121
116
|
if self.proxy_url is None and "proxy_url" in self.model_fields_set:
|
|
122
117
|
_dict['proxy_url'] = None
|
|
123
118
|
|
|
124
|
-
# set to None if client_cert (nullable) is None
|
|
125
|
-
# and model_fields_set contains the field
|
|
126
|
-
if self.client_cert is None and "client_cert" in self.model_fields_set:
|
|
127
|
-
_dict['client_cert'] = None
|
|
128
|
-
|
|
129
119
|
# set to None if sock_connect_timeout (nullable) is None
|
|
130
120
|
# and model_fields_set contains the field
|
|
131
121
|
if self.sock_connect_timeout is None and "sock_connect_timeout" in self.model_fields_set:
|
|
132
122
|
_dict['sock_connect_timeout'] = None
|
|
133
123
|
|
|
134
|
-
# set to None if
|
|
124
|
+
# set to None if client_key (nullable) is None
|
|
135
125
|
# and model_fields_set contains the field
|
|
136
|
-
if self.
|
|
137
|
-
_dict['
|
|
126
|
+
if self.client_key is None and "client_key" in self.model_fields_set:
|
|
127
|
+
_dict['client_key'] = None
|
|
138
128
|
|
|
139
|
-
# set to None if
|
|
129
|
+
# set to None if download_concurrency (nullable) is None
|
|
140
130
|
# and model_fields_set contains the field
|
|
141
|
-
if self.
|
|
142
|
-
_dict['
|
|
131
|
+
if self.download_concurrency is None and "download_concurrency" in self.model_fields_set:
|
|
132
|
+
_dict['download_concurrency'] = None
|
|
143
133
|
|
|
144
|
-
# set to None if
|
|
134
|
+
# set to None if client_cert (nullable) is None
|
|
145
135
|
# and model_fields_set contains the field
|
|
146
|
-
if self.
|
|
147
|
-
_dict['
|
|
136
|
+
if self.client_cert is None and "client_cert" in self.model_fields_set:
|
|
137
|
+
_dict['client_cert'] = None
|
|
148
138
|
|
|
149
|
-
# set to None if
|
|
139
|
+
# set to None if proxy_password (nullable) is None
|
|
150
140
|
# and model_fields_set contains the field
|
|
151
|
-
if self.
|
|
152
|
-
_dict['
|
|
141
|
+
if self.proxy_password is None and "proxy_password" in self.model_fields_set:
|
|
142
|
+
_dict['proxy_password'] = None
|
|
153
143
|
|
|
154
|
-
# set to None if
|
|
144
|
+
# set to None if username (nullable) is None
|
|
155
145
|
# and model_fields_set contains the field
|
|
156
|
-
if self.
|
|
157
|
-
_dict['
|
|
146
|
+
if self.username is None and "username" in self.model_fields_set:
|
|
147
|
+
_dict['username'] = None
|
|
158
148
|
|
|
159
|
-
# set to None if
|
|
149
|
+
# set to None if max_retries (nullable) is None
|
|
160
150
|
# and model_fields_set contains the field
|
|
161
|
-
if self.
|
|
162
|
-
_dict['
|
|
151
|
+
if self.max_retries is None and "max_retries" in self.model_fields_set:
|
|
152
|
+
_dict['max_retries'] = None
|
|
153
|
+
|
|
154
|
+
# set to None if total_timeout (nullable) is None
|
|
155
|
+
# and model_fields_set contains the field
|
|
156
|
+
if self.total_timeout is None and "total_timeout" in self.model_fields_set:
|
|
157
|
+
_dict['total_timeout'] = None
|
|
163
158
|
|
|
164
159
|
# set to None if ca_cert (nullable) is None
|
|
165
160
|
# and model_fields_set contains the field
|
|
166
161
|
if self.ca_cert is None and "ca_cert" in self.model_fields_set:
|
|
167
162
|
_dict['ca_cert'] = None
|
|
168
163
|
|
|
164
|
+
# set to None if password (nullable) is None
|
|
165
|
+
# and model_fields_set contains the field
|
|
166
|
+
if self.password is None and "password" in self.model_fields_set:
|
|
167
|
+
_dict['password'] = None
|
|
168
|
+
|
|
169
169
|
return _dict
|
|
170
170
|
|
|
171
171
|
@classmethod
|
|
@@ -177,30 +177,7 @@ class AnsibleGitRemote(BaseModel):
|
|
|
177
177
|
if not isinstance(obj, dict):
|
|
178
178
|
return cls.model_validate(obj)
|
|
179
179
|
|
|
180
|
-
_obj = cls.model_validate(
|
|
181
|
-
"proxy_password": obj.get("proxy_password"),
|
|
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"),
|
|
188
|
-
"client_cert": obj.get("client_cert"),
|
|
189
|
-
"sock_connect_timeout": obj.get("sock_connect_timeout"),
|
|
190
|
-
"headers": obj.get("headers"),
|
|
191
|
-
"max_retries": obj.get("max_retries"),
|
|
192
|
-
"proxy_username": obj.get("proxy_username"),
|
|
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
|
-
"metadata_only": obj.get("metadata_only"),
|
|
202
|
-
"git_ref": obj.get("git_ref")
|
|
203
|
-
})
|
|
180
|
+
_obj = cls.model_validate(obj)
|
|
204
181
|
return _obj
|
|
205
182
|
|
|
206
183
|
|
|
@@ -30,29 +30,29 @@ class AnsibleGitRemoteResponse(BaseModel):
|
|
|
30
30
|
"""
|
|
31
31
|
A serializer for Git Collection Remotes.
|
|
32
32
|
""" # noqa: E501
|
|
33
|
-
|
|
33
|
+
hidden_fields: Optional[List[AnsibleCollectionRemoteResponseHiddenFieldsInner]] = Field(default=None, description="List of hidden (write only) fields")
|
|
34
|
+
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.")
|
|
35
|
+
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.")
|
|
36
|
+
rate_limit: Optional[StrictInt] = Field(default=None, description="Limits requests per second for each concurrent downloader")
|
|
34
37
|
tls_validation: Optional[StrictBool] = Field(default=None, description="If True, TLS peer validation must be performed.")
|
|
35
|
-
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.")
|
|
36
|
-
download_concurrency: Optional[StrictInt] = Field(default=None, description="Total number of simultaneous connections. If not set then the default value will be used.")
|
|
37
38
|
proxy_url: Optional[StrictStr] = Field(default=None, description="The proxy URL. Format: scheme://host:port")
|
|
38
|
-
client_cert: Optional[StrictStr] = Field(default=None, description="A PEM encoded client certificate used for authentication.")
|
|
39
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.")
|
|
40
|
-
pulp_created: Optional[datetime] = Field(default=None, description="Timestamp of creation.")
|
|
41
|
-
hidden_fields: Optional[List[AnsibleCollectionRemoteResponseHiddenFieldsInner]] = Field(default=None, description="List of hidden (write only) fields")
|
|
42
|
-
headers: Optional[List[Dict[str, Any]]] = Field(default=None, description="Headers for aiohttp.Clientsession")
|
|
43
40
|
pulp_last_updated: Optional[datetime] = Field(default=None, description="Timestamp of the most recent update of the remote.")
|
|
44
|
-
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.")
|
|
45
|
-
pulp_href: Optional[StrictStr] = None
|
|
46
|
-
rate_limit: Optional[StrictInt] = Field(default=None, description="Limits requests per second for each concurrent downloader")
|
|
47
41
|
pulp_labels: Optional[Dict[str, Optional[StrictStr]]] = None
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
42
|
+
download_concurrency: Optional[StrictInt] = Field(default=None, description="Total number of simultaneous connections. If not set then the default value will be used.")
|
|
43
|
+
client_cert: Optional[StrictStr] = Field(default=None, description="A PEM encoded client certificate used for authentication.")
|
|
44
|
+
headers: Optional[List[Dict[str, Any]]] = Field(default=None, description="Headers for aiohttp.Clientsession")
|
|
45
|
+
prn: Optional[StrictStr] = Field(default=None, description="The Pulp Resource Name (PRN).")
|
|
46
|
+
pulp_href: Optional[StrictStr] = None
|
|
51
47
|
url: StrictStr = Field(description="The URL of an external content source.")
|
|
48
|
+
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
|
+
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.")
|
|
50
|
+
name: StrictStr = Field(description="A unique name for this remote.")
|
|
51
|
+
pulp_created: Optional[datetime] = Field(default=None, description="Timestamp of creation.")
|
|
52
52
|
ca_cert: Optional[StrictStr] = Field(default=None, description="A PEM encoded CA certificate used to validate the server certificate presented by the remote server.")
|
|
53
53
|
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.")
|
|
54
54
|
git_ref: Optional[StrictStr] = Field(default=None, description="A git ref. e.g.: branch, tag, or commit sha.")
|
|
55
|
-
__properties: ClassVar[List[str]] = ["
|
|
55
|
+
__properties: ClassVar[List[str]] = ["hidden_fields", "sock_read_timeout", "connect_timeout", "rate_limit", "tls_validation", "proxy_url", "sock_connect_timeout", "pulp_last_updated", "pulp_labels", "download_concurrency", "client_cert", "headers", "prn", "pulp_href", "url", "max_retries", "total_timeout", "name", "pulp_created", "ca_cert", "metadata_only", "git_ref"]
|
|
56
56
|
|
|
57
57
|
model_config = ConfigDict(
|
|
58
58
|
populate_by_name=True,
|
|
@@ -90,10 +90,10 @@ class AnsibleGitRemoteResponse(BaseModel):
|
|
|
90
90
|
* OpenAPI `readOnly` fields are excluded.
|
|
91
91
|
"""
|
|
92
92
|
excluded_fields: Set[str] = set([
|
|
93
|
-
"prn",
|
|
94
|
-
"pulp_created",
|
|
95
93
|
"pulp_last_updated",
|
|
94
|
+
"prn",
|
|
96
95
|
"pulp_href",
|
|
96
|
+
"pulp_created",
|
|
97
97
|
])
|
|
98
98
|
|
|
99
99
|
_dict = self.model_dump(
|
|
@@ -108,50 +108,50 @@ class AnsibleGitRemoteResponse(BaseModel):
|
|
|
108
108
|
if _item_hidden_fields:
|
|
109
109
|
_items.append(_item_hidden_fields.to_dict())
|
|
110
110
|
_dict['hidden_fields'] = _items
|
|
111
|
-
# set to None if
|
|
111
|
+
# set to None if sock_read_timeout (nullable) is None
|
|
112
112
|
# and model_fields_set contains the field
|
|
113
|
-
if self.
|
|
114
|
-
_dict['
|
|
113
|
+
if self.sock_read_timeout is None and "sock_read_timeout" in self.model_fields_set:
|
|
114
|
+
_dict['sock_read_timeout'] = None
|
|
115
115
|
|
|
116
|
-
# set to None if
|
|
116
|
+
# set to None if connect_timeout (nullable) is None
|
|
117
117
|
# and model_fields_set contains the field
|
|
118
|
-
if self.
|
|
119
|
-
_dict['
|
|
118
|
+
if self.connect_timeout is None and "connect_timeout" in self.model_fields_set:
|
|
119
|
+
_dict['connect_timeout'] = None
|
|
120
|
+
|
|
121
|
+
# set to None if rate_limit (nullable) is None
|
|
122
|
+
# and model_fields_set contains the field
|
|
123
|
+
if self.rate_limit is None and "rate_limit" in self.model_fields_set:
|
|
124
|
+
_dict['rate_limit'] = None
|
|
120
125
|
|
|
121
126
|
# set to None if proxy_url (nullable) is None
|
|
122
127
|
# and model_fields_set contains the field
|
|
123
128
|
if self.proxy_url is None and "proxy_url" in self.model_fields_set:
|
|
124
129
|
_dict['proxy_url'] = None
|
|
125
130
|
|
|
126
|
-
# set to None if client_cert (nullable) is None
|
|
127
|
-
# and model_fields_set contains the field
|
|
128
|
-
if self.client_cert is None and "client_cert" in self.model_fields_set:
|
|
129
|
-
_dict['client_cert'] = None
|
|
130
|
-
|
|
131
131
|
# set to None if sock_connect_timeout (nullable) is None
|
|
132
132
|
# and model_fields_set contains the field
|
|
133
133
|
if self.sock_connect_timeout is None and "sock_connect_timeout" in self.model_fields_set:
|
|
134
134
|
_dict['sock_connect_timeout'] = None
|
|
135
135
|
|
|
136
|
-
# set to None if
|
|
136
|
+
# set to None if download_concurrency (nullable) is None
|
|
137
137
|
# and model_fields_set contains the field
|
|
138
|
-
if self.
|
|
139
|
-
_dict['
|
|
138
|
+
if self.download_concurrency is None and "download_concurrency" in self.model_fields_set:
|
|
139
|
+
_dict['download_concurrency'] = None
|
|
140
140
|
|
|
141
|
-
# set to None if
|
|
141
|
+
# set to None if client_cert (nullable) is None
|
|
142
142
|
# and model_fields_set contains the field
|
|
143
|
-
if self.
|
|
144
|
-
_dict['
|
|
143
|
+
if self.client_cert is None and "client_cert" in self.model_fields_set:
|
|
144
|
+
_dict['client_cert'] = None
|
|
145
145
|
|
|
146
|
-
# set to None if
|
|
146
|
+
# set to None if max_retries (nullable) is None
|
|
147
147
|
# and model_fields_set contains the field
|
|
148
|
-
if self.
|
|
149
|
-
_dict['
|
|
148
|
+
if self.max_retries is None and "max_retries" in self.model_fields_set:
|
|
149
|
+
_dict['max_retries'] = None
|
|
150
150
|
|
|
151
|
-
# set to None if
|
|
151
|
+
# set to None if total_timeout (nullable) is None
|
|
152
152
|
# and model_fields_set contains the field
|
|
153
|
-
if self.
|
|
154
|
-
_dict['
|
|
153
|
+
if self.total_timeout is None and "total_timeout" in self.model_fields_set:
|
|
154
|
+
_dict['total_timeout'] = None
|
|
155
155
|
|
|
156
156
|
# set to None if ca_cert (nullable) is None
|
|
157
157
|
# and model_fields_set contains the field
|
|
@@ -169,30 +169,7 @@ class AnsibleGitRemoteResponse(BaseModel):
|
|
|
169
169
|
if not isinstance(obj, dict):
|
|
170
170
|
return cls.model_validate(obj)
|
|
171
171
|
|
|
172
|
-
_obj = cls.model_validate(
|
|
173
|
-
"prn": obj.get("prn"),
|
|
174
|
-
"tls_validation": obj.get("tls_validation"),
|
|
175
|
-
"total_timeout": obj.get("total_timeout"),
|
|
176
|
-
"download_concurrency": obj.get("download_concurrency"),
|
|
177
|
-
"proxy_url": obj.get("proxy_url"),
|
|
178
|
-
"client_cert": obj.get("client_cert"),
|
|
179
|
-
"sock_connect_timeout": obj.get("sock_connect_timeout"),
|
|
180
|
-
"pulp_created": obj.get("pulp_created"),
|
|
181
|
-
"hidden_fields": [AnsibleCollectionRemoteResponseHiddenFieldsInner.from_dict(_item) for _item in obj["hidden_fields"]] if obj.get("hidden_fields") is not None else None,
|
|
182
|
-
"headers": obj.get("headers"),
|
|
183
|
-
"pulp_last_updated": obj.get("pulp_last_updated"),
|
|
184
|
-
"max_retries": obj.get("max_retries"),
|
|
185
|
-
"pulp_href": obj.get("pulp_href"),
|
|
186
|
-
"rate_limit": obj.get("rate_limit"),
|
|
187
|
-
"pulp_labels": obj.get("pulp_labels"),
|
|
188
|
-
"connect_timeout": obj.get("connect_timeout"),
|
|
189
|
-
"sock_read_timeout": obj.get("sock_read_timeout"),
|
|
190
|
-
"name": obj.get("name"),
|
|
191
|
-
"url": obj.get("url"),
|
|
192
|
-
"ca_cert": obj.get("ca_cert"),
|
|
193
|
-
"metadata_only": obj.get("metadata_only"),
|
|
194
|
-
"git_ref": obj.get("git_ref")
|
|
195
|
-
})
|
|
172
|
+
_obj = cls.model_validate(obj)
|
|
196
173
|
return _obj
|
|
197
174
|
|
|
198
175
|
|
|
@@ -89,10 +89,7 @@ class AnsibleRepositoryMark(BaseModel):
|
|
|
89
89
|
if not isinstance(obj, dict):
|
|
90
90
|
return cls.model_validate(obj)
|
|
91
91
|
|
|
92
|
-
_obj = cls.model_validate(
|
|
93
|
-
"content_units": obj.get("content_units"),
|
|
94
|
-
"value": obj.get("value")
|
|
95
|
-
})
|
|
92
|
+
_obj = cls.model_validate(obj)
|
|
96
93
|
return _obj
|
|
97
94
|
|
|
98
95
|
|
|
@@ -98,11 +98,7 @@ class AnsibleRepositoryRebuild(BaseModel):
|
|
|
98
98
|
if not isinstance(obj, dict):
|
|
99
99
|
return cls.model_validate(obj)
|
|
100
100
|
|
|
101
|
-
_obj = cls.model_validate(
|
|
102
|
-
"namespace": obj.get("namespace"),
|
|
103
|
-
"name": obj.get("name"),
|
|
104
|
-
"version": obj.get("version")
|
|
105
|
-
})
|
|
101
|
+
_obj = cls.model_validate(obj)
|
|
106
102
|
return _obj
|
|
107
103
|
|
|
108
104
|
|
|
@@ -81,10 +81,7 @@ class AnsibleRepositorySignature(BaseModel):
|
|
|
81
81
|
if not isinstance(obj, dict):
|
|
82
82
|
return cls.model_validate(obj)
|
|
83
83
|
|
|
84
|
-
_obj = cls.model_validate(
|
|
85
|
-
"content_units": obj.get("content_units"),
|
|
86
|
-
"signing_service": obj.get("signing_service")
|
|
87
|
-
})
|
|
84
|
+
_obj = cls.model_validate(obj)
|
|
88
85
|
return _obj
|
|
89
86
|
|
|
90
87
|
|
|
@@ -82,11 +82,7 @@ class AnsibleRepositorySyncURL(BaseModel):
|
|
|
82
82
|
if not isinstance(obj, dict):
|
|
83
83
|
return cls.model_validate(obj)
|
|
84
84
|
|
|
85
|
-
_obj = cls.model_validate(
|
|
86
|
-
"remote": obj.get("remote"),
|
|
87
|
-
"mirror": obj.get("mirror") if obj.get("mirror") is not None else False,
|
|
88
|
-
"optimize": obj.get("optimize") if obj.get("optimize") is not None else True
|
|
89
|
-
})
|
|
85
|
+
_obj = cls.model_validate(obj)
|
|
90
86
|
return _obj
|
|
91
87
|
|
|
92
88
|
|
|
@@ -28,13 +28,13 @@ class AnsibleRole(BaseModel):
|
|
|
28
28
|
"""
|
|
29
29
|
A serializer for Role versions.
|
|
30
30
|
""" # noqa: E501
|
|
31
|
-
repository: Optional[StrictStr] = Field(default=None, description="A URI of a repository the new content unit should be associated with.")
|
|
32
|
-
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.")
|
|
33
31
|
artifact: StrictStr = Field(description="Artifact file representing the physical content")
|
|
32
|
+
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.")
|
|
33
|
+
repository: Optional[StrictStr] = Field(default=None, description="A URI of a repository the new content unit should be associated with.")
|
|
34
34
|
version: Annotated[str, Field(min_length=1, strict=True)]
|
|
35
35
|
name: Annotated[str, Field(min_length=1, strict=True)]
|
|
36
36
|
namespace: Annotated[str, Field(min_length=1, strict=True)]
|
|
37
|
-
__properties: ClassVar[List[str]] = ["
|
|
37
|
+
__properties: ClassVar[List[str]] = ["artifact", "pulp_labels", "repository", "version", "name", "namespace"]
|
|
38
38
|
|
|
39
39
|
model_config = ConfigDict(
|
|
40
40
|
populate_by_name=True,
|
|
@@ -86,14 +86,7 @@ class AnsibleRole(BaseModel):
|
|
|
86
86
|
if not isinstance(obj, dict):
|
|
87
87
|
return cls.model_validate(obj)
|
|
88
88
|
|
|
89
|
-
_obj = cls.model_validate(
|
|
90
|
-
"repository": obj.get("repository"),
|
|
91
|
-
"pulp_labels": obj.get("pulp_labels"),
|
|
92
|
-
"artifact": obj.get("artifact"),
|
|
93
|
-
"version": obj.get("version"),
|
|
94
|
-
"name": obj.get("name"),
|
|
95
|
-
"namespace": obj.get("namespace")
|
|
96
|
-
})
|
|
89
|
+
_obj = cls.model_validate(obj)
|
|
97
90
|
return _obj
|
|
98
91
|
|
|
99
92
|
|
|
@@ -177,29 +177,7 @@ class AnsibleRoleRemote(BaseModel):
|
|
|
177
177
|
if not isinstance(obj, dict):
|
|
178
178
|
return cls.model_validate(obj)
|
|
179
179
|
|
|
180
|
-
_obj = cls.model_validate(
|
|
181
|
-
"name": obj.get("name"),
|
|
182
|
-
"url": obj.get("url"),
|
|
183
|
-
"ca_cert": obj.get("ca_cert"),
|
|
184
|
-
"client_cert": obj.get("client_cert"),
|
|
185
|
-
"client_key": obj.get("client_key"),
|
|
186
|
-
"tls_validation": obj.get("tls_validation"),
|
|
187
|
-
"proxy_url": obj.get("proxy_url"),
|
|
188
|
-
"proxy_username": obj.get("proxy_username"),
|
|
189
|
-
"proxy_password": obj.get("proxy_password"),
|
|
190
|
-
"username": obj.get("username"),
|
|
191
|
-
"password": obj.get("password"),
|
|
192
|
-
"pulp_labels": obj.get("pulp_labels"),
|
|
193
|
-
"download_concurrency": obj.get("download_concurrency"),
|
|
194
|
-
"max_retries": obj.get("max_retries"),
|
|
195
|
-
"policy": obj.get("policy"),
|
|
196
|
-
"total_timeout": obj.get("total_timeout"),
|
|
197
|
-
"connect_timeout": obj.get("connect_timeout"),
|
|
198
|
-
"sock_connect_timeout": obj.get("sock_connect_timeout"),
|
|
199
|
-
"sock_read_timeout": obj.get("sock_read_timeout"),
|
|
200
|
-
"headers": obj.get("headers"),
|
|
201
|
-
"rate_limit": obj.get("rate_limit")
|
|
202
|
-
})
|
|
180
|
+
_obj = cls.model_validate(obj)
|
|
203
181
|
return _obj
|
|
204
182
|
|
|
205
183
|
|
|
@@ -169,29 +169,7 @@ class AnsibleRoleRemoteResponse(BaseModel):
|
|
|
169
169
|
if not isinstance(obj, dict):
|
|
170
170
|
return cls.model_validate(obj)
|
|
171
171
|
|
|
172
|
-
_obj = cls.model_validate(
|
|
173
|
-
"pulp_href": obj.get("pulp_href"),
|
|
174
|
-
"prn": obj.get("prn"),
|
|
175
|
-
"pulp_created": obj.get("pulp_created"),
|
|
176
|
-
"pulp_last_updated": obj.get("pulp_last_updated"),
|
|
177
|
-
"name": obj.get("name"),
|
|
178
|
-
"url": obj.get("url"),
|
|
179
|
-
"ca_cert": obj.get("ca_cert"),
|
|
180
|
-
"client_cert": obj.get("client_cert"),
|
|
181
|
-
"tls_validation": obj.get("tls_validation"),
|
|
182
|
-
"proxy_url": obj.get("proxy_url"),
|
|
183
|
-
"pulp_labels": obj.get("pulp_labels"),
|
|
184
|
-
"download_concurrency": obj.get("download_concurrency"),
|
|
185
|
-
"max_retries": obj.get("max_retries"),
|
|
186
|
-
"policy": obj.get("policy"),
|
|
187
|
-
"total_timeout": obj.get("total_timeout"),
|
|
188
|
-
"connect_timeout": obj.get("connect_timeout"),
|
|
189
|
-
"sock_connect_timeout": obj.get("sock_connect_timeout"),
|
|
190
|
-
"sock_read_timeout": obj.get("sock_read_timeout"),
|
|
191
|
-
"headers": obj.get("headers"),
|
|
192
|
-
"rate_limit": obj.get("rate_limit"),
|
|
193
|
-
"hidden_fields": [AnsibleCollectionRemoteResponseHiddenFieldsInner.from_dict(_item) for _item in obj["hidden_fields"]] if obj.get("hidden_fields") is not None else None
|
|
194
|
-
})
|
|
172
|
+
_obj = cls.model_validate(obj)
|
|
195
173
|
return _obj
|
|
196
174
|
|
|
197
175
|
|