Skip to content

Commit 51e3905

Browse files
authored
Merge pull request #633 from microsoftgraph/v1.0/pipelinebuild/140091
Generated models and request builders
2 parents 80bf660 + 644ba3a commit 51e3905

File tree

7,943 files changed

+168533
-32887
lines changed

Some content is hidden

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

7,943 files changed

+168533
-32887
lines changed

msgraph/generated/admin/admin_request_builder.py

Lines changed: 27 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
from __future__ import annotations
22
from dataclasses import dataclass, field
33
from kiota_abstractions.base_request_builder import BaseRequestBuilder
4-
from kiota_abstractions.base_request_configuration import RequestConfiguration
54
from kiota_abstractions.get_path_parameters import get_path_parameters
65
from kiota_abstractions.method import Method
76
from kiota_abstractions.request_adapter import RequestAdapter
@@ -32,7 +31,7 @@ def __init__(self,request_adapter: RequestAdapter, path_parameters: Union[str, D
3231
"""
3332
super().__init__(request_adapter, "{+baseurl}/admin{?%24expand,%24select}", path_parameters)
3433

35-
async def get(self,request_configuration: Optional[RequestConfiguration] = None) -> Optional[Admin]:
34+
async def get(self,request_configuration: Optional[AdminRequestBuilderGetRequestConfiguration] = None) -> Optional[Admin]:
3635
"""
3736
Get admin
3837
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
@@ -52,7 +51,7 @@ async def get(self,request_configuration: Optional[RequestConfiguration] = None)
5251

5352
return await self.request_adapter.send_async(request_info, Admin, error_mapping)
5453

55-
async def patch(self,body: Optional[Admin] = None, request_configuration: Optional[RequestConfiguration] = None) -> Optional[Admin]:
54+
async def patch(self,body: Optional[Admin] = None, request_configuration: Optional[AdminRequestBuilderPatchRequestConfiguration] = None) -> Optional[Admin]:
5655
"""
5756
Update admin
5857
param body: The request body
@@ -75,7 +74,7 @@ async def patch(self,body: Optional[Admin] = None, request_configuration: Option
7574

7675
return await self.request_adapter.send_async(request_info, Admin, error_mapping)
7776

78-
def to_get_request_information(self,request_configuration: Optional[RequestConfiguration] = None) -> RequestInformation:
77+
def to_get_request_information(self,request_configuration: Optional[AdminRequestBuilderGetRequestConfiguration] = None) -> RequestInformation:
7978
"""
8079
Get admin
8180
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
@@ -86,7 +85,7 @@ def to_get_request_information(self,request_configuration: Optional[RequestConfi
8685
request_info.headers.try_add("Accept", "application/json")
8786
return request_info
8887

89-
def to_patch_request_information(self,body: Optional[Admin] = None, request_configuration: Optional[RequestConfiguration] = None) -> RequestInformation:
88+
def to_patch_request_information(self,body: Optional[Admin] = None, request_configuration: Optional[AdminRequestBuilderPatchRequestConfiguration] = None) -> RequestInformation:
9089
"""
9190
Update admin
9291
param body: The request body
@@ -182,4 +181,27 @@ def get_query_parameter(self,original_name: Optional[str] = None) -> str:
182181
select: Optional[List[str]] = None
183182

184183

184+
from kiota_abstractions.base_request_configuration import BaseRequestConfiguration
185+
186+
@dataclass
187+
class AdminRequestBuilderGetRequestConfiguration(BaseRequestConfiguration):
188+
from kiota_abstractions.base_request_configuration import BaseRequestConfiguration
189+
190+
"""
191+
Configuration for the request such as headers, query parameters, and middleware options.
192+
"""
193+
# Request query parameters
194+
query_parameters: Optional[AdminRequestBuilder.AdminRequestBuilderGetQueryParameters] = None
195+
196+
197+
from kiota_abstractions.base_request_configuration import BaseRequestConfiguration
198+
199+
@dataclass
200+
class AdminRequestBuilderPatchRequestConfiguration(BaseRequestConfiguration):
201+
from kiota_abstractions.base_request_configuration import BaseRequestConfiguration
202+
203+
"""
204+
Configuration for the request such as headers, query parameters, and middleware options.
205+
"""
206+
185207

msgraph/generated/admin/edge/edge_request_builder.py

Lines changed: 39 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
from __future__ import annotations
22
from dataclasses import dataclass, field
33
from kiota_abstractions.base_request_builder import BaseRequestBuilder
4-
from kiota_abstractions.base_request_configuration import RequestConfiguration
54
from kiota_abstractions.get_path_parameters import get_path_parameters
65
from kiota_abstractions.method import Method
76
from kiota_abstractions.request_adapter import RequestAdapter
@@ -28,7 +27,7 @@ def __init__(self,request_adapter: RequestAdapter, path_parameters: Union[str, D
2827
"""
2928
super().__init__(request_adapter, "{+baseurl}/admin/edge{?%24expand,%24select}", path_parameters)
3029

31-
async def delete(self,request_configuration: Optional[RequestConfiguration] = None) -> None:
30+
async def delete(self,request_configuration: Optional[EdgeRequestBuilderDeleteRequestConfiguration] = None) -> None:
3231
"""
3332
Delete navigation property edge for admin
3433
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
@@ -46,7 +45,7 @@ async def delete(self,request_configuration: Optional[RequestConfiguration] = No
4645
raise Exception("Http core is null")
4746
return await self.request_adapter.send_no_response_content_async(request_info, error_mapping)
4847

49-
async def get(self,request_configuration: Optional[RequestConfiguration] = None) -> Optional[Edge]:
48+
async def get(self,request_configuration: Optional[EdgeRequestBuilderGetRequestConfiguration] = None) -> Optional[Edge]:
5049
"""
5150
A container for Microsoft Edge resources. Read-only.
5251
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
@@ -66,7 +65,7 @@ async def get(self,request_configuration: Optional[RequestConfiguration] = None)
6665

6766
return await self.request_adapter.send_async(request_info, Edge, error_mapping)
6867

69-
async def patch(self,body: Optional[Edge] = None, request_configuration: Optional[RequestConfiguration] = None) -> Optional[Edge]:
68+
async def patch(self,body: Optional[Edge] = None, request_configuration: Optional[EdgeRequestBuilderPatchRequestConfiguration] = None) -> Optional[Edge]:
7069
"""
7170
Update the navigation property edge in admin
7271
param body: The request body
@@ -89,7 +88,7 @@ async def patch(self,body: Optional[Edge] = None, request_configuration: Optiona
8988

9089
return await self.request_adapter.send_async(request_info, Edge, error_mapping)
9190

92-
def to_delete_request_information(self,request_configuration: Optional[RequestConfiguration] = None) -> RequestInformation:
91+
def to_delete_request_information(self,request_configuration: Optional[EdgeRequestBuilderDeleteRequestConfiguration] = None) -> RequestInformation:
9392
"""
9493
Delete navigation property edge for admin
9594
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
@@ -100,7 +99,7 @@ def to_delete_request_information(self,request_configuration: Optional[RequestCo
10099
request_info.headers.try_add("Accept", "application/json")
101100
return request_info
102101

103-
def to_get_request_information(self,request_configuration: Optional[RequestConfiguration] = None) -> RequestInformation:
102+
def to_get_request_information(self,request_configuration: Optional[EdgeRequestBuilderGetRequestConfiguration] = None) -> RequestInformation:
104103
"""
105104
A container for Microsoft Edge resources. Read-only.
106105
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
@@ -111,7 +110,7 @@ def to_get_request_information(self,request_configuration: Optional[RequestConfi
111110
request_info.headers.try_add("Accept", "application/json")
112111
return request_info
113112

114-
def to_patch_request_information(self,body: Optional[Edge] = None, request_configuration: Optional[RequestConfiguration] = None) -> RequestInformation:
113+
def to_patch_request_information(self,body: Optional[Edge] = None, request_configuration: Optional[EdgeRequestBuilderPatchRequestConfiguration] = None) -> RequestInformation:
115114
"""
116115
Update the navigation property edge in admin
117116
param body: The request body
@@ -145,6 +144,16 @@ def internet_explorer_mode(self) -> InternetExplorerModeRequestBuilder:
145144

146145
return InternetExplorerModeRequestBuilder(self.request_adapter, self.path_parameters)
147146

147+
from kiota_abstractions.base_request_configuration import BaseRequestConfiguration
148+
149+
@dataclass
150+
class EdgeRequestBuilderDeleteRequestConfiguration(BaseRequestConfiguration):
151+
from kiota_abstractions.base_request_configuration import BaseRequestConfiguration
152+
153+
"""
154+
Configuration for the request such as headers, query parameters, and middleware options.
155+
"""
156+
148157
@dataclass
149158
class EdgeRequestBuilderGetQueryParameters():
150159
"""
@@ -171,4 +180,27 @@ def get_query_parameter(self,original_name: Optional[str] = None) -> str:
171180
select: Optional[List[str]] = None
172181

173182

183+
from kiota_abstractions.base_request_configuration import BaseRequestConfiguration
184+
185+
@dataclass
186+
class EdgeRequestBuilderGetRequestConfiguration(BaseRequestConfiguration):
187+
from kiota_abstractions.base_request_configuration import BaseRequestConfiguration
188+
189+
"""
190+
Configuration for the request such as headers, query parameters, and middleware options.
191+
"""
192+
# Request query parameters
193+
query_parameters: Optional[EdgeRequestBuilder.EdgeRequestBuilderGetQueryParameters] = None
194+
195+
196+
from kiota_abstractions.base_request_configuration import BaseRequestConfiguration
197+
198+
@dataclass
199+
class EdgeRequestBuilderPatchRequestConfiguration(BaseRequestConfiguration):
200+
from kiota_abstractions.base_request_configuration import BaseRequestConfiguration
201+
202+
"""
203+
Configuration for the request such as headers, query parameters, and middleware options.
204+
"""
205+
174206

msgraph/generated/admin/edge/internet_explorer_mode/internet_explorer_mode_request_builder.py

Lines changed: 39 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
from __future__ import annotations
22
from dataclasses import dataclass, field
33
from kiota_abstractions.base_request_builder import BaseRequestBuilder
4-
from kiota_abstractions.base_request_configuration import RequestConfiguration
54
from kiota_abstractions.get_path_parameters import get_path_parameters
65
from kiota_abstractions.method import Method
76
from kiota_abstractions.request_adapter import RequestAdapter
@@ -28,7 +27,7 @@ def __init__(self,request_adapter: RequestAdapter, path_parameters: Union[str, D
2827
"""
2928
super().__init__(request_adapter, "{+baseurl}/admin/edge/internetExplorerMode{?%24expand,%24select}", path_parameters)
3029

31-
async def delete(self,request_configuration: Optional[RequestConfiguration] = None) -> None:
30+
async def delete(self,request_configuration: Optional[InternetExplorerModeRequestBuilderDeleteRequestConfiguration] = None) -> None:
3231
"""
3332
Delete navigation property internetExplorerMode for admin
3433
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
@@ -46,7 +45,7 @@ async def delete(self,request_configuration: Optional[RequestConfiguration] = No
4645
raise Exception("Http core is null")
4746
return await self.request_adapter.send_no_response_content_async(request_info, error_mapping)
4847

49-
async def get(self,request_configuration: Optional[RequestConfiguration] = None) -> Optional[InternetExplorerMode]:
48+
async def get(self,request_configuration: Optional[InternetExplorerModeRequestBuilderGetRequestConfiguration] = None) -> Optional[InternetExplorerMode]:
5049
"""
5150
A container for Internet Explorer mode resources.
5251
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
@@ -66,7 +65,7 @@ async def get(self,request_configuration: Optional[RequestConfiguration] = None)
6665

6766
return await self.request_adapter.send_async(request_info, InternetExplorerMode, error_mapping)
6867

69-
async def patch(self,body: Optional[InternetExplorerMode] = None, request_configuration: Optional[RequestConfiguration] = None) -> Optional[InternetExplorerMode]:
68+
async def patch(self,body: Optional[InternetExplorerMode] = None, request_configuration: Optional[InternetExplorerModeRequestBuilderPatchRequestConfiguration] = None) -> Optional[InternetExplorerMode]:
7069
"""
7170
Update the navigation property internetExplorerMode in admin
7271
param body: The request body
@@ -89,7 +88,7 @@ async def patch(self,body: Optional[InternetExplorerMode] = None, request_config
8988

9089
return await self.request_adapter.send_async(request_info, InternetExplorerMode, error_mapping)
9190

92-
def to_delete_request_information(self,request_configuration: Optional[RequestConfiguration] = None) -> RequestInformation:
91+
def to_delete_request_information(self,request_configuration: Optional[InternetExplorerModeRequestBuilderDeleteRequestConfiguration] = None) -> RequestInformation:
9392
"""
9493
Delete navigation property internetExplorerMode for admin
9594
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
@@ -100,7 +99,7 @@ def to_delete_request_information(self,request_configuration: Optional[RequestCo
10099
request_info.headers.try_add("Accept", "application/json")
101100
return request_info
102101

103-
def to_get_request_information(self,request_configuration: Optional[RequestConfiguration] = None) -> RequestInformation:
102+
def to_get_request_information(self,request_configuration: Optional[InternetExplorerModeRequestBuilderGetRequestConfiguration] = None) -> RequestInformation:
104103
"""
105104
A container for Internet Explorer mode resources.
106105
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
@@ -111,7 +110,7 @@ def to_get_request_information(self,request_configuration: Optional[RequestConfi
111110
request_info.headers.try_add("Accept", "application/json")
112111
return request_info
113112

114-
def to_patch_request_information(self,body: Optional[InternetExplorerMode] = None, request_configuration: Optional[RequestConfiguration] = None) -> RequestInformation:
113+
def to_patch_request_information(self,body: Optional[InternetExplorerMode] = None, request_configuration: Optional[InternetExplorerModeRequestBuilderPatchRequestConfiguration] = None) -> RequestInformation:
115114
"""
116115
Update the navigation property internetExplorerMode in admin
117116
param body: The request body
@@ -145,6 +144,16 @@ def site_lists(self) -> SiteListsRequestBuilder:
145144

146145
return SiteListsRequestBuilder(self.request_adapter, self.path_parameters)
147146

147+
from kiota_abstractions.base_request_configuration import BaseRequestConfiguration
148+
149+
@dataclass
150+
class InternetExplorerModeRequestBuilderDeleteRequestConfiguration(BaseRequestConfiguration):
151+
from kiota_abstractions.base_request_configuration import BaseRequestConfiguration
152+
153+
"""
154+
Configuration for the request such as headers, query parameters, and middleware options.
155+
"""
156+
148157
@dataclass
149158
class InternetExplorerModeRequestBuilderGetQueryParameters():
150159
"""
@@ -171,4 +180,27 @@ def get_query_parameter(self,original_name: Optional[str] = None) -> str:
171180
select: Optional[List[str]] = None
172181

173182

183+
from kiota_abstractions.base_request_configuration import BaseRequestConfiguration
184+
185+
@dataclass
186+
class InternetExplorerModeRequestBuilderGetRequestConfiguration(BaseRequestConfiguration):
187+
from kiota_abstractions.base_request_configuration import BaseRequestConfiguration
188+
189+
"""
190+
Configuration for the request such as headers, query parameters, and middleware options.
191+
"""
192+
# Request query parameters
193+
query_parameters: Optional[InternetExplorerModeRequestBuilder.InternetExplorerModeRequestBuilderGetQueryParameters] = None
194+
195+
196+
from kiota_abstractions.base_request_configuration import BaseRequestConfiguration
197+
198+
@dataclass
199+
class InternetExplorerModeRequestBuilderPatchRequestConfiguration(BaseRequestConfiguration):
200+
from kiota_abstractions.base_request_configuration import BaseRequestConfiguration
201+
202+
"""
203+
Configuration for the request such as headers, query parameters, and middleware options.
204+
"""
205+
174206

msgraph/generated/admin/edge/internet_explorer_mode/site_lists/count/count_request_builder.py

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
from __future__ import annotations
22
from dataclasses import dataclass, field
33
from kiota_abstractions.base_request_builder import BaseRequestBuilder
4-
from kiota_abstractions.base_request_configuration import RequestConfiguration
54
from kiota_abstractions.get_path_parameters import get_path_parameters
65
from kiota_abstractions.method import Method
76
from kiota_abstractions.request_adapter import RequestAdapter
@@ -26,7 +25,7 @@ def __init__(self,request_adapter: RequestAdapter, path_parameters: Union[str, D
2625
"""
2726
super().__init__(request_adapter, "{+baseurl}/admin/edge/internetExplorerMode/siteLists/$count{?%24filter,%24search}", path_parameters)
2827

29-
async def get(self,request_configuration: Optional[RequestConfiguration] = None) -> Optional[int]:
28+
async def get(self,request_configuration: Optional[CountRequestBuilderGetRequestConfiguration] = None) -> Optional[int]:
3029
"""
3130
Get the number of the resource
3231
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
@@ -44,7 +43,7 @@ async def get(self,request_configuration: Optional[RequestConfiguration] = None)
4443
raise Exception("Http core is null")
4544
return await self.request_adapter.send_primitive_async(request_info, "int", error_mapping)
4645

47-
def to_get_request_information(self,request_configuration: Optional[RequestConfiguration] = None) -> RequestInformation:
46+
def to_get_request_information(self,request_configuration: Optional[CountRequestBuilderGetRequestConfiguration] = None) -> RequestInformation:
4847
"""
4948
Get the number of the resource
5049
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
@@ -91,4 +90,17 @@ def get_query_parameter(self,original_name: Optional[str] = None) -> str:
9190
search: Optional[str] = None
9291

9392

93+
from kiota_abstractions.base_request_configuration import BaseRequestConfiguration
94+
95+
@dataclass
96+
class CountRequestBuilderGetRequestConfiguration(BaseRequestConfiguration):
97+
from kiota_abstractions.base_request_configuration import BaseRequestConfiguration
98+
99+
"""
100+
Configuration for the request such as headers, query parameters, and middleware options.
101+
"""
102+
# Request query parameters
103+
query_parameters: Optional[CountRequestBuilder.CountRequestBuilderGetQueryParameters] = None
104+
105+
94106

0 commit comments

Comments
 (0)