class ShareLinkSettings
Represents the settings the retrieval or creation/update of a tokenized sharing link
/tf/active/vicechatdev/SPFCsync/venv/lib64/python3.11/site-packages/office365/sharepoint/sharing/links/share_settings.py
4 - 52
moderate
Purpose
Represents the settings the retrieval or creation/update of a tokenized sharing link
Source Code
class ShareLinkSettings(ClientValue):
"""Represents the settings the retrieval or creation/update of a tokenized sharing link"""
def __init__(
self,
allow_anonymous_access=None,
application_link=None,
link_kind=None,
expiration=None,
password=None,
password_protected=None,
role=None,
track_link_users=None,
share_id=None,
update_password=None,
):
"""
:param bool allow_anonymous_access: Indicates if the tokenized sharing link supports anonymous access.
This value is optional and defaults to false for Flexible links (section 3.2.5.315.1.7) and is ignored
for other link kinds.
:param bool application_link:
:param int link_kind: The kind of the tokenized sharing link to be created/updated or retrieved.
This value MUST NOT be set to Uninitialized (section 3.2.5.315.1.1) nor Direct (section 3.2.5.315.1.2)
:param str password: Optional password value to apply to the tokenized sharing link, if it can support password
protection. If this value is null or empty when the updatePassword parameter is set, any existing password
on the tokenized sharing link MUST be cleared. Any other value will be applied to the tokenized sharing link
as a password setting.
:param bool password_protected:
:param int role: The role to be used for the tokenized sharing link. This is required for Flexible links
and ignored for all other kinds.
:param bool track_link_users:
:param str share_id: The optional unique identifier of an existing section tokenized sharing link to be
retrieved and updated if necessary.
:param bool update_password:
"""
self.allowAnonymousAccess = allow_anonymous_access
self.applicationLink = application_link
self.linkKind = link_kind
self.expiration = expiration
self.password = password
self.passwordProtected = True if password else password_protected
self.role = role
self.shareId = share_id
self.trackLinkUsers = track_link_users
self.updatePassword = update_password
@property
def entity_type_name(self):
return "SP.Sharing.ShareLinkSettings"
Parameters
| Name | Type | Default | Kind |
|---|---|---|---|
bases |
ClientValue | - |
Parameter Details
bases: Parameter of type ClientValue
Return Value
Returns unspecified type
Class Interface
Methods
__init__(self, allow_anonymous_access, application_link, link_kind, expiration, password, password_protected, role, track_link_users, share_id, update_password)
Purpose: :param bool allow_anonymous_access: Indicates if the tokenized sharing link supports anonymous access. This value is optional and defaults to false for Flexible links (section 3.2.5.315.1.7) and is ignored for other link kinds. :param bool application_link: :param int link_kind: The kind of the tokenized sharing link to be created/updated or retrieved. This value MUST NOT be set to Uninitialized (section 3.2.5.315.1.1) nor Direct (section 3.2.5.315.1.2) :param str password: Optional password value to apply to the tokenized sharing link, if it can support password protection. If this value is null or empty when the updatePassword parameter is set, any existing password on the tokenized sharing link MUST be cleared. Any other value will be applied to the tokenized sharing link as a password setting. :param bool password_protected: :param int role: The role to be used for the tokenized sharing link. This is required for Flexible links and ignored for all other kinds. :param bool track_link_users: :param str share_id: The optional unique identifier of an existing section tokenized sharing link to be retrieved and updated if necessary. :param bool update_password:
Parameters:
allow_anonymous_access: Parameterapplication_link: Parameterlink_kind: Parameterexpiration: Parameterpassword: Parameterpassword_protected: Parameterrole: Parametertrack_link_users: Parametershare_id: Parameterupdate_password: Parameter
Returns: None
entity_type_name(self)
property
Purpose: Performs entity type name
Returns: None
Required Imports
from office365.runtime.client_value import ClientValue
Usage Example
# Example usage:
# result = ShareLinkSettings(bases)
Tags
Similar Components
AI-powered semantic similarity - components with related functionality:
-
class SharingLinkKind 69.7% similar
-
class ShareLinkRequest 69.1% similar
-
class ObjectSharingSettings 68.1% similar
-
class SharingLinkAbilities 67.1% similar
-
class SharingLinkInfo 64.5% similar