Office365groupsmailClient
Attributes
TRIGGER_OPERATIONS
module-attribute
TRIGGER_OPERATIONS: Dict[str, Dict[str, Any]] = {'OnNewEmailInGroup': {'operation_id': 'OnNewEmailInGroup', 'path': '/{connectionId}/trigger/v1.0/groups/{groupId}/conversations', 'method': 'get', 'required_parameters': ['groupId'], 'callback_payload_type': 'OnNewEmailInGroupResponse'}}
Classes
ListConversationsResponse
dataclass
CreateConversationResponse
dataclass
CreateConversationResponse(context: Optional[str] = None, id: Optional[str] = None, threads_odata_context: Optional[str] = None, threads: Optional[List[Dict[str, Any]]] = None)
Response for Create a new conversation in a group
Conversation
dataclass
Conversation(id: Optional[str] = None, topic: Optional[str] = None, has_attachments: Optional[bool] = None, last_delivered_date_time: Optional[str] = None, unique_senders: Optional[List[str]] = None, preview: Optional[str] = None, threads: Optional[List[ConversationThread]] = None)
Response for Get a group conversation
Attributes
id
class-attribute
instance-attribute
The conversations's unique identifier.
has_attachments
class-attribute
instance-attribute
Indicates whether any of the posts within this Conversation has at least one attachment.
last_delivered_date_time
class-attribute
instance-attribute
last_delivered_date_time: Optional[str] = field(default=None, metadata={'wire_name': 'lastDeliveredDateTime'})
The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time.
unique_senders
class-attribute
instance-attribute
All the users that sent a message to this Conversation.
ListConversationThreadsResponse
dataclass
ListConversationThreadsResponse(next_link: Optional[str] = None, context: Optional[str] = None, value: Optional[List[ConversationThread]] = None)
Response for List the conversation threads of a conversation
Attributes
next_link
class-attribute
instance-attribute
Link to get next page of results
NewConversationThreadResponse
dataclass
ListGroupThreadsResponse
dataclass
ConversationThread
dataclass
ConversationThread(id: Optional[str] = None, topic: Optional[str] = None, has_attachments: Optional[bool] = None, last_delivered_date_time: Optional[str] = None, unique_senders: Optional[List[str]] = None, preview: Optional[str] = None, is_locked: Optional[bool] = None, to_recipients: Optional[List[EmailAddress]] = None, cc_recipients: Optional[List[EmailAddress]] = None, posts: Optional[List[Post]] = None)
Response for Get a conversation thread
Attributes
id
class-attribute
instance-attribute
The conversation thread's unique identifier.
has_attachments
class-attribute
instance-attribute
Indicates whether any of the posts within this Conversation has at least one attachment.
last_delivered_date_time
class-attribute
instance-attribute
last_delivered_date_time: Optional[str] = field(default=None, metadata={'wire_name': 'lastDeliveredDateTime'})
The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time.
unique_senders
class-attribute
instance-attribute
All the users that sent a message to this Conversation.
preview
class-attribute
instance-attribute
A short summary from the body of the latest post in this Conversation.
is_locked
class-attribute
instance-attribute
Indicates if the thread is locked.
ListThreadPostsResponse
dataclass
ListThreadPostsResponse(next_link: Optional[str] = None, context: Optional[str] = None, value: Optional[List[Post]] = None)
Response for List the posts of a conversation thread
Attributes
next_link
class-attribute
instance-attribute
Link to get next page of results
context
class-attribute
instance-attribute
The @odata.context link.
Post
dataclass
Post(id: Optional[str] = None, created_date_time: Optional[str] = None, last_modified_date_time: Optional[str] = None, change_key: Optional[str] = None, conversation_id: Optional[str] = None, conversation_thread_id: Optional[str] = None, categories: Optional[List[str]] = None, received_date_time: Optional[str] = None, has_attachments: Optional[bool] = None, new_participants: Optional[List[EmailAddress]] = None, body: Optional[ItemBody] = None, from_: Optional[EmailAddress] = None, sender: Optional[EmailAddress] = None, attachments: Optional[List[Attachment]] = None)
Response for Get a thread post
Attributes
change_key
class-attribute
instance-attribute
Identifies the version of the post.
conversation_id
class-attribute
instance-attribute
Unique ID of the conversation the post belongs to.
conversation_thread_id
class-attribute
instance-attribute
conversation_thread_id: Optional[str] = field(default=None, metadata={'wire_name': 'conversationThreadId'})
Unique ID of the conversation thread the post belongs to.
categories
class-attribute
instance-attribute
The categories associated with the post.
received_date_time
class-attribute
instance-attribute
Post received timestamp.
has_attachments
class-attribute
instance-attribute
Indicates whether the post has at least one attachment.
GetAttachmentsResponse
dataclass
GetAttachmentsResponse(next_link: Optional[str] = None, context: Optional[str] = None, value: Optional[List[Attachment]] = None)
Response for List the attachments of a post
Attributes
next_link
class-attribute
instance-attribute
Link to get next page of results
context
class-attribute
instance-attribute
The @odata.context link.
OnNewEmailInGroupResponse
dataclass
ObjectWithoutType
dataclass
ListGroupsResponse
dataclass
Attachment
dataclass
Attachment(id: Optional[str] = None, name: Optional[str] = None, content_type: Optional[str] = None, size: Optional[int] = None, content_bytes: Optional[str] = None)
Definition: Attachment
Attributes
content_type
class-attribute
instance-attribute
Content type of attachment.
EmailAddress
dataclass
ItemBody
dataclass
ReplyConversationThreadBody
dataclass
Definition: ReplyConversationThreadBody
ForwardPostBody
dataclass
ForwardPostBody(comment: Optional[str] = None, to_recipients: Optional[List[GetUsersGraphAction]] = None)
Definition: ForwardPost_V2Body
Attributes
comment
class-attribute
instance-attribute
Comment to forward with the post.
CreateConversationBody
dataclass
NewPostBody
dataclass
NewPostBody(body: Optional[Dict[str, Any]] = None, categories: Optional[List[str]] = None, new_participants: Optional[List[GetUsersGraphAction]] = None, attachments: Optional[List[ClientSendAttachment]] = None)
Definition: NewPostBody
Attributes
categories
class-attribute
instance-attribute
The categories associated with the post.
GetUsersGraphAction
dataclass
ClientSendAttachment
dataclass
ClientSendAttachment(type_: Optional[str] = None, name: Optional[str] = None, content_bytes: Optional[str] = None)
Definition: ClientSendAttachment
Attributes
type_
class-attribute
instance-attribute
@odata.type for a file attachment.
name
class-attribute
instance-attribute
Name of the attachment.
ConversationTriggerResponse
dataclass
ConversationTriggerResponse(id: Optional[str] = None, last_delivered_date_time: Optional[str] = None, threads: Optional[List[ConversationThreadTriggerResponse]] = None)
Definition: ConversationTriggerResponse
Attributes
ConversationThreadTriggerResponse
dataclass
PostTriggerResponse
dataclass
PostTriggerResponse(id: Optional[str] = None, last_modified_date_time: Optional[str] = None, change_key: Optional[str] = None)
Definition: PostTriggerResponse
Office365groupsmailClient
Office365groupsmailClient(connection_runtime_url: str, token_provider: Optional[TokenProvider] = None, options: Optional[ConnectorClientOptions] = None)
Bases: ConnectorClientBase
Typed client for office365groupsmail connector.
Initialize a Office365groupsmailClient.
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:
list_conversations_async
async
List the conversations of a group
Get all the conversations in this group.
create_conversation_async
async
Create a new conversation in a group
Create a new conversation in this group.
get_group_conversation_async
async
Get a group conversation
Retrieves the properties of a particular conversation.
list_conversation_threads_async
async
List the conversation threads of a conversation
Get all the threads in a group conversation.
create_conversation_thread_async
async
create_conversation_thread_async(input: CreateConversationBody, group_id: str, conversation_id: str) -> dict[str, Any] | None
Create a conversation thread
Create a new thread in the specified conversation.
list_group_threads_async
async
List the threads of a group
Get all the threads of a group.
create_group_thread_async
async
Start a new group conversation by creating a thread
Start a new group conversation by first creating a thread.
get_conversation_thread_async
async
Get a conversation thread
Get a specific thread that belongs to a group.
delete_conversation_thread_async
async
Delete a conversation thread
Deletes the specified conversation thread.
list_thread_posts_async
async
List the posts of a conversation thread
Get all the posts of the specified conversation thread.
get_thread_async
async
Get a thread post
Retrieves a post in a specified thread.
get_attachments_async
async
List the attachments of a post
Retrieve a list of attachments that belong to a post.
reply_to_a_thread_async
async
Reply to a conversation thread
Reply to a thread in a group conversation and add a new post to it.
reply_async
async
reply_async(input: ReplyConversationThreadBody, group_id: str, thread_id: str, post_id: str) -> None
Reply to a post
Reply to a post and add a new post to the specified thread in a group conversation.
http_request_async
async
Send an HTTP request
Construct a Microsoft Graph REST API request to invoke. Learn more: https://docs.microsoft.com/en-us/graph/use-the-api