class Identity_v1
Identity is a client value class representing a Microsoft SharePoint Comments identity entity, inheriting from ClientValue base class.
/tf/active/vicechatdev/SPFCsync/venv/lib64/python3.11/site-packages/office365/sharepoint/comments/client/identity.py
4 - 7
simple
Purpose
This class serves as a data model for SharePoint Comments identity objects in the Office365 REST API client library. It provides a typed representation of identity entities used in SharePoint commenting functionality, enabling proper serialization/deserialization when communicating with SharePoint REST endpoints. The class primarily defines the entity type name used for API communication.
Source Code
class Identity(ClientValue):
@property
def entity_type_name(self):
return "Microsoft.SharePoint.Comments.Client.Identity"
Parameters
| Name | Type | Default | Kind |
|---|---|---|---|
bases |
ClientValue | - |
Parameter Details
__init__: Inherits constructor from ClientValue base class. The specific parameters depend on the ClientValue parent class implementation, but typically accepts property values to initialize the identity object.
Return Value
Instantiation returns an Identity object that represents a SharePoint Comments identity. The entity_type_name property returns the string 'Microsoft.SharePoint.Comments.Client.Identity' which is used for type identification in SharePoint API requests and responses.
Class Interface
Methods
@property entity_type_name(self) -> str
property
Purpose: Returns the fully qualified entity type name used by SharePoint REST API for identity objects in the comments namespace
Returns: String value 'Microsoft.SharePoint.Comments.Client.Identity' representing the entity type identifier
Attributes
| Name | Type | Description | Scope |
|---|---|---|---|
entity_type_name |
str | Read-only property that returns the SharePoint entity type name for identity objects in the comments client namespace | instance |
Dependencies
office365
Required Imports
from office365.runtime.client_value import ClientValue
Usage Example
from office365.runtime.client_value import ClientValue
from office365.sharepoint.comments.client.identity import Identity
# Instantiate an Identity object
identity = Identity()
# Access the entity type name (used internally by the API client)
entity_type = identity.entity_type_name
print(entity_type) # Output: Microsoft.SharePoint.Comments.Client.Identity
# Typically used as part of SharePoint comment operations
# The Identity object would be populated with user/entity data
# and used in comment creation or retrieval operations
Best Practices
- This class is primarily used internally by the Office365 SharePoint client library and should not typically be instantiated directly by end users
- The entity_type_name property is used for proper serialization when communicating with SharePoint REST APIs
- When working with SharePoint comments, this Identity class will be automatically instantiated and populated by the library
- Inherits all functionality from ClientValue base class, including property management and serialization capabilities
- Do not override the entity_type_name property as it must match the exact SharePoint API entity type
Similar Components
AI-powered semantic similarity - components with related functionality:
-
class CommentInformation 77.8% similar
-
class ActivityIdentity 71.2% similar
-
class Identity 70.6% similar
-
class ActivityIdentityItem 68.8% similar
-
class Comment 68.7% similar