pulp-ansible-client 0.29.1__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.
Files changed (24) hide show
  1. {pulp_ansible_client-0.29.1.dist-info → pulp_ansible_client-0.29.3.dist-info}/METADATA +4 -2
  2. {pulp_ansible_client-0.29.1.dist-info → pulp_ansible_client-0.29.3.dist-info}/RECORD +24 -22
  3. pulpcore/client/pulp_ansible/__init__.py +5 -1
  4. pulpcore/client/pulp_ansible/api/content_collection_signatures_api.py +16 -1
  5. pulpcore/client/pulp_ansible/api/content_collection_versions_api.py +61 -46
  6. pulpcore/client/pulp_ansible/api_client.py +1 -1
  7. pulpcore/client/pulp_ansible/configuration.py +1 -1
  8. pulpcore/client/pulp_ansible/models/__init__.py +2 -0
  9. pulpcore/client/pulp_ansible/models/ansible_collection_remote.py +9 -9
  10. pulpcore/client/pulp_ansible/models/ansible_collection_remote_response.py +10 -10
  11. pulpcore/client/pulp_ansible/models/ansible_collection_version_response.py +6 -16
  12. pulpcore/client/pulp_ansible/models/ansible_git_remote.py +49 -49
  13. pulpcore/client/pulp_ansible/models/ansible_git_remote_response.py +37 -37
  14. pulpcore/client/pulp_ansible/models/ansible_role.py +2 -2
  15. pulpcore/client/pulp_ansible/models/ansible_role_remote.py +9 -9
  16. pulpcore/client/pulp_ansible/models/ansible_role_remote_response.py +10 -10
  17. pulpcore/client/pulp_ansible/models/ansible_role_response.py +6 -6
  18. pulpcore/client/pulp_ansible/models/patchedansible_collection_remote.py +9 -9
  19. pulpcore/client/pulp_ansible/models/patchedansible_git_remote.py +49 -49
  20. pulpcore/client/pulp_ansible/models/patchedansible_role_remote.py +9 -9
  21. pulpcore/client/pulp_ansible/models/remote_network_config.py +178 -0
  22. pulpcore/client/pulp_ansible/models/remote_network_config_response.py +148 -0
  23. {pulp_ansible_client-0.29.1.dist-info → pulp_ansible_client-0.29.3.dist-info}/WHEEL +0 -0
  24. {pulp_ansible_client-0.29.1.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
- prn: Optional[StrictStr] = Field(default=None, description="The Pulp Resource Name (PRN).")
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.")
34
34
  pulp_created: Optional[datetime] = Field(default=None, description="Timestamp of creation.")
35
35
  pulp_href: Optional[StrictStr] = None
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.")
36
+ artifact: Optional[StrictStr] = Field(default=None, description="Artifact file representing the physical content")
37
37
  vuln_report: Optional[StrictStr] = None
38
+ prn: Optional[StrictStr] = Field(default=None, description="The Pulp Resource Name (PRN).")
38
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.")
39
- artifact: Optional[StrictStr] = Field(default=None, description="Artifact file representing the physical content")
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.")
@@ -45,12 +45,8 @@ class AnsibleCollectionVersionResponse(BaseModel):
45
45
  sha512: Optional[StrictStr] = Field(default=None, description="The SHA-512 checksum if available.")
46
46
  id: Optional[StrictStr] = Field(default=None, description="A collection identifier.")
47
47
  authors: Optional[List[Annotated[str, Field(strict=True, max_length=64)]]] = Field(default=None, description="A list of the CollectionVersion content's authors.")
48
- contents: Optional[List[Any]] = Field(default=None, description="A JSON field with data about the contents.")
49
48
  dependencies: Optional[Dict[str, Any]] = Field(default=None, description="A dict declaring Collections that this collection requires to be installed for it to be usable.")
50
49
  description: Optional[StrictStr] = Field(default=None, description="A short summary description of the collection.")
51
- docs_blob: Optional[Dict[str, Any]] = Field(default=None, description="A JSON field holding the various documentation blobs in the collection.")
52
- manifest: Optional[Dict[str, Any]] = Field(default=None, description="A JSON field holding MANIFEST.json data.")
53
- files: Optional[Dict[str, Any]] = Field(default=None, description="A JSON field holding FILES.json data.")
54
50
  documentation: Optional[Annotated[str, Field(strict=True, max_length=2000)]] = Field(default=None, description="The URL to any online docs.")
55
51
  homepage: Optional[Annotated[str, Field(strict=True, max_length=2000)]] = Field(default=None, description="The URL to the homepage of the collection/project.")
56
52
  issues: Optional[Annotated[str, Field(strict=True, max_length=2000)]] = Field(default=None, description="The URL to the collection issue tracker.")
@@ -61,7 +57,7 @@ class AnsibleCollectionVersionResponse(BaseModel):
61
57
  tags: Optional[List[CollectionSummaryResponseTagsInner]] = None
62
58
  version: Optional[Annotated[str, Field(strict=True, max_length=128)]] = Field(default=None, description="The version of the collection.")
63
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.")
64
- __properties: ClassVar[List[str]] = ["prn", "pulp_created", "pulp_href", "pulp_last_updated", "vuln_report", "pulp_labels", "artifact", "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"]
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"]
65
61
 
66
62
  model_config = ConfigDict(
67
63
  populate_by_name=True,
@@ -115,16 +111,13 @@ class AnsibleCollectionVersionResponse(BaseModel):
115
111
  * OpenAPI `readOnly` fields are excluded.
116
112
  * OpenAPI `readOnly` fields are excluded.
117
113
  * OpenAPI `readOnly` fields are excluded.
118
- * OpenAPI `readOnly` fields are excluded.
119
- * OpenAPI `readOnly` fields are excluded.
120
- * OpenAPI `readOnly` fields are excluded.
121
114
  """
122
115
  excluded_fields: Set[str] = set([
123
- "prn",
116
+ "pulp_last_updated",
124
117
  "pulp_created",
125
118
  "pulp_href",
126
- "pulp_last_updated",
127
119
  "vuln_report",
120
+ "prn",
128
121
  "sha256",
129
122
  "md5",
130
123
  "sha1",
@@ -134,9 +127,6 @@ class AnsibleCollectionVersionResponse(BaseModel):
134
127
  "id",
135
128
  "dependencies",
136
129
  "description",
137
- "docs_blob",
138
- "manifest",
139
- "files",
140
130
  "documentation",
141
131
  "homepage",
142
132
  "issues",
@@ -28,29 +28,29 @@ class AnsibleGitRemote(BaseModel):
28
28
  """
29
29
  A serializer for Git Collection Remotes.
30
30
  """ # noqa: E501
31
+ url: Annotated[str, Field(min_length=1, strict=True)] = Field(description="The URL of an external content source.")
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.")
31
33
  proxy_url: Optional[Annotated[str, Field(min_length=1, strict=True)]] = Field(default=None, description="The proxy URL. Format: scheme://host:port")
32
- download_concurrency: Optional[StrictInt] = Field(default=None, description="Total number of simultaneous connections. If not set then the default value will be used.")
33
- 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.")
34
- name: Annotated[str, Field(min_length=1, strict=True)] = Field(description="A unique name for this remote.")
35
34
  headers: Optional[List[Dict[str, Any]]] = Field(default=None, description="Headers for aiohttp.Clientsession")
36
- 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.")
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.")
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.")
38
- url: Annotated[str, Field(min_length=1, strict=True)] = Field(description="The URL of an external content source.")
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.")
39
43
  rate_limit: Optional[StrictInt] = Field(default=None, description="Limits requests per second for each concurrent downloader")
40
- 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.")
41
- 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.")
42
44
  proxy_username: Optional[Annotated[str, Field(min_length=1, strict=True)]] = Field(default=None, description="The username to authenticte to the proxy.")
43
- 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.")
44
- pulp_labels: Optional[Dict[str, Optional[StrictStr]]] = None
45
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
- 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
- client_key: Optional[Annotated[str, Field(min_length=1, strict=True)]] = Field(default=None, description="A PEM encoded private key used for authentication.")
48
- 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.")
49
- client_cert: Optional[Annotated[str, Field(min_length=1, strict=True)]] = Field(default=None, description="A PEM encoded client certificate used for authentication.")
50
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.")
49
+ pulp_labels: Optional[Dict[str, Optional[StrictStr]]] = None
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.")
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]] = ["proxy_url", "download_concurrency", "connect_timeout", "name", "headers", "password", "tls_validation", "url", "rate_limit", "ca_cert", "total_timeout", "proxy_username", "proxy_password", "pulp_labels", "username", "max_retries", "client_key", "sock_read_timeout", "client_cert", "sock_connect_timeout", "metadata_only", "git_ref"]
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,80 +91,80 @@ class AnsibleGitRemote(BaseModel):
91
91
  exclude=excluded_fields,
92
92
  exclude_none=True,
93
93
  )
94
+ # set to None if max_retries (nullable) is None
95
+ # and model_fields_set contains the field
96
+ if self.max_retries is None and "max_retries" in self.model_fields_set:
97
+ _dict['max_retries'] = None
98
+
94
99
  # set to None if proxy_url (nullable) is None
95
100
  # and model_fields_set contains the field
96
101
  if self.proxy_url is None and "proxy_url" in self.model_fields_set:
97
102
  _dict['proxy_url'] = None
98
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
108
+
99
109
  # set to None if download_concurrency (nullable) is None
100
110
  # and model_fields_set contains the field
101
111
  if self.download_concurrency is None and "download_concurrency" in self.model_fields_set:
102
112
  _dict['download_concurrency'] = None
103
113
 
104
- # set to None if connect_timeout (nullable) is None
114
+ # set to None if client_cert (nullable) is None
105
115
  # and model_fields_set contains the field
106
- if self.connect_timeout is None and "connect_timeout" in self.model_fields_set:
107
- _dict['connect_timeout'] = None
116
+ if self.client_cert is None and "client_cert" in self.model_fields_set:
117
+ _dict['client_cert'] = None
118
+
119
+ # set to None if total_timeout (nullable) is None
120
+ # and model_fields_set contains the field
121
+ if self.total_timeout is None and "total_timeout" in self.model_fields_set:
122
+ _dict['total_timeout'] = None
108
123
 
109
124
  # set to None if password (nullable) is None
110
125
  # and model_fields_set contains the field
111
126
  if self.password is None and "password" in self.model_fields_set:
112
127
  _dict['password'] = None
113
128
 
129
+ # set to None if sock_read_timeout (nullable) is None
130
+ # and model_fields_set contains the field
131
+ if self.sock_read_timeout is None and "sock_read_timeout" in self.model_fields_set:
132
+ _dict['sock_read_timeout'] = None
133
+
114
134
  # set to None if rate_limit (nullable) is None
115
135
  # and model_fields_set contains the field
116
136
  if self.rate_limit is None and "rate_limit" in self.model_fields_set:
117
137
  _dict['rate_limit'] = None
118
138
 
119
- # set to None if ca_cert (nullable) is None
120
- # and model_fields_set contains the field
121
- if self.ca_cert is None and "ca_cert" in self.model_fields_set:
122
- _dict['ca_cert'] = None
123
-
124
- # set to None if total_timeout (nullable) is None
125
- # and model_fields_set contains the field
126
- if self.total_timeout is None and "total_timeout" in self.model_fields_set:
127
- _dict['total_timeout'] = None
128
-
129
139
  # set to None if proxy_username (nullable) is None
130
140
  # and model_fields_set contains the field
131
141
  if self.proxy_username is None and "proxy_username" in self.model_fields_set:
132
142
  _dict['proxy_username'] = None
133
143
 
134
- # set to None if proxy_password (nullable) is None
135
- # and model_fields_set contains the field
136
- if self.proxy_password is None and "proxy_password" in self.model_fields_set:
137
- _dict['proxy_password'] = None
138
-
139
144
  # set to None if username (nullable) is None
140
145
  # and model_fields_set contains the field
141
146
  if self.username is None and "username" in self.model_fields_set:
142
147
  _dict['username'] = None
143
148
 
144
- # set to None if max_retries (nullable) is None
145
- # and model_fields_set contains the field
146
- if self.max_retries is None and "max_retries" in self.model_fields_set:
147
- _dict['max_retries'] = None
148
-
149
- # set to None if client_key (nullable) is None
149
+ # set to None if sock_connect_timeout (nullable) is None
150
150
  # and model_fields_set contains the field
151
- if self.client_key is None and "client_key" in self.model_fields_set:
152
- _dict['client_key'] = None
151
+ if self.sock_connect_timeout is None and "sock_connect_timeout" in self.model_fields_set:
152
+ _dict['sock_connect_timeout'] = None
153
153
 
154
- # set to None if sock_read_timeout (nullable) is None
154
+ # set to None if proxy_password (nullable) is None
155
155
  # and model_fields_set contains the field
156
- if self.sock_read_timeout is None and "sock_read_timeout" in self.model_fields_set:
157
- _dict['sock_read_timeout'] = None
156
+ if self.proxy_password is None and "proxy_password" in self.model_fields_set:
157
+ _dict['proxy_password'] = None
158
158
 
159
- # set to None if client_cert (nullable) is None
159
+ # set to None if ca_cert (nullable) is None
160
160
  # and model_fields_set contains the field
161
- if self.client_cert is None and "client_cert" in self.model_fields_set:
162
- _dict['client_cert'] = None
161
+ if self.ca_cert is None and "ca_cert" in self.model_fields_set:
162
+ _dict['ca_cert'] = None
163
163
 
164
- # set to None if sock_connect_timeout (nullable) is None
164
+ # set to None if connect_timeout (nullable) is None
165
165
  # and model_fields_set contains the field
166
- if self.sock_connect_timeout is None and "sock_connect_timeout" in self.model_fields_set:
167
- _dict['sock_connect_timeout'] = None
166
+ if self.connect_timeout is None and "connect_timeout" in self.model_fields_set:
167
+ _dict['connect_timeout'] = None
168
168
 
169
169
  return _dict
170
170
 
@@ -30,29 +30,29 @@ class AnsibleGitRemoteResponse(BaseModel):
30
30
  """
31
31
  A serializer for Git Collection Remotes.
32
32
  """ # noqa: E501
33
+ url: StrictStr = Field(description="The URL of an external content source.")
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.")
33
35
  proxy_url: Optional[StrictStr] = Field(default=None, description="The proxy URL. Format: scheme://host:port")
34
- download_concurrency: Optional[StrictInt] = Field(default=None, description="Total number of simultaneous connections. If not set then the default value will 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
- pulp_last_updated: Optional[datetime] = Field(default=None, description="Timestamp of the most recent update of the remote.")
37
- hidden_fields: Optional[List[AnsibleCollectionRemoteResponseHiddenFieldsInner]] = Field(default=None, description="List of hidden (write only) fields")
38
- name: StrictStr = Field(description="A unique name for this remote.")
39
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.")
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.")
40
41
  tls_validation: Optional[StrictBool] = Field(default=None, description="If True, TLS peer validation must be performed.")
41
- url: StrictStr = Field(description="The URL of an external content source.")
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.")
42
44
  rate_limit: Optional[StrictInt] = Field(default=None, description="Limits requests per second for each concurrent downloader")
45
+ pulp_last_updated: Optional[datetime] = Field(default=None, description="Timestamp of the most recent update of the remote.")
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
+ 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.")
43
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.")
44
- 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.")
45
50
  prn: Optional[StrictStr] = Field(default=None, description="The Pulp Resource Name (PRN).")
46
- pulp_created: Optional[datetime] = Field(default=None, description="Timestamp of creation.")
47
- pulp_href: Optional[StrictStr] = None
48
51
  pulp_labels: Optional[Dict[str, Optional[StrictStr]]] = None
49
- 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.")
50
- 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
- client_cert: Optional[StrictStr] = Field(default=None, description="A PEM encoded client certificate used for authentication.")
52
- 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
+ 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]] = ["proxy_url", "download_concurrency", "connect_timeout", "pulp_last_updated", "hidden_fields", "name", "headers", "tls_validation", "url", "rate_limit", "ca_cert", "total_timeout", "prn", "pulp_created", "pulp_href", "pulp_labels", "max_retries", "sock_read_timeout", "client_cert", "sock_connect_timeout", "metadata_only", "git_ref"]
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
+ "pulp_href",
93
94
  "pulp_last_updated",
94
- "prn",
95
95
  "pulp_created",
96
- "pulp_href",
96
+ "prn",
97
97
  ])
98
98
 
99
99
  _dict = self.model_dump(
@@ -108,6 +108,11 @@ 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 max_retries (nullable) is None
112
+ # and model_fields_set contains the field
113
+ if self.max_retries is None and "max_retries" in self.model_fields_set:
114
+ _dict['max_retries'] = None
115
+
111
116
  # set to None if proxy_url (nullable) is None
112
117
  # and model_fields_set contains the field
113
118
  if self.proxy_url is None and "proxy_url" in self.model_fields_set:
@@ -118,46 +123,41 @@ class AnsibleGitRemoteResponse(BaseModel):
118
123
  if self.download_concurrency is None and "download_concurrency" in self.model_fields_set:
119
124
  _dict['download_concurrency'] = None
120
125
 
121
- # set to None if connect_timeout (nullable) is None
122
- # and model_fields_set contains the field
123
- if self.connect_timeout is None and "connect_timeout" in self.model_fields_set:
124
- _dict['connect_timeout'] = None
125
-
126
- # set to None if rate_limit (nullable) is None
127
- # and model_fields_set contains the field
128
- if self.rate_limit is None and "rate_limit" in self.model_fields_set:
129
- _dict['rate_limit'] = None
130
-
131
- # set to None if ca_cert (nullable) is None
126
+ # set to None if client_cert (nullable) is None
132
127
  # and model_fields_set contains the field
133
- if self.ca_cert is None and "ca_cert" in self.model_fields_set:
134
- _dict['ca_cert'] = None
128
+ if self.client_cert is None and "client_cert" in self.model_fields_set:
129
+ _dict['client_cert'] = None
135
130
 
136
131
  # set to None if total_timeout (nullable) is None
137
132
  # and model_fields_set contains the field
138
133
  if self.total_timeout is None and "total_timeout" in self.model_fields_set:
139
134
  _dict['total_timeout'] = None
140
135
 
141
- # set to None if max_retries (nullable) is None
142
- # and model_fields_set contains the field
143
- if self.max_retries is None and "max_retries" in self.model_fields_set:
144
- _dict['max_retries'] = None
145
-
146
136
  # set to None if sock_read_timeout (nullable) is None
147
137
  # and model_fields_set contains the field
148
138
  if self.sock_read_timeout is None and "sock_read_timeout" in self.model_fields_set:
149
139
  _dict['sock_read_timeout'] = None
150
140
 
151
- # set to None if client_cert (nullable) is None
141
+ # set to None if rate_limit (nullable) is None
152
142
  # and model_fields_set contains the field
153
- if self.client_cert is None and "client_cert" in self.model_fields_set:
154
- _dict['client_cert'] = None
143
+ if self.rate_limit is None and "rate_limit" in self.model_fields_set:
144
+ _dict['rate_limit'] = None
155
145
 
156
146
  # set to None if sock_connect_timeout (nullable) is None
157
147
  # and model_fields_set contains the field
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
@@ -28,13 +28,13 @@ class AnsibleRole(BaseModel):
28
28
  """
29
29
  A serializer for Role versions.
30
30
  """ # noqa: E501
31
- 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.")
32
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
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]] = ["pulp_labels", "artifact", "repository", "version", "name", "namespace"]
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,
@@ -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", "pulp_labels", "download_concurrency", "max_retries", "policy", "total_timeout", "connect_timeout", "sock_connect_timeout", "sock_read_timeout", "headers", "rate_limit"]
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
- hidden_fields: Optional[List[AnsibleCollectionRemoteResponseHiddenFieldsInner]] = Field(default=None, description="List of hidden (write only) fields")
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
- prn: Optional[StrictStr] = Field(default=None, description="The Pulp Resource Name (PRN).")
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.")
32
32
  pulp_created: Optional[datetime] = Field(default=None, description="Timestamp of creation.")
33
33
  pulp_href: Optional[StrictStr] = None
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.")
34
+ artifact: StrictStr = Field(description="Artifact file representing the physical content")
35
35
  vuln_report: Optional[StrictStr] = None
36
+ prn: Optional[StrictStr] = Field(default=None, description="The Pulp Resource Name (PRN).")
36
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.")
37
- artifact: StrictStr = Field(description="Artifact file representing the physical content")
38
38
  version: StrictStr
39
39
  name: StrictStr
40
40
  namespace: StrictStr
41
- __properties: ClassVar[List[str]] = ["prn", "pulp_created", "pulp_href", "pulp_last_updated", "vuln_report", "pulp_labels", "artifact", "version", "name", "namespace"]
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,11 +77,11 @@ class AnsibleRoleResponse(BaseModel):
77
77
  * OpenAPI `readOnly` fields are excluded.
78
78
  """
79
79
  excluded_fields: Set[str] = set([
80
- "prn",
80
+ "pulp_last_updated",
81
81
  "pulp_created",
82
82
  "pulp_href",
83
- "pulp_last_updated",
84
83
  "vuln_report",
84
+ "prn",
85
85
  ])
86
86
 
87
87
  _dict = self.model_dump(
@@ -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", "pulp_labels", "download_concurrency", "max_retries", "policy", "total_timeout", "connect_timeout", "sock_connect_timeout", "sock_read_timeout", "headers", "rate_limit", "requirements_file", "auth_url", "token", "sync_dependencies", "signed_only"]
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: