def share_with_link(self, share_type='<STR_LIT>', share_scope='<STR_LIT>'):
if not self.object_id:<EOL><INDENT>return None<EOL><DEDENT>url = self.build_url(<EOL>self._endpoints.get('<STR_LIT>').format(id=self.object_id))<EOL>data = {<EOL>'<STR_LIT:type>': share_type,<EOL>'<STR_LIT>': share_scope<EOL>}<EOL>response = self.con.post(url, data=data)<EOL>if not response:<EOL><INDENT>return None<EOL><DEDENT>data = response.json()<EOL>return DriveItemPermission(parent=self, **{self._cloud_data_key: data})<EOL>
Creates or returns a link you can share with others

        :param str share_type: 'view' to allow only view access,
         'edit' to allow editions, and
         'embed' to allow the DriveItem to be embedded
        :param str share_scope: 'anonymous': anyone with the link can access.
         'organization' Only organization members can access
        :return: link to share
        :rtype: DriveItemPermission