class PendingReviewItemsStatistics
A data class representing statistics for pending review items in SharePoint's compliance policy system, tracking label information for items awaiting review.
/tf/active/vicechatdev/SPFCsync/venv/lib64/python3.11/site-packages/office365/sharepoint/compliance/pending_review_items_statistics.py
4 - 11
simple
Purpose
This class serves as a data transfer object (DTO) for SharePoint compliance policy operations, specifically for tracking and reporting statistics about items pending review. It inherits from ClientValue, which is part of the Office365 REST API framework, making it serializable for communication with SharePoint services. The class encapsulates label identification and naming information for compliance review workflows.
Source Code
class PendingReviewItemsStatistics(ClientValue):
def __init__(self, label_id=None, label_name=None):
self.LabelId = label_id
self.LabelName = label_name
@property
def entity_type_name(self):
return "SP.CompliancePolicy.PendingReviewItemsStatistics"
Parameters
| Name | Type | Default | Kind |
|---|---|---|---|
bases |
ClientValue | - |
Parameter Details
label_id: Optional identifier for the compliance label associated with pending review items. Can be None if no specific label is assigned. Expected to be a string or integer representing the unique label identifier in SharePoint's compliance system.
label_name: Optional human-readable name of the compliance label. Can be None if no label name is provided. Expected to be a string representing the display name of the label used in the SharePoint compliance policy interface.
Return Value
Instantiation returns a PendingReviewItemsStatistics object with LabelId and LabelName attributes set to the provided values (or None). The entity_type_name property returns the string 'SP.CompliancePolicy.PendingReviewItemsStatistics', which is used for SharePoint REST API type identification and serialization.
Class Interface
Methods
__init__(self, label_id=None, label_name=None)
Purpose: Initializes a new instance of PendingReviewItemsStatistics with optional label identification information
Parameters:
label_id: Optional identifier for the compliance label (default: None)label_name: Optional name of the compliance label (default: None)
Returns: None (constructor)
@property entity_type_name(self) -> str
property
Purpose: Returns the SharePoint entity type name used for REST API serialization and type identification
Returns: String constant 'SP.CompliancePolicy.PendingReviewItemsStatistics' representing the SharePoint entity type
Attributes
| Name | Type | Description | Scope |
|---|---|---|---|
LabelId |
Any (typically str or int, can be None) | Stores the identifier of the compliance label associated with pending review items | instance |
LabelName |
str or None | Stores the human-readable name of the compliance label | instance |
Dependencies
office365-rest-python-client
Required Imports
from office365.runtime.client_value import ClientValue
Usage Example
from office365.runtime.client_value import ClientValue
from office365.sharepoint.compliancepolicy.pending_review_items_statistics import PendingReviewItemsStatistics
# Create statistics object with label information
stats = PendingReviewItemsStatistics(label_id="12345", label_name="Confidential")
# Access attributes
print(f"Label ID: {stats.LabelId}")
print(f"Label Name: {stats.LabelName}")
print(f"Entity Type: {stats.entity_type_name}")
# Create with no label information
stats_empty = PendingReviewItemsStatistics()
print(f"Empty stats - Label ID: {stats_empty.LabelId}") # None
# Typically used in SharePoint compliance policy queries
# stats would be populated from SharePoint API responses
Best Practices
- This class is primarily used as a data container and should not contain business logic
- Instances are typically created by the Office365 REST API framework when deserializing SharePoint responses
- The entity_type_name property should not be modified as it's used for SharePoint type identification
- When manually creating instances, ensure label_id and label_name are consistent with SharePoint's compliance label system
- This class inherits from ClientValue, making it serializable for SharePoint REST API operations
- No state management or cleanup is required; instances are stateless data containers
- The class follows SharePoint's naming convention with PascalCase for attributes (LabelId, LabelName)
Tags
Similar Components
AI-powered semantic similarity - components with related functionality:
-
class ListItemComplianceInfo 71.0% similar
-
class ComplianceTag 66.3% similar
-
class ComplianceTagInfo 65.2% similar
-
class DlpClassificationResult 62.2% similar
-
class CollaborationInsightsOverview 60.5% similar