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
Attributes
context
class-attribute
instance-attribute
context: Optional[str] = dataclass_field(default=None, kw_only=True, metadata={'wire_name': '@odata.context'})
The @odata.context link.
id
class-attribute
instance-attribute
New Conversation ID.
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 | Mapping[str, Any]]] = None)
Response for Get a group conversation
Attributes
id
class-attribute
instance-attribute
The conversations's unique identifier.
topic
class-attribute
instance-attribute
The topic of the conversation.
has_attachments
class-attribute
instance-attribute
has_attachments: Optional[bool] = dataclass_field(default=None, kw_only=True, metadata={'wire_name': 'hasAttachments'})
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] = dataclass_field(default=None, kw_only=True, metadata={'wire_name': 'lastDeliveredDateTime'})
The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time.
ListConversationThreadsResponse
dataclass
ListConversationThreadsResponse(*, next_link: Optional[str] = None, context: Optional[str] = None, value: Optional[List[ConversationThread | Mapping[str, Any]]] = None)
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 | Mapping[str, Any]]] = None, cc_recipients: Optional[List[EmailAddress | Mapping[str, Any]]] = None, posts: Optional[List[Post | Mapping[str, Any]]] = None)
Response for Get a conversation thread
Attributes
id
class-attribute
instance-attribute
The conversation thread's unique identifier.
topic
class-attribute
instance-attribute
The topic of the conversation.
has_attachments
class-attribute
instance-attribute
has_attachments: Optional[bool] = dataclass_field(default=None, kw_only=True, metadata={'wire_name': 'hasAttachments'})
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] = dataclass_field(default=None, kw_only=True, 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
unique_senders: Optional[List[str]] = dataclass_field(default=None, kw_only=True, metadata={'wire_name': 'uniqueSenders'})
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
is_locked: Optional[bool] = dataclass_field(default=None, kw_only=True, metadata={'wire_name': 'isLocked'})
Indicates if the thread is locked.
ListThreadPostsResponse
dataclass
ListThreadPostsResponse(*, next_link: Optional[str] = None, context: Optional[str] = None, value: Optional[List[Post | Mapping[str, Any]]] = None)
Response for List the posts of a conversation thread
Attributes
next_link
class-attribute
instance-attribute
next_link: Optional[str] = dataclass_field(default=None, kw_only=True, metadata={'wire_name': '@odata.nextLink'})
Link to get next page of results
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 | Mapping[str, Any]]] = None, body: Optional[ItemBody | Mapping[str, Any]] = None, from_: Optional[EmailAddress | Mapping[str, Any]] = None, sender: Optional[EmailAddress | Mapping[str, Any]] = None, attachments: Optional[List[Attachment | Mapping[str, Any]]] = None)
Response for Get a thread post
Attributes
id
class-attribute
instance-attribute
The post's unique identifier.
change_key
class-attribute
instance-attribute
change_key: Optional[str] = dataclass_field(default=None, kw_only=True, metadata={'wire_name': 'changeKey'})
Identifies the version of the post.
conversation_id
class-attribute
instance-attribute
conversation_id: Optional[str] = dataclass_field(default=None, kw_only=True, metadata={'wire_name': 'conversationId'})
Unique ID of the conversation the post belongs to.
conversation_thread_id
class-attribute
instance-attribute
conversation_thread_id: Optional[str] = dataclass_field(default=None, kw_only=True, 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
received_date_time: Optional[str] = dataclass_field(default=None, kw_only=True, metadata={'wire_name': 'receivedDateTime'})
Post received timestamp.
GetAttachmentsResponse
dataclass
GetAttachmentsResponse(*, next_link: Optional[str] = None, context: Optional[str] = None, value: Optional[List[Attachment | Mapping[str, Any]]] = None)
Response for List the attachments of a post
Attributes
next_link
class-attribute
instance-attribute
next_link: Optional[str] = dataclass_field(default=None, kw_only=True, metadata={'wire_name': '@odata.nextLink'})
Link to get next page of results
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
id
class-attribute
instance-attribute
Id of the attachment.
name
class-attribute
instance-attribute
Name of attachment.
content_type
class-attribute
instance-attribute
content_type: Optional[str] = dataclass_field(default=None, kw_only=True, metadata={'wire_name': 'contentType'})
Content type of attachment.
size
class-attribute
instance-attribute
Size of attachment.
EmailAddress
dataclass
Definition: EmailAddress
ItemBody
dataclass
ReplyConversationThreadBody
dataclass
Definition: ReplyConversationThreadBody
ForwardPostBody
dataclass
ForwardPostBody(to_recipients: List[GetUsersGraphAction | Mapping[str, Any]], *, comment: Optional[str] = None)
CreateConversationBody
dataclass
NewPostBody
dataclass
NewPostBody(*, body: Optional[Dict[str, Any]] = None, categories: Optional[List[str]] = None, new_participants: Optional[List[GetUsersGraphAction | Mapping[str, Any]]] = None, attachments: Optional[List[ClientSendAttachment | Mapping[str, Any]]] = None)
Definition: NewPostBody
Attributes
body
class-attribute
instance-attribute
Body of the new post.
categories
class-attribute
instance-attribute
The categories associated with the post.
GetUsersGraphAction
dataclass
ClientSendAttachment
dataclass
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 | Mapping[str, Any]]] = None)
Definition: ConversationTriggerResponse
Attributes
id
class-attribute
instance-attribute
The conversation unique identifier.
ConversationThreadTriggerResponse
dataclass
PostTriggerResponse
dataclass
PostTriggerResponse(*, id: Optional[str] = None, last_modified_date_time: Optional[str] = None, change_key: Optional[str] = None)
Definition: PostTriggerResponse
Attributes
id
class-attribute
instance-attribute
The post's unique identifier.
Office365groupsmailClient
Office365groupsmailClient(connection_runtime_url: str, credential: AsyncTokenCredential | AzureKeyCredential, *, max_retry_attempts: int = 3, timeout: float = 30.0, use_exponential_backoff: bool = True, initial_retry_delay_seconds: float = 0.5, maximum_retry_delay_seconds: float = 120.0, retry_jitter_factor: float = 0.1, retry_unsafe_http_methods: bool = False, transport: Optional[AsyncHttpTransport] = None, **kwargs: Any)
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 |
credential
|
AsyncTokenCredential | AzureKeyCredential
|
Caller-owned Azure Core credential. |
required |
max_retry_attempts
|
int
|
The maximum number of request attempts. |
3
|
timeout
|
float
|
The network timeout in seconds for each request. The value configures Azure Core retry and transport deadlines. Nonpositive values disable SDK and transport deadlines. |
30.0
|
use_exponential_backoff
|
bool
|
Whether retries use exponential backoff. |
True
|
initial_retry_delay_seconds
|
float
|
The initial retry delay in seconds. |
0.5
|
maximum_retry_delay_seconds
|
float
|
The maximum retry delay in seconds. |
120.0
|
retry_jitter_factor
|
float
|
The jitter fraction applied to retry delays. |
0.1
|
retry_unsafe_http_methods
|
bool
|
Whether unsafe HTTP methods may be retried. |
False
|
transport
|
Optional[AsyncHttpTransport]
|
Optional Azure Core async HTTP transport closed by the client through its asynchronous lifecycle. |
None
|
**kwargs
|
Any
|
Optional Azure Core pipeline policy settings. |
{}
|
Methods:
list_conversations
list_conversations(group_id: str, *, timeout: Optional[float] = None, headers: Optional[Mapping[str, str]] = None, client_request_id: Optional[str] = None, response_hook: Optional[ConnectorResponseHook] = None) -> AsyncItemPaged[dict[str, Any]]
List the conversations of a group
Get all the conversations in this group.
Returns an Azure Core async pager that follows the connector continuation URL.
Swagger operation ID: ListConversations.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
group_id
|
str
|
Pick a group from the drop down or enter group id. |
required |
timeout
|
Optional[float]
|
The request timeout in seconds. |
None
|
headers
|
Optional[Mapping[str, str]]
|
Additional HTTP request headers. |
None
|
client_request_id
|
Optional[str]
|
A caller-provided request identifier. |
None
|
response_hook
|
Optional[ConnectorResponseHook]
|
A callback invoked with the connector response. |
None
|
Returns:
| Type | Description |
|---|---|
AsyncItemPaged[dict[str, Any]]
|
AsyncItemPaged[dict[str, Any]]: An Azure Core pager over connector
results. Consume it with |
Raises:
| Type | Description |
|---|---|
ConnectorException
|
If the connector request fails. |
create_conversation
async
create_conversation(input: CreateConversationBody | Mapping[str, Any], group_id: str, *, timeout: Optional[float] = None, headers: Optional[Mapping[str, str]] = None, client_request_id: Optional[str] = None, response_hook: Optional[ConnectorResponseHook] = None) -> dict[str, Any] | None
Create a new conversation in a group
Create a new conversation in this group.
Swagger operation ID: CreateConversation.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
input
|
CreateConversationBody | Mapping[str, Any]
|
The request body. Mapping keys use serialized Swagger wire names. |
required |
group_id
|
str
|
Pick a group from the drop down or enter group id. |
required |
timeout
|
Optional[float]
|
The request timeout in seconds. |
None
|
headers
|
Optional[Mapping[str, str]]
|
Additional HTTP request headers. |
None
|
client_request_id
|
Optional[str]
|
A caller-provided request identifier. |
None
|
response_hook
|
Optional[ConnectorResponseHook]
|
A callback invoked with the connector response. |
None
|
Returns:
| Type | Description |
|---|---|
dict[str, Any] | None
|
dict[str, Any] | None: The connector operation result. |
Raises:
| Type | Description |
|---|---|
ConnectorException
|
If the connector request fails. |
get_group_conversation
async
get_group_conversation(group_id: str, conversation_id: str, *, timeout: Optional[float] = None, headers: Optional[Mapping[str, str]] = None, client_request_id: Optional[str] = None, response_hook: Optional[ConnectorResponseHook] = None) -> dict[str, Any] | None
Get a group conversation
Retrieves the properties of a particular conversation.
Swagger operation ID: GetGroupConversation.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
group_id
|
str
|
Pick a group from the drop down or enter group id. |
required |
conversation_id
|
str
|
Enter the conversation ID. |
required |
timeout
|
Optional[float]
|
The request timeout in seconds. |
None
|
headers
|
Optional[Mapping[str, str]]
|
Additional HTTP request headers. |
None
|
client_request_id
|
Optional[str]
|
A caller-provided request identifier. |
None
|
response_hook
|
Optional[ConnectorResponseHook]
|
A callback invoked with the connector response. |
None
|
Returns:
| Type | Description |
|---|---|
dict[str, Any] | None
|
dict[str, Any] | None: The connector operation result. |
Raises:
| Type | Description |
|---|---|
ConnectorException
|
If the connector request fails. |
list_conversation_threads
list_conversation_threads(group_id: str, conversation_id: str, *, timeout: Optional[float] = None, headers: Optional[Mapping[str, str]] = None, client_request_id: Optional[str] = None, response_hook: Optional[ConnectorResponseHook] = None) -> AsyncItemPaged[dict[str, Any]]
List the conversation threads of a conversation
Get all the threads in a group conversation.
Returns an Azure Core async pager that follows the connector continuation URL.
Swagger operation ID: ListConversationThreads.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
group_id
|
str
|
Pick a group from the drop down or enter group id. |
required |
conversation_id
|
str
|
Enter the conversation ID. |
required |
timeout
|
Optional[float]
|
The request timeout in seconds. |
None
|
headers
|
Optional[Mapping[str, str]]
|
Additional HTTP request headers. |
None
|
client_request_id
|
Optional[str]
|
A caller-provided request identifier. |
None
|
response_hook
|
Optional[ConnectorResponseHook]
|
A callback invoked with the connector response. |
None
|
Returns:
| Type | Description |
|---|---|
AsyncItemPaged[dict[str, Any]]
|
AsyncItemPaged[dict[str, Any]]: An Azure Core pager over connector
results. Consume it with |
Raises:
| Type | Description |
|---|---|
ConnectorException
|
If the connector request fails. |
create_conversation_thread
async
create_conversation_thread(input: CreateConversationBody | Mapping[str, Any], group_id: str, conversation_id: str, *, timeout: Optional[float] = None, headers: Optional[Mapping[str, str]] = None, client_request_id: Optional[str] = None, response_hook: Optional[ConnectorResponseHook] = None) -> dict[str, Any] | None
Create a conversation thread
Create a new thread in the specified conversation.
Swagger operation ID: CreateConversationThread.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
input
|
CreateConversationBody | Mapping[str, Any]
|
The request body. Mapping keys use serialized Swagger wire names. |
required |
group_id
|
str
|
Pick a group from the drop down or enter group id. |
required |
conversation_id
|
str
|
Enter the conversation ID. |
required |
timeout
|
Optional[float]
|
The request timeout in seconds. |
None
|
headers
|
Optional[Mapping[str, str]]
|
Additional HTTP request headers. |
None
|
client_request_id
|
Optional[str]
|
A caller-provided request identifier. |
None
|
response_hook
|
Optional[ConnectorResponseHook]
|
A callback invoked with the connector response. |
None
|
Returns:
| Type | Description |
|---|---|
dict[str, Any] | None
|
dict[str, Any] | None: The connector operation result. |
Raises:
| Type | Description |
|---|---|
ConnectorException
|
If the connector request fails. |
list_group_threads
list_group_threads(group_id: str, *, timeout: Optional[float] = None, headers: Optional[Mapping[str, str]] = None, client_request_id: Optional[str] = None, response_hook: Optional[ConnectorResponseHook] = None) -> AsyncItemPaged[dict[str, Any]]
List the threads of a group
Get all the threads of a group.
Returns an Azure Core async pager that follows the connector continuation URL.
Swagger operation ID: ListGroupThreads.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
group_id
|
str
|
Pick a group from the drop down or enter group id. |
required |
timeout
|
Optional[float]
|
The request timeout in seconds. |
None
|
headers
|
Optional[Mapping[str, str]]
|
Additional HTTP request headers. |
None
|
client_request_id
|
Optional[str]
|
A caller-provided request identifier. |
None
|
response_hook
|
Optional[ConnectorResponseHook]
|
A callback invoked with the connector response. |
None
|
Returns:
| Type | Description |
|---|---|
AsyncItemPaged[dict[str, Any]]
|
AsyncItemPaged[dict[str, Any]]: An Azure Core pager over connector
results. Consume it with |
Raises:
| Type | Description |
|---|---|
ConnectorException
|
If the connector request fails. |
create_group_thread
async
create_group_thread(input: CreateConversationBody | Mapping[str, Any], group_id: str, *, timeout: Optional[float] = None, headers: Optional[Mapping[str, str]] = None, client_request_id: Optional[str] = None, response_hook: Optional[ConnectorResponseHook] = None) -> dict[str, Any] | None
Start a new group conversation by creating a thread
Start a new group conversation by first creating a thread.
Swagger operation ID: CreateGroupThread.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
input
|
CreateConversationBody | Mapping[str, Any]
|
The request body. Mapping keys use serialized Swagger wire names. |
required |
group_id
|
str
|
Pick a group from the drop down or enter group id. |
required |
timeout
|
Optional[float]
|
The request timeout in seconds. |
None
|
headers
|
Optional[Mapping[str, str]]
|
Additional HTTP request headers. |
None
|
client_request_id
|
Optional[str]
|
A caller-provided request identifier. |
None
|
response_hook
|
Optional[ConnectorResponseHook]
|
A callback invoked with the connector response. |
None
|
Returns:
| Type | Description |
|---|---|
dict[str, Any] | None
|
dict[str, Any] | None: The connector operation result. |
Raises:
| Type | Description |
|---|---|
ConnectorException
|
If the connector request fails. |
get_conversation_thread
async
get_conversation_thread(group_id: str, thread_id: str, *, timeout: Optional[float] = None, headers: Optional[Mapping[str, str]] = None, client_request_id: Optional[str] = None, response_hook: Optional[ConnectorResponseHook] = None) -> dict[str, Any] | None
Get a conversation thread
Get a specific thread that belongs to a group.
Swagger operation ID: GetConversationThread.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
group_id
|
str
|
Pick a group from the drop down or enter group id. |
required |
thread_id
|
str
|
Enter the conversation thread ID. |
required |
timeout
|
Optional[float]
|
The request timeout in seconds. |
None
|
headers
|
Optional[Mapping[str, str]]
|
Additional HTTP request headers. |
None
|
client_request_id
|
Optional[str]
|
A caller-provided request identifier. |
None
|
response_hook
|
Optional[ConnectorResponseHook]
|
A callback invoked with the connector response. |
None
|
Returns:
| Type | Description |
|---|---|
dict[str, Any] | None
|
dict[str, Any] | None: The connector operation result. |
Raises:
| Type | Description |
|---|---|
ConnectorException
|
If the connector request fails. |
delete_conversation_thread
async
delete_conversation_thread(group_id: str, thread_id: str, *, timeout: Optional[float] = None, headers: Optional[Mapping[str, str]] = None, client_request_id: Optional[str] = None, response_hook: Optional[ConnectorResponseHook] = None) -> None
Delete a conversation thread
Deletes the specified conversation thread.
Swagger operation ID: DeleteConversationThread.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
group_id
|
str
|
Pick a group from the drop down or enter group id. |
required |
thread_id
|
str
|
Enter the conversation thread ID. |
required |
timeout
|
Optional[float]
|
The request timeout in seconds. |
None
|
headers
|
Optional[Mapping[str, str]]
|
Additional HTTP request headers. |
None
|
client_request_id
|
Optional[str]
|
A caller-provided request identifier. |
None
|
response_hook
|
Optional[ConnectorResponseHook]
|
A callback invoked with the connector response. |
None
|
Returns:
| Name | Type | Description |
|---|---|---|
None |
None
|
The operation completes without a response body. |
Raises:
| Type | Description |
|---|---|
ConnectorException
|
If the connector request fails. |
list_thread_posts
list_thread_posts(group_id: str, thread_id: str, *, timeout: Optional[float] = None, headers: Optional[Mapping[str, str]] = None, client_request_id: Optional[str] = None, response_hook: Optional[ConnectorResponseHook] = None) -> AsyncItemPaged[dict[str, Any]]
List the posts of a conversation thread
Get all the posts of the specified conversation thread.
Returns an Azure Core async pager that follows the connector continuation URL.
Swagger operation ID: ListThreadPosts.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
group_id
|
str
|
Pick a group from the drop down or enter group id. |
required |
thread_id
|
str
|
Enter the conversation thread ID. |
required |
timeout
|
Optional[float]
|
The request timeout in seconds. |
None
|
headers
|
Optional[Mapping[str, str]]
|
Additional HTTP request headers. |
None
|
client_request_id
|
Optional[str]
|
A caller-provided request identifier. |
None
|
response_hook
|
Optional[ConnectorResponseHook]
|
A callback invoked with the connector response. |
None
|
Returns:
| Type | Description |
|---|---|
AsyncItemPaged[dict[str, Any]]
|
AsyncItemPaged[dict[str, Any]]: An Azure Core pager over connector
results. Consume it with |
Raises:
| Type | Description |
|---|---|
ConnectorException
|
If the connector request fails. |
get_thread
async
get_thread(group_id: str, thread_id: str, post_id: str, *, timeout: Optional[float] = None, headers: Optional[Mapping[str, str]] = None, client_request_id: Optional[str] = None, response_hook: Optional[ConnectorResponseHook] = None) -> dict[str, Any] | None
Get a thread post
Retrieves a post in a specified thread.
Swagger operation ID: GetThreadPost.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
group_id
|
str
|
Pick a group from the drop down or enter group id. |
required |
thread_id
|
str
|
Enter the conversation thread ID. |
required |
post_id
|
str
|
Enter the post ID. |
required |
timeout
|
Optional[float]
|
The request timeout in seconds. |
None
|
headers
|
Optional[Mapping[str, str]]
|
Additional HTTP request headers. |
None
|
client_request_id
|
Optional[str]
|
A caller-provided request identifier. |
None
|
response_hook
|
Optional[ConnectorResponseHook]
|
A callback invoked with the connector response. |
None
|
Returns:
| Type | Description |
|---|---|
dict[str, Any] | None
|
dict[str, Any] | None: The connector operation result. |
Raises:
| Type | Description |
|---|---|
ConnectorException
|
If the connector request fails. |
list_attachments
list_attachments(group_id: str, thread_id: str, post_id: str, *, timeout: Optional[float] = None, headers: Optional[Mapping[str, str]] = None, client_request_id: Optional[str] = None, response_hook: Optional[ConnectorResponseHook] = None) -> AsyncItemPaged[dict[str, Any]]
List the attachments of a post
Retrieve a list of attachments that belong to a post.
Returns an Azure Core async pager that follows the connector continuation URL.
Swagger operation ID: GetAttachments.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
group_id
|
str
|
Pick a group from the drop down or enter group id. |
required |
thread_id
|
str
|
Enter the conversation thread ID. |
required |
post_id
|
str
|
Enter the post ID. |
required |
timeout
|
Optional[float]
|
The request timeout in seconds. |
None
|
headers
|
Optional[Mapping[str, str]]
|
Additional HTTP request headers. |
None
|
client_request_id
|
Optional[str]
|
A caller-provided request identifier. |
None
|
response_hook
|
Optional[ConnectorResponseHook]
|
A callback invoked with the connector response. |
None
|
Returns:
| Type | Description |
|---|---|
AsyncItemPaged[dict[str, Any]]
|
AsyncItemPaged[dict[str, Any]]: An Azure Core pager over connector
results. Consume it with |
Raises:
| Type | Description |
|---|---|
ConnectorException
|
If the connector request fails. |
reply_to_a_thread
async
reply_to_a_thread(input: ReplyConversationThreadBody | Mapping[str, Any], group_id: str, thread_id: str, *, timeout: Optional[float] = None, headers: Optional[Mapping[str, str]] = None, client_request_id: Optional[str] = None, response_hook: Optional[ConnectorResponseHook] = None) -> None
Reply to a conversation thread
Reply to a thread in a group conversation and add a new post to it.
Swagger operation ID: ReplyToAThread.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
input
|
ReplyConversationThreadBody | Mapping[str, Any]
|
The request body. Mapping keys use serialized Swagger wire names. |
required |
group_id
|
str
|
Pick a group from the drop down or enter group id. |
required |
thread_id
|
str
|
Enter the conversation thread ID. |
required |
timeout
|
Optional[float]
|
The request timeout in seconds. |
None
|
headers
|
Optional[Mapping[str, str]]
|
Additional HTTP request headers. |
None
|
client_request_id
|
Optional[str]
|
A caller-provided request identifier. |
None
|
response_hook
|
Optional[ConnectorResponseHook]
|
A callback invoked with the connector response. |
None
|
Returns:
| Name | Type | Description |
|---|---|---|
None |
None
|
The operation completes without a response body. |
Raises:
| Type | Description |
|---|---|
ConnectorException
|
If the connector request fails. |
reply
async
reply(input: ReplyConversationThreadBody | Mapping[str, Any], group_id: str, thread_id: str, post_id: str, *, timeout: Optional[float] = None, headers: Optional[Mapping[str, str]] = None, client_request_id: Optional[str] = None, response_hook: Optional[ConnectorResponseHook] = None) -> None
Reply to a post
Reply to a post and add a new post to the specified thread in a group conversation.
Swagger operation ID: ReplyPost.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
input
|
ReplyConversationThreadBody | Mapping[str, Any]
|
The request body. Mapping keys use serialized Swagger wire names. |
required |
group_id
|
str
|
Pick a group from the drop down or enter group id. |
required |
thread_id
|
str
|
Enter the conversation thread ID. |
required |
post_id
|
str
|
Enter the post ID. |
required |
timeout
|
Optional[float]
|
The request timeout in seconds. |
None
|
headers
|
Optional[Mapping[str, str]]
|
Additional HTTP request headers. |
None
|
client_request_id
|
Optional[str]
|
A caller-provided request identifier. |
None
|
response_hook
|
Optional[ConnectorResponseHook]
|
A callback invoked with the connector response. |
None
|
Returns:
| Name | Type | Description |
|---|---|---|
None |
None
|
The operation completes without a response body. |
Raises:
| Type | Description |
|---|---|
ConnectorException
|
If the connector request fails. |
http_request
async
http_request(input: bytes, *, timeout: Optional[float] = None, headers: Optional[Mapping[str, str]] = None, client_request_id: Optional[str] = None, response_hook: Optional[ConnectorResponseHook] = None) -> dict[str, Any] | None
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
Swagger operation ID: HttpRequest.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
input
|
bytes
|
The binary request body. |
required |
timeout
|
Optional[float]
|
The request timeout in seconds. |
None
|
headers
|
Optional[Mapping[str, str]]
|
Additional HTTP request headers. |
None
|
client_request_id
|
Optional[str]
|
A caller-provided request identifier. |
None
|
response_hook
|
Optional[ConnectorResponseHook]
|
A callback invoked with the connector response. |
None
|
Returns:
| Type | Description |
|---|---|
dict[str, Any] | None
|
dict[str, Any] | None: The connector operation result. |
Raises:
| Type | Description |
|---|---|
ConnectorException
|
If the connector request fails. |
forward
async
forward(input: ForwardPostBody | Mapping[str, Any], group_mail: str, conversation_id: str, thread_id: str, post_id: str, *, timeout: Optional[float] = None, headers: Optional[Mapping[str, str]] = None, client_request_id: Optional[str] = None, response_hook: Optional[ConnectorResponseHook] = None) -> None
Forward a post
Forward a post to a recipient.
Swagger operation ID: ForwardPost_V2.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
input
|
ForwardPostBody | Mapping[str, Any]
|
The request body. Mapping keys use serialized Swagger wire names. |
required |
group_mail
|
str
|
Pick a group from the drop down or enter the group mail address. |
required |
conversation_id
|
str
|
Enter the conversation ID. |
required |
thread_id
|
str
|
Enter the conversation thread ID. |
required |
post_id
|
str
|
Enter the post ID. |
required |
timeout
|
Optional[float]
|
The request timeout in seconds. |
None
|
headers
|
Optional[Mapping[str, str]]
|
Additional HTTP request headers. |
None
|
client_request_id
|
Optional[str]
|
A caller-provided request identifier. |
None
|
response_hook
|
Optional[ConnectorResponseHook]
|
A callback invoked with the connector response. |
None
|
Returns:
| Name | Type | Description |
|---|---|---|
None |
None
|
The operation completes without a response body. |
Raises:
| Type | Description |
|---|---|
ConnectorException
|
If the connector request fails. |
list_groups
list_groups(*, timeout: Optional[float] = None, headers: Optional[Mapping[str, str]] = None, client_request_id: Optional[str] = None, response_hook: Optional[ConnectorResponseHook] = None) -> AsyncItemPaged[dict[str, Any]]
List user groups
Retrieves all Office 365 Groups the user is part of.
Returns a single-page Azure Core async collection.
Swagger operation ID: ListGroups.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
timeout
|
Optional[float]
|
The request timeout in seconds. |
None
|
headers
|
Optional[Mapping[str, str]]
|
Additional HTTP request headers. |
None
|
client_request_id
|
Optional[str]
|
A caller-provided request identifier. |
None
|
response_hook
|
Optional[ConnectorResponseHook]
|
A callback invoked with the connector response. |
None
|
Returns:
| Type | Description |
|---|---|
AsyncItemPaged[dict[str, Any]]
|
AsyncItemPaged[dict[str, Any]]: An Azure Core pager over connector
results. Consume it with |
Raises:
| Type | Description |
|---|---|
ConnectorException
|
If the connector request fails. |