PlannerClient
Attributes
TRIGGER_OPERATIONS
module-attribute
TRIGGER_OPERATIONS: Dict[str, Dict[str, Any]] = {'OnCompleteTask_V3': {'operation_id': 'OnCompleteTask_V3', 'path': '/{connectionId}/v2/v1.0/planner/oncompletetask_trigger/plans/{id}/tasks', 'method': 'get', 'required_parameters': ['groupId', 'id'], 'callback_payload_type': 'ListTasksResponse'}, 'OnNewTask_V3': {'operation_id': 'OnNewTask_V3', 'path': '/{connectionId}/v2/v1.0/planner/onnewtask_trigger/plans/{id}/tasks', 'method': 'get', 'required_parameters': ['groupId', 'id'], 'callback_payload_type': 'ListTasksResponse'}, 'OnTaskAssignedToMe_V2': {'operation_id': 'OnTaskAssignedToMe_V2', 'path': '/{connectionId}/v1.0/me/planner/ontaskassignedtome_trigger/tasks', 'method': 'get', 'required_parameters': [], 'callback_payload_type': 'ListTasksResponse'}}
Classes
UnassignUsersInput
dataclass
GetTaskResponseV2
dataclass
GetTaskResponseV2(created_by: Optional[Dict[str, Any]] = None, plan_id: Optional[str] = None, bucket_id: Optional[str] = None, title: Optional[str] = None, percent_complete: Optional[int] = None, start_date_time: Optional[str] = None, created_date_time: Optional[str] = None, due_date_time: Optional[str] = None, has_description: Optional[bool] = None, completed_date_time: Optional[str] = None, reference_count: Optional[int] = None, id: Optional[str] = None, applied_categories: Optional[AppliedCategories] = None, assignments: Optional[List[Dict[str, Any]]] = None)
Response for Remove assignees from a task
Attributes
plan_id
class-attribute
instance-attribute
The id of the plan this task belongs to.
bucket_id
class-attribute
instance-attribute
The id of the bucket this task belongs to.
percent_complete
class-attribute
instance-attribute
The completion percentage of the task.
start_date_time
class-attribute
instance-attribute
The start datetime of the task.
created_date_time
class-attribute
instance-attribute
The datetime the task was created.
due_date_time
class-attribute
instance-attribute
The datetime the task is due.
has_description
class-attribute
instance-attribute
Set to true if the task has a description.
completed_date_time
class-attribute
instance-attribute
completed_date_time: Optional[str] = field(default=None, metadata={'wire_name': 'completedDateTime'})
The datetime the task was completed.
reference_count
class-attribute
instance-attribute
The number of external references that exist on the task.
AssignUsersInput
dataclass
ListMyPlansResponse
dataclass
Response for List plans for a group
GetPlanDetailsResponse
dataclass
CreateBucketInput
dataclass
CreateBucketInput(name: Optional[str] = None, group_id: Optional[str] = None, plan_id: Optional[str] = None)
Create a bucket
Attributes
group_id
class-attribute
instance-attribute
The group to retrieve the plan.
CreateBucketResponse
dataclass
CreateBucketResponse(name: Optional[str] = None, plan_id: Optional[str] = None, order_hint: Optional[str] = None, id: Optional[str] = None)
Response for Create a bucket
Attributes
plan_id
class-attribute
instance-attribute
Plan ID to which the bucket belongs
order_hint
class-attribute
instance-attribute
Hint used to order items of this type in a list view
GetTaskResponseV3
dataclass
GetTaskResponseV3(created_by: Optional[Dict[str, Any]] = None, plan_id: Optional[str] = None, bucket_id: Optional[str] = None, title: Optional[str] = None, percent_complete: Optional[int] = None, start_date_time: Optional[str] = None, created_date_time: Optional[str] = None, due_date_time: Optional[str] = None, has_description: Optional[bool] = None, completed_date_time: Optional[str] = None, reference_count: Optional[int] = None, id: Optional[str] = None, applied_categories: Optional[AppliedCategories] = None, priority: Optional[int] = None, assignments: Optional[List[Dict[str, Any]]] = None)
Response for Create a task
Attributes
plan_id
class-attribute
instance-attribute
The id of the plan this task belongs to.
bucket_id
class-attribute
instance-attribute
The id of the bucket this task belongs to.
percent_complete
class-attribute
instance-attribute
The completion percentage of the task.
start_date_time
class-attribute
instance-attribute
The start datetime of the task.
created_date_time
class-attribute
instance-attribute
The datetime the task was created.
due_date_time
class-attribute
instance-attribute
The datetime the task is due.
has_description
class-attribute
instance-attribute
Set to true if the task has a description.
completed_date_time
class-attribute
instance-attribute
completed_date_time: Optional[str] = field(default=None, metadata={'wire_name': 'completedDateTime'})
The datetime the task was completed.
reference_count
class-attribute
instance-attribute
The number of external references that exist on the task.
priority
class-attribute
instance-attribute
Priority of the task. Valid range of values is between 0 and 10 (inclusive), with increasing value being lower priority (0 has the highest priority and 10 has the lowest priority). Currently, Planner interprets values 0 and 1 as "urgent", 2 and 3 and 4 as "important", 5, 6, and 7 as "medium", and 8, 9, and 10 as "low". Currently, Planner sets the value 1 for "urgent", 3 for "important", 5 for "medium", and 9 for "low".
GetTaskDetailsResponse
dataclass
GetTaskDetailsResponse(description: Optional[str] = None, id: Optional[str] = None, references: Optional[List[Dict[str, Any]]] = None, checklist: Optional[List[Dict[str, Any]]] = None)
Response for Get task details
Attributes
description
class-attribute
instance-attribute
The description of the task.
references
class-attribute
instance-attribute
The collection of references on the task
ListBucketsResponse
dataclass
Response for List buckets
ListTasksResponse
dataclass
ListGroupsResponse
dataclass
UpdateTaskDetailsRequest
dataclass
UpdateTaskDetailsRequest(description: Optional[str] = None, references: Optional[List[Dict[str, Any]]] = None, checklist: Optional[List[Dict[str, Any]]] = None)
Definition: UpdateTaskDetails_Request
Attributes
description
class-attribute
instance-attribute
The description of the task.
references
class-attribute
instance-attribute
The collection of references on the task
UpdateTaskRequest
dataclass
UpdateTaskRequest(title: Optional[str] = None, due_date_time: Optional[str] = None, start_date_time: Optional[str] = None, percent_complete: Optional[int] = None, bucket_id: Optional[str] = None, applied_categories: Optional[AppliedCategories] = None)
Definition: UpdateTask_Request
Attributes
title
class-attribute
instance-attribute
The title of the plan (maximum of 255 chars).
due_date_time
class-attribute
instance-attribute
The datetime the task is due (Ex. '2018-04-13T00:42:19.284Z').
start_date_time
class-attribute
instance-attribute
The datetime the task starts (Ex. '2018-04-13T00:42:19.284Z').
percent_complete
class-attribute
instance-attribute
The completion percentage of the task.
CreateTaskRequest
dataclass
CreateTaskRequest(group_id: Optional[str] = None, plan_id: Optional[str] = None, title: Optional[str] = None, bucket_id: Optional[str] = None, start_date_time: Optional[str] = None, due_date_time: Optional[str] = None, assignments: Optional[str] = None, applied_categories: Optional[AppliedCategories] = None, priority: Optional[int] = None)
Definition: CreateTask_Request
Attributes
group_id
class-attribute
instance-attribute
The group to retrieve the plan.
plan_id
class-attribute
instance-attribute
The plan for the new task.
title
class-attribute
instance-attribute
The title of the new task (maximum of 255 chars).
bucket_id
class-attribute
instance-attribute
The bucket to place this task in.
start_date_time
class-attribute
instance-attribute
The datetime the task starts (Ex. '2018-04-13T00:42:19.284Z').
due_date_time
class-attribute
instance-attribute
The datetime the task is due (Ex. '2018-04-13T00:42:19.284Z').
assignments
class-attribute
instance-attribute
Semi-colon separated ids or email addresses of users to assign this task to.
priority
class-attribute
instance-attribute
Priority of the task. Valid range of values is between 0 and 10 (inclusive), with increasing value being lower priority (0 has the highest priority and 10 has the lowest priority). Currently, Planner interprets values 0 and 1 as "urgent", 2 and 3 and 4 as "important", 5, 6, and 7 as "medium", and 8, 9, and 10 as "low". Currently, Planner sets the value 1 for "urgent", 3 for "important", 5 for "medium", and 9 for "low".
AppliedCategories
dataclass
AppliedCategories(category1: Optional[bool] = None, category2: Optional[bool] = None, category3: Optional[bool] = None, category4: Optional[bool] = None, category5: Optional[bool] = None, category6: Optional[bool] = None, category7: Optional[bool] = None, category8: Optional[bool] = None, category9: Optional[bool] = None, category10: Optional[bool] = None, category11: Optional[bool] = None, category12: Optional[bool] = None, category13: Optional[bool] = None, category14: Optional[bool] = None, category15: Optional[bool] = None, category16: Optional[bool] = None, category17: Optional[bool] = None, category18: Optional[bool] = None, category19: Optional[bool] = None, category20: Optional[bool] = None, category21: Optional[bool] = None, category22: Optional[bool] = None, category23: Optional[bool] = None, category24: Optional[bool] = None, category25: Optional[bool] = None)
Definition: AppliedCategories
Attributes
category1
class-attribute
instance-attribute
True if the task has the Pink category.
category2
class-attribute
instance-attribute
True if the task has the Red category.
category3
class-attribute
instance-attribute
True if the task has the Yellow category.
category4
class-attribute
instance-attribute
True if the task has the Green category.
category5
class-attribute
instance-attribute
True if the task has the Blue category.
category6
class-attribute
instance-attribute
True if the task has the Purple category.
category7
class-attribute
instance-attribute
True if the task has the Bronze category.
category8
class-attribute
instance-attribute
True if the task has the Lime category.
category9
class-attribute
instance-attribute
True if the task has the Aqua category.
category10
class-attribute
instance-attribute
True if the task has the Gray category.
category11
class-attribute
instance-attribute
True if the task has the Silver category.
category12
class-attribute
instance-attribute
True if the task has the Brown category.
category13
class-attribute
instance-attribute
True if the task has the Cranberry category.
category14
class-attribute
instance-attribute
True if the task has the Orange category.
category15
class-attribute
instance-attribute
True if the task has the Peach category.
category16
class-attribute
instance-attribute
True if the task has the Marigold category.
category17
class-attribute
instance-attribute
True if the task has the Light green category.
category18
class-attribute
instance-attribute
True if the task has the Dark green category.
category19
class-attribute
instance-attribute
True if the task has the Teal category.
category20
class-attribute
instance-attribute
True if the task has the Light blue category.
category21
class-attribute
instance-attribute
True if the task has the Dark blue category.
category22
class-attribute
instance-attribute
True if the task has the Lavender category.
category23
class-attribute
instance-attribute
True if the task has the Plum category.
category24
class-attribute
instance-attribute
True if the task has the Light gray category.
GetTaskResponse
dataclass
GetTaskResponse(created_by: Optional[Dict[str, Any]] = None, plan_id: Optional[str] = None, bucket_id: Optional[str] = None, title: Optional[str] = None, percent_complete: Optional[int] = None, start_date_time: Optional[str] = None, created_date_time: Optional[str] = None, due_date_time: Optional[str] = None, has_description: Optional[bool] = None, completed_date_time: Optional[str] = None, reference_count: Optional[int] = None, id: Optional[str] = None)
Definition: GetTask_Response
Attributes
plan_id
class-attribute
instance-attribute
The id of the plan this task belongs to.
bucket_id
class-attribute
instance-attribute
The id of the bucket this task belongs to.
percent_complete
class-attribute
instance-attribute
The completion percentage of the task.
start_date_time
class-attribute
instance-attribute
The start datetime of the task.
created_date_time
class-attribute
instance-attribute
The datetime the task was created.
due_date_time
class-attribute
instance-attribute
The datetime the task is due.
has_description
class-attribute
instance-attribute
Set to true if the task has a description.
completed_date_time
class-attribute
instance-attribute
completed_date_time: Optional[str] = field(default=None, metadata={'wire_name': 'completedDateTime'})
The datetime the task was completed.
reference_count
class-attribute
instance-attribute
The number of external references that exist on the task.
ErrorResponse
dataclass
Definition: ErrorResponse
PlannerClient
PlannerClient(connection_runtime_url: str, token_provider: Optional[TokenProvider] = None, options: Optional[ConnectorClientOptions] = None)
Bases: ConnectorClientBase
Typed client for planner connector.
Initialize a PlannerClient.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
connection_runtime_url
|
str
|
The connection runtime URL from Azure Portal. |
required |
token_provider
|
Optional[TokenProvider]
|
Optional token provider. Defaults to ManagedIdentityTokenProvider. |
None
|
options
|
Optional[ConnectorClientOptions]
|
Optional connector client options. |
None
|
Methods:
delete_task_async
async
Delete a task
Deletes an existing Planner task.
unassign_users_async
async
Remove assignees from a task
Remove assignees from an existing Planner task.
assign_users_async
async
Add assignees to a task
Add assignees to an existing Planner task.
list_group_plans_async
async
List plans for a group
List plans owned by the group specified.
get_plan_details_async
async
Get plan details
Get plan details where the task belongs to
create_bucket_async
async
Create a bucket
Create a bucket in Planner for the specified plan and group.
create_task_async
async
Create a task
Create a new task in Planner.
get_task_async
async
Get a task
Get an existing Planner task.
get_task_details_async
async
Get task details
Get the task details for an existing task.
list_buckets_async
async
List buckets
List the buckets in a plan.
list_my_tasks_async
async
List my tasks
List the tasks assigned to me.
list_tasks_async
async
List tasks
List the tasks in a plan.
update_task_async
async
Update a task
Update an existing Planner task.
update_task_details_async
async
Update task details
Update the task details for an existing task.