class PlannerChecklistItem
A data model class representing an item in a checklist associated with a Microsoft Planner task, inheriting from ClientValue for Office 365 API integration.
/tf/active/vicechatdev/SPFCsync/venv/lib64/python3.11/site-packages/office365/planner/tasks/check_list_item.py
4 - 10
simple
Purpose
This class serves as a data transfer object (DTO) for representing individual checklist items within Microsoft Planner tasks. It inherits from ClientValue, which provides serialization/deserialization capabilities for communication with the Office 365 Graph API. The class is designed to hold metadata and state information about a single checklist item, such as its title, completion status, and other properties defined by the Microsoft Planner API. It acts as a lightweight container that can be populated from API responses or used to construct API requests.
Source Code
class PlannerChecklistItem(ClientValue):
"""
The plannerChecklistItem resource represents an item in the checklist of a task.
The checklist on a task is represented by the checklistItems object.
"""
pass
Parameters
| Name | Type | Default | Kind |
|---|---|---|---|
bases |
ClientValue | - |
Parameter Details
bases: Inherits from ClientValue, which is a base class from the office365 runtime that provides functionality for handling client-side values in Office 365 API interactions, including JSON serialization/deserialization and property management
Return Value
Instantiation returns a PlannerChecklistItem object that represents a single checklist item. The object can hold properties like item ID, title, completion status, and other metadata as defined by the Microsoft Planner API schema. Since this is a pass-through class with no explicit methods defined, it relies entirely on inherited behavior from ClientValue.
Class Interface
Methods
__init__()
Purpose: Initializes a new PlannerChecklistItem instance, inheriting initialization from ClientValue
Returns: A new PlannerChecklistItem instance
Attributes
| Name | Type | Description | Scope |
|---|---|---|---|
entity_type_name |
str | Inherited from ClientValue, represents the type name for serialization purposes, likely 'microsoft.graph.plannerChecklistItem' | instance |
Dependencies
office365
Required Imports
from office365.runtime.client_value import ClientValue
from office365.planner.planner_checklist_item import PlannerChecklistItem
Usage Example
from office365.planner.planner_checklist_item import PlannerChecklistItem
from office365.runtime.client_value import ClientValue
# Instantiate a checklist item (typically done internally by the SDK)
checklist_item = PlannerChecklistItem()
# The class is typically used as part of a larger Planner task object
# Properties are usually set via the inherited ClientValue mechanisms
# Example of how it might be used in context:
# task.checklist_items['item_id'] = checklist_item
# Access properties (inherited from ClientValue)
# checklist_item.set_property('title', 'Review document')
# checklist_item.set_property('isChecked', False)
# title = checklist_item.get_property('title')
# is_checked = checklist_item.get_property('isChecked')
Best Practices
- This class is typically instantiated and managed by the Office 365 SDK rather than directly by user code
- Properties should be accessed and modified using the inherited ClientValue methods (set_property, get_property) rather than direct attribute access
- The class follows the Microsoft Graph API schema for plannerChecklistItem resources
- When working with checklist items, they are usually accessed through a parent PlannerTask object's checklistItems collection
- Ensure proper authentication context is established before working with Planner resources
- The class is immutable in terms of its structure but mutable in terms of property values
- Always validate that required properties are set before attempting to sync with the API
- This is a pass-through class that relies entirely on inherited functionality from ClientValue
Tags
Similar Components
AI-powered semantic similarity - components with related functionality:
-
class PlannerChecklistItems 87.2% similar
-
class ChecklistItem 73.1% similar
-
class PlannerTask 66.3% similar
-
class PlannerTaskDetails 62.8% similar
-
class Planner 62.2% similar