gselib.cloud.nextcloud.client ============================= .. py:module:: gselib.cloud.nextcloud.client Classes ------- .. autoapisummary:: gselib.cloud.nextcloud.client.NextcloudClient Module Contents --------------- .. py:class:: NextcloudClient .. py:attribute:: share_type_user :value: 0 .. py:attribute:: share_type_federated :value: 6 .. py:attribute:: perm_read :value: 1 .. py:attribute:: perm_update :value: 2 .. py:attribute:: perm_create :value: 4 .. py:attribute:: perm_delete :value: 8 .. py:attribute:: perm_share :value: 16 .. py:attribute:: perm_all :value: 31 .. py:attribute:: base_url :type: str .. py:attribute:: user :type: str .. py:attribute:: password :type: str .. py:method:: share(path: str, recipient: str, permissions: int = perm_read) -> dict Shares a Nextcloud path with a single user or federated address. .. py:method:: share_with_many(path: str, recipients: str | list[str], permissions: int = perm_read) -> list[dict] Shares a Nextcloud path with one or more users or federated addresses. .. py:method:: list_shares(path: str = None) -> list Returns all shares, optionally filtered by path. .. py:method:: delete_share(share_id: int) -> None Deletes a share by its ID.