Skip to content

Commit 3d95d24

Browse files
authored
Merge pull request #439 from microsoftgraph/v1.0/pipelinebuild/127863
Generated models and request builders
2 parents cb3e818 + 0fffebf commit 3d95d24

115 files changed

Lines changed: 368 additions & 356 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎CHANGELOG.md‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,13 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [1.0.0] - 2023-10-31
9+
10+
### Added
11+
12+
### Changed
13+
- GA Release.
14+
815
## [1.0.0rc1] - 2023-10-30
916

1017
### Added

‎README.md‎

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,23 @@
1+
[![PyPI version](https://badge.fury.io/py/msgraph-sdk.svg)](https://badge.fury.io/py/msgraph-sdk)
2+
[![Downloads](https://pepy.tech/badge/msgraph-sdk)](https://pepy.tech/project/msgraph-sdk)
3+
[![Supported Versions](https://img.shields.io/pypi/pyversions/msgraph-sdk.svg)](https://pypi.org/project/msgraph-sdk)
4+
[![Contributors](https://img.shields.io/github/contributors/microsoftgraph/msgraph-sdk-python.svg)](https://github.com/microsoftgraph/msgraph-sdk-python/graphs/contributors)
5+
16
# Microsoft Graph SDK for Python
27

38
Get started with the Microsoft Graph SDK for Python by integrating the [Microsoft Graph API](https://docs.microsoft.com/graph/overview) into your Python application.
49

510
> **Note:**
611
> * This SDK allows you to build applications using the [v1.0](https://docs.microsoft.com/graph/use-the-api#version) of Microsoft Graph. If you want to try the latest Microsoft Graph APIs, try the [beta](https://github.com/microsoftgraph/msgraph-beta-sdk-python) SDK.
7-
>
8-
> * The Microsoft Graph Python SDK is currently in community preview. During this period we're expecting breaking changes to happen to the SDK as we make updates based on feedback. Don't use this SDK in production environments. For details see [SDKs in preview or GA status](https://learn.microsoft.com/en-us/graph/sdks/sdks-overview#sdks-in-preview-or-ga-status).
912
1013
## 1. Installation
1114

1215
```py
1316
pip install msgraph-sdk
1417
```
15-
> Note: Enable long paths in your environment if you receive a `Could not install packages due to an OSError`. For details, see [Enable Long Paths in Windows 10, Version 1607, and Later](https://learn.microsoft.com/en-us/windows/win32/fileio/maximum-file-path-limitation?tabs=powershell#enable-long-paths-in-windows-10-version-1607-and-later).
18+
> **Note:**
19+
> * The Microsoft Graph SDK for Python is a fairly large package. It may take a few minutes for the initial installation to complete.
20+
> * Enable long paths in your environment if you receive a `Could not install packages due to an OSError`. For details, see [Enable Long Paths in Windows 10, Version 1607, and Later](https://learn.microsoft.com/en-us/windows/win32/fileio/maximum-file-path-limitation?tabs=powershell#enable-long-paths-in-windows-10-version-1607-and-later).
1621
1722
## 2. Getting started with Microsoft Graph
1823

‎msgraph/_version.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
VERSION: str = '1.0.0rc1'
1+
VERSION: str = '1.0.0'

‎msgraph/generated/applications_with_app_id/applications_with_app_id_request_builder.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ def __init__(self,request_adapter: RequestAdapter, path_parameters: Optional[Uni
2626
Returns: None
2727
"""
2828
if isinstance(path_parameters, dict):
29-
path_parameters['app_id'] = str(app_id)
29+
path_parameters['appId'] = str(app_id)
3030
super().__init__(request_adapter, "{+baseurl}/applications(appId='{appId}'){?%24select,%24expand}", path_parameters)
3131

3232
async def delete(self,request_configuration: Optional[ApplicationsWithAppIdRequestBuilderDeleteRequestConfiguration] = None) -> None:

‎msgraph/generated/chats/item/messages/item/replies/replies_request_builder.py‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,11 +68,11 @@ async def get(self,request_configuration: Optional[RepliesRequestBuilderGetReque
6868

6969
async def post(self,body: Optional[ChatMessage] = None, request_configuration: Optional[RepliesRequestBuilderPostRequestConfiguration] = None) -> Optional[ChatMessage]:
7070
"""
71-
Create a new reply to a chatMessage in a specified channel. This API is available in the following national cloud deployments.
71+
Send a new reply to a chatMessage in a specified channel. This API is available in the following national cloud deployments.
7272
param body: The request body
7373
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
7474
Returns: Optional[ChatMessage]
75-
Find more info here: https://learn.microsoft.com/graph/api/channel-post-messagereply?view=graph-rest-1.0
75+
Find more info here: https://learn.microsoft.com/graph/api/chatmessage-post-replies?view=graph-rest-1.0
7676
"""
7777
if not body:
7878
raise TypeError("body cannot be null.")
@@ -110,7 +110,7 @@ def to_get_request_information(self,request_configuration: Optional[RepliesReque
110110

111111
def to_post_request_information(self,body: Optional[ChatMessage] = None, request_configuration: Optional[RepliesRequestBuilderPostRequestConfiguration] = None) -> RequestInformation:
112112
"""
113-
Create a new reply to a chatMessage in a specified channel. This API is available in the following national cloud deployments.
113+
Send a new reply to a chatMessage in a specified channel. This API is available in the following national cloud deployments.
114114
param body: The request body
115115
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
116116
Returns: RequestInformation

‎msgraph/generated/chats/item/messages/messages_request_builder.py‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,11 +68,11 @@ async def get(self,request_configuration: Optional[MessagesRequestBuilderGetRequ
6868

6969
async def post(self,body: Optional[ChatMessage] = None, request_configuration: Optional[MessagesRequestBuilderPostRequestConfiguration] = None) -> Optional[ChatMessage]:
7070
"""
71-
Send a new chatMessage in the specified channel or a chat. This API is available in the following national cloud deployments.
71+
Send a new chatMessage in the specified chat. This API can't create a new chat; you must use the list chats method to retrieve the ID of an existing chat before you can create a chat message. This API is available in the following national cloud deployments.
7272
param body: The request body
7373
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
7474
Returns: Optional[ChatMessage]
75-
Find more info here: https://learn.microsoft.com/graph/api/chatmessage-post?view=graph-rest-1.0
75+
Find more info here: https://learn.microsoft.com/graph/api/chat-post-messages?view=graph-rest-1.0
7676
"""
7777
if not body:
7878
raise TypeError("body cannot be null.")
@@ -110,7 +110,7 @@ def to_get_request_information(self,request_configuration: Optional[MessagesRequ
110110

111111
def to_post_request_information(self,body: Optional[ChatMessage] = None, request_configuration: Optional[MessagesRequestBuilderPostRequestConfiguration] = None) -> RequestInformation:
112112
"""
113-
Send a new chatMessage in the specified channel or a chat. This API is available in the following national cloud deployments.
113+
Send a new chatMessage in the specified chat. This API can't create a new chat; you must use the list chats method to retrieve the ID of an existing chat before you can create a chat message. This API is available in the following national cloud deployments.
114114
param body: The request body
115115
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
116116
Returns: RequestInformation

‎msgraph/generated/communications/call_records/microsoft_graph_call_records_get_direct_routing_calls_with_from_date_time_with_to_date_time/microsoft_graph_call_records_get_direct_routing_calls_with_from_date_time_with_to_date_time_request_builder.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ def __init__(self,request_adapter: RequestAdapter, path_parameters: Optional[Uni
2828
Returns: None
2929
"""
3030
if isinstance(path_parameters, dict):
31-
path_parameters['from_date_time'] = str(from_date_time)
32-
path_parameters['to_date_time'] = str(to_date_time)
31+
path_parameters['fromDateTime'] = str(from_date_time)
32+
path_parameters['toDateTime'] = str(to_date_time)
3333
super().__init__(request_adapter, "{+baseurl}/communications/callRecords/microsoft.graph.callRecords.getDirectRoutingCalls(fromDateTime={fromDateTime},toDateTime={toDateTime}){?%24top,%24skip,%24search,%24filter,%24count}", path_parameters)
3434

3535
async def get(self,request_configuration: Optional[MicrosoftGraphCallRecordsGetDirectRoutingCallsWithFromDateTimeWithToDateTimeRequestBuilderGetRequestConfiguration] = None) -> Optional[GetDirectRoutingCallsWithFromDateTimeWithToDateTimeGetResponse]:

‎msgraph/generated/communications/call_records/microsoft_graph_call_records_get_pstn_calls_with_from_date_time_with_to_date_time/microsoft_graph_call_records_get_pstn_calls_with_from_date_time_with_to_date_time_request_builder.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ def __init__(self,request_adapter: RequestAdapter, path_parameters: Optional[Uni
2828
Returns: None
2929
"""
3030
if isinstance(path_parameters, dict):
31-
path_parameters['from_date_time'] = str(from_date_time)
32-
path_parameters['to_date_time'] = str(to_date_time)
31+
path_parameters['fromDateTime'] = str(from_date_time)
32+
path_parameters['toDateTime'] = str(to_date_time)
3333
super().__init__(request_adapter, "{+baseurl}/communications/callRecords/microsoft.graph.callRecords.getPstnCalls(fromDateTime={fromDateTime},toDateTime={toDateTime}){?%24top,%24skip,%24search,%24filter,%24count}", path_parameters)
3434

3535
async def get(self,request_configuration: Optional[MicrosoftGraphCallRecordsGetPstnCallsWithFromDateTimeWithToDateTimeRequestBuilderGetRequestConfiguration] = None) -> Optional[GetPstnCallsWithFromDateTimeWithToDateTimeGetResponse]:

‎msgraph/generated/communications/calls/item/participants/invite/invite_request_builder.py‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,11 @@ def __init__(self,request_adapter: RequestAdapter, path_parameters: Optional[Uni
2929

3030
async def post(self,body: Optional[InvitePostRequestBody] = None, request_configuration: Optional[InviteRequestBuilderPostRequestConfiguration] = None) -> Optional[InviteParticipantsOperation]:
3131
"""
32-
Invite participants to the active call. For more information about how to handle operations, see commsOperation. This API is available in the following national cloud deployments.
32+
Delete a specific participant in a call. In some situations, it is appropriate for an application to remove a participant from an active call. This action can be done before or after the participant answers the call. When an active caller is removed, they are immediately dropped from the call with no pre- or post-removal notification. When an invited participant is removed, any outstanding add participant request is canceled. This API is available in the following national cloud deployments.
3333
param body: The request body
3434
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
3535
Returns: Optional[InviteParticipantsOperation]
36-
Find more info here: https://learn.microsoft.com/graph/api/participant-invite?view=graph-rest-1.0
36+
Find more info here: https://learn.microsoft.com/graph/api/participant-delete?view=graph-rest-1.0
3737
"""
3838
if not body:
3939
raise TypeError("body cannot be null.")
@@ -54,7 +54,7 @@ async def post(self,body: Optional[InvitePostRequestBody] = None, request_config
5454

5555
def to_post_request_information(self,body: Optional[InvitePostRequestBody] = None, request_configuration: Optional[InviteRequestBuilderPostRequestConfiguration] = None) -> RequestInformation:
5656
"""
57-
Invite participants to the active call. For more information about how to handle operations, see commsOperation. This API is available in the following national cloud deployments.
57+
Delete a specific participant in a call. In some situations, it is appropriate for an application to remove a participant from an active call. This action can be done before or after the participant answers the call. When an active caller is removed, they are immediately dropped from the call with no pre- or post-removal notification. When an invited participant is removed, any outstanding add participant request is canceled. This API is available in the following national cloud deployments.
5858
param body: The request body
5959
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
6060
Returns: RequestInformation

‎msgraph/generated/device_app_management/device_app_management_request_builder.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ async def patch(self,body: Optional[DeviceAppManagement] = None, request_configu
6969
param body: The request body
7070
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
7171
Returns: Optional[DeviceAppManagement]
72-
Find more info here: https://learn.microsoft.com/graph/api/intune-partnerintegration-deviceappmanagement-update?view=graph-rest-1.0
72+
Find more info here: https://learn.microsoft.com/graph/api/intune-policyset-deviceappmanagement-update?view=graph-rest-1.0
7373
"""
7474
if not body:
7575
raise TypeError("body cannot be null.")

0 commit comments

Comments
 (0)