Skip to content

Commit adad99b

Browse files
Microsoft Graph DevX ToolingMicrosoft Graph DevX Tooling
authored andcommitted
feat(generation): update request builders and models
Update generated files with build 247501
1 parent d422d75 commit adad99b

174 files changed

Lines changed: 1723 additions & 496 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.

‎msgraph_beta/generated/admin/exchange/exchange_request_builder.py‎

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ async def delete(self,request_configuration: Optional[RequestConfiguration[Query
3939
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
4040
Returns: None
4141
"""
42-
warn("Private preview for Import Export APIs as of 2021-08/PrivatePreview:importExport on 2021-08-19 and will be removed 2021-11-15", DeprecationWarning)
4342
request_info = self.to_delete_request_information(
4443
request_configuration
4544
)
@@ -58,7 +57,6 @@ async def get(self,request_configuration: Optional[RequestConfiguration[Exchange
5857
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
5958
Returns: Optional[ExchangeAdmin]
6059
"""
61-
warn("Private preview for Import Export APIs as of 2021-08/PrivatePreview:importExport on 2021-08-19 and will be removed 2021-11-15", DeprecationWarning)
6260
request_info = self.to_get_request_information(
6361
request_configuration
6462
)
@@ -80,7 +78,6 @@ async def patch(self,body: ExchangeAdmin, request_configuration: Optional[Reques
8078
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
8179
Returns: Optional[ExchangeAdmin]
8280
"""
83-
warn("Private preview for Import Export APIs as of 2021-08/PrivatePreview:importExport on 2021-08-19 and will be removed 2021-11-15", DeprecationWarning)
8481
if body is None:
8582
raise TypeError("body cannot be null.")
8683
request_info = self.to_patch_request_information(
@@ -103,7 +100,6 @@ def to_delete_request_information(self,request_configuration: Optional[RequestCo
103100
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
104101
Returns: RequestInformation
105102
"""
106-
warn("Private preview for Import Export APIs as of 2021-08/PrivatePreview:importExport on 2021-08-19 and will be removed 2021-11-15", DeprecationWarning)
107103
request_info = RequestInformation(Method.DELETE, self.url_template, self.path_parameters)
108104
request_info.configure(request_configuration)
109105
request_info.headers.try_add("Accept", "application/json")
@@ -115,7 +111,6 @@ def to_get_request_information(self,request_configuration: Optional[RequestConfi
115111
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
116112
Returns: RequestInformation
117113
"""
118-
warn("Private preview for Import Export APIs as of 2021-08/PrivatePreview:importExport on 2021-08-19 and will be removed 2021-11-15", DeprecationWarning)
119114
request_info = RequestInformation(Method.GET, self.url_template, self.path_parameters)
120115
request_info.configure(request_configuration)
121116
request_info.headers.try_add("Accept", "application/json")
@@ -128,7 +123,6 @@ def to_patch_request_information(self,body: ExchangeAdmin, request_configuration
128123
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
129124
Returns: RequestInformation
130125
"""
131-
warn("Private preview for Import Export APIs as of 2021-08/PrivatePreview:importExport on 2021-08-19 and will be removed 2021-11-15", DeprecationWarning)
132126
if body is None:
133127
raise TypeError("body cannot be null.")
134128
request_info = RequestInformation(Method.PATCH, self.url_template, self.path_parameters)
@@ -143,7 +137,6 @@ def with_url(self,raw_url: str) -> ExchangeRequestBuilder:
143137
param raw_url: The raw URL to use for the request builder.
144138
Returns: ExchangeRequestBuilder
145139
"""
146-
warn("Private preview for Import Export APIs as of 2021-08/PrivatePreview:importExport on 2021-08-19 and will be removed 2021-11-15", DeprecationWarning)
147140
if raw_url is None:
148141
raise TypeError("raw_url cannot be null.")
149142
return ExchangeRequestBuilder(self.request_adapter, raw_url)

‎msgraph_beta/generated/admin/exchange/mailboxes/count/count_request_builder.py‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ async def get(self,request_configuration: Optional[RequestConfiguration[CountReq
3535
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
3636
Returns: Optional[int]
3737
"""
38-
warn("Private preview for Import Export APIs as of 2021-08/PrivatePreview:importExport on 2021-08-19 and will be removed 2021-11-15", DeprecationWarning)
3938
request_info = self.to_get_request_information(
4039
request_configuration
4140
)
@@ -54,7 +53,6 @@ def to_get_request_information(self,request_configuration: Optional[RequestConfi
5453
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
5554
Returns: RequestInformation
5655
"""
57-
warn("Private preview for Import Export APIs as of 2021-08/PrivatePreview:importExport on 2021-08-19 and will be removed 2021-11-15", DeprecationWarning)
5856
request_info = RequestInformation(Method.GET, self.url_template, self.path_parameters)
5957
request_info.configure(request_configuration)
6058
request_info.headers.try_add("Accept", "text/plain;q=0.9")
@@ -66,7 +64,6 @@ def with_url(self,raw_url: str) -> CountRequestBuilder:
6664
param raw_url: The raw URL to use for the request builder.
6765
Returns: CountRequestBuilder
6866
"""
69-
warn("Private preview for Import Export APIs as of 2021-08/PrivatePreview:importExport on 2021-08-19 and will be removed 2021-11-15", DeprecationWarning)
7067
if raw_url is None:
7168
raise TypeError("raw_url cannot be null.")
7269
return CountRequestBuilder(self.request_adapter, raw_url)

‎msgraph_beta/generated/admin/exchange/mailboxes/item/create_import_session/create_import_session_request_builder.py‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ async def post(self,request_configuration: Optional[RequestConfiguration[QueryPa
3737
Returns: Optional[MailboxItemImportSession]
3838
Find more info here: https://learn.microsoft.com/graph/api/mailbox-createimportsession?view=graph-rest-beta
3939
"""
40-
warn("Private preview for Import Export APIs as of 2021-08/PrivatePreview:importExport on 2021-08-19 and will be removed 2021-11-15", DeprecationWarning)
4140
request_info = self.to_post_request_information(
4241
request_configuration
4342
)
@@ -58,7 +57,6 @@ def to_post_request_information(self,request_configuration: Optional[RequestConf
5857
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
5958
Returns: RequestInformation
6059
"""
61-
warn("Private preview for Import Export APIs as of 2021-08/PrivatePreview:importExport on 2021-08-19 and will be removed 2021-11-15", DeprecationWarning)
6260
request_info = RequestInformation(Method.POST, self.url_template, self.path_parameters)
6361
request_info.configure(request_configuration)
6462
request_info.headers.try_add("Accept", "application/json")
@@ -70,7 +68,6 @@ def with_url(self,raw_url: str) -> CreateImportSessionRequestBuilder:
7068
param raw_url: The raw URL to use for the request builder.
7169
Returns: CreateImportSessionRequestBuilder
7270
"""
73-
warn("Private preview for Import Export APIs as of 2021-08/PrivatePreview:importExport on 2021-08-19 and will be removed 2021-11-15", DeprecationWarning)
7471
if raw_url is None:
7572
raise TypeError("raw_url cannot be null.")
7673
return CreateImportSessionRequestBuilder(self.request_adapter, raw_url)

‎msgraph_beta/generated/admin/exchange/mailboxes/item/export_items/export_items_request_builder.py‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ async def post(self,body: ExportItemsPostRequestBody, request_configuration: Opt
3939
Returns: Optional[ExportItemsPostResponse]
4040
Find more info here: https://learn.microsoft.com/graph/api/mailbox-exportitems?view=graph-rest-beta
4141
"""
42-
warn("Private preview for Import Export APIs as of 2021-08/PrivatePreview:importExport on 2021-08-19 and will be removed 2024-06-30", DeprecationWarning)
4342
if body is None:
4443
raise TypeError("body cannot be null.")
4544
request_info = self.to_post_request_information(
@@ -63,7 +62,6 @@ def to_post_request_information(self,body: ExportItemsPostRequestBody, request_c
6362
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
6463
Returns: RequestInformation
6564
"""
66-
warn("Private preview for Import Export APIs as of 2021-08/PrivatePreview:importExport on 2021-08-19 and will be removed 2024-06-30", DeprecationWarning)
6765
if body is None:
6866
raise TypeError("body cannot be null.")
6967
request_info = RequestInformation(Method.POST, self.url_template, self.path_parameters)
@@ -78,7 +76,6 @@ def with_url(self,raw_url: str) -> ExportItemsRequestBuilder:
7876
param raw_url: The raw URL to use for the request builder.
7977
Returns: ExportItemsRequestBuilder
8078
"""
81-
warn("Private preview for Import Export APIs as of 2021-08/PrivatePreview:importExport on 2021-08-19 and will be removed 2024-06-30", DeprecationWarning)
8279
if raw_url is None:
8380
raise TypeError("raw_url cannot be null.")
8481
return ExportItemsRequestBuilder(self.request_adapter, raw_url)

‎msgraph_beta/generated/admin/exchange/mailboxes/item/folders/count/count_request_builder.py‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ async def get(self,request_configuration: Optional[RequestConfiguration[CountReq
3535
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
3636
Returns: Optional[int]
3737
"""
38-
warn("Private preview for Import Export APIs as of 2021-08/PrivatePreview:importExport on 2021-08-19 and will be removed 2021-11-15", DeprecationWarning)
3938
request_info = self.to_get_request_information(
4039
request_configuration
4140
)
@@ -54,7 +53,6 @@ def to_get_request_information(self,request_configuration: Optional[RequestConfi
5453
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
5554
Returns: RequestInformation
5655
"""
57-
warn("Private preview for Import Export APIs as of 2021-08/PrivatePreview:importExport on 2021-08-19 and will be removed 2021-11-15", DeprecationWarning)
5856
request_info = RequestInformation(Method.GET, self.url_template, self.path_parameters)
5957
request_info.configure(request_configuration)
6058
request_info.headers.try_add("Accept", "text/plain;q=0.9")
@@ -66,7 +64,6 @@ def with_url(self,raw_url: str) -> CountRequestBuilder:
6664
param raw_url: The raw URL to use for the request builder.
6765
Returns: CountRequestBuilder
6866
"""
69-
warn("Private preview for Import Export APIs as of 2021-08/PrivatePreview:importExport on 2021-08-19 and will be removed 2021-11-15", DeprecationWarning)
7067
if raw_url is None:
7168
raise TypeError("raw_url cannot be null.")
7269
return CountRequestBuilder(self.request_adapter, raw_url)

‎msgraph_beta/generated/admin/exchange/mailboxes/item/folders/delta/delta_request_builder.py‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ async def get(self,request_configuration: Optional[RequestConfiguration[DeltaReq
3737
Returns: Optional[DeltaGetResponse]
3838
Find more info here: https://learn.microsoft.com/graph/api/mailboxfolder-delta?view=graph-rest-beta
3939
"""
40-
warn("Private preview for Import Export APIs as of 2021-08/PrivatePreview:importExport on 2021-08-19 and will be removed 2021-11-15", DeprecationWarning)
4140
request_info = self.to_get_request_information(
4241
request_configuration
4342
)
@@ -58,7 +57,6 @@ def to_get_request_information(self,request_configuration: Optional[RequestConfi
5857
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
5958
Returns: RequestInformation
6059
"""
61-
warn("Private preview for Import Export APIs as of 2021-08/PrivatePreview:importExport on 2021-08-19 and will be removed 2021-11-15", DeprecationWarning)
6260
request_info = RequestInformation(Method.GET, self.url_template, self.path_parameters)
6361
request_info.configure(request_configuration)
6462
request_info.headers.try_add("Accept", "application/json")
@@ -70,7 +68,6 @@ def with_url(self,raw_url: str) -> DeltaRequestBuilder:
7068
param raw_url: The raw URL to use for the request builder.
7169
Returns: DeltaRequestBuilder
7270
"""
73-
warn("Private preview for Import Export APIs as of 2021-08/PrivatePreview:importExport on 2021-08-19 and will be removed 2021-11-15", DeprecationWarning)
7471
if raw_url is None:
7572
raise TypeError("raw_url cannot be null.")
7673
return DeltaRequestBuilder(self.request_adapter, raw_url)

‎msgraph_beta/generated/admin/exchange/mailboxes/item/folders/folders_request_builder.py‎

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ def by_mailbox_folder_id(self,mailbox_folder_id: str) -> MailboxFolderItemReques
4040
param mailbox_folder_id: The unique identifier of mailboxFolder
4141
Returns: MailboxFolderItemRequestBuilder
4242
"""
43-
warn("Private preview for Import Export APIs as of 2021-08/PrivatePreview:importExport on 2021-08-19 and will be removed 2021-11-15", DeprecationWarning)
4443
if mailbox_folder_id is None:
4544
raise TypeError("mailbox_folder_id cannot be null.")
4645
from .item.mailbox_folder_item_request_builder import MailboxFolderItemRequestBuilder
@@ -56,7 +55,6 @@ async def get(self,request_configuration: Optional[RequestConfiguration[FoldersR
5655
Returns: Optional[MailboxFolderCollectionResponse]
5756
Find more info here: https://learn.microsoft.com/graph/api/mailbox-list-folders?view=graph-rest-beta
5857
"""
59-
warn("Private preview for Import Export APIs as of 2021-08/PrivatePreview:importExport on 2021-08-19 and will be removed 2021-11-15", DeprecationWarning)
6058
request_info = self.to_get_request_information(
6159
request_configuration
6260
)
@@ -79,7 +77,6 @@ async def post(self,body: MailboxFolder, request_configuration: Optional[Request
7977
Returns: Optional[MailboxFolder]
8078
Find more info here: https://learn.microsoft.com/graph/api/mailbox-post-folders?view=graph-rest-beta
8179
"""
82-
warn("Private preview for Import Export APIs as of 2021-08/PrivatePreview:importExport on 2021-08-19 and will be removed 2021-11-15", DeprecationWarning)
8380
if body is None:
8481
raise TypeError("body cannot be null.")
8582
request_info = self.to_post_request_information(
@@ -102,7 +99,6 @@ def to_get_request_information(self,request_configuration: Optional[RequestConfi
10299
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
103100
Returns: RequestInformation
104101
"""
105-
warn("Private preview for Import Export APIs as of 2021-08/PrivatePreview:importExport on 2021-08-19 and will be removed 2021-11-15", DeprecationWarning)
106102
request_info = RequestInformation(Method.GET, self.url_template, self.path_parameters)
107103
request_info.configure(request_configuration)
108104
request_info.headers.try_add("Accept", "application/json")
@@ -115,7 +111,6 @@ def to_post_request_information(self,body: MailboxFolder, request_configuration:
115111
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
116112
Returns: RequestInformation
117113
"""
118-
warn("Private preview for Import Export APIs as of 2021-08/PrivatePreview:importExport on 2021-08-19 and will be removed 2021-11-15", DeprecationWarning)
119114
if body is None:
120115
raise TypeError("body cannot be null.")
121116
request_info = RequestInformation(Method.POST, self.url_template, self.path_parameters)
@@ -130,7 +125,6 @@ def with_url(self,raw_url: str) -> FoldersRequestBuilder:
130125
param raw_url: The raw URL to use for the request builder.
131126
Returns: FoldersRequestBuilder
132127
"""
133-
warn("Private preview for Import Export APIs as of 2021-08/PrivatePreview:importExport on 2021-08-19 and will be removed 2021-11-15", DeprecationWarning)
134128
if raw_url is None:
135129
raise TypeError("raw_url cannot be null.")
136130
return FoldersRequestBuilder(self.request_adapter, raw_url)

‎msgraph_beta/generated/admin/exchange/mailboxes/item/folders/item/child_folders/child_folders_request_builder.py‎

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ def by_mailbox_folder_id1(self,mailbox_folder_id1: str) -> MailboxFolderItemRequ
4040
param mailbox_folder_id1: The unique identifier of mailboxFolder
4141
Returns: MailboxFolderItemRequestBuilder
4242
"""
43-
warn("Private preview for Import Export APIs as of 2021-08/PrivatePreview:importExport on 2021-08-19 and will be removed 2021-11-15", DeprecationWarning)
4443
if mailbox_folder_id1 is None:
4544
raise TypeError("mailbox_folder_id1 cannot be null.")
4645
from .item.mailbox_folder_item_request_builder import MailboxFolderItemRequestBuilder
@@ -56,7 +55,6 @@ async def get(self,request_configuration: Optional[RequestConfiguration[ChildFol
5655
Returns: Optional[MailboxFolderCollectionResponse]
5756
Find more info here: https://learn.microsoft.com/graph/api/mailboxfolder-list-childfolders?view=graph-rest-beta
5857
"""
59-
warn("Private preview for Import Export APIs as of 2021-08/PrivatePreview:importExport on 2021-08-19 and will be removed 2021-11-15", DeprecationWarning)
6058
request_info = self.to_get_request_information(
6159
request_configuration
6260
)
@@ -78,7 +76,6 @@ async def post(self,body: MailboxFolder, request_configuration: Optional[Request
7876
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
7977
Returns: Optional[MailboxFolder]
8078
"""
81-
warn("Private preview for Import Export APIs as of 2021-08/PrivatePreview:importExport on 2021-08-19 and will be removed 2021-11-15", DeprecationWarning)
8279
if body is None:
8380
raise TypeError("body cannot be null.")
8481
request_info = self.to_post_request_information(
@@ -101,7 +98,6 @@ def to_get_request_information(self,request_configuration: Optional[RequestConfi
10198
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
10299
Returns: RequestInformation
103100
"""
104-
warn("Private preview for Import Export APIs as of 2021-08/PrivatePreview:importExport on 2021-08-19 and will be removed 2021-11-15", DeprecationWarning)
105101
request_info = RequestInformation(Method.GET, self.url_template, self.path_parameters)
106102
request_info.configure(request_configuration)
107103
request_info.headers.try_add("Accept", "application/json")
@@ -114,7 +110,6 @@ def to_post_request_information(self,body: MailboxFolder, request_configuration:
114110
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
115111
Returns: RequestInformation
116112
"""
117-
warn("Private preview for Import Export APIs as of 2021-08/PrivatePreview:importExport on 2021-08-19 and will be removed 2021-11-15", DeprecationWarning)
118113
if body is None:
119114
raise TypeError("body cannot be null.")
120115
request_info = RequestInformation(Method.POST, self.url_template, self.path_parameters)
@@ -129,7 +124,6 @@ def with_url(self,raw_url: str) -> ChildFoldersRequestBuilder:
129124
param raw_url: The raw URL to use for the request builder.
130125
Returns: ChildFoldersRequestBuilder
131126
"""
132-
warn("Private preview for Import Export APIs as of 2021-08/PrivatePreview:importExport on 2021-08-19 and will be removed 2021-11-15", DeprecationWarning)
133127
if raw_url is None:
134128
raise TypeError("raw_url cannot be null.")
135129
return ChildFoldersRequestBuilder(self.request_adapter, raw_url)

0 commit comments

Comments
 (0)