alfresco_api 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/Gemfile +7 -0
- data/README.md +351 -0
- data/Rakefile +8 -0
- data/alfresco_api.gemspec +45 -0
- data/docs/ActivitiesApi.md +74 -0
- data/docs/Activity.md +14 -0
- data/docs/ActivityEntry.md +8 -0
- data/docs/ActivityPaging.md +8 -0
- data/docs/ActivityPagingList.md +9 -0
- data/docs/Association.md +9 -0
- data/docs/AssociationBody.md +9 -0
- data/docs/AssociationEntry.md +8 -0
- data/docs/AssociationInfo.md +8 -0
- data/docs/AuditApi.md +495 -0
- data/docs/AuditApp.md +10 -0
- data/docs/AuditAppEntry.md +8 -0
- data/docs/AuditAppPaging.md +8 -0
- data/docs/AuditAppPagingList.md +9 -0
- data/docs/AuditBodyUpdate.md +8 -0
- data/docs/AuditEntry.md +12 -0
- data/docs/AuditEntryEntry.md +8 -0
- data/docs/AuditEntryPaging.md +8 -0
- data/docs/AuditEntryPagingList.md +9 -0
- data/docs/ChildAssociation.md +9 -0
- data/docs/ChildAssociationBody.md +9 -0
- data/docs/ChildAssociationEntry.md +8 -0
- data/docs/ChildAssociationInfo.md +9 -0
- data/docs/ClientBody.md +8 -0
- data/docs/Comment.md +16 -0
- data/docs/CommentBody.md +8 -0
- data/docs/CommentEntry.md +8 -0
- data/docs/CommentPaging.md +8 -0
- data/docs/CommentPagingList.md +9 -0
- data/docs/CommentsApi.md +251 -0
- data/docs/Company.md +15 -0
- data/docs/ContentInfo.md +11 -0
- data/docs/DeletedNode.md +27 -0
- data/docs/DeletedNodeEntry.md +8 -0
- data/docs/DeletedNodesPaging.md +8 -0
- data/docs/DeletedNodesPagingList.md +9 -0
- data/docs/Download.md +13 -0
- data/docs/DownloadBodyCreate.md +8 -0
- data/docs/DownloadEntry.md +8 -0
- data/docs/DownloadsApi.md +177 -0
- data/docs/Error.md +8 -0
- data/docs/ErrorError.md +13 -0
- data/docs/Favorite.md +10 -0
- data/docs/FavoriteBodyCreate.md +8 -0
- data/docs/FavoriteEntry.md +8 -0
- data/docs/FavoritePaging.md +8 -0
- data/docs/FavoritePagingList.md +9 -0
- data/docs/FavoriteSite.md +8 -0
- data/docs/FavoriteSiteBodyCreate.md +8 -0
- data/docs/FavoriteSiteEntry.md +8 -0
- data/docs/FavoritesApi.md +496 -0
- data/docs/Group.md +12 -0
- data/docs/GroupBodyCreate.md +10 -0
- data/docs/GroupBodyUpdate.md +8 -0
- data/docs/GroupEntry.md +8 -0
- data/docs/GroupMember.md +10 -0
- data/docs/GroupMemberEntry.md +8 -0
- data/docs/GroupMemberPaging.md +8 -0
- data/docs/GroupMemberPagingList.md +9 -0
- data/docs/GroupMembershipBodyCreate.md +9 -0
- data/docs/GroupPaging.md +8 -0
- data/docs/GroupPagingList.md +9 -0
- data/docs/GroupsApi.md +564 -0
- data/docs/NetworkQuota.md +10 -0
- data/docs/NetworksApi.md +189 -0
- data/docs/Node.md +25 -0
- data/docs/NodeAssociation.md +26 -0
- data/docs/NodeAssociationEntry.md +8 -0
- data/docs/NodeAssociationPaging.md +8 -0
- data/docs/NodeAssociationPagingList.md +10 -0
- data/docs/NodeBodyCopy.md +9 -0
- data/docs/NodeBodyCreate.md +15 -0
- data/docs/NodeBodyCreateAssociation.md +8 -0
- data/docs/NodeBodyLock.md +10 -0
- data/docs/NodeBodyMove.md +9 -0
- data/docs/NodeBodyUpdate.md +12 -0
- data/docs/NodeChildAssociation.md +26 -0
- data/docs/NodeChildAssociationEntry.md +8 -0
- data/docs/NodeChildAssociationPaging.md +8 -0
- data/docs/NodeChildAssociationPagingList.md +10 -0
- data/docs/NodeEntry.md +8 -0
- data/docs/NodePaging.md +8 -0
- data/docs/NodePagingList.md +10 -0
- data/docs/NodesApi.md +1206 -0
- data/docs/Pagination.md +12 -0
- data/docs/PasswordResetBody.md +10 -0
- data/docs/PathElement.md +11 -0
- data/docs/PathInfo.md +10 -0
- data/docs/PeopleApi.md +530 -0
- data/docs/PermissionElement.md +10 -0
- data/docs/PermissionsBodyUpdate.md +9 -0
- data/docs/PermissionsInfo.md +11 -0
- data/docs/Person.md +27 -0
- data/docs/PersonBodyCreate.md +26 -0
- data/docs/PersonBodyUpdate.md +26 -0
- data/docs/PersonEntry.md +8 -0
- data/docs/PersonNetwork.md +14 -0
- data/docs/PersonNetworkEntry.md +8 -0
- data/docs/PersonNetworkPaging.md +8 -0
- data/docs/PersonNetworkPagingList.md +9 -0
- data/docs/PersonPaging.md +8 -0
- data/docs/PersonPagingList.md +9 -0
- data/docs/Preference.md +9 -0
- data/docs/PreferenceEntry.md +8 -0
- data/docs/PreferencePaging.md +8 -0
- data/docs/PreferencePagingList.md +9 -0
- data/docs/PreferencesApi.md +131 -0
- data/docs/QueriesApi.md +206 -0
- data/docs/Rating.md +11 -0
- data/docs/RatingAggregate.md +9 -0
- data/docs/RatingBody.md +9 -0
- data/docs/RatingEntry.md +8 -0
- data/docs/RatingPaging.md +8 -0
- data/docs/RatingPagingList.md +9 -0
- data/docs/RatingsApi.md +248 -0
- data/docs/Rendition.md +10 -0
- data/docs/RenditionBodyCreate.md +8 -0
- data/docs/RenditionEntry.md +8 -0
- data/docs/RenditionPaging.md +8 -0
- data/docs/RenditionPagingList.md +9 -0
- data/docs/RenditionsApi.md +243 -0
- data/docs/RevertBody.md +9 -0
- data/docs/SharedLink.md +19 -0
- data/docs/SharedLinkBodyCreate.md +9 -0
- data/docs/SharedLinkBodyEmail.md +11 -0
- data/docs/SharedLinkEntry.md +8 -0
- data/docs/SharedLinkPaging.md +8 -0
- data/docs/SharedLinkPagingList.md +9 -0
- data/docs/SharedlinksApi.md +530 -0
- data/docs/Site.md +14 -0
- data/docs/SiteBodyCreate.md +11 -0
- data/docs/SiteBodyUpdate.md +10 -0
- data/docs/SiteContainer.md +9 -0
- data/docs/SiteContainerEntry.md +8 -0
- data/docs/SiteContainerPaging.md +8 -0
- data/docs/SiteContainerPagingList.md +9 -0
- data/docs/SiteEntry.md +8 -0
- data/docs/SiteMember.md +10 -0
- data/docs/SiteMemberEntry.md +8 -0
- data/docs/SiteMemberPaging.md +8 -0
- data/docs/SiteMemberPagingList.md +9 -0
- data/docs/SiteMembershipBodyCreate.md +9 -0
- data/docs/SiteMembershipBodyUpdate.md +8 -0
- data/docs/SiteMembershipRequest.md +11 -0
- data/docs/SiteMembershipRequestBodyCreate.md +10 -0
- data/docs/SiteMembershipRequestBodyUpdate.md +8 -0
- data/docs/SiteMembershipRequestEntry.md +8 -0
- data/docs/SiteMembershipRequestPaging.md +8 -0
- data/docs/SiteMembershipRequestPagingList.md +9 -0
- data/docs/SitePaging.md +8 -0
- data/docs/SitePagingList.md +9 -0
- data/docs/SiteRole.md +11 -0
- data/docs/SiteRoleEntry.md +8 -0
- data/docs/SiteRolePaging.md +8 -0
- data/docs/SiteRolePagingList.md +9 -0
- data/docs/SitesApi.md +1225 -0
- data/docs/Tag.md +9 -0
- data/docs/TagBody.md +8 -0
- data/docs/TagEntry.md +8 -0
- data/docs/TagPaging.md +8 -0
- data/docs/TagPagingList.md +9 -0
- data/docs/TagsApi.md +365 -0
- data/docs/TrashcanApi.md +474 -0
- data/docs/UserInfo.md +9 -0
- data/docs/Version.md +18 -0
- data/docs/VersionEntry.md +8 -0
- data/docs/VersionPaging.md +8 -0
- data/docs/VersionPagingList.md +9 -0
- data/docs/VersionsApi.md +311 -0
- data/git_push.sh +55 -0
- data/lib/alfresco_api.rb +208 -0
- data/lib/alfresco_api/api/activities_api.rb +101 -0
- data/lib/alfresco_api/api/audit_api.rb +558 -0
- data/lib/alfresco_api/api/comments_api.rb +289 -0
- data/lib/alfresco_api/api/downloads_api.rb +193 -0
- data/lib/alfresco_api/api/favorites_api.rb +555 -0
- data/lib/alfresco_api/api/groups_api.rb +627 -0
- data/lib/alfresco_api/api/networks_api.rb +217 -0
- data/lib/alfresco_api/api/nodes_api.rb +1314 -0
- data/lib/alfresco_api/api/people_api.rb +572 -0
- data/lib/alfresco_api/api/preferences_api.rb +159 -0
- data/lib/alfresco_api/api/queries_api.rb +260 -0
- data/lib/alfresco_api/api/ratings_api.rb +283 -0
- data/lib/alfresco_api/api/renditions_api.rb +271 -0
- data/lib/alfresco_api/api/sharedlinks_api.rb +570 -0
- data/lib/alfresco_api/api/sites_api.rb +1342 -0
- data/lib/alfresco_api/api/tags_api.rb +407 -0
- data/lib/alfresco_api/api/trashcan_api.rb +507 -0
- data/lib/alfresco_api/api/versions_api.rb +355 -0
- data/lib/alfresco_api/api_client.rb +389 -0
- data/lib/alfresco_api/api_error.rb +38 -0
- data/lib/alfresco_api/configuration.rb +209 -0
- data/lib/alfresco_api/models/activity.rb +271 -0
- data/lib/alfresco_api/models/activity_entry.rb +193 -0
- data/lib/alfresco_api/models/activity_paging.rb +188 -0
- data/lib/alfresco_api/models/activity_paging_list.rb +209 -0
- data/lib/alfresco_api/models/association.rb +207 -0
- data/lib/alfresco_api/models/association_body.rb +207 -0
- data/lib/alfresco_api/models/association_entry.rb +193 -0
- data/lib/alfresco_api/models/association_info.rb +193 -0
- data/lib/alfresco_api/models/audit_app.rb +213 -0
- data/lib/alfresco_api/models/audit_app_entry.rb +188 -0
- data/lib/alfresco_api/models/audit_app_paging.rb +188 -0
- data/lib/alfresco_api/models/audit_app_paging_list.rb +199 -0
- data/lib/alfresco_api/models/audit_body_update.rb +188 -0
- data/lib/alfresco_api/models/audit_entry.rb +246 -0
- data/lib/alfresco_api/models/audit_entry_entry.rb +188 -0
- data/lib/alfresco_api/models/audit_entry_paging.rb +188 -0
- data/lib/alfresco_api/models/audit_entry_paging_list.rb +199 -0
- data/lib/alfresco_api/models/child_association.rb +207 -0
- data/lib/alfresco_api/models/child_association_body.rb +207 -0
- data/lib/alfresco_api/models/child_association_entry.rb +193 -0
- data/lib/alfresco_api/models/child_association_info.rb +207 -0
- data/lib/alfresco_api/models/client_body.rb +194 -0
- data/lib/alfresco_api/models/comment.rb +305 -0
- data/lib/alfresco_api/models/comment_body.rb +193 -0
- data/lib/alfresco_api/models/comment_entry.rb +193 -0
- data/lib/alfresco_api/models/comment_paging.rb +188 -0
- data/lib/alfresco_api/models/comment_paging_list.rb +209 -0
- data/lib/alfresco_api/models/company.rb +251 -0
- data/lib/alfresco_api/models/content_info.rb +230 -0
- data/lib/alfresco_api/models/deleted_node.rb +440 -0
- data/lib/alfresco_api/models/deleted_node_entry.rb +188 -0
- data/lib/alfresco_api/models/deleted_nodes_paging.rb +188 -0
- data/lib/alfresco_api/models/deleted_nodes_paging_list.rb +199 -0
- data/lib/alfresco_api/models/download.rb +274 -0
- data/lib/alfresco_api/models/download_body_create.rb +195 -0
- data/lib/alfresco_api/models/download_entry.rb +193 -0
- data/lib/alfresco_api/models/error.rb +188 -0
- data/lib/alfresco_api/models/error_error.rb +253 -0
- data/lib/alfresco_api/models/favorite.rb +218 -0
- data/lib/alfresco_api/models/favorite_body_create.rb +193 -0
- data/lib/alfresco_api/models/favorite_entry.rb +193 -0
- data/lib/alfresco_api/models/favorite_paging.rb +188 -0
- data/lib/alfresco_api/models/favorite_paging_list.rb +209 -0
- data/lib/alfresco_api/models/favorite_site.rb +193 -0
- data/lib/alfresco_api/models/favorite_site_body_create.rb +193 -0
- data/lib/alfresco_api/models/favorite_site_entry.rb +193 -0
- data/lib/alfresco_api/models/group.rb +245 -0
- data/lib/alfresco_api/models/group_body_create.rb +218 -0
- data/lib/alfresco_api/models/group_body_update.rb +193 -0
- data/lib/alfresco_api/models/group_entry.rb +193 -0
- data/lib/alfresco_api/models/group_member.rb +254 -0
- data/lib/alfresco_api/models/group_member_entry.rb +193 -0
- data/lib/alfresco_api/models/group_member_paging.rb +188 -0
- data/lib/alfresco_api/models/group_member_paging_list.rb +199 -0
- data/lib/alfresco_api/models/group_membership_body_create.rb +240 -0
- data/lib/alfresco_api/models/group_paging.rb +188 -0
- data/lib/alfresco_api/models/group_paging_list.rb +199 -0
- data/lib/alfresco_api/models/network_quota.rb +221 -0
- data/lib/alfresco_api/models/node.rb +412 -0
- data/lib/alfresco_api/models/node_association.rb +421 -0
- data/lib/alfresco_api/models/node_association_entry.rb +193 -0
- data/lib/alfresco_api/models/node_association_paging.rb +188 -0
- data/lib/alfresco_api/models/node_association_paging_list.rb +208 -0
- data/lib/alfresco_api/models/node_body_copy.rb +219 -0
- data/lib/alfresco_api/models/node_body_create.rb +289 -0
- data/lib/alfresco_api/models/node_body_create_association.rb +188 -0
- data/lib/alfresco_api/models/node_body_lock.rb +271 -0
- data/lib/alfresco_api/models/node_body_move.rb +219 -0
- data/lib/alfresco_api/models/node_body_update.rb +245 -0
- data/lib/alfresco_api/models/node_child_association.rb +421 -0
- data/lib/alfresco_api/models/node_child_association_entry.rb +193 -0
- data/lib/alfresco_api/models/node_child_association_paging.rb +188 -0
- data/lib/alfresco_api/models/node_child_association_paging_list.rb +208 -0
- data/lib/alfresco_api/models/node_entry.rb +193 -0
- data/lib/alfresco_api/models/node_paging.rb +188 -0
- data/lib/alfresco_api/models/node_paging_list.rb +208 -0
- data/lib/alfresco_api/models/pagination.rb +249 -0
- data/lib/alfresco_api/models/password_reset_body.rb +224 -0
- data/lib/alfresco_api/models/path_element.rb +217 -0
- data/lib/alfresco_api/models/path_info.rb +208 -0
- data/lib/alfresco_api/models/permission_element.rb +241 -0
- data/lib/alfresco_api/models/permissions_body_update.rb +199 -0
- data/lib/alfresco_api/models/permissions_info.rb +221 -0
- data/lib/alfresco_api/models/person.rb +387 -0
- data/lib/alfresco_api/models/person_body_create.rb +378 -0
- data/lib/alfresco_api/models/person_body_update.rb +354 -0
- data/lib/alfresco_api/models/person_entry.rb +193 -0
- data/lib/alfresco_api/models/person_network.rb +289 -0
- data/lib/alfresco_api/models/person_network_entry.rb +193 -0
- data/lib/alfresco_api/models/person_network_paging.rb +188 -0
- data/lib/alfresco_api/models/person_network_paging_list.rb +209 -0
- data/lib/alfresco_api/models/person_paging.rb +188 -0
- data/lib/alfresco_api/models/person_paging_list.rb +199 -0
- data/lib/alfresco_api/models/preference.rb +204 -0
- data/lib/alfresco_api/models/preference_entry.rb +193 -0
- data/lib/alfresco_api/models/preference_paging.rb +188 -0
- data/lib/alfresco_api/models/preference_paging_list.rb +209 -0
- data/lib/alfresco_api/models/rating.rb +221 -0
- data/lib/alfresco_api/models/rating_aggregate.rb +202 -0
- data/lib/alfresco_api/models/rating_body.rb +244 -0
- data/lib/alfresco_api/models/rating_entry.rb +193 -0
- data/lib/alfresco_api/models/rating_paging.rb +188 -0
- data/lib/alfresco_api/models/rating_paging_list.rb +209 -0
- data/lib/alfresco_api/models/rendition.rb +239 -0
- data/lib/alfresco_api/models/rendition_body_create.rb +193 -0
- data/lib/alfresco_api/models/rendition_entry.rb +193 -0
- data/lib/alfresco_api/models/rendition_paging.rb +188 -0
- data/lib/alfresco_api/models/rendition_paging_list.rb +199 -0
- data/lib/alfresco_api/models/revert_body.rb +197 -0
- data/lib/alfresco_api/models/shared_link.rb +310 -0
- data/lib/alfresco_api/models/shared_link_body_create.rb +202 -0
- data/lib/alfresco_api/models/shared_link_body_email.rb +217 -0
- data/lib/alfresco_api/models/shared_link_entry.rb +193 -0
- data/lib/alfresco_api/models/shared_link_paging.rb +188 -0
- data/lib/alfresco_api/models/shared_link_paging_list.rb +209 -0
- data/lib/alfresco_api/models/site.rb +307 -0
- data/lib/alfresco_api/models/site_body_create.rb +260 -0
- data/lib/alfresco_api/models/site_body_update.rb +239 -0
- data/lib/alfresco_api/models/site_container.rb +207 -0
- data/lib/alfresco_api/models/site_container_entry.rb +193 -0
- data/lib/alfresco_api/models/site_container_paging.rb +188 -0
- data/lib/alfresco_api/models/site_container_paging_list.rb +209 -0
- data/lib/alfresco_api/models/site_entry.rb +193 -0
- data/lib/alfresco_api/models/site_member.rb +254 -0
- data/lib/alfresco_api/models/site_member_entry.rb +193 -0
- data/lib/alfresco_api/models/site_member_paging.rb +188 -0
- data/lib/alfresco_api/models/site_member_paging_list.rb +209 -0
- data/lib/alfresco_api/models/site_membership_body_create.rb +240 -0
- data/lib/alfresco_api/models/site_membership_body_update.rb +226 -0
- data/lib/alfresco_api/models/site_membership_request.rb +230 -0
- data/lib/alfresco_api/models/site_membership_request_body_create.rb +211 -0
- data/lib/alfresco_api/models/site_membership_request_body_update.rb +188 -0
- data/lib/alfresco_api/models/site_membership_request_entry.rb +193 -0
- data/lib/alfresco_api/models/site_membership_request_paging.rb +188 -0
- data/lib/alfresco_api/models/site_membership_request_paging_list.rb +209 -0
- data/lib/alfresco_api/models/site_paging.rb +188 -0
- data/lib/alfresco_api/models/site_paging_list.rb +209 -0
- data/lib/alfresco_api/models/site_role.rb +268 -0
- data/lib/alfresco_api/models/site_role_entry.rb +193 -0
- data/lib/alfresco_api/models/site_role_paging.rb +188 -0
- data/lib/alfresco_api/models/site_role_paging_list.rb +209 -0
- data/lib/alfresco_api/models/tag.rb +207 -0
- data/lib/alfresco_api/models/tag_body.rb +193 -0
- data/lib/alfresco_api/models/tag_entry.rb +193 -0
- data/lib/alfresco_api/models/tag_paging.rb +188 -0
- data/lib/alfresco_api/models/tag_paging_list.rb +209 -0
- data/lib/alfresco_api/models/user_info.rb +207 -0
- data/lib/alfresco_api/models/version.rb +337 -0
- data/lib/alfresco_api/models/version_entry.rb +188 -0
- data/lib/alfresco_api/models/version_paging.rb +188 -0
- data/lib/alfresco_api/models/version_paging_list.rb +199 -0
- data/lib/alfresco_api/version.rb +15 -0
- data/spec/api/activities_api_spec.rb +52 -0
- data/spec/api/audit_api_spec.rb +152 -0
- data/spec/api/comments_api_spec.rb +92 -0
- data/spec/api/downloads_api_spec.rb +73 -0
- data/spec/api/favorites_api_spec.rb +151 -0
- data/spec/api/groups_api_spec.rb +170 -0
- data/spec/api/networks_api_spec.rb +77 -0
- data/spec/api/nodes_api_spec.rb +327 -0
- data/spec/api/people_api_spec.rb +157 -0
- data/spec/api/preferences_api_spec.rb +64 -0
- data/spec/api/queries_api_spec.rb +86 -0
- data/spec/api/ratings_api_spec.rb +91 -0
- data/spec/api/renditions_api_spec.rb +90 -0
- data/spec/api/sharedlinks_api_spec.rb +157 -0
- data/spec/api/sites_api_spec.rb +323 -0
- data/spec/api/tags_api_spec.rb +118 -0
- data/spec/api/trashcan_api_spec.rb +143 -0
- data/spec/api/versions_api_spec.rb +107 -0
- data/spec/api_client_spec.rb +226 -0
- data/spec/configuration_spec.rb +42 -0
- data/spec/models/activity_entry_spec.rb +42 -0
- data/spec/models/activity_paging_list_spec.rb +48 -0
- data/spec/models/activity_paging_spec.rb +42 -0
- data/spec/models/activity_spec.rb +78 -0
- data/spec/models/association_body_spec.rb +48 -0
- data/spec/models/association_entry_spec.rb +42 -0
- data/spec/models/association_info_spec.rb +42 -0
- data/spec/models/association_spec.rb +48 -0
- data/spec/models/audit_app_entry_spec.rb +42 -0
- data/spec/models/audit_app_paging_list_spec.rb +48 -0
- data/spec/models/audit_app_paging_spec.rb +42 -0
- data/spec/models/audit_app_spec.rb +54 -0
- data/spec/models/audit_body_update_spec.rb +42 -0
- data/spec/models/audit_entry_entry_spec.rb +42 -0
- data/spec/models/audit_entry_paging_list_spec.rb +48 -0
- data/spec/models/audit_entry_paging_spec.rb +42 -0
- data/spec/models/audit_entry_spec.rb +66 -0
- data/spec/models/child_association_body_spec.rb +48 -0
- data/spec/models/child_association_entry_spec.rb +42 -0
- data/spec/models/child_association_info_spec.rb +48 -0
- data/spec/models/child_association_spec.rb +48 -0
- data/spec/models/client_body_spec.rb +42 -0
- data/spec/models/comment_body_spec.rb +42 -0
- data/spec/models/comment_entry_spec.rb +42 -0
- data/spec/models/comment_paging_list_spec.rb +48 -0
- data/spec/models/comment_paging_spec.rb +42 -0
- data/spec/models/comment_spec.rb +90 -0
- data/spec/models/company_spec.rb +84 -0
- data/spec/models/content_info_spec.rb +60 -0
- data/spec/models/deleted_node_entry_spec.rb +42 -0
- data/spec/models/deleted_node_spec.rb +156 -0
- data/spec/models/deleted_nodes_paging_list_spec.rb +48 -0
- data/spec/models/deleted_nodes_paging_spec.rb +42 -0
- data/spec/models/download_body_create_spec.rb +42 -0
- data/spec/models/download_entry_spec.rb +42 -0
- data/spec/models/download_spec.rb +76 -0
- data/spec/models/error_error_spec.rb +72 -0
- data/spec/models/error_spec.rb +42 -0
- data/spec/models/favorite_body_create_spec.rb +42 -0
- data/spec/models/favorite_entry_spec.rb +42 -0
- data/spec/models/favorite_paging_list_spec.rb +48 -0
- data/spec/models/favorite_paging_spec.rb +42 -0
- data/spec/models/favorite_site_body_create_spec.rb +42 -0
- data/spec/models/favorite_site_entry_spec.rb +42 -0
- data/spec/models/favorite_site_spec.rb +42 -0
- data/spec/models/favorite_spec.rb +54 -0
- data/spec/models/group_body_create_spec.rb +54 -0
- data/spec/models/group_body_update_spec.rb +42 -0
- data/spec/models/group_entry_spec.rb +42 -0
- data/spec/models/group_member_entry_spec.rb +42 -0
- data/spec/models/group_member_paging_list_spec.rb +48 -0
- data/spec/models/group_member_paging_spec.rb +42 -0
- data/spec/models/group_member_spec.rb +58 -0
- data/spec/models/group_membership_body_create_spec.rb +52 -0
- data/spec/models/group_paging_list_spec.rb +48 -0
- data/spec/models/group_paging_spec.rb +42 -0
- data/spec/models/group_spec.rb +66 -0
- data/spec/models/network_quota_spec.rb +54 -0
- data/spec/models/node_association_entry_spec.rb +42 -0
- data/spec/models/node_association_paging_list_spec.rb +54 -0
- data/spec/models/node_association_paging_spec.rb +42 -0
- data/spec/models/node_association_spec.rb +150 -0
- data/spec/models/node_body_copy_spec.rb +48 -0
- data/spec/models/node_body_create_association_spec.rb +42 -0
- data/spec/models/node_body_create_spec.rb +84 -0
- data/spec/models/node_body_lock_spec.rb +62 -0
- data/spec/models/node_body_move_spec.rb +48 -0
- data/spec/models/node_body_update_spec.rb +66 -0
- data/spec/models/node_child_association_entry_spec.rb +42 -0
- data/spec/models/node_child_association_paging_list_spec.rb +54 -0
- data/spec/models/node_child_association_paging_spec.rb +42 -0
- data/spec/models/node_child_association_spec.rb +150 -0
- data/spec/models/node_entry_spec.rb +42 -0
- data/spec/models/node_paging_list_spec.rb +54 -0
- data/spec/models/node_paging_spec.rb +42 -0
- data/spec/models/node_spec.rb +144 -0
- data/spec/models/pagination_spec.rb +66 -0
- data/spec/models/password_reset_body_spec.rb +54 -0
- data/spec/models/path_element_spec.rb +60 -0
- data/spec/models/path_info_spec.rb +54 -0
- data/spec/models/permission_element_spec.rb +58 -0
- data/spec/models/permissions_body_update_spec.rb +48 -0
- data/spec/models/permissions_info_spec.rb +60 -0
- data/spec/models/person_body_create_spec.rb +150 -0
- data/spec/models/person_body_update_spec.rb +150 -0
- data/spec/models/person_entry_spec.rb +42 -0
- data/spec/models/person_network_entry_spec.rb +42 -0
- data/spec/models/person_network_paging_list_spec.rb +48 -0
- data/spec/models/person_network_paging_spec.rb +42 -0
- data/spec/models/person_network_spec.rb +82 -0
- data/spec/models/person_paging_list_spec.rb +48 -0
- data/spec/models/person_paging_spec.rb +42 -0
- data/spec/models/person_spec.rb +156 -0
- data/spec/models/preference_entry_spec.rb +42 -0
- data/spec/models/preference_paging_list_spec.rb +48 -0
- data/spec/models/preference_paging_spec.rb +42 -0
- data/spec/models/preference_spec.rb +48 -0
- data/spec/models/rating_aggregate_spec.rb +48 -0
- data/spec/models/rating_body_spec.rb +52 -0
- data/spec/models/rating_entry_spec.rb +42 -0
- data/spec/models/rating_paging_list_spec.rb +48 -0
- data/spec/models/rating_paging_spec.rb +42 -0
- data/spec/models/rating_spec.rb +60 -0
- data/spec/models/rendition_body_create_spec.rb +42 -0
- data/spec/models/rendition_entry_spec.rb +42 -0
- data/spec/models/rendition_paging_list_spec.rb +48 -0
- data/spec/models/rendition_paging_spec.rb +42 -0
- data/spec/models/rendition_spec.rb +58 -0
- data/spec/models/revert_body_spec.rb +48 -0
- data/spec/models/shared_link_body_create_spec.rb +48 -0
- data/spec/models/shared_link_body_email_spec.rb +60 -0
- data/spec/models/shared_link_entry_spec.rb +42 -0
- data/spec/models/shared_link_paging_list_spec.rb +48 -0
- data/spec/models/shared_link_paging_spec.rb +42 -0
- data/spec/models/shared_link_spec.rb +108 -0
- data/spec/models/site_body_create_spec.rb +64 -0
- data/spec/models/site_body_update_spec.rb +58 -0
- data/spec/models/site_container_entry_spec.rb +42 -0
- data/spec/models/site_container_paging_list_spec.rb +48 -0
- data/spec/models/site_container_paging_spec.rb +42 -0
- data/spec/models/site_container_spec.rb +48 -0
- data/spec/models/site_entry_spec.rb +42 -0
- data/spec/models/site_member_entry_spec.rb +42 -0
- data/spec/models/site_member_paging_list_spec.rb +48 -0
- data/spec/models/site_member_paging_spec.rb +42 -0
- data/spec/models/site_member_spec.rb +58 -0
- data/spec/models/site_membership_body_create_spec.rb +52 -0
- data/spec/models/site_membership_body_update_spec.rb +46 -0
- data/spec/models/site_membership_request_body_create_spec.rb +54 -0
- data/spec/models/site_membership_request_body_update_spec.rb +42 -0
- data/spec/models/site_membership_request_entry_spec.rb +42 -0
- data/spec/models/site_membership_request_paging_list_spec.rb +48 -0
- data/spec/models/site_membership_request_paging_spec.rb +42 -0
- data/spec/models/site_membership_request_spec.rb +60 -0
- data/spec/models/site_paging_list_spec.rb +48 -0
- data/spec/models/site_paging_spec.rb +42 -0
- data/spec/models/site_role_entry_spec.rb +42 -0
- data/spec/models/site_role_paging_list_spec.rb +48 -0
- data/spec/models/site_role_paging_spec.rb +42 -0
- data/spec/models/site_role_spec.rb +64 -0
- data/spec/models/site_spec.rb +86 -0
- data/spec/models/tag_body_spec.rb +42 -0
- data/spec/models/tag_entry_spec.rb +42 -0
- data/spec/models/tag_paging_list_spec.rb +48 -0
- data/spec/models/tag_paging_spec.rb +42 -0
- data/spec/models/tag_spec.rb +48 -0
- data/spec/models/user_info_spec.rb +48 -0
- data/spec/models/version_entry_spec.rb +42 -0
- data/spec/models/version_paging_list_spec.rb +48 -0
- data/spec/models/version_paging_spec.rb +42 -0
- data/spec/models/version_spec.rb +102 -0
- data/spec/spec_helper.rb +111 -0
- metadata +918 -0
data/docs/Tag.md
ADDED
data/docs/TagBody.md
ADDED
data/docs/TagEntry.md
ADDED
data/docs/TagPaging.md
ADDED
@@ -0,0 +1,9 @@
|
|
1
|
+
# AlfrescoAPI::TagPagingList
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**pagination** | [**Pagination**](Pagination.md) | |
|
7
|
+
**entries** | [**Array<TagEntry>**](TagEntry.md) | |
|
8
|
+
|
9
|
+
|
data/docs/TagsApi.md
ADDED
@@ -0,0 +1,365 @@
|
|
1
|
+
# AlfrescoAPI::TagsApi
|
2
|
+
|
3
|
+
All URIs are relative to *https://localhost/alfresco/api/-default-/public/alfresco/versions/1*
|
4
|
+
|
5
|
+
Method | HTTP request | Description
|
6
|
+
------------- | ------------- | -------------
|
7
|
+
[**create_tag_for_node**](TagsApi.md#create_tag_for_node) | **POST** /nodes/{nodeId}/tags | Create a tag for a node
|
8
|
+
[**delete_tag_from_node**](TagsApi.md#delete_tag_from_node) | **DELETE** /nodes/{nodeId}/tags/{tagId} | Delete a tag from a node
|
9
|
+
[**get_tag**](TagsApi.md#get_tag) | **GET** /tags/{tagId} | Get a tag
|
10
|
+
[**list_tags**](TagsApi.md#list_tags) | **GET** /tags | List tags
|
11
|
+
[**list_tags_for_node**](TagsApi.md#list_tags_for_node) | **GET** /nodes/{nodeId}/tags | List tags for a node
|
12
|
+
[**update_tag**](TagsApi.md#update_tag) | **PUT** /tags/{tagId} | Update a tag
|
13
|
+
|
14
|
+
|
15
|
+
# **create_tag_for_node**
|
16
|
+
> TagEntry create_tag_for_node(node_idtag_body_create, opts)
|
17
|
+
|
18
|
+
Create a tag for a node
|
19
|
+
|
20
|
+
Creates a tag on the node **nodeId**. You specify the tag in a JSON body like this: ```JSON { \"tag\":\"test-tag-1\" } ``` **Note:** You can create more than one tag by specifying a list of tags in the JSON body like this: ```JSON [ { \"tag\":\"test-tag-1\" }, { \"tag\":\"test-tag-2\" } ] ``` If you specify a list as input, then a paginated list rather than an entry is returned in the response body. For example: ```JSON { \"list\": { \"pagination\": { \"count\": 2, \"hasMoreItems\": false, \"totalItems\": 2, \"skipCount\": 0, \"maxItems\": 100 }, \"entries\": [ { \"entry\": { ... } }, { \"entry\": { ... } } ] } } ```
|
21
|
+
|
22
|
+
### Example
|
23
|
+
```ruby
|
24
|
+
# load the gem
|
25
|
+
require 'alfresco_api'
|
26
|
+
# setup authorization
|
27
|
+
AlfrescoAPI.configure do |config|
|
28
|
+
# Configure HTTP basic authorization: basicAuth
|
29
|
+
config.username = 'YOUR USERNAME'
|
30
|
+
config.password = 'YOUR PASSWORD'
|
31
|
+
end
|
32
|
+
|
33
|
+
api_instance = AlfrescoAPI::TagsApi.new
|
34
|
+
|
35
|
+
node_id = "node_id_example" # String | The identifier of a node.
|
36
|
+
|
37
|
+
tag_body_create = AlfrescoAPI::TagBody.new # TagBody | The new tag
|
38
|
+
|
39
|
+
opts = {
|
40
|
+
fields: ["fields_example"] # Array<String> | A list of field names. You can use this parameter to restrict the fields returned within a response if, for example, you want to save on overall bandwidth. The list applies to a returned individual entity or entries within a collection. If the API method also supports the **include** parameter, then the fields specified in the **include** parameter are returned in addition to those specified in the **fields** parameter.
|
41
|
+
}
|
42
|
+
|
43
|
+
begin
|
44
|
+
#Create a tag for a node
|
45
|
+
result = api_instance.create_tag_for_node(node_idtag_body_create, opts)
|
46
|
+
p result
|
47
|
+
rescue AlfrescoAPI::ApiError => e
|
48
|
+
puts "Exception when calling TagsApi->create_tag_for_node: #{e}"
|
49
|
+
end
|
50
|
+
```
|
51
|
+
|
52
|
+
### Parameters
|
53
|
+
|
54
|
+
Name | Type | Description | Notes
|
55
|
+
------------- | ------------- | ------------- | -------------
|
56
|
+
**node_id** | **String**| The identifier of a node. |
|
57
|
+
**tag_body_create** | [**TagBody**](TagBody.md)| The new tag |
|
58
|
+
**fields** | [**Array<String>**](String.md)| A list of field names. You can use this parameter to restrict the fields returned within a response if, for example, you want to save on overall bandwidth. The list applies to a returned individual entity or entries within a collection. If the API method also supports the **include** parameter, then the fields specified in the **include** parameter are returned in addition to those specified in the **fields** parameter. | [optional]
|
59
|
+
|
60
|
+
### Return type
|
61
|
+
|
62
|
+
[**TagEntry**](TagEntry.md)
|
63
|
+
|
64
|
+
### Authorization
|
65
|
+
|
66
|
+
[basicAuth](../README.md#basicAuth)
|
67
|
+
|
68
|
+
### HTTP request headers
|
69
|
+
|
70
|
+
- **Content-Type**: application/json
|
71
|
+
- **Accept**: application/json
|
72
|
+
|
73
|
+
|
74
|
+
|
75
|
+
# **delete_tag_from_node**
|
76
|
+
> delete_tag_from_node(node_idtag_id, )
|
77
|
+
|
78
|
+
Delete a tag from a node
|
79
|
+
|
80
|
+
Deletes tag **tagId** from node **nodeId**.
|
81
|
+
|
82
|
+
### Example
|
83
|
+
```ruby
|
84
|
+
# load the gem
|
85
|
+
require 'alfresco_api'
|
86
|
+
# setup authorization
|
87
|
+
AlfrescoAPI.configure do |config|
|
88
|
+
# Configure HTTP basic authorization: basicAuth
|
89
|
+
config.username = 'YOUR USERNAME'
|
90
|
+
config.password = 'YOUR PASSWORD'
|
91
|
+
end
|
92
|
+
|
93
|
+
api_instance = AlfrescoAPI::TagsApi.new
|
94
|
+
|
95
|
+
node_id = "node_id_example" # String | The identifier of a node.
|
96
|
+
|
97
|
+
tag_id = "tag_id_example" # String | The identifier of a tag.
|
98
|
+
|
99
|
+
|
100
|
+
begin
|
101
|
+
#Delete a tag from a node
|
102
|
+
api_instance.delete_tag_from_node(node_idtag_id, )
|
103
|
+
rescue AlfrescoAPI::ApiError => e
|
104
|
+
puts "Exception when calling TagsApi->delete_tag_from_node: #{e}"
|
105
|
+
end
|
106
|
+
```
|
107
|
+
|
108
|
+
### Parameters
|
109
|
+
|
110
|
+
Name | Type | Description | Notes
|
111
|
+
------------- | ------------- | ------------- | -------------
|
112
|
+
**node_id** | **String**| The identifier of a node. |
|
113
|
+
**tag_id** | **String**| The identifier of a tag. |
|
114
|
+
|
115
|
+
### Return type
|
116
|
+
|
117
|
+
nil (empty response body)
|
118
|
+
|
119
|
+
### Authorization
|
120
|
+
|
121
|
+
[basicAuth](../README.md#basicAuth)
|
122
|
+
|
123
|
+
### HTTP request headers
|
124
|
+
|
125
|
+
- **Content-Type**: application/json
|
126
|
+
- **Accept**: application/json
|
127
|
+
|
128
|
+
|
129
|
+
|
130
|
+
# **get_tag**
|
131
|
+
> TagEntry get_tag(tag_id, , opts)
|
132
|
+
|
133
|
+
Get a tag
|
134
|
+
|
135
|
+
Get a specific tag with **tagId**.
|
136
|
+
|
137
|
+
### Example
|
138
|
+
```ruby
|
139
|
+
# load the gem
|
140
|
+
require 'alfresco_api'
|
141
|
+
# setup authorization
|
142
|
+
AlfrescoAPI.configure do |config|
|
143
|
+
# Configure HTTP basic authorization: basicAuth
|
144
|
+
config.username = 'YOUR USERNAME'
|
145
|
+
config.password = 'YOUR PASSWORD'
|
146
|
+
end
|
147
|
+
|
148
|
+
api_instance = AlfrescoAPI::TagsApi.new
|
149
|
+
|
150
|
+
tag_id = "tag_id_example" # String | The identifier of a tag.
|
151
|
+
|
152
|
+
opts = {
|
153
|
+
fields: ["fields_example"] # Array<String> | A list of field names. You can use this parameter to restrict the fields returned within a response if, for example, you want to save on overall bandwidth. The list applies to a returned individual entity or entries within a collection. If the API method also supports the **include** parameter, then the fields specified in the **include** parameter are returned in addition to those specified in the **fields** parameter.
|
154
|
+
}
|
155
|
+
|
156
|
+
begin
|
157
|
+
#Get a tag
|
158
|
+
result = api_instance.get_tag(tag_id, , opts)
|
159
|
+
p result
|
160
|
+
rescue AlfrescoAPI::ApiError => e
|
161
|
+
puts "Exception when calling TagsApi->get_tag: #{e}"
|
162
|
+
end
|
163
|
+
```
|
164
|
+
|
165
|
+
### Parameters
|
166
|
+
|
167
|
+
Name | Type | Description | Notes
|
168
|
+
------------- | ------------- | ------------- | -------------
|
169
|
+
**tag_id** | **String**| The identifier of a tag. |
|
170
|
+
**fields** | [**Array<String>**](String.md)| A list of field names. You can use this parameter to restrict the fields returned within a response if, for example, you want to save on overall bandwidth. The list applies to a returned individual entity or entries within a collection. If the API method also supports the **include** parameter, then the fields specified in the **include** parameter are returned in addition to those specified in the **fields** parameter. | [optional]
|
171
|
+
|
172
|
+
### Return type
|
173
|
+
|
174
|
+
[**TagEntry**](TagEntry.md)
|
175
|
+
|
176
|
+
### Authorization
|
177
|
+
|
178
|
+
[basicAuth](../README.md#basicAuth)
|
179
|
+
|
180
|
+
### HTTP request headers
|
181
|
+
|
182
|
+
- **Content-Type**: application/json
|
183
|
+
- **Accept**: application/json
|
184
|
+
|
185
|
+
|
186
|
+
|
187
|
+
# **list_tags**
|
188
|
+
> TagPaging list_tags(opts)
|
189
|
+
|
190
|
+
List tags
|
191
|
+
|
192
|
+
Gets a list of tags in this repository.
|
193
|
+
|
194
|
+
### Example
|
195
|
+
```ruby
|
196
|
+
# load the gem
|
197
|
+
require 'alfresco_api'
|
198
|
+
# setup authorization
|
199
|
+
AlfrescoAPI.configure do |config|
|
200
|
+
# Configure HTTP basic authorization: basicAuth
|
201
|
+
config.username = 'YOUR USERNAME'
|
202
|
+
config.password = 'YOUR PASSWORD'
|
203
|
+
end
|
204
|
+
|
205
|
+
api_instance = AlfrescoAPI::TagsApi.new
|
206
|
+
|
207
|
+
opts = {
|
208
|
+
skip_count: 0, # Integer | The number of entities that exist in the collection before those included in this list. If not supplied then the default value is 0.
|
209
|
+
max_items: 100, # Integer | The maximum number of items to return in the list. If not supplied then the default value is 100.
|
210
|
+
fields: ["fields_example"] # Array<String> | A list of field names. You can use this parameter to restrict the fields returned within a response if, for example, you want to save on overall bandwidth. The list applies to a returned individual entity or entries within a collection. If the API method also supports the **include** parameter, then the fields specified in the **include** parameter are returned in addition to those specified in the **fields** parameter.
|
211
|
+
}
|
212
|
+
|
213
|
+
begin
|
214
|
+
#List tags
|
215
|
+
result = api_instance.list_tags(opts)
|
216
|
+
p result
|
217
|
+
rescue AlfrescoAPI::ApiError => e
|
218
|
+
puts "Exception when calling TagsApi->list_tags: #{e}"
|
219
|
+
end
|
220
|
+
```
|
221
|
+
|
222
|
+
### Parameters
|
223
|
+
|
224
|
+
Name | Type | Description | Notes
|
225
|
+
------------- | ------------- | ------------- | -------------
|
226
|
+
**skip_count** | **Integer**| The number of entities that exist in the collection before those included in this list. If not supplied then the default value is 0. | [optional] [default to 0]
|
227
|
+
**max_items** | **Integer**| The maximum number of items to return in the list. If not supplied then the default value is 100. | [optional] [default to 100]
|
228
|
+
**fields** | [**Array<String>**](String.md)| A list of field names. You can use this parameter to restrict the fields returned within a response if, for example, you want to save on overall bandwidth. The list applies to a returned individual entity or entries within a collection. If the API method also supports the **include** parameter, then the fields specified in the **include** parameter are returned in addition to those specified in the **fields** parameter. | [optional]
|
229
|
+
|
230
|
+
### Return type
|
231
|
+
|
232
|
+
[**TagPaging**](TagPaging.md)
|
233
|
+
|
234
|
+
### Authorization
|
235
|
+
|
236
|
+
[basicAuth](../README.md#basicAuth)
|
237
|
+
|
238
|
+
### HTTP request headers
|
239
|
+
|
240
|
+
- **Content-Type**: application/json
|
241
|
+
- **Accept**: application/json
|
242
|
+
|
243
|
+
|
244
|
+
|
245
|
+
# **list_tags_for_node**
|
246
|
+
> TagPaging list_tags_for_node(node_id, opts)
|
247
|
+
|
248
|
+
List tags for a node
|
249
|
+
|
250
|
+
Gets a list of tags for node **nodeId**.
|
251
|
+
|
252
|
+
### Example
|
253
|
+
```ruby
|
254
|
+
# load the gem
|
255
|
+
require 'alfresco_api'
|
256
|
+
# setup authorization
|
257
|
+
AlfrescoAPI.configure do |config|
|
258
|
+
# Configure HTTP basic authorization: basicAuth
|
259
|
+
config.username = 'YOUR USERNAME'
|
260
|
+
config.password = 'YOUR PASSWORD'
|
261
|
+
end
|
262
|
+
|
263
|
+
api_instance = AlfrescoAPI::TagsApi.new
|
264
|
+
|
265
|
+
node_id = "node_id_example" # String | The identifier of a node.
|
266
|
+
|
267
|
+
opts = {
|
268
|
+
skip_count: 0, # Integer | The number of entities that exist in the collection before those included in this list. If not supplied then the default value is 0.
|
269
|
+
max_items: 100, # Integer | The maximum number of items to return in the list. If not supplied then the default value is 100.
|
270
|
+
fields: ["fields_example"] # Array<String> | A list of field names. You can use this parameter to restrict the fields returned within a response if, for example, you want to save on overall bandwidth. The list applies to a returned individual entity or entries within a collection. If the API method also supports the **include** parameter, then the fields specified in the **include** parameter are returned in addition to those specified in the **fields** parameter.
|
271
|
+
}
|
272
|
+
|
273
|
+
begin
|
274
|
+
#List tags for a node
|
275
|
+
result = api_instance.list_tags_for_node(node_id, opts)
|
276
|
+
p result
|
277
|
+
rescue AlfrescoAPI::ApiError => e
|
278
|
+
puts "Exception when calling TagsApi->list_tags_for_node: #{e}"
|
279
|
+
end
|
280
|
+
```
|
281
|
+
|
282
|
+
### Parameters
|
283
|
+
|
284
|
+
Name | Type | Description | Notes
|
285
|
+
------------- | ------------- | ------------- | -------------
|
286
|
+
**node_id** | **String**| The identifier of a node. |
|
287
|
+
**skip_count** | **Integer**| The number of entities that exist in the collection before those included in this list. If not supplied then the default value is 0. | [optional] [default to 0]
|
288
|
+
**max_items** | **Integer**| The maximum number of items to return in the list. If not supplied then the default value is 100. | [optional] [default to 100]
|
289
|
+
**fields** | [**Array<String>**](String.md)| A list of field names. You can use this parameter to restrict the fields returned within a response if, for example, you want to save on overall bandwidth. The list applies to a returned individual entity or entries within a collection. If the API method also supports the **include** parameter, then the fields specified in the **include** parameter are returned in addition to those specified in the **fields** parameter. | [optional]
|
290
|
+
|
291
|
+
### Return type
|
292
|
+
|
293
|
+
[**TagPaging**](TagPaging.md)
|
294
|
+
|
295
|
+
### Authorization
|
296
|
+
|
297
|
+
[basicAuth](../README.md#basicAuth)
|
298
|
+
|
299
|
+
### HTTP request headers
|
300
|
+
|
301
|
+
- **Content-Type**: application/json
|
302
|
+
- **Accept**: application/json
|
303
|
+
|
304
|
+
|
305
|
+
|
306
|
+
# **update_tag**
|
307
|
+
> TagEntry update_tag(tag_id, tag_body_update, opts)
|
308
|
+
|
309
|
+
Update a tag
|
310
|
+
|
311
|
+
Updates the tag **tagId**.
|
312
|
+
|
313
|
+
### Example
|
314
|
+
```ruby
|
315
|
+
# load the gem
|
316
|
+
require 'alfresco_api'
|
317
|
+
# setup authorization
|
318
|
+
AlfrescoAPI.configure do |config|
|
319
|
+
# Configure HTTP basic authorization: basicAuth
|
320
|
+
config.username = 'YOUR USERNAME'
|
321
|
+
config.password = 'YOUR PASSWORD'
|
322
|
+
end
|
323
|
+
|
324
|
+
api_instance = AlfrescoAPI::TagsApi.new
|
325
|
+
|
326
|
+
tag_id = "tag_id_example" # String | The identifier of a tag.
|
327
|
+
|
328
|
+
tag_body_update = AlfrescoAPI::TagBody.new # TagBody | The updated tag
|
329
|
+
|
330
|
+
opts = {
|
331
|
+
fields: ["fields_example"] # Array<String> | A list of field names. You can use this parameter to restrict the fields returned within a response if, for example, you want to save on overall bandwidth. The list applies to a returned individual entity or entries within a collection. If the API method also supports the **include** parameter, then the fields specified in the **include** parameter are returned in addition to those specified in the **fields** parameter.
|
332
|
+
}
|
333
|
+
|
334
|
+
begin
|
335
|
+
#Update a tag
|
336
|
+
result = api_instance.update_tag(tag_id, tag_body_update, opts)
|
337
|
+
p result
|
338
|
+
rescue AlfrescoAPI::ApiError => e
|
339
|
+
puts "Exception when calling TagsApi->update_tag: #{e}"
|
340
|
+
end
|
341
|
+
```
|
342
|
+
|
343
|
+
### Parameters
|
344
|
+
|
345
|
+
Name | Type | Description | Notes
|
346
|
+
------------- | ------------- | ------------- | -------------
|
347
|
+
**tag_id** | **String**| The identifier of a tag. |
|
348
|
+
**tag_body_update** | [**TagBody**](TagBody.md)| The updated tag |
|
349
|
+
**fields** | [**Array<String>**](String.md)| A list of field names. You can use this parameter to restrict the fields returned within a response if, for example, you want to save on overall bandwidth. The list applies to a returned individual entity or entries within a collection. If the API method also supports the **include** parameter, then the fields specified in the **include** parameter are returned in addition to those specified in the **fields** parameter. | [optional]
|
350
|
+
|
351
|
+
### Return type
|
352
|
+
|
353
|
+
[**TagEntry**](TagEntry.md)
|
354
|
+
|
355
|
+
### Authorization
|
356
|
+
|
357
|
+
[basicAuth](../README.md#basicAuth)
|
358
|
+
|
359
|
+
### HTTP request headers
|
360
|
+
|
361
|
+
- **Content-Type**: application/json
|
362
|
+
- **Accept**: application/json
|
363
|
+
|
364
|
+
|
365
|
+
|
data/docs/TrashcanApi.md
ADDED
@@ -0,0 +1,474 @@
|
|
1
|
+
# AlfrescoAPI::TrashcanApi
|
2
|
+
|
3
|
+
All URIs are relative to *https://localhost/alfresco/api/-default-/public/alfresco/versions/1*
|
4
|
+
|
5
|
+
Method | HTTP request | Description
|
6
|
+
------------- | ------------- | -------------
|
7
|
+
[**delete_deleted_node**](TrashcanApi.md#delete_deleted_node) | **DELETE** /deleted-nodes/{nodeId} | Permanently delete a deleted node
|
8
|
+
[**get_archived_node_rendition**](TrashcanApi.md#get_archived_node_rendition) | **GET** /deleted-nodes/{nodeId}/renditions/{renditionId} | Get rendition information for a deleted node
|
9
|
+
[**get_archived_node_rendition_content**](TrashcanApi.md#get_archived_node_rendition_content) | **GET** /deleted-nodes/{nodeId}/renditions/{renditionId}/content | Get rendition content of a deleted node
|
10
|
+
[**get_deleted_node**](TrashcanApi.md#get_deleted_node) | **GET** /deleted-nodes/{nodeId} | Get a deleted node
|
11
|
+
[**get_deleted_node_content**](TrashcanApi.md#get_deleted_node_content) | **GET** /deleted-nodes/{nodeId}/content | Get deleted node content
|
12
|
+
[**list_deleted_node_renditions**](TrashcanApi.md#list_deleted_node_renditions) | **GET** /deleted-nodes/{nodeId}/renditions | List renditions for a deleted node
|
13
|
+
[**list_deleted_nodes**](TrashcanApi.md#list_deleted_nodes) | **GET** /deleted-nodes | List deleted nodes
|
14
|
+
[**restore_deleted_node**](TrashcanApi.md#restore_deleted_node) | **POST** /deleted-nodes/{nodeId}/restore | Restore a deleted node
|
15
|
+
|
16
|
+
|
17
|
+
# **delete_deleted_node**
|
18
|
+
> delete_deleted_node(node_id)
|
19
|
+
|
20
|
+
Permanently delete a deleted node
|
21
|
+
|
22
|
+
**Note:** this endpoint is available in Alfresco 5.2 and newer versions. Permanently deletes the deleted node **nodeId**.
|
23
|
+
|
24
|
+
### Example
|
25
|
+
```ruby
|
26
|
+
# load the gem
|
27
|
+
require 'alfresco_api'
|
28
|
+
# setup authorization
|
29
|
+
AlfrescoAPI.configure do |config|
|
30
|
+
# Configure HTTP basic authorization: basicAuth
|
31
|
+
config.username = 'YOUR USERNAME'
|
32
|
+
config.password = 'YOUR PASSWORD'
|
33
|
+
end
|
34
|
+
|
35
|
+
api_instance = AlfrescoAPI::TrashcanApi.new
|
36
|
+
|
37
|
+
node_id = "node_id_example" # String | The identifier of a node.
|
38
|
+
|
39
|
+
|
40
|
+
begin
|
41
|
+
#Permanently delete a deleted node
|
42
|
+
api_instance.delete_deleted_node(node_id)
|
43
|
+
rescue AlfrescoAPI::ApiError => e
|
44
|
+
puts "Exception when calling TrashcanApi->delete_deleted_node: #{e}"
|
45
|
+
end
|
46
|
+
```
|
47
|
+
|
48
|
+
### Parameters
|
49
|
+
|
50
|
+
Name | Type | Description | Notes
|
51
|
+
------------- | ------------- | ------------- | -------------
|
52
|
+
**node_id** | **String**| The identifier of a node. |
|
53
|
+
|
54
|
+
### Return type
|
55
|
+
|
56
|
+
nil (empty response body)
|
57
|
+
|
58
|
+
### Authorization
|
59
|
+
|
60
|
+
[basicAuth](../README.md#basicAuth)
|
61
|
+
|
62
|
+
### HTTP request headers
|
63
|
+
|
64
|
+
- **Content-Type**: application/json
|
65
|
+
- **Accept**: application/json
|
66
|
+
|
67
|
+
|
68
|
+
|
69
|
+
# **get_archived_node_rendition**
|
70
|
+
> RenditionEntry get_archived_node_rendition(node_idrendition_id)
|
71
|
+
|
72
|
+
Get rendition information for a deleted node
|
73
|
+
|
74
|
+
**Note:** this endpoint is available in Alfresco 5.2 and newer versions. Gets the rendition information for **renditionId** of file **nodeId**.
|
75
|
+
|
76
|
+
### Example
|
77
|
+
```ruby
|
78
|
+
# load the gem
|
79
|
+
require 'alfresco_api'
|
80
|
+
# setup authorization
|
81
|
+
AlfrescoAPI.configure do |config|
|
82
|
+
# Configure HTTP basic authorization: basicAuth
|
83
|
+
config.username = 'YOUR USERNAME'
|
84
|
+
config.password = 'YOUR PASSWORD'
|
85
|
+
end
|
86
|
+
|
87
|
+
api_instance = AlfrescoAPI::TrashcanApi.new
|
88
|
+
|
89
|
+
node_id = "node_id_example" # String | The identifier of a node.
|
90
|
+
|
91
|
+
rendition_id = "rendition_id_example" # String | The name of a thumbnail rendition, for example *doclib*, or *pdf*.
|
92
|
+
|
93
|
+
|
94
|
+
begin
|
95
|
+
#Get rendition information for a deleted node
|
96
|
+
result = api_instance.get_archived_node_rendition(node_idrendition_id)
|
97
|
+
p result
|
98
|
+
rescue AlfrescoAPI::ApiError => e
|
99
|
+
puts "Exception when calling TrashcanApi->get_archived_node_rendition: #{e}"
|
100
|
+
end
|
101
|
+
```
|
102
|
+
|
103
|
+
### Parameters
|
104
|
+
|
105
|
+
Name | Type | Description | Notes
|
106
|
+
------------- | ------------- | ------------- | -------------
|
107
|
+
**node_id** | **String**| The identifier of a node. |
|
108
|
+
**rendition_id** | **String**| The name of a thumbnail rendition, for example *doclib*, or *pdf*. |
|
109
|
+
|
110
|
+
### Return type
|
111
|
+
|
112
|
+
[**RenditionEntry**](RenditionEntry.md)
|
113
|
+
|
114
|
+
### Authorization
|
115
|
+
|
116
|
+
[basicAuth](../README.md#basicAuth)
|
117
|
+
|
118
|
+
### HTTP request headers
|
119
|
+
|
120
|
+
- **Content-Type**: application/json
|
121
|
+
- **Accept**: application/json
|
122
|
+
|
123
|
+
|
124
|
+
|
125
|
+
# **get_archived_node_rendition_content**
|
126
|
+
> get_archived_node_rendition_content(node_idrendition_id, opts)
|
127
|
+
|
128
|
+
Get rendition content of a deleted node
|
129
|
+
|
130
|
+
**Note:** this endpoint is available in Alfresco 5.2 and newer versions. Gets the rendition content for **renditionId** of file **nodeId**.
|
131
|
+
|
132
|
+
### Example
|
133
|
+
```ruby
|
134
|
+
# load the gem
|
135
|
+
require 'alfresco_api'
|
136
|
+
# setup authorization
|
137
|
+
AlfrescoAPI.configure do |config|
|
138
|
+
# Configure HTTP basic authorization: basicAuth
|
139
|
+
config.username = 'YOUR USERNAME'
|
140
|
+
config.password = 'YOUR PASSWORD'
|
141
|
+
end
|
142
|
+
|
143
|
+
api_instance = AlfrescoAPI::TrashcanApi.new
|
144
|
+
|
145
|
+
node_id = "node_id_example" # String | The identifier of a node.
|
146
|
+
|
147
|
+
rendition_id = "rendition_id_example" # String | The name of a thumbnail rendition, for example *doclib*, or *pdf*.
|
148
|
+
|
149
|
+
opts = {
|
150
|
+
attachment: true, # BOOLEAN | **true** enables a web browser to download the file as an attachment. **false** means a web browser may preview the file in a new tab or window, but not download the file. You can only set this parameter to **false** if the content type of the file is in the supported list; for example, certain image files and PDF files. If the content type is not supported for preview, then a value of **false** is ignored, and the attachment will be returned in the response.
|
151
|
+
if_modified_since: DateTime.parse("2013-10-20T19:20:30+01:00") # DateTime | Only returns the content if it has been modified since the date provided. Use the date format defined by HTTP. For example, `Wed, 09 Mar 2016 16:56:34 GMT`.
|
152
|
+
placeholder: false # BOOLEAN | If **true** and there is no rendition for this **nodeId** and **renditionId**, then the placeholder image for the mime type of this rendition is returned, rather than a 404 response.
|
153
|
+
}
|
154
|
+
|
155
|
+
begin
|
156
|
+
#Get rendition content of a deleted node
|
157
|
+
api_instance.get_archived_node_rendition_content(node_idrendition_id, opts)
|
158
|
+
rescue AlfrescoAPI::ApiError => e
|
159
|
+
puts "Exception when calling TrashcanApi->get_archived_node_rendition_content: #{e}"
|
160
|
+
end
|
161
|
+
```
|
162
|
+
|
163
|
+
### Parameters
|
164
|
+
|
165
|
+
Name | Type | Description | Notes
|
166
|
+
------------- | ------------- | ------------- | -------------
|
167
|
+
**node_id** | **String**| The identifier of a node. |
|
168
|
+
**rendition_id** | **String**| The name of a thumbnail rendition, for example *doclib*, or *pdf*. |
|
169
|
+
**attachment** | **BOOLEAN**| **true** enables a web browser to download the file as an attachment. **false** means a web browser may preview the file in a new tab or window, but not download the file. You can only set this parameter to **false** if the content type of the file is in the supported list; for example, certain image files and PDF files. If the content type is not supported for preview, then a value of **false** is ignored, and the attachment will be returned in the response. | [optional] [default to true]
|
170
|
+
**if_modified_since** | **DateTime**| Only returns the content if it has been modified since the date provided. Use the date format defined by HTTP. For example, `Wed, 09 Mar 2016 16:56:34 GMT`. | [optional]
|
171
|
+
**placeholder** | **BOOLEAN**| If **true** and there is no rendition for this **nodeId** and **renditionId**, then the placeholder image for the mime type of this rendition is returned, rather than a 404 response. | [optional] [default to false]
|
172
|
+
|
173
|
+
### Return type
|
174
|
+
|
175
|
+
nil (empty response body)
|
176
|
+
|
177
|
+
### Authorization
|
178
|
+
|
179
|
+
[basicAuth](../README.md#basicAuth)
|
180
|
+
|
181
|
+
### HTTP request headers
|
182
|
+
|
183
|
+
- **Content-Type**: application/json
|
184
|
+
- **Accept**: application/json
|
185
|
+
|
186
|
+
|
187
|
+
|
188
|
+
# **get_deleted_node**
|
189
|
+
> DeletedNodeEntry get_deleted_node(node_id, opts)
|
190
|
+
|
191
|
+
Get a deleted node
|
192
|
+
|
193
|
+
**Note:** this endpoint is available in Alfresco 5.2 and newer versions. Gets the specific deleted node **nodeId**.
|
194
|
+
|
195
|
+
### Example
|
196
|
+
```ruby
|
197
|
+
# load the gem
|
198
|
+
require 'alfresco_api'
|
199
|
+
# setup authorization
|
200
|
+
AlfrescoAPI.configure do |config|
|
201
|
+
# Configure HTTP basic authorization: basicAuth
|
202
|
+
config.username = 'YOUR USERNAME'
|
203
|
+
config.password = 'YOUR PASSWORD'
|
204
|
+
end
|
205
|
+
|
206
|
+
api_instance = AlfrescoAPI::TrashcanApi.new
|
207
|
+
|
208
|
+
node_id = "node_id_example" # String | The identifier of a node.
|
209
|
+
|
210
|
+
opts = {
|
211
|
+
include: ["include_example"] # Array<String> | Returns additional information about the node. The following optional fields can be requested: * allowableOperations * association * isLink * isLocked * path * permissions
|
212
|
+
}
|
213
|
+
|
214
|
+
begin
|
215
|
+
#Get a deleted node
|
216
|
+
result = api_instance.get_deleted_node(node_id, opts)
|
217
|
+
p result
|
218
|
+
rescue AlfrescoAPI::ApiError => e
|
219
|
+
puts "Exception when calling TrashcanApi->get_deleted_node: #{e}"
|
220
|
+
end
|
221
|
+
```
|
222
|
+
|
223
|
+
### Parameters
|
224
|
+
|
225
|
+
Name | Type | Description | Notes
|
226
|
+
------------- | ------------- | ------------- | -------------
|
227
|
+
**node_id** | **String**| The identifier of a node. |
|
228
|
+
**include** | [**Array<String>**](String.md)| Returns additional information about the node. The following optional fields can be requested: * allowableOperations * association * isLink * isLocked * path * permissions | [optional]
|
229
|
+
|
230
|
+
### Return type
|
231
|
+
|
232
|
+
[**DeletedNodeEntry**](DeletedNodeEntry.md)
|
233
|
+
|
234
|
+
### Authorization
|
235
|
+
|
236
|
+
[basicAuth](../README.md#basicAuth)
|
237
|
+
|
238
|
+
### HTTP request headers
|
239
|
+
|
240
|
+
- **Content-Type**: application/json
|
241
|
+
- **Accept**: application/json
|
242
|
+
|
243
|
+
|
244
|
+
|
245
|
+
# **get_deleted_node_content**
|
246
|
+
> get_deleted_node_content(node_id, opts)
|
247
|
+
|
248
|
+
Get deleted node content
|
249
|
+
|
250
|
+
**Note:** this endpoint is available in Alfresco 5.2 and newer versions. Gets the content of the deleted node with identifier **nodeId**.
|
251
|
+
|
252
|
+
### Example
|
253
|
+
```ruby
|
254
|
+
# load the gem
|
255
|
+
require 'alfresco_api'
|
256
|
+
# setup authorization
|
257
|
+
AlfrescoAPI.configure do |config|
|
258
|
+
# Configure HTTP basic authorization: basicAuth
|
259
|
+
config.username = 'YOUR USERNAME'
|
260
|
+
config.password = 'YOUR PASSWORD'
|
261
|
+
end
|
262
|
+
|
263
|
+
api_instance = AlfrescoAPI::TrashcanApi.new
|
264
|
+
|
265
|
+
node_id = "node_id_example" # String | The identifier of a node.
|
266
|
+
|
267
|
+
opts = {
|
268
|
+
attachment: true, # BOOLEAN | **true** enables a web browser to download the file as an attachment. **false** means a web browser may preview the file in a new tab or window, but not download the file. You can only set this parameter to **false** if the content type of the file is in the supported list; for example, certain image files and PDF files. If the content type is not supported for preview, then a value of **false** is ignored, and the attachment will be returned in the response.
|
269
|
+
if_modified_since: DateTime.parse("2013-10-20T19:20:30+01:00") # DateTime | Only returns the content if it has been modified since the date provided. Use the date format defined by HTTP. For example, `Wed, 09 Mar 2016 16:56:34 GMT`.
|
270
|
+
}
|
271
|
+
|
272
|
+
begin
|
273
|
+
#Get deleted node content
|
274
|
+
api_instance.get_deleted_node_content(node_id, opts)
|
275
|
+
rescue AlfrescoAPI::ApiError => e
|
276
|
+
puts "Exception when calling TrashcanApi->get_deleted_node_content: #{e}"
|
277
|
+
end
|
278
|
+
```
|
279
|
+
|
280
|
+
### Parameters
|
281
|
+
|
282
|
+
Name | Type | Description | Notes
|
283
|
+
------------- | ------------- | ------------- | -------------
|
284
|
+
**node_id** | **String**| The identifier of a node. |
|
285
|
+
**attachment** | **BOOLEAN**| **true** enables a web browser to download the file as an attachment. **false** means a web browser may preview the file in a new tab or window, but not download the file. You can only set this parameter to **false** if the content type of the file is in the supported list; for example, certain image files and PDF files. If the content type is not supported for preview, then a value of **false** is ignored, and the attachment will be returned in the response. | [optional] [default to true]
|
286
|
+
**if_modified_since** | **DateTime**| Only returns the content if it has been modified since the date provided. Use the date format defined by HTTP. For example, `Wed, 09 Mar 2016 16:56:34 GMT`. | [optional]
|
287
|
+
|
288
|
+
### Return type
|
289
|
+
|
290
|
+
nil (empty response body)
|
291
|
+
|
292
|
+
### Authorization
|
293
|
+
|
294
|
+
[basicAuth](../README.md#basicAuth)
|
295
|
+
|
296
|
+
### HTTP request headers
|
297
|
+
|
298
|
+
- **Content-Type**: application/json
|
299
|
+
- **Accept**: application/json
|
300
|
+
|
301
|
+
|
302
|
+
|
303
|
+
# **list_deleted_node_renditions**
|
304
|
+
> RenditionPaging list_deleted_node_renditions(node_id, opts)
|
305
|
+
|
306
|
+
List renditions for a deleted node
|
307
|
+
|
308
|
+
**Note:** this endpoint is available in Alfresco 5.2 and newer versions. Gets a list of the rendition information for each rendition of the file **nodeId**, including the rendition id. Each rendition returned has a **status**: CREATED means it is available to view or download, NOT_CREATED means the rendition can be requested. You can use the **where** parameter to filter the returned renditions by **status**. For example, the following **where** clause will return just the CREATED renditions: ``` (status='CREATED') ```
|
309
|
+
|
310
|
+
### Example
|
311
|
+
```ruby
|
312
|
+
# load the gem
|
313
|
+
require 'alfresco_api'
|
314
|
+
# setup authorization
|
315
|
+
AlfrescoAPI.configure do |config|
|
316
|
+
# Configure HTTP basic authorization: basicAuth
|
317
|
+
config.username = 'YOUR USERNAME'
|
318
|
+
config.password = 'YOUR PASSWORD'
|
319
|
+
end
|
320
|
+
|
321
|
+
api_instance = AlfrescoAPI::TrashcanApi.new
|
322
|
+
|
323
|
+
node_id = "node_id_example" # String | The identifier of a node.
|
324
|
+
|
325
|
+
opts = {
|
326
|
+
where: "where_example", # String | A string to restrict the returned objects by using a predicate.
|
327
|
+
}
|
328
|
+
|
329
|
+
begin
|
330
|
+
#List renditions for a deleted node
|
331
|
+
result = api_instance.list_deleted_node_renditions(node_id, opts)
|
332
|
+
p result
|
333
|
+
rescue AlfrescoAPI::ApiError => e
|
334
|
+
puts "Exception when calling TrashcanApi->list_deleted_node_renditions: #{e}"
|
335
|
+
end
|
336
|
+
```
|
337
|
+
|
338
|
+
### Parameters
|
339
|
+
|
340
|
+
Name | Type | Description | Notes
|
341
|
+
------------- | ------------- | ------------- | -------------
|
342
|
+
**node_id** | **String**| The identifier of a node. |
|
343
|
+
**where** | **String**| A string to restrict the returned objects by using a predicate. | [optional]
|
344
|
+
|
345
|
+
### Return type
|
346
|
+
|
347
|
+
[**RenditionPaging**](RenditionPaging.md)
|
348
|
+
|
349
|
+
### Authorization
|
350
|
+
|
351
|
+
[basicAuth](../README.md#basicAuth)
|
352
|
+
|
353
|
+
### HTTP request headers
|
354
|
+
|
355
|
+
- **Content-Type**: application/json
|
356
|
+
- **Accept**: application/json
|
357
|
+
|
358
|
+
|
359
|
+
|
360
|
+
# **list_deleted_nodes**
|
361
|
+
> DeletedNodesPaging list_deleted_nodes(opts)
|
362
|
+
|
363
|
+
List deleted nodes
|
364
|
+
|
365
|
+
**Note:** this endpoint is available in Alfresco 5.2 and newer versions. Gets a list of deleted nodes for the current user. If the current user is an administrator deleted nodes for all users will be returned. The list of deleted nodes will be ordered with the most recently deleted node at the top of the list.
|
366
|
+
|
367
|
+
### Example
|
368
|
+
```ruby
|
369
|
+
# load the gem
|
370
|
+
require 'alfresco_api'
|
371
|
+
# setup authorization
|
372
|
+
AlfrescoAPI.configure do |config|
|
373
|
+
# Configure HTTP basic authorization: basicAuth
|
374
|
+
config.username = 'YOUR USERNAME'
|
375
|
+
config.password = 'YOUR PASSWORD'
|
376
|
+
end
|
377
|
+
|
378
|
+
api_instance = AlfrescoAPI::TrashcanApi.new
|
379
|
+
|
380
|
+
opts = {
|
381
|
+
skip_count: 0, # Integer | The number of entities that exist in the collection before those included in this list. If not supplied then the default value is 0.
|
382
|
+
max_items: 100, # Integer | The maximum number of items to return in the list. If not supplied then the default value is 100.
|
383
|
+
include: ["include_example"] # Array<String> | Returns additional information about the node. The following optional fields can be requested: * allowableOperations * aspectNames * association * isLink * isLocked * path * properties * permissions
|
384
|
+
}
|
385
|
+
|
386
|
+
begin
|
387
|
+
#List deleted nodes
|
388
|
+
result = api_instance.list_deleted_nodes(opts)
|
389
|
+
p result
|
390
|
+
rescue AlfrescoAPI::ApiError => e
|
391
|
+
puts "Exception when calling TrashcanApi->list_deleted_nodes: #{e}"
|
392
|
+
end
|
393
|
+
```
|
394
|
+
|
395
|
+
### Parameters
|
396
|
+
|
397
|
+
Name | Type | Description | Notes
|
398
|
+
------------- | ------------- | ------------- | -------------
|
399
|
+
**skip_count** | **Integer**| The number of entities that exist in the collection before those included in this list. If not supplied then the default value is 0. | [optional] [default to 0]
|
400
|
+
**max_items** | **Integer**| The maximum number of items to return in the list. If not supplied then the default value is 100. | [optional] [default to 100]
|
401
|
+
**include** | [**Array<String>**](String.md)| Returns additional information about the node. The following optional fields can be requested: * allowableOperations * aspectNames * association * isLink * isLocked * path * properties * permissions | [optional]
|
402
|
+
|
403
|
+
### Return type
|
404
|
+
|
405
|
+
[**DeletedNodesPaging**](DeletedNodesPaging.md)
|
406
|
+
|
407
|
+
### Authorization
|
408
|
+
|
409
|
+
[basicAuth](../README.md#basicAuth)
|
410
|
+
|
411
|
+
### HTTP request headers
|
412
|
+
|
413
|
+
- **Content-Type**: application/json
|
414
|
+
- **Accept**: application/json
|
415
|
+
|
416
|
+
|
417
|
+
|
418
|
+
# **restore_deleted_node**
|
419
|
+
> NodeEntry restore_deleted_node(node_id, opts)
|
420
|
+
|
421
|
+
Restore a deleted node
|
422
|
+
|
423
|
+
**Note:** this endpoint is available in Alfresco 5.2 and newer versions. Attempts to restore the deleted node **nodeId** to its original location. If the node is successfully restored to its former primary parent, then only the primary child association will be restored, including recursively for any primary children. It should be noted that no other secondary child associations or peer associations will be restored, for any of the nodes within the primary parent-child hierarchy of restored nodes, irrespective of whether these associations were to nodes within or outside of the restored hierarchy. Also, any previously shared link will not be restored since it is deleted at the time of delete of each node.
|
424
|
+
|
425
|
+
### Example
|
426
|
+
```ruby
|
427
|
+
# load the gem
|
428
|
+
require 'alfresco_api'
|
429
|
+
# setup authorization
|
430
|
+
AlfrescoAPI.configure do |config|
|
431
|
+
# Configure HTTP basic authorization: basicAuth
|
432
|
+
config.username = 'YOUR USERNAME'
|
433
|
+
config.password = 'YOUR PASSWORD'
|
434
|
+
end
|
435
|
+
|
436
|
+
api_instance = AlfrescoAPI::TrashcanApi.new
|
437
|
+
|
438
|
+
node_id = "node_id_example" # String | The identifier of a node.
|
439
|
+
|
440
|
+
opts = {
|
441
|
+
fields: ["fields_example"] # Array<String> | A list of field names. You can use this parameter to restrict the fields returned within a response if, for example, you want to save on overall bandwidth. The list applies to a returned individual entity or entries within a collection. If the API method also supports the **include** parameter, then the fields specified in the **include** parameter are returned in addition to those specified in the **fields** parameter.
|
442
|
+
}
|
443
|
+
|
444
|
+
begin
|
445
|
+
#Restore a deleted node
|
446
|
+
result = api_instance.restore_deleted_node(node_id, opts)
|
447
|
+
p result
|
448
|
+
rescue AlfrescoAPI::ApiError => e
|
449
|
+
puts "Exception when calling TrashcanApi->restore_deleted_node: #{e}"
|
450
|
+
end
|
451
|
+
```
|
452
|
+
|
453
|
+
### Parameters
|
454
|
+
|
455
|
+
Name | Type | Description | Notes
|
456
|
+
------------- | ------------- | ------------- | -------------
|
457
|
+
**node_id** | **String**| The identifier of a node. |
|
458
|
+
**fields** | [**Array<String>**](String.md)| A list of field names. You can use this parameter to restrict the fields returned within a response if, for example, you want to save on overall bandwidth. The list applies to a returned individual entity or entries within a collection. If the API method also supports the **include** parameter, then the fields specified in the **include** parameter are returned in addition to those specified in the **fields** parameter. | [optional]
|
459
|
+
|
460
|
+
### Return type
|
461
|
+
|
462
|
+
[**NodeEntry**](NodeEntry.md)
|
463
|
+
|
464
|
+
### Authorization
|
465
|
+
|
466
|
+
[basicAuth](../README.md#basicAuth)
|
467
|
+
|
468
|
+
### HTTP request headers
|
469
|
+
|
470
|
+
- **Content-Type**: application/json
|
471
|
+
- **Accept**: application/json
|
472
|
+
|
473
|
+
|
474
|
+
|