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
@@ -29,16 +29,16 @@ class AnsibleRoleResponse(BaseModel):
29
29
  A serializer for Role versions.
30
30
  """ # noqa: E501
31
31
  prn: Optional[StrictStr] = Field(default=None, description="The Pulp Resource Name (PRN).")
32
- pulp_last_updated: Optional[datetime] = Field(default=None, description="Timestamp of the last time this resource was updated. Note: for immutable resources - like content, repository versions, and publication - pulp_created and pulp_last_updated dates will be the same.")
33
32
  pulp_href: Optional[StrictStr] = None
34
- 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.")
35
33
  artifact: StrictStr = Field(description="Artifact file representing the physical content")
36
- pulp_created: Optional[datetime] = Field(default=None, description="Timestamp of creation.")
37
34
  vuln_report: Optional[StrictStr] = None
35
+ 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
+ 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
+ pulp_created: Optional[datetime] = Field(default=None, description="Timestamp of creation.")
38
38
  version: StrictStr
39
39
  name: StrictStr
40
40
  namespace: StrictStr
41
- __properties: ClassVar[List[str]] = ["prn", "pulp_last_updated", "pulp_href", "pulp_labels", "artifact", "pulp_created", "vuln_report", "version", "name", "namespace"]
41
+ __properties: ClassVar[List[str]] = ["prn", "pulp_href", "artifact", "vuln_report", "pulp_last_updated", "pulp_labels", "pulp_created", "version", "name", "namespace"]
42
42
 
43
43
  model_config = ConfigDict(
44
44
  populate_by_name=True,
@@ -78,10 +78,10 @@ class AnsibleRoleResponse(BaseModel):
78
78
  """
79
79
  excluded_fields: Set[str] = set([
80
80
  "prn",
81
- "pulp_last_updated",
82
81
  "pulp_href",
83
- "pulp_created",
84
82
  "vuln_report",
83
+ "pulp_last_updated",
84
+ "pulp_created",
85
85
  ])
86
86
 
87
87
  _dict = self.model_dump(
@@ -100,18 +100,7 @@ class AnsibleRoleResponse(BaseModel):
100
100
  if not isinstance(obj, dict):
101
101
  return cls.model_validate(obj)
102
102
 
103
- _obj = cls.model_validate({
104
- "prn": obj.get("prn"),
105
- "pulp_last_updated": obj.get("pulp_last_updated"),
106
- "pulp_href": obj.get("pulp_href"),
107
- "pulp_labels": obj.get("pulp_labels"),
108
- "artifact": obj.get("artifact"),
109
- "pulp_created": obj.get("pulp_created"),
110
- "vuln_report": obj.get("vuln_report"),
111
- "version": obj.get("version"),
112
- "name": obj.get("name"),
113
- "namespace": obj.get("namespace")
114
- })
103
+ _obj = cls.model_validate(obj)
115
104
  return _obj
116
105
 
117
106
 
@@ -82,11 +82,7 @@ class ArtifactRefResponse(BaseModel):
82
82
  if not isinstance(obj, dict):
83
83
  return cls.model_validate(obj)
84
84
 
85
- _obj = cls.model_validate({
86
- "filename": obj.get("filename"),
87
- "sha256": obj.get("sha256"),
88
- "size": obj.get("size")
89
- })
85
+ _obj = cls.model_validate(obj)
90
86
  return _obj
91
87
 
92
88
 
@@ -80,9 +80,7 @@ class AsyncOperationResponse(BaseModel):
80
80
  if not isinstance(obj, dict):
81
81
  return cls.model_validate(obj)
82
82
 
83
- _obj = cls.model_validate({
84
- "task": obj.get("task")
85
- })
83
+ _obj = cls.model_validate(obj)
86
84
  return _obj
87
85
 
88
86
 
@@ -85,9 +85,7 @@ class ClientConfigurationResponse(BaseModel):
85
85
  if not isinstance(obj, dict):
86
86
  return cls.model_validate(obj)
87
87
 
88
- _obj = cls.model_validate({
89
- "default_distribution_path": obj.get("default_distribution_path")
90
- })
88
+ _obj = cls.model_validate(obj)
91
89
  return _obj
92
90
 
93
91
 
@@ -88,16 +88,7 @@ class CollectionImportDetailResponse(BaseModel):
88
88
  if not isinstance(obj, dict):
89
89
  return cls.model_validate(obj)
90
90
 
91
- _obj = cls.model_validate({
92
- "id": obj.get("id"),
93
- "state": obj.get("state"),
94
- "created_at": obj.get("created_at"),
95
- "updated_at": obj.get("updated_at"),
96
- "started_at": obj.get("started_at"),
97
- "finished_at": obj.get("finished_at"),
98
- "error": obj.get("error"),
99
- "messages": obj.get("messages")
100
- })
91
+ _obj = cls.model_validate(obj)
101
92
  return _obj
102
93
 
103
94
 
@@ -110,18 +110,7 @@ class CollectionMetadataResponse(BaseModel):
110
110
  if not isinstance(obj, dict):
111
111
  return cls.model_validate(obj)
112
112
 
113
- _obj = cls.model_validate({
114
- "authors": obj.get("authors"),
115
- "contents": obj.get("contents"),
116
- "dependencies": obj.get("dependencies"),
117
- "description": obj.get("description"),
118
- "documentation": obj.get("documentation"),
119
- "homepage": obj.get("homepage"),
120
- "issues": obj.get("issues"),
121
- "license": obj.get("license"),
122
- "repository": obj.get("repository"),
123
- "tags": obj.get("tags")
124
- })
113
+ _obj = cls.model_validate(obj)
125
114
  return _obj
126
115
 
127
116
 
@@ -86,10 +86,7 @@ class CollectionNamespaceResponse(BaseModel):
86
86
  if not isinstance(obj, dict):
87
87
  return cls.model_validate(obj)
88
88
 
89
- _obj = cls.model_validate({
90
- "name": obj.get("name"),
91
- "metadata_sha256": obj.get("metadata_sha256")
92
- })
89
+ _obj = cls.model_validate(obj)
93
90
  return _obj
94
91
 
95
92
 
@@ -84,11 +84,7 @@ class CollectionRefResponse(BaseModel):
84
84
  if not isinstance(obj, dict):
85
85
  return cls.model_validate(obj)
86
86
 
87
- _obj = cls.model_validate({
88
- "id": obj.get("id"),
89
- "name": obj.get("name"),
90
- "href": obj.get("href")
91
- })
87
+ _obj = cls.model_validate(obj)
92
88
  return _obj
93
89
 
94
90
 
@@ -105,17 +105,7 @@ class CollectionResponse(BaseModel):
105
105
  if not isinstance(obj, dict):
106
106
  return cls.model_validate(obj)
107
107
 
108
- _obj = cls.model_validate({
109
- "href": obj.get("href"),
110
- "namespace": obj.get("namespace"),
111
- "name": obj.get("name"),
112
- "deprecated": obj.get("deprecated"),
113
- "versions_url": obj.get("versions_url"),
114
- "highest_version": obj.get("highest_version"),
115
- "created_at": obj.get("created_at"),
116
- "updated_at": obj.get("updated_at"),
117
- "download_count": obj.get("download_count")
118
- })
108
+ _obj = cls.model_validate(obj)
119
109
  return _obj
120
110
 
121
111
 
@@ -120,18 +120,7 @@ class CollectionSummaryResponse(BaseModel):
120
120
  if not isinstance(obj, dict):
121
121
  return cls.model_validate(obj)
122
122
 
123
- _obj = cls.model_validate({
124
- "pulp_href": obj.get("pulp_href"),
125
- "namespace": obj.get("namespace"),
126
- "name": obj.get("name"),
127
- "version": obj.get("version"),
128
- "requires_ansible": obj.get("requires_ansible"),
129
- "pulp_created": obj.get("pulp_created"),
130
- "contents": obj.get("contents"),
131
- "dependencies": obj.get("dependencies"),
132
- "description": obj.get("description"),
133
- "tags": [CollectionSummaryResponseTagsInner.from_dict(_item) for _item in obj["tags"]] if obj.get("tags") is not None else None
134
- })
123
+ _obj = cls.model_validate(obj)
135
124
  return _obj
136
125
 
137
126
 
@@ -80,9 +80,7 @@ class CollectionSummaryResponseTagsInner(BaseModel):
80
80
  if not isinstance(obj, dict):
81
81
  return cls.model_validate(obj)
82
82
 
83
- _obj = cls.model_validate({
84
- "name": obj.get("name")
85
- })
83
+ _obj = cls.model_validate(obj)
86
84
  return _obj
87
85
 
88
86
 
@@ -82,11 +82,7 @@ class CollectionVersionCopyMove(BaseModel):
82
82
  if not isinstance(obj, dict):
83
83
  return cls.model_validate(obj)
84
84
 
85
- _obj = cls.model_validate({
86
- "collection_versions": obj.get("collection_versions"),
87
- "destination_repositories": obj.get("destination_repositories"),
88
- "signing_service": obj.get("signing_service")
89
- })
85
+ _obj = cls.model_validate(obj)
90
86
  return _obj
91
87
 
92
88
 
@@ -80,9 +80,7 @@ class CollectionVersionDocsResponse(BaseModel):
80
80
  if not isinstance(obj, dict):
81
81
  return cls.model_validate(obj)
82
82
 
83
- _obj = cls.model_validate({
84
- "docs_blob": obj.get("docs_blob")
85
- })
83
+ _obj = cls.model_validate(obj)
86
84
  return _obj
87
85
 
88
86
 
@@ -94,14 +94,7 @@ class CollectionVersionListResponse(BaseModel):
94
94
  if not isinstance(obj, dict):
95
95
  return cls.model_validate(obj)
96
96
 
97
- _obj = cls.model_validate({
98
- "version": obj.get("version"),
99
- "href": obj.get("href"),
100
- "created_at": obj.get("created_at"),
101
- "updated_at": obj.get("updated_at"),
102
- "requires_ansible": obj.get("requires_ansible"),
103
- "marks": obj.get("marks")
104
- })
97
+ _obj = cls.model_validate(obj)
105
98
  return _obj
106
99
 
107
100
 
@@ -149,25 +149,7 @@ class CollectionVersionResponse(BaseModel):
149
149
  if not isinstance(obj, dict):
150
150
  return cls.model_validate(obj)
151
151
 
152
- _obj = cls.model_validate({
153
- "version": obj.get("version"),
154
- "href": obj.get("href"),
155
- "created_at": obj.get("created_at"),
156
- "updated_at": obj.get("updated_at"),
157
- "requires_ansible": obj.get("requires_ansible"),
158
- "marks": obj.get("marks"),
159
- "artifact": ArtifactRefResponse.from_dict(obj["artifact"]) if obj.get("artifact") is not None else None,
160
- "collection": CollectionRefResponse.from_dict(obj["collection"]) if obj.get("collection") is not None else None,
161
- "download_url": obj.get("download_url"),
162
- "name": obj.get("name"),
163
- "namespace": CollectionNamespaceResponse.from_dict(obj["namespace"]) if obj.get("namespace") is not None else None,
164
- "signatures": [CollectionVersionSignatureResponse.from_dict(_item) for _item in obj["signatures"]] if obj.get("signatures") is not None else None,
165
- "metadata": CollectionMetadataResponse.from_dict(obj["metadata"]) if obj.get("metadata") is not None else None,
166
- "git_url": obj.get("git_url"),
167
- "git_commit_sha": obj.get("git_commit_sha"),
168
- "manifest": obj.get("manifest"),
169
- "files": obj.get("files")
170
- })
152
+ _obj = cls.model_validate(obj)
171
153
  return _obj
172
154
 
173
155
 
@@ -97,13 +97,7 @@ class CollectionVersionSearchList(BaseModel):
97
97
  if not isinstance(obj, dict):
98
98
  return cls.model_validate(obj)
99
99
 
100
- _obj = cls.model_validate({
101
- "repository": Repository.from_dict(obj["repository"]) if obj.get("repository") is not None else None,
102
- "namespace_metadata": AnsibleAnsibleNamespaceMetadata.from_dict(obj["namespace_metadata"]) if obj.get("namespace_metadata") is not None else None,
103
- "is_highest": obj.get("is_highest"),
104
- "is_deprecated": obj.get("is_deprecated"),
105
- "is_signed": obj.get("is_signed")
106
- })
100
+ _obj = cls.model_validate(obj)
107
101
  return _obj
108
102
 
109
103
 
@@ -105,15 +105,7 @@ class CollectionVersionSearchListResponse(BaseModel):
105
105
  if not isinstance(obj, dict):
106
106
  return cls.model_validate(obj)
107
107
 
108
- _obj = cls.model_validate({
109
- "repository": RepositoryResponse.from_dict(obj["repository"]) if obj.get("repository") is not None else None,
110
- "collection_version": CollectionSummaryResponse.from_dict(obj["collection_version"]) if obj.get("collection_version") is not None else None,
111
- "repository_version": obj.get("repository_version"),
112
- "namespace_metadata": AnsibleAnsibleNamespaceMetadataResponse.from_dict(obj["namespace_metadata"]) if obj.get("namespace_metadata") is not None else None,
113
- "is_highest": obj.get("is_highest"),
114
- "is_deprecated": obj.get("is_deprecated"),
115
- "is_signed": obj.get("is_signed")
116
- })
108
+ _obj = cls.model_validate(obj)
117
109
  return _obj
118
110
 
119
111
 
@@ -96,12 +96,7 @@ class CollectionVersionSignatureResponse(BaseModel):
96
96
  if not isinstance(obj, dict):
97
97
  return cls.model_validate(obj)
98
98
 
99
- _obj = cls.model_validate({
100
- "signature": obj.get("signature"),
101
- "pubkey_fingerprint": obj.get("pubkey_fingerprint"),
102
- "signing_service": obj.get("signing_service"),
103
- "pulp_created": obj.get("pulp_created")
104
- })
99
+ _obj = cls.model_validate(obj)
105
100
  return _obj
106
101
 
107
102
 
@@ -82,11 +82,7 @@ class ContentSummaryResponse(BaseModel):
82
82
  if not isinstance(obj, dict):
83
83
  return cls.model_validate(obj)
84
84
 
85
- _obj = cls.model_validate({
86
- "added": obj.get("added"),
87
- "removed": obj.get("removed"),
88
- "present": obj.get("present")
89
- })
85
+ _obj = cls.model_validate(obj)
90
86
  return _obj
91
87
 
92
88
 
@@ -80,9 +80,7 @@ class Copy(BaseModel):
80
80
  if not isinstance(obj, dict):
81
81
  return cls.model_validate(obj)
82
82
 
83
- _obj = cls.model_validate({
84
- "config": obj.get("config")
85
- })
83
+ _obj = cls.model_validate(obj)
86
84
  return _obj
87
85
 
88
86
 
@@ -84,11 +84,7 @@ class GalaxyRoleResponse(BaseModel):
84
84
  if not isinstance(obj, dict):
85
85
  return cls.model_validate(obj)
86
86
 
87
- _obj = cls.model_validate({
88
- "id": obj.get("id"),
89
- "name": obj.get("name"),
90
- "namespace": obj.get("namespace")
91
- })
87
+ _obj = cls.model_validate(obj)
92
88
  return _obj
93
89
 
94
90
 
@@ -83,10 +83,7 @@ class GalaxyRoleVersionResponse(BaseModel):
83
83
  if not isinstance(obj, dict):
84
84
  return cls.model_validate(obj)
85
85
 
86
- _obj = cls.model_validate({
87
- "name": obj.get("name"),
88
- "source": obj.get("source")
89
- })
86
+ _obj = cls.model_validate(obj)
90
87
  return _obj
91
88
 
92
89
 
@@ -80,9 +80,7 @@ class MyPermissionsResponse(BaseModel):
80
80
  if not isinstance(obj, dict):
81
81
  return cls.model_validate(obj)
82
82
 
83
- _obj = cls.model_validate({
84
- "permissions": obj.get("permissions")
85
- })
83
+ _obj = cls.model_validate(obj)
86
84
  return _obj
87
85
 
88
86
 
@@ -82,10 +82,7 @@ class NamespaceLink(BaseModel):
82
82
  if not isinstance(obj, dict):
83
83
  return cls.model_validate(obj)
84
84
 
85
- _obj = cls.model_validate({
86
- "url": obj.get("url"),
87
- "name": obj.get("name")
88
- })
85
+ _obj = cls.model_validate(obj)
89
86
  return _obj
90
87
 
91
88
 
@@ -82,10 +82,7 @@ class NamespaceLinkResponse(BaseModel):
82
82
  if not isinstance(obj, dict):
83
83
  return cls.model_validate(obj)
84
84
 
85
- _obj = cls.model_validate({
86
- "url": obj.get("url"),
87
- "name": obj.get("name")
88
- })
85
+ _obj = cls.model_validate(obj)
89
86
  return _obj
90
87
 
91
88
 
@@ -83,11 +83,7 @@ class NestedRole(BaseModel):
83
83
  if not isinstance(obj, dict):
84
84
  return cls.model_validate(obj)
85
85
 
86
- _obj = cls.model_validate({
87
- "users": obj.get("users"),
88
- "groups": obj.get("groups"),
89
- "role": obj.get("role")
90
- })
86
+ _obj = cls.model_validate(obj)
91
87
  return _obj
92
88
 
93
89
 
@@ -82,11 +82,7 @@ class NestedRoleResponse(BaseModel):
82
82
  if not isinstance(obj, dict):
83
83
  return cls.model_validate(obj)
84
84
 
85
- _obj = cls.model_validate({
86
- "users": obj.get("users"),
87
- "groups": obj.get("groups"),
88
- "role": obj.get("role")
89
- })
85
+ _obj = cls.model_validate(obj)
90
86
  return _obj
91
87
 
92
88
 
@@ -88,9 +88,7 @@ class ObjectRolesResponse(BaseModel):
88
88
  if not isinstance(obj, dict):
89
89
  return cls.model_validate(obj)
90
90
 
91
- _obj = cls.model_validate({
92
- "roles": [NestedRoleResponse.from_dict(_item) for _item in obj["roles"]] if obj.get("roles") is not None else None
93
- })
91
+ _obj = cls.model_validate(obj)
94
92
  return _obj
95
93
 
96
94
 
@@ -98,11 +98,7 @@ class PaginatedCollectionResponseList(BaseModel):
98
98
  if not isinstance(obj, dict):
99
99
  return cls.model_validate(obj)
100
100
 
101
- _obj = cls.model_validate({
102
- "meta": PaginatedCollectionResponseListMeta.from_dict(obj["meta"]) if obj.get("meta") is not None else None,
103
- "links": PaginatedCollectionResponseListLinks.from_dict(obj["links"]) if obj.get("links") is not None else None,
104
- "data": [CollectionResponse.from_dict(_item) for _item in obj["data"]] if obj.get("data") is not None else None
105
- })
101
+ _obj = cls.model_validate(obj)
106
102
  return _obj
107
103
 
108
104
 
@@ -83,12 +83,7 @@ class PaginatedCollectionResponseListLinks(BaseModel):
83
83
  if not isinstance(obj, dict):
84
84
  return cls.model_validate(obj)
85
85
 
86
- _obj = cls.model_validate({
87
- "first": obj.get("first"),
88
- "previous": obj.get("previous"),
89
- "next": obj.get("next"),
90
- "last": obj.get("last")
91
- })
86
+ _obj = cls.model_validate(obj)
92
87
  return _obj
93
88
 
94
89
 
@@ -80,9 +80,7 @@ class PaginatedCollectionResponseListMeta(BaseModel):
80
80
  if not isinstance(obj, dict):
81
81
  return cls.model_validate(obj)
82
82
 
83
- _obj = cls.model_validate({
84
- "count": obj.get("count")
85
- })
83
+ _obj = cls.model_validate(obj)
86
84
  return _obj
87
85
 
88
86
 
@@ -98,11 +98,7 @@ class PaginatedCollectionVersionListResponseList(BaseModel):
98
98
  if not isinstance(obj, dict):
99
99
  return cls.model_validate(obj)
100
100
 
101
- _obj = cls.model_validate({
102
- "meta": PaginatedCollectionResponseListMeta.from_dict(obj["meta"]) if obj.get("meta") is not None else None,
103
- "links": PaginatedCollectionResponseListLinks.from_dict(obj["links"]) if obj.get("links") is not None else None,
104
- "data": [CollectionVersionListResponse.from_dict(_item) for _item in obj["data"]] if obj.get("data") is not None else None
105
- })
101
+ _obj = cls.model_validate(obj)
106
102
  return _obj
107
103
 
108
104
 
@@ -98,11 +98,7 @@ class PaginatedCollectionVersionSearchListResponseList(BaseModel):
98
98
  if not isinstance(obj, dict):
99
99
  return cls.model_validate(obj)
100
100
 
101
- _obj = cls.model_validate({
102
- "meta": PaginatedCollectionResponseListMeta.from_dict(obj["meta"]) if obj.get("meta") is not None else None,
103
- "links": PaginatedCollectionResponseListLinks.from_dict(obj["links"]) if obj.get("links") is not None else None,
104
- "data": [CollectionVersionSearchListResponse.from_dict(_item) for _item in obj["data"]] if obj.get("data") is not None else None
105
- })
101
+ _obj = cls.model_validate(obj)
106
102
  return _obj
107
103
 
108
104
 
@@ -91,12 +91,7 @@ class PaginatedGalaxyRoleResponseList(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": [GalaxyRoleResponse.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 PaginatedGalaxyRoleVersionResponseList(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": [GalaxyRoleVersionResponse.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 PaginatedRepositoryVersionResponseList(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": [RepositoryVersionResponse.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 PaginatedTagResponseList(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": [TagResponse.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 PaginatedansibleAnsibleCollectionDeprecatedResponseList(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": [AnsibleAnsibleCollectionDeprecatedResponse.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 PaginatedansibleAnsibleDistributionResponseList(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": [AnsibleAnsibleDistributionResponse.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 PaginatedansibleAnsibleNamespaceMetadataResponseList(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": [AnsibleAnsibleNamespaceMetadataResponse.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