platypush/plugins/nextcloud/__init__.py
def update_share(self, share_id: int, public_upload: Optional[bool] = None, password: Optional[str] = None,
                     permissions: Optional[List[str]] = None, expire_date: Optional[str] = None, **server_args):
        """
        Update the permissions of a shared resource.

        :param share_id: Share ID.
        :param public_upload: Whether public upload to the shared folder is allowed (default: False).
        :param password: Optional password to protect the share.
        :param permissions: Share permissions, as a list including any of the following (default: ``read``):

          - ``read``
          - ``update``
          - ``create``
          - ``delete``
          - ``share``
          - ``all``

        :param expire_date: Share expiration date, in the format ``YYYY-MM-DD``.
        :param server_args: Override the default server settings (see :meth:`._get_client` arguments).
        """
        if permissions:
            permissions = self._get_permissions(permissions)

        self._execute(server_args, 'update_share', share_id, public_upload=public_upload, password=password,
                      permissions=permissions, expire_date=expire_date)

        Update the permissions of a shared resource.

        :param share_id: Share ID.
        :param public_upload: Whether public upload to the shared folder is allowed (default: False).
        :param password: Optional password to protect the share.
        :param permissions: Share permissions, as a list including any of the following (default: ``read``):

          - ``read``
          - ``update``
          - ``create``
          - ``delete``
          - ``share``
          - ``all``

        :param expire_date: Share expiration date, in the format ``YYYY-MM-DD``.
        :param server_args: Override the default server settings (see :meth:`._get_client` arguments).
        
Update the permissions of a shared resource.
Update the permissions of a shared resource .
def update_share(self, share_id: int, public_upload: Optional[bool] = None, password: Optional[str] = None,
                     permissions: Optional[List[str]] = None, expire_date: Optional[str] = None, **server_args):
        if permissions:
            permissions = self._get_permissions(permissions)
        self._execute(server_args, 'update_share', share_id, public_upload=public_upload, password=password,
                      permissions=permissions, expire_date=expire_date)
def update_share ( self , share_id : int , public_upload : Optional [ bool ] = None , password : Optional [ str ] = None , permissions : Optional [ List [ str ] ] = None , expire_date : Optional [ str ] = None , ** server_args ) : if permissions : permissions = self . _get_permissions ( permissions ) self . _execute ( server_args , 'update_share' , share_id , public_upload = public_upload , password = password , permissions = permissions , expire_date = expire_date )
Update the permissions of a shared resource.
Update the permissions of a shared resource .
"""
        Update the permissions of a shared resource.

        :param share_id: Share ID.
        :param public_upload: Whether public upload to the shared folder is allowed (default: False).
        :param password: Optional password to protect the share.
        :param permissions: Share permissions, as a list including any of the following (default: ``read``):

          - ``read``
          - ``update``
          - ``create``
          - ``delete``
          - ``share``
          - ``all``

        :param expire_date: Share expiration date, in the format ``YYYY-MM-DD``.
        :param server_args: Override the default server settings (see :meth:`._get_client` arguments).
        """
self
share_id
int
None
public_upload
Optional[bool]
Whether public upload to the shared folder is allowed (default: False).
Whether public upload to the shared folder is allowed ( default : False ) .
password
Optional[str]
Optional password to protect the share.
Optional password to protect the share .
permissions
Optional[List[str]]
Share permissions, as a list including any of the following (default: ``read``):
``read``
``update``
``create``
``delete``
``share``
``all``
Share permissions as a list including any of the following ( default : ` ` read ` ` ) : ` ` read ` ` ` ` update ` ` ` ` create ` ` ` ` delete ` ` ` ` share ` ` ` ` all ` `
expire_date
Optional[str]
Share expiration date, in the format ``YYYY-MM-DD``.
Share expiration date in the format ` ` YYYY - MM - DD ` ` .
server_args
Override the default server settings .
Override the default server settings .