python-alfresco-api 1.0.0__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.
- python_alfresco_api/__init__.py +43 -0
- python_alfresco_api/auth_util.py +103 -0
- python_alfresco_api/client_factory.py +111 -0
- python_alfresco_api/clients/__init__.py +1 -0
- python_alfresco_api/clients/auth_client.py +85 -0
- python_alfresco_api/clients/core_client.py +85 -0
- python_alfresco_api/clients/discovery_client.py +85 -0
- python_alfresco_api/clients/model_client.py +85 -0
- python_alfresco_api/clients/search_client.py +85 -0
- python_alfresco_api/clients/search_sql_client.py +85 -0
- python_alfresco_api/clients/workflow_client.py +85 -0
- python_alfresco_api/events/__init__.py +15 -0
- python_alfresco_api/events/event_client.py +268 -0
- python_alfresco_api/events/models.py +35 -0
- python_alfresco_api/examples/basic_usage.py +52 -0
- python_alfresco_api/examples/llm_integration.py +155 -0
- python_alfresco_api/models/__init__.py +45 -0
- python_alfresco_api/models/alfresco_auth_models.py +42 -0
- python_alfresco_api/models/alfresco_core_models.py +1288 -0
- python_alfresco_api/models/alfresco_discovery_models.py +84 -0
- python_alfresco_api/models/alfresco_model_models.py +161 -0
- python_alfresco_api/models/alfresco_search_models.py +720 -0
- python_alfresco_api/models/alfresco_search_sql_models.py +91 -0
- python_alfresco_api/models/alfresco_workflow_models.py +357 -0
- python_alfresco_api/raw_clients/alfresco_auth_client/.gitignore +23 -0
- python_alfresco_api/raw_clients/alfresco_auth_client/README.md +124 -0
- python_alfresco_api/raw_clients/alfresco_auth_client/auth_client/__init__.py +8 -0
- python_alfresco_api/raw_clients/alfresco_auth_client/auth_client/api/__init__.py +1 -0
- python_alfresco_api/raw_clients/alfresco_auth_client/auth_client/api/authentication/__init__.py +1 -0
- python_alfresco_api/raw_clients/alfresco_auth_client/auth_client/api/authentication/create_ticket.py +236 -0
- python_alfresco_api/raw_clients/alfresco_auth_client/auth_client/api/authentication/delete_ticket.py +91 -0
- python_alfresco_api/raw_clients/alfresco_auth_client/auth_client/api/authentication/validate_ticket.py +171 -0
- python_alfresco_api/raw_clients/alfresco_auth_client/auth_client/client.py +268 -0
- python_alfresco_api/raw_clients/alfresco_auth_client/auth_client/errors.py +16 -0
- python_alfresco_api/raw_clients/alfresco_auth_client/auth_client/models/__init__.py +19 -0
- python_alfresco_api/raw_clients/alfresco_auth_client/auth_client/models/error.py +65 -0
- python_alfresco_api/raw_clients/alfresco_auth_client/auth_client/models/error_error.py +104 -0
- python_alfresco_api/raw_clients/alfresco_auth_client/auth_client/models/ticket.py +68 -0
- python_alfresco_api/raw_clients/alfresco_auth_client/auth_client/models/ticket_body.py +68 -0
- python_alfresco_api/raw_clients/alfresco_auth_client/auth_client/models/ticket_entry.py +65 -0
- python_alfresco_api/raw_clients/alfresco_auth_client/auth_client/models/valid_ticket.py +59 -0
- python_alfresco_api/raw_clients/alfresco_auth_client/auth_client/models/valid_ticket_entry.py +65 -0
- python_alfresco_api/raw_clients/alfresco_auth_client/auth_client/py.typed +1 -0
- python_alfresco_api/raw_clients/alfresco_auth_client/auth_client/types.py +54 -0
- python_alfresco_api/raw_clients/alfresco_auth_client/pyproject.toml +27 -0
- python_alfresco_api/raw_clients/alfresco_core_client/.gitignore +23 -0
- python_alfresco_api/raw_clients/alfresco_core_client/README.md +124 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/__init__.py +8 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/__init__.py +1 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/actions/__init__.py +1 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/actions/action_details.py +172 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/actions/action_exec.py +384 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/actions/list_actions.py +261 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/actions/node_actions.py +277 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/activities/__init__.py +1 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/activities/list_activities_for_person.py +263 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/audit/__init__.py +1 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/audit/delete_audit_entries_for_audit_app.py +148 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/audit/delete_audit_entry.py +122 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/audit/get_audit_app.py +245 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/audit/get_audit_entry.py +227 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/audit/list_audit_apps.py +256 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/audit/list_audit_entries_for_audit_app.py +372 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/audit/list_audit_entries_for_node.py +329 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/audit/update_audit_app.py +259 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/comments/__init__.py +1 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/comments/create_comment.py +414 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/comments/delete_comment.py +112 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/comments/list_comments.py +229 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/comments/update_comment.py +232 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/favorites/__init__.py +1 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/favorites/create_favorite.py +443 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/favorites/create_site_favorite.py +407 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/favorites/delete_favorite.py +112 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/favorites/delete_site_favorite.py +120 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/favorites/get_favorite.py +229 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/favorites/get_favorite_site.py +137 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/favorites/list_favorite_sites_for_person.py +150 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/favorites/list_favorites.py +419 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/groups/__init__.py +1 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/groups/create_group.py +285 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/groups/create_group_membership.py +255 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/groups/delete_group.py +138 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/groups/delete_group_membership.py +130 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/groups/get_group.py +227 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/groups/list_group_memberships.py +331 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/groups/list_group_memberships_for_person.py +447 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/groups/list_groups.py +487 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/groups/update_group.py +254 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/networks/__init__.py +1 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/networks/get_network.py +189 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/networks/get_network_for_person.py +210 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/networks/list_networks_for_person.py +230 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/nodes/__init__.py +1 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/nodes/copy_node.py +285 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/nodes/create_association.py +410 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/nodes/create_node.py +1327 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/nodes/create_secondary_child_association.py +410 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/nodes/delete_association.py +149 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/nodes/delete_node.py +162 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/nodes/delete_secondary_child_association.py +145 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/nodes/get_node.py +245 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/nodes/list_node_children.py +440 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/nodes/list_parents.py +290 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/nodes/list_secondary_children.py +286 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/nodes/list_source_associations.py +237 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/nodes/list_target_associations.py +237 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/nodes/lock_node.py +374 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/nodes/move_node.py +281 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/nodes/unlock_node.py +245 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/nodes/update_node.py +477 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/nodes/update_node_content.py +363 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/people/__init__.py +1 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/people/create_person.py +298 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/people/delete_avatar_image.py +115 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/people/get_person.py +197 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/people/list_people.py +292 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/people/request_password_reset.py +153 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/people/reset_password.py +139 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/people/update_avatar_image.py +144 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/people/update_person.py +327 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/preferences/__init__.py +1 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/preferences/get_preference.py +213 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/preferences/list_preferences.py +245 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/probes/__init__.py +1 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/probes/get_probe.py +196 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/queries/__init__.py +1 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/queries/find_nodes.py +380 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/queries/find_people.py +296 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/queries/find_sites.py +181 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/ratings/__init__.py +1 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/ratings/create_rating.py +216 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/ratings/delete_rating.py +110 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/ratings/get_rating.py +205 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/ratings/list_ratings.py +222 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/renditions/__init__.py +1 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/renditions/create_rendition.py +165 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/renditions/get_rendition.py +191 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/renditions/list_renditions.py +247 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/shared_links/__init__.py +1 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/shared_links/create_shared_link.py +440 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/shared_links/delete_shared_link.py +111 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/shared_links/email_shared_link.py +187 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/shared_links/get_shared_link.py +208 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/shared_links/get_shared_link_rendition.py +208 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/shared_links/list_shared_link_renditions.py +195 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/shared_links/list_shared_links.py +271 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/sites/__init__.py +1 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/sites/approve_site_membership_request.py +130 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/sites/create_site.py +202 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/sites/create_site_group_membership.py +415 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/sites/create_site_membership.py +423 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/sites/create_site_membership_request_for_person.py +247 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/sites/delete_site.py +122 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/sites/delete_site_group_membership.py +114 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/sites/delete_site_membership.py +114 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/sites/delete_site_membership_for_person.py +112 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/sites/delete_site_membership_request_for_person.py +112 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/sites/get_site.py +155 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/sites/get_site_container.py +202 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/sites/get_site_group_membership.py +210 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/sites/get_site_membership.py +210 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/sites/get_site_membership_for_person.py +110 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/sites/get_site_membership_request_for_person.py +129 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/sites/get_site_membership_requests.py +176 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/sites/list_site_containers.py +222 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/sites/list_site_groups.py +230 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/sites/list_site_membership_requests_for_person.py +142 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/sites/list_site_memberships.py +237 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/sites/list_site_memberships_for_person.py +225 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/sites/list_sites.py +236 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/sites/reject_site_membership_request.py +130 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/sites/update_site.py +147 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/sites/update_site_group_membership.py +257 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/sites/update_site_membership.py +265 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/sites/update_site_membership_request_for_person.py +146 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/tags/__init__.py +1 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/tags/create_tag_for_node.py +411 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/tags/delete_tag_from_node.py +110 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/tags/get_tag.py +189 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/tags/list_tags.py +233 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/tags/list_tags_for_node.py +225 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/tags/update_tag.py +213 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/trashcan/__init__.py +1 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/trashcan/delete_deleted_node.py +109 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/trashcan/get_archived_node_rendition.py +191 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/trashcan/get_deleted_node.py +203 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/trashcan/list_deleted_node_renditions.py +247 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/trashcan/list_deleted_nodes.py +234 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/trashcan/restore_deleted_node.py +270 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/versions/__init__.py +1 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/versions/create_version_rendition.py +172 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/versions/delete_version.py +140 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/versions/get_version.py +191 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/versions/get_version_rendition.py +204 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/versions/list_version_history.py +264 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/versions/list_version_renditions.py +260 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/api/versions/revert_version.py +252 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/client.py +268 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/errors.py +16 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/__init__.py +391 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/action_body_exec.py +92 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/action_body_exec_params.py +44 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/action_definition.py +130 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/action_definition_entry.py +65 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/action_definition_list.py +72 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/action_definition_list_list.py +93 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/action_exec_result.py +59 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/action_exec_result_entry.py +65 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/action_parameter_definition.py +95 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/activity.py +137 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/activity_activity_summary.py +44 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/activity_entry.py +67 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/activity_paging.py +65 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/activity_paging_list.py +93 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/association.py +67 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/association_body.py +67 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/association_entry.py +65 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/association_info.py +59 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/audit_app.py +97 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/audit_app_entry.py +72 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/audit_app_paging.py +72 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/audit_app_paging_list.py +93 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/audit_body_update.py +59 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/audit_entry.py +111 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/audit_entry_entry.py +72 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/audit_entry_paging.py +72 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/audit_entry_paging_list.py +93 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/audit_entry_values.py +44 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/capabilities.py +77 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/child_association.py +67 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/child_association_body.py +67 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/child_association_entry.py +65 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/child_association_info.py +67 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/client_body.py +59 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/comment.py +139 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/comment_body.py +59 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/comment_entry.py +65 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/comment_paging.py +65 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/comment_paging_list.py +93 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/company.py +122 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/constraint.py +110 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/constraint_parameters.py +57 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/constraint_parameters_additional_property.py +44 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/content_info.py +88 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/definition.py +76 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/deleted_node.py +298 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/deleted_node_body_restore.py +68 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/deleted_node_entry.py +72 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/deleted_nodes_paging.py +72 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/deleted_nodes_paging_list.py +93 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/direct_access_url_body_create.py +77 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/download.py +113 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/download_body_create.py +59 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/download_entry.py +65 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/download_status.py +12 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/error.py +65 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/error_error.py +104 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/favorite.py +114 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/favorite_body_create.py +65 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/favorite_body_create_target.py +44 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/favorite_entry.py +66 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/favorite_paging.py +65 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/favorite_paging_list.py +93 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/favorite_properties.py +47 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/favorite_site.py +59 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/favorite_site_body_create.py +59 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/favorite_site_entry.py +65 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/favorite_target.py +44 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/group.py +99 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/group_body_create.py +80 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/group_body_update.py +59 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/group_entry.py +65 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/group_member.py +77 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/group_member_entry.py +65 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/group_member_member_type.py +9 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/group_member_paging.py +72 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/group_member_paging_list.py +93 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/group_membership_body_create.py +69 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/group_membership_body_create_member_type.py +9 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/group_paging.py +72 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/group_paging_list.py +93 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/network_quota.py +78 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/node.py +282 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/node_association.py +300 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/node_association_entry.py +65 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/node_association_paging.py +72 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/node_association_paging_list.py +111 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/node_body_copy.py +72 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/node_body_create.py +256 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/node_body_create_association.py +59 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/node_body_create_properties.py +44 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/node_body_lock.py +93 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/node_body_lock_lifetime.py +9 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/node_body_lock_type.py +9 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/node_body_move.py +72 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/node_body_update.py +121 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/node_body_update_properties.py +44 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/node_child_association.py +300 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/node_child_association_entry.py +65 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/node_child_association_paging.py +72 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/node_child_association_paging_list.py +111 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/node_entry.py +65 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/node_paging.py +72 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/node_paging_list.py +111 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/node_properties.py +44 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/pagination.py +103 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/password_reset_body.py +75 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/path_element.py +88 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/path_info.py +93 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/permission_element.py +85 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/permission_element_access_status.py +9 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/permissions_body.py +84 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/permissions_info.py +114 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/person.py +289 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/person_body_create.py +244 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/person_body_create_properties.py +44 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/person_body_update.py +245 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/person_body_update_properties.py +44 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/person_entry.py +65 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/person_network.py +150 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/person_network_entry.py +67 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/person_network_paging.py +65 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/person_network_paging_list.py +93 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/person_network_subscription_level.py +10 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/person_paging.py +72 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/person_paging_list.py +93 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/person_properties.py +44 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/preference.py +71 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/preference_entry.py +65 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/preference_paging.py +65 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/preference_paging_list.py +93 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/probe_entry.py +65 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/probe_entry_entry.py +59 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/property_.py +158 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/rating.py +106 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/rating_aggregate.py +68 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/rating_body.py +70 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/rating_body_id.py +9 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/rating_entry.py +67 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/rating_paging.py +65 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/rating_paging_list.py +93 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/rendition.py +98 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/rendition_body_create.py +59 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/rendition_entry.py +65 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/rendition_paging.py +72 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/rendition_paging_list.py +93 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/rendition_status.py +9 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/revert_body.py +68 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/shared_link.py +269 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/shared_link_body_create.py +79 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/shared_link_body_email.py +88 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/shared_link_entry.py +65 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/shared_link_paging.py +65 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/shared_link_paging_list.py +93 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/shared_link_properties.py +47 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/site_body_create.py +88 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/site_body_create_visibility.py +10 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/site_body_update.py +85 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/site_body_update_visibility.py +10 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/site_container.py +67 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/site_container_entry.py +65 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/site_container_paging.py +65 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/site_container_paging_list.py +93 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/site_group.py +83 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/site_group_entry.py +65 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/site_group_paging.py +65 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/site_group_paging_list.py +93 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/site_group_role.py +11 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/site_member.py +93 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/site_member_entry.py +65 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/site_member_paging.py +65 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/site_member_paging_list.py +93 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/site_member_role.py +11 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/site_membership_approval_body.py +59 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/site_membership_body_create.py +69 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/site_membership_body_create_role.py +11 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/site_membership_body_update.py +61 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/site_membership_body_update_role.py +11 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/site_membership_rejection_body.py +59 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/site_membership_request_body_create.py +91 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/site_membership_request_body_update.py +59 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/site_role_role.py +11 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/tag.py +78 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/tag_body.py +59 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/tag_entry.py +65 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/tag_paging.py +65 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/tag_paging_list.py +93 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/user_info.py +67 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/version.py +174 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/version_entry.py +72 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/version_paging.py +72 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/version_paging_list.py +93 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/models/version_properties.py +44 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/py.typed +1 -0
- python_alfresco_api/raw_clients/alfresco_core_client/core_client/types.py +54 -0
- python_alfresco_api/raw_clients/alfresco_core_client/pyproject.toml +27 -0
- python_alfresco_api/raw_clients/alfresco_discovery_client/.gitignore +23 -0
- python_alfresco_api/raw_clients/alfresco_discovery_client/README.md +124 -0
- python_alfresco_api/raw_clients/alfresco_discovery_client/discovery_client/__init__.py +8 -0
- python_alfresco_api/raw_clients/alfresco_discovery_client/discovery_client/api/__init__.py +1 -0
- python_alfresco_api/raw_clients/alfresco_discovery_client/discovery_client/api/discovery/__init__.py +1 -0
- python_alfresco_api/raw_clients/alfresco_discovery_client/discovery_client/api/discovery/get_repository_information.py +145 -0
- python_alfresco_api/raw_clients/alfresco_discovery_client/discovery_client/client.py +268 -0
- python_alfresco_api/raw_clients/alfresco_discovery_client/discovery_client/errors.py +16 -0
- python_alfresco_api/raw_clients/alfresco_discovery_client/discovery_client/models/__init__.py +25 -0
- python_alfresco_api/raw_clients/alfresco_discovery_client/discovery_client/models/discovery_entry.py +65 -0
- python_alfresco_api/raw_clients/alfresco_discovery_client/discovery_client/models/entitlements_info.py +86 -0
- python_alfresco_api/raw_clients/alfresco_discovery_client/discovery_client/models/error.py +65 -0
- python_alfresco_api/raw_clients/alfresco_discovery_client/discovery_client/models/error_error.py +104 -0
- python_alfresco_api/raw_clients/alfresco_discovery_client/discovery_client/models/license_info.py +117 -0
- python_alfresco_api/raw_clients/alfresco_discovery_client/discovery_client/models/module_info.py +131 -0
- python_alfresco_api/raw_clients/alfresco_discovery_client/discovery_client/models/repository_entry.py +65 -0
- python_alfresco_api/raw_clients/alfresco_discovery_client/discovery_client/models/repository_info.py +132 -0
- python_alfresco_api/raw_clients/alfresco_discovery_client/discovery_client/models/status_info.py +83 -0
- python_alfresco_api/raw_clients/alfresco_discovery_client/discovery_client/models/version_info.py +107 -0
- python_alfresco_api/raw_clients/alfresco_discovery_client/discovery_client/py.typed +1 -0
- python_alfresco_api/raw_clients/alfresco_discovery_client/discovery_client/types.py +54 -0
- python_alfresco_api/raw_clients/alfresco_discovery_client/pyproject.toml +27 -0
- python_alfresco_api/raw_clients/alfresco_model_client/.gitignore +23 -0
- python_alfresco_api/raw_clients/alfresco_model_client/README.md +124 -0
- python_alfresco_api/raw_clients/alfresco_model_client/model_client/__init__.py +8 -0
- python_alfresco_api/raw_clients/alfresco_model_client/model_client/api/__init__.py +1 -0
- python_alfresco_api/raw_clients/alfresco_model_client/model_client/api/aspects/__init__.py +1 -0
- python_alfresco_api/raw_clients/alfresco_model_client/model_client/api/aspects/get_aspect.py +103 -0
- python_alfresco_api/raw_clients/alfresco_model_client/model_client/api/aspects/list_aspects.py +256 -0
- python_alfresco_api/raw_clients/alfresco_model_client/model_client/api/types/__init__.py +1 -0
- python_alfresco_api/raw_clients/alfresco_model_client/model_client/api/types/get_type.py +103 -0
- python_alfresco_api/raw_clients/alfresco_model_client/model_client/api/types/list_types.py +270 -0
- python_alfresco_api/raw_clients/alfresco_model_client/model_client/client.py +268 -0
- python_alfresco_api/raw_clients/alfresco_model_client/model_client/errors.py +16 -0
- python_alfresco_api/raw_clients/alfresco_model_client/model_client/models/__init__.py +27 -0
- python_alfresco_api/raw_clients/alfresco_model_client/model_client/models/abstract_class.py +189 -0
- python_alfresco_api/raw_clients/alfresco_model_client/model_client/models/abstract_class_association.py +135 -0
- python_alfresco_api/raw_clients/alfresco_model_client/model_client/models/abstract_class_association_source.py +95 -0
- python_alfresco_api/raw_clients/alfresco_model_client/model_client/models/constraint.py +110 -0
- python_alfresco_api/raw_clients/alfresco_model_client/model_client/models/constraint_parameters.py +57 -0
- python_alfresco_api/raw_clients/alfresco_model_client/model_client/models/constraint_parameters_additional_property.py +44 -0
- python_alfresco_api/raw_clients/alfresco_model_client/model_client/models/error.py +65 -0
- python_alfresco_api/raw_clients/alfresco_model_client/model_client/models/error_error.py +104 -0
- python_alfresco_api/raw_clients/alfresco_model_client/model_client/models/model.py +97 -0
- python_alfresco_api/raw_clients/alfresco_model_client/model_client/models/pagination.py +103 -0
- python_alfresco_api/raw_clients/alfresco_model_client/model_client/models/property_.py +158 -0
- python_alfresco_api/raw_clients/alfresco_model_client/model_client/py.typed +1 -0
- python_alfresco_api/raw_clients/alfresco_model_client/model_client/types.py +54 -0
- python_alfresco_api/raw_clients/alfresco_model_client/pyproject.toml +27 -0
- python_alfresco_api/raw_clients/alfresco_search_client/.gitignore +23 -0
- python_alfresco_api/raw_clients/alfresco_search_client/README.md +124 -0
- python_alfresco_api/raw_clients/alfresco_search_client/pyproject.toml +27 -0
- python_alfresco_api/raw_clients/alfresco_search_client/search_client/__init__.py +8 -0
- python_alfresco_api/raw_clients/alfresco_search_client/search_client/api/__init__.py +1 -0
- python_alfresco_api/raw_clients/alfresco_search_client/search_client/api/search/__init__.py +1 -0
- python_alfresco_api/raw_clients/alfresco_search_client/search_client/api/search/search.py +1451 -0
- python_alfresco_api/raw_clients/alfresco_search_client/search_client/client.py +268 -0
- python_alfresco_api/raw_clients/alfresco_search_client/search_client/errors.py +16 -0
- python_alfresco_api/raw_clients/alfresco_search_client/search_client/models/__init__.py +125 -0
- python_alfresco_api/raw_clients/alfresco_search_client/search_client/models/content_info.py +95 -0
- python_alfresco_api/raw_clients/alfresco_search_client/search_client/models/error.py +65 -0
- python_alfresco_api/raw_clients/alfresco_search_client/search_client/models/error_error.py +104 -0
- python_alfresco_api/raw_clients/alfresco_search_client/search_client/models/generic_bucket.py +151 -0
- python_alfresco_api/raw_clients/alfresco_search_client/search_client/models/generic_bucket_bucket_info.py +87 -0
- python_alfresco_api/raw_clients/alfresco_search_client/search_client/models/generic_bucket_display.py +44 -0
- python_alfresco_api/raw_clients/alfresco_search_client/search_client/models/generic_bucket_facets_item.py +44 -0
- python_alfresco_api/raw_clients/alfresco_search_client/search_client/models/generic_facet_response.py +93 -0
- python_alfresco_api/raw_clients/alfresco_search_client/search_client/models/generic_metric.py +82 -0
- python_alfresco_api/raw_clients/alfresco_search_client/search_client/models/generic_metric_value.py +44 -0
- python_alfresco_api/raw_clients/alfresco_search_client/search_client/models/node.py +237 -0
- python_alfresco_api/raw_clients/alfresco_search_client/search_client/models/node_properties.py +44 -0
- python_alfresco_api/raw_clients/alfresco_search_client/search_client/models/pagination.py +100 -0
- python_alfresco_api/raw_clients/alfresco_search_client/search_client/models/path_element.py +68 -0
- python_alfresco_api/raw_clients/alfresco_search_client/search_client/models/path_info.py +93 -0
- python_alfresco_api/raw_clients/alfresco_search_client/search_client/models/request_defaults.py +126 -0
- python_alfresco_api/raw_clients/alfresco_search_client/search_client/models/request_defaults_default_fts_field_operator.py +9 -0
- python_alfresco_api/raw_clients/alfresco_search_client/search_client/models/request_defaults_default_fts_operator.py +9 -0
- python_alfresco_api/raw_clients/alfresco_search_client/search_client/models/request_facet_field.py +172 -0
- python_alfresco_api/raw_clients/alfresco_search_client/search_client/models/request_facet_field_method.py +9 -0
- python_alfresco_api/raw_clients/alfresco_search_client/search_client/models/request_facet_field_sort.py +9 -0
- python_alfresco_api/raw_clients/alfresco_search_client/search_client/models/request_facet_fields.py +79 -0
- python_alfresco_api/raw_clients/alfresco_search_client/search_client/models/request_facet_intervals.py +97 -0
- python_alfresco_api/raw_clients/alfresco_search_client/search_client/models/request_facet_intervals_intervals_item.py +93 -0
- python_alfresco_api/raw_clients/alfresco_search_client/search_client/models/request_facet_queries_item.py +68 -0
- python_alfresco_api/raw_clients/alfresco_search_client/search_client/models/request_facet_set.py +98 -0
- python_alfresco_api/raw_clients/alfresco_search_client/search_client/models/request_filter_queries_item.py +72 -0
- python_alfresco_api/raw_clients/alfresco_search_client/search_client/models/request_highlight.py +143 -0
- python_alfresco_api/raw_clients/alfresco_search_client/search_client/models/request_highlight_fields_item.py +104 -0
- python_alfresco_api/raw_clients/alfresco_search_client/search_client/models/request_include_item.py +13 -0
- python_alfresco_api/raw_clients/alfresco_search_client/search_client/models/request_limits.py +71 -0
- python_alfresco_api/raw_clients/alfresco_search_client/search_client/models/request_localization.py +73 -0
- python_alfresco_api/raw_clients/alfresco_search_client/search_client/models/request_pagination.py +68 -0
- python_alfresco_api/raw_clients/alfresco_search_client/search_client/models/request_pivot.py +82 -0
- python_alfresco_api/raw_clients/alfresco_search_client/search_client/models/request_query.py +89 -0
- python_alfresco_api/raw_clients/alfresco_search_client/search_client/models/request_query_language.py +10 -0
- python_alfresco_api/raw_clients/alfresco_search_client/search_client/models/request_range.py +139 -0
- python_alfresco_api/raw_clients/alfresco_search_client/search_client/models/request_scope.py +68 -0
- python_alfresco_api/raw_clients/alfresco_search_client/search_client/models/request_scope_locations.py +10 -0
- python_alfresco_api/raw_clients/alfresco_search_client/search_client/models/request_sort_definition_item.py +87 -0
- python_alfresco_api/raw_clients/alfresco_search_client/search_client/models/request_sort_definition_item_type.py +10 -0
- python_alfresco_api/raw_clients/alfresco_search_client/search_client/models/request_spellcheck.py +61 -0
- python_alfresco_api/raw_clients/alfresco_search_client/search_client/models/request_stats.py +202 -0
- python_alfresco_api/raw_clients/alfresco_search_client/search_client/models/request_templates_item.py +68 -0
- python_alfresco_api/raw_clients/alfresco_search_client/search_client/models/response_consistency.py +60 -0
- python_alfresco_api/raw_clients/alfresco_search_client/search_client/models/result_buckets.py +84 -0
- python_alfresco_api/raw_clients/alfresco_search_client/search_client/models/result_buckets_buckets_item.py +99 -0
- python_alfresco_api/raw_clients/alfresco_search_client/search_client/models/result_buckets_buckets_item_display.py +44 -0
- python_alfresco_api/raw_clients/alfresco_search_client/search_client/models/result_node.py +305 -0
- python_alfresco_api/raw_clients/alfresco_search_client/search_client/models/result_set_context.py +181 -0
- python_alfresco_api/raw_clients/alfresco_search_client/search_client/models/result_set_context_facet_queries_item.py +77 -0
- python_alfresco_api/raw_clients/alfresco_search_client/search_client/models/result_set_context_spellcheck_item.py +78 -0
- python_alfresco_api/raw_clients/alfresco_search_client/search_client/models/result_set_context_spellcheck_item_type.py +9 -0
- python_alfresco_api/raw_clients/alfresco_search_client/search_client/models/result_set_paging.py +73 -0
- python_alfresco_api/raw_clients/alfresco_search_client/search_client/models/result_set_paging_list.py +111 -0
- python_alfresco_api/raw_clients/alfresco_search_client/search_client/models/result_set_row_entry.py +66 -0
- python_alfresco_api/raw_clients/alfresco_search_client/search_client/models/search_entry.py +85 -0
- python_alfresco_api/raw_clients/alfresco_search_client/search_client/models/search_entry_highlight_item.py +71 -0
- python_alfresco_api/raw_clients/alfresco_search_client/search_client/models/search_request.py +452 -0
- python_alfresco_api/raw_clients/alfresco_search_client/search_client/models/user_info.py +67 -0
- python_alfresco_api/raw_clients/alfresco_search_client/search_client/py.typed +1 -0
- python_alfresco_api/raw_clients/alfresco_search_client/search_client/types.py +54 -0
- python_alfresco_api/raw_clients/alfresco_search_sql_client/.gitignore +23 -0
- python_alfresco_api/raw_clients/alfresco_search_sql_client/README.md +124 -0
- python_alfresco_api/raw_clients/alfresco_search_sql_client/pyproject.toml +27 -0
- python_alfresco_api/raw_clients/alfresco_search_sql_client/search_sql_client/__init__.py +8 -0
- python_alfresco_api/raw_clients/alfresco_search_sql_client/search_sql_client/api/__init__.py +1 -0
- python_alfresco_api/raw_clients/alfresco_search_sql_client/search_sql_client/api/sql/__init__.py +1 -0
- python_alfresco_api/raw_clients/alfresco_search_sql_client/search_sql_client/api/sql/search.py +751 -0
- python_alfresco_api/raw_clients/alfresco_search_sql_client/search_sql_client/client.py +268 -0
- python_alfresco_api/raw_clients/alfresco_search_sql_client/search_sql_client/errors.py +16 -0
- python_alfresco_api/raw_clients/alfresco_search_sql_client/search_sql_client/models/__init__.py +23 -0
- python_alfresco_api/raw_clients/alfresco_search_sql_client/search_sql_client/models/docs_item.py +68 -0
- python_alfresco_api/raw_clients/alfresco_search_sql_client/search_sql_client/models/error.py +65 -0
- python_alfresco_api/raw_clients/alfresco_search_sql_client/search_sql_client/models/error_error.py +104 -0
- python_alfresco_api/raw_clients/alfresco_search_sql_client/search_sql_client/models/pagination.py +100 -0
- python_alfresco_api/raw_clients/alfresco_search_sql_client/search_sql_client/models/solr_result_set.py +77 -0
- python_alfresco_api/raw_clients/alfresco_search_sql_client/search_sql_client/models/sql_result_set_paging.py +73 -0
- python_alfresco_api/raw_clients/alfresco_search_sql_client/search_sql_client/models/sql_result_set_paging_list.py +93 -0
- python_alfresco_api/raw_clients/alfresco_search_sql_client/search_sql_client/models/sql_result_set_row_entry.py +68 -0
- python_alfresco_api/raw_clients/alfresco_search_sql_client/search_sql_client/models/sql_search_request.py +108 -0
- python_alfresco_api/raw_clients/alfresco_search_sql_client/search_sql_client/py.typed +1 -0
- python_alfresco_api/raw_clients/alfresco_search_sql_client/search_sql_client/types.py +54 -0
- python_alfresco_api/raw_clients/alfresco_workflow_client/.gitignore +23 -0
- python_alfresco_api/raw_clients/alfresco_workflow_client/README.md +124 -0
- python_alfresco_api/raw_clients/alfresco_workflow_client/pyproject.toml +27 -0
- python_alfresco_api/raw_clients/alfresco_workflow_client/workflow_client/__init__.py +8 -0
- python_alfresco_api/raw_clients/alfresco_workflow_client/workflow_client/api/__init__.py +1 -0
- python_alfresco_api/raw_clients/alfresco_workflow_client/workflow_client/api/deployments/__init__.py +1 -0
- python_alfresco_api/raw_clients/alfresco_workflow_client/workflow_client/api/deployments/delete_deployment.py +105 -0
- python_alfresco_api/raw_clients/alfresco_workflow_client/workflow_client/api/deployments/get_deployment.py +213 -0
- python_alfresco_api/raw_clients/alfresco_workflow_client/workflow_client/api/deployments/list_deployments.py +230 -0
- python_alfresco_api/raw_clients/alfresco_workflow_client/workflow_client/api/process_definitions/__init__.py +1 -0
- python_alfresco_api/raw_clients/alfresco_workflow_client/workflow_client/api/process_definitions/get_process_definition.py +205 -0
- python_alfresco_api/raw_clients/alfresco_workflow_client/workflow_client/api/process_definitions/get_process_definition_image.py +188 -0
- python_alfresco_api/raw_clients/alfresco_workflow_client/workflow_client/api/process_definitions/get_process_definition_start_form_model.py +201 -0
- python_alfresco_api/raw_clients/alfresco_workflow_client/workflow_client/api/process_definitions/list_process_definitions.py +264 -0
- python_alfresco_api/raw_clients/alfresco_workflow_client/workflow_client/api/processes/__init__.py +1 -0
- python_alfresco_api/raw_clients/alfresco_workflow_client/workflow_client/api/processes/create_process.py +385 -0
- python_alfresco_api/raw_clients/alfresco_workflow_client/workflow_client/api/processes/create_process_item.py +365 -0
- python_alfresco_api/raw_clients/alfresco_workflow_client/workflow_client/api/processes/create_process_variable.py +202 -0
- python_alfresco_api/raw_clients/alfresco_workflow_client/workflow_client/api/processes/create_process_variables.py +381 -0
- python_alfresco_api/raw_clients/alfresco_workflow_client/workflow_client/api/processes/delete_process.py +101 -0
- python_alfresco_api/raw_clients/alfresco_workflow_client/workflow_client/api/processes/delete_process_item.py +108 -0
- python_alfresco_api/raw_clients/alfresco_workflow_client/workflow_client/api/processes/delete_process_variable.py +108 -0
- python_alfresco_api/raw_clients/alfresco_workflow_client/workflow_client/api/processes/get_process.py +229 -0
- python_alfresco_api/raw_clients/alfresco_workflow_client/workflow_client/api/processes/list_process_items.py +262 -0
- python_alfresco_api/raw_clients/alfresco_workflow_client/workflow_client/api/processes/list_process_variables.py +262 -0
- python_alfresco_api/raw_clients/alfresco_workflow_client/workflow_client/api/processes/list_processes.py +284 -0
- python_alfresco_api/raw_clients/alfresco_workflow_client/workflow_client/api/tasks/__init__.py +1 -0
- python_alfresco_api/raw_clients/alfresco_workflow_client/workflow_client/api/tasks/create_task_item.py +365 -0
- python_alfresco_api/raw_clients/alfresco_workflow_client/workflow_client/api/tasks/create_task_variables.py +378 -0
- python_alfresco_api/raw_clients/alfresco_workflow_client/workflow_client/api/tasks/delete_task_item.py +108 -0
- python_alfresco_api/raw_clients/alfresco_workflow_client/workflow_client/api/tasks/delete_task_variable.py +110 -0
- python_alfresco_api/raw_clients/alfresco_workflow_client/workflow_client/api/tasks/get_task.py +229 -0
- python_alfresco_api/raw_clients/alfresco_workflow_client/workflow_client/api/tasks/get_task_form_model.py +238 -0
- python_alfresco_api/raw_clients/alfresco_workflow_client/workflow_client/api/tasks/list_task_candidates.py +222 -0
- python_alfresco_api/raw_clients/alfresco_workflow_client/workflow_client/api/tasks/list_task_items.py +262 -0
- python_alfresco_api/raw_clients/alfresco_workflow_client/workflow_client/api/tasks/list_task_variables.py +277 -0
- python_alfresco_api/raw_clients/alfresco_workflow_client/workflow_client/api/tasks/list_tasks.py +276 -0
- python_alfresco_api/raw_clients/alfresco_workflow_client/workflow_client/api/tasks/list_tasks_for_process.py +281 -0
- python_alfresco_api/raw_clients/alfresco_workflow_client/workflow_client/api/tasks/update_task.py +830 -0
- python_alfresco_api/raw_clients/alfresco_workflow_client/workflow_client/api/tasks/update_task_variable.py +202 -0
- python_alfresco_api/raw_clients/alfresco_workflow_client/workflow_client/client.py +268 -0
- python_alfresco_api/raw_clients/alfresco_workflow_client/workflow_client/errors.py +16 -0
- python_alfresco_api/raw_clients/alfresco_workflow_client/workflow_client/models/__init__.py +95 -0
- python_alfresco_api/raw_clients/alfresco_workflow_client/workflow_client/models/candidate.py +77 -0
- python_alfresco_api/raw_clients/alfresco_workflow_client/workflow_client/models/candidate_candidate_type.py +9 -0
- python_alfresco_api/raw_clients/alfresco_workflow_client/workflow_client/models/candidate_entry.py +72 -0
- python_alfresco_api/raw_clients/alfresco_workflow_client/workflow_client/models/candidate_paging.py +72 -0
- python_alfresco_api/raw_clients/alfresco_workflow_client/workflow_client/models/candidate_paging_list.py +93 -0
- python_alfresco_api/raw_clients/alfresco_workflow_client/workflow_client/models/company.py +122 -0
- python_alfresco_api/raw_clients/alfresco_workflow_client/workflow_client/models/deployment.py +116 -0
- python_alfresco_api/raw_clients/alfresco_workflow_client/workflow_client/models/deployment_entry.py +90 -0
- python_alfresco_api/raw_clients/alfresco_workflow_client/workflow_client/models/deployment_paging.py +72 -0
- python_alfresco_api/raw_clients/alfresco_workflow_client/workflow_client/models/deployment_paging_list.py +93 -0
- python_alfresco_api/raw_clients/alfresco_workflow_client/workflow_client/models/error.py +65 -0
- python_alfresco_api/raw_clients/alfresco_workflow_client/workflow_client/models/error_error.py +104 -0
- python_alfresco_api/raw_clients/alfresco_workflow_client/workflow_client/models/item.py +195 -0
- python_alfresco_api/raw_clients/alfresco_workflow_client/workflow_client/models/item_body.py +60 -0
- python_alfresco_api/raw_clients/alfresco_workflow_client/workflow_client/models/item_entry.py +72 -0
- python_alfresco_api/raw_clients/alfresco_workflow_client/workflow_client/models/item_paging.py +72 -0
- python_alfresco_api/raw_clients/alfresco_workflow_client/workflow_client/models/item_paging_list.py +93 -0
- python_alfresco_api/raw_clients/alfresco_workflow_client/workflow_client/models/pagination.py +102 -0
- python_alfresco_api/raw_clients/alfresco_workflow_client/workflow_client/models/person.py +236 -0
- python_alfresco_api/raw_clients/alfresco_workflow_client/workflow_client/models/process.py +171 -0
- python_alfresco_api/raw_clients/alfresco_workflow_client/workflow_client/models/process_body.py +82 -0
- python_alfresco_api/raw_clients/alfresco_workflow_client/workflow_client/models/process_body_variable.py +78 -0
- python_alfresco_api/raw_clients/alfresco_workflow_client/workflow_client/models/process_definition.py +136 -0
- python_alfresco_api/raw_clients/alfresco_workflow_client/workflow_client/models/process_definition_entry.py +74 -0
- python_alfresco_api/raw_clients/alfresco_workflow_client/workflow_client/models/process_definition_paging.py +72 -0
- python_alfresco_api/raw_clients/alfresco_workflow_client/workflow_client/models/process_definition_paging_list.py +93 -0
- python_alfresco_api/raw_clients/alfresco_workflow_client/workflow_client/models/process_entry.py +84 -0
- python_alfresco_api/raw_clients/alfresco_workflow_client/workflow_client/models/process_paging.py +72 -0
- python_alfresco_api/raw_clients/alfresco_workflow_client/workflow_client/models/process_paging_list.py +93 -0
- python_alfresco_api/raw_clients/alfresco_workflow_client/workflow_client/models/task.py +244 -0
- python_alfresco_api/raw_clients/alfresco_workflow_client/workflow_client/models/task_body.py +147 -0
- python_alfresco_api/raw_clients/alfresco_workflow_client/workflow_client/models/task_body_state.py +11 -0
- python_alfresco_api/raw_clients/alfresco_workflow_client/workflow_client/models/task_entry.py +72 -0
- python_alfresco_api/raw_clients/alfresco_workflow_client/workflow_client/models/task_form_model.py +116 -0
- python_alfresco_api/raw_clients/alfresco_workflow_client/workflow_client/models/task_form_model_entry.py +72 -0
- python_alfresco_api/raw_clients/alfresco_workflow_client/workflow_client/models/task_form_model_paging.py +72 -0
- python_alfresco_api/raw_clients/alfresco_workflow_client/workflow_client/models/task_form_model_paging_list.py +93 -0
- python_alfresco_api/raw_clients/alfresco_workflow_client/workflow_client/models/task_paging.py +72 -0
- python_alfresco_api/raw_clients/alfresco_workflow_client/workflow_client/models/task_paging_list.py +93 -0
- python_alfresco_api/raw_clients/alfresco_workflow_client/workflow_client/models/task_state.py +11 -0
- python_alfresco_api/raw_clients/alfresco_workflow_client/workflow_client/models/variable.py +87 -0
- python_alfresco_api/raw_clients/alfresco_workflow_client/workflow_client/models/variable_body.py +78 -0
- python_alfresco_api/raw_clients/alfresco_workflow_client/workflow_client/models/variable_entry.py +72 -0
- python_alfresco_api/raw_clients/alfresco_workflow_client/workflow_client/models/variable_paging.py +72 -0
- python_alfresco_api/raw_clients/alfresco_workflow_client/workflow_client/models/variable_paging_list.py +93 -0
- python_alfresco_api/raw_clients/alfresco_workflow_client/workflow_client/py.typed +1 -0
- python_alfresco_api/raw_clients/alfresco_workflow_client/workflow_client/types.py +54 -0
- python_alfresco_api/tests/__init__.py +1 -0
- python_alfresco_api/tests/test_basic.py +115 -0
- python_alfresco_api-1.0.0.dist-info/METADATA +795 -0
- python_alfresco_api-1.0.0.dist-info/RECORD +635 -0
- python_alfresco_api-1.0.0.dist-info/WHEEL +4 -0
- python_alfresco_api-1.0.0.dist-info/licenses/LICENSE +201 -0
|
@@ -0,0 +1,1327 @@
|
|
|
1
|
+
from http import HTTPStatus
|
|
2
|
+
from typing import Any, Optional, Union, cast
|
|
3
|
+
|
|
4
|
+
import httpx
|
|
5
|
+
|
|
6
|
+
from ... import errors
|
|
7
|
+
from ...client import AuthenticatedClient, Client
|
|
8
|
+
from ...models.node_body_create import NodeBodyCreate
|
|
9
|
+
from ...models.node_entry import NodeEntry
|
|
10
|
+
from ...types import UNSET, Response, Unset
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
def _get_kwargs(
|
|
14
|
+
node_id: str,
|
|
15
|
+
*,
|
|
16
|
+
body: Union[
|
|
17
|
+
NodeBodyCreate,
|
|
18
|
+
NodeBodyCreate,
|
|
19
|
+
],
|
|
20
|
+
auto_rename: Union[Unset, bool] = UNSET,
|
|
21
|
+
major_version: Union[Unset, bool] = UNSET,
|
|
22
|
+
versioning_enabled: Union[Unset, bool] = UNSET,
|
|
23
|
+
include: Union[Unset, list[str]] = UNSET,
|
|
24
|
+
fields: Union[Unset, list[str]] = UNSET,
|
|
25
|
+
) -> dict[str, Any]:
|
|
26
|
+
headers: dict[str, Any] = {}
|
|
27
|
+
|
|
28
|
+
params: dict[str, Any] = {}
|
|
29
|
+
|
|
30
|
+
params["autoRename"] = auto_rename
|
|
31
|
+
|
|
32
|
+
params["majorVersion"] = major_version
|
|
33
|
+
|
|
34
|
+
params["versioningEnabled"] = versioning_enabled
|
|
35
|
+
|
|
36
|
+
json_include: Union[Unset, list[str]] = UNSET
|
|
37
|
+
if not isinstance(include, Unset):
|
|
38
|
+
json_include = include
|
|
39
|
+
|
|
40
|
+
params["include"] = json_include
|
|
41
|
+
|
|
42
|
+
json_fields: Union[Unset, list[str]] = UNSET
|
|
43
|
+
if not isinstance(fields, Unset):
|
|
44
|
+
json_fields = fields
|
|
45
|
+
|
|
46
|
+
params["fields"] = json_fields
|
|
47
|
+
|
|
48
|
+
params = {k: v for k, v in params.items() if v is not UNSET and v is not None}
|
|
49
|
+
|
|
50
|
+
_kwargs: dict[str, Any] = {
|
|
51
|
+
"method": "post",
|
|
52
|
+
"url": f"/nodes/{node_id}/children",
|
|
53
|
+
"params": params,
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
if isinstance(body, NodeBodyCreate):
|
|
57
|
+
_kwargs["json"] = body.to_dict()
|
|
58
|
+
|
|
59
|
+
headers["Content-Type"] = "application/json"
|
|
60
|
+
if isinstance(body, NodeBodyCreate):
|
|
61
|
+
_kwargs["files"] = body.to_multipart()
|
|
62
|
+
|
|
63
|
+
headers["Content-Type"] = "multipart/form-data"
|
|
64
|
+
|
|
65
|
+
_kwargs["headers"] = headers
|
|
66
|
+
return _kwargs
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
def _parse_response(
|
|
70
|
+
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
|
|
71
|
+
) -> Optional[Union[Any, NodeEntry]]:
|
|
72
|
+
if response.status_code == 201:
|
|
73
|
+
response_201 = NodeEntry.from_dict(response.json())
|
|
74
|
+
|
|
75
|
+
return response_201
|
|
76
|
+
if response.status_code == 400:
|
|
77
|
+
response_400 = cast(Any, None)
|
|
78
|
+
return response_400
|
|
79
|
+
if response.status_code == 401:
|
|
80
|
+
response_401 = cast(Any, None)
|
|
81
|
+
return response_401
|
|
82
|
+
if response.status_code == 403:
|
|
83
|
+
response_403 = cast(Any, None)
|
|
84
|
+
return response_403
|
|
85
|
+
if response.status_code == 404:
|
|
86
|
+
response_404 = cast(Any, None)
|
|
87
|
+
return response_404
|
|
88
|
+
if response.status_code == 409:
|
|
89
|
+
response_409 = cast(Any, None)
|
|
90
|
+
return response_409
|
|
91
|
+
if response.status_code == 413:
|
|
92
|
+
response_413 = cast(Any, None)
|
|
93
|
+
return response_413
|
|
94
|
+
if response.status_code == 415:
|
|
95
|
+
response_415 = cast(Any, None)
|
|
96
|
+
return response_415
|
|
97
|
+
if response.status_code == 422:
|
|
98
|
+
response_422 = cast(Any, None)
|
|
99
|
+
return response_422
|
|
100
|
+
if response.status_code == 507:
|
|
101
|
+
response_507 = cast(Any, None)
|
|
102
|
+
return response_507
|
|
103
|
+
if client.raise_on_unexpected_status:
|
|
104
|
+
raise errors.UnexpectedStatus(response.status_code, response.content)
|
|
105
|
+
else:
|
|
106
|
+
return None
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
def _build_response(
|
|
110
|
+
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
|
|
111
|
+
) -> Response[Union[Any, NodeEntry]]:
|
|
112
|
+
return Response(
|
|
113
|
+
status_code=HTTPStatus(response.status_code),
|
|
114
|
+
content=response.content,
|
|
115
|
+
headers=response.headers,
|
|
116
|
+
parsed=_parse_response(client=client, response=response),
|
|
117
|
+
)
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
def sync_detailed(
|
|
121
|
+
node_id: str,
|
|
122
|
+
*,
|
|
123
|
+
client: Union[AuthenticatedClient, Client],
|
|
124
|
+
body: Union[
|
|
125
|
+
NodeBodyCreate,
|
|
126
|
+
NodeBodyCreate,
|
|
127
|
+
],
|
|
128
|
+
auto_rename: Union[Unset, bool] = UNSET,
|
|
129
|
+
major_version: Union[Unset, bool] = UNSET,
|
|
130
|
+
versioning_enabled: Union[Unset, bool] = UNSET,
|
|
131
|
+
include: Union[Unset, list[str]] = UNSET,
|
|
132
|
+
fields: Union[Unset, list[str]] = UNSET,
|
|
133
|
+
) -> Response[Union[Any, NodeEntry]]:
|
|
134
|
+
r"""Create a node
|
|
135
|
+
|
|
136
|
+
**Note:** this endpoint is available in Alfresco 5.2 and newer versions.
|
|
137
|
+
|
|
138
|
+
Create a node and add it as a primary child of node **nodeId**.
|
|
139
|
+
|
|
140
|
+
This endpoint supports both JSON and multipart/form-data (file upload).
|
|
141
|
+
|
|
142
|
+
**Using multipart/form-data**
|
|
143
|
+
|
|
144
|
+
Use the **filedata** field to represent the content to upload, for example, the following curl
|
|
145
|
+
command will
|
|
146
|
+
create a node with the contents of test.txt in the test user's home folder.
|
|
147
|
+
|
|
148
|
+
```curl -utest:test -X POST
|
|
149
|
+
host:port/alfresco/api/-default-/public/alfresco/versions/1/nodes/-my-/children -F
|
|
150
|
+
filedata=@test.txt```
|
|
151
|
+
|
|
152
|
+
You can use the **name** field to give an alternative name for the new file.
|
|
153
|
+
|
|
154
|
+
You can use the **nodeType** field to create a specific type. The default is cm:content.
|
|
155
|
+
|
|
156
|
+
You can use the **renditions** field to create renditions (e.g. doclib) asynchronously upon upload.
|
|
157
|
+
Also, as requesting rendition is a background process,
|
|
158
|
+
any rendition failure (e.g. No transformer is currently available) will not fail the whole upload
|
|
159
|
+
and has the potential to silently fail.
|
|
160
|
+
|
|
161
|
+
Use **overwrite** to overwrite an existing file, matched by name. If the file is versionable,
|
|
162
|
+
the existing content is replaced.
|
|
163
|
+
|
|
164
|
+
When you overwrite existing content, you can set the **majorVersion** boolean field to **true** to
|
|
165
|
+
indicate a major version
|
|
166
|
+
should be created. The default for **majorVersion** is **false**.
|
|
167
|
+
Setting **majorVersion** enables versioning of the node, if it is not already versioned.
|
|
168
|
+
|
|
169
|
+
When you overwrite existing content, you can use the **comment** field to add a version comment that
|
|
170
|
+
appears in the
|
|
171
|
+
version history. This also enables versioning of this node, if it is not already versioned.
|
|
172
|
+
|
|
173
|
+
You can set the **autoRename** boolean field to automatically resolve name clashes. If there is a
|
|
174
|
+
name clash, then
|
|
175
|
+
the API method tries to create a unique name using an integer suffix.
|
|
176
|
+
|
|
177
|
+
You can use the **relativePath** field to specify the folder structure to create relative to the
|
|
178
|
+
node **nodeId**.
|
|
179
|
+
Folders in the **relativePath** that do not exist are created before the node is created.
|
|
180
|
+
|
|
181
|
+
Any other field provided will be treated as a property to set on the newly created node.
|
|
182
|
+
|
|
183
|
+
**Note:** setting properties of type d:content and d:category are not supported.
|
|
184
|
+
|
|
185
|
+
**Note:** When creating a new node using multipart/form-data by default versioning is enabled and
|
|
186
|
+
set to MAJOR Version.
|
|
187
|
+
Since Alfresco 6.2.3 **versioningEnabled** flag was introduced offering better control over the new
|
|
188
|
+
node Versioning.
|
|
189
|
+
|
|
190
|
+
| **versioningEnabled** | **majorVersion** | **Version Type** |
|
|
191
|
+
|-----------------------|------------------|------------------|
|
|
192
|
+
| unset | unset | MAJOR |
|
|
193
|
+
| unset | true | MAJOR |
|
|
194
|
+
| unset | false | MINOR |
|
|
195
|
+
| true | unset | MAJOR |
|
|
196
|
+
| true | true | MAJOR |
|
|
197
|
+
| true | false | MINOR |
|
|
198
|
+
| false | true | Unversioned |
|
|
199
|
+
| false | false | Unversioned |
|
|
200
|
+
| false | true | Unversioned |
|
|
201
|
+
<br>
|
|
202
|
+
|
|
203
|
+
**Using JSON**
|
|
204
|
+
|
|
205
|
+
You must specify at least a **name** and **nodeType**. For example, to create a folder:
|
|
206
|
+
```JSON
|
|
207
|
+
{
|
|
208
|
+
\"name\":\"My Folder\",
|
|
209
|
+
\"nodeType\":\"cm:folder\"
|
|
210
|
+
}
|
|
211
|
+
```
|
|
212
|
+
|
|
213
|
+
You can create an empty file like this:
|
|
214
|
+
```JSON
|
|
215
|
+
{
|
|
216
|
+
\"name\":\"My text file.txt\",
|
|
217
|
+
\"nodeType\":\"cm:content\"
|
|
218
|
+
}
|
|
219
|
+
```
|
|
220
|
+
You can update binary content using the ```PUT /nodes/{nodeId}``` API method.
|
|
221
|
+
|
|
222
|
+
You can create a folder, or other node, inside a folder hierarchy:
|
|
223
|
+
```JSON
|
|
224
|
+
{
|
|
225
|
+
\"name\":\"My Special Folder\",
|
|
226
|
+
\"nodeType\":\"cm:folder\",
|
|
227
|
+
\"relativePath\":\"X/Y/Z\"
|
|
228
|
+
}
|
|
229
|
+
```
|
|
230
|
+
The **relativePath** specifies the folder structure to create relative to the node **nodeId**.
|
|
231
|
+
Folders in the
|
|
232
|
+
**relativePath** that do not exist are created before the node is created.
|
|
233
|
+
|
|
234
|
+
You can set properties when you create a new node:
|
|
235
|
+
```JSON
|
|
236
|
+
{
|
|
237
|
+
\"name\":\"My Other Folder\",
|
|
238
|
+
\"nodeType\":\"cm:folder\",
|
|
239
|
+
\"properties\":
|
|
240
|
+
{
|
|
241
|
+
\"cm:title\":\"Folder title\",
|
|
242
|
+
\"cm:description\":\"This is an important folder\"
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
```
|
|
246
|
+
|
|
247
|
+
You can set multi-value properties when you create a new node which supports properties of type
|
|
248
|
+
multiple.
|
|
249
|
+
```JSON
|
|
250
|
+
{
|
|
251
|
+
\"name\":\"My Other Folder\",
|
|
252
|
+
\"nodeType\":\"custom:destination\",
|
|
253
|
+
\"properties\":
|
|
254
|
+
{
|
|
255
|
+
\"cm:title\":\"Folder title\",
|
|
256
|
+
\"cm:description\":\"This is an important folder\",
|
|
257
|
+
\"custom:locations\": [
|
|
258
|
+
\"location X\",
|
|
259
|
+
\"location Y\"
|
|
260
|
+
]
|
|
261
|
+
}
|
|
262
|
+
}
|
|
263
|
+
```
|
|
264
|
+
|
|
265
|
+
Any missing aspects are applied automatically. For example, **cm:titled** in the JSON shown above.
|
|
266
|
+
You can set aspects
|
|
267
|
+
explicitly, if needed, using an **aspectNames** field.
|
|
268
|
+
|
|
269
|
+
**Note:** setting properties of type d:content and d:category are not supported.
|
|
270
|
+
|
|
271
|
+
You can also optionally disable (or enable) inherited permissions via *isInheritanceEnabled* flag:
|
|
272
|
+
```JSON
|
|
273
|
+
{
|
|
274
|
+
\"permissions\":
|
|
275
|
+
{
|
|
276
|
+
\"isInheritanceEnabled\": false,
|
|
277
|
+
\"locallySet\":
|
|
278
|
+
[
|
|
279
|
+
{\"authorityId\": \"GROUP_special\", \"name\": \"Read\", \"accessStatus\":\"DENIED\"},
|
|
280
|
+
{\"authorityId\": \"testuser\", \"name\": \"Contributor\", \"accessStatus\":\"ALLOWED\"}
|
|
281
|
+
]
|
|
282
|
+
}
|
|
283
|
+
}
|
|
284
|
+
```
|
|
285
|
+
|
|
286
|
+
Typically, for files and folders, the primary children are created within the parent folder using
|
|
287
|
+
the default \"cm:contains\" assocType.
|
|
288
|
+
If the content model allows then it is also possible to create primary children with a different
|
|
289
|
+
assoc type. For example:
|
|
290
|
+
```JSON
|
|
291
|
+
{
|
|
292
|
+
\"name\":\"My Node\",
|
|
293
|
+
\"nodeType\":\"my:specialNodeType\",
|
|
294
|
+
\"association\":
|
|
295
|
+
{
|
|
296
|
+
\"assocType\":\"my:specialAssocType\"
|
|
297
|
+
}
|
|
298
|
+
}
|
|
299
|
+
```
|
|
300
|
+
|
|
301
|
+
Additional associations can be added after creating a node. You can also add associations at the
|
|
302
|
+
time the node is created. This is
|
|
303
|
+
required, for example, if the content model specifies that a node has mandatory associations to one
|
|
304
|
+
or more existing nodes. You can optionally
|
|
305
|
+
specify an array of **secondaryChildren** to create one or more secondary child associations, such
|
|
306
|
+
that the newly created node acts as a parent node.
|
|
307
|
+
You can optionally specify an array of **targets** to create one or more peer associations such that
|
|
308
|
+
the newly created node acts as a source node.
|
|
309
|
+
For example, to associate one or more secondary children at time of creation:
|
|
310
|
+
```JSON
|
|
311
|
+
{
|
|
312
|
+
\"name\":\"My Folder\",
|
|
313
|
+
\"nodeType\":\"cm:folder\",
|
|
314
|
+
\"secondaryChildren\":
|
|
315
|
+
[ {\"childId\":\"abcde-01234-...\", \"assocType\":\"my:specialChildAssocType\"} ]
|
|
316
|
+
}
|
|
317
|
+
```
|
|
318
|
+
For example, to associate one or more targets at time of creation:
|
|
319
|
+
```JSON
|
|
320
|
+
{
|
|
321
|
+
\"name\":\"My Folder\",
|
|
322
|
+
\"nodeType\":\"cm:folder\",
|
|
323
|
+
\"targets\":
|
|
324
|
+
[ {\"targetId\":\"abcde-01234-...\", \"assocType\":\"my:specialPeerAssocType\"} ]
|
|
325
|
+
}
|
|
326
|
+
```
|
|
327
|
+
|
|
328
|
+
**Note:** You can create more than one child by
|
|
329
|
+
specifying a list of nodes in the JSON body. For example, the following JSON
|
|
330
|
+
body creates two folders inside the specified **nodeId**, if the **nodeId** identifies
|
|
331
|
+
a folder:
|
|
332
|
+
|
|
333
|
+
```JSON
|
|
334
|
+
[
|
|
335
|
+
{
|
|
336
|
+
\"name\":\"My Folder 1\",
|
|
337
|
+
\"nodeType\":\"cm:folder\"
|
|
338
|
+
},
|
|
339
|
+
{
|
|
340
|
+
\"name\":\"My Folder 2\",
|
|
341
|
+
\"nodeType\":\"cm:folder\"
|
|
342
|
+
}
|
|
343
|
+
]
|
|
344
|
+
```
|
|
345
|
+
If you specify a list as input, then a paginated list rather than an entry is returned in the
|
|
346
|
+
response body. For example:
|
|
347
|
+
|
|
348
|
+
```JSON
|
|
349
|
+
{
|
|
350
|
+
\"list\": {
|
|
351
|
+
\"pagination\": {
|
|
352
|
+
\"count\": 2,
|
|
353
|
+
\"hasMoreItems\": false,
|
|
354
|
+
\"totalItems\": 2,
|
|
355
|
+
\"skipCount\": 0,
|
|
356
|
+
\"maxItems\": 100
|
|
357
|
+
},
|
|
358
|
+
\"entries\": [
|
|
359
|
+
{
|
|
360
|
+
\"entry\": {
|
|
361
|
+
...
|
|
362
|
+
}
|
|
363
|
+
},
|
|
364
|
+
{
|
|
365
|
+
\"entry\": {
|
|
366
|
+
...
|
|
367
|
+
}
|
|
368
|
+
}
|
|
369
|
+
]
|
|
370
|
+
}
|
|
371
|
+
}
|
|
372
|
+
```
|
|
373
|
+
**Note:** When creating a new node using JSON by default versioning is disabled.
|
|
374
|
+
Since Alfresco 6.2.3 **versioningEnabled** flag was introduced offering better control over the new
|
|
375
|
+
node Versioning.
|
|
376
|
+
|
|
377
|
+
| **versioningEnabled** | **majorVersion** | **Version Type** |
|
|
378
|
+
|-----------------------|------------------|------------------|
|
|
379
|
+
| unset | unset | Unversioned |
|
|
380
|
+
| unset | true | MAJOR |
|
|
381
|
+
| unset | false | MINOR |
|
|
382
|
+
| true | unset | MAJOR |
|
|
383
|
+
| true | true | MAJOR |
|
|
384
|
+
| true | false | MINOR |
|
|
385
|
+
| false | true | Unversioned |
|
|
386
|
+
| false | false | Unversioned |
|
|
387
|
+
| false | true | Unversioned |
|
|
388
|
+
<br>
|
|
389
|
+
|
|
390
|
+
Args:
|
|
391
|
+
node_id (str):
|
|
392
|
+
auto_rename (Union[Unset, bool]):
|
|
393
|
+
major_version (Union[Unset, bool]):
|
|
394
|
+
versioning_enabled (Union[Unset, bool]):
|
|
395
|
+
include (Union[Unset, list[str]]):
|
|
396
|
+
fields (Union[Unset, list[str]]):
|
|
397
|
+
body (NodeBodyCreate):
|
|
398
|
+
body (NodeBodyCreate):
|
|
399
|
+
|
|
400
|
+
Raises:
|
|
401
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
402
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
403
|
+
|
|
404
|
+
Returns:
|
|
405
|
+
Response[Union[Any, NodeEntry]]
|
|
406
|
+
"""
|
|
407
|
+
|
|
408
|
+
kwargs = _get_kwargs(
|
|
409
|
+
node_id=node_id,
|
|
410
|
+
body=body,
|
|
411
|
+
auto_rename=auto_rename,
|
|
412
|
+
major_version=major_version,
|
|
413
|
+
versioning_enabled=versioning_enabled,
|
|
414
|
+
include=include,
|
|
415
|
+
fields=fields,
|
|
416
|
+
)
|
|
417
|
+
|
|
418
|
+
response = client.get_httpx_client().request(
|
|
419
|
+
**kwargs,
|
|
420
|
+
)
|
|
421
|
+
|
|
422
|
+
return _build_response(client=client, response=response)
|
|
423
|
+
|
|
424
|
+
|
|
425
|
+
def sync(
|
|
426
|
+
node_id: str,
|
|
427
|
+
*,
|
|
428
|
+
client: Union[AuthenticatedClient, Client],
|
|
429
|
+
body: Union[
|
|
430
|
+
NodeBodyCreate,
|
|
431
|
+
NodeBodyCreate,
|
|
432
|
+
],
|
|
433
|
+
auto_rename: Union[Unset, bool] = UNSET,
|
|
434
|
+
major_version: Union[Unset, bool] = UNSET,
|
|
435
|
+
versioning_enabled: Union[Unset, bool] = UNSET,
|
|
436
|
+
include: Union[Unset, list[str]] = UNSET,
|
|
437
|
+
fields: Union[Unset, list[str]] = UNSET,
|
|
438
|
+
) -> Optional[Union[Any, NodeEntry]]:
|
|
439
|
+
r"""Create a node
|
|
440
|
+
|
|
441
|
+
**Note:** this endpoint is available in Alfresco 5.2 and newer versions.
|
|
442
|
+
|
|
443
|
+
Create a node and add it as a primary child of node **nodeId**.
|
|
444
|
+
|
|
445
|
+
This endpoint supports both JSON and multipart/form-data (file upload).
|
|
446
|
+
|
|
447
|
+
**Using multipart/form-data**
|
|
448
|
+
|
|
449
|
+
Use the **filedata** field to represent the content to upload, for example, the following curl
|
|
450
|
+
command will
|
|
451
|
+
create a node with the contents of test.txt in the test user's home folder.
|
|
452
|
+
|
|
453
|
+
```curl -utest:test -X POST
|
|
454
|
+
host:port/alfresco/api/-default-/public/alfresco/versions/1/nodes/-my-/children -F
|
|
455
|
+
filedata=@test.txt```
|
|
456
|
+
|
|
457
|
+
You can use the **name** field to give an alternative name for the new file.
|
|
458
|
+
|
|
459
|
+
You can use the **nodeType** field to create a specific type. The default is cm:content.
|
|
460
|
+
|
|
461
|
+
You can use the **renditions** field to create renditions (e.g. doclib) asynchronously upon upload.
|
|
462
|
+
Also, as requesting rendition is a background process,
|
|
463
|
+
any rendition failure (e.g. No transformer is currently available) will not fail the whole upload
|
|
464
|
+
and has the potential to silently fail.
|
|
465
|
+
|
|
466
|
+
Use **overwrite** to overwrite an existing file, matched by name. If the file is versionable,
|
|
467
|
+
the existing content is replaced.
|
|
468
|
+
|
|
469
|
+
When you overwrite existing content, you can set the **majorVersion** boolean field to **true** to
|
|
470
|
+
indicate a major version
|
|
471
|
+
should be created. The default for **majorVersion** is **false**.
|
|
472
|
+
Setting **majorVersion** enables versioning of the node, if it is not already versioned.
|
|
473
|
+
|
|
474
|
+
When you overwrite existing content, you can use the **comment** field to add a version comment that
|
|
475
|
+
appears in the
|
|
476
|
+
version history. This also enables versioning of this node, if it is not already versioned.
|
|
477
|
+
|
|
478
|
+
You can set the **autoRename** boolean field to automatically resolve name clashes. If there is a
|
|
479
|
+
name clash, then
|
|
480
|
+
the API method tries to create a unique name using an integer suffix.
|
|
481
|
+
|
|
482
|
+
You can use the **relativePath** field to specify the folder structure to create relative to the
|
|
483
|
+
node **nodeId**.
|
|
484
|
+
Folders in the **relativePath** that do not exist are created before the node is created.
|
|
485
|
+
|
|
486
|
+
Any other field provided will be treated as a property to set on the newly created node.
|
|
487
|
+
|
|
488
|
+
**Note:** setting properties of type d:content and d:category are not supported.
|
|
489
|
+
|
|
490
|
+
**Note:** When creating a new node using multipart/form-data by default versioning is enabled and
|
|
491
|
+
set to MAJOR Version.
|
|
492
|
+
Since Alfresco 6.2.3 **versioningEnabled** flag was introduced offering better control over the new
|
|
493
|
+
node Versioning.
|
|
494
|
+
|
|
495
|
+
| **versioningEnabled** | **majorVersion** | **Version Type** |
|
|
496
|
+
|-----------------------|------------------|------------------|
|
|
497
|
+
| unset | unset | MAJOR |
|
|
498
|
+
| unset | true | MAJOR |
|
|
499
|
+
| unset | false | MINOR |
|
|
500
|
+
| true | unset | MAJOR |
|
|
501
|
+
| true | true | MAJOR |
|
|
502
|
+
| true | false | MINOR |
|
|
503
|
+
| false | true | Unversioned |
|
|
504
|
+
| false | false | Unversioned |
|
|
505
|
+
| false | true | Unversioned |
|
|
506
|
+
<br>
|
|
507
|
+
|
|
508
|
+
**Using JSON**
|
|
509
|
+
|
|
510
|
+
You must specify at least a **name** and **nodeType**. For example, to create a folder:
|
|
511
|
+
```JSON
|
|
512
|
+
{
|
|
513
|
+
\"name\":\"My Folder\",
|
|
514
|
+
\"nodeType\":\"cm:folder\"
|
|
515
|
+
}
|
|
516
|
+
```
|
|
517
|
+
|
|
518
|
+
You can create an empty file like this:
|
|
519
|
+
```JSON
|
|
520
|
+
{
|
|
521
|
+
\"name\":\"My text file.txt\",
|
|
522
|
+
\"nodeType\":\"cm:content\"
|
|
523
|
+
}
|
|
524
|
+
```
|
|
525
|
+
You can update binary content using the ```PUT /nodes/{nodeId}``` API method.
|
|
526
|
+
|
|
527
|
+
You can create a folder, or other node, inside a folder hierarchy:
|
|
528
|
+
```JSON
|
|
529
|
+
{
|
|
530
|
+
\"name\":\"My Special Folder\",
|
|
531
|
+
\"nodeType\":\"cm:folder\",
|
|
532
|
+
\"relativePath\":\"X/Y/Z\"
|
|
533
|
+
}
|
|
534
|
+
```
|
|
535
|
+
The **relativePath** specifies the folder structure to create relative to the node **nodeId**.
|
|
536
|
+
Folders in the
|
|
537
|
+
**relativePath** that do not exist are created before the node is created.
|
|
538
|
+
|
|
539
|
+
You can set properties when you create a new node:
|
|
540
|
+
```JSON
|
|
541
|
+
{
|
|
542
|
+
\"name\":\"My Other Folder\",
|
|
543
|
+
\"nodeType\":\"cm:folder\",
|
|
544
|
+
\"properties\":
|
|
545
|
+
{
|
|
546
|
+
\"cm:title\":\"Folder title\",
|
|
547
|
+
\"cm:description\":\"This is an important folder\"
|
|
548
|
+
}
|
|
549
|
+
}
|
|
550
|
+
```
|
|
551
|
+
|
|
552
|
+
You can set multi-value properties when you create a new node which supports properties of type
|
|
553
|
+
multiple.
|
|
554
|
+
```JSON
|
|
555
|
+
{
|
|
556
|
+
\"name\":\"My Other Folder\",
|
|
557
|
+
\"nodeType\":\"custom:destination\",
|
|
558
|
+
\"properties\":
|
|
559
|
+
{
|
|
560
|
+
\"cm:title\":\"Folder title\",
|
|
561
|
+
\"cm:description\":\"This is an important folder\",
|
|
562
|
+
\"custom:locations\": [
|
|
563
|
+
\"location X\",
|
|
564
|
+
\"location Y\"
|
|
565
|
+
]
|
|
566
|
+
}
|
|
567
|
+
}
|
|
568
|
+
```
|
|
569
|
+
|
|
570
|
+
Any missing aspects are applied automatically. For example, **cm:titled** in the JSON shown above.
|
|
571
|
+
You can set aspects
|
|
572
|
+
explicitly, if needed, using an **aspectNames** field.
|
|
573
|
+
|
|
574
|
+
**Note:** setting properties of type d:content and d:category are not supported.
|
|
575
|
+
|
|
576
|
+
You can also optionally disable (or enable) inherited permissions via *isInheritanceEnabled* flag:
|
|
577
|
+
```JSON
|
|
578
|
+
{
|
|
579
|
+
\"permissions\":
|
|
580
|
+
{
|
|
581
|
+
\"isInheritanceEnabled\": false,
|
|
582
|
+
\"locallySet\":
|
|
583
|
+
[
|
|
584
|
+
{\"authorityId\": \"GROUP_special\", \"name\": \"Read\", \"accessStatus\":\"DENIED\"},
|
|
585
|
+
{\"authorityId\": \"testuser\", \"name\": \"Contributor\", \"accessStatus\":\"ALLOWED\"}
|
|
586
|
+
]
|
|
587
|
+
}
|
|
588
|
+
}
|
|
589
|
+
```
|
|
590
|
+
|
|
591
|
+
Typically, for files and folders, the primary children are created within the parent folder using
|
|
592
|
+
the default \"cm:contains\" assocType.
|
|
593
|
+
If the content model allows then it is also possible to create primary children with a different
|
|
594
|
+
assoc type. For example:
|
|
595
|
+
```JSON
|
|
596
|
+
{
|
|
597
|
+
\"name\":\"My Node\",
|
|
598
|
+
\"nodeType\":\"my:specialNodeType\",
|
|
599
|
+
\"association\":
|
|
600
|
+
{
|
|
601
|
+
\"assocType\":\"my:specialAssocType\"
|
|
602
|
+
}
|
|
603
|
+
}
|
|
604
|
+
```
|
|
605
|
+
|
|
606
|
+
Additional associations can be added after creating a node. You can also add associations at the
|
|
607
|
+
time the node is created. This is
|
|
608
|
+
required, for example, if the content model specifies that a node has mandatory associations to one
|
|
609
|
+
or more existing nodes. You can optionally
|
|
610
|
+
specify an array of **secondaryChildren** to create one or more secondary child associations, such
|
|
611
|
+
that the newly created node acts as a parent node.
|
|
612
|
+
You can optionally specify an array of **targets** to create one or more peer associations such that
|
|
613
|
+
the newly created node acts as a source node.
|
|
614
|
+
For example, to associate one or more secondary children at time of creation:
|
|
615
|
+
```JSON
|
|
616
|
+
{
|
|
617
|
+
\"name\":\"My Folder\",
|
|
618
|
+
\"nodeType\":\"cm:folder\",
|
|
619
|
+
\"secondaryChildren\":
|
|
620
|
+
[ {\"childId\":\"abcde-01234-...\", \"assocType\":\"my:specialChildAssocType\"} ]
|
|
621
|
+
}
|
|
622
|
+
```
|
|
623
|
+
For example, to associate one or more targets at time of creation:
|
|
624
|
+
```JSON
|
|
625
|
+
{
|
|
626
|
+
\"name\":\"My Folder\",
|
|
627
|
+
\"nodeType\":\"cm:folder\",
|
|
628
|
+
\"targets\":
|
|
629
|
+
[ {\"targetId\":\"abcde-01234-...\", \"assocType\":\"my:specialPeerAssocType\"} ]
|
|
630
|
+
}
|
|
631
|
+
```
|
|
632
|
+
|
|
633
|
+
**Note:** You can create more than one child by
|
|
634
|
+
specifying a list of nodes in the JSON body. For example, the following JSON
|
|
635
|
+
body creates two folders inside the specified **nodeId**, if the **nodeId** identifies
|
|
636
|
+
a folder:
|
|
637
|
+
|
|
638
|
+
```JSON
|
|
639
|
+
[
|
|
640
|
+
{
|
|
641
|
+
\"name\":\"My Folder 1\",
|
|
642
|
+
\"nodeType\":\"cm:folder\"
|
|
643
|
+
},
|
|
644
|
+
{
|
|
645
|
+
\"name\":\"My Folder 2\",
|
|
646
|
+
\"nodeType\":\"cm:folder\"
|
|
647
|
+
}
|
|
648
|
+
]
|
|
649
|
+
```
|
|
650
|
+
If you specify a list as input, then a paginated list rather than an entry is returned in the
|
|
651
|
+
response body. For example:
|
|
652
|
+
|
|
653
|
+
```JSON
|
|
654
|
+
{
|
|
655
|
+
\"list\": {
|
|
656
|
+
\"pagination\": {
|
|
657
|
+
\"count\": 2,
|
|
658
|
+
\"hasMoreItems\": false,
|
|
659
|
+
\"totalItems\": 2,
|
|
660
|
+
\"skipCount\": 0,
|
|
661
|
+
\"maxItems\": 100
|
|
662
|
+
},
|
|
663
|
+
\"entries\": [
|
|
664
|
+
{
|
|
665
|
+
\"entry\": {
|
|
666
|
+
...
|
|
667
|
+
}
|
|
668
|
+
},
|
|
669
|
+
{
|
|
670
|
+
\"entry\": {
|
|
671
|
+
...
|
|
672
|
+
}
|
|
673
|
+
}
|
|
674
|
+
]
|
|
675
|
+
}
|
|
676
|
+
}
|
|
677
|
+
```
|
|
678
|
+
**Note:** When creating a new node using JSON by default versioning is disabled.
|
|
679
|
+
Since Alfresco 6.2.3 **versioningEnabled** flag was introduced offering better control over the new
|
|
680
|
+
node Versioning.
|
|
681
|
+
|
|
682
|
+
| **versioningEnabled** | **majorVersion** | **Version Type** |
|
|
683
|
+
|-----------------------|------------------|------------------|
|
|
684
|
+
| unset | unset | Unversioned |
|
|
685
|
+
| unset | true | MAJOR |
|
|
686
|
+
| unset | false | MINOR |
|
|
687
|
+
| true | unset | MAJOR |
|
|
688
|
+
| true | true | MAJOR |
|
|
689
|
+
| true | false | MINOR |
|
|
690
|
+
| false | true | Unversioned |
|
|
691
|
+
| false | false | Unversioned |
|
|
692
|
+
| false | true | Unversioned |
|
|
693
|
+
<br>
|
|
694
|
+
|
|
695
|
+
Args:
|
|
696
|
+
node_id (str):
|
|
697
|
+
auto_rename (Union[Unset, bool]):
|
|
698
|
+
major_version (Union[Unset, bool]):
|
|
699
|
+
versioning_enabled (Union[Unset, bool]):
|
|
700
|
+
include (Union[Unset, list[str]]):
|
|
701
|
+
fields (Union[Unset, list[str]]):
|
|
702
|
+
body (NodeBodyCreate):
|
|
703
|
+
body (NodeBodyCreate):
|
|
704
|
+
|
|
705
|
+
Raises:
|
|
706
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
707
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
708
|
+
|
|
709
|
+
Returns:
|
|
710
|
+
Union[Any, NodeEntry]
|
|
711
|
+
"""
|
|
712
|
+
|
|
713
|
+
return sync_detailed(
|
|
714
|
+
node_id=node_id,
|
|
715
|
+
client=client,
|
|
716
|
+
body=body,
|
|
717
|
+
auto_rename=auto_rename,
|
|
718
|
+
major_version=major_version,
|
|
719
|
+
versioning_enabled=versioning_enabled,
|
|
720
|
+
include=include,
|
|
721
|
+
fields=fields,
|
|
722
|
+
).parsed
|
|
723
|
+
|
|
724
|
+
|
|
725
|
+
async def asyncio_detailed(
|
|
726
|
+
node_id: str,
|
|
727
|
+
*,
|
|
728
|
+
client: Union[AuthenticatedClient, Client],
|
|
729
|
+
body: Union[
|
|
730
|
+
NodeBodyCreate,
|
|
731
|
+
NodeBodyCreate,
|
|
732
|
+
],
|
|
733
|
+
auto_rename: Union[Unset, bool] = UNSET,
|
|
734
|
+
major_version: Union[Unset, bool] = UNSET,
|
|
735
|
+
versioning_enabled: Union[Unset, bool] = UNSET,
|
|
736
|
+
include: Union[Unset, list[str]] = UNSET,
|
|
737
|
+
fields: Union[Unset, list[str]] = UNSET,
|
|
738
|
+
) -> Response[Union[Any, NodeEntry]]:
|
|
739
|
+
r"""Create a node
|
|
740
|
+
|
|
741
|
+
**Note:** this endpoint is available in Alfresco 5.2 and newer versions.
|
|
742
|
+
|
|
743
|
+
Create a node and add it as a primary child of node **nodeId**.
|
|
744
|
+
|
|
745
|
+
This endpoint supports both JSON and multipart/form-data (file upload).
|
|
746
|
+
|
|
747
|
+
**Using multipart/form-data**
|
|
748
|
+
|
|
749
|
+
Use the **filedata** field to represent the content to upload, for example, the following curl
|
|
750
|
+
command will
|
|
751
|
+
create a node with the contents of test.txt in the test user's home folder.
|
|
752
|
+
|
|
753
|
+
```curl -utest:test -X POST
|
|
754
|
+
host:port/alfresco/api/-default-/public/alfresco/versions/1/nodes/-my-/children -F
|
|
755
|
+
filedata=@test.txt```
|
|
756
|
+
|
|
757
|
+
You can use the **name** field to give an alternative name for the new file.
|
|
758
|
+
|
|
759
|
+
You can use the **nodeType** field to create a specific type. The default is cm:content.
|
|
760
|
+
|
|
761
|
+
You can use the **renditions** field to create renditions (e.g. doclib) asynchronously upon upload.
|
|
762
|
+
Also, as requesting rendition is a background process,
|
|
763
|
+
any rendition failure (e.g. No transformer is currently available) will not fail the whole upload
|
|
764
|
+
and has the potential to silently fail.
|
|
765
|
+
|
|
766
|
+
Use **overwrite** to overwrite an existing file, matched by name. If the file is versionable,
|
|
767
|
+
the existing content is replaced.
|
|
768
|
+
|
|
769
|
+
When you overwrite existing content, you can set the **majorVersion** boolean field to **true** to
|
|
770
|
+
indicate a major version
|
|
771
|
+
should be created. The default for **majorVersion** is **false**.
|
|
772
|
+
Setting **majorVersion** enables versioning of the node, if it is not already versioned.
|
|
773
|
+
|
|
774
|
+
When you overwrite existing content, you can use the **comment** field to add a version comment that
|
|
775
|
+
appears in the
|
|
776
|
+
version history. This also enables versioning of this node, if it is not already versioned.
|
|
777
|
+
|
|
778
|
+
You can set the **autoRename** boolean field to automatically resolve name clashes. If there is a
|
|
779
|
+
name clash, then
|
|
780
|
+
the API method tries to create a unique name using an integer suffix.
|
|
781
|
+
|
|
782
|
+
You can use the **relativePath** field to specify the folder structure to create relative to the
|
|
783
|
+
node **nodeId**.
|
|
784
|
+
Folders in the **relativePath** that do not exist are created before the node is created.
|
|
785
|
+
|
|
786
|
+
Any other field provided will be treated as a property to set on the newly created node.
|
|
787
|
+
|
|
788
|
+
**Note:** setting properties of type d:content and d:category are not supported.
|
|
789
|
+
|
|
790
|
+
**Note:** When creating a new node using multipart/form-data by default versioning is enabled and
|
|
791
|
+
set to MAJOR Version.
|
|
792
|
+
Since Alfresco 6.2.3 **versioningEnabled** flag was introduced offering better control over the new
|
|
793
|
+
node Versioning.
|
|
794
|
+
|
|
795
|
+
| **versioningEnabled** | **majorVersion** | **Version Type** |
|
|
796
|
+
|-----------------------|------------------|------------------|
|
|
797
|
+
| unset | unset | MAJOR |
|
|
798
|
+
| unset | true | MAJOR |
|
|
799
|
+
| unset | false | MINOR |
|
|
800
|
+
| true | unset | MAJOR |
|
|
801
|
+
| true | true | MAJOR |
|
|
802
|
+
| true | false | MINOR |
|
|
803
|
+
| false | true | Unversioned |
|
|
804
|
+
| false | false | Unversioned |
|
|
805
|
+
| false | true | Unversioned |
|
|
806
|
+
<br>
|
|
807
|
+
|
|
808
|
+
**Using JSON**
|
|
809
|
+
|
|
810
|
+
You must specify at least a **name** and **nodeType**. For example, to create a folder:
|
|
811
|
+
```JSON
|
|
812
|
+
{
|
|
813
|
+
\"name\":\"My Folder\",
|
|
814
|
+
\"nodeType\":\"cm:folder\"
|
|
815
|
+
}
|
|
816
|
+
```
|
|
817
|
+
|
|
818
|
+
You can create an empty file like this:
|
|
819
|
+
```JSON
|
|
820
|
+
{
|
|
821
|
+
\"name\":\"My text file.txt\",
|
|
822
|
+
\"nodeType\":\"cm:content\"
|
|
823
|
+
}
|
|
824
|
+
```
|
|
825
|
+
You can update binary content using the ```PUT /nodes/{nodeId}``` API method.
|
|
826
|
+
|
|
827
|
+
You can create a folder, or other node, inside a folder hierarchy:
|
|
828
|
+
```JSON
|
|
829
|
+
{
|
|
830
|
+
\"name\":\"My Special Folder\",
|
|
831
|
+
\"nodeType\":\"cm:folder\",
|
|
832
|
+
\"relativePath\":\"X/Y/Z\"
|
|
833
|
+
}
|
|
834
|
+
```
|
|
835
|
+
The **relativePath** specifies the folder structure to create relative to the node **nodeId**.
|
|
836
|
+
Folders in the
|
|
837
|
+
**relativePath** that do not exist are created before the node is created.
|
|
838
|
+
|
|
839
|
+
You can set properties when you create a new node:
|
|
840
|
+
```JSON
|
|
841
|
+
{
|
|
842
|
+
\"name\":\"My Other Folder\",
|
|
843
|
+
\"nodeType\":\"cm:folder\",
|
|
844
|
+
\"properties\":
|
|
845
|
+
{
|
|
846
|
+
\"cm:title\":\"Folder title\",
|
|
847
|
+
\"cm:description\":\"This is an important folder\"
|
|
848
|
+
}
|
|
849
|
+
}
|
|
850
|
+
```
|
|
851
|
+
|
|
852
|
+
You can set multi-value properties when you create a new node which supports properties of type
|
|
853
|
+
multiple.
|
|
854
|
+
```JSON
|
|
855
|
+
{
|
|
856
|
+
\"name\":\"My Other Folder\",
|
|
857
|
+
\"nodeType\":\"custom:destination\",
|
|
858
|
+
\"properties\":
|
|
859
|
+
{
|
|
860
|
+
\"cm:title\":\"Folder title\",
|
|
861
|
+
\"cm:description\":\"This is an important folder\",
|
|
862
|
+
\"custom:locations\": [
|
|
863
|
+
\"location X\",
|
|
864
|
+
\"location Y\"
|
|
865
|
+
]
|
|
866
|
+
}
|
|
867
|
+
}
|
|
868
|
+
```
|
|
869
|
+
|
|
870
|
+
Any missing aspects are applied automatically. For example, **cm:titled** in the JSON shown above.
|
|
871
|
+
You can set aspects
|
|
872
|
+
explicitly, if needed, using an **aspectNames** field.
|
|
873
|
+
|
|
874
|
+
**Note:** setting properties of type d:content and d:category are not supported.
|
|
875
|
+
|
|
876
|
+
You can also optionally disable (or enable) inherited permissions via *isInheritanceEnabled* flag:
|
|
877
|
+
```JSON
|
|
878
|
+
{
|
|
879
|
+
\"permissions\":
|
|
880
|
+
{
|
|
881
|
+
\"isInheritanceEnabled\": false,
|
|
882
|
+
\"locallySet\":
|
|
883
|
+
[
|
|
884
|
+
{\"authorityId\": \"GROUP_special\", \"name\": \"Read\", \"accessStatus\":\"DENIED\"},
|
|
885
|
+
{\"authorityId\": \"testuser\", \"name\": \"Contributor\", \"accessStatus\":\"ALLOWED\"}
|
|
886
|
+
]
|
|
887
|
+
}
|
|
888
|
+
}
|
|
889
|
+
```
|
|
890
|
+
|
|
891
|
+
Typically, for files and folders, the primary children are created within the parent folder using
|
|
892
|
+
the default \"cm:contains\" assocType.
|
|
893
|
+
If the content model allows then it is also possible to create primary children with a different
|
|
894
|
+
assoc type. For example:
|
|
895
|
+
```JSON
|
|
896
|
+
{
|
|
897
|
+
\"name\":\"My Node\",
|
|
898
|
+
\"nodeType\":\"my:specialNodeType\",
|
|
899
|
+
\"association\":
|
|
900
|
+
{
|
|
901
|
+
\"assocType\":\"my:specialAssocType\"
|
|
902
|
+
}
|
|
903
|
+
}
|
|
904
|
+
```
|
|
905
|
+
|
|
906
|
+
Additional associations can be added after creating a node. You can also add associations at the
|
|
907
|
+
time the node is created. This is
|
|
908
|
+
required, for example, if the content model specifies that a node has mandatory associations to one
|
|
909
|
+
or more existing nodes. You can optionally
|
|
910
|
+
specify an array of **secondaryChildren** to create one or more secondary child associations, such
|
|
911
|
+
that the newly created node acts as a parent node.
|
|
912
|
+
You can optionally specify an array of **targets** to create one or more peer associations such that
|
|
913
|
+
the newly created node acts as a source node.
|
|
914
|
+
For example, to associate one or more secondary children at time of creation:
|
|
915
|
+
```JSON
|
|
916
|
+
{
|
|
917
|
+
\"name\":\"My Folder\",
|
|
918
|
+
\"nodeType\":\"cm:folder\",
|
|
919
|
+
\"secondaryChildren\":
|
|
920
|
+
[ {\"childId\":\"abcde-01234-...\", \"assocType\":\"my:specialChildAssocType\"} ]
|
|
921
|
+
}
|
|
922
|
+
```
|
|
923
|
+
For example, to associate one or more targets at time of creation:
|
|
924
|
+
```JSON
|
|
925
|
+
{
|
|
926
|
+
\"name\":\"My Folder\",
|
|
927
|
+
\"nodeType\":\"cm:folder\",
|
|
928
|
+
\"targets\":
|
|
929
|
+
[ {\"targetId\":\"abcde-01234-...\", \"assocType\":\"my:specialPeerAssocType\"} ]
|
|
930
|
+
}
|
|
931
|
+
```
|
|
932
|
+
|
|
933
|
+
**Note:** You can create more than one child by
|
|
934
|
+
specifying a list of nodes in the JSON body. For example, the following JSON
|
|
935
|
+
body creates two folders inside the specified **nodeId**, if the **nodeId** identifies
|
|
936
|
+
a folder:
|
|
937
|
+
|
|
938
|
+
```JSON
|
|
939
|
+
[
|
|
940
|
+
{
|
|
941
|
+
\"name\":\"My Folder 1\",
|
|
942
|
+
\"nodeType\":\"cm:folder\"
|
|
943
|
+
},
|
|
944
|
+
{
|
|
945
|
+
\"name\":\"My Folder 2\",
|
|
946
|
+
\"nodeType\":\"cm:folder\"
|
|
947
|
+
}
|
|
948
|
+
]
|
|
949
|
+
```
|
|
950
|
+
If you specify a list as input, then a paginated list rather than an entry is returned in the
|
|
951
|
+
response body. For example:
|
|
952
|
+
|
|
953
|
+
```JSON
|
|
954
|
+
{
|
|
955
|
+
\"list\": {
|
|
956
|
+
\"pagination\": {
|
|
957
|
+
\"count\": 2,
|
|
958
|
+
\"hasMoreItems\": false,
|
|
959
|
+
\"totalItems\": 2,
|
|
960
|
+
\"skipCount\": 0,
|
|
961
|
+
\"maxItems\": 100
|
|
962
|
+
},
|
|
963
|
+
\"entries\": [
|
|
964
|
+
{
|
|
965
|
+
\"entry\": {
|
|
966
|
+
...
|
|
967
|
+
}
|
|
968
|
+
},
|
|
969
|
+
{
|
|
970
|
+
\"entry\": {
|
|
971
|
+
...
|
|
972
|
+
}
|
|
973
|
+
}
|
|
974
|
+
]
|
|
975
|
+
}
|
|
976
|
+
}
|
|
977
|
+
```
|
|
978
|
+
**Note:** When creating a new node using JSON by default versioning is disabled.
|
|
979
|
+
Since Alfresco 6.2.3 **versioningEnabled** flag was introduced offering better control over the new
|
|
980
|
+
node Versioning.
|
|
981
|
+
|
|
982
|
+
| **versioningEnabled** | **majorVersion** | **Version Type** |
|
|
983
|
+
|-----------------------|------------------|------------------|
|
|
984
|
+
| unset | unset | Unversioned |
|
|
985
|
+
| unset | true | MAJOR |
|
|
986
|
+
| unset | false | MINOR |
|
|
987
|
+
| true | unset | MAJOR |
|
|
988
|
+
| true | true | MAJOR |
|
|
989
|
+
| true | false | MINOR |
|
|
990
|
+
| false | true | Unversioned |
|
|
991
|
+
| false | false | Unversioned |
|
|
992
|
+
| false | true | Unversioned |
|
|
993
|
+
<br>
|
|
994
|
+
|
|
995
|
+
Args:
|
|
996
|
+
node_id (str):
|
|
997
|
+
auto_rename (Union[Unset, bool]):
|
|
998
|
+
major_version (Union[Unset, bool]):
|
|
999
|
+
versioning_enabled (Union[Unset, bool]):
|
|
1000
|
+
include (Union[Unset, list[str]]):
|
|
1001
|
+
fields (Union[Unset, list[str]]):
|
|
1002
|
+
body (NodeBodyCreate):
|
|
1003
|
+
body (NodeBodyCreate):
|
|
1004
|
+
|
|
1005
|
+
Raises:
|
|
1006
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
1007
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
1008
|
+
|
|
1009
|
+
Returns:
|
|
1010
|
+
Response[Union[Any, NodeEntry]]
|
|
1011
|
+
"""
|
|
1012
|
+
|
|
1013
|
+
kwargs = _get_kwargs(
|
|
1014
|
+
node_id=node_id,
|
|
1015
|
+
body=body,
|
|
1016
|
+
auto_rename=auto_rename,
|
|
1017
|
+
major_version=major_version,
|
|
1018
|
+
versioning_enabled=versioning_enabled,
|
|
1019
|
+
include=include,
|
|
1020
|
+
fields=fields,
|
|
1021
|
+
)
|
|
1022
|
+
|
|
1023
|
+
response = await client.get_async_httpx_client().request(**kwargs)
|
|
1024
|
+
|
|
1025
|
+
return _build_response(client=client, response=response)
|
|
1026
|
+
|
|
1027
|
+
|
|
1028
|
+
async def asyncio(
|
|
1029
|
+
node_id: str,
|
|
1030
|
+
*,
|
|
1031
|
+
client: Union[AuthenticatedClient, Client],
|
|
1032
|
+
body: Union[
|
|
1033
|
+
NodeBodyCreate,
|
|
1034
|
+
NodeBodyCreate,
|
|
1035
|
+
],
|
|
1036
|
+
auto_rename: Union[Unset, bool] = UNSET,
|
|
1037
|
+
major_version: Union[Unset, bool] = UNSET,
|
|
1038
|
+
versioning_enabled: Union[Unset, bool] = UNSET,
|
|
1039
|
+
include: Union[Unset, list[str]] = UNSET,
|
|
1040
|
+
fields: Union[Unset, list[str]] = UNSET,
|
|
1041
|
+
) -> Optional[Union[Any, NodeEntry]]:
|
|
1042
|
+
r"""Create a node
|
|
1043
|
+
|
|
1044
|
+
**Note:** this endpoint is available in Alfresco 5.2 and newer versions.
|
|
1045
|
+
|
|
1046
|
+
Create a node and add it as a primary child of node **nodeId**.
|
|
1047
|
+
|
|
1048
|
+
This endpoint supports both JSON and multipart/form-data (file upload).
|
|
1049
|
+
|
|
1050
|
+
**Using multipart/form-data**
|
|
1051
|
+
|
|
1052
|
+
Use the **filedata** field to represent the content to upload, for example, the following curl
|
|
1053
|
+
command will
|
|
1054
|
+
create a node with the contents of test.txt in the test user's home folder.
|
|
1055
|
+
|
|
1056
|
+
```curl -utest:test -X POST
|
|
1057
|
+
host:port/alfresco/api/-default-/public/alfresco/versions/1/nodes/-my-/children -F
|
|
1058
|
+
filedata=@test.txt```
|
|
1059
|
+
|
|
1060
|
+
You can use the **name** field to give an alternative name for the new file.
|
|
1061
|
+
|
|
1062
|
+
You can use the **nodeType** field to create a specific type. The default is cm:content.
|
|
1063
|
+
|
|
1064
|
+
You can use the **renditions** field to create renditions (e.g. doclib) asynchronously upon upload.
|
|
1065
|
+
Also, as requesting rendition is a background process,
|
|
1066
|
+
any rendition failure (e.g. No transformer is currently available) will not fail the whole upload
|
|
1067
|
+
and has the potential to silently fail.
|
|
1068
|
+
|
|
1069
|
+
Use **overwrite** to overwrite an existing file, matched by name. If the file is versionable,
|
|
1070
|
+
the existing content is replaced.
|
|
1071
|
+
|
|
1072
|
+
When you overwrite existing content, you can set the **majorVersion** boolean field to **true** to
|
|
1073
|
+
indicate a major version
|
|
1074
|
+
should be created. The default for **majorVersion** is **false**.
|
|
1075
|
+
Setting **majorVersion** enables versioning of the node, if it is not already versioned.
|
|
1076
|
+
|
|
1077
|
+
When you overwrite existing content, you can use the **comment** field to add a version comment that
|
|
1078
|
+
appears in the
|
|
1079
|
+
version history. This also enables versioning of this node, if it is not already versioned.
|
|
1080
|
+
|
|
1081
|
+
You can set the **autoRename** boolean field to automatically resolve name clashes. If there is a
|
|
1082
|
+
name clash, then
|
|
1083
|
+
the API method tries to create a unique name using an integer suffix.
|
|
1084
|
+
|
|
1085
|
+
You can use the **relativePath** field to specify the folder structure to create relative to the
|
|
1086
|
+
node **nodeId**.
|
|
1087
|
+
Folders in the **relativePath** that do not exist are created before the node is created.
|
|
1088
|
+
|
|
1089
|
+
Any other field provided will be treated as a property to set on the newly created node.
|
|
1090
|
+
|
|
1091
|
+
**Note:** setting properties of type d:content and d:category are not supported.
|
|
1092
|
+
|
|
1093
|
+
**Note:** When creating a new node using multipart/form-data by default versioning is enabled and
|
|
1094
|
+
set to MAJOR Version.
|
|
1095
|
+
Since Alfresco 6.2.3 **versioningEnabled** flag was introduced offering better control over the new
|
|
1096
|
+
node Versioning.
|
|
1097
|
+
|
|
1098
|
+
| **versioningEnabled** | **majorVersion** | **Version Type** |
|
|
1099
|
+
|-----------------------|------------------|------------------|
|
|
1100
|
+
| unset | unset | MAJOR |
|
|
1101
|
+
| unset | true | MAJOR |
|
|
1102
|
+
| unset | false | MINOR |
|
|
1103
|
+
| true | unset | MAJOR |
|
|
1104
|
+
| true | true | MAJOR |
|
|
1105
|
+
| true | false | MINOR |
|
|
1106
|
+
| false | true | Unversioned |
|
|
1107
|
+
| false | false | Unversioned |
|
|
1108
|
+
| false | true | Unversioned |
|
|
1109
|
+
<br>
|
|
1110
|
+
|
|
1111
|
+
**Using JSON**
|
|
1112
|
+
|
|
1113
|
+
You must specify at least a **name** and **nodeType**. For example, to create a folder:
|
|
1114
|
+
```JSON
|
|
1115
|
+
{
|
|
1116
|
+
\"name\":\"My Folder\",
|
|
1117
|
+
\"nodeType\":\"cm:folder\"
|
|
1118
|
+
}
|
|
1119
|
+
```
|
|
1120
|
+
|
|
1121
|
+
You can create an empty file like this:
|
|
1122
|
+
```JSON
|
|
1123
|
+
{
|
|
1124
|
+
\"name\":\"My text file.txt\",
|
|
1125
|
+
\"nodeType\":\"cm:content\"
|
|
1126
|
+
}
|
|
1127
|
+
```
|
|
1128
|
+
You can update binary content using the ```PUT /nodes/{nodeId}``` API method.
|
|
1129
|
+
|
|
1130
|
+
You can create a folder, or other node, inside a folder hierarchy:
|
|
1131
|
+
```JSON
|
|
1132
|
+
{
|
|
1133
|
+
\"name\":\"My Special Folder\",
|
|
1134
|
+
\"nodeType\":\"cm:folder\",
|
|
1135
|
+
\"relativePath\":\"X/Y/Z\"
|
|
1136
|
+
}
|
|
1137
|
+
```
|
|
1138
|
+
The **relativePath** specifies the folder structure to create relative to the node **nodeId**.
|
|
1139
|
+
Folders in the
|
|
1140
|
+
**relativePath** that do not exist are created before the node is created.
|
|
1141
|
+
|
|
1142
|
+
You can set properties when you create a new node:
|
|
1143
|
+
```JSON
|
|
1144
|
+
{
|
|
1145
|
+
\"name\":\"My Other Folder\",
|
|
1146
|
+
\"nodeType\":\"cm:folder\",
|
|
1147
|
+
\"properties\":
|
|
1148
|
+
{
|
|
1149
|
+
\"cm:title\":\"Folder title\",
|
|
1150
|
+
\"cm:description\":\"This is an important folder\"
|
|
1151
|
+
}
|
|
1152
|
+
}
|
|
1153
|
+
```
|
|
1154
|
+
|
|
1155
|
+
You can set multi-value properties when you create a new node which supports properties of type
|
|
1156
|
+
multiple.
|
|
1157
|
+
```JSON
|
|
1158
|
+
{
|
|
1159
|
+
\"name\":\"My Other Folder\",
|
|
1160
|
+
\"nodeType\":\"custom:destination\",
|
|
1161
|
+
\"properties\":
|
|
1162
|
+
{
|
|
1163
|
+
\"cm:title\":\"Folder title\",
|
|
1164
|
+
\"cm:description\":\"This is an important folder\",
|
|
1165
|
+
\"custom:locations\": [
|
|
1166
|
+
\"location X\",
|
|
1167
|
+
\"location Y\"
|
|
1168
|
+
]
|
|
1169
|
+
}
|
|
1170
|
+
}
|
|
1171
|
+
```
|
|
1172
|
+
|
|
1173
|
+
Any missing aspects are applied automatically. For example, **cm:titled** in the JSON shown above.
|
|
1174
|
+
You can set aspects
|
|
1175
|
+
explicitly, if needed, using an **aspectNames** field.
|
|
1176
|
+
|
|
1177
|
+
**Note:** setting properties of type d:content and d:category are not supported.
|
|
1178
|
+
|
|
1179
|
+
You can also optionally disable (or enable) inherited permissions via *isInheritanceEnabled* flag:
|
|
1180
|
+
```JSON
|
|
1181
|
+
{
|
|
1182
|
+
\"permissions\":
|
|
1183
|
+
{
|
|
1184
|
+
\"isInheritanceEnabled\": false,
|
|
1185
|
+
\"locallySet\":
|
|
1186
|
+
[
|
|
1187
|
+
{\"authorityId\": \"GROUP_special\", \"name\": \"Read\", \"accessStatus\":\"DENIED\"},
|
|
1188
|
+
{\"authorityId\": \"testuser\", \"name\": \"Contributor\", \"accessStatus\":\"ALLOWED\"}
|
|
1189
|
+
]
|
|
1190
|
+
}
|
|
1191
|
+
}
|
|
1192
|
+
```
|
|
1193
|
+
|
|
1194
|
+
Typically, for files and folders, the primary children are created within the parent folder using
|
|
1195
|
+
the default \"cm:contains\" assocType.
|
|
1196
|
+
If the content model allows then it is also possible to create primary children with a different
|
|
1197
|
+
assoc type. For example:
|
|
1198
|
+
```JSON
|
|
1199
|
+
{
|
|
1200
|
+
\"name\":\"My Node\",
|
|
1201
|
+
\"nodeType\":\"my:specialNodeType\",
|
|
1202
|
+
\"association\":
|
|
1203
|
+
{
|
|
1204
|
+
\"assocType\":\"my:specialAssocType\"
|
|
1205
|
+
}
|
|
1206
|
+
}
|
|
1207
|
+
```
|
|
1208
|
+
|
|
1209
|
+
Additional associations can be added after creating a node. You can also add associations at the
|
|
1210
|
+
time the node is created. This is
|
|
1211
|
+
required, for example, if the content model specifies that a node has mandatory associations to one
|
|
1212
|
+
or more existing nodes. You can optionally
|
|
1213
|
+
specify an array of **secondaryChildren** to create one or more secondary child associations, such
|
|
1214
|
+
that the newly created node acts as a parent node.
|
|
1215
|
+
You can optionally specify an array of **targets** to create one or more peer associations such that
|
|
1216
|
+
the newly created node acts as a source node.
|
|
1217
|
+
For example, to associate one or more secondary children at time of creation:
|
|
1218
|
+
```JSON
|
|
1219
|
+
{
|
|
1220
|
+
\"name\":\"My Folder\",
|
|
1221
|
+
\"nodeType\":\"cm:folder\",
|
|
1222
|
+
\"secondaryChildren\":
|
|
1223
|
+
[ {\"childId\":\"abcde-01234-...\", \"assocType\":\"my:specialChildAssocType\"} ]
|
|
1224
|
+
}
|
|
1225
|
+
```
|
|
1226
|
+
For example, to associate one or more targets at time of creation:
|
|
1227
|
+
```JSON
|
|
1228
|
+
{
|
|
1229
|
+
\"name\":\"My Folder\",
|
|
1230
|
+
\"nodeType\":\"cm:folder\",
|
|
1231
|
+
\"targets\":
|
|
1232
|
+
[ {\"targetId\":\"abcde-01234-...\", \"assocType\":\"my:specialPeerAssocType\"} ]
|
|
1233
|
+
}
|
|
1234
|
+
```
|
|
1235
|
+
|
|
1236
|
+
**Note:** You can create more than one child by
|
|
1237
|
+
specifying a list of nodes in the JSON body. For example, the following JSON
|
|
1238
|
+
body creates two folders inside the specified **nodeId**, if the **nodeId** identifies
|
|
1239
|
+
a folder:
|
|
1240
|
+
|
|
1241
|
+
```JSON
|
|
1242
|
+
[
|
|
1243
|
+
{
|
|
1244
|
+
\"name\":\"My Folder 1\",
|
|
1245
|
+
\"nodeType\":\"cm:folder\"
|
|
1246
|
+
},
|
|
1247
|
+
{
|
|
1248
|
+
\"name\":\"My Folder 2\",
|
|
1249
|
+
\"nodeType\":\"cm:folder\"
|
|
1250
|
+
}
|
|
1251
|
+
]
|
|
1252
|
+
```
|
|
1253
|
+
If you specify a list as input, then a paginated list rather than an entry is returned in the
|
|
1254
|
+
response body. For example:
|
|
1255
|
+
|
|
1256
|
+
```JSON
|
|
1257
|
+
{
|
|
1258
|
+
\"list\": {
|
|
1259
|
+
\"pagination\": {
|
|
1260
|
+
\"count\": 2,
|
|
1261
|
+
\"hasMoreItems\": false,
|
|
1262
|
+
\"totalItems\": 2,
|
|
1263
|
+
\"skipCount\": 0,
|
|
1264
|
+
\"maxItems\": 100
|
|
1265
|
+
},
|
|
1266
|
+
\"entries\": [
|
|
1267
|
+
{
|
|
1268
|
+
\"entry\": {
|
|
1269
|
+
...
|
|
1270
|
+
}
|
|
1271
|
+
},
|
|
1272
|
+
{
|
|
1273
|
+
\"entry\": {
|
|
1274
|
+
...
|
|
1275
|
+
}
|
|
1276
|
+
}
|
|
1277
|
+
]
|
|
1278
|
+
}
|
|
1279
|
+
}
|
|
1280
|
+
```
|
|
1281
|
+
**Note:** When creating a new node using JSON by default versioning is disabled.
|
|
1282
|
+
Since Alfresco 6.2.3 **versioningEnabled** flag was introduced offering better control over the new
|
|
1283
|
+
node Versioning.
|
|
1284
|
+
|
|
1285
|
+
| **versioningEnabled** | **majorVersion** | **Version Type** |
|
|
1286
|
+
|-----------------------|------------------|------------------|
|
|
1287
|
+
| unset | unset | Unversioned |
|
|
1288
|
+
| unset | true | MAJOR |
|
|
1289
|
+
| unset | false | MINOR |
|
|
1290
|
+
| true | unset | MAJOR |
|
|
1291
|
+
| true | true | MAJOR |
|
|
1292
|
+
| true | false | MINOR |
|
|
1293
|
+
| false | true | Unversioned |
|
|
1294
|
+
| false | false | Unversioned |
|
|
1295
|
+
| false | true | Unversioned |
|
|
1296
|
+
<br>
|
|
1297
|
+
|
|
1298
|
+
Args:
|
|
1299
|
+
node_id (str):
|
|
1300
|
+
auto_rename (Union[Unset, bool]):
|
|
1301
|
+
major_version (Union[Unset, bool]):
|
|
1302
|
+
versioning_enabled (Union[Unset, bool]):
|
|
1303
|
+
include (Union[Unset, list[str]]):
|
|
1304
|
+
fields (Union[Unset, list[str]]):
|
|
1305
|
+
body (NodeBodyCreate):
|
|
1306
|
+
body (NodeBodyCreate):
|
|
1307
|
+
|
|
1308
|
+
Raises:
|
|
1309
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
1310
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
1311
|
+
|
|
1312
|
+
Returns:
|
|
1313
|
+
Union[Any, NodeEntry]
|
|
1314
|
+
"""
|
|
1315
|
+
|
|
1316
|
+
return (
|
|
1317
|
+
await asyncio_detailed(
|
|
1318
|
+
node_id=node_id,
|
|
1319
|
+
client=client,
|
|
1320
|
+
body=body,
|
|
1321
|
+
auto_rename=auto_rename,
|
|
1322
|
+
major_version=major_version,
|
|
1323
|
+
versioning_enabled=versioning_enabled,
|
|
1324
|
+
include=include,
|
|
1325
|
+
fields=fields,
|
|
1326
|
+
)
|
|
1327
|
+
).parsed
|