Skip to content

Commit 2f7ffe0

Browse files
authored
Merge pull request #1063 from microsoftgraph/v1.0/pipelinebuild/176715
Generated models and request builders
2 parents 76191a6 + 90c21f0 commit 2f7ffe0

File tree

13,439 files changed

+123078
-121067
lines changed

Some content is hidden

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

13,439 files changed

+123078
-121067
lines changed

msgraph/generated/admin/admin_request_builder.py

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
from __future__ import annotations
2+
from collections.abc import Callable
23
from dataclasses import dataclass, field
34
from kiota_abstractions.base_request_builder import BaseRequestBuilder
45
from kiota_abstractions.base_request_configuration import RequestConfiguration
@@ -9,7 +10,7 @@
910
from kiota_abstractions.request_information import RequestInformation
1011
from kiota_abstractions.request_option import RequestOption
1112
from kiota_abstractions.serialization import Parsable, ParsableFactory
12-
from typing import Any, Callable, Dict, List, Optional, TYPE_CHECKING, Union
13+
from typing import Any, Optional, TYPE_CHECKING, Union
1314
from warnings import warn
1415

1516
if TYPE_CHECKING:
@@ -26,7 +27,7 @@ class AdminRequestBuilder(BaseRequestBuilder):
2627
"""
2728
Provides operations to manage the admin singleton.
2829
"""
29-
def __init__(self,request_adapter: RequestAdapter, path_parameters: Union[str, Dict[str, Any]]) -> None:
30+
def __init__(self,request_adapter: RequestAdapter, path_parameters: Union[str, dict[str, Any]]) -> None:
3031
"""
3132
Instantiates a new AdminRequestBuilder and sets the default values.
3233
param path_parameters: The raw url or the url-template parameters for the request.
@@ -46,7 +47,7 @@ async def get(self,request_configuration: Optional[RequestConfiguration[AdminReq
4647
)
4748
from ..models.o_data_errors.o_data_error import ODataError
4849

49-
error_mapping: Dict[str, type[ParsableFactory]] = {
50+
error_mapping: dict[str, type[ParsableFactory]] = {
5051
"XXX": ODataError,
5152
}
5253
if not self.request_adapter:
@@ -69,7 +70,7 @@ async def patch(self,body: Admin, request_configuration: Optional[RequestConfigu
6970
)
7071
from ..models.o_data_errors.o_data_error import ODataError
7172

72-
error_mapping: Dict[str, type[ParsableFactory]] = {
73+
error_mapping: dict[str, type[ParsableFactory]] = {
7374
"XXX": ODataError,
7475
}
7576
if not self.request_adapter:
@@ -188,10 +189,10 @@ def get_query_parameter(self,original_name: str) -> str:
188189
return original_name
189190

190191
# Expand related entities
191-
expand: Optional[List[str]] = None
192+
expand: Optional[list[str]] = None
192193

193194
# Select properties to be returned
194-
select: Optional[List[str]] = None
195+
select: Optional[list[str]] = None
195196

196197

197198
@dataclass

msgraph/generated/admin/edge/edge_request_builder.py

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
from __future__ import annotations
2+
from collections.abc import Callable
23
from dataclasses import dataclass, field
34
from kiota_abstractions.base_request_builder import BaseRequestBuilder
45
from kiota_abstractions.base_request_configuration import RequestConfiguration
@@ -9,7 +10,7 @@
910
from kiota_abstractions.request_information import RequestInformation
1011
from kiota_abstractions.request_option import RequestOption
1112
from kiota_abstractions.serialization import Parsable, ParsableFactory
12-
from typing import Any, Callable, Dict, List, Optional, TYPE_CHECKING, Union
13+
from typing import Any, Optional, TYPE_CHECKING, Union
1314
from warnings import warn
1415

1516
if TYPE_CHECKING:
@@ -21,7 +22,7 @@ class EdgeRequestBuilder(BaseRequestBuilder):
2122
"""
2223
Provides operations to manage the edge property of the microsoft.graph.admin entity.
2324
"""
24-
def __init__(self,request_adapter: RequestAdapter, path_parameters: Union[str, Dict[str, Any]]) -> None:
25+
def __init__(self,request_adapter: RequestAdapter, path_parameters: Union[str, dict[str, Any]]) -> None:
2526
"""
2627
Instantiates a new EdgeRequestBuilder and sets the default values.
2728
param path_parameters: The raw url or the url-template parameters for the request.
@@ -41,7 +42,7 @@ async def delete(self,request_configuration: Optional[RequestConfiguration[Query
4142
)
4243
from ...models.o_data_errors.o_data_error import ODataError
4344

44-
error_mapping: Dict[str, type[ParsableFactory]] = {
45+
error_mapping: dict[str, type[ParsableFactory]] = {
4546
"XXX": ODataError,
4647
}
4748
if not self.request_adapter:
@@ -59,7 +60,7 @@ async def get(self,request_configuration: Optional[RequestConfiguration[EdgeRequ
5960
)
6061
from ...models.o_data_errors.o_data_error import ODataError
6162

62-
error_mapping: Dict[str, type[ParsableFactory]] = {
63+
error_mapping: dict[str, type[ParsableFactory]] = {
6364
"XXX": ODataError,
6465
}
6566
if not self.request_adapter:
@@ -82,7 +83,7 @@ async def patch(self,body: Edge, request_configuration: Optional[RequestConfigur
8283
)
8384
from ...models.o_data_errors.o_data_error import ODataError
8485

85-
error_mapping: Dict[str, type[ParsableFactory]] = {
86+
error_mapping: dict[str, type[ParsableFactory]] = {
8687
"XXX": ODataError,
8788
}
8889
if not self.request_adapter:
@@ -174,10 +175,10 @@ def get_query_parameter(self,original_name: str) -> str:
174175
return original_name
175176

176177
# Expand related entities
177-
expand: Optional[List[str]] = None
178+
expand: Optional[list[str]] = None
178179

179180
# Select properties to be returned
180-
select: Optional[List[str]] = None
181+
select: Optional[list[str]] = None
181182

182183

183184
@dataclass

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

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
from __future__ import annotations
2+
from collections.abc import Callable
23
from dataclasses import dataclass, field
34
from kiota_abstractions.base_request_builder import BaseRequestBuilder
45
from kiota_abstractions.base_request_configuration import RequestConfiguration
@@ -9,7 +10,7 @@
910
from kiota_abstractions.request_information import RequestInformation
1011
from kiota_abstractions.request_option import RequestOption
1112
from kiota_abstractions.serialization import Parsable, ParsableFactory
12-
from typing import Any, Callable, Dict, List, Optional, TYPE_CHECKING, Union
13+
from typing import Any, Optional, TYPE_CHECKING, Union
1314
from warnings import warn
1415

1516
if TYPE_CHECKING:
@@ -21,7 +22,7 @@ class InternetExplorerModeRequestBuilder(BaseRequestBuilder):
2122
"""
2223
Provides operations to manage the internetExplorerMode property of the microsoft.graph.edge entity.
2324
"""
24-
def __init__(self,request_adapter: RequestAdapter, path_parameters: Union[str, Dict[str, Any]]) -> None:
25+
def __init__(self,request_adapter: RequestAdapter, path_parameters: Union[str, dict[str, Any]]) -> None:
2526
"""
2627
Instantiates a new InternetExplorerModeRequestBuilder and sets the default values.
2728
param path_parameters: The raw url or the url-template parameters for the request.
@@ -41,7 +42,7 @@ async def delete(self,request_configuration: Optional[RequestConfiguration[Query
4142
)
4243
from ....models.o_data_errors.o_data_error import ODataError
4344

44-
error_mapping: Dict[str, type[ParsableFactory]] = {
45+
error_mapping: dict[str, type[ParsableFactory]] = {
4546
"XXX": ODataError,
4647
}
4748
if not self.request_adapter:
@@ -59,7 +60,7 @@ async def get(self,request_configuration: Optional[RequestConfiguration[Internet
5960
)
6061
from ....models.o_data_errors.o_data_error import ODataError
6162

62-
error_mapping: Dict[str, type[ParsableFactory]] = {
63+
error_mapping: dict[str, type[ParsableFactory]] = {
6364
"XXX": ODataError,
6465
}
6566
if not self.request_adapter:
@@ -82,7 +83,7 @@ async def patch(self,body: InternetExplorerMode, request_configuration: Optional
8283
)
8384
from ....models.o_data_errors.o_data_error import ODataError
8485

85-
error_mapping: Dict[str, type[ParsableFactory]] = {
86+
error_mapping: dict[str, type[ParsableFactory]] = {
8687
"XXX": ODataError,
8788
}
8889
if not self.request_adapter:
@@ -174,10 +175,10 @@ def get_query_parameter(self,original_name: str) -> str:
174175
return original_name
175176

176177
# Expand related entities
177-
expand: Optional[List[str]] = None
178+
expand: Optional[list[str]] = None
178179

179180
# Select properties to be returned
180-
select: Optional[List[str]] = None
181+
select: Optional[list[str]] = None
181182

182183

183184
@dataclass

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

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
from __future__ import annotations
2+
from collections.abc import Callable
23
from dataclasses import dataclass, field
34
from kiota_abstractions.base_request_builder import BaseRequestBuilder
45
from kiota_abstractions.base_request_configuration import RequestConfiguration
@@ -9,7 +10,7 @@
910
from kiota_abstractions.request_information import RequestInformation
1011
from kiota_abstractions.request_option import RequestOption
1112
from kiota_abstractions.serialization import Parsable, ParsableFactory
12-
from typing import Any, Callable, Dict, List, Optional, TYPE_CHECKING, Union
13+
from typing import Any, Optional, TYPE_CHECKING, Union
1314
from warnings import warn
1415

1516
if TYPE_CHECKING:
@@ -19,7 +20,7 @@ class CountRequestBuilder(BaseRequestBuilder):
1920
"""
2021
Provides operations to count the resources in the collection.
2122
"""
22-
def __init__(self,request_adapter: RequestAdapter, path_parameters: Union[str, Dict[str, Any]]) -> None:
23+
def __init__(self,request_adapter: RequestAdapter, path_parameters: Union[str, dict[str, Any]]) -> None:
2324
"""
2425
Instantiates a new CountRequestBuilder and sets the default values.
2526
param path_parameters: The raw url or the url-template parameters for the request.
@@ -39,7 +40,7 @@ async def get(self,request_configuration: Optional[RequestConfiguration[CountReq
3940
)
4041
from ......models.o_data_errors.o_data_error import ODataError
4142

42-
error_mapping: Dict[str, type[ParsableFactory]] = {
43+
error_mapping: dict[str, type[ParsableFactory]] = {
4344
"XXX": ODataError,
4445
}
4546
if not self.request_adapter:

msgraph/generated/admin/edge/internet_explorer_mode/site_lists/item/browser_site_list_item_request_builder.py

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
from __future__ import annotations
2+
from collections.abc import Callable
23
from dataclasses import dataclass, field
34
from kiota_abstractions.base_request_builder import BaseRequestBuilder
45
from kiota_abstractions.base_request_configuration import RequestConfiguration
@@ -9,7 +10,7 @@
910
from kiota_abstractions.request_information import RequestInformation
1011
from kiota_abstractions.request_option import RequestOption
1112
from kiota_abstractions.serialization import Parsable, ParsableFactory
12-
from typing import Any, Callable, Dict, List, Optional, TYPE_CHECKING, Union
13+
from typing import Any, Optional, TYPE_CHECKING, Union
1314
from warnings import warn
1415

1516
if TYPE_CHECKING:
@@ -23,7 +24,7 @@ class BrowserSiteListItemRequestBuilder(BaseRequestBuilder):
2324
"""
2425
Provides operations to manage the siteLists property of the microsoft.graph.internetExplorerMode entity.
2526
"""
26-
def __init__(self,request_adapter: RequestAdapter, path_parameters: Union[str, Dict[str, Any]]) -> None:
27+
def __init__(self,request_adapter: RequestAdapter, path_parameters: Union[str, dict[str, Any]]) -> None:
2728
"""
2829
Instantiates a new BrowserSiteListItemRequestBuilder and sets the default values.
2930
param path_parameters: The raw url or the url-template parameters for the request.
@@ -44,7 +45,7 @@ async def delete(self,request_configuration: Optional[RequestConfiguration[Query
4445
)
4546
from ......models.o_data_errors.o_data_error import ODataError
4647

47-
error_mapping: Dict[str, type[ParsableFactory]] = {
48+
error_mapping: dict[str, type[ParsableFactory]] = {
4849
"XXX": ODataError,
4950
}
5051
if not self.request_adapter:
@@ -63,7 +64,7 @@ async def get(self,request_configuration: Optional[RequestConfiguration[BrowserS
6364
)
6465
from ......models.o_data_errors.o_data_error import ODataError
6566

66-
error_mapping: Dict[str, type[ParsableFactory]] = {
67+
error_mapping: dict[str, type[ParsableFactory]] = {
6768
"XXX": ODataError,
6869
}
6970
if not self.request_adapter:
@@ -87,7 +88,7 @@ async def patch(self,body: BrowserSiteList, request_configuration: Optional[Requ
8788
)
8889
from ......models.o_data_errors.o_data_error import ODataError
8990

90-
error_mapping: Dict[str, type[ParsableFactory]] = {
91+
error_mapping: dict[str, type[ParsableFactory]] = {
9192
"XXX": ODataError,
9293
}
9394
if not self.request_adapter:
@@ -197,10 +198,10 @@ def get_query_parameter(self,original_name: str) -> str:
197198
return original_name
198199

199200
# Expand related entities
200-
expand: Optional[List[str]] = None
201+
expand: Optional[list[str]] = None
201202

202203
# Select properties to be returned
203-
select: Optional[List[str]] = None
204+
select: Optional[list[str]] = None
204205

205206

206207
@dataclass

msgraph/generated/admin/edge/internet_explorer_mode/site_lists/item/publish/publish_post_request_body.py

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
from __future__ import annotations
2+
from collections.abc import Callable
23
from dataclasses import dataclass, field
34
from kiota_abstractions.serialization import AdditionalDataHolder, Parsable, ParseNode, SerializationWriter
45
from kiota_abstractions.store import BackedModel, BackingStore, BackingStoreFactorySingleton
5-
from typing import Any, Callable, Dict, List, Optional, TYPE_CHECKING, Union
6+
from typing import Any, Optional, TYPE_CHECKING, Union
67

78
if TYPE_CHECKING:
89
from .......models.browser_shared_cookie import BrowserSharedCookie
@@ -14,13 +15,13 @@ class PublishPostRequestBody(AdditionalDataHolder, BackedModel, Parsable):
1415
backing_store: BackingStore = field(default_factory=BackingStoreFactorySingleton(backing_store_factory=None).backing_store_factory.create_backing_store, repr=False)
1516

1617
# Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
17-
additional_data: Dict[str, Any] = field(default_factory=dict)
18+
additional_data: dict[str, Any] = field(default_factory=dict)
1819
# The revision property
1920
revision: Optional[str] = None
2021
# The sharedCookies property
21-
shared_cookies: Optional[List[BrowserSharedCookie]] = None
22+
shared_cookies: Optional[list[BrowserSharedCookie]] = None
2223
# The sites property
23-
sites: Optional[List[BrowserSite]] = None
24+
sites: Optional[list[BrowserSite]] = None
2425

2526
@staticmethod
2627
def create_from_discriminator_value(parse_node: ParseNode) -> PublishPostRequestBody:
@@ -33,18 +34,18 @@ def create_from_discriminator_value(parse_node: ParseNode) -> PublishPostRequest
3334
raise TypeError("parse_node cannot be null.")
3435
return PublishPostRequestBody()
3536

36-
def get_field_deserializers(self,) -> Dict[str, Callable[[ParseNode], None]]:
37+
def get_field_deserializers(self,) -> dict[str, Callable[[ParseNode], None]]:
3738
"""
3839
The deserialization information for the current model
39-
Returns: Dict[str, Callable[[ParseNode], None]]
40+
Returns: dict[str, Callable[[ParseNode], None]]
4041
"""
4142
from .......models.browser_shared_cookie import BrowserSharedCookie
4243
from .......models.browser_site import BrowserSite
4344

4445
from .......models.browser_shared_cookie import BrowserSharedCookie
4546
from .......models.browser_site import BrowserSite
4647

47-
fields: Dict[str, Callable[[Any], None]] = {
48+
fields: dict[str, Callable[[Any], None]] = {
4849
"revision": lambda n : setattr(self, 'revision', n.get_str_value()),
4950
"sharedCookies": lambda n : setattr(self, 'shared_cookies', n.get_collection_of_object_values(BrowserSharedCookie)),
5051
"sites": lambda n : setattr(self, 'sites', n.get_collection_of_object_values(BrowserSite)),
@@ -59,9 +60,6 @@ def serialize(self,writer: SerializationWriter) -> None:
5960
"""
6061
if writer is None:
6162
raise TypeError("writer cannot be null.")
62-
from .......models.browser_shared_cookie import BrowserSharedCookie
63-
from .......models.browser_site import BrowserSite
64-
6563
writer.write_str_value("revision", self.revision)
6664
writer.write_collection_of_object_values("sharedCookies", self.shared_cookies)
6765
writer.write_collection_of_object_values("sites", self.sites)

msgraph/generated/admin/edge/internet_explorer_mode/site_lists/item/publish/publish_request_builder.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
from __future__ import annotations
2+
from collections.abc import Callable
23
from dataclasses import dataclass, field
34
from kiota_abstractions.base_request_builder import BaseRequestBuilder
45
from kiota_abstractions.base_request_configuration import RequestConfiguration
@@ -9,7 +10,7 @@
910
from kiota_abstractions.request_information import RequestInformation
1011
from kiota_abstractions.request_option import RequestOption
1112
from kiota_abstractions.serialization import Parsable, ParsableFactory
12-
from typing import Any, Callable, Dict, List, Optional, TYPE_CHECKING, Union
13+
from typing import Any, Optional, TYPE_CHECKING, Union
1314
from warnings import warn
1415

1516
if TYPE_CHECKING:
@@ -21,7 +22,7 @@ class PublishRequestBuilder(BaseRequestBuilder):
2122
"""
2223
Provides operations to call the publish method.
2324
"""
24-
def __init__(self,request_adapter: RequestAdapter, path_parameters: Union[str, Dict[str, Any]]) -> None:
25+
def __init__(self,request_adapter: RequestAdapter, path_parameters: Union[str, dict[str, Any]]) -> None:
2526
"""
2627
Instantiates a new PublishRequestBuilder and sets the default values.
2728
param path_parameters: The raw url or the url-template parameters for the request.
@@ -44,7 +45,7 @@ async def post(self,body: PublishPostRequestBody, request_configuration: Optiona
4445
)
4546
from .......models.o_data_errors.o_data_error import ODataError
4647

47-
error_mapping: Dict[str, type[ParsableFactory]] = {
48+
error_mapping: dict[str, type[ParsableFactory]] = {
4849
"XXX": ODataError,
4950
}
5051
if not self.request_adapter:

0 commit comments

Comments
 (0)