class PlannerPlanContainer
A container class representing a plannerPlan resource that manages authorization rules and lifecycle of Microsoft Planner plans.
/tf/active/vicechatdev/SPFCsync/venv/lib64/python3.11/site-packages/office365/planner/plans/container.py
4 - 11
simple
Purpose
PlannerPlanContainer is a data model class that represents a container for Microsoft Planner plans. It encapsulates authorization rules and controls the lifetime of plans - when the container is deleted, all contained plans are also deleted. This class inherits from ClientValue and is used to represent the immutable container properties that are set when a plan is created and cannot be changed afterwards. It serves as a data transfer object for Microsoft Graph API interactions related to Planner plan containers.
Source Code
class PlannerPlanContainer(ClientValue):
"""
Represents a container for a plannerPlan. The container is a resource that specifies authorization rules and the
lifetime of the plan. This means that only the people who are authorized to work with the resource containing
the plan will be able to work with the plan and the tasks within it. When the containing resource is deleted,
the contained plans are also deleted. The properties of the plannerPlanContainer cannot be changed after the plan
is created.
"""
Parameters
| Name | Type | Default | Kind |
|---|---|---|---|
bases |
ClientValue | - |
Parameter Details
bases: Inherits from ClientValue, which is a base class for client-side value objects in the Office365 SDK. This provides serialization/deserialization capabilities for API communication.
Return Value
Instantiation returns a PlannerPlanContainer object that represents a container for a planner plan. The object inherits ClientValue functionality for working with Microsoft Graph API responses and requests related to plan containers.
Class Interface
Dependencies
office365
Required Imports
from office365.runtime.client_value import ClientValue
from office365.planner.plans.container import PlannerPlanContainer
Usage Example
from office365.planner.plans.container import PlannerPlanContainer
from office365.runtime.client_value import ClientValue
# Instantiate a PlannerPlanContainer
container = PlannerPlanContainer()
# Typically used as part of plan creation or retrieval
# The container properties are set during plan creation and cannot be modified
# Example in context of a plan object:
# plan.container = container
# The container specifies authorization and lifecycle rules for the plan
Best Practices
- This class represents an immutable container - properties cannot be changed after plan creation
- The container controls both authorization (who can access the plan) and lifecycle (when the plan is deleted)
- Always ensure proper Microsoft Graph API permissions are configured before working with PlannerPlanContainer objects
- The container is typically created and managed by the Microsoft Graph API, not directly instantiated by users
- When the containing resource is deleted, all plans within the container are automatically deleted
- Use this class as a data transfer object when working with Microsoft Planner API responses
- The class inherits serialization capabilities from ClientValue for API communication
Tags
Similar Components
AI-powered semantic similarity - components with related functionality:
-
class PlannerPlan 73.3% similar
-
class PlannerPlanCollection 70.1% similar
-
class PlannerGroup 68.6% similar
-
class Planner 68.5% similar
-
class PlannerUser 66.0% similar