pulp-ansible-client 0.28.0__py3-none-any.whl → 0.28.2__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (108) hide show
  1. pulp_ansible_client-0.28.2.dist-info/METADATA +437 -0
  2. {pulp_ansible_client-0.28.0.dist-info → pulp_ansible_client-0.28.2.dist-info}/RECORD +107 -107
  3. {pulp_ansible_client-0.28.0.dist-info → pulp_ansible_client-0.28.2.dist-info}/WHEEL +1 -1
  4. pulpcore/client/pulp_ansible/__init__.py +323 -160
  5. pulpcore/client/pulp_ansible/api/content_collection_versions_api.py +60 -60
  6. pulpcore/client/pulp_ansible/api/distributions_ansible_api.py +16 -10
  7. pulpcore/client/pulp_ansible/api/remotes_collection_api.py +16 -10
  8. pulpcore/client/pulp_ansible/api/remotes_git_api.py +16 -10
  9. pulpcore/client/pulp_ansible/api/remotes_role_api.py +16 -10
  10. pulpcore/client/pulp_ansible/api/repositories_ansible_api.py +16 -10
  11. pulpcore/client/pulp_ansible/api_client.py +6 -2
  12. pulpcore/client/pulp_ansible/configuration.py +10 -3
  13. pulpcore/client/pulp_ansible/exceptions.py +17 -0
  14. pulpcore/client/pulp_ansible/models/ansible_ansible_collection_deprecated.py +1 -6
  15. pulpcore/client/pulp_ansible/models/ansible_ansible_collection_deprecated_response.py +1 -10
  16. pulpcore/client/pulp_ansible/models/ansible_ansible_distribution.py +1 -8
  17. pulpcore/client/pulp_ansible/models/ansible_ansible_distribution_response.py +1 -11
  18. pulpcore/client/pulp_ansible/models/ansible_ansible_namespace_metadata.py +1 -9
  19. pulpcore/client/pulp_ansible/models/ansible_ansible_namespace_metadata_response.py +1 -12
  20. pulpcore/client/pulp_ansible/models/ansible_ansible_repository.py +1 -10
  21. pulpcore/client/pulp_ansible/models/ansible_ansible_repository_response.py +1 -17
  22. pulpcore/client/pulp_ansible/models/ansible_collection_remote.py +1 -28
  23. pulpcore/client/pulp_ansible/models/ansible_collection_remote_response.py +1 -28
  24. pulpcore/client/pulp_ansible/models/ansible_collection_remote_response_hidden_fields_inner.py +1 -4
  25. pulpcore/client/pulp_ansible/models/ansible_collection_response.py +1 -4
  26. pulpcore/client/pulp_ansible/models/ansible_collection_version_mark.py +1 -4
  27. pulpcore/client/pulp_ansible/models/ansible_collection_version_mark_response.py +1 -6
  28. pulpcore/client/pulp_ansible/models/ansible_collection_version_response.py +7 -39
  29. pulpcore/client/pulp_ansible/models/ansible_collection_version_signature_response.py +1 -11
  30. pulpcore/client/pulp_ansible/models/ansible_git_remote.py +55 -78
  31. pulpcore/client/pulp_ansible/models/ansible_git_remote_response.py +40 -63
  32. pulpcore/client/pulp_ansible/models/ansible_repository_mark.py +1 -4
  33. pulpcore/client/pulp_ansible/models/ansible_repository_rebuild.py +1 -5
  34. pulpcore/client/pulp_ansible/models/ansible_repository_signature.py +1 -4
  35. pulpcore/client/pulp_ansible/models/ansible_repository_sync_url.py +1 -5
  36. pulpcore/client/pulp_ansible/models/ansible_role.py +4 -11
  37. pulpcore/client/pulp_ansible/models/ansible_role_remote.py +1 -23
  38. pulpcore/client/pulp_ansible/models/ansible_role_remote_response.py +1 -23
  39. pulpcore/client/pulp_ansible/models/ansible_role_response.py +7 -18
  40. pulpcore/client/pulp_ansible/models/artifact_ref_response.py +1 -5
  41. pulpcore/client/pulp_ansible/models/async_operation_response.py +1 -3
  42. pulpcore/client/pulp_ansible/models/client_configuration_response.py +1 -3
  43. pulpcore/client/pulp_ansible/models/collection_import_detail_response.py +1 -10
  44. pulpcore/client/pulp_ansible/models/collection_metadata_response.py +1 -12
  45. pulpcore/client/pulp_ansible/models/collection_namespace_response.py +1 -4
  46. pulpcore/client/pulp_ansible/models/collection_ref_response.py +1 -5
  47. pulpcore/client/pulp_ansible/models/collection_response.py +1 -11
  48. pulpcore/client/pulp_ansible/models/collection_summary_response.py +1 -12
  49. pulpcore/client/pulp_ansible/models/collection_summary_response_tags_inner.py +1 -3
  50. pulpcore/client/pulp_ansible/models/collection_version_copy_move.py +1 -5
  51. pulpcore/client/pulp_ansible/models/collection_version_docs_response.py +1 -3
  52. pulpcore/client/pulp_ansible/models/collection_version_list_response.py +1 -8
  53. pulpcore/client/pulp_ansible/models/collection_version_response.py +1 -19
  54. pulpcore/client/pulp_ansible/models/collection_version_search_list.py +1 -7
  55. pulpcore/client/pulp_ansible/models/collection_version_search_list_response.py +1 -9
  56. pulpcore/client/pulp_ansible/models/collection_version_signature_response.py +1 -6
  57. pulpcore/client/pulp_ansible/models/content_summary_response.py +1 -5
  58. pulpcore/client/pulp_ansible/models/copy.py +1 -3
  59. pulpcore/client/pulp_ansible/models/galaxy_role_response.py +1 -5
  60. pulpcore/client/pulp_ansible/models/galaxy_role_version_response.py +1 -4
  61. pulpcore/client/pulp_ansible/models/my_permissions_response.py +1 -3
  62. pulpcore/client/pulp_ansible/models/namespace_link.py +1 -4
  63. pulpcore/client/pulp_ansible/models/namespace_link_response.py +1 -4
  64. pulpcore/client/pulp_ansible/models/nested_role.py +1 -5
  65. pulpcore/client/pulp_ansible/models/nested_role_response.py +1 -5
  66. pulpcore/client/pulp_ansible/models/object_roles_response.py +1 -3
  67. pulpcore/client/pulp_ansible/models/paginated_collection_response_list.py +1 -5
  68. pulpcore/client/pulp_ansible/models/paginated_collection_response_list_links.py +1 -6
  69. pulpcore/client/pulp_ansible/models/paginated_collection_response_list_meta.py +1 -3
  70. pulpcore/client/pulp_ansible/models/paginated_collection_version_list_response_list.py +1 -5
  71. pulpcore/client/pulp_ansible/models/paginated_collection_version_search_list_response_list.py +1 -5
  72. pulpcore/client/pulp_ansible/models/paginated_galaxy_role_response_list.py +1 -6
  73. pulpcore/client/pulp_ansible/models/paginated_galaxy_role_version_response_list.py +1 -6
  74. pulpcore/client/pulp_ansible/models/paginated_repository_version_response_list.py +1 -6
  75. pulpcore/client/pulp_ansible/models/paginated_tag_response_list.py +1 -6
  76. pulpcore/client/pulp_ansible/models/paginatedansible_ansible_collection_deprecated_response_list.py +1 -6
  77. pulpcore/client/pulp_ansible/models/paginatedansible_ansible_distribution_response_list.py +1 -6
  78. pulpcore/client/pulp_ansible/models/paginatedansible_ansible_namespace_metadata_response_list.py +1 -6
  79. pulpcore/client/pulp_ansible/models/paginatedansible_ansible_repository_response_list.py +1 -6
  80. pulpcore/client/pulp_ansible/models/paginatedansible_collection_remote_response_list.py +1 -6
  81. pulpcore/client/pulp_ansible/models/paginatedansible_collection_response_list.py +1 -6
  82. pulpcore/client/pulp_ansible/models/paginatedansible_collection_version_mark_response_list.py +1 -6
  83. pulpcore/client/pulp_ansible/models/paginatedansible_collection_version_response_list.py +1 -6
  84. pulpcore/client/pulp_ansible/models/paginatedansible_collection_version_signature_response_list.py +1 -6
  85. pulpcore/client/pulp_ansible/models/paginatedansible_git_remote_response_list.py +1 -6
  86. pulpcore/client/pulp_ansible/models/paginatedansible_role_remote_response_list.py +1 -6
  87. pulpcore/client/pulp_ansible/models/paginatedansible_role_response_list.py +1 -6
  88. pulpcore/client/pulp_ansible/models/patched_collection.py +1 -3
  89. pulpcore/client/pulp_ansible/models/patchedansible_ansible_distribution.py +1 -8
  90. pulpcore/client/pulp_ansible/models/patchedansible_ansible_repository.py +1 -10
  91. pulpcore/client/pulp_ansible/models/patchedansible_collection_remote.py +1 -28
  92. pulpcore/client/pulp_ansible/models/patchedansible_git_remote.py +55 -78
  93. pulpcore/client/pulp_ansible/models/patchedansible_role_remote.py +1 -23
  94. pulpcore/client/pulp_ansible/models/repair.py +1 -3
  95. pulpcore/client/pulp_ansible/models/repo_metadata_response.py +1 -3
  96. pulpcore/client/pulp_ansible/models/repository.py +1 -7
  97. pulpcore/client/pulp_ansible/models/repository_add_remove_content.py +1 -5
  98. pulpcore/client/pulp_ansible/models/repository_response.py +1 -13
  99. pulpcore/client/pulp_ansible/models/repository_version_response.py +1 -11
  100. pulpcore/client/pulp_ansible/models/set_label.py +1 -4
  101. pulpcore/client/pulp_ansible/models/set_label_response.py +1 -4
  102. pulpcore/client/pulp_ansible/models/tag_response.py +1 -4
  103. pulpcore/client/pulp_ansible/models/unpaginated_collection_version_response.py +1 -17
  104. pulpcore/client/pulp_ansible/models/unset_label.py +1 -3
  105. pulpcore/client/pulp_ansible/models/unset_label_response.py +1 -4
  106. pulpcore/client/pulp_ansible/rest.py +1 -0
  107. pulp_ansible_client-0.28.0.dist-info/METADATA +0 -17
  108. {pulp_ansible_client-0.28.0.dist-info → pulp_ansible_client-0.28.2.dist-info}/top_level.txt +0 -0
@@ -91,12 +91,7 @@ class PaginatedansibleAnsibleRepositoryResponseList(BaseModel):
91
91
  if not isinstance(obj, dict):
92
92
  return cls.model_validate(obj)
93
93
 
94
- _obj = cls.model_validate({
95
- "count": obj.get("count"),
96
- "next": obj.get("next"),
97
- "previous": obj.get("previous"),
98
- "results": [AnsibleAnsibleRepositoryResponse.from_dict(_item) for _item in obj["results"]] if obj.get("results") is not None else None
99
- })
94
+ _obj = cls.model_validate(obj)
100
95
  return _obj
101
96
 
102
97
 
@@ -91,12 +91,7 @@ class PaginatedansibleCollectionRemoteResponseList(BaseModel):
91
91
  if not isinstance(obj, dict):
92
92
  return cls.model_validate(obj)
93
93
 
94
- _obj = cls.model_validate({
95
- "count": obj.get("count"),
96
- "next": obj.get("next"),
97
- "previous": obj.get("previous"),
98
- "results": [AnsibleCollectionRemoteResponse.from_dict(_item) for _item in obj["results"]] if obj.get("results") is not None else None
99
- })
94
+ _obj = cls.model_validate(obj)
100
95
  return _obj
101
96
 
102
97
 
@@ -91,12 +91,7 @@ class PaginatedansibleCollectionResponseList(BaseModel):
91
91
  if not isinstance(obj, dict):
92
92
  return cls.model_validate(obj)
93
93
 
94
- _obj = cls.model_validate({
95
- "count": obj.get("count"),
96
- "next": obj.get("next"),
97
- "previous": obj.get("previous"),
98
- "results": [AnsibleCollectionResponse.from_dict(_item) for _item in obj["results"]] if obj.get("results") is not None else None
99
- })
94
+ _obj = cls.model_validate(obj)
100
95
  return _obj
101
96
 
102
97
 
@@ -91,12 +91,7 @@ class PaginatedansibleCollectionVersionMarkResponseList(BaseModel):
91
91
  if not isinstance(obj, dict):
92
92
  return cls.model_validate(obj)
93
93
 
94
- _obj = cls.model_validate({
95
- "count": obj.get("count"),
96
- "next": obj.get("next"),
97
- "previous": obj.get("previous"),
98
- "results": [AnsibleCollectionVersionMarkResponse.from_dict(_item) for _item in obj["results"]] if obj.get("results") is not None else None
99
- })
94
+ _obj = cls.model_validate(obj)
100
95
  return _obj
101
96
 
102
97
 
@@ -91,12 +91,7 @@ class PaginatedansibleCollectionVersionResponseList(BaseModel):
91
91
  if not isinstance(obj, dict):
92
92
  return cls.model_validate(obj)
93
93
 
94
- _obj = cls.model_validate({
95
- "count": obj.get("count"),
96
- "next": obj.get("next"),
97
- "previous": obj.get("previous"),
98
- "results": [AnsibleCollectionVersionResponse.from_dict(_item) for _item in obj["results"]] if obj.get("results") is not None else None
99
- })
94
+ _obj = cls.model_validate(obj)
100
95
  return _obj
101
96
 
102
97
 
@@ -91,12 +91,7 @@ class PaginatedansibleCollectionVersionSignatureResponseList(BaseModel):
91
91
  if not isinstance(obj, dict):
92
92
  return cls.model_validate(obj)
93
93
 
94
- _obj = cls.model_validate({
95
- "count": obj.get("count"),
96
- "next": obj.get("next"),
97
- "previous": obj.get("previous"),
98
- "results": [AnsibleCollectionVersionSignatureResponse.from_dict(_item) for _item in obj["results"]] if obj.get("results") is not None else None
99
- })
94
+ _obj = cls.model_validate(obj)
100
95
  return _obj
101
96
 
102
97
 
@@ -91,12 +91,7 @@ class PaginatedansibleGitRemoteResponseList(BaseModel):
91
91
  if not isinstance(obj, dict):
92
92
  return cls.model_validate(obj)
93
93
 
94
- _obj = cls.model_validate({
95
- "count": obj.get("count"),
96
- "next": obj.get("next"),
97
- "previous": obj.get("previous"),
98
- "results": [AnsibleGitRemoteResponse.from_dict(_item) for _item in obj["results"]] if obj.get("results") is not None else None
99
- })
94
+ _obj = cls.model_validate(obj)
100
95
  return _obj
101
96
 
102
97
 
@@ -91,12 +91,7 @@ class PaginatedansibleRoleRemoteResponseList(BaseModel):
91
91
  if not isinstance(obj, dict):
92
92
  return cls.model_validate(obj)
93
93
 
94
- _obj = cls.model_validate({
95
- "count": obj.get("count"),
96
- "next": obj.get("next"),
97
- "previous": obj.get("previous"),
98
- "results": [AnsibleRoleRemoteResponse.from_dict(_item) for _item in obj["results"]] if obj.get("results") is not None else None
99
- })
94
+ _obj = cls.model_validate(obj)
100
95
  return _obj
101
96
 
102
97
 
@@ -91,12 +91,7 @@ class PaginatedansibleRoleResponseList(BaseModel):
91
91
  if not isinstance(obj, dict):
92
92
  return cls.model_validate(obj)
93
93
 
94
- _obj = cls.model_validate({
95
- "count": obj.get("count"),
96
- "next": obj.get("next"),
97
- "previous": obj.get("previous"),
98
- "results": [AnsibleRoleResponse.from_dict(_item) for _item in obj["results"]] if obj.get("results") is not None else None
99
- })
94
+ _obj = cls.model_validate(obj)
100
95
  return _obj
101
96
 
102
97
 
@@ -80,9 +80,7 @@ class PatchedCollection(BaseModel):
80
80
  if not isinstance(obj, dict):
81
81
  return cls.model_validate(obj)
82
82
 
83
- _obj = cls.model_validate({
84
- "deprecated": obj.get("deprecated")
85
- })
83
+ _obj = cls.model_validate(obj)
86
84
  return _obj
87
85
 
88
86
 
@@ -101,14 +101,7 @@ class PatchedansibleAnsibleDistribution(BaseModel):
101
101
  if not isinstance(obj, dict):
102
102
  return cls.model_validate(obj)
103
103
 
104
- _obj = cls.model_validate({
105
- "base_path": obj.get("base_path"),
106
- "content_guard": obj.get("content_guard"),
107
- "name": obj.get("name"),
108
- "repository": obj.get("repository"),
109
- "repository_version": obj.get("repository_version"),
110
- "pulp_labels": obj.get("pulp_labels")
111
- })
104
+ _obj = cls.model_validate(obj)
112
105
  return _obj
113
106
 
114
107
 
@@ -114,16 +114,7 @@ class PatchedansibleAnsibleRepository(BaseModel):
114
114
  if not isinstance(obj, dict):
115
115
  return cls.model_validate(obj)
116
116
 
117
- _obj = cls.model_validate({
118
- "pulp_labels": obj.get("pulp_labels"),
119
- "name": obj.get("name"),
120
- "description": obj.get("description"),
121
- "retain_repo_versions": obj.get("retain_repo_versions"),
122
- "remote": obj.get("remote"),
123
- "last_synced_metadata_time": obj.get("last_synced_metadata_time"),
124
- "gpgkey": obj.get("gpgkey"),
125
- "private": obj.get("private")
126
- })
117
+ _obj = cls.model_validate(obj)
127
118
  return _obj
128
119
 
129
120
 
@@ -197,34 +197,7 @@ class PatchedansibleCollectionRemote(BaseModel):
197
197
  if not isinstance(obj, dict):
198
198
  return cls.model_validate(obj)
199
199
 
200
- _obj = cls.model_validate({
201
- "name": obj.get("name"),
202
- "url": obj.get("url"),
203
- "ca_cert": obj.get("ca_cert"),
204
- "client_cert": obj.get("client_cert"),
205
- "client_key": obj.get("client_key"),
206
- "tls_validation": obj.get("tls_validation"),
207
- "proxy_url": obj.get("proxy_url"),
208
- "proxy_username": obj.get("proxy_username"),
209
- "proxy_password": obj.get("proxy_password"),
210
- "username": obj.get("username"),
211
- "password": obj.get("password"),
212
- "pulp_labels": obj.get("pulp_labels"),
213
- "download_concurrency": obj.get("download_concurrency"),
214
- "max_retries": obj.get("max_retries"),
215
- "policy": obj.get("policy"),
216
- "total_timeout": obj.get("total_timeout"),
217
- "connect_timeout": obj.get("connect_timeout"),
218
- "sock_connect_timeout": obj.get("sock_connect_timeout"),
219
- "sock_read_timeout": obj.get("sock_read_timeout"),
220
- "headers": obj.get("headers"),
221
- "rate_limit": obj.get("rate_limit"),
222
- "requirements_file": obj.get("requirements_file"),
223
- "auth_url": obj.get("auth_url"),
224
- "token": obj.get("token"),
225
- "sync_dependencies": obj.get("sync_dependencies"),
226
- "signed_only": obj.get("signed_only")
227
- })
200
+ _obj = cls.model_validate(obj)
228
201
  return _obj
229
202
 
230
203
 
@@ -28,29 +28,29 @@ class PatchedansibleGitRemote(BaseModel):
28
28
  """
29
29
  A serializer for Git Collection Remotes.
30
30
  """ # noqa: E501
31
- proxy_password: Optional[Annotated[str, Field(min_length=1, strict=True)]] = Field(default=None, description="The password to authenticate to the proxy. Extra leading and trailing whitespace characters are not trimmed.")
31
+ sock_read_timeout: Optional[Union[Annotated[float, Field(strict=True, ge=0.0)], Annotated[int, Field(strict=True, ge=0)]]] = Field(default=None, description="aiohttp.ClientTimeout.sock_read (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.")
32
+ connect_timeout: Optional[Union[Annotated[float, Field(strict=True, ge=0.0)], Annotated[int, Field(strict=True, ge=0)]]] = Field(default=None, description="aiohttp.ClientTimeout.connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.")
33
+ rate_limit: Optional[StrictInt] = Field(default=None, description="Limits requests per second for each concurrent downloader")
34
+ proxy_username: Optional[Annotated[str, Field(min_length=1, strict=True)]] = Field(default=None, description="The username to authenticte to the proxy.")
32
35
  tls_validation: Optional[StrictBool] = Field(default=None, description="If True, TLS peer validation must be performed.")
33
- password: Optional[Annotated[str, Field(min_length=1, strict=True)]] = Field(default=None, description="The password to be used for authentication when syncing. Extra leading and trailing whitespace characters are not trimmed.")
34
- total_timeout: Optional[Union[Annotated[float, Field(strict=True, ge=0.0)], Annotated[int, Field(strict=True, ge=0)]]] = Field(default=None, description="aiohttp.ClientTimeout.total (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.")
35
- download_concurrency: Optional[StrictInt] = Field(default=None, description="Total number of simultaneous connections. If not set then the default value will be used.")
36
- username: Optional[Annotated[str, Field(min_length=1, strict=True)]] = Field(default=None, description="The username to be used for authentication when syncing.")
37
36
  proxy_url: Optional[Annotated[str, Field(min_length=1, strict=True)]] = Field(default=None, description="The proxy URL. Format: scheme://host:port")
38
- client_cert: Optional[Annotated[str, Field(min_length=1, strict=True)]] = Field(default=None, description="A PEM encoded client certificate used for authentication.")
39
37
  sock_connect_timeout: Optional[Union[Annotated[float, Field(strict=True, ge=0.0)], Annotated[int, Field(strict=True, ge=0)]]] = Field(default=None, description="aiohttp.ClientTimeout.sock_connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.")
38
+ client_key: Optional[Annotated[str, Field(min_length=1, strict=True)]] = Field(default=None, description="A PEM encoded private key used for authentication.")
39
+ pulp_labels: Optional[Dict[str, Optional[StrictStr]]] = None
40
+ download_concurrency: Optional[StrictInt] = Field(default=None, description="Total number of simultaneous connections. If not set then the default value will be used.")
41
+ client_cert: Optional[Annotated[str, Field(min_length=1, strict=True)]] = Field(default=None, description="A PEM encoded client certificate used for authentication.")
42
+ proxy_password: Optional[Annotated[str, Field(min_length=1, strict=True)]] = Field(default=None, description="The password to authenticate to the proxy. Extra leading and trailing whitespace characters are not trimmed.")
40
43
  headers: Optional[List[Dict[str, Any]]] = Field(default=None, description="Headers for aiohttp.Clientsession")
44
+ url: Optional[Annotated[str, Field(min_length=1, strict=True)]] = Field(default=None, description="The URL of an external content source.")
45
+ username: Optional[Annotated[str, Field(min_length=1, strict=True)]] = Field(default=None, description="The username to be used for authentication when syncing.")
41
46
  max_retries: Optional[StrictInt] = Field(default=None, description="Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used.")
42
- proxy_username: Optional[Annotated[str, Field(min_length=1, strict=True)]] = Field(default=None, description="The username to authenticte to the proxy.")
43
- rate_limit: Optional[StrictInt] = Field(default=None, description="Limits requests per second for each concurrent downloader")
44
- pulp_labels: Optional[Dict[str, Optional[StrictStr]]] = None
45
- connect_timeout: Optional[Union[Annotated[float, Field(strict=True, ge=0.0)], Annotated[int, Field(strict=True, ge=0)]]] = Field(default=None, description="aiohttp.ClientTimeout.connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.")
46
- client_key: Optional[Annotated[str, Field(min_length=1, strict=True)]] = Field(default=None, description="A PEM encoded private key used for authentication.")
47
- sock_read_timeout: Optional[Union[Annotated[float, Field(strict=True, ge=0.0)], Annotated[int, Field(strict=True, ge=0)]]] = Field(default=None, description="aiohttp.ClientTimeout.sock_read (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.")
47
+ total_timeout: Optional[Union[Annotated[float, Field(strict=True, ge=0.0)], Annotated[int, Field(strict=True, ge=0)]]] = Field(default=None, description="aiohttp.ClientTimeout.total (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.")
48
48
  name: Optional[Annotated[str, Field(min_length=1, strict=True)]] = Field(default=None, description="A unique name for this remote.")
49
- url: Optional[Annotated[str, Field(min_length=1, strict=True)]] = Field(default=None, description="The URL of an external content source.")
50
49
  ca_cert: Optional[Annotated[str, Field(min_length=1, strict=True)]] = Field(default=None, description="A PEM encoded CA certificate used to validate the server certificate presented by the remote server.")
50
+ password: Optional[Annotated[str, Field(min_length=1, strict=True)]] = Field(default=None, description="The password to be used for authentication when syncing. Extra leading and trailing whitespace characters are not trimmed.")
51
51
  metadata_only: Optional[StrictBool] = Field(default=None, description="If True, only metadata about the content will be stored in Pulp. Clients will retrieve content from the remote URL.")
52
52
  git_ref: Optional[Annotated[str, Field(min_length=1, strict=True)]] = Field(default=None, description="A git ref. e.g.: branch, tag, or commit sha.")
53
- __properties: ClassVar[List[str]] = ["proxy_password", "tls_validation", "password", "total_timeout", "download_concurrency", "username", "proxy_url", "client_cert", "sock_connect_timeout", "headers", "max_retries", "proxy_username", "rate_limit", "pulp_labels", "connect_timeout", "client_key", "sock_read_timeout", "name", "url", "ca_cert", "metadata_only", "git_ref"]
53
+ __properties: ClassVar[List[str]] = ["sock_read_timeout", "connect_timeout", "rate_limit", "proxy_username", "tls_validation", "proxy_url", "sock_connect_timeout", "client_key", "pulp_labels", "download_concurrency", "client_cert", "proxy_password", "headers", "url", "username", "max_retries", "total_timeout", "name", "ca_cert", "password", "metadata_only", "git_ref"]
54
54
 
55
55
  model_config = ConfigDict(
56
56
  populate_by_name=True,
@@ -91,81 +91,81 @@ class PatchedansibleGitRemote(BaseModel):
91
91
  exclude=excluded_fields,
92
92
  exclude_none=True,
93
93
  )
94
- # set to None if proxy_password (nullable) is None
95
- # and model_fields_set contains the field
96
- if self.proxy_password is None and "proxy_password" in self.model_fields_set:
97
- _dict['proxy_password'] = None
98
-
99
- # set to None if password (nullable) is None
94
+ # set to None if sock_read_timeout (nullable) is None
100
95
  # and model_fields_set contains the field
101
- if self.password is None and "password" in self.model_fields_set:
102
- _dict['password'] = None
96
+ if self.sock_read_timeout is None and "sock_read_timeout" in self.model_fields_set:
97
+ _dict['sock_read_timeout'] = None
103
98
 
104
- # set to None if total_timeout (nullable) is None
99
+ # set to None if connect_timeout (nullable) is None
105
100
  # and model_fields_set contains the field
106
- if self.total_timeout is None and "total_timeout" in self.model_fields_set:
107
- _dict['total_timeout'] = None
101
+ if self.connect_timeout is None and "connect_timeout" in self.model_fields_set:
102
+ _dict['connect_timeout'] = None
108
103
 
109
- # set to None if download_concurrency (nullable) is None
104
+ # set to None if rate_limit (nullable) is None
110
105
  # and model_fields_set contains the field
111
- if self.download_concurrency is None and "download_concurrency" in self.model_fields_set:
112
- _dict['download_concurrency'] = None
106
+ if self.rate_limit is None and "rate_limit" in self.model_fields_set:
107
+ _dict['rate_limit'] = None
113
108
 
114
- # set to None if username (nullable) is None
109
+ # set to None if proxy_username (nullable) is None
115
110
  # and model_fields_set contains the field
116
- if self.username is None and "username" in self.model_fields_set:
117
- _dict['username'] = None
111
+ if self.proxy_username is None and "proxy_username" in self.model_fields_set:
112
+ _dict['proxy_username'] = None
118
113
 
119
114
  # set to None if proxy_url (nullable) is None
120
115
  # and model_fields_set contains the field
121
116
  if self.proxy_url is None and "proxy_url" in self.model_fields_set:
122
117
  _dict['proxy_url'] = None
123
118
 
124
- # set to None if client_cert (nullable) is None
125
- # and model_fields_set contains the field
126
- if self.client_cert is None and "client_cert" in self.model_fields_set:
127
- _dict['client_cert'] = None
128
-
129
119
  # set to None if sock_connect_timeout (nullable) is None
130
120
  # and model_fields_set contains the field
131
121
  if self.sock_connect_timeout is None and "sock_connect_timeout" in self.model_fields_set:
132
122
  _dict['sock_connect_timeout'] = None
133
123
 
134
- # set to None if max_retries (nullable) is None
124
+ # set to None if client_key (nullable) is None
135
125
  # and model_fields_set contains the field
136
- if self.max_retries is None and "max_retries" in self.model_fields_set:
137
- _dict['max_retries'] = None
126
+ if self.client_key is None and "client_key" in self.model_fields_set:
127
+ _dict['client_key'] = None
138
128
 
139
- # set to None if proxy_username (nullable) is None
129
+ # set to None if download_concurrency (nullable) is None
140
130
  # and model_fields_set contains the field
141
- if self.proxy_username is None and "proxy_username" in self.model_fields_set:
142
- _dict['proxy_username'] = None
131
+ if self.download_concurrency is None and "download_concurrency" in self.model_fields_set:
132
+ _dict['download_concurrency'] = None
143
133
 
144
- # set to None if rate_limit (nullable) is None
134
+ # set to None if client_cert (nullable) is None
145
135
  # and model_fields_set contains the field
146
- if self.rate_limit is None and "rate_limit" in self.model_fields_set:
147
- _dict['rate_limit'] = None
136
+ if self.client_cert is None and "client_cert" in self.model_fields_set:
137
+ _dict['client_cert'] = None
148
138
 
149
- # set to None if connect_timeout (nullable) is None
139
+ # set to None if proxy_password (nullable) is None
150
140
  # and model_fields_set contains the field
151
- if self.connect_timeout is None and "connect_timeout" in self.model_fields_set:
152
- _dict['connect_timeout'] = None
141
+ if self.proxy_password is None and "proxy_password" in self.model_fields_set:
142
+ _dict['proxy_password'] = None
153
143
 
154
- # set to None if client_key (nullable) is None
144
+ # set to None if username (nullable) is None
155
145
  # and model_fields_set contains the field
156
- if self.client_key is None and "client_key" in self.model_fields_set:
157
- _dict['client_key'] = None
146
+ if self.username is None and "username" in self.model_fields_set:
147
+ _dict['username'] = None
158
148
 
159
- # set to None if sock_read_timeout (nullable) is None
149
+ # set to None if max_retries (nullable) is None
160
150
  # and model_fields_set contains the field
161
- if self.sock_read_timeout is None and "sock_read_timeout" in self.model_fields_set:
162
- _dict['sock_read_timeout'] = None
151
+ if self.max_retries is None and "max_retries" in self.model_fields_set:
152
+ _dict['max_retries'] = None
153
+
154
+ # set to None if total_timeout (nullable) is None
155
+ # and model_fields_set contains the field
156
+ if self.total_timeout is None and "total_timeout" in self.model_fields_set:
157
+ _dict['total_timeout'] = None
163
158
 
164
159
  # set to None if ca_cert (nullable) is None
165
160
  # and model_fields_set contains the field
166
161
  if self.ca_cert is None and "ca_cert" in self.model_fields_set:
167
162
  _dict['ca_cert'] = None
168
163
 
164
+ # set to None if password (nullable) is None
165
+ # and model_fields_set contains the field
166
+ if self.password is None and "password" in self.model_fields_set:
167
+ _dict['password'] = None
168
+
169
169
  return _dict
170
170
 
171
171
  @classmethod
@@ -177,30 +177,7 @@ class PatchedansibleGitRemote(BaseModel):
177
177
  if not isinstance(obj, dict):
178
178
  return cls.model_validate(obj)
179
179
 
180
- _obj = cls.model_validate({
181
- "proxy_password": obj.get("proxy_password"),
182
- "tls_validation": obj.get("tls_validation"),
183
- "password": obj.get("password"),
184
- "total_timeout": obj.get("total_timeout"),
185
- "download_concurrency": obj.get("download_concurrency"),
186
- "username": obj.get("username"),
187
- "proxy_url": obj.get("proxy_url"),
188
- "client_cert": obj.get("client_cert"),
189
- "sock_connect_timeout": obj.get("sock_connect_timeout"),
190
- "headers": obj.get("headers"),
191
- "max_retries": obj.get("max_retries"),
192
- "proxy_username": obj.get("proxy_username"),
193
- "rate_limit": obj.get("rate_limit"),
194
- "pulp_labels": obj.get("pulp_labels"),
195
- "connect_timeout": obj.get("connect_timeout"),
196
- "client_key": obj.get("client_key"),
197
- "sock_read_timeout": obj.get("sock_read_timeout"),
198
- "name": obj.get("name"),
199
- "url": obj.get("url"),
200
- "ca_cert": obj.get("ca_cert"),
201
- "metadata_only": obj.get("metadata_only"),
202
- "git_ref": obj.get("git_ref")
203
- })
180
+ _obj = cls.model_validate(obj)
204
181
  return _obj
205
182
 
206
183
 
@@ -177,29 +177,7 @@ class PatchedansibleRoleRemote(BaseModel):
177
177
  if not isinstance(obj, dict):
178
178
  return cls.model_validate(obj)
179
179
 
180
- _obj = cls.model_validate({
181
- "name": obj.get("name"),
182
- "url": obj.get("url"),
183
- "ca_cert": obj.get("ca_cert"),
184
- "client_cert": obj.get("client_cert"),
185
- "client_key": obj.get("client_key"),
186
- "tls_validation": obj.get("tls_validation"),
187
- "proxy_url": obj.get("proxy_url"),
188
- "proxy_username": obj.get("proxy_username"),
189
- "proxy_password": obj.get("proxy_password"),
190
- "username": obj.get("username"),
191
- "password": obj.get("password"),
192
- "pulp_labels": obj.get("pulp_labels"),
193
- "download_concurrency": obj.get("download_concurrency"),
194
- "max_retries": obj.get("max_retries"),
195
- "policy": obj.get("policy"),
196
- "total_timeout": obj.get("total_timeout"),
197
- "connect_timeout": obj.get("connect_timeout"),
198
- "sock_connect_timeout": obj.get("sock_connect_timeout"),
199
- "sock_read_timeout": obj.get("sock_read_timeout"),
200
- "headers": obj.get("headers"),
201
- "rate_limit": obj.get("rate_limit")
202
- })
180
+ _obj = cls.model_validate(obj)
203
181
  return _obj
204
182
 
205
183
 
@@ -80,9 +80,7 @@ class Repair(BaseModel):
80
80
  if not isinstance(obj, dict):
81
81
  return cls.model_validate(obj)
82
82
 
83
- _obj = cls.model_validate({
84
- "verify_checksums": obj.get("verify_checksums") if obj.get("verify_checksums") is not None else True
85
- })
83
+ _obj = cls.model_validate(obj)
86
84
  return _obj
87
85
 
88
86
 
@@ -81,9 +81,7 @@ class RepoMetadataResponse(BaseModel):
81
81
  if not isinstance(obj, dict):
82
82
  return cls.model_validate(obj)
83
83
 
84
- _obj = cls.model_validate({
85
- "published": obj.get("published")
86
- })
84
+ _obj = cls.model_validate(obj)
87
85
  return _obj
88
86
 
89
87
 
@@ -100,13 +100,7 @@ class Repository(BaseModel):
100
100
  if not isinstance(obj, dict):
101
101
  return cls.model_validate(obj)
102
102
 
103
- _obj = cls.model_validate({
104
- "pulp_labels": obj.get("pulp_labels"),
105
- "name": obj.get("name"),
106
- "description": obj.get("description"),
107
- "retain_repo_versions": obj.get("retain_repo_versions"),
108
- "remote": obj.get("remote")
109
- })
103
+ _obj = cls.model_validate(obj)
110
104
  return _obj
111
105
 
112
106
 
@@ -83,11 +83,7 @@ class RepositoryAddRemoveContent(BaseModel):
83
83
  if not isinstance(obj, dict):
84
84
  return cls.model_validate(obj)
85
85
 
86
- _obj = cls.model_validate({
87
- "add_content_units": obj.get("add_content_units"),
88
- "remove_content_units": obj.get("remove_content_units"),
89
- "base_version": obj.get("base_version")
90
- })
86
+ _obj = cls.model_validate(obj)
91
87
  return _obj
92
88
 
93
89
 
@@ -118,19 +118,7 @@ class RepositoryResponse(BaseModel):
118
118
  if not isinstance(obj, dict):
119
119
  return cls.model_validate(obj)
120
120
 
121
- _obj = cls.model_validate({
122
- "pulp_href": obj.get("pulp_href"),
123
- "prn": obj.get("prn"),
124
- "pulp_created": obj.get("pulp_created"),
125
- "pulp_last_updated": obj.get("pulp_last_updated"),
126
- "versions_href": obj.get("versions_href"),
127
- "pulp_labels": obj.get("pulp_labels"),
128
- "latest_version_href": obj.get("latest_version_href"),
129
- "name": obj.get("name"),
130
- "description": obj.get("description"),
131
- "retain_repo_versions": obj.get("retain_repo_versions"),
132
- "remote": obj.get("remote")
133
- })
121
+ _obj = cls.model_validate(obj)
134
122
  return _obj
135
123
 
136
124
 
@@ -109,17 +109,7 @@ class RepositoryVersionResponse(BaseModel):
109
109
  if not isinstance(obj, dict):
110
110
  return cls.model_validate(obj)
111
111
 
112
- _obj = cls.model_validate({
113
- "pulp_href": obj.get("pulp_href"),
114
- "prn": obj.get("prn"),
115
- "pulp_created": obj.get("pulp_created"),
116
- "pulp_last_updated": obj.get("pulp_last_updated"),
117
- "number": obj.get("number"),
118
- "repository": obj.get("repository"),
119
- "base_version": obj.get("base_version"),
120
- "content_summary": ContentSummaryResponse.from_dict(obj["content_summary"]) if obj.get("content_summary") is not None else None,
121
- "vuln_report": obj.get("vuln_report")
122
- })
112
+ _obj = cls.model_validate(obj)
123
113
  return _obj
124
114
 
125
115
 
@@ -94,10 +94,7 @@ class SetLabel(BaseModel):
94
94
  if not isinstance(obj, dict):
95
95
  return cls.model_validate(obj)
96
96
 
97
- _obj = cls.model_validate({
98
- "key": obj.get("key"),
99
- "value": obj.get("value")
100
- })
97
+ _obj = cls.model_validate(obj)
101
98
  return _obj
102
99
 
103
100
 
@@ -94,10 +94,7 @@ class SetLabelResponse(BaseModel):
94
94
  if not isinstance(obj, dict):
95
95
  return cls.model_validate(obj)
96
96
 
97
- _obj = cls.model_validate({
98
- "key": obj.get("key"),
99
- "value": obj.get("value")
100
- })
97
+ _obj = cls.model_validate(obj)
101
98
  return _obj
102
99
 
103
100
 
@@ -85,10 +85,7 @@ class TagResponse(BaseModel):
85
85
  if not isinstance(obj, dict):
86
86
  return cls.model_validate(obj)
87
87
 
88
- _obj = cls.model_validate({
89
- "name": obj.get("name"),
90
- "count": obj.get("count")
91
- })
88
+ _obj = cls.model_validate(obj)
92
89
  return _obj
93
90
 
94
91
 
@@ -143,23 +143,7 @@ class UnpaginatedCollectionVersionResponse(BaseModel):
143
143
  if not isinstance(obj, dict):
144
144
  return cls.model_validate(obj)
145
145
 
146
- _obj = cls.model_validate({
147
- "version": obj.get("version"),
148
- "href": obj.get("href"),
149
- "created_at": obj.get("created_at"),
150
- "updated_at": obj.get("updated_at"),
151
- "requires_ansible": obj.get("requires_ansible"),
152
- "marks": obj.get("marks"),
153
- "artifact": ArtifactRefResponse.from_dict(obj["artifact"]) if obj.get("artifact") is not None else None,
154
- "collection": CollectionRefResponse.from_dict(obj["collection"]) if obj.get("collection") is not None else None,
155
- "download_url": obj.get("download_url"),
156
- "name": obj.get("name"),
157
- "namespace": CollectionNamespaceResponse.from_dict(obj["namespace"]) if obj.get("namespace") is not None else None,
158
- "signatures": [CollectionVersionSignatureResponse.from_dict(_item) for _item in obj["signatures"]] if obj.get("signatures") is not None else None,
159
- "metadata": CollectionMetadataResponse.from_dict(obj["metadata"]) if obj.get("metadata") is not None else None,
160
- "git_url": obj.get("git_url"),
161
- "git_commit_sha": obj.get("git_commit_sha")
162
- })
146
+ _obj = cls.model_validate(obj)
163
147
  return _obj
164
148
 
165
149
 
@@ -88,9 +88,7 @@ class UnsetLabel(BaseModel):
88
88
  if not isinstance(obj, dict):
89
89
  return cls.model_validate(obj)
90
90
 
91
- _obj = cls.model_validate({
92
- "key": obj.get("key")
93
- })
91
+ _obj = cls.model_validate(obj)
94
92
  return _obj
95
93
 
96
94