Skip to content

Commit 055e295

Browse files
authored
Merge branch 'main' into chore/update-workflows
2 parents 0e9bc32 + 3e4313f commit 055e295

File tree

128 files changed

+1979
-331
lines changed

Some content is hidden

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

128 files changed

+1979
-331
lines changed

README.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,24 @@ async def get_user():
165165
asyncio.run(get_user())
166166
```
167167

168+
### 3.2 Pagination
169+
By default a maximum of 100 rows are returned but in the response if odata_next_link is present, it can be used to fetch the next batch of max 100 rows. Here's an example to fetch the initial rows of members in a group, then iterate over the pages of rows using the odata_next_link
170+
```py
171+
# get group members
172+
members = await client.groups.by_group_id(id).members.get()
173+
if members:
174+
print(f"########## Members:")
175+
for i in range(len(members.value)):
176+
print(f"display_name: {members.value[i].display_name}, mail: {members.value[i].mail}, id: {members.value[i].id}")
177+
178+
# iterate over result batches > 100 rows
179+
while members is not None and members.odata_next_link is not None:
180+
members = await client.groups.by_group_id(id).members.with_url(members.odata_next_link).get()
181+
if members:
182+
print(f"########## Members:")
183+
for i in range(len(members.value)):
184+
print(f"display_name: {members.value[i].display_name}, mail: {members.value[i].mail}, id: {members.value[i].id}")
185+
```
168186

169187
## Documentation and resources
170188

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 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.
71+
Send a new chatMessage in the specified channel or a chat.
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/chat-post-messages?view=graph-rest-1.0
75+
Find more info here: https://learn.microsoft.com/graph/api/chatmessage-post?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 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.
113+
Send a new chatMessage in the specified channel or a chat.
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/send_activity_notification/send_activity_notification_post_request_body.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ class SendActivityNotificationPostRequestBody(AdditionalDataHolder, BackedModel,
2525
preview_text: Optional[ItemBody] = None
2626
# The recipient property
2727
recipient: Optional[TeamworkNotificationRecipient] = None
28+
# The teamsAppId property
29+
teams_app_id: Optional[str] = None
2830
# The templateParameters property
2931
template_parameters: Optional[List[KeyValuePair]] = None
3032
# The topic property
@@ -61,6 +63,7 @@ def get_field_deserializers(self,) -> Dict[str, Callable[[ParseNode], None]]:
6163
"chainId": lambda n : setattr(self, 'chain_id', n.get_int_value()),
6264
"previewText": lambda n : setattr(self, 'preview_text', n.get_object_value(ItemBody)),
6365
"recipient": lambda n : setattr(self, 'recipient', n.get_object_value(TeamworkNotificationRecipient)),
66+
"teamsAppId": lambda n : setattr(self, 'teams_app_id', n.get_str_value()),
6467
"templateParameters": lambda n : setattr(self, 'template_parameters', n.get_collection_of_object_values(KeyValuePair)),
6568
"topic": lambda n : setattr(self, 'topic', n.get_object_value(TeamworkActivityTopic)),
6669
}
@@ -78,6 +81,7 @@ def serialize(self,writer: SerializationWriter) -> None:
7881
writer.write_int_value("chainId", self.chain_id)
7982
writer.write_object_value("previewText", self.preview_text)
8083
writer.write_object_value("recipient", self.recipient)
84+
writer.write_str_value("teamsAppId", self.teams_app_id)
8185
writer.write_collection_of_object_values("templateParameters", self.template_parameters)
8286
writer.write_object_value("topic", self.topic)
8387
writer.write_additional_data_value(self.additional_data)

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-
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.
32+
Invite participants to the active call. For more information about how to handle operations, see commsOperation.
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-delete?view=graph-rest-1.0
36+
Find more info here: https://learn.microsoft.com/graph/api/participant-invite?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-
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.
57+
Invite participants to the active call. For more information about how to handle operations, see commsOperation.
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
@@ -46,7 +46,7 @@ async def get(self,request_configuration: Optional[DeviceAppManagementRequestBui
4646
Read properties and relationships of the deviceAppManagement object.
4747
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
4848
Returns: Optional[DeviceAppManagement]
49-
Find more info here: https://learn.microsoft.com/graph/api/intune-books-deviceappmanagement-get?view=graph-rest-1.0
49+
Find more info here: https://learn.microsoft.com/graph/api/intune-onboarding-deviceappmanagement-get?view=graph-rest-1.0
5050
"""
5151
request_info = self.to_get_request_information(
5252
request_configuration

msgraph/generated/device_app_management/managed_app_policies/item/managed_app_policy_item_request_builder.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,10 @@ async def delete(self,request_configuration: Optional[ManagedAppPolicyItemReques
4848

4949
async def get(self,request_configuration: Optional[ManagedAppPolicyItemRequestBuilderGetRequestConfiguration] = None) -> Optional[ManagedAppPolicy]:
5050
"""
51-
Read properties and relationships of the windowsInformationProtection object.
51+
Read properties and relationships of the managedAppConfiguration object.
5252
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
5353
Returns: Optional[ManagedAppPolicy]
54-
Find more info here: https://learn.microsoft.com/graph/api/intune-mam-windowsinformationprotection-get?view=graph-rest-1.0
54+
Find more info here: https://learn.microsoft.com/graph/api/intune-mam-managedappconfiguration-get?view=graph-rest-1.0
5555
"""
5656
request_info = self.to_get_request_information(
5757
request_configuration
@@ -110,7 +110,7 @@ def to_delete_request_information(self,request_configuration: Optional[ManagedAp
110110

111111
def to_get_request_information(self,request_configuration: Optional[ManagedAppPolicyItemRequestBuilderGetRequestConfiguration] = None) -> RequestInformation:
112112
"""
113-
Read properties and relationships of the windowsInformationProtection object.
113+
Read properties and relationships of the managedAppConfiguration object.
114114
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
115115
Returns: RequestInformation
116116
"""
@@ -177,7 +177,7 @@ class ManagedAppPolicyItemRequestBuilderDeleteRequestConfiguration(BaseRequestCo
177177
@dataclass
178178
class ManagedAppPolicyItemRequestBuilderGetQueryParameters():
179179
"""
180-
Read properties and relationships of the windowsInformationProtection object.
180+
Read properties and relationships of the managedAppConfiguration object.
181181
"""
182182
def get_query_parameter(self,original_name: Optional[str] = None) -> str:
183183
"""

msgraph/generated/device_app_management/managed_app_policies/managed_app_policies_request_builder.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,10 @@ def by_managed_app_policy_id(self,managed_app_policy_id: str) -> ManagedAppPolic
4545

4646
async def get(self,request_configuration: Optional[ManagedAppPoliciesRequestBuilderGetRequestConfiguration] = None) -> Optional[ManagedAppPolicyCollectionResponse]:
4747
"""
48-
List properties and relationships of the windowsInformationProtection objects.
48+
List properties and relationships of the managedAppConfiguration objects.
4949
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
5050
Returns: Optional[ManagedAppPolicyCollectionResponse]
51-
Find more info here: https://learn.microsoft.com/graph/api/intune-mam-windowsinformationprotection-list?view=graph-rest-1.0
51+
Find more info here: https://learn.microsoft.com/graph/api/intune-mam-managedappconfiguration-list?view=graph-rest-1.0
5252
"""
5353
request_info = self.to_get_request_information(
5454
request_configuration
@@ -91,7 +91,7 @@ async def post(self,body: Optional[ManagedAppPolicy] = None, request_configurati
9191

9292
def to_get_request_information(self,request_configuration: Optional[ManagedAppPoliciesRequestBuilderGetRequestConfiguration] = None) -> RequestInformation:
9393
"""
94-
List properties and relationships of the windowsInformationProtection objects.
94+
List properties and relationships of the managedAppConfiguration objects.
9595
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
9696
Returns: RequestInformation
9797
"""
@@ -148,7 +148,7 @@ def count(self) -> CountRequestBuilder:
148148
@dataclass
149149
class ManagedAppPoliciesRequestBuilderGetQueryParameters():
150150
"""
151-
List properties and relationships of the windowsInformationProtection objects.
151+
List properties and relationships of the managedAppConfiguration objects.
152152
"""
153153
def get_query_parameter(self,original_name: Optional[str] = None) -> str:
154154
"""

msgraph/generated/device_app_management/managed_app_registrations/item/managed_app_registration_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[ManagedAppRegistrationItem
5050

5151
async def get(self,request_configuration: Optional[ManagedAppRegistrationItemRequestBuilderGetRequestConfiguration] = None) -> Optional[ManagedAppRegistration]:
5252
"""
53-
Read properties and relationships of the managedAppRegistration object.
53+
Read properties and relationships of the iosManagedAppRegistration object.
5454
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
5555
Returns: Optional[ManagedAppRegistration]
56-
Find more info here: https://learn.microsoft.com/graph/api/intune-mam-managedappregistration-get?view=graph-rest-1.0
56+
Find more info here: https://learn.microsoft.com/graph/api/intune-mam-iosmanagedappregistration-get?view=graph-rest-1.0
5757
"""
5858
request_info = self.to_get_request_information(
5959
request_configuration
@@ -112,7 +112,7 @@ def to_delete_request_information(self,request_configuration: Optional[ManagedAp
112112

113113
def to_get_request_information(self,request_configuration: Optional[ManagedAppRegistrationItemRequestBuilderGetRequestConfiguration] = None) -> RequestInformation:
114114
"""
115-
Read properties and relationships of the managedAppRegistration object.
115+
Read properties and relationships of the iosManagedAppRegistration object.
116116
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
117117
Returns: RequestInformation
118118
"""
@@ -197,7 +197,7 @@ class ManagedAppRegistrationItemRequestBuilderDeleteRequestConfiguration(BaseReq
197197
@dataclass
198198
class ManagedAppRegistrationItemRequestBuilderGetQueryParameters():
199199
"""
200-
Read properties and relationships of the managedAppRegistration object.
200+
Read properties and relationships of the iosManagedAppRegistration object.
201201
"""
202202
def get_query_parameter(self,original_name: Optional[str] = None) -> str:
203203
"""

msgraph/generated/device_app_management/managed_app_statuses/item/managed_app_status_item_request_builder.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,10 @@ async def delete(self,request_configuration: Optional[ManagedAppStatusItemReques
4747

4848
async def get(self,request_configuration: Optional[ManagedAppStatusItemRequestBuilderGetRequestConfiguration] = None) -> Optional[ManagedAppStatus]:
4949
"""
50-
Read properties and relationships of the managedAppStatusRaw object.
50+
Read properties and relationships of the managedAppStatus object.
5151
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
5252
Returns: Optional[ManagedAppStatus]
53-
Find more info here: https://learn.microsoft.com/graph/api/intune-mam-managedappstatusraw-get?view=graph-rest-1.0
53+
Find more info here: https://learn.microsoft.com/graph/api/intune-mam-managedappstatus-get?view=graph-rest-1.0
5454
"""
5555
request_info = self.to_get_request_information(
5656
request_configuration
@@ -109,7 +109,7 @@ def to_delete_request_information(self,request_configuration: Optional[ManagedAp
109109

110110
def to_get_request_information(self,request_configuration: Optional[ManagedAppStatusItemRequestBuilderGetRequestConfiguration] = None) -> RequestInformation:
111111
"""
112-
Read properties and relationships of the managedAppStatusRaw object.
112+
Read properties and relationships of the managedAppStatus object.
113113
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
114114
Returns: RequestInformation
115115
"""
@@ -167,7 +167,7 @@ class ManagedAppStatusItemRequestBuilderDeleteRequestConfiguration(BaseRequestCo
167167
@dataclass
168168
class ManagedAppStatusItemRequestBuilderGetQueryParameters():
169169
"""
170-
Read properties and relationships of the managedAppStatusRaw object.
170+
Read properties and relationships of the managedAppStatus object.
171171
"""
172172
def get_query_parameter(self,original_name: Optional[str] = None) -> str:
173173
"""

msgraph/generated/device_app_management/managed_e_books/managed_e_books_request_builder.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,10 @@ def by_managed_e_book_id(self,managed_e_book_id: str) -> ManagedEBookItemRequest
4545

4646
async def get(self,request_configuration: Optional[ManagedEBooksRequestBuilderGetRequestConfiguration] = None) -> Optional[ManagedEBookCollectionResponse]:
4747
"""
48-
List properties and relationships of the iosVppEBook objects.
48+
List properties and relationships of the managedEBook objects.
4949
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
5050
Returns: Optional[ManagedEBookCollectionResponse]
51-
Find more info here: https://learn.microsoft.com/graph/api/intune-books-iosvppebook-list?view=graph-rest-1.0
51+
Find more info here: https://learn.microsoft.com/graph/api/intune-books-managedebook-list?view=graph-rest-1.0
5252
"""
5353
request_info = self.to_get_request_information(
5454
request_configuration
@@ -92,7 +92,7 @@ async def post(self,body: Optional[ManagedEBook] = None, request_configuration:
9292

9393
def to_get_request_information(self,request_configuration: Optional[ManagedEBooksRequestBuilderGetRequestConfiguration] = None) -> RequestInformation:
9494
"""
95-
List properties and relationships of the iosVppEBook objects.
95+
List properties and relationships of the managedEBook objects.
9696
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
9797
Returns: RequestInformation
9898
"""
@@ -149,7 +149,7 @@ def count(self) -> CountRequestBuilder:
149149
@dataclass
150150
class ManagedEBooksRequestBuilderGetQueryParameters():
151151
"""
152-
List properties and relationships of the iosVppEBook objects.
152+
List properties and relationships of the managedEBook objects.
153153
"""
154154
def get_query_parameter(self,original_name: Optional[str] = None) -> str:
155155
"""

0 commit comments

Comments
 (0)