Skip to content

Commit 75df56e

Browse files
authored
Merge pull request #437 from microsoftgraph/v1.0/pipelinebuild/127784
Generated models and request builders
2 parents 50a64c5 + cbc6fe0 commit 75df56e

File tree

881 files changed

+2940
-2172
lines changed

Some content is hidden

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

881 files changed

+2940
-2172
lines changed

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.0rc1] - 2023-10-30
9+
10+
### Added
11+
12+
### Changed
13+
- Fixed a bug where some model properties were in camelcase instead of snakecase.
14+
815
## [1.0.0rc0] - 2023-10-27
916

1017
### Added

msgraph/_version.py

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

msgraph/generated/app_catalogs/teams_apps/item/teams_app_item_request_builder.py

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

3030
async def delete(self,request_configuration: Optional[TeamsAppItemRequestBuilderDeleteRequestConfiguration] = None) -> None:
3131
"""
32-
This API is available in the following national cloud deployments.
32+
Delete an app from an organization's app catalog (the tenant app catalog). To delete an app, the distributionMethod property for the app must be set to organization. You can also use this API to remove a submitted app from the review process. This API is available in the following national cloud deployments.
3333
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
3434
Returns: None
3535
Find more info here: https://learn.microsoft.com/graph/api/teamsapp-delete?view=graph-rest-1.0
@@ -94,7 +94,7 @@ async def patch(self,body: Optional[TeamsApp] = None, request_configuration: Opt
9494

9595
def to_delete_request_information(self,request_configuration: Optional[TeamsAppItemRequestBuilderDeleteRequestConfiguration] = None) -> RequestInformation:
9696
"""
97-
This API is available in the following national cloud deployments.
97+
Delete an app from an organization's app catalog (the tenant app catalog). To delete an app, the distributionMethod property for the app must be set to organization. You can also use this API to remove a submitted app from the review process. This API is available in the following national cloud deployments.
9898
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
9999
Returns: RequestInformation
100100
"""

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
@@ -48,10 +48,10 @@ async def delete(self,request_configuration: Optional[ConversationMemberItemRequ
4848

4949
async def get(self,request_configuration: Optional[ConversationMemberItemRequestBuilderGetRequestConfiguration] = None) -> Optional[ConversationMember]:
5050
"""
51-
Retrieve a conversationMember from a chat. This API is available in the following national cloud deployments.
51+
Retrieve a conversationMember from a chat or channel. This API is available in the following national cloud deployments.
5252
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
5353
Returns: Optional[ConversationMember]
54-
Find more info here: https://learn.microsoft.com/graph/api/chat-get-members?view=graph-rest-1.0
54+
Find more info here: https://learn.microsoft.com/graph/api/conversationmember-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[Conversat
110110

111111
def to_get_request_information(self,request_configuration: Optional[ConversationMemberItemRequestBuilderGetRequestConfiguration] = None) -> RequestInformation:
112112
"""
113-
Retrieve a conversationMember from a chat. This API is available in the following national cloud deployments.
113+
Retrieve a conversationMember from a chat or channel. This API is available in the following national cloud deployments.
114114
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
115115
Returns: RequestInformation
116116
"""
@@ -168,7 +168,7 @@ class ConversationMemberItemRequestBuilderDeleteRequestConfiguration(BaseRequest
168168
@dataclass
169169
class ConversationMemberItemRequestBuilderGetQueryParameters():
170170
"""
171-
Retrieve a conversationMember from a chat. This API is available in the following national cloud deployments.
171+
Retrieve a conversationMember from a chat or channel. This API is available in the following national cloud deployments.
172172
"""
173173
def get_query_parameter(self,original_name: Optional[str] = None) -> str:
174174
"""

msgraph/generated/chats/item/messages/item/hosted_contents/hosted_contents_request_builder.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def by_chat_message_hosted_content_id(self,chat_message_hosted_content_id: str)
4545

4646
async def get(self,request_configuration: Optional[HostedContentsRequestBuilderGetRequestConfiguration] = None) -> Optional[ChatMessageHostedContentCollectionResponse]:
4747
"""
48-
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 This API is available in the following national cloud deployments.
48+
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 This API is available in the following national cloud deployments. The following tables show the least privileged permission or permissions required to call this API on each supported resource type. Follow best practices to request least privileged permissions. For details about delegated and application permissions, see Permission types. To learn more about these permissions, see the permissions reference.
4949
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
5050
Returns: Optional[ChatMessageHostedContentCollectionResponse]
5151
Find more info here: https://learn.microsoft.com/graph/api/chatmessage-list-hostedcontents?view=graph-rest-1.0
@@ -91,7 +91,7 @@ async def post(self,body: Optional[ChatMessageHostedContent] = None, request_con
9191

9292
def to_get_request_information(self,request_configuration: Optional[HostedContentsRequestBuilderGetRequestConfiguration] = None) -> RequestInformation:
9393
"""
94-
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 This API is available in the following national cloud deployments.
94+
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 This API is available in the following national cloud deployments. The following tables show the least privileged permission or permissions required to call this API on each supported resource type. Follow best practices to request least privileged permissions. For details about delegated and application permissions, see Permission types. To learn more about these permissions, see the permissions reference.
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 HostedContentsRequestBuilderGetQueryParameters():
150150
"""
151-
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 This API is available in the following national cloud deployments.
151+
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 This API is available in the following national cloud deployments. The following tables show the least privileged permission or permissions required to call this API on each supported resource type. Follow best practices to request least privileged permissions. For details about delegated and application permissions, see Permission types. To learn more about these permissions, see the permissions reference.
152152
"""
153153
def get_query_parameter(self,original_name: Optional[str] = None) -> str:
154154
"""

msgraph/generated/chats/item/messages/item/replies/item/hosted_contents/hosted_contents_request_builder.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def by_chat_message_hosted_content_id(self,chat_message_hosted_content_id: str)
4545

4646
async def get(self,request_configuration: Optional[HostedContentsRequestBuilderGetRequestConfiguration] = None) -> Optional[ChatMessageHostedContentCollectionResponse]:
4747
"""
48-
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 This API is available in the following national cloud deployments.
48+
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 This API is available in the following national cloud deployments. The following tables show the least privileged permission or permissions required to call this API on each supported resource type. Follow best practices to request least privileged permissions. For details about delegated and application permissions, see Permission types. To learn more about these permissions, see the permissions reference.
4949
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
5050
Returns: Optional[ChatMessageHostedContentCollectionResponse]
5151
Find more info here: https://learn.microsoft.com/graph/api/chatmessage-list-hostedcontents?view=graph-rest-1.0
@@ -91,7 +91,7 @@ async def post(self,body: Optional[ChatMessageHostedContent] = None, request_con
9191

9292
def to_get_request_information(self,request_configuration: Optional[HostedContentsRequestBuilderGetRequestConfiguration] = None) -> RequestInformation:
9393
"""
94-
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 This API is available in the following national cloud deployments.
94+
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 This API is available in the following national cloud deployments. The following tables show the least privileged permission or permissions required to call this API on each supported resource type. Follow best practices to request least privileged permissions. For details about delegated and application permissions, see Permission types. To learn more about these permissions, see the permissions reference.
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 HostedContentsRequestBuilderGetQueryParameters():
150150
"""
151-
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 This API is available in the following national cloud deployments.
151+
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 This API is available in the following national cloud deployments. The following tables show the least privileged permission or permissions required to call this API on each supported resource type. Follow best practices to request least privileged permissions. For details about delegated and application permissions, see Permission types. To learn more about these permissions, see the permissions reference.
152152
"""
153153
def get_query_parameter(self,original_name: Optional[str] = None) -> str:
154154
"""

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. This API is available in the following national cloud deployments.
71+
Send a new chatMessage in the specified channel or a chat. 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/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. This API is available in the following national cloud deployments.
113+
Send a new chatMessage in the specified channel or a chat. 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/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. This API is available in the following national cloud deployments.
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.
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. This API is available in the following national cloud deployments.
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.
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-onboarding-deviceappmanagement-get?view=graph-rest-1.0
49+
Find more info here: https://learn.microsoft.com/graph/api/intune-unlock-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 targetedManagedAppProtection 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-targetedmanagedappprotection-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 targetedManagedAppProtection 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 targetedManagedAppProtection object.
180+
Read properties and relationships of the managedAppConfiguration object.
181181
"""
182182
def get_query_parameter(self,original_name: Optional[str] = None) -> str:
183183
"""

0 commit comments

Comments
 (0)