alfresco_api 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (522) hide show
  1. checksums.yaml +7 -0
  2. data/Gemfile +7 -0
  3. data/README.md +351 -0
  4. data/Rakefile +8 -0
  5. data/alfresco_api.gemspec +45 -0
  6. data/docs/ActivitiesApi.md +74 -0
  7. data/docs/Activity.md +14 -0
  8. data/docs/ActivityEntry.md +8 -0
  9. data/docs/ActivityPaging.md +8 -0
  10. data/docs/ActivityPagingList.md +9 -0
  11. data/docs/Association.md +9 -0
  12. data/docs/AssociationBody.md +9 -0
  13. data/docs/AssociationEntry.md +8 -0
  14. data/docs/AssociationInfo.md +8 -0
  15. data/docs/AuditApi.md +495 -0
  16. data/docs/AuditApp.md +10 -0
  17. data/docs/AuditAppEntry.md +8 -0
  18. data/docs/AuditAppPaging.md +8 -0
  19. data/docs/AuditAppPagingList.md +9 -0
  20. data/docs/AuditBodyUpdate.md +8 -0
  21. data/docs/AuditEntry.md +12 -0
  22. data/docs/AuditEntryEntry.md +8 -0
  23. data/docs/AuditEntryPaging.md +8 -0
  24. data/docs/AuditEntryPagingList.md +9 -0
  25. data/docs/ChildAssociation.md +9 -0
  26. data/docs/ChildAssociationBody.md +9 -0
  27. data/docs/ChildAssociationEntry.md +8 -0
  28. data/docs/ChildAssociationInfo.md +9 -0
  29. data/docs/ClientBody.md +8 -0
  30. data/docs/Comment.md +16 -0
  31. data/docs/CommentBody.md +8 -0
  32. data/docs/CommentEntry.md +8 -0
  33. data/docs/CommentPaging.md +8 -0
  34. data/docs/CommentPagingList.md +9 -0
  35. data/docs/CommentsApi.md +251 -0
  36. data/docs/Company.md +15 -0
  37. data/docs/ContentInfo.md +11 -0
  38. data/docs/DeletedNode.md +27 -0
  39. data/docs/DeletedNodeEntry.md +8 -0
  40. data/docs/DeletedNodesPaging.md +8 -0
  41. data/docs/DeletedNodesPagingList.md +9 -0
  42. data/docs/Download.md +13 -0
  43. data/docs/DownloadBodyCreate.md +8 -0
  44. data/docs/DownloadEntry.md +8 -0
  45. data/docs/DownloadsApi.md +177 -0
  46. data/docs/Error.md +8 -0
  47. data/docs/ErrorError.md +13 -0
  48. data/docs/Favorite.md +10 -0
  49. data/docs/FavoriteBodyCreate.md +8 -0
  50. data/docs/FavoriteEntry.md +8 -0
  51. data/docs/FavoritePaging.md +8 -0
  52. data/docs/FavoritePagingList.md +9 -0
  53. data/docs/FavoriteSite.md +8 -0
  54. data/docs/FavoriteSiteBodyCreate.md +8 -0
  55. data/docs/FavoriteSiteEntry.md +8 -0
  56. data/docs/FavoritesApi.md +496 -0
  57. data/docs/Group.md +12 -0
  58. data/docs/GroupBodyCreate.md +10 -0
  59. data/docs/GroupBodyUpdate.md +8 -0
  60. data/docs/GroupEntry.md +8 -0
  61. data/docs/GroupMember.md +10 -0
  62. data/docs/GroupMemberEntry.md +8 -0
  63. data/docs/GroupMemberPaging.md +8 -0
  64. data/docs/GroupMemberPagingList.md +9 -0
  65. data/docs/GroupMembershipBodyCreate.md +9 -0
  66. data/docs/GroupPaging.md +8 -0
  67. data/docs/GroupPagingList.md +9 -0
  68. data/docs/GroupsApi.md +564 -0
  69. data/docs/NetworkQuota.md +10 -0
  70. data/docs/NetworksApi.md +189 -0
  71. data/docs/Node.md +25 -0
  72. data/docs/NodeAssociation.md +26 -0
  73. data/docs/NodeAssociationEntry.md +8 -0
  74. data/docs/NodeAssociationPaging.md +8 -0
  75. data/docs/NodeAssociationPagingList.md +10 -0
  76. data/docs/NodeBodyCopy.md +9 -0
  77. data/docs/NodeBodyCreate.md +15 -0
  78. data/docs/NodeBodyCreateAssociation.md +8 -0
  79. data/docs/NodeBodyLock.md +10 -0
  80. data/docs/NodeBodyMove.md +9 -0
  81. data/docs/NodeBodyUpdate.md +12 -0
  82. data/docs/NodeChildAssociation.md +26 -0
  83. data/docs/NodeChildAssociationEntry.md +8 -0
  84. data/docs/NodeChildAssociationPaging.md +8 -0
  85. data/docs/NodeChildAssociationPagingList.md +10 -0
  86. data/docs/NodeEntry.md +8 -0
  87. data/docs/NodePaging.md +8 -0
  88. data/docs/NodePagingList.md +10 -0
  89. data/docs/NodesApi.md +1206 -0
  90. data/docs/Pagination.md +12 -0
  91. data/docs/PasswordResetBody.md +10 -0
  92. data/docs/PathElement.md +11 -0
  93. data/docs/PathInfo.md +10 -0
  94. data/docs/PeopleApi.md +530 -0
  95. data/docs/PermissionElement.md +10 -0
  96. data/docs/PermissionsBodyUpdate.md +9 -0
  97. data/docs/PermissionsInfo.md +11 -0
  98. data/docs/Person.md +27 -0
  99. data/docs/PersonBodyCreate.md +26 -0
  100. data/docs/PersonBodyUpdate.md +26 -0
  101. data/docs/PersonEntry.md +8 -0
  102. data/docs/PersonNetwork.md +14 -0
  103. data/docs/PersonNetworkEntry.md +8 -0
  104. data/docs/PersonNetworkPaging.md +8 -0
  105. data/docs/PersonNetworkPagingList.md +9 -0
  106. data/docs/PersonPaging.md +8 -0
  107. data/docs/PersonPagingList.md +9 -0
  108. data/docs/Preference.md +9 -0
  109. data/docs/PreferenceEntry.md +8 -0
  110. data/docs/PreferencePaging.md +8 -0
  111. data/docs/PreferencePagingList.md +9 -0
  112. data/docs/PreferencesApi.md +131 -0
  113. data/docs/QueriesApi.md +206 -0
  114. data/docs/Rating.md +11 -0
  115. data/docs/RatingAggregate.md +9 -0
  116. data/docs/RatingBody.md +9 -0
  117. data/docs/RatingEntry.md +8 -0
  118. data/docs/RatingPaging.md +8 -0
  119. data/docs/RatingPagingList.md +9 -0
  120. data/docs/RatingsApi.md +248 -0
  121. data/docs/Rendition.md +10 -0
  122. data/docs/RenditionBodyCreate.md +8 -0
  123. data/docs/RenditionEntry.md +8 -0
  124. data/docs/RenditionPaging.md +8 -0
  125. data/docs/RenditionPagingList.md +9 -0
  126. data/docs/RenditionsApi.md +243 -0
  127. data/docs/RevertBody.md +9 -0
  128. data/docs/SharedLink.md +19 -0
  129. data/docs/SharedLinkBodyCreate.md +9 -0
  130. data/docs/SharedLinkBodyEmail.md +11 -0
  131. data/docs/SharedLinkEntry.md +8 -0
  132. data/docs/SharedLinkPaging.md +8 -0
  133. data/docs/SharedLinkPagingList.md +9 -0
  134. data/docs/SharedlinksApi.md +530 -0
  135. data/docs/Site.md +14 -0
  136. data/docs/SiteBodyCreate.md +11 -0
  137. data/docs/SiteBodyUpdate.md +10 -0
  138. data/docs/SiteContainer.md +9 -0
  139. data/docs/SiteContainerEntry.md +8 -0
  140. data/docs/SiteContainerPaging.md +8 -0
  141. data/docs/SiteContainerPagingList.md +9 -0
  142. data/docs/SiteEntry.md +8 -0
  143. data/docs/SiteMember.md +10 -0
  144. data/docs/SiteMemberEntry.md +8 -0
  145. data/docs/SiteMemberPaging.md +8 -0
  146. data/docs/SiteMemberPagingList.md +9 -0
  147. data/docs/SiteMembershipBodyCreate.md +9 -0
  148. data/docs/SiteMembershipBodyUpdate.md +8 -0
  149. data/docs/SiteMembershipRequest.md +11 -0
  150. data/docs/SiteMembershipRequestBodyCreate.md +10 -0
  151. data/docs/SiteMembershipRequestBodyUpdate.md +8 -0
  152. data/docs/SiteMembershipRequestEntry.md +8 -0
  153. data/docs/SiteMembershipRequestPaging.md +8 -0
  154. data/docs/SiteMembershipRequestPagingList.md +9 -0
  155. data/docs/SitePaging.md +8 -0
  156. data/docs/SitePagingList.md +9 -0
  157. data/docs/SiteRole.md +11 -0
  158. data/docs/SiteRoleEntry.md +8 -0
  159. data/docs/SiteRolePaging.md +8 -0
  160. data/docs/SiteRolePagingList.md +9 -0
  161. data/docs/SitesApi.md +1225 -0
  162. data/docs/Tag.md +9 -0
  163. data/docs/TagBody.md +8 -0
  164. data/docs/TagEntry.md +8 -0
  165. data/docs/TagPaging.md +8 -0
  166. data/docs/TagPagingList.md +9 -0
  167. data/docs/TagsApi.md +365 -0
  168. data/docs/TrashcanApi.md +474 -0
  169. data/docs/UserInfo.md +9 -0
  170. data/docs/Version.md +18 -0
  171. data/docs/VersionEntry.md +8 -0
  172. data/docs/VersionPaging.md +8 -0
  173. data/docs/VersionPagingList.md +9 -0
  174. data/docs/VersionsApi.md +311 -0
  175. data/git_push.sh +55 -0
  176. data/lib/alfresco_api.rb +208 -0
  177. data/lib/alfresco_api/api/activities_api.rb +101 -0
  178. data/lib/alfresco_api/api/audit_api.rb +558 -0
  179. data/lib/alfresco_api/api/comments_api.rb +289 -0
  180. data/lib/alfresco_api/api/downloads_api.rb +193 -0
  181. data/lib/alfresco_api/api/favorites_api.rb +555 -0
  182. data/lib/alfresco_api/api/groups_api.rb +627 -0
  183. data/lib/alfresco_api/api/networks_api.rb +217 -0
  184. data/lib/alfresco_api/api/nodes_api.rb +1314 -0
  185. data/lib/alfresco_api/api/people_api.rb +572 -0
  186. data/lib/alfresco_api/api/preferences_api.rb +159 -0
  187. data/lib/alfresco_api/api/queries_api.rb +260 -0
  188. data/lib/alfresco_api/api/ratings_api.rb +283 -0
  189. data/lib/alfresco_api/api/renditions_api.rb +271 -0
  190. data/lib/alfresco_api/api/sharedlinks_api.rb +570 -0
  191. data/lib/alfresco_api/api/sites_api.rb +1342 -0
  192. data/lib/alfresco_api/api/tags_api.rb +407 -0
  193. data/lib/alfresco_api/api/trashcan_api.rb +507 -0
  194. data/lib/alfresco_api/api/versions_api.rb +355 -0
  195. data/lib/alfresco_api/api_client.rb +389 -0
  196. data/lib/alfresco_api/api_error.rb +38 -0
  197. data/lib/alfresco_api/configuration.rb +209 -0
  198. data/lib/alfresco_api/models/activity.rb +271 -0
  199. data/lib/alfresco_api/models/activity_entry.rb +193 -0
  200. data/lib/alfresco_api/models/activity_paging.rb +188 -0
  201. data/lib/alfresco_api/models/activity_paging_list.rb +209 -0
  202. data/lib/alfresco_api/models/association.rb +207 -0
  203. data/lib/alfresco_api/models/association_body.rb +207 -0
  204. data/lib/alfresco_api/models/association_entry.rb +193 -0
  205. data/lib/alfresco_api/models/association_info.rb +193 -0
  206. data/lib/alfresco_api/models/audit_app.rb +213 -0
  207. data/lib/alfresco_api/models/audit_app_entry.rb +188 -0
  208. data/lib/alfresco_api/models/audit_app_paging.rb +188 -0
  209. data/lib/alfresco_api/models/audit_app_paging_list.rb +199 -0
  210. data/lib/alfresco_api/models/audit_body_update.rb +188 -0
  211. data/lib/alfresco_api/models/audit_entry.rb +246 -0
  212. data/lib/alfresco_api/models/audit_entry_entry.rb +188 -0
  213. data/lib/alfresco_api/models/audit_entry_paging.rb +188 -0
  214. data/lib/alfresco_api/models/audit_entry_paging_list.rb +199 -0
  215. data/lib/alfresco_api/models/child_association.rb +207 -0
  216. data/lib/alfresco_api/models/child_association_body.rb +207 -0
  217. data/lib/alfresco_api/models/child_association_entry.rb +193 -0
  218. data/lib/alfresco_api/models/child_association_info.rb +207 -0
  219. data/lib/alfresco_api/models/client_body.rb +194 -0
  220. data/lib/alfresco_api/models/comment.rb +305 -0
  221. data/lib/alfresco_api/models/comment_body.rb +193 -0
  222. data/lib/alfresco_api/models/comment_entry.rb +193 -0
  223. data/lib/alfresco_api/models/comment_paging.rb +188 -0
  224. data/lib/alfresco_api/models/comment_paging_list.rb +209 -0
  225. data/lib/alfresco_api/models/company.rb +251 -0
  226. data/lib/alfresco_api/models/content_info.rb +230 -0
  227. data/lib/alfresco_api/models/deleted_node.rb +440 -0
  228. data/lib/alfresco_api/models/deleted_node_entry.rb +188 -0
  229. data/lib/alfresco_api/models/deleted_nodes_paging.rb +188 -0
  230. data/lib/alfresco_api/models/deleted_nodes_paging_list.rb +199 -0
  231. data/lib/alfresco_api/models/download.rb +274 -0
  232. data/lib/alfresco_api/models/download_body_create.rb +195 -0
  233. data/lib/alfresco_api/models/download_entry.rb +193 -0
  234. data/lib/alfresco_api/models/error.rb +188 -0
  235. data/lib/alfresco_api/models/error_error.rb +253 -0
  236. data/lib/alfresco_api/models/favorite.rb +218 -0
  237. data/lib/alfresco_api/models/favorite_body_create.rb +193 -0
  238. data/lib/alfresco_api/models/favorite_entry.rb +193 -0
  239. data/lib/alfresco_api/models/favorite_paging.rb +188 -0
  240. data/lib/alfresco_api/models/favorite_paging_list.rb +209 -0
  241. data/lib/alfresco_api/models/favorite_site.rb +193 -0
  242. data/lib/alfresco_api/models/favorite_site_body_create.rb +193 -0
  243. data/lib/alfresco_api/models/favorite_site_entry.rb +193 -0
  244. data/lib/alfresco_api/models/group.rb +245 -0
  245. data/lib/alfresco_api/models/group_body_create.rb +218 -0
  246. data/lib/alfresco_api/models/group_body_update.rb +193 -0
  247. data/lib/alfresco_api/models/group_entry.rb +193 -0
  248. data/lib/alfresco_api/models/group_member.rb +254 -0
  249. data/lib/alfresco_api/models/group_member_entry.rb +193 -0
  250. data/lib/alfresco_api/models/group_member_paging.rb +188 -0
  251. data/lib/alfresco_api/models/group_member_paging_list.rb +199 -0
  252. data/lib/alfresco_api/models/group_membership_body_create.rb +240 -0
  253. data/lib/alfresco_api/models/group_paging.rb +188 -0
  254. data/lib/alfresco_api/models/group_paging_list.rb +199 -0
  255. data/lib/alfresco_api/models/network_quota.rb +221 -0
  256. data/lib/alfresco_api/models/node.rb +412 -0
  257. data/lib/alfresco_api/models/node_association.rb +421 -0
  258. data/lib/alfresco_api/models/node_association_entry.rb +193 -0
  259. data/lib/alfresco_api/models/node_association_paging.rb +188 -0
  260. data/lib/alfresco_api/models/node_association_paging_list.rb +208 -0
  261. data/lib/alfresco_api/models/node_body_copy.rb +219 -0
  262. data/lib/alfresco_api/models/node_body_create.rb +289 -0
  263. data/lib/alfresco_api/models/node_body_create_association.rb +188 -0
  264. data/lib/alfresco_api/models/node_body_lock.rb +271 -0
  265. data/lib/alfresco_api/models/node_body_move.rb +219 -0
  266. data/lib/alfresco_api/models/node_body_update.rb +245 -0
  267. data/lib/alfresco_api/models/node_child_association.rb +421 -0
  268. data/lib/alfresco_api/models/node_child_association_entry.rb +193 -0
  269. data/lib/alfresco_api/models/node_child_association_paging.rb +188 -0
  270. data/lib/alfresco_api/models/node_child_association_paging_list.rb +208 -0
  271. data/lib/alfresco_api/models/node_entry.rb +193 -0
  272. data/lib/alfresco_api/models/node_paging.rb +188 -0
  273. data/lib/alfresco_api/models/node_paging_list.rb +208 -0
  274. data/lib/alfresco_api/models/pagination.rb +249 -0
  275. data/lib/alfresco_api/models/password_reset_body.rb +224 -0
  276. data/lib/alfresco_api/models/path_element.rb +217 -0
  277. data/lib/alfresco_api/models/path_info.rb +208 -0
  278. data/lib/alfresco_api/models/permission_element.rb +241 -0
  279. data/lib/alfresco_api/models/permissions_body_update.rb +199 -0
  280. data/lib/alfresco_api/models/permissions_info.rb +221 -0
  281. data/lib/alfresco_api/models/person.rb +387 -0
  282. data/lib/alfresco_api/models/person_body_create.rb +378 -0
  283. data/lib/alfresco_api/models/person_body_update.rb +354 -0
  284. data/lib/alfresco_api/models/person_entry.rb +193 -0
  285. data/lib/alfresco_api/models/person_network.rb +289 -0
  286. data/lib/alfresco_api/models/person_network_entry.rb +193 -0
  287. data/lib/alfresco_api/models/person_network_paging.rb +188 -0
  288. data/lib/alfresco_api/models/person_network_paging_list.rb +209 -0
  289. data/lib/alfresco_api/models/person_paging.rb +188 -0
  290. data/lib/alfresco_api/models/person_paging_list.rb +199 -0
  291. data/lib/alfresco_api/models/preference.rb +204 -0
  292. data/lib/alfresco_api/models/preference_entry.rb +193 -0
  293. data/lib/alfresco_api/models/preference_paging.rb +188 -0
  294. data/lib/alfresco_api/models/preference_paging_list.rb +209 -0
  295. data/lib/alfresco_api/models/rating.rb +221 -0
  296. data/lib/alfresco_api/models/rating_aggregate.rb +202 -0
  297. data/lib/alfresco_api/models/rating_body.rb +244 -0
  298. data/lib/alfresco_api/models/rating_entry.rb +193 -0
  299. data/lib/alfresco_api/models/rating_paging.rb +188 -0
  300. data/lib/alfresco_api/models/rating_paging_list.rb +209 -0
  301. data/lib/alfresco_api/models/rendition.rb +239 -0
  302. data/lib/alfresco_api/models/rendition_body_create.rb +193 -0
  303. data/lib/alfresco_api/models/rendition_entry.rb +193 -0
  304. data/lib/alfresco_api/models/rendition_paging.rb +188 -0
  305. data/lib/alfresco_api/models/rendition_paging_list.rb +199 -0
  306. data/lib/alfresco_api/models/revert_body.rb +197 -0
  307. data/lib/alfresco_api/models/shared_link.rb +310 -0
  308. data/lib/alfresco_api/models/shared_link_body_create.rb +202 -0
  309. data/lib/alfresco_api/models/shared_link_body_email.rb +217 -0
  310. data/lib/alfresco_api/models/shared_link_entry.rb +193 -0
  311. data/lib/alfresco_api/models/shared_link_paging.rb +188 -0
  312. data/lib/alfresco_api/models/shared_link_paging_list.rb +209 -0
  313. data/lib/alfresco_api/models/site.rb +307 -0
  314. data/lib/alfresco_api/models/site_body_create.rb +260 -0
  315. data/lib/alfresco_api/models/site_body_update.rb +239 -0
  316. data/lib/alfresco_api/models/site_container.rb +207 -0
  317. data/lib/alfresco_api/models/site_container_entry.rb +193 -0
  318. data/lib/alfresco_api/models/site_container_paging.rb +188 -0
  319. data/lib/alfresco_api/models/site_container_paging_list.rb +209 -0
  320. data/lib/alfresco_api/models/site_entry.rb +193 -0
  321. data/lib/alfresco_api/models/site_member.rb +254 -0
  322. data/lib/alfresco_api/models/site_member_entry.rb +193 -0
  323. data/lib/alfresco_api/models/site_member_paging.rb +188 -0
  324. data/lib/alfresco_api/models/site_member_paging_list.rb +209 -0
  325. data/lib/alfresco_api/models/site_membership_body_create.rb +240 -0
  326. data/lib/alfresco_api/models/site_membership_body_update.rb +226 -0
  327. data/lib/alfresco_api/models/site_membership_request.rb +230 -0
  328. data/lib/alfresco_api/models/site_membership_request_body_create.rb +211 -0
  329. data/lib/alfresco_api/models/site_membership_request_body_update.rb +188 -0
  330. data/lib/alfresco_api/models/site_membership_request_entry.rb +193 -0
  331. data/lib/alfresco_api/models/site_membership_request_paging.rb +188 -0
  332. data/lib/alfresco_api/models/site_membership_request_paging_list.rb +209 -0
  333. data/lib/alfresco_api/models/site_paging.rb +188 -0
  334. data/lib/alfresco_api/models/site_paging_list.rb +209 -0
  335. data/lib/alfresco_api/models/site_role.rb +268 -0
  336. data/lib/alfresco_api/models/site_role_entry.rb +193 -0
  337. data/lib/alfresco_api/models/site_role_paging.rb +188 -0
  338. data/lib/alfresco_api/models/site_role_paging_list.rb +209 -0
  339. data/lib/alfresco_api/models/tag.rb +207 -0
  340. data/lib/alfresco_api/models/tag_body.rb +193 -0
  341. data/lib/alfresco_api/models/tag_entry.rb +193 -0
  342. data/lib/alfresco_api/models/tag_paging.rb +188 -0
  343. data/lib/alfresco_api/models/tag_paging_list.rb +209 -0
  344. data/lib/alfresco_api/models/user_info.rb +207 -0
  345. data/lib/alfresco_api/models/version.rb +337 -0
  346. data/lib/alfresco_api/models/version_entry.rb +188 -0
  347. data/lib/alfresco_api/models/version_paging.rb +188 -0
  348. data/lib/alfresco_api/models/version_paging_list.rb +199 -0
  349. data/lib/alfresco_api/version.rb +15 -0
  350. data/spec/api/activities_api_spec.rb +52 -0
  351. data/spec/api/audit_api_spec.rb +152 -0
  352. data/spec/api/comments_api_spec.rb +92 -0
  353. data/spec/api/downloads_api_spec.rb +73 -0
  354. data/spec/api/favorites_api_spec.rb +151 -0
  355. data/spec/api/groups_api_spec.rb +170 -0
  356. data/spec/api/networks_api_spec.rb +77 -0
  357. data/spec/api/nodes_api_spec.rb +327 -0
  358. data/spec/api/people_api_spec.rb +157 -0
  359. data/spec/api/preferences_api_spec.rb +64 -0
  360. data/spec/api/queries_api_spec.rb +86 -0
  361. data/spec/api/ratings_api_spec.rb +91 -0
  362. data/spec/api/renditions_api_spec.rb +90 -0
  363. data/spec/api/sharedlinks_api_spec.rb +157 -0
  364. data/spec/api/sites_api_spec.rb +323 -0
  365. data/spec/api/tags_api_spec.rb +118 -0
  366. data/spec/api/trashcan_api_spec.rb +143 -0
  367. data/spec/api/versions_api_spec.rb +107 -0
  368. data/spec/api_client_spec.rb +226 -0
  369. data/spec/configuration_spec.rb +42 -0
  370. data/spec/models/activity_entry_spec.rb +42 -0
  371. data/spec/models/activity_paging_list_spec.rb +48 -0
  372. data/spec/models/activity_paging_spec.rb +42 -0
  373. data/spec/models/activity_spec.rb +78 -0
  374. data/spec/models/association_body_spec.rb +48 -0
  375. data/spec/models/association_entry_spec.rb +42 -0
  376. data/spec/models/association_info_spec.rb +42 -0
  377. data/spec/models/association_spec.rb +48 -0
  378. data/spec/models/audit_app_entry_spec.rb +42 -0
  379. data/spec/models/audit_app_paging_list_spec.rb +48 -0
  380. data/spec/models/audit_app_paging_spec.rb +42 -0
  381. data/spec/models/audit_app_spec.rb +54 -0
  382. data/spec/models/audit_body_update_spec.rb +42 -0
  383. data/spec/models/audit_entry_entry_spec.rb +42 -0
  384. data/spec/models/audit_entry_paging_list_spec.rb +48 -0
  385. data/spec/models/audit_entry_paging_spec.rb +42 -0
  386. data/spec/models/audit_entry_spec.rb +66 -0
  387. data/spec/models/child_association_body_spec.rb +48 -0
  388. data/spec/models/child_association_entry_spec.rb +42 -0
  389. data/spec/models/child_association_info_spec.rb +48 -0
  390. data/spec/models/child_association_spec.rb +48 -0
  391. data/spec/models/client_body_spec.rb +42 -0
  392. data/spec/models/comment_body_spec.rb +42 -0
  393. data/spec/models/comment_entry_spec.rb +42 -0
  394. data/spec/models/comment_paging_list_spec.rb +48 -0
  395. data/spec/models/comment_paging_spec.rb +42 -0
  396. data/spec/models/comment_spec.rb +90 -0
  397. data/spec/models/company_spec.rb +84 -0
  398. data/spec/models/content_info_spec.rb +60 -0
  399. data/spec/models/deleted_node_entry_spec.rb +42 -0
  400. data/spec/models/deleted_node_spec.rb +156 -0
  401. data/spec/models/deleted_nodes_paging_list_spec.rb +48 -0
  402. data/spec/models/deleted_nodes_paging_spec.rb +42 -0
  403. data/spec/models/download_body_create_spec.rb +42 -0
  404. data/spec/models/download_entry_spec.rb +42 -0
  405. data/spec/models/download_spec.rb +76 -0
  406. data/spec/models/error_error_spec.rb +72 -0
  407. data/spec/models/error_spec.rb +42 -0
  408. data/spec/models/favorite_body_create_spec.rb +42 -0
  409. data/spec/models/favorite_entry_spec.rb +42 -0
  410. data/spec/models/favorite_paging_list_spec.rb +48 -0
  411. data/spec/models/favorite_paging_spec.rb +42 -0
  412. data/spec/models/favorite_site_body_create_spec.rb +42 -0
  413. data/spec/models/favorite_site_entry_spec.rb +42 -0
  414. data/spec/models/favorite_site_spec.rb +42 -0
  415. data/spec/models/favorite_spec.rb +54 -0
  416. data/spec/models/group_body_create_spec.rb +54 -0
  417. data/spec/models/group_body_update_spec.rb +42 -0
  418. data/spec/models/group_entry_spec.rb +42 -0
  419. data/spec/models/group_member_entry_spec.rb +42 -0
  420. data/spec/models/group_member_paging_list_spec.rb +48 -0
  421. data/spec/models/group_member_paging_spec.rb +42 -0
  422. data/spec/models/group_member_spec.rb +58 -0
  423. data/spec/models/group_membership_body_create_spec.rb +52 -0
  424. data/spec/models/group_paging_list_spec.rb +48 -0
  425. data/spec/models/group_paging_spec.rb +42 -0
  426. data/spec/models/group_spec.rb +66 -0
  427. data/spec/models/network_quota_spec.rb +54 -0
  428. data/spec/models/node_association_entry_spec.rb +42 -0
  429. data/spec/models/node_association_paging_list_spec.rb +54 -0
  430. data/spec/models/node_association_paging_spec.rb +42 -0
  431. data/spec/models/node_association_spec.rb +150 -0
  432. data/spec/models/node_body_copy_spec.rb +48 -0
  433. data/spec/models/node_body_create_association_spec.rb +42 -0
  434. data/spec/models/node_body_create_spec.rb +84 -0
  435. data/spec/models/node_body_lock_spec.rb +62 -0
  436. data/spec/models/node_body_move_spec.rb +48 -0
  437. data/spec/models/node_body_update_spec.rb +66 -0
  438. data/spec/models/node_child_association_entry_spec.rb +42 -0
  439. data/spec/models/node_child_association_paging_list_spec.rb +54 -0
  440. data/spec/models/node_child_association_paging_spec.rb +42 -0
  441. data/spec/models/node_child_association_spec.rb +150 -0
  442. data/spec/models/node_entry_spec.rb +42 -0
  443. data/spec/models/node_paging_list_spec.rb +54 -0
  444. data/spec/models/node_paging_spec.rb +42 -0
  445. data/spec/models/node_spec.rb +144 -0
  446. data/spec/models/pagination_spec.rb +66 -0
  447. data/spec/models/password_reset_body_spec.rb +54 -0
  448. data/spec/models/path_element_spec.rb +60 -0
  449. data/spec/models/path_info_spec.rb +54 -0
  450. data/spec/models/permission_element_spec.rb +58 -0
  451. data/spec/models/permissions_body_update_spec.rb +48 -0
  452. data/spec/models/permissions_info_spec.rb +60 -0
  453. data/spec/models/person_body_create_spec.rb +150 -0
  454. data/spec/models/person_body_update_spec.rb +150 -0
  455. data/spec/models/person_entry_spec.rb +42 -0
  456. data/spec/models/person_network_entry_spec.rb +42 -0
  457. data/spec/models/person_network_paging_list_spec.rb +48 -0
  458. data/spec/models/person_network_paging_spec.rb +42 -0
  459. data/spec/models/person_network_spec.rb +82 -0
  460. data/spec/models/person_paging_list_spec.rb +48 -0
  461. data/spec/models/person_paging_spec.rb +42 -0
  462. data/spec/models/person_spec.rb +156 -0
  463. data/spec/models/preference_entry_spec.rb +42 -0
  464. data/spec/models/preference_paging_list_spec.rb +48 -0
  465. data/spec/models/preference_paging_spec.rb +42 -0
  466. data/spec/models/preference_spec.rb +48 -0
  467. data/spec/models/rating_aggregate_spec.rb +48 -0
  468. data/spec/models/rating_body_spec.rb +52 -0
  469. data/spec/models/rating_entry_spec.rb +42 -0
  470. data/spec/models/rating_paging_list_spec.rb +48 -0
  471. data/spec/models/rating_paging_spec.rb +42 -0
  472. data/spec/models/rating_spec.rb +60 -0
  473. data/spec/models/rendition_body_create_spec.rb +42 -0
  474. data/spec/models/rendition_entry_spec.rb +42 -0
  475. data/spec/models/rendition_paging_list_spec.rb +48 -0
  476. data/spec/models/rendition_paging_spec.rb +42 -0
  477. data/spec/models/rendition_spec.rb +58 -0
  478. data/spec/models/revert_body_spec.rb +48 -0
  479. data/spec/models/shared_link_body_create_spec.rb +48 -0
  480. data/spec/models/shared_link_body_email_spec.rb +60 -0
  481. data/spec/models/shared_link_entry_spec.rb +42 -0
  482. data/spec/models/shared_link_paging_list_spec.rb +48 -0
  483. data/spec/models/shared_link_paging_spec.rb +42 -0
  484. data/spec/models/shared_link_spec.rb +108 -0
  485. data/spec/models/site_body_create_spec.rb +64 -0
  486. data/spec/models/site_body_update_spec.rb +58 -0
  487. data/spec/models/site_container_entry_spec.rb +42 -0
  488. data/spec/models/site_container_paging_list_spec.rb +48 -0
  489. data/spec/models/site_container_paging_spec.rb +42 -0
  490. data/spec/models/site_container_spec.rb +48 -0
  491. data/spec/models/site_entry_spec.rb +42 -0
  492. data/spec/models/site_member_entry_spec.rb +42 -0
  493. data/spec/models/site_member_paging_list_spec.rb +48 -0
  494. data/spec/models/site_member_paging_spec.rb +42 -0
  495. data/spec/models/site_member_spec.rb +58 -0
  496. data/spec/models/site_membership_body_create_spec.rb +52 -0
  497. data/spec/models/site_membership_body_update_spec.rb +46 -0
  498. data/spec/models/site_membership_request_body_create_spec.rb +54 -0
  499. data/spec/models/site_membership_request_body_update_spec.rb +42 -0
  500. data/spec/models/site_membership_request_entry_spec.rb +42 -0
  501. data/spec/models/site_membership_request_paging_list_spec.rb +48 -0
  502. data/spec/models/site_membership_request_paging_spec.rb +42 -0
  503. data/spec/models/site_membership_request_spec.rb +60 -0
  504. data/spec/models/site_paging_list_spec.rb +48 -0
  505. data/spec/models/site_paging_spec.rb +42 -0
  506. data/spec/models/site_role_entry_spec.rb +42 -0
  507. data/spec/models/site_role_paging_list_spec.rb +48 -0
  508. data/spec/models/site_role_paging_spec.rb +42 -0
  509. data/spec/models/site_role_spec.rb +64 -0
  510. data/spec/models/site_spec.rb +86 -0
  511. data/spec/models/tag_body_spec.rb +42 -0
  512. data/spec/models/tag_entry_spec.rb +42 -0
  513. data/spec/models/tag_paging_list_spec.rb +48 -0
  514. data/spec/models/tag_paging_spec.rb +42 -0
  515. data/spec/models/tag_spec.rb +48 -0
  516. data/spec/models/user_info_spec.rb +48 -0
  517. data/spec/models/version_entry_spec.rb +42 -0
  518. data/spec/models/version_paging_list_spec.rb +48 -0
  519. data/spec/models/version_paging_spec.rb +42 -0
  520. data/spec/models/version_spec.rb +102 -0
  521. data/spec/spec_helper.rb +111 -0
  522. metadata +918 -0
data/docs/Site.md ADDED
@@ -0,0 +1,14 @@
1
+ # AlfrescoAPI::Site
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **id** | **String** | |
7
+ **guid** | **String** | |
8
+ **title** | **String** | |
9
+ **description** | **String** | | [optional]
10
+ **visibility** | **String** | |
11
+ **preset** | **String** | | [optional]
12
+ **role** | **String** | | [optional]
13
+
14
+
@@ -0,0 +1,11 @@
1
+ # AlfrescoAPI::SiteBodyCreate
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **id** | **String** | | [optional]
7
+ **title** | **String** | |
8
+ **description** | **String** | | [optional]
9
+ **visibility** | **String** | | [default to "PUBLIC"]
10
+
11
+
@@ -0,0 +1,10 @@
1
+ # AlfrescoAPI::SiteBodyUpdate
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **title** | **String** | | [optional]
7
+ **description** | **String** | | [optional]
8
+ **visibility** | **String** | | [optional]
9
+
10
+
@@ -0,0 +1,9 @@
1
+ # AlfrescoAPI::SiteContainer
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **id** | **String** | |
7
+ **folder_id** | **String** | |
8
+
9
+
@@ -0,0 +1,8 @@
1
+ # AlfrescoAPI::SiteContainerEntry
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **entry** | [**SiteContainer**](SiteContainer.md) | |
7
+
8
+
@@ -0,0 +1,8 @@
1
+ # AlfrescoAPI::SiteContainerPaging
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **list** | [**SiteContainerPagingList**](SiteContainerPagingList.md) | | [optional]
7
+
8
+
@@ -0,0 +1,9 @@
1
+ # AlfrescoAPI::SiteContainerPagingList
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **pagination** | [**Pagination**](Pagination.md) | |
7
+ **entries** | [**Array<SiteContainerEntry>**](SiteContainerEntry.md) | |
8
+
9
+
data/docs/SiteEntry.md ADDED
@@ -0,0 +1,8 @@
1
+ # AlfrescoAPI::SiteEntry
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **entry** | [**Site**](Site.md) | |
7
+
8
+
@@ -0,0 +1,10 @@
1
+ # AlfrescoAPI::SiteMember
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **id** | **String** | |
7
+ **person** | [**Person**](Person.md) | |
8
+ **role** | **String** | |
9
+
10
+
@@ -0,0 +1,8 @@
1
+ # AlfrescoAPI::SiteMemberEntry
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **entry** | [**SiteMember**](SiteMember.md) | |
7
+
8
+
@@ -0,0 +1,8 @@
1
+ # AlfrescoAPI::SiteMemberPaging
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **list** | [**SiteMemberPagingList**](SiteMemberPagingList.md) | | [optional]
7
+
8
+
@@ -0,0 +1,9 @@
1
+ # AlfrescoAPI::SiteMemberPagingList
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **pagination** | [**Pagination**](Pagination.md) | |
7
+ **entries** | [**Array<SiteMemberEntry>**](SiteMemberEntry.md) | |
8
+
9
+
@@ -0,0 +1,9 @@
1
+ # AlfrescoAPI::SiteMembershipBodyCreate
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **role** | **String** | |
7
+ **id** | **String** | |
8
+
9
+
@@ -0,0 +1,8 @@
1
+ # AlfrescoAPI::SiteMembershipBodyUpdate
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **role** | **String** | |
7
+
8
+
@@ -0,0 +1,11 @@
1
+ # AlfrescoAPI::SiteMembershipRequest
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **id** | **String** | |
7
+ **created_at** | **DateTime** | |
8
+ **site** | [**Site**](Site.md) | |
9
+ **message** | **String** | | [optional]
10
+
11
+
@@ -0,0 +1,10 @@
1
+ # AlfrescoAPI::SiteMembershipRequestBodyCreate
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **message** | **String** | | [optional]
7
+ **id** | **String** | |
8
+ **title** | **String** | | [optional]
9
+
10
+
@@ -0,0 +1,8 @@
1
+ # AlfrescoAPI::SiteMembershipRequestBodyUpdate
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **message** | **String** | | [optional]
7
+
8
+
@@ -0,0 +1,8 @@
1
+ # AlfrescoAPI::SiteMembershipRequestEntry
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **entry** | [**SiteMembershipRequest**](SiteMembershipRequest.md) | |
7
+
8
+
@@ -0,0 +1,8 @@
1
+ # AlfrescoAPI::SiteMembershipRequestPaging
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **list** | [**SiteMembershipRequestPagingList**](SiteMembershipRequestPagingList.md) | | [optional]
7
+
8
+
@@ -0,0 +1,9 @@
1
+ # AlfrescoAPI::SiteMembershipRequestPagingList
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **pagination** | [**Pagination**](Pagination.md) | |
7
+ **entries** | [**Array<SiteMembershipRequestEntry>**](SiteMembershipRequestEntry.md) | |
8
+
9
+
@@ -0,0 +1,8 @@
1
+ # AlfrescoAPI::SitePaging
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **list** | [**SitePagingList**](SitePagingList.md) | | [optional]
7
+
8
+
@@ -0,0 +1,9 @@
1
+ # AlfrescoAPI::SitePagingList
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **pagination** | [**Pagination**](Pagination.md) | |
7
+ **entries** | [**Array<SiteEntry>**](SiteEntry.md) | |
8
+
9
+
data/docs/SiteRole.md ADDED
@@ -0,0 +1,11 @@
1
+ # AlfrescoAPI::SiteRole
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **site** | [**Site**](Site.md) | |
7
+ **id** | **String** | |
8
+ **guid** | **String** | |
9
+ **role** | **String** | |
10
+
11
+
@@ -0,0 +1,8 @@
1
+ # AlfrescoAPI::SiteRoleEntry
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **entry** | [**SiteRole**](SiteRole.md) | |
7
+
8
+
@@ -0,0 +1,8 @@
1
+ # AlfrescoAPI::SiteRolePaging
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **list** | [**SiteRolePagingList**](SiteRolePagingList.md) | | [optional]
7
+
8
+
@@ -0,0 +1,9 @@
1
+ # AlfrescoAPI::SiteRolePagingList
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **pagination** | [**Pagination**](Pagination.md) | |
7
+ **entries** | [**Array<SiteRoleEntry>**](SiteRoleEntry.md) | |
8
+
9
+
data/docs/SitesApi.md ADDED
@@ -0,0 +1,1225 @@
1
+ # AlfrescoAPI::SitesApi
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_site**](SitesApi.md#create_site) | **POST** /sites | Create a site
8
+ [**create_site_membership**](SitesApi.md#create_site_membership) | **POST** /sites/{siteId}/members | Create a site membership
9
+ [**create_site_membership_request_for_person**](SitesApi.md#create_site_membership_request_for_person) | **POST** /people/{personId}/site-membership-requests | Create a site membership request
10
+ [**delete_site**](SitesApi.md#delete_site) | **DELETE** /sites/{siteId} | Delete a site
11
+ [**delete_site_membership**](SitesApi.md#delete_site_membership) | **DELETE** /sites/{siteId}/members/{personId} | Delete a site membership
12
+ [**delete_site_membership_for_person**](SitesApi.md#delete_site_membership_for_person) | **DELETE** /people/{personId}/sites/{siteId} | Delete a site membership
13
+ [**delete_site_membership_request_for_person**](SitesApi.md#delete_site_membership_request_for_person) | **DELETE** /people/{personId}/site-membership-requests/{siteId} | Delete a site membership request
14
+ [**get_site**](SitesApi.md#get_site) | **GET** /sites/{siteId} | Get a site
15
+ [**get_site_container**](SitesApi.md#get_site_container) | **GET** /sites/{siteId}/containers/{containerId} | Get a site container
16
+ [**get_site_membership**](SitesApi.md#get_site_membership) | **GET** /sites/{siteId}/members/{personId} | Get a site membership
17
+ [**get_site_membership_for_person**](SitesApi.md#get_site_membership_for_person) | **GET** /people/{personId}/sites/{siteId} | Get a site membership
18
+ [**get_site_membership_request_for_person**](SitesApi.md#get_site_membership_request_for_person) | **GET** /people/{personId}/site-membership-requests/{siteId} | Get a site membership request
19
+ [**list_site_containers**](SitesApi.md#list_site_containers) | **GET** /sites/{siteId}/containers | List site containers
20
+ [**list_site_membership_requests_for_person**](SitesApi.md#list_site_membership_requests_for_person) | **GET** /people/{personId}/site-membership-requests | List site membership requests
21
+ [**list_site_memberships**](SitesApi.md#list_site_memberships) | **GET** /sites/{siteId}/members | List site memberships
22
+ [**list_site_memberships_for_person**](SitesApi.md#list_site_memberships_for_person) | **GET** /people/{personId}/sites | List site memberships
23
+ [**list_sites**](SitesApi.md#list_sites) | **GET** /sites | List sites
24
+ [**update_site**](SitesApi.md#update_site) | **PUT** /sites/{siteId} | Update a site
25
+ [**update_site_membership**](SitesApi.md#update_site_membership) | **PUT** /sites/{siteId}/members/{personId} | Update a site membership
26
+ [**update_site_membership_request_for_person**](SitesApi.md#update_site_membership_request_for_person) | **PUT** /people/{personId}/site-membership-requests/{siteId} | Update a site membership request
27
+
28
+
29
+ # **create_site**
30
+ > SiteEntry create_site(site_body_create, opts)
31
+
32
+ Create a site
33
+
34
+ **Note:** this endpoint is available in Alfresco 5.2 and newer versions. Creates a default site with the given details. Unless explicitly specified, the site id will be generated from the site title. The site id must be unique and only contain alphanumeric and/or dash characters. Note: the id of a site cannot be updated once the site has been created. For example, to create a public site called \"Marketing\" the following body could be used: ```JSON { \"title\": \"Marketing\", \"visibility\": \"PUBLIC\" } ``` The creation of the (surf) configuration files required by Share can be skipped via the **skipConfiguration** query parameter. **Note:** if skipped then such a site will **not** work within Share. The addition of the site to the user's site favorites can be skipped via the **skipAddToFavorites** query parameter. The creator will be added as a member with Site Manager role. When you create a site, a container called **documentLibrary** is created for you in the new site. This container is the root folder for content stored in the site.
35
+
36
+ ### Example
37
+ ```ruby
38
+ # load the gem
39
+ require 'alfresco_api'
40
+ # setup authorization
41
+ AlfrescoAPI.configure do |config|
42
+ # Configure HTTP basic authorization: basicAuth
43
+ config.username = 'YOUR USERNAME'
44
+ config.password = 'YOUR PASSWORD'
45
+ end
46
+
47
+ api_instance = AlfrescoAPI::SitesApi.new
48
+
49
+ site_body_create = AlfrescoAPI::SiteBodyCreate.new # SiteBodyCreate | The site details
50
+
51
+ opts = {
52
+ skip_configuration: false, # BOOLEAN | Flag to indicate whether the Share-specific (surf) configuration files for the site should not be created.
53
+ skip_add_to_favorites: false, # BOOLEAN | Flag to indicate whether the site should not be added to the user's site favorites.
54
+ 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.
55
+ }
56
+
57
+ begin
58
+ #Create a site
59
+ result = api_instance.create_site(site_body_create, opts)
60
+ p result
61
+ rescue AlfrescoAPI::ApiError => e
62
+ puts "Exception when calling SitesApi->create_site: #{e}"
63
+ end
64
+ ```
65
+
66
+ ### Parameters
67
+
68
+ Name | Type | Description | Notes
69
+ ------------- | ------------- | ------------- | -------------
70
+ **site_body_create** | [**SiteBodyCreate**](SiteBodyCreate.md)| The site details |
71
+ **skip_configuration** | **BOOLEAN**| Flag to indicate whether the Share-specific (surf) configuration files for the site should not be created. | [optional] [default to false]
72
+ **skip_add_to_favorites** | **BOOLEAN**| Flag to indicate whether the site should not be added to the user&#39;s site favorites. | [optional] [default to false]
73
+ **fields** | [**Array&lt;String&gt;**](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]
74
+
75
+ ### Return type
76
+
77
+ [**SiteEntry**](SiteEntry.md)
78
+
79
+ ### Authorization
80
+
81
+ [basicAuth](../README.md#basicAuth)
82
+
83
+ ### HTTP request headers
84
+
85
+ - **Content-Type**: application/json
86
+ - **Accept**: application/json
87
+
88
+
89
+
90
+ # **create_site_membership**
91
+ > SiteMemberEntry create_site_membership(site_id, site_membership_body_create, opts)
92
+
93
+ Create a site membership
94
+
95
+ Creates a site membership for person **personId** on site **siteId**. You can set the **role** to one of four types: * SiteConsumer * SiteCollaborator * SiteContributor * SiteManager **Note:** You can create more than one site membership by specifying a list of people in the JSON body like this: ```JSON [ { \"role\": \"SiteConsumer\", \"id\": \"joe\" }, { \"role\": \"SiteConsumer\", \"id\": \"fred\" } ] ``` 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\": { ... } } ] } } ```
96
+
97
+ ### Example
98
+ ```ruby
99
+ # load the gem
100
+ require 'alfresco_api'
101
+ # setup authorization
102
+ AlfrescoAPI.configure do |config|
103
+ # Configure HTTP basic authorization: basicAuth
104
+ config.username = 'YOUR USERNAME'
105
+ config.password = 'YOUR PASSWORD'
106
+ end
107
+
108
+ api_instance = AlfrescoAPI::SitesApi.new
109
+
110
+ site_id = "site_id_example" # String | The identifier of a site.
111
+
112
+ site_membership_body_create = AlfrescoAPI::SiteMembershipBodyCreate.new # SiteMembershipBodyCreate | The person to add and their role
113
+
114
+ opts = {
115
+ 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.
116
+ }
117
+
118
+ begin
119
+ #Create a site membership
120
+ result = api_instance.create_site_membership(site_id, site_membership_body_create, opts)
121
+ p result
122
+ rescue AlfrescoAPI::ApiError => e
123
+ puts "Exception when calling SitesApi->create_site_membership: #{e}"
124
+ end
125
+ ```
126
+
127
+ ### Parameters
128
+
129
+ Name | Type | Description | Notes
130
+ ------------- | ------------- | ------------- | -------------
131
+ **site_id** | **String**| The identifier of a site. |
132
+ **site_membership_body_create** | [**SiteMembershipBodyCreate**](SiteMembershipBodyCreate.md)| The person to add and their role |
133
+ **fields** | [**Array&lt;String&gt;**](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]
134
+
135
+ ### Return type
136
+
137
+ [**SiteMemberEntry**](SiteMemberEntry.md)
138
+
139
+ ### Authorization
140
+
141
+ [basicAuth](../README.md#basicAuth)
142
+
143
+ ### HTTP request headers
144
+
145
+ - **Content-Type**: application/json
146
+ - **Accept**: application/json
147
+
148
+
149
+
150
+ # **create_site_membership_request_for_person**
151
+ > SiteMembershipRequestEntry create_site_membership_request_for_person(person_idsite_membership_request_body_create, opts)
152
+
153
+ Create a site membership request
154
+
155
+ Create a site membership request for yourself on the site with the identifier of **id**, specified in the JSON body. The result of the request differs depending on the type of site. * For a **public** site, you join the site immediately as a SiteConsumer. * For a **moderated** site, your request is added to the site membership request list. The request waits for approval from the Site Manager. * You cannot request membership of a **private** site. Members are invited by the site administrator. You can use the `-me-` string in place of `<personId>` to specify the currently authenticated user. **Note:** You can create site membership requests for more than one site by specifying a list of sites in the JSON body like this: ```JSON [ { \"message\": \"Please can you add me\", \"id\": \"test-site-1\", \"title\": \"Request for test site 1\", }, { \"message\": \"Please can you add me\", \"id\": \"test-site-2\", \"title\": \"Request for test site 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\": { ... } } ] } } ```
156
+
157
+ ### Example
158
+ ```ruby
159
+ # load the gem
160
+ require 'alfresco_api'
161
+ # setup authorization
162
+ AlfrescoAPI.configure do |config|
163
+ # Configure HTTP basic authorization: basicAuth
164
+ config.username = 'YOUR USERNAME'
165
+ config.password = 'YOUR PASSWORD'
166
+ end
167
+
168
+ api_instance = AlfrescoAPI::SitesApi.new
169
+
170
+ person_id = "person_id_example" # String | The identifier of a person.
171
+
172
+ site_membership_request_body_create = AlfrescoAPI::SiteMembershipRequestBodyCreate.new # SiteMembershipRequestBodyCreate | Site membership request details
173
+
174
+ opts = {
175
+ 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.
176
+ }
177
+
178
+ begin
179
+ #Create a site membership request
180
+ result = api_instance.create_site_membership_request_for_person(person_idsite_membership_request_body_create, opts)
181
+ p result
182
+ rescue AlfrescoAPI::ApiError => e
183
+ puts "Exception when calling SitesApi->create_site_membership_request_for_person: #{e}"
184
+ end
185
+ ```
186
+
187
+ ### Parameters
188
+
189
+ Name | Type | Description | Notes
190
+ ------------- | ------------- | ------------- | -------------
191
+ **person_id** | **String**| The identifier of a person. |
192
+ **site_membership_request_body_create** | [**SiteMembershipRequestBodyCreate**](SiteMembershipRequestBodyCreate.md)| Site membership request details |
193
+ **fields** | [**Array&lt;String&gt;**](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]
194
+
195
+ ### Return type
196
+
197
+ [**SiteMembershipRequestEntry**](SiteMembershipRequestEntry.md)
198
+
199
+ ### Authorization
200
+
201
+ [basicAuth](../README.md#basicAuth)
202
+
203
+ ### HTTP request headers
204
+
205
+ - **Content-Type**: application/json
206
+ - **Accept**: application/json
207
+
208
+
209
+
210
+ # **delete_site**
211
+ > delete_site(site_id, , opts)
212
+
213
+ Delete a site
214
+
215
+ **Note:** this endpoint is available in Alfresco 5.2 and newer versions. Deletes the site with **siteId**.
216
+
217
+ ### Example
218
+ ```ruby
219
+ # load the gem
220
+ require 'alfresco_api'
221
+ # setup authorization
222
+ AlfrescoAPI.configure do |config|
223
+ # Configure HTTP basic authorization: basicAuth
224
+ config.username = 'YOUR USERNAME'
225
+ config.password = 'YOUR PASSWORD'
226
+ end
227
+
228
+ api_instance = AlfrescoAPI::SitesApi.new
229
+
230
+ site_id = "site_id_example" # String | The identifier of a site.
231
+
232
+ opts = {
233
+ permanent: false # BOOLEAN | Flag to indicate whether the site should be permanently deleted i.e. bypass the trashcan.
234
+ }
235
+
236
+ begin
237
+ #Delete a site
238
+ api_instance.delete_site(site_id, , opts)
239
+ rescue AlfrescoAPI::ApiError => e
240
+ puts "Exception when calling SitesApi->delete_site: #{e}"
241
+ end
242
+ ```
243
+
244
+ ### Parameters
245
+
246
+ Name | Type | Description | Notes
247
+ ------------- | ------------- | ------------- | -------------
248
+ **site_id** | **String**| The identifier of a site. |
249
+ **permanent** | **BOOLEAN**| Flag to indicate whether the site should be permanently deleted i.e. bypass the trashcan. | [optional] [default to false]
250
+
251
+ ### Return type
252
+
253
+ nil (empty response body)
254
+
255
+ ### Authorization
256
+
257
+ [basicAuth](../README.md#basicAuth)
258
+
259
+ ### HTTP request headers
260
+
261
+ - **Content-Type**: application/json
262
+ - **Accept**: application/json
263
+
264
+
265
+
266
+ # **delete_site_membership**
267
+ > delete_site_membership(site_id, person_id)
268
+
269
+ Delete a site membership
270
+
271
+ Deletes person **personId** as a member of site **siteId**. You can use the `-me-` string in place of `<personId>` to specify the currently authenticated user.
272
+
273
+ ### Example
274
+ ```ruby
275
+ # load the gem
276
+ require 'alfresco_api'
277
+ # setup authorization
278
+ AlfrescoAPI.configure do |config|
279
+ # Configure HTTP basic authorization: basicAuth
280
+ config.username = 'YOUR USERNAME'
281
+ config.password = 'YOUR PASSWORD'
282
+ end
283
+
284
+ api_instance = AlfrescoAPI::SitesApi.new
285
+
286
+ site_id = "site_id_example" # String | The identifier of a site.
287
+
288
+ person_id = "person_id_example" # String | The identifier of a person.
289
+
290
+
291
+ begin
292
+ #Delete a site membership
293
+ api_instance.delete_site_membership(site_id, person_id)
294
+ rescue AlfrescoAPI::ApiError => e
295
+ puts "Exception when calling SitesApi->delete_site_membership: #{e}"
296
+ end
297
+ ```
298
+
299
+ ### Parameters
300
+
301
+ Name | Type | Description | Notes
302
+ ------------- | ------------- | ------------- | -------------
303
+ **site_id** | **String**| The identifier of a site. |
304
+ **person_id** | **String**| The identifier of a person. |
305
+
306
+ ### Return type
307
+
308
+ nil (empty response body)
309
+
310
+ ### Authorization
311
+
312
+ [basicAuth](../README.md#basicAuth)
313
+
314
+ ### HTTP request headers
315
+
316
+ - **Content-Type**: application/json
317
+ - **Accept**: application/json
318
+
319
+
320
+
321
+ # **delete_site_membership_for_person**
322
+ > delete_site_membership_for_person(person_idsite_id, )
323
+
324
+ Delete a site membership
325
+
326
+ Deletes person **personId** as a member of site **siteId**. You can use the `-me-` string in place of `<personId>` to specify the currently authenticated user.
327
+
328
+ ### Example
329
+ ```ruby
330
+ # load the gem
331
+ require 'alfresco_api'
332
+ # setup authorization
333
+ AlfrescoAPI.configure do |config|
334
+ # Configure HTTP basic authorization: basicAuth
335
+ config.username = 'YOUR USERNAME'
336
+ config.password = 'YOUR PASSWORD'
337
+ end
338
+
339
+ api_instance = AlfrescoAPI::SitesApi.new
340
+
341
+ person_id = "person_id_example" # String | The identifier of a person.
342
+
343
+ site_id = "site_id_example" # String | The identifier of a site.
344
+
345
+
346
+ begin
347
+ #Delete a site membership
348
+ api_instance.delete_site_membership_for_person(person_idsite_id, )
349
+ rescue AlfrescoAPI::ApiError => e
350
+ puts "Exception when calling SitesApi->delete_site_membership_for_person: #{e}"
351
+ end
352
+ ```
353
+
354
+ ### Parameters
355
+
356
+ Name | Type | Description | Notes
357
+ ------------- | ------------- | ------------- | -------------
358
+ **person_id** | **String**| The identifier of a person. |
359
+ **site_id** | **String**| The identifier of a site. |
360
+
361
+ ### Return type
362
+
363
+ nil (empty response body)
364
+
365
+ ### Authorization
366
+
367
+ [basicAuth](../README.md#basicAuth)
368
+
369
+ ### HTTP request headers
370
+
371
+ - **Content-Type**: application/json
372
+ - **Accept**: application/json
373
+
374
+
375
+
376
+ # **delete_site_membership_request_for_person**
377
+ > delete_site_membership_request_for_person(person_idsite_id, )
378
+
379
+ Delete a site membership request
380
+
381
+ Deletes the site membership request to site **siteId** for person **personId**. You can use the `-me-` string in place of `<personId>` to specify the currently authenticated user.
382
+
383
+ ### Example
384
+ ```ruby
385
+ # load the gem
386
+ require 'alfresco_api'
387
+ # setup authorization
388
+ AlfrescoAPI.configure do |config|
389
+ # Configure HTTP basic authorization: basicAuth
390
+ config.username = 'YOUR USERNAME'
391
+ config.password = 'YOUR PASSWORD'
392
+ end
393
+
394
+ api_instance = AlfrescoAPI::SitesApi.new
395
+
396
+ person_id = "person_id_example" # String | The identifier of a person.
397
+
398
+ site_id = "site_id_example" # String | The identifier of a site.
399
+
400
+
401
+ begin
402
+ #Delete a site membership request
403
+ api_instance.delete_site_membership_request_for_person(person_idsite_id, )
404
+ rescue AlfrescoAPI::ApiError => e
405
+ puts "Exception when calling SitesApi->delete_site_membership_request_for_person: #{e}"
406
+ end
407
+ ```
408
+
409
+ ### Parameters
410
+
411
+ Name | Type | Description | Notes
412
+ ------------- | ------------- | ------------- | -------------
413
+ **person_id** | **String**| The identifier of a person. |
414
+ **site_id** | **String**| The identifier of a site. |
415
+
416
+ ### Return type
417
+
418
+ nil (empty response body)
419
+
420
+ ### Authorization
421
+
422
+ [basicAuth](../README.md#basicAuth)
423
+
424
+ ### HTTP request headers
425
+
426
+ - **Content-Type**: application/json
427
+ - **Accept**: application/json
428
+
429
+
430
+
431
+ # **get_site**
432
+ > SiteEntry get_site(site_id, , opts)
433
+
434
+ Get a site
435
+
436
+ Gets information for site **siteId**. You can use the **relations** parameter to include one or more related entities in a single response and so reduce network traffic. The entity types in Alfresco are organized in a tree structure. The **sites** entity has two children, **containers** and **members**. The following relations parameter returns all the container and member objects related to the site **siteId**: ``` containers,members ```
437
+
438
+ ### Example
439
+ ```ruby
440
+ # load the gem
441
+ require 'alfresco_api'
442
+ # setup authorization
443
+ AlfrescoAPI.configure do |config|
444
+ # Configure HTTP basic authorization: basicAuth
445
+ config.username = 'YOUR USERNAME'
446
+ config.password = 'YOUR PASSWORD'
447
+ end
448
+
449
+ api_instance = AlfrescoAPI::SitesApi.new
450
+
451
+ site_id = "site_id_example" # String | The identifier of a site.
452
+
453
+ opts = {
454
+ relations: ["relations_example"], # Array<String> | Use the relations parameter to include one or more related entities in a single response.
455
+ 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.
456
+ }
457
+
458
+ begin
459
+ #Get a site
460
+ result = api_instance.get_site(site_id, , opts)
461
+ p result
462
+ rescue AlfrescoAPI::ApiError => e
463
+ puts "Exception when calling SitesApi->get_site: #{e}"
464
+ end
465
+ ```
466
+
467
+ ### Parameters
468
+
469
+ Name | Type | Description | Notes
470
+ ------------- | ------------- | ------------- | -------------
471
+ **site_id** | **String**| The identifier of a site. |
472
+ **relations** | [**Array&lt;String&gt;**](String.md)| Use the relations parameter to include one or more related entities in a single response. | [optional]
473
+ **fields** | [**Array&lt;String&gt;**](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]
474
+
475
+ ### Return type
476
+
477
+ [**SiteEntry**](SiteEntry.md)
478
+
479
+ ### Authorization
480
+
481
+ [basicAuth](../README.md#basicAuth)
482
+
483
+ ### HTTP request headers
484
+
485
+ - **Content-Type**: application/json
486
+ - **Accept**: application/json
487
+
488
+
489
+
490
+ # **get_site_container**
491
+ > SiteContainerEntry get_site_container(site_id, container_id, opts)
492
+
493
+ Get a site container
494
+
495
+ Gets information on the container **containerId** in site **siteId**.
496
+
497
+ ### Example
498
+ ```ruby
499
+ # load the gem
500
+ require 'alfresco_api'
501
+ # setup authorization
502
+ AlfrescoAPI.configure do |config|
503
+ # Configure HTTP basic authorization: basicAuth
504
+ config.username = 'YOUR USERNAME'
505
+ config.password = 'YOUR PASSWORD'
506
+ end
507
+
508
+ api_instance = AlfrescoAPI::SitesApi.new
509
+
510
+ site_id = "site_id_example" # String | The identifier of a site.
511
+
512
+ container_id = "container_id_example" # String | The unique identifier of a site container.
513
+
514
+ opts = {
515
+ 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.
516
+ }
517
+
518
+ begin
519
+ #Get a site container
520
+ result = api_instance.get_site_container(site_id, container_id, opts)
521
+ p result
522
+ rescue AlfrescoAPI::ApiError => e
523
+ puts "Exception when calling SitesApi->get_site_container: #{e}"
524
+ end
525
+ ```
526
+
527
+ ### Parameters
528
+
529
+ Name | Type | Description | Notes
530
+ ------------- | ------------- | ------------- | -------------
531
+ **site_id** | **String**| The identifier of a site. |
532
+ **container_id** | **String**| The unique identifier of a site container. |
533
+ **fields** | [**Array&lt;String&gt;**](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]
534
+
535
+ ### Return type
536
+
537
+ [**SiteContainerEntry**](SiteContainerEntry.md)
538
+
539
+ ### Authorization
540
+
541
+ [basicAuth](../README.md#basicAuth)
542
+
543
+ ### HTTP request headers
544
+
545
+ - **Content-Type**: application/json
546
+ - **Accept**: application/json
547
+
548
+
549
+
550
+ # **get_site_membership**
551
+ > SiteMemberEntry get_site_membership(site_id, person_id, opts)
552
+
553
+ Get a site membership
554
+
555
+ Gets site membership information for person **personId** on site **siteId**. You can use the `-me-` string in place of `<personId>` to specify the currently authenticated user.
556
+
557
+ ### Example
558
+ ```ruby
559
+ # load the gem
560
+ require 'alfresco_api'
561
+ # setup authorization
562
+ AlfrescoAPI.configure do |config|
563
+ # Configure HTTP basic authorization: basicAuth
564
+ config.username = 'YOUR USERNAME'
565
+ config.password = 'YOUR PASSWORD'
566
+ end
567
+
568
+ api_instance = AlfrescoAPI::SitesApi.new
569
+
570
+ site_id = "site_id_example" # String | The identifier of a site.
571
+
572
+ person_id = "person_id_example" # String | The identifier of a person.
573
+
574
+ opts = {
575
+ 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.
576
+ }
577
+
578
+ begin
579
+ #Get a site membership
580
+ result = api_instance.get_site_membership(site_id, person_id, opts)
581
+ p result
582
+ rescue AlfrescoAPI::ApiError => e
583
+ puts "Exception when calling SitesApi->get_site_membership: #{e}"
584
+ end
585
+ ```
586
+
587
+ ### Parameters
588
+
589
+ Name | Type | Description | Notes
590
+ ------------- | ------------- | ------------- | -------------
591
+ **site_id** | **String**| The identifier of a site. |
592
+ **person_id** | **String**| The identifier of a person. |
593
+ **fields** | [**Array&lt;String&gt;**](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]
594
+
595
+ ### Return type
596
+
597
+ [**SiteMemberEntry**](SiteMemberEntry.md)
598
+
599
+ ### Authorization
600
+
601
+ [basicAuth](../README.md#basicAuth)
602
+
603
+ ### HTTP request headers
604
+
605
+ - **Content-Type**: application/json
606
+ - **Accept**: application/json
607
+
608
+
609
+
610
+ # **get_site_membership_for_person**
611
+ > SiteRoleEntry get_site_membership_for_person(person_idsite_id, )
612
+
613
+ Get a site membership
614
+
615
+ Gets site membership information for person **personId** on site **siteId**. You can use the `-me-` string in place of `<personId>` to specify the currently authenticated user.
616
+
617
+ ### Example
618
+ ```ruby
619
+ # load the gem
620
+ require 'alfresco_api'
621
+ # setup authorization
622
+ AlfrescoAPI.configure do |config|
623
+ # Configure HTTP basic authorization: basicAuth
624
+ config.username = 'YOUR USERNAME'
625
+ config.password = 'YOUR PASSWORD'
626
+ end
627
+
628
+ api_instance = AlfrescoAPI::SitesApi.new
629
+
630
+ person_id = "person_id_example" # String | The identifier of a person.
631
+
632
+ site_id = "site_id_example" # String | The identifier of a site.
633
+
634
+
635
+ begin
636
+ #Get a site membership
637
+ result = api_instance.get_site_membership_for_person(person_idsite_id, )
638
+ p result
639
+ rescue AlfrescoAPI::ApiError => e
640
+ puts "Exception when calling SitesApi->get_site_membership_for_person: #{e}"
641
+ end
642
+ ```
643
+
644
+ ### Parameters
645
+
646
+ Name | Type | Description | Notes
647
+ ------------- | ------------- | ------------- | -------------
648
+ **person_id** | **String**| The identifier of a person. |
649
+ **site_id** | **String**| The identifier of a site. |
650
+
651
+ ### Return type
652
+
653
+ [**SiteRoleEntry**](SiteRoleEntry.md)
654
+
655
+ ### Authorization
656
+
657
+ [basicAuth](../README.md#basicAuth)
658
+
659
+ ### HTTP request headers
660
+
661
+ - **Content-Type**: application/json
662
+ - **Accept**: application/json
663
+
664
+
665
+
666
+ # **get_site_membership_request_for_person**
667
+ > SiteMembershipRequestEntry get_site_membership_request_for_person(person_idsite_id, , opts)
668
+
669
+ Get a site membership request
670
+
671
+ Gets the site membership request for site **siteId** for person **personId**, if one exists. You can use the `-me-` string in place of `<personId>` to specify the currently authenticated user.
672
+
673
+ ### Example
674
+ ```ruby
675
+ # load the gem
676
+ require 'alfresco_api'
677
+ # setup authorization
678
+ AlfrescoAPI.configure do |config|
679
+ # Configure HTTP basic authorization: basicAuth
680
+ config.username = 'YOUR USERNAME'
681
+ config.password = 'YOUR PASSWORD'
682
+ end
683
+
684
+ api_instance = AlfrescoAPI::SitesApi.new
685
+
686
+ person_id = "person_id_example" # String | The identifier of a person.
687
+
688
+ site_id = "site_id_example" # String | The identifier of a site.
689
+
690
+ opts = {
691
+ 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.
692
+ }
693
+
694
+ begin
695
+ #Get a site membership request
696
+ result = api_instance.get_site_membership_request_for_person(person_idsite_id, , opts)
697
+ p result
698
+ rescue AlfrescoAPI::ApiError => e
699
+ puts "Exception when calling SitesApi->get_site_membership_request_for_person: #{e}"
700
+ end
701
+ ```
702
+
703
+ ### Parameters
704
+
705
+ Name | Type | Description | Notes
706
+ ------------- | ------------- | ------------- | -------------
707
+ **person_id** | **String**| The identifier of a person. |
708
+ **site_id** | **String**| The identifier of a site. |
709
+ **fields** | [**Array&lt;String&gt;**](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]
710
+
711
+ ### Return type
712
+
713
+ [**SiteMembershipRequestEntry**](SiteMembershipRequestEntry.md)
714
+
715
+ ### Authorization
716
+
717
+ [basicAuth](../README.md#basicAuth)
718
+
719
+ ### HTTP request headers
720
+
721
+ - **Content-Type**: application/json
722
+ - **Accept**: application/json
723
+
724
+
725
+
726
+ # **list_site_containers**
727
+ > SiteContainerPaging list_site_containers(site_id, , opts)
728
+
729
+ List site containers
730
+
731
+ Gets a list of containers for the site **siteId**.
732
+
733
+ ### Example
734
+ ```ruby
735
+ # load the gem
736
+ require 'alfresco_api'
737
+ # setup authorization
738
+ AlfrescoAPI.configure do |config|
739
+ # Configure HTTP basic authorization: basicAuth
740
+ config.username = 'YOUR USERNAME'
741
+ config.password = 'YOUR PASSWORD'
742
+ end
743
+
744
+ api_instance = AlfrescoAPI::SitesApi.new
745
+
746
+ site_id = "site_id_example" # String | The identifier of a site.
747
+
748
+ opts = {
749
+ 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.
750
+ max_items: 100, # Integer | The maximum number of items to return in the list. If not supplied then the default value is 100.
751
+ 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.
752
+ }
753
+
754
+ begin
755
+ #List site containers
756
+ result = api_instance.list_site_containers(site_id, , opts)
757
+ p result
758
+ rescue AlfrescoAPI::ApiError => e
759
+ puts "Exception when calling SitesApi->list_site_containers: #{e}"
760
+ end
761
+ ```
762
+
763
+ ### Parameters
764
+
765
+ Name | Type | Description | Notes
766
+ ------------- | ------------- | ------------- | -------------
767
+ **site_id** | **String**| The identifier of a site. |
768
+ **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]
769
+ **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]
770
+ **fields** | [**Array&lt;String&gt;**](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]
771
+
772
+ ### Return type
773
+
774
+ [**SiteContainerPaging**](SiteContainerPaging.md)
775
+
776
+ ### Authorization
777
+
778
+ [basicAuth](../README.md#basicAuth)
779
+
780
+ ### HTTP request headers
781
+
782
+ - **Content-Type**: application/json
783
+ - **Accept**: application/json
784
+
785
+
786
+
787
+ # **list_site_membership_requests_for_person**
788
+ > SiteMembershipRequestPaging list_site_membership_requests_for_person(person_id, opts)
789
+
790
+ List site membership requests
791
+
792
+ Gets a list of the current site membership requests for person **personId**. You can use the `-me-` string in place of `<personId>` to specify the currently authenticated user.
793
+
794
+ ### Example
795
+ ```ruby
796
+ # load the gem
797
+ require 'alfresco_api'
798
+ # setup authorization
799
+ AlfrescoAPI.configure do |config|
800
+ # Configure HTTP basic authorization: basicAuth
801
+ config.username = 'YOUR USERNAME'
802
+ config.password = 'YOUR PASSWORD'
803
+ end
804
+
805
+ api_instance = AlfrescoAPI::SitesApi.new
806
+
807
+ person_id = "person_id_example" # String | The identifier of a person.
808
+
809
+ opts = {
810
+ 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.
811
+ max_items: 100, # Integer | The maximum number of items to return in the list. If not supplied then the default value is 100.
812
+ 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.
813
+ }
814
+
815
+ begin
816
+ #List site membership requests
817
+ result = api_instance.list_site_membership_requests_for_person(person_id, opts)
818
+ p result
819
+ rescue AlfrescoAPI::ApiError => e
820
+ puts "Exception when calling SitesApi->list_site_membership_requests_for_person: #{e}"
821
+ end
822
+ ```
823
+
824
+ ### Parameters
825
+
826
+ Name | Type | Description | Notes
827
+ ------------- | ------------- | ------------- | -------------
828
+ **person_id** | **String**| The identifier of a person. |
829
+ **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]
830
+ **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]
831
+ **fields** | [**Array&lt;String&gt;**](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]
832
+
833
+ ### Return type
834
+
835
+ [**SiteMembershipRequestPaging**](SiteMembershipRequestPaging.md)
836
+
837
+ ### Authorization
838
+
839
+ [basicAuth](../README.md#basicAuth)
840
+
841
+ ### HTTP request headers
842
+
843
+ - **Content-Type**: application/json
844
+ - **Accept**: application/json
845
+
846
+
847
+
848
+ # **list_site_memberships**
849
+ > SiteMemberPaging list_site_memberships(site_id, , opts)
850
+
851
+ List site memberships
852
+
853
+ Gets a list of site memberships for site **siteId**.
854
+
855
+ ### Example
856
+ ```ruby
857
+ # load the gem
858
+ require 'alfresco_api'
859
+ # setup authorization
860
+ AlfrescoAPI.configure do |config|
861
+ # Configure HTTP basic authorization: basicAuth
862
+ config.username = 'YOUR USERNAME'
863
+ config.password = 'YOUR PASSWORD'
864
+ end
865
+
866
+ api_instance = AlfrescoAPI::SitesApi.new
867
+
868
+ site_id = "site_id_example" # String | The identifier of a site.
869
+
870
+ opts = {
871
+ 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.
872
+ max_items: 100, # Integer | The maximum number of items to return in the list. If not supplied then the default value is 100.
873
+ 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.
874
+ }
875
+
876
+ begin
877
+ #List site memberships
878
+ result = api_instance.list_site_memberships(site_id, , opts)
879
+ p result
880
+ rescue AlfrescoAPI::ApiError => e
881
+ puts "Exception when calling SitesApi->list_site_memberships: #{e}"
882
+ end
883
+ ```
884
+
885
+ ### Parameters
886
+
887
+ Name | Type | Description | Notes
888
+ ------------- | ------------- | ------------- | -------------
889
+ **site_id** | **String**| The identifier of a site. |
890
+ **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]
891
+ **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]
892
+ **fields** | [**Array&lt;String&gt;**](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]
893
+
894
+ ### Return type
895
+
896
+ [**SiteMemberPaging**](SiteMemberPaging.md)
897
+
898
+ ### Authorization
899
+
900
+ [basicAuth](../README.md#basicAuth)
901
+
902
+ ### HTTP request headers
903
+
904
+ - **Content-Type**: application/json
905
+ - **Accept**: application/json
906
+
907
+
908
+
909
+ # **list_site_memberships_for_person**
910
+ > SiteRolePaging list_site_memberships_for_person(person_id, opts)
911
+
912
+ List site memberships
913
+
914
+ Gets a list of site membership information for person **personId**. You can use the `-me-` string in place of `<personId>` to specify the currently authenticated user. You can use the **where** parameter to filter the returned sites by **visibility** or site **preset**. Example to filter by **visibility**, use any one of: ``` (visibility='PRIVATE') (visibility='PUBLIC') (visibility='MODERATED') ``` Example to filter by site **preset**: ``` (preset='site-dashboard') ``` The default sort order for the returned list is for sites to be sorted by ascending title. You can override the default by using the **orderBy** parameter. You can specify one or more of the following fields in the **orderBy** parameter: * id * title * role
915
+
916
+ ### Example
917
+ ```ruby
918
+ # load the gem
919
+ require 'alfresco_api'
920
+ # setup authorization
921
+ AlfrescoAPI.configure do |config|
922
+ # Configure HTTP basic authorization: basicAuth
923
+ config.username = 'YOUR USERNAME'
924
+ config.password = 'YOUR PASSWORD'
925
+ end
926
+
927
+ api_instance = AlfrescoAPI::SitesApi.new
928
+
929
+ person_id = "person_id_example" # String | The identifier of a person.
930
+
931
+ opts = {
932
+ 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.
933
+ max_items: 100, # Integer | The maximum number of items to return in the list. If not supplied then the default value is 100.
934
+ order_by: ["order_by_example"], # Array<String> | A string to control the order of the entities returned in a list. You can use the **orderBy** parameter to sort the list by one or more fields. Each field has a default sort order, which is normally ascending order. Read the API method implementation notes above to check if any fields used in this method have a descending default search order. To sort the entities in a specific order, you can use the **ASC** and **DESC** keywords for any field.
935
+ relations: ["relations_example"], # Array<String> | Use the relations parameter to include one or more related entities in a single response.
936
+ 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.
937
+ where: "where_example", # String | A string to restrict the returned objects by using a predicate.
938
+ }
939
+
940
+ begin
941
+ #List site memberships
942
+ result = api_instance.list_site_memberships_for_person(person_id, opts)
943
+ p result
944
+ rescue AlfrescoAPI::ApiError => e
945
+ puts "Exception when calling SitesApi->list_site_memberships_for_person: #{e}"
946
+ end
947
+ ```
948
+
949
+ ### Parameters
950
+
951
+ Name | Type | Description | Notes
952
+ ------------- | ------------- | ------------- | -------------
953
+ **person_id** | **String**| The identifier of a person. |
954
+ **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]
955
+ **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]
956
+ **order_by** | [**Array&lt;String&gt;**](String.md)| A string to control the order of the entities returned in a list. You can use the **orderBy** parameter to sort the list by one or more fields. Each field has a default sort order, which is normally ascending order. Read the API method implementation notes above to check if any fields used in this method have a descending default search order. To sort the entities in a specific order, you can use the **ASC** and **DESC** keywords for any field. | [optional]
957
+ **relations** | [**Array&lt;String&gt;**](String.md)| Use the relations parameter to include one or more related entities in a single response. | [optional]
958
+ **fields** | [**Array&lt;String&gt;**](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]
959
+ **where** | **String**| A string to restrict the returned objects by using a predicate. | [optional]
960
+
961
+ ### Return type
962
+
963
+ [**SiteRolePaging**](SiteRolePaging.md)
964
+
965
+ ### Authorization
966
+
967
+ [basicAuth](../README.md#basicAuth)
968
+
969
+ ### HTTP request headers
970
+
971
+ - **Content-Type**: application/json
972
+ - **Accept**: application/json
973
+
974
+
975
+
976
+ # **list_sites**
977
+ > SitePaging list_sites(opts)
978
+
979
+ List sites
980
+
981
+ Gets a list of sites in this repository. You can use the **where** parameter to filter the returned sites by **visibility** or site **preset**. Example to filter by **visibility**, use any one of: ``` (visibility='PRIVATE') (visibility='PUBLIC') (visibility='MODERATED') ``` Example to filter by site **preset**: ``` (preset='site-dashboard') ``` The default sort order for the returned list is for sites to be sorted by ascending title. You can override the default by using the **orderBy** parameter. You can specify one or more of the following fields in the **orderBy** parameter: * id * title * description You can use the **relations** parameter to include one or more related entities in a single response and so reduce network traffic. The entity types in Alfresco are organized in a tree structure. The **sites** entity has two children, **containers** and **members**. The following relations parameter returns all the container and member objects related to each site: ``` containers,members ```
982
+
983
+ ### Example
984
+ ```ruby
985
+ # load the gem
986
+ require 'alfresco_api'
987
+ # setup authorization
988
+ AlfrescoAPI.configure do |config|
989
+ # Configure HTTP basic authorization: basicAuth
990
+ config.username = 'YOUR USERNAME'
991
+ config.password = 'YOUR PASSWORD'
992
+ end
993
+
994
+ api_instance = AlfrescoAPI::SitesApi.new
995
+
996
+ opts = {
997
+ 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.
998
+ max_items: 100, # Integer | The maximum number of items to return in the list. If not supplied then the default value is 100.
999
+ order_by: ["order_by_example"], # Array<String> | A string to control the order of the entities returned in a list. You can use the **orderBy** parameter to sort the list by one or more fields. Each field has a default sort order, which is normally ascending order. Read the API method implementation notes above to check if any fields used in this method have a descending default search order. To sort the entities in a specific order, you can use the **ASC** and **DESC** keywords for any field.
1000
+ relations: ["relations_example"], # Array<String> | Use the relations parameter to include one or more related entities in a single response.
1001
+ 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.
1002
+ where: "where_example", # String | A string to restrict the returned objects by using a predicate.
1003
+ }
1004
+
1005
+ begin
1006
+ #List sites
1007
+ result = api_instance.list_sites(opts)
1008
+ p result
1009
+ rescue AlfrescoAPI::ApiError => e
1010
+ puts "Exception when calling SitesApi->list_sites: #{e}"
1011
+ end
1012
+ ```
1013
+
1014
+ ### Parameters
1015
+
1016
+ Name | Type | Description | Notes
1017
+ ------------- | ------------- | ------------- | -------------
1018
+ **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]
1019
+ **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]
1020
+ **order_by** | [**Array&lt;String&gt;**](String.md)| A string to control the order of the entities returned in a list. You can use the **orderBy** parameter to sort the list by one or more fields. Each field has a default sort order, which is normally ascending order. Read the API method implementation notes above to check if any fields used in this method have a descending default search order. To sort the entities in a specific order, you can use the **ASC** and **DESC** keywords for any field. | [optional]
1021
+ **relations** | [**Array&lt;String&gt;**](String.md)| Use the relations parameter to include one or more related entities in a single response. | [optional]
1022
+ **fields** | [**Array&lt;String&gt;**](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]
1023
+ **where** | **String**| A string to restrict the returned objects by using a predicate. | [optional]
1024
+
1025
+ ### Return type
1026
+
1027
+ [**SitePaging**](SitePaging.md)
1028
+
1029
+ ### Authorization
1030
+
1031
+ [basicAuth](../README.md#basicAuth)
1032
+
1033
+ ### HTTP request headers
1034
+
1035
+ - **Content-Type**: application/json
1036
+ - **Accept**: application/json
1037
+
1038
+
1039
+
1040
+ # **update_site**
1041
+ > SiteEntry update_site(site_id, site_body_update, opts)
1042
+
1043
+ Update a site
1044
+
1045
+ **Note:** this endpoint is available in Alfresco 5.2 and newer versions. Update the details for the given site **siteId**. Site Manager or otherwise a (site) admin can update title, description or visibility. Note: the id of a site cannot be updated once the site has been created.
1046
+
1047
+ ### Example
1048
+ ```ruby
1049
+ # load the gem
1050
+ require 'alfresco_api'
1051
+ # setup authorization
1052
+ AlfrescoAPI.configure do |config|
1053
+ # Configure HTTP basic authorization: basicAuth
1054
+ config.username = 'YOUR USERNAME'
1055
+ config.password = 'YOUR PASSWORD'
1056
+ end
1057
+
1058
+ api_instance = AlfrescoAPI::SitesApi.new
1059
+
1060
+ site_id = "site_id_example" # String | The identifier of a site.
1061
+
1062
+ site_body_update = AlfrescoAPI::SiteBodyUpdate.new # SiteBodyUpdate | The site information to update.
1063
+
1064
+ opts = {
1065
+ 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.
1066
+ }
1067
+
1068
+ begin
1069
+ #Update a site
1070
+ result = api_instance.update_site(site_id, site_body_update, opts)
1071
+ p result
1072
+ rescue AlfrescoAPI::ApiError => e
1073
+ puts "Exception when calling SitesApi->update_site: #{e}"
1074
+ end
1075
+ ```
1076
+
1077
+ ### Parameters
1078
+
1079
+ Name | Type | Description | Notes
1080
+ ------------- | ------------- | ------------- | -------------
1081
+ **site_id** | **String**| The identifier of a site. |
1082
+ **site_body_update** | [**SiteBodyUpdate**](SiteBodyUpdate.md)| The site information to update. |
1083
+ **fields** | [**Array&lt;String&gt;**](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]
1084
+
1085
+ ### Return type
1086
+
1087
+ [**SiteEntry**](SiteEntry.md)
1088
+
1089
+ ### Authorization
1090
+
1091
+ [basicAuth](../README.md#basicAuth)
1092
+
1093
+ ### HTTP request headers
1094
+
1095
+ - **Content-Type**: application/json
1096
+ - **Accept**: application/json
1097
+
1098
+
1099
+
1100
+ # **update_site_membership**
1101
+ > SiteMemberEntry update_site_membership(site_id, person_idsite_membership_body_update, opts)
1102
+
1103
+ Update a site membership
1104
+
1105
+ Update the membership of person **personId** in site **siteId**. You can use the `-me-` string in place of `<personId>` to specify the currently authenticated user. You can set the **role** to one of four types: * SiteConsumer * SiteCollaborator * SiteContributor * SiteManager
1106
+
1107
+ ### Example
1108
+ ```ruby
1109
+ # load the gem
1110
+ require 'alfresco_api'
1111
+ # setup authorization
1112
+ AlfrescoAPI.configure do |config|
1113
+ # Configure HTTP basic authorization: basicAuth
1114
+ config.username = 'YOUR USERNAME'
1115
+ config.password = 'YOUR PASSWORD'
1116
+ end
1117
+
1118
+ api_instance = AlfrescoAPI::SitesApi.new
1119
+
1120
+ site_id = "site_id_example" # String | The identifier of a site.
1121
+
1122
+ person_id = "person_id_example" # String | The identifier of a person.
1123
+
1124
+ site_membership_body_update = AlfrescoAPI::SiteMembershipBodyUpdate.new # SiteMembershipBodyUpdate | The persons new role
1125
+
1126
+ opts = {
1127
+ 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.
1128
+ }
1129
+
1130
+ begin
1131
+ #Update a site membership
1132
+ result = api_instance.update_site_membership(site_id, person_idsite_membership_body_update, opts)
1133
+ p result
1134
+ rescue AlfrescoAPI::ApiError => e
1135
+ puts "Exception when calling SitesApi->update_site_membership: #{e}"
1136
+ end
1137
+ ```
1138
+
1139
+ ### Parameters
1140
+
1141
+ Name | Type | Description | Notes
1142
+ ------------- | ------------- | ------------- | -------------
1143
+ **site_id** | **String**| The identifier of a site. |
1144
+ **person_id** | **String**| The identifier of a person. |
1145
+ **site_membership_body_update** | [**SiteMembershipBodyUpdate**](SiteMembershipBodyUpdate.md)| The persons new role |
1146
+ **fields** | [**Array&lt;String&gt;**](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]
1147
+
1148
+ ### Return type
1149
+
1150
+ [**SiteMemberEntry**](SiteMemberEntry.md)
1151
+
1152
+ ### Authorization
1153
+
1154
+ [basicAuth](../README.md#basicAuth)
1155
+
1156
+ ### HTTP request headers
1157
+
1158
+ - **Content-Type**: application/json
1159
+ - **Accept**: application/json
1160
+
1161
+
1162
+
1163
+ # **update_site_membership_request_for_person**
1164
+ > SiteMembershipRequestEntry update_site_membership_request_for_person(person_idsite_id, site_membership_request_body_update, opts)
1165
+
1166
+ Update a site membership request
1167
+
1168
+ Updates the message for the site membership request to site **siteId** for person **personId**. You can use the `-me-` string in place of `<personId>` to specify the currently authenticated user.
1169
+
1170
+ ### Example
1171
+ ```ruby
1172
+ # load the gem
1173
+ require 'alfresco_api'
1174
+ # setup authorization
1175
+ AlfrescoAPI.configure do |config|
1176
+ # Configure HTTP basic authorization: basicAuth
1177
+ config.username = 'YOUR USERNAME'
1178
+ config.password = 'YOUR PASSWORD'
1179
+ end
1180
+
1181
+ api_instance = AlfrescoAPI::SitesApi.new
1182
+
1183
+ person_id = "person_id_example" # String | The identifier of a person.
1184
+
1185
+ site_id = "site_id_example" # String | The identifier of a site.
1186
+
1187
+ site_membership_request_body_update = AlfrescoAPI::SiteMembershipRequestBodyUpdate.new # SiteMembershipRequestBodyUpdate | The new message to display
1188
+
1189
+ opts = {
1190
+ 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.
1191
+ }
1192
+
1193
+ begin
1194
+ #Update a site membership request
1195
+ result = api_instance.update_site_membership_request_for_person(person_idsite_id, site_membership_request_body_update, opts)
1196
+ p result
1197
+ rescue AlfrescoAPI::ApiError => e
1198
+ puts "Exception when calling SitesApi->update_site_membership_request_for_person: #{e}"
1199
+ end
1200
+ ```
1201
+
1202
+ ### Parameters
1203
+
1204
+ Name | Type | Description | Notes
1205
+ ------------- | ------------- | ------------- | -------------
1206
+ **person_id** | **String**| The identifier of a person. |
1207
+ **site_id** | **String**| The identifier of a site. |
1208
+ **site_membership_request_body_update** | [**SiteMembershipRequestBodyUpdate**](SiteMembershipRequestBodyUpdate.md)| The new message to display |
1209
+ **fields** | [**Array&lt;String&gt;**](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]
1210
+
1211
+ ### Return type
1212
+
1213
+ [**SiteMembershipRequestEntry**](SiteMembershipRequestEntry.md)
1214
+
1215
+ ### Authorization
1216
+
1217
+ [basicAuth](../README.md#basicAuth)
1218
+
1219
+ ### HTTP request headers
1220
+
1221
+ - **Content-Type**: application/json
1222
+ - **Accept**: application/json
1223
+
1224
+
1225
+