pulp-ansible-client 0.29.2__py3-none-any.whl → 0.29.3__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.29.2.dist-info → pulp_ansible_client-0.29.3.dist-info}/METADATA +4 -2
- {pulp_ansible_client-0.29.2.dist-info → pulp_ansible_client-0.29.3.dist-info}/RECORD +23 -21
- pulpcore/client/pulp_ansible/__init__.py +5 -1
- pulpcore/client/pulp_ansible/api/content_collection_signatures_api.py +16 -1
- pulpcore/client/pulp_ansible/api/content_collection_versions_api.py +31 -16
- pulpcore/client/pulp_ansible/api_client.py +1 -1
- pulpcore/client/pulp_ansible/configuration.py +1 -1
- pulpcore/client/pulp_ansible/models/__init__.py +2 -0
- pulpcore/client/pulp_ansible/models/ansible_collection_remote.py +9 -9
- pulpcore/client/pulp_ansible/models/ansible_collection_remote_response.py +10 -10
- pulpcore/client/pulp_ansible/models/ansible_collection_version_response.py +6 -6
- pulpcore/client/pulp_ansible/models/ansible_git_remote.py +56 -56
- pulpcore/client/pulp_ansible/models/ansible_git_remote_response.py +40 -40
- pulpcore/client/pulp_ansible/models/ansible_role_remote.py +9 -9
- pulpcore/client/pulp_ansible/models/ansible_role_remote_response.py +10 -10
- pulpcore/client/pulp_ansible/models/ansible_role_response.py +6 -6
- pulpcore/client/pulp_ansible/models/patchedansible_collection_remote.py +9 -9
- pulpcore/client/pulp_ansible/models/patchedansible_git_remote.py +56 -56
- pulpcore/client/pulp_ansible/models/patchedansible_role_remote.py +9 -9
- pulpcore/client/pulp_ansible/models/remote_network_config.py +178 -0
- pulpcore/client/pulp_ansible/models/remote_network_config_response.py +148 -0
- {pulp_ansible_client-0.29.2.dist-info → pulp_ansible_client-0.29.3.dist-info}/WHEEL +0 -0
- {pulp_ansible_client-0.29.2.dist-info → pulp_ansible_client-0.29.3.dist-info}/top_level.txt +0 -0
|
@@ -30,13 +30,13 @@ class AnsibleCollectionVersionResponse(BaseModel):
|
|
|
30
30
|
"""
|
|
31
31
|
A serializer for CollectionVersion Content.
|
|
32
32
|
""" # noqa: E501
|
|
33
|
+
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.")
|
|
33
34
|
pulp_created: Optional[datetime] = Field(default=None, description="Timestamp of creation.")
|
|
35
|
+
pulp_href: Optional[StrictStr] = None
|
|
34
36
|
artifact: Optional[StrictStr] = Field(default=None, description="Artifact file representing the physical content")
|
|
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
|
-
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
|
vuln_report: Optional[StrictStr] = None
|
|
38
|
-
pulp_href: Optional[StrictStr] = None
|
|
39
38
|
prn: Optional[StrictStr] = Field(default=None, description="The Pulp Resource Name (PRN).")
|
|
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
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.")
|
|
@@ -57,7 +57,7 @@ class AnsibleCollectionVersionResponse(BaseModel):
|
|
|
57
57
|
tags: Optional[List[CollectionSummaryResponseTagsInner]] = None
|
|
58
58
|
version: Optional[Annotated[str, Field(strict=True, max_length=128)]] = Field(default=None, description="The version of the collection.")
|
|
59
59
|
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.")
|
|
60
|
-
__properties: ClassVar[List[str]] = ["
|
|
60
|
+
__properties: ClassVar[List[str]] = ["pulp_last_updated", "pulp_created", "pulp_href", "artifact", "vuln_report", "prn", "pulp_labels", "sha256", "md5", "sha1", "sha224", "sha384", "sha512", "id", "authors", "dependencies", "description", "documentation", "homepage", "issues", "license", "name", "namespace", "origin_repository", "tags", "version", "requires_ansible"]
|
|
61
61
|
|
|
62
62
|
model_config = ConfigDict(
|
|
63
63
|
populate_by_name=True,
|
|
@@ -113,10 +113,10 @@ class AnsibleCollectionVersionResponse(BaseModel):
|
|
|
113
113
|
* OpenAPI `readOnly` fields are excluded.
|
|
114
114
|
"""
|
|
115
115
|
excluded_fields: Set[str] = set([
|
|
116
|
-
"pulp_created",
|
|
117
116
|
"pulp_last_updated",
|
|
118
|
-
"
|
|
117
|
+
"pulp_created",
|
|
119
118
|
"pulp_href",
|
|
119
|
+
"vuln_report",
|
|
120
120
|
"prn",
|
|
121
121
|
"sha256",
|
|
122
122
|
"md5",
|
|
@@ -28,29 +28,29 @@ class AnsibleGitRemote(BaseModel):
|
|
|
28
28
|
"""
|
|
29
29
|
A serializer for Git Collection Remotes.
|
|
30
30
|
""" # noqa: E501
|
|
31
|
-
|
|
32
|
-
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.")
|
|
33
|
-
download_concurrency: Optional[StrictInt] = Field(default=None, description="Total number of simultaneous connections. If not set then the default value will be used.")
|
|
31
|
+
url: Annotated[str, Field(min_length=1, strict=True)] = Field(description="The URL of an external content source.")
|
|
34
32
|
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.")
|
|
35
|
-
|
|
33
|
+
proxy_url: Optional[Annotated[str, Field(min_length=1, strict=True)]] = Field(default=None, description="The proxy URL. Format: scheme://host:port")
|
|
34
|
+
headers: Optional[List[Dict[str, Any]]] = Field(default=None, description="Headers for aiohttp.Clientsession")
|
|
35
|
+
client_key: Optional[Annotated[str, Field(min_length=1, strict=True)]] = Field(default=None, description="A PEM encoded private key used for authentication.")
|
|
36
|
+
name: Annotated[str, Field(min_length=1, strict=True)] = Field(description="A unique name for this remote.")
|
|
37
|
+
download_concurrency: Optional[StrictInt] = Field(default=None, description="Total number of simultaneous connections. If not set then the default value will be used.")
|
|
36
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
|
+
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.")
|
|
37
40
|
tls_validation: Optional[StrictBool] = Field(default=None, description="If True, TLS peer validation must be performed.")
|
|
41
|
+
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.")
|
|
42
|
+
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.")
|
|
43
|
+
rate_limit: Optional[StrictInt] = Field(default=None, description="Limits requests per second for each concurrent downloader")
|
|
44
|
+
proxy_username: Optional[Annotated[str, Field(min_length=1, strict=True)]] = Field(default=None, description="The username to authenticte to the proxy.")
|
|
38
45
|
username: Optional[Annotated[str, Field(min_length=1, strict=True)]] = Field(default=None, description="The username to be used for authentication when syncing.")
|
|
46
|
+
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.")
|
|
47
|
+
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.")
|
|
48
|
+
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.")
|
|
39
49
|
pulp_labels: Optional[Dict[str, Optional[StrictStr]]] = None
|
|
40
50
|
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
|
-
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.")
|
|
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.")
|
|
43
|
-
proxy_url: Optional[Annotated[str, Field(min_length=1, strict=True)]] = Field(default=None, description="The proxy URL. Format: scheme://host:port")
|
|
44
|
-
proxy_username: Optional[Annotated[str, Field(min_length=1, strict=True)]] = Field(default=None, description="The username to authenticte to the proxy.")
|
|
45
|
-
rate_limit: Optional[StrictInt] = Field(default=None, description="Limits requests per second for each concurrent downloader")
|
|
46
|
-
headers: Optional[List[Dict[str, Any]]] = Field(default=None, description="Headers for aiohttp.Clientsession")
|
|
47
|
-
url: Annotated[str, Field(min_length=1, strict=True)] = Field(description="The URL of an external content source.")
|
|
48
|
-
client_key: Optional[Annotated[str, Field(min_length=1, strict=True)]] = Field(default=None, description="A PEM encoded private key used for authentication.")
|
|
49
|
-
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.")
|
|
50
|
-
name: Annotated[str, Field(min_length=1, strict=True)] = Field(description="A unique name for this remote.")
|
|
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]] = ["url", "max_retries", "proxy_url", "headers", "client_key", "name", "download_concurrency", "client_cert", "total_timeout", "tls_validation", "password", "sock_read_timeout", "rate_limit", "proxy_username", "username", "sock_connect_timeout", "proxy_password", "ca_cert", "pulp_labels", "connect_timeout", "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
|
|
94
|
+
# set to None if max_retries (nullable) is None
|
|
95
95
|
# and model_fields_set contains the field
|
|
96
|
-
if self.
|
|
97
|
-
_dict['
|
|
96
|
+
if self.max_retries is None and "max_retries" in self.model_fields_set:
|
|
97
|
+
_dict['max_retries'] = None
|
|
98
98
|
|
|
99
|
-
# set to None if
|
|
99
|
+
# set to None if proxy_url (nullable) is None
|
|
100
100
|
# and model_fields_set contains the field
|
|
101
|
-
if self.
|
|
102
|
-
_dict['
|
|
101
|
+
if self.proxy_url is None and "proxy_url" in self.model_fields_set:
|
|
102
|
+
_dict['proxy_url'] = None
|
|
103
|
+
|
|
104
|
+
# set to None if client_key (nullable) is None
|
|
105
|
+
# and model_fields_set contains the field
|
|
106
|
+
if self.client_key is None and "client_key" in self.model_fields_set:
|
|
107
|
+
_dict['client_key'] = None
|
|
103
108
|
|
|
104
109
|
# set to None if download_concurrency (nullable) is None
|
|
105
110
|
# and model_fields_set contains the field
|
|
106
111
|
if self.download_concurrency is None and "download_concurrency" in self.model_fields_set:
|
|
107
112
|
_dict['download_concurrency'] = None
|
|
108
113
|
|
|
109
|
-
# set to None if max_retries (nullable) is None
|
|
110
|
-
# and model_fields_set contains the field
|
|
111
|
-
if self.max_retries is None and "max_retries" in self.model_fields_set:
|
|
112
|
-
_dict['max_retries'] = None
|
|
113
|
-
|
|
114
|
-
# set to None if password (nullable) is None
|
|
115
|
-
# and model_fields_set contains the field
|
|
116
|
-
if self.password is None and "password" in self.model_fields_set:
|
|
117
|
-
_dict['password'] = None
|
|
118
|
-
|
|
119
114
|
# set to None if client_cert (nullable) is None
|
|
120
115
|
# and model_fields_set contains the field
|
|
121
116
|
if self.client_cert is None and "client_cert" in self.model_fields_set:
|
|
122
117
|
_dict['client_cert'] = None
|
|
123
118
|
|
|
124
|
-
# set to None if
|
|
125
|
-
# and model_fields_set contains the field
|
|
126
|
-
if self.username is None and "username" in self.model_fields_set:
|
|
127
|
-
_dict['username'] = None
|
|
128
|
-
|
|
129
|
-
# set to None if connect_timeout (nullable) is None
|
|
119
|
+
# set to None if total_timeout (nullable) is None
|
|
130
120
|
# and model_fields_set contains the field
|
|
131
|
-
if self.
|
|
132
|
-
_dict['
|
|
121
|
+
if self.total_timeout is None and "total_timeout" in self.model_fields_set:
|
|
122
|
+
_dict['total_timeout'] = None
|
|
133
123
|
|
|
134
|
-
# set to None if
|
|
124
|
+
# set to None if password (nullable) is None
|
|
135
125
|
# and model_fields_set contains the field
|
|
136
|
-
if self.
|
|
137
|
-
_dict['
|
|
126
|
+
if self.password is None and "password" in self.model_fields_set:
|
|
127
|
+
_dict['password'] = None
|
|
138
128
|
|
|
139
|
-
# set to None if
|
|
129
|
+
# set to None if sock_read_timeout (nullable) is None
|
|
140
130
|
# and model_fields_set contains the field
|
|
141
|
-
if self.
|
|
142
|
-
_dict['
|
|
131
|
+
if self.sock_read_timeout is None and "sock_read_timeout" in self.model_fields_set:
|
|
132
|
+
_dict['sock_read_timeout'] = None
|
|
143
133
|
|
|
144
|
-
# set to None if
|
|
134
|
+
# set to None if rate_limit (nullable) is None
|
|
145
135
|
# and model_fields_set contains the field
|
|
146
|
-
if self.
|
|
147
|
-
_dict['
|
|
136
|
+
if self.rate_limit is None and "rate_limit" in self.model_fields_set:
|
|
137
|
+
_dict['rate_limit'] = None
|
|
148
138
|
|
|
149
139
|
# set to None if proxy_username (nullable) is None
|
|
150
140
|
# and model_fields_set contains the field
|
|
151
141
|
if self.proxy_username is None and "proxy_username" in self.model_fields_set:
|
|
152
142
|
_dict['proxy_username'] = None
|
|
153
143
|
|
|
154
|
-
# set to None if
|
|
155
|
-
# and model_fields_set contains the field
|
|
156
|
-
if self.rate_limit is None and "rate_limit" in self.model_fields_set:
|
|
157
|
-
_dict['rate_limit'] = None
|
|
158
|
-
|
|
159
|
-
# set to None if client_key (nullable) is None
|
|
144
|
+
# set to None if username (nullable) is None
|
|
160
145
|
# and model_fields_set contains the field
|
|
161
|
-
if self.
|
|
162
|
-
_dict['
|
|
146
|
+
if self.username is None and "username" in self.model_fields_set:
|
|
147
|
+
_dict['username'] = None
|
|
163
148
|
|
|
164
149
|
# set to None if sock_connect_timeout (nullable) is None
|
|
165
150
|
# and model_fields_set contains the field
|
|
166
151
|
if self.sock_connect_timeout is None and "sock_connect_timeout" in self.model_fields_set:
|
|
167
152
|
_dict['sock_connect_timeout'] = None
|
|
168
153
|
|
|
154
|
+
# set to None if proxy_password (nullable) is None
|
|
155
|
+
# and model_fields_set contains the field
|
|
156
|
+
if self.proxy_password is None and "proxy_password" in self.model_fields_set:
|
|
157
|
+
_dict['proxy_password'] = None
|
|
158
|
+
|
|
159
|
+
# set to None if ca_cert (nullable) is None
|
|
160
|
+
# and model_fields_set contains the field
|
|
161
|
+
if self.ca_cert is None and "ca_cert" in self.model_fields_set:
|
|
162
|
+
_dict['ca_cert'] = None
|
|
163
|
+
|
|
164
|
+
# set to None if connect_timeout (nullable) is None
|
|
165
|
+
# and model_fields_set contains the field
|
|
166
|
+
if self.connect_timeout is None and "connect_timeout" in self.model_fields_set:
|
|
167
|
+
_dict['connect_timeout'] = None
|
|
168
|
+
|
|
169
169
|
return _dict
|
|
170
170
|
|
|
171
171
|
@classmethod
|
|
@@ -30,29 +30,29 @@ class AnsibleGitRemoteResponse(BaseModel):
|
|
|
30
30
|
"""
|
|
31
31
|
A serializer for Git Collection Remotes.
|
|
32
32
|
""" # noqa: E501
|
|
33
|
-
|
|
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
|
-
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.")
|
|
36
|
-
download_concurrency: Optional[StrictInt] = Field(default=None, description="Total number of simultaneous connections. If not set then the default value will be used.")
|
|
33
|
+
url: StrictStr = Field(description="The URL of an external content source.")
|
|
37
34
|
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.")
|
|
35
|
+
proxy_url: Optional[StrictStr] = Field(default=None, description="The proxy URL. Format: scheme://host:port")
|
|
36
|
+
headers: Optional[List[Dict[str, Any]]] = Field(default=None, description="Headers for aiohttp.Clientsession")
|
|
37
|
+
name: StrictStr = Field(description="A unique name for this remote.")
|
|
38
|
+
download_concurrency: Optional[StrictInt] = Field(default=None, description="Total number of simultaneous connections. If not set then the default value will be used.")
|
|
38
39
|
client_cert: Optional[StrictStr] = Field(default=None, description="A PEM encoded client certificate used for authentication.")
|
|
40
|
+
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.")
|
|
39
41
|
tls_validation: Optional[StrictBool] = Field(default=None, description="If True, TLS peer validation must be performed.")
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
ca_cert: Optional[StrictStr] = Field(default=None, description="A PEM encoded CA certificate used to validate the server certificate presented by the remote server.")
|
|
43
|
-
proxy_url: Optional[StrictStr] = Field(default=None, description="The proxy URL. Format: scheme://host:port")
|
|
44
|
-
prn: Optional[StrictStr] = Field(default=None, description="The Pulp Resource Name (PRN).")
|
|
42
|
+
pulp_href: Optional[StrictStr] = None
|
|
43
|
+
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.")
|
|
45
44
|
rate_limit: Optional[StrictInt] = Field(default=None, description="Limits requests per second for each concurrent downloader")
|
|
46
|
-
headers: Optional[List[Dict[str, Any]]] = Field(default=None, description="Headers for aiohttp.Clientsession")
|
|
47
|
-
pulp_created: Optional[datetime] = Field(default=None, description="Timestamp of creation.")
|
|
48
45
|
pulp_last_updated: Optional[datetime] = Field(default=None, description="Timestamp of the most recent update of the remote.")
|
|
49
|
-
url: StrictStr = Field(description="The URL of an external content source.")
|
|
50
|
-
pulp_href: Optional[StrictStr] = None
|
|
51
46
|
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.")
|
|
52
|
-
|
|
47
|
+
hidden_fields: Optional[List[AnsibleCollectionRemoteResponseHiddenFieldsInner]] = Field(default=None, description="List of hidden (write only) fields")
|
|
48
|
+
pulp_created: Optional[datetime] = Field(default=None, description="Timestamp of creation.")
|
|
49
|
+
ca_cert: Optional[StrictStr] = Field(default=None, description="A PEM encoded CA certificate used to validate the server certificate presented by the remote server.")
|
|
50
|
+
prn: Optional[StrictStr] = Field(default=None, description="The Pulp Resource Name (PRN).")
|
|
51
|
+
pulp_labels: Optional[Dict[str, Optional[StrictStr]]] = None
|
|
52
|
+
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.")
|
|
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]] = ["url", "max_retries", "proxy_url", "headers", "name", "download_concurrency", "client_cert", "total_timeout", "tls_validation", "pulp_href", "sock_read_timeout", "rate_limit", "pulp_last_updated", "sock_connect_timeout", "hidden_fields", "pulp_created", "ca_cert", "prn", "pulp_labels", "connect_timeout", "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
|
-
"pulp_last_updated",
|
|
96
93
|
"pulp_href",
|
|
94
|
+
"pulp_last_updated",
|
|
95
|
+
"pulp_created",
|
|
96
|
+
"prn",
|
|
97
97
|
])
|
|
98
98
|
|
|
99
99
|
_dict = self.model_dump(
|
|
@@ -108,45 +108,35 @@ 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 max_retries (nullable) is None
|
|
112
112
|
# and model_fields_set contains the field
|
|
113
|
-
if self.
|
|
114
|
-
_dict['
|
|
113
|
+
if self.max_retries is None and "max_retries" in self.model_fields_set:
|
|
114
|
+
_dict['max_retries'] = None
|
|
115
115
|
|
|
116
|
-
# set to None if
|
|
116
|
+
# set to None if proxy_url (nullable) is None
|
|
117
117
|
# and model_fields_set contains the field
|
|
118
|
-
if self.
|
|
119
|
-
_dict['
|
|
118
|
+
if self.proxy_url is None and "proxy_url" in self.model_fields_set:
|
|
119
|
+
_dict['proxy_url'] = None
|
|
120
120
|
|
|
121
121
|
# set to None if download_concurrency (nullable) is None
|
|
122
122
|
# and model_fields_set contains the field
|
|
123
123
|
if self.download_concurrency is None and "download_concurrency" in self.model_fields_set:
|
|
124
124
|
_dict['download_concurrency'] = None
|
|
125
125
|
|
|
126
|
-
# set to None if max_retries (nullable) is None
|
|
127
|
-
# and model_fields_set contains the field
|
|
128
|
-
if self.max_retries is None and "max_retries" in self.model_fields_set:
|
|
129
|
-
_dict['max_retries'] = None
|
|
130
|
-
|
|
131
126
|
# set to None if client_cert (nullable) is None
|
|
132
127
|
# and model_fields_set contains the field
|
|
133
128
|
if self.client_cert is None and "client_cert" in self.model_fields_set:
|
|
134
129
|
_dict['client_cert'] = None
|
|
135
130
|
|
|
136
|
-
# set to None if
|
|
137
|
-
# and model_fields_set contains the field
|
|
138
|
-
if self.connect_timeout is None and "connect_timeout" in self.model_fields_set:
|
|
139
|
-
_dict['connect_timeout'] = None
|
|
140
|
-
|
|
141
|
-
# set to None if ca_cert (nullable) is None
|
|
131
|
+
# set to None if total_timeout (nullable) is None
|
|
142
132
|
# and model_fields_set contains the field
|
|
143
|
-
if self.
|
|
144
|
-
_dict['
|
|
133
|
+
if self.total_timeout is None and "total_timeout" in self.model_fields_set:
|
|
134
|
+
_dict['total_timeout'] = None
|
|
145
135
|
|
|
146
|
-
# set to None if
|
|
136
|
+
# set to None if sock_read_timeout (nullable) is None
|
|
147
137
|
# and model_fields_set contains the field
|
|
148
|
-
if self.
|
|
149
|
-
_dict['
|
|
138
|
+
if self.sock_read_timeout is None and "sock_read_timeout" in self.model_fields_set:
|
|
139
|
+
_dict['sock_read_timeout'] = None
|
|
150
140
|
|
|
151
141
|
# set to None if rate_limit (nullable) is None
|
|
152
142
|
# and model_fields_set contains the field
|
|
@@ -158,6 +148,16 @@ class AnsibleGitRemoteResponse(BaseModel):
|
|
|
158
148
|
if self.sock_connect_timeout is None and "sock_connect_timeout" in self.model_fields_set:
|
|
159
149
|
_dict['sock_connect_timeout'] = None
|
|
160
150
|
|
|
151
|
+
# set to None if ca_cert (nullable) is None
|
|
152
|
+
# and model_fields_set contains the field
|
|
153
|
+
if self.ca_cert is None and "ca_cert" in self.model_fields_set:
|
|
154
|
+
_dict['ca_cert'] = None
|
|
155
|
+
|
|
156
|
+
# set to None if connect_timeout (nullable) is None
|
|
157
|
+
# and model_fields_set contains the field
|
|
158
|
+
if self.connect_timeout is None and "connect_timeout" in self.model_fields_set:
|
|
159
|
+
_dict['connect_timeout'] = None
|
|
160
|
+
|
|
161
161
|
return _dict
|
|
162
162
|
|
|
163
163
|
@classmethod
|
|
@@ -31,6 +31,8 @@ class AnsibleRoleRemote(BaseModel):
|
|
|
31
31
|
""" # noqa: E501
|
|
32
32
|
name: Annotated[str, Field(min_length=1, strict=True)] = Field(description="A unique name for this remote.")
|
|
33
33
|
url: Annotated[str, Field(min_length=1, strict=True)] = Field(description="The URL of an external content source.")
|
|
34
|
+
pulp_labels: Optional[Dict[str, Optional[StrictStr]]] = None
|
|
35
|
+
policy: Optional[PolicyEnum] = Field(default=None, description="The policy to use when downloading content. * `immediate` - When syncing, download all metadata and content now.")
|
|
34
36
|
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.")
|
|
35
37
|
client_cert: Optional[Annotated[str, Field(min_length=1, strict=True)]] = Field(default=None, description="A PEM encoded client certificate used for authentication.")
|
|
36
38
|
client_key: Optional[Annotated[str, Field(min_length=1, strict=True)]] = Field(default=None, description="A PEM encoded private key used for authentication.")
|
|
@@ -40,17 +42,15 @@ class AnsibleRoleRemote(BaseModel):
|
|
|
40
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.")
|
|
41
43
|
username: Optional[Annotated[str, Field(min_length=1, strict=True)]] = Field(default=None, description="The username to be used for authentication when syncing.")
|
|
42
44
|
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
|
-
pulp_labels: Optional[Dict[str, Optional[StrictStr]]] = None
|
|
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
|
-
policy: Optional[PolicyEnum] = Field(default=None, description="The policy to use when downloading content. * `immediate` - When syncing, download all metadata and content now.")
|
|
47
46
|
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
47
|
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.")
|
|
49
48
|
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.")
|
|
50
49
|
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.")
|
|
51
50
|
headers: Optional[List[Dict[str, Any]]] = Field(default=None, description="Headers for aiohttp.Clientsession")
|
|
51
|
+
download_concurrency: Optional[StrictInt] = Field(default=None, description="Total number of simultaneous connections. If not set then the default value will be used.")
|
|
52
52
|
rate_limit: Optional[StrictInt] = Field(default=None, description="Limits requests per second for each concurrent downloader")
|
|
53
|
-
__properties: ClassVar[List[str]] = ["name", "url", "ca_cert", "client_cert", "client_key", "tls_validation", "proxy_url", "proxy_username", "proxy_password", "username", "password", "
|
|
53
|
+
__properties: ClassVar[List[str]] = ["name", "url", "pulp_labels", "policy", "ca_cert", "client_cert", "client_key", "tls_validation", "proxy_url", "proxy_username", "proxy_password", "username", "password", "max_retries", "total_timeout", "connect_timeout", "sock_connect_timeout", "sock_read_timeout", "headers", "download_concurrency", "rate_limit"]
|
|
54
54
|
|
|
55
55
|
model_config = ConfigDict(
|
|
56
56
|
populate_by_name=True,
|
|
@@ -131,11 +131,6 @@ class AnsibleRoleRemote(BaseModel):
|
|
|
131
131
|
if self.password is None and "password" in self.model_fields_set:
|
|
132
132
|
_dict['password'] = None
|
|
133
133
|
|
|
134
|
-
# set to None if download_concurrency (nullable) is None
|
|
135
|
-
# and model_fields_set contains the field
|
|
136
|
-
if self.download_concurrency is None and "download_concurrency" in self.model_fields_set:
|
|
137
|
-
_dict['download_concurrency'] = None
|
|
138
|
-
|
|
139
134
|
# set to None if max_retries (nullable) is None
|
|
140
135
|
# and model_fields_set contains the field
|
|
141
136
|
if self.max_retries is None and "max_retries" in self.model_fields_set:
|
|
@@ -161,6 +156,11 @@ class AnsibleRoleRemote(BaseModel):
|
|
|
161
156
|
if self.sock_read_timeout is None and "sock_read_timeout" in self.model_fields_set:
|
|
162
157
|
_dict['sock_read_timeout'] = None
|
|
163
158
|
|
|
159
|
+
# set to None if download_concurrency (nullable) is None
|
|
160
|
+
# and model_fields_set contains the field
|
|
161
|
+
if self.download_concurrency is None and "download_concurrency" in self.model_fields_set:
|
|
162
|
+
_dict['download_concurrency'] = None
|
|
163
|
+
|
|
164
164
|
# set to None if rate_limit (nullable) is None
|
|
165
165
|
# and model_fields_set contains the field
|
|
166
166
|
if self.rate_limit is None and "rate_limit" in self.model_fields_set:
|
|
@@ -37,22 +37,22 @@ class AnsibleRoleRemoteResponse(BaseModel):
|
|
|
37
37
|
pulp_last_updated: Optional[datetime] = Field(default=None, description="Timestamp of the most recent update of the remote.")
|
|
38
38
|
name: StrictStr = Field(description="A unique name for this remote.")
|
|
39
39
|
url: StrictStr = Field(description="The URL of an external content source.")
|
|
40
|
+
pulp_labels: Optional[Dict[str, Optional[StrictStr]]] = None
|
|
41
|
+
policy: Optional[PolicyEnum] = Field(default=None, description="The policy to use when downloading content. * `immediate` - When syncing, download all metadata and content now.")
|
|
42
|
+
hidden_fields: Optional[List[AnsibleCollectionRemoteResponseHiddenFieldsInner]] = Field(default=None, description="List of hidden (write only) fields")
|
|
40
43
|
ca_cert: Optional[StrictStr] = Field(default=None, description="A PEM encoded CA certificate used to validate the server certificate presented by the remote server.")
|
|
41
44
|
client_cert: Optional[StrictStr] = Field(default=None, description="A PEM encoded client certificate used for authentication.")
|
|
42
45
|
tls_validation: Optional[StrictBool] = Field(default=None, description="If True, TLS peer validation must be performed.")
|
|
43
46
|
proxy_url: Optional[StrictStr] = Field(default=None, description="The proxy URL. Format: scheme://host:port")
|
|
44
|
-
pulp_labels: Optional[Dict[str, Optional[StrictStr]]] = None
|
|
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
47
|
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
|
-
policy: Optional[PolicyEnum] = Field(default=None, description="The policy to use when downloading content. * `immediate` - When syncing, download all metadata and content now.")
|
|
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.")
|
|
49
49
|
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.")
|
|
50
50
|
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.")
|
|
51
51
|
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.")
|
|
52
52
|
headers: Optional[List[Dict[str, Any]]] = Field(default=None, description="Headers for aiohttp.Clientsession")
|
|
53
|
+
download_concurrency: Optional[StrictInt] = Field(default=None, description="Total number of simultaneous connections. If not set then the default value will be used.")
|
|
53
54
|
rate_limit: Optional[StrictInt] = Field(default=None, description="Limits requests per second for each concurrent downloader")
|
|
54
|
-
|
|
55
|
-
__properties: ClassVar[List[str]] = ["pulp_href", "prn", "pulp_created", "pulp_last_updated", "name", "url", "ca_cert", "client_cert", "tls_validation", "proxy_url", "pulp_labels", "download_concurrency", "max_retries", "policy", "total_timeout", "connect_timeout", "sock_connect_timeout", "sock_read_timeout", "headers", "rate_limit", "hidden_fields"]
|
|
55
|
+
__properties: ClassVar[List[str]] = ["pulp_href", "prn", "pulp_created", "pulp_last_updated", "name", "url", "pulp_labels", "policy", "hidden_fields", "ca_cert", "client_cert", "tls_validation", "proxy_url", "max_retries", "total_timeout", "connect_timeout", "sock_connect_timeout", "sock_read_timeout", "headers", "download_concurrency", "rate_limit"]
|
|
56
56
|
|
|
57
57
|
model_config = ConfigDict(
|
|
58
58
|
populate_by_name=True,
|
|
@@ -123,11 +123,6 @@ class AnsibleRoleRemoteResponse(BaseModel):
|
|
|
123
123
|
if self.proxy_url is None and "proxy_url" in self.model_fields_set:
|
|
124
124
|
_dict['proxy_url'] = None
|
|
125
125
|
|
|
126
|
-
# set to None if download_concurrency (nullable) is None
|
|
127
|
-
# and model_fields_set contains the field
|
|
128
|
-
if self.download_concurrency is None and "download_concurrency" in self.model_fields_set:
|
|
129
|
-
_dict['download_concurrency'] = None
|
|
130
|
-
|
|
131
126
|
# set to None if max_retries (nullable) is None
|
|
132
127
|
# and model_fields_set contains the field
|
|
133
128
|
if self.max_retries is None and "max_retries" in self.model_fields_set:
|
|
@@ -153,6 +148,11 @@ class AnsibleRoleRemoteResponse(BaseModel):
|
|
|
153
148
|
if self.sock_read_timeout is None and "sock_read_timeout" in self.model_fields_set:
|
|
154
149
|
_dict['sock_read_timeout'] = None
|
|
155
150
|
|
|
151
|
+
# set to None if download_concurrency (nullable) is None
|
|
152
|
+
# and model_fields_set contains the field
|
|
153
|
+
if self.download_concurrency is None and "download_concurrency" in self.model_fields_set:
|
|
154
|
+
_dict['download_concurrency'] = None
|
|
155
|
+
|
|
156
156
|
# set to None if rate_limit (nullable) is None
|
|
157
157
|
# and model_fields_set contains the field
|
|
158
158
|
if self.rate_limit is None and "rate_limit" in self.model_fields_set:
|
|
@@ -28,17 +28,17 @@ class AnsibleRoleResponse(BaseModel):
|
|
|
28
28
|
"""
|
|
29
29
|
A serializer for Role versions.
|
|
30
30
|
""" # noqa: E501
|
|
31
|
+
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.")
|
|
31
32
|
pulp_created: Optional[datetime] = Field(default=None, description="Timestamp of creation.")
|
|
33
|
+
pulp_href: Optional[StrictStr] = None
|
|
32
34
|
artifact: StrictStr = Field(description="Artifact file representing the physical content")
|
|
33
|
-
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.")
|
|
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
|
vuln_report: Optional[StrictStr] = None
|
|
36
|
-
pulp_href: Optional[StrictStr] = None
|
|
37
36
|
prn: Optional[StrictStr] = Field(default=None, description="The Pulp Resource Name (PRN).")
|
|
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
38
|
version: StrictStr
|
|
39
39
|
name: StrictStr
|
|
40
40
|
namespace: StrictStr
|
|
41
|
-
__properties: ClassVar[List[str]] = ["
|
|
41
|
+
__properties: ClassVar[List[str]] = ["pulp_last_updated", "pulp_created", "pulp_href", "artifact", "vuln_report", "prn", "pulp_labels", "version", "name", "namespace"]
|
|
42
42
|
|
|
43
43
|
model_config = ConfigDict(
|
|
44
44
|
populate_by_name=True,
|
|
@@ -77,10 +77,10 @@ class AnsibleRoleResponse(BaseModel):
|
|
|
77
77
|
* OpenAPI `readOnly` fields are excluded.
|
|
78
78
|
"""
|
|
79
79
|
excluded_fields: Set[str] = set([
|
|
80
|
-
"pulp_created",
|
|
81
80
|
"pulp_last_updated",
|
|
82
|
-
"
|
|
81
|
+
"pulp_created",
|
|
83
82
|
"pulp_href",
|
|
83
|
+
"vuln_report",
|
|
84
84
|
"prn",
|
|
85
85
|
])
|
|
86
86
|
|
|
@@ -31,6 +31,8 @@ class PatchedansibleCollectionRemote(BaseModel):
|
|
|
31
31
|
""" # noqa: E501
|
|
32
32
|
name: Optional[Annotated[str, Field(min_length=1, strict=True)]] = Field(default=None, description="A unique name for this remote.")
|
|
33
33
|
url: Optional[Annotated[str, Field(min_length=1, strict=True)]] = Field(default=None, description="The URL of an external content source.")
|
|
34
|
+
pulp_labels: Optional[Dict[str, Optional[StrictStr]]] = None
|
|
35
|
+
policy: Optional[PolicyEnum] = Field(default=None, description="The policy to use when downloading content. * `immediate` - When syncing, download all metadata and content now.")
|
|
34
36
|
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.")
|
|
35
37
|
client_cert: Optional[Annotated[str, Field(min_length=1, strict=True)]] = Field(default=None, description="A PEM encoded client certificate used for authentication.")
|
|
36
38
|
client_key: Optional[Annotated[str, Field(min_length=1, strict=True)]] = Field(default=None, description="A PEM encoded private key used for authentication.")
|
|
@@ -40,22 +42,20 @@ class PatchedansibleCollectionRemote(BaseModel):
|
|
|
40
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.")
|
|
41
43
|
username: Optional[Annotated[str, Field(min_length=1, strict=True)]] = Field(default=None, description="The username to be used for authentication when syncing.")
|
|
42
44
|
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
|
-
pulp_labels: Optional[Dict[str, Optional[StrictStr]]] = None
|
|
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
|
-
policy: Optional[PolicyEnum] = Field(default=None, description="The policy to use when downloading content. * `immediate` - When syncing, download all metadata and content now.")
|
|
47
46
|
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
47
|
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.")
|
|
49
48
|
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.")
|
|
50
49
|
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.")
|
|
51
50
|
headers: Optional[List[Dict[str, Any]]] = Field(default=None, description="Headers for aiohttp.Clientsession")
|
|
51
|
+
download_concurrency: Optional[StrictInt] = Field(default=None, description="Total number of simultaneous connections. If not set then the default value will be used.")
|
|
52
52
|
rate_limit: Optional[StrictInt] = Field(default=None, description="Limits requests per second for each concurrent downloader")
|
|
53
53
|
requirements_file: Optional[Annotated[str, Field(min_length=1, strict=True)]] = Field(default=None, description="The string version of Collection requirements yaml.")
|
|
54
54
|
auth_url: Optional[Annotated[str, Field(min_length=1, strict=True)]] = Field(default=None, description="The URL to receive a session token from, e.g. used with Automation Hub.")
|
|
55
55
|
token: Optional[Annotated[str, Field(min_length=1, strict=True)]] = Field(default=None, description="The token key to use for authentication. See https://docs.ansible.com/ansible/latest/user_guide/collections_using.html#configuring-the-ansible-galaxy-clientfor more details")
|
|
56
56
|
sync_dependencies: Optional[StrictBool] = Field(default=None, description="Sync dependencies for collections specified via requirements file")
|
|
57
57
|
signed_only: Optional[StrictBool] = Field(default=None, description="Sync only collections that have a signature")
|
|
58
|
-
__properties: ClassVar[List[str]] = ["name", "url", "ca_cert", "client_cert", "client_key", "tls_validation", "proxy_url", "proxy_username", "proxy_password", "username", "password", "
|
|
58
|
+
__properties: ClassVar[List[str]] = ["name", "url", "pulp_labels", "policy", "ca_cert", "client_cert", "client_key", "tls_validation", "proxy_url", "proxy_username", "proxy_password", "username", "password", "max_retries", "total_timeout", "connect_timeout", "sock_connect_timeout", "sock_read_timeout", "headers", "download_concurrency", "rate_limit", "requirements_file", "auth_url", "token", "sync_dependencies", "signed_only"]
|
|
59
59
|
|
|
60
60
|
model_config = ConfigDict(
|
|
61
61
|
populate_by_name=True,
|
|
@@ -136,11 +136,6 @@ class PatchedansibleCollectionRemote(BaseModel):
|
|
|
136
136
|
if self.password is None and "password" in self.model_fields_set:
|
|
137
137
|
_dict['password'] = None
|
|
138
138
|
|
|
139
|
-
# set to None if download_concurrency (nullable) is None
|
|
140
|
-
# and model_fields_set contains the field
|
|
141
|
-
if self.download_concurrency is None and "download_concurrency" in self.model_fields_set:
|
|
142
|
-
_dict['download_concurrency'] = None
|
|
143
|
-
|
|
144
139
|
# set to None if max_retries (nullable) is None
|
|
145
140
|
# and model_fields_set contains the field
|
|
146
141
|
if self.max_retries is None and "max_retries" in self.model_fields_set:
|
|
@@ -166,6 +161,11 @@ class PatchedansibleCollectionRemote(BaseModel):
|
|
|
166
161
|
if self.sock_read_timeout is None and "sock_read_timeout" in self.model_fields_set:
|
|
167
162
|
_dict['sock_read_timeout'] = None
|
|
168
163
|
|
|
164
|
+
# set to None if download_concurrency (nullable) is None
|
|
165
|
+
# and model_fields_set contains the field
|
|
166
|
+
if self.download_concurrency is None and "download_concurrency" in self.model_fields_set:
|
|
167
|
+
_dict['download_concurrency'] = None
|
|
168
|
+
|
|
169
169
|
# set to None if rate_limit (nullable) is None
|
|
170
170
|
# and model_fields_set contains the field
|
|
171
171
|
if self.rate_limit is None and "rate_limit" in self.model_fields_set:
|