class AuditData
AuditData is a data class representing audit data in Microsoft SharePoint Tenant Administration, inheriting from ClientValue to provide serialization capabilities.
/tf/active/vicechatdev/SPFCsync/venv/lib64/python3.11/site-packages/office365/sharepoint/tenant/administration/audit/data.py
4 - 7
simple
Purpose
This class serves as a data transfer object (DTO) for SharePoint audit data within the Office365 REST API framework. It inherits from ClientValue to enable proper serialization/deserialization when communicating with SharePoint's Tenant Administration API. The class primarily provides metadata about its entity type for proper API interaction.
Source Code
class AuditData(ClientValue):
@property
def entity_type_name(self):
return "Microsoft.SharePoint.Administration.TenantAdmin.AuditData"
Parameters
| Name | Type | Default | Kind |
|---|---|---|---|
bases |
ClientValue | - |
Parameter Details
__init__: Inherits constructor from ClientValue base class. The base class constructor typically accepts keyword arguments that map to the entity's properties as defined by the SharePoint API schema.
Return Value
Instantiation returns an AuditData object that can be used to represent audit data entities in SharePoint Tenant Administration operations. The entity_type_name property returns the string 'Microsoft.SharePoint.Administration.TenantAdmin.AuditData' which identifies this entity type in the SharePoint API.
Class Interface
Methods
@property entity_type_name(self) -> str
property
Purpose: Returns the fully qualified entity type name used by SharePoint's OData API to identify this entity type
Returns: String value 'Microsoft.SharePoint.Administration.TenantAdmin.AuditData' representing the entity type in the SharePoint API schema
Attributes
| Name | Type | Description | Scope |
|---|---|---|---|
entity_type_name |
str | Read-only property that returns the OData entity type name for SharePoint Tenant Administration audit data | instance |
Dependencies
office365
Required Imports
from office365.runtime.client_value import ClientValue
from office365.sharepoint.administration.tenant.audit_data import AuditData
Usage Example
from office365.sharepoint.administration.tenant.audit_data import AuditData
from office365.runtime.client_value import ClientValue
# Instantiate AuditData object
audit_data = AuditData()
# Access the entity type name (typically used internally by the API framework)
entity_type = audit_data.entity_type_name
print(entity_type) # Output: Microsoft.SharePoint.Administration.TenantAdmin.AuditData
# The class is typically used as part of larger SharePoint API operations
# where it's instantiated and populated by the framework during API responses
Best Practices
- This class is primarily used internally by the Office365 SDK framework for type identification and serialization
- Typically instantiated by the SDK when deserializing API responses rather than manually by developers
- The entity_type_name property should not be modified as it's used for API contract compliance
- When extending this class, ensure any additional properties align with the SharePoint API schema
- Use this class in conjunction with SharePoint ClientContext or other Office365 API client objects
- The class inherits from ClientValue which provides serialization capabilities - leverage parent class methods for data manipulation
Tags
Similar Components
AI-powered semantic similarity - components with related functionality:
-
class UnifiedAuditRecord 84.1% similar
-
class Audit 69.0% similar
-
class AuditSearchRequestStatus 68.9% similar
-
class CollaborationInsightsOverview 67.6% similar
-
class CollaborationInsightsData 67.0% similar