Skip to content

Commit 42cfcf0

Browse files
committed
Merge branch 'shem/update_release_configurations_use_flint' of github.com:microsoftgraph/msgraph-sdk-python into shem/update_release_configurations_use_flint
2 parents cd699f3 + 93f1d29 commit 42cfcf0

File tree

1,170 files changed

+3612
-12861
lines changed

Some content is hidden

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

1,170 files changed

+3612
-12861
lines changed

.github/workflows/project-auto-add.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@ on:
99
types:
1010
- opened
1111
branches:
12-
- 'main'
12+
- "main"
1313

1414
jobs:
1515
track_issue:
16-
if: github.actor != 'dependabot[bot]'
16+
if: github.actor != 'dependabot[bot]' && !github.event.pull_request.head.repo.fork
1717
runs-on: ubuntu-latest
1818
steps:
1919
- name: Generate token

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ client = GraphServiceClient(credentials=credentials, scopes=scopes)
107107

108108
After you have a **GraphServiceClient** that is authenticated, you can begin making calls against the service. The requests against the service look like our [REST API](https://docs.microsoft.com/graph/api/overview?view=graph-rest-1.0).
109109

110-
> **Note**: This SDK offers an asynchronous API by default. Async is a concurrency model that is far more efficient than multi-threading, and can provide significant performance benefits and enable the use of long-lived network connections such as WebSockets. We support popular python async envronments such as `asyncio`, `anyio` or `trio`.
110+
> **Note**: This SDK offers an asynchronous API by default. Async is a concurrency model that is far more efficient than multi-threading, and can provide significant performance benefits and enable the use of long-lived network connections such as WebSockets. We support popular python async environments such as `asyncio`, `anyio` or `trio`.
111111
112112
The following is a complete example that shows how to fetch a user from Microsoft Graph.
113113

msgraph/generated/admin/service_announcement/messages/item/attachments/item/content/content_request_builder.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,10 @@ async def delete(self,request_configuration: Optional[RequestConfiguration[Query
4949

5050
async def get(self,request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> bytes:
5151
"""
52-
The attachment content.
52+
Read the properties and relationships of a serviceAnnouncementAttachment object.
5353
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
5454
Returns: bytes
55+
Find more info here: https://learn.microsoft.com/graph/api/serviceannouncementattachment-get?view=graph-rest-1.0
5556
"""
5657
request_info = self.to_get_request_information(
5758
request_configuration
@@ -101,7 +102,7 @@ def to_delete_request_information(self,request_configuration: Optional[RequestCo
101102

102103
def to_get_request_information(self,request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> RequestInformation:
103104
"""
104-
The attachment content.
105+
Read the properties and relationships of a serviceAnnouncementAttachment object.
105106
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
106107
Returns: RequestInformation
107108
"""

msgraph/generated/agreement_acceptances/agreement_acceptances_request_builder.py

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ def __init__(self,request_adapter: RequestAdapter, path_parameters: Union[str, D
2929
param request_adapter: The request adapter to use to execute the requests.
3030
Returns: None
3131
"""
32-
super().__init__(request_adapter, "{+baseurl}/agreementAcceptances{?%24count,%24filter,%24search,%24select,%24skip,%24top}", path_parameters)
32+
super().__init__(request_adapter, "{+baseurl}/agreementAcceptances{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", path_parameters)
3333

3434
def by_agreement_acceptance_id(self,agreement_acceptance_id: str) -> AgreementAcceptanceItemRequestBuilder:
3535
"""
@@ -139,8 +139,12 @@ def get_query_parameter(self,original_name: str) -> str:
139139
raise TypeError("original_name cannot be null.")
140140
if original_name == "count":
141141
return "%24count"
142+
if original_name == "expand":
143+
return "%24expand"
142144
if original_name == "filter":
143145
return "%24filter"
146+
if original_name == "orderby":
147+
return "%24orderby"
144148
if original_name == "search":
145149
return "%24search"
146150
if original_name == "select":
@@ -154,9 +158,15 @@ def get_query_parameter(self,original_name: str) -> str:
154158
# Include count of items
155159
count: Optional[bool] = None
156160

161+
# Expand related entities
162+
expand: Optional[List[str]] = None
163+
157164
# Filter items by property values
158165
filter: Optional[str] = None
159166

167+
# Order items by property values
168+
orderby: Optional[List[str]] = None
169+
160170
# Search items by search phrases
161171
search: Optional[str] = None
162172

msgraph/generated/agreements/agreements_request_builder.py

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ def __init__(self,request_adapter: RequestAdapter, path_parameters: Union[str, D
2929
param request_adapter: The request adapter to use to execute the requests.
3030
Returns: None
3131
"""
32-
super().__init__(request_adapter, "{+baseurl}/agreements{?%24count,%24filter,%24search,%24select,%24skip,%24top}", path_parameters)
32+
super().__init__(request_adapter, "{+baseurl}/agreements{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", path_parameters)
3333

3434
def by_agreement_id(self,agreement_id: str) -> AgreementItemRequestBuilder:
3535
"""
@@ -139,8 +139,12 @@ def get_query_parameter(self,original_name: str) -> str:
139139
raise TypeError("original_name cannot be null.")
140140
if original_name == "count":
141141
return "%24count"
142+
if original_name == "expand":
143+
return "%24expand"
142144
if original_name == "filter":
143145
return "%24filter"
146+
if original_name == "orderby":
147+
return "%24orderby"
144148
if original_name == "search":
145149
return "%24search"
146150
if original_name == "select":
@@ -154,9 +158,15 @@ def get_query_parameter(self,original_name: str) -> str:
154158
# Include count of items
155159
count: Optional[bool] = None
156160

161+
# Expand related entities
162+
expand: Optional[List[str]] = None
163+
157164
# Filter items by property values
158165
filter: Optional[str] = None
159166

167+
# Order items by property values
168+
orderby: Optional[List[str]] = None
169+
160170
# Search items by search phrases
161171
search: Optional[str] = None
162172

msgraph/generated/app_catalogs/teams_apps/item/app_definitions/item/bot/bot_request_builder.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,10 @@ async def delete(self,request_configuration: Optional[RequestConfiguration[Query
4949

5050
async def get(self,request_configuration: Optional[RequestConfiguration[BotRequestBuilderGetQueryParameters]] = None) -> Optional[TeamworkBot]:
5151
"""
52-
The details of the bot specified in the Teams app manifest.
52+
Get the bot associated with a specific definition of the TeamsApp.
5353
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
5454
Returns: Optional[TeamworkBot]
55+
Find more info here: https://learn.microsoft.com/graph/api/teamworkbot-get?view=graph-rest-1.0
5556
"""
5657
request_info = self.to_get_request_information(
5758
request_configuration
@@ -103,7 +104,7 @@ def to_delete_request_information(self,request_configuration: Optional[RequestCo
103104

104105
def to_get_request_information(self,request_configuration: Optional[RequestConfiguration[BotRequestBuilderGetQueryParameters]] = None) -> RequestInformation:
105106
"""
106-
The details of the bot specified in the Teams app manifest.
107+
Get the bot associated with a specific definition of the TeamsApp.
107108
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
108109
Returns: RequestInformation
109110
"""
@@ -147,7 +148,7 @@ class BotRequestBuilderDeleteRequestConfiguration(RequestConfiguration[QueryPara
147148
@dataclass
148149
class BotRequestBuilderGetQueryParameters():
149150
"""
150-
The details of the bot specified in the Teams app manifest.
151+
Get the bot associated with a specific definition of the TeamsApp.
151152
"""
152153
def get_query_parameter(self,original_name: str) -> str:
153154
"""

msgraph/generated/chats/item/members/item/conversation_member_item_request_builder.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,10 @@ async def delete(self,request_configuration: Optional[RequestConfiguration[Query
5050

5151
async def get(self,request_configuration: Optional[RequestConfiguration[ConversationMemberItemRequestBuilderGetQueryParameters]] = None) -> Optional[ConversationMember]:
5252
"""
53-
Retrieve a conversationMember from a chat or channel.
53+
Retrieve a conversationMember from a chat.
5454
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
5555
Returns: Optional[ConversationMember]
56-
Find more info here: https://learn.microsoft.com/graph/api/conversationmember-get?view=graph-rest-1.0
56+
Find more info here: https://learn.microsoft.com/graph/api/chat-get-members?view=graph-rest-1.0
5757
"""
5858
request_info = self.to_get_request_information(
5959
request_configuration
@@ -105,7 +105,7 @@ def to_delete_request_information(self,request_configuration: Optional[RequestCo
105105

106106
def to_get_request_information(self,request_configuration: Optional[RequestConfiguration[ConversationMemberItemRequestBuilderGetQueryParameters]] = None) -> RequestInformation:
107107
"""
108-
Retrieve a conversationMember from a chat or channel.
108+
Retrieve a conversationMember from a chat.
109109
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
110110
Returns: RequestInformation
111111
"""
@@ -149,7 +149,7 @@ class ConversationMemberItemRequestBuilderDeleteRequestConfiguration(RequestConf
149149
@dataclass
150150
class ConversationMemberItemRequestBuilderGetQueryParameters():
151151
"""
152-
Retrieve a conversationMember from a chat or channel.
152+
Retrieve a conversationMember from a chat.
153153
"""
154154
def get_query_parameter(self,original_name: str) -> str:
155155
"""

msgraph/generated/chats/item/messages/item/hosted_contents/item/value/content_request_builder.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,10 @@ async def delete(self,request_configuration: Optional[RequestConfiguration[Query
4848

4949
async def get(self,request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> bytes:
5050
"""
51-
The unique identifier for an entity. Read-only.
51+
Retrieve the list of chatMessageHostedContent objects from a message. This API only lists the hosted content objects. To get the content bytes, see get chatmessage hosted content.
5252
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
5353
Returns: bytes
54+
Find more info here: https://learn.microsoft.com/graph/api/chatmessage-list-hostedcontents?view=graph-rest-1.0
5455
"""
5556
request_info = self.to_get_request_information(
5657
request_configuration
@@ -98,7 +99,7 @@ def to_delete_request_information(self,request_configuration: Optional[RequestCo
9899

99100
def to_get_request_information(self,request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> RequestInformation:
100101
"""
101-
The unique identifier for an entity. Read-only.
102+
Retrieve the list of chatMessageHostedContent objects from a message. This API only lists the hosted content objects. To get the content bytes, see get chatmessage hosted content.
102103
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
103104
Returns: RequestInformation
104105
"""

msgraph/generated/communications/call_records/call_records_request_builder.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,10 @@ def by_call_record_id(self,call_record_id: str) -> CallRecordItemRequestBuilder:
5151

5252
async def get(self,request_configuration: Optional[RequestConfiguration[CallRecordsRequestBuilderGetQueryParameters]] = None) -> Optional[CallRecordCollectionResponse]:
5353
"""
54-
Retrieve the properties and relationships of a callRecord object. There are two ways to get the id of a callRecord: You can use the $expand query parameter to optionally include session and segment details, as shown in the Get full details example. When you expand session details, the maximum page size is 60 sessions.
54+
Get the list of callRecord objects and their properties. The results can be optionally filtered using the $filter query parameter on the startDateTime and participant id properties. Note that the listed call records don't include expandable relationships such as sessions and participants_v2. You can expand these relationships using Get callRecord for a specific record.
5555
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
5656
Returns: Optional[CallRecordCollectionResponse]
57+
Find more info here: https://learn.microsoft.com/graph/api/callrecords-cloudcommunications-list-callrecords?view=graph-rest-1.0
5758
"""
5859
request_info = self.to_get_request_information(
5960
request_configuration
@@ -124,7 +125,7 @@ async def post(self,body: CallRecord, request_configuration: Optional[RequestCon
124125

125126
def to_get_request_information(self,request_configuration: Optional[RequestConfiguration[CallRecordsRequestBuilderGetQueryParameters]] = None) -> RequestInformation:
126127
"""
127-
Retrieve the properties and relationships of a callRecord object. There are two ways to get the id of a callRecord: You can use the $expand query parameter to optionally include session and segment details, as shown in the Get full details example. When you expand session details, the maximum page size is 60 sessions.
128+
Get the list of callRecord objects and their properties. The results can be optionally filtered using the $filter query parameter on the startDateTime and participant id properties. Note that the listed call records don't include expandable relationships such as sessions and participants_v2. You can expand these relationships using Get callRecord for a specific record.
128129
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
129130
Returns: RequestInformation
130131
"""
@@ -170,7 +171,7 @@ def count(self) -> CountRequestBuilder:
170171
@dataclass
171172
class CallRecordsRequestBuilderGetQueryParameters():
172173
"""
173-
Retrieve the properties and relationships of a callRecord object. There are two ways to get the id of a callRecord: You can use the $expand query parameter to optionally include session and segment details, as shown in the Get full details example. When you expand session details, the maximum page size is 60 sessions.
174+
Get the list of callRecord objects and their properties. The results can be optionally filtered using the $filter query parameter on the startDateTime and participant id properties. Note that the listed call records don't include expandable relationships such as sessions and participants_v2. You can expand these relationships using Get callRecord for a specific record.
174175
"""
175176
def get_query_parameter(self,original_name: str) -> str:
176177
"""

msgraph/generated/communications/call_records/item/call_record_item_request_builder.py

Lines changed: 23 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515
if TYPE_CHECKING:
1616
from ....models.call_records.call_record import CallRecord
1717
from ....models.o_data_errors.o_data_error import ODataError
18+
from .organizer_v2.organizer_v2_request_builder import Organizer_v2RequestBuilder
19+
from .participants_v2.participants_v2_request_builder import Participants_v2RequestBuilder
1820
from .sessions.sessions_request_builder import SessionsRequestBuilder
1921

2022
class CallRecordItemRequestBuilder(BaseRequestBuilder):
@@ -50,7 +52,7 @@ async def delete(self,request_configuration: Optional[RequestConfiguration[Query
5052

5153
async def get(self,request_configuration: Optional[RequestConfiguration[CallRecordItemRequestBuilderGetQueryParameters]] = None) -> Optional[CallRecord]:
5254
"""
53-
Retrieve the properties and relationships of a callRecord object. There are two ways to get the id of a callRecord: You can use the $expand query parameter to optionally include session and segment details, as shown in the Get full details example. When you expand session details, the maximum page size is 60 sessions.
55+
Retrieve the properties and relationships of a callRecord object. You can get the id of a callRecord in two ways:* Subscribe to change notifications to the /communications/callRecords endpoint.* Use the callChainId property of a call. The call record is available only after the associated call is completed.
5456
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
5557
Returns: Optional[CallRecord]
5658
Find more info here: https://learn.microsoft.com/graph/api/callrecords-callrecord-get?view=graph-rest-1.0
@@ -105,7 +107,7 @@ def to_delete_request_information(self,request_configuration: Optional[RequestCo
105107

106108
def to_get_request_information(self,request_configuration: Optional[RequestConfiguration[CallRecordItemRequestBuilderGetQueryParameters]] = None) -> RequestInformation:
107109
"""
108-
Retrieve the properties and relationships of a callRecord object. There are two ways to get the id of a callRecord: You can use the $expand query parameter to optionally include session and segment details, as shown in the Get full details example. When you expand session details, the maximum page size is 60 sessions.
110+
Retrieve the properties and relationships of a callRecord object. You can get the id of a callRecord in two ways:* Subscribe to change notifications to the /communications/callRecords endpoint.* Use the callChainId property of a call. The call record is available only after the associated call is completed.
109111
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
110112
Returns: RequestInformation
111113
"""
@@ -139,6 +141,24 @@ def with_url(self,raw_url: str) -> CallRecordItemRequestBuilder:
139141
raise TypeError("raw_url cannot be null.")
140142
return CallRecordItemRequestBuilder(self.request_adapter, raw_url)
141143

144+
@property
145+
def organizer_v2(self) -> Organizer_v2RequestBuilder:
146+
"""
147+
Provides operations to manage the organizer_v2 property of the microsoft.graph.callRecords.callRecord entity.
148+
"""
149+
from .organizer_v2.organizer_v2_request_builder import Organizer_v2RequestBuilder
150+
151+
return Organizer_v2RequestBuilder(self.request_adapter, self.path_parameters)
152+
153+
@property
154+
def participants_v2(self) -> Participants_v2RequestBuilder:
155+
"""
156+
Provides operations to manage the participants_v2 property of the microsoft.graph.callRecords.callRecord entity.
157+
"""
158+
from .participants_v2.participants_v2_request_builder import Participants_v2RequestBuilder
159+
160+
return Participants_v2RequestBuilder(self.request_adapter, self.path_parameters)
161+
142162
@property
143163
def sessions(self) -> SessionsRequestBuilder:
144164
"""
@@ -158,7 +178,7 @@ class CallRecordItemRequestBuilderDeleteRequestConfiguration(RequestConfiguratio
158178
@dataclass
159179
class CallRecordItemRequestBuilderGetQueryParameters():
160180
"""
161-
Retrieve the properties and relationships of a callRecord object. There are two ways to get the id of a callRecord: You can use the $expand query parameter to optionally include session and segment details, as shown in the Get full details example. When you expand session details, the maximum page size is 60 sessions.
181+
Retrieve the properties and relationships of a callRecord object. You can get the id of a callRecord in two ways:* Subscribe to change notifications to the /communications/callRecords endpoint.* Use the callChainId property of a call. The call record is available only after the associated call is completed.
162182
"""
163183
def get_query_parameter(self,original_name: str) -> str:
164184
"""

0 commit comments

Comments
 (0)