msgraph-sdk 1.24.0__py3-none-any.whl → 1.26.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (69) hide show
  1. msgraph/_version.py +1 -1
  2. msgraph/generated/applications/item/owners/ref/ref_request_builder.py +2 -2
  3. msgraph/generated/chats/item/members/item/conversation_member_item_request_builder.py +4 -4
  4. msgraph/generated/device_app_management/device_app_management_request_builder.py +2 -2
  5. msgraph/generated/device_app_management/managed_app_policies/item/managed_app_policy_item_request_builder.py +4 -4
  6. msgraph/generated/device_app_management/managed_app_policies/managed_app_policies_request_builder.py +4 -4
  7. msgraph/generated/device_app_management/managed_app_registrations/item/managed_app_registration_item_request_builder.py +4 -4
  8. msgraph/generated/device_app_management/managed_app_registrations/managed_app_registrations_request_builder.py +4 -4
  9. msgraph/generated/device_app_management/managed_e_books/item/assignments/assignments_request_builder.py +4 -4
  10. msgraph/generated/device_app_management/managed_e_books/item/assignments/item/managed_e_book_assignment_item_request_builder.py +4 -4
  11. msgraph/generated/device_app_management/managed_e_books/managed_e_books_request_builder.py +4 -4
  12. msgraph/generated/device_app_management/mobile_app_configurations/item/managed_device_mobile_app_configuration_item_request_builder.py +4 -4
  13. msgraph/generated/device_app_management/mobile_apps/item/mobile_app_item_request_builder.py +10 -10
  14. msgraph/generated/device_app_management/mobile_apps/mobile_apps_request_builder.py +7 -7
  15. msgraph/generated/device_management/device_compliance_policies/device_compliance_policies_request_builder.py +7 -7
  16. msgraph/generated/device_management/device_compliance_policies/item/device_compliance_policy_item_request_builder.py +7 -7
  17. msgraph/generated/device_management/device_configurations/device_configurations_request_builder.py +7 -7
  18. msgraph/generated/device_management/device_configurations/item/device_configuration_item_request_builder.py +10 -10
  19. msgraph/generated/device_management/device_enrollment_configurations/device_enrollment_configurations_request_builder.py +7 -7
  20. msgraph/generated/device_management/device_enrollment_configurations/item/device_enrollment_configuration_item_request_builder.py +10 -10
  21. msgraph/generated/device_management/device_management_request_builder.py +2 -2
  22. msgraph/generated/device_management/role_definitions/item/role_definition_item_request_builder.py +6 -6
  23. msgraph/generated/device_management/role_definitions/role_definitions_request_builder.py +7 -7
  24. msgraph/generated/drives/item/items/item/workbook/names/item/range/range_request_builder.py +3 -3
  25. msgraph/generated/drives/item/items/item/workbook/tables/add/add_request_builder.py +3 -3
  26. msgraph/generated/drives/item/items/item/workbook/worksheets/item/names/item/range/range_request_builder.py +3 -3
  27. msgraph/generated/drives/item/items/item/workbook/worksheets/item/tables/add/add_request_builder.py +3 -3
  28. msgraph/generated/groups/groups_request_builder.py +3 -3
  29. msgraph/generated/groups/item/conversations/conversations_request_builder.py +3 -3
  30. msgraph/generated/groups/item/conversations/item/conversation_item_request_builder.py +5 -5
  31. msgraph/generated/groups/item/threads/item/conversation_thread_item_request_builder.py +5 -5
  32. msgraph/generated/groups/item/threads/item/posts/posts_request_builder.py +4 -4
  33. msgraph/generated/identity/conditional_access/named_locations/item/named_location_item_request_builder.py +7 -7
  34. msgraph/generated/identity_governance/entitlement_management/access_packages/item/access_package_item_request_builder.py +4 -4
  35. msgraph/generated/identity_governance/entitlement_management/catalogs/item/custom_workflow_extensions/item/custom_callout_extension_item_request_builder.py +6 -6
  36. msgraph/generated/kiota-dom-export.txt +135 -0
  37. msgraph/generated/kiota-lock.json +2 -2
  38. msgraph/generated/models/application.py +1 -1
  39. msgraph/generated/models/cloud_pc_provisioning_policy.py +1 -1
  40. msgraph/generated/models/cloud_pc_provisioning_policy_autopatch.py +1 -1
  41. msgraph/generated/models/conditional_access_applications.py +1 -1
  42. msgraph/generated/organization/item/organization_item_request_builder.py +4 -4
  43. msgraph/generated/sites/item/lists/item/list_item_request_builder.py +4 -4
  44. msgraph/generated/sites/sites_request_builder.py +4 -4
  45. msgraph/generated/solutions/backup_restore/protection_units/graph_drive_protection_unit/count/count_request_builder.py +104 -0
  46. msgraph/generated/solutions/backup_restore/protection_units/graph_drive_protection_unit/graph_drive_protection_unit_request_builder.py +148 -0
  47. msgraph/generated/solutions/backup_restore/protection_units/graph_mailbox_protection_unit/count/count_request_builder.py +104 -0
  48. msgraph/generated/solutions/backup_restore/protection_units/graph_mailbox_protection_unit/graph_mailbox_protection_unit_request_builder.py +148 -0
  49. msgraph/generated/solutions/backup_restore/protection_units/graph_site_protection_unit/count/count_request_builder.py +104 -0
  50. msgraph/generated/solutions/backup_restore/protection_units/graph_site_protection_unit/graph_site_protection_unit_request_builder.py +148 -0
  51. msgraph/generated/solutions/backup_restore/protection_units/item/graph_drive_protection_unit/graph_drive_protection_unit_request_builder.py +108 -0
  52. msgraph/generated/solutions/backup_restore/protection_units/item/graph_mailbox_protection_unit/graph_mailbox_protection_unit_request_builder.py +108 -0
  53. msgraph/generated/solutions/backup_restore/protection_units/item/graph_site_protection_unit/graph_site_protection_unit_request_builder.py +108 -0
  54. msgraph/generated/solutions/backup_restore/protection_units/item/protection_unit_base_item_request_builder.py +30 -0
  55. msgraph/generated/solutions/backup_restore/protection_units/protection_units_request_builder.py +30 -0
  56. msgraph/generated/teams/item/channels/item/members/item/conversation_member_item_request_builder.py +3 -3
  57. msgraph/generated/teams/item/channels/item/members/members_request_builder.py +3 -3
  58. msgraph/generated/teams/item/channels/item/messages/item/replies/replies_request_builder.py +3 -3
  59. msgraph/generated/teams/item/channels/item/messages/messages_request_builder.py +3 -3
  60. msgraph/generated/users/item/presence/presence_request_builder.py +4 -4
  61. msgraph/generated/users/item/retry_service_provisioning/retry_service_provisioning_request_builder.py +2 -2
  62. msgraph/generated/users/item/revoke_sign_in_sessions/revoke_sign_in_sessions_request_builder.py +2 -2
  63. msgraph/generated/users/item/user_item_request_builder.py +2 -2
  64. msgraph/generated/users/users_request_builder.py +2 -2
  65. msgraph/generated/users_with_user_principal_name/users_with_user_principal_name_request_builder.py +2 -2
  66. {msgraph_sdk-1.24.0.dist-info → msgraph_sdk-1.26.0.dist-info}/METADATA +1 -1
  67. {msgraph_sdk-1.24.0.dist-info → msgraph_sdk-1.26.0.dist-info}/RECORD +69 -60
  68. {msgraph_sdk-1.24.0.dist-info → msgraph_sdk-1.26.0.dist-info}/WHEEL +1 -1
  69. {msgraph_sdk-1.24.0.dist-info → msgraph_sdk-1.26.0.dist-info}/licenses/LICENSE +0 -0
@@ -0,0 +1,108 @@
1
+ from __future__ import annotations
2
+ from collections.abc import Callable
3
+ from dataclasses import dataclass, field
4
+ from kiota_abstractions.base_request_builder import BaseRequestBuilder
5
+ from kiota_abstractions.base_request_configuration import RequestConfiguration
6
+ from kiota_abstractions.default_query_parameters import QueryParameters
7
+ from kiota_abstractions.get_path_parameters import get_path_parameters
8
+ from kiota_abstractions.method import Method
9
+ from kiota_abstractions.request_adapter import RequestAdapter
10
+ from kiota_abstractions.request_information import RequestInformation
11
+ from kiota_abstractions.request_option import RequestOption
12
+ from kiota_abstractions.serialization import Parsable, ParsableFactory
13
+ from typing import Any, Optional, TYPE_CHECKING, Union
14
+ from warnings import warn
15
+
16
+ if TYPE_CHECKING:
17
+ from ......models.drive_protection_unit import DriveProtectionUnit
18
+ from ......models.o_data_errors.o_data_error import ODataError
19
+
20
+ class GraphDriveProtectionUnitRequestBuilder(BaseRequestBuilder):
21
+ """
22
+ Casts the previous resource to driveProtectionUnit.
23
+ """
24
+ def __init__(self,request_adapter: RequestAdapter, path_parameters: Union[str, dict[str, Any]]) -> None:
25
+ """
26
+ Instantiates a new GraphDriveProtectionUnitRequestBuilder and sets the default values.
27
+ param path_parameters: The raw url or the url-template parameters for the request.
28
+ param request_adapter: The request adapter to use to execute the requests.
29
+ Returns: None
30
+ """
31
+ super().__init__(request_adapter, "{+baseurl}/solutions/backupRestore/protectionUnits/{protectionUnitBase%2Did}/graph.driveProtectionUnit{?%24expand,%24select}", path_parameters)
32
+
33
+ async def get(self,request_configuration: Optional[RequestConfiguration[GraphDriveProtectionUnitRequestBuilderGetQueryParameters]] = None) -> Optional[DriveProtectionUnit]:
34
+ """
35
+ Get a list of the driveProtectionUnit objects that are associated with a oneDriveForBusinessProtectionPolicy.
36
+ param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
37
+ Returns: Optional[DriveProtectionUnit]
38
+ Find more info here: https://learn.microsoft.com/graph/api/backuprestoreroot-list-driveprotectionunits?view=graph-rest-1.0
39
+ """
40
+ request_info = self.to_get_request_information(
41
+ request_configuration
42
+ )
43
+ from ......models.o_data_errors.o_data_error import ODataError
44
+
45
+ error_mapping: dict[str, type[ParsableFactory]] = {
46
+ "XXX": ODataError,
47
+ }
48
+ if not self.request_adapter:
49
+ raise Exception("Http core is null")
50
+ from ......models.drive_protection_unit import DriveProtectionUnit
51
+
52
+ return await self.request_adapter.send_async(request_info, DriveProtectionUnit, error_mapping)
53
+
54
+ def to_get_request_information(self,request_configuration: Optional[RequestConfiguration[GraphDriveProtectionUnitRequestBuilderGetQueryParameters]] = None) -> RequestInformation:
55
+ """
56
+ Get a list of the driveProtectionUnit objects that are associated with a oneDriveForBusinessProtectionPolicy.
57
+ param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
58
+ Returns: RequestInformation
59
+ """
60
+ request_info = RequestInformation(Method.GET, self.url_template, self.path_parameters)
61
+ request_info.configure(request_configuration)
62
+ request_info.headers.try_add("Accept", "application/json")
63
+ return request_info
64
+
65
+ def with_url(self,raw_url: str) -> GraphDriveProtectionUnitRequestBuilder:
66
+ """
67
+ Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
68
+ param raw_url: The raw URL to use for the request builder.
69
+ Returns: GraphDriveProtectionUnitRequestBuilder
70
+ """
71
+ if raw_url is None:
72
+ raise TypeError("raw_url cannot be null.")
73
+ return GraphDriveProtectionUnitRequestBuilder(self.request_adapter, raw_url)
74
+
75
+ @dataclass
76
+ class GraphDriveProtectionUnitRequestBuilderGetQueryParameters():
77
+ """
78
+ Get a list of the driveProtectionUnit objects that are associated with a oneDriveForBusinessProtectionPolicy.
79
+ """
80
+ def get_query_parameter(self,original_name: str) -> str:
81
+ """
82
+ Maps the query parameters names to their encoded names for the URI template parsing.
83
+ param original_name: The original query parameter name in the class.
84
+ Returns: str
85
+ """
86
+ if original_name is None:
87
+ raise TypeError("original_name cannot be null.")
88
+ if original_name == "expand":
89
+ return "%24expand"
90
+ if original_name == "select":
91
+ return "%24select"
92
+ return original_name
93
+
94
+ # Expand related entities
95
+ expand: Optional[list[str]] = None
96
+
97
+ # Select properties to be returned
98
+ select: Optional[list[str]] = None
99
+
100
+
101
+ @dataclass
102
+ class GraphDriveProtectionUnitRequestBuilderGetRequestConfiguration(RequestConfiguration[GraphDriveProtectionUnitRequestBuilderGetQueryParameters]):
103
+ """
104
+ Configuration for the request such as headers, query parameters, and middleware options.
105
+ """
106
+ warn("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.", DeprecationWarning)
107
+
108
+
@@ -0,0 +1,108 @@
1
+ from __future__ import annotations
2
+ from collections.abc import Callable
3
+ from dataclasses import dataclass, field
4
+ from kiota_abstractions.base_request_builder import BaseRequestBuilder
5
+ from kiota_abstractions.base_request_configuration import RequestConfiguration
6
+ from kiota_abstractions.default_query_parameters import QueryParameters
7
+ from kiota_abstractions.get_path_parameters import get_path_parameters
8
+ from kiota_abstractions.method import Method
9
+ from kiota_abstractions.request_adapter import RequestAdapter
10
+ from kiota_abstractions.request_information import RequestInformation
11
+ from kiota_abstractions.request_option import RequestOption
12
+ from kiota_abstractions.serialization import Parsable, ParsableFactory
13
+ from typing import Any, Optional, TYPE_CHECKING, Union
14
+ from warnings import warn
15
+
16
+ if TYPE_CHECKING:
17
+ from ......models.mailbox_protection_unit import MailboxProtectionUnit
18
+ from ......models.o_data_errors.o_data_error import ODataError
19
+
20
+ class GraphMailboxProtectionUnitRequestBuilder(BaseRequestBuilder):
21
+ """
22
+ Casts the previous resource to mailboxProtectionUnit.
23
+ """
24
+ def __init__(self,request_adapter: RequestAdapter, path_parameters: Union[str, dict[str, Any]]) -> None:
25
+ """
26
+ Instantiates a new GraphMailboxProtectionUnitRequestBuilder and sets the default values.
27
+ param path_parameters: The raw url or the url-template parameters for the request.
28
+ param request_adapter: The request adapter to use to execute the requests.
29
+ Returns: None
30
+ """
31
+ super().__init__(request_adapter, "{+baseurl}/solutions/backupRestore/protectionUnits/{protectionUnitBase%2Did}/graph.mailboxProtectionUnit{?%24expand,%24select}", path_parameters)
32
+
33
+ async def get(self,request_configuration: Optional[RequestConfiguration[GraphMailboxProtectionUnitRequestBuilderGetQueryParameters]] = None) -> Optional[MailboxProtectionUnit]:
34
+ """
35
+ Get a list of mailboxProtectionUnit objects.
36
+ param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
37
+ Returns: Optional[MailboxProtectionUnit]
38
+ Find more info here: https://learn.microsoft.com/graph/api/backuprestoreroot-list-mailboxprotectionunits?view=graph-rest-1.0
39
+ """
40
+ request_info = self.to_get_request_information(
41
+ request_configuration
42
+ )
43
+ from ......models.o_data_errors.o_data_error import ODataError
44
+
45
+ error_mapping: dict[str, type[ParsableFactory]] = {
46
+ "XXX": ODataError,
47
+ }
48
+ if not self.request_adapter:
49
+ raise Exception("Http core is null")
50
+ from ......models.mailbox_protection_unit import MailboxProtectionUnit
51
+
52
+ return await self.request_adapter.send_async(request_info, MailboxProtectionUnit, error_mapping)
53
+
54
+ def to_get_request_information(self,request_configuration: Optional[RequestConfiguration[GraphMailboxProtectionUnitRequestBuilderGetQueryParameters]] = None) -> RequestInformation:
55
+ """
56
+ Get a list of mailboxProtectionUnit objects.
57
+ param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
58
+ Returns: RequestInformation
59
+ """
60
+ request_info = RequestInformation(Method.GET, self.url_template, self.path_parameters)
61
+ request_info.configure(request_configuration)
62
+ request_info.headers.try_add("Accept", "application/json")
63
+ return request_info
64
+
65
+ def with_url(self,raw_url: str) -> GraphMailboxProtectionUnitRequestBuilder:
66
+ """
67
+ Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
68
+ param raw_url: The raw URL to use for the request builder.
69
+ Returns: GraphMailboxProtectionUnitRequestBuilder
70
+ """
71
+ if raw_url is None:
72
+ raise TypeError("raw_url cannot be null.")
73
+ return GraphMailboxProtectionUnitRequestBuilder(self.request_adapter, raw_url)
74
+
75
+ @dataclass
76
+ class GraphMailboxProtectionUnitRequestBuilderGetQueryParameters():
77
+ """
78
+ Get a list of mailboxProtectionUnit objects.
79
+ """
80
+ def get_query_parameter(self,original_name: str) -> str:
81
+ """
82
+ Maps the query parameters names to their encoded names for the URI template parsing.
83
+ param original_name: The original query parameter name in the class.
84
+ Returns: str
85
+ """
86
+ if original_name is None:
87
+ raise TypeError("original_name cannot be null.")
88
+ if original_name == "expand":
89
+ return "%24expand"
90
+ if original_name == "select":
91
+ return "%24select"
92
+ return original_name
93
+
94
+ # Expand related entities
95
+ expand: Optional[list[str]] = None
96
+
97
+ # Select properties to be returned
98
+ select: Optional[list[str]] = None
99
+
100
+
101
+ @dataclass
102
+ class GraphMailboxProtectionUnitRequestBuilderGetRequestConfiguration(RequestConfiguration[GraphMailboxProtectionUnitRequestBuilderGetQueryParameters]):
103
+ """
104
+ Configuration for the request such as headers, query parameters, and middleware options.
105
+ """
106
+ warn("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.", DeprecationWarning)
107
+
108
+
@@ -0,0 +1,108 @@
1
+ from __future__ import annotations
2
+ from collections.abc import Callable
3
+ from dataclasses import dataclass, field
4
+ from kiota_abstractions.base_request_builder import BaseRequestBuilder
5
+ from kiota_abstractions.base_request_configuration import RequestConfiguration
6
+ from kiota_abstractions.default_query_parameters import QueryParameters
7
+ from kiota_abstractions.get_path_parameters import get_path_parameters
8
+ from kiota_abstractions.method import Method
9
+ from kiota_abstractions.request_adapter import RequestAdapter
10
+ from kiota_abstractions.request_information import RequestInformation
11
+ from kiota_abstractions.request_option import RequestOption
12
+ from kiota_abstractions.serialization import Parsable, ParsableFactory
13
+ from typing import Any, Optional, TYPE_CHECKING, Union
14
+ from warnings import warn
15
+
16
+ if TYPE_CHECKING:
17
+ from ......models.o_data_errors.o_data_error import ODataError
18
+ from ......models.site_protection_unit import SiteProtectionUnit
19
+
20
+ class GraphSiteProtectionUnitRequestBuilder(BaseRequestBuilder):
21
+ """
22
+ Casts the previous resource to siteProtectionUnit.
23
+ """
24
+ def __init__(self,request_adapter: RequestAdapter, path_parameters: Union[str, dict[str, Any]]) -> None:
25
+ """
26
+ Instantiates a new GraphSiteProtectionUnitRequestBuilder and sets the default values.
27
+ param path_parameters: The raw url or the url-template parameters for the request.
28
+ param request_adapter: The request adapter to use to execute the requests.
29
+ Returns: None
30
+ """
31
+ super().__init__(request_adapter, "{+baseurl}/solutions/backupRestore/protectionUnits/{protectionUnitBase%2Did}/graph.siteProtectionUnit{?%24expand,%24select}", path_parameters)
32
+
33
+ async def get(self,request_configuration: Optional[RequestConfiguration[GraphSiteProtectionUnitRequestBuilderGetQueryParameters]] = None) -> Optional[SiteProtectionUnit]:
34
+ """
35
+ Get a list of the siteProtectionUnit objects that are associated with a sharePointProtectionPolicy.
36
+ param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
37
+ Returns: Optional[SiteProtectionUnit]
38
+ Find more info here: https://learn.microsoft.com/graph/api/backuprestoreroot-list-siteprotectionunits?view=graph-rest-1.0
39
+ """
40
+ request_info = self.to_get_request_information(
41
+ request_configuration
42
+ )
43
+ from ......models.o_data_errors.o_data_error import ODataError
44
+
45
+ error_mapping: dict[str, type[ParsableFactory]] = {
46
+ "XXX": ODataError,
47
+ }
48
+ if not self.request_adapter:
49
+ raise Exception("Http core is null")
50
+ from ......models.site_protection_unit import SiteProtectionUnit
51
+
52
+ return await self.request_adapter.send_async(request_info, SiteProtectionUnit, error_mapping)
53
+
54
+ def to_get_request_information(self,request_configuration: Optional[RequestConfiguration[GraphSiteProtectionUnitRequestBuilderGetQueryParameters]] = None) -> RequestInformation:
55
+ """
56
+ Get a list of the siteProtectionUnit objects that are associated with a sharePointProtectionPolicy.
57
+ param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
58
+ Returns: RequestInformation
59
+ """
60
+ request_info = RequestInformation(Method.GET, self.url_template, self.path_parameters)
61
+ request_info.configure(request_configuration)
62
+ request_info.headers.try_add("Accept", "application/json")
63
+ return request_info
64
+
65
+ def with_url(self,raw_url: str) -> GraphSiteProtectionUnitRequestBuilder:
66
+ """
67
+ Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
68
+ param raw_url: The raw URL to use for the request builder.
69
+ Returns: GraphSiteProtectionUnitRequestBuilder
70
+ """
71
+ if raw_url is None:
72
+ raise TypeError("raw_url cannot be null.")
73
+ return GraphSiteProtectionUnitRequestBuilder(self.request_adapter, raw_url)
74
+
75
+ @dataclass
76
+ class GraphSiteProtectionUnitRequestBuilderGetQueryParameters():
77
+ """
78
+ Get a list of the siteProtectionUnit objects that are associated with a sharePointProtectionPolicy.
79
+ """
80
+ def get_query_parameter(self,original_name: str) -> str:
81
+ """
82
+ Maps the query parameters names to their encoded names for the URI template parsing.
83
+ param original_name: The original query parameter name in the class.
84
+ Returns: str
85
+ """
86
+ if original_name is None:
87
+ raise TypeError("original_name cannot be null.")
88
+ if original_name == "expand":
89
+ return "%24expand"
90
+ if original_name == "select":
91
+ return "%24select"
92
+ return original_name
93
+
94
+ # Expand related entities
95
+ expand: Optional[list[str]] = None
96
+
97
+ # Select properties to be returned
98
+ select: Optional[list[str]] = None
99
+
100
+
101
+ @dataclass
102
+ class GraphSiteProtectionUnitRequestBuilderGetRequestConfiguration(RequestConfiguration[GraphSiteProtectionUnitRequestBuilderGetQueryParameters]):
103
+ """
104
+ Configuration for the request such as headers, query parameters, and middleware options.
105
+ """
106
+ warn("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.", DeprecationWarning)
107
+
108
+
@@ -16,6 +16,9 @@ from warnings import warn
16
16
  if TYPE_CHECKING:
17
17
  from .....models.o_data_errors.o_data_error import ODataError
18
18
  from .....models.protection_unit_base import ProtectionUnitBase
19
+ from .graph_drive_protection_unit.graph_drive_protection_unit_request_builder import GraphDriveProtectionUnitRequestBuilder
20
+ from .graph_mailbox_protection_unit.graph_mailbox_protection_unit_request_builder import GraphMailboxProtectionUnitRequestBuilder
21
+ from .graph_site_protection_unit.graph_site_protection_unit_request_builder import GraphSiteProtectionUnitRequestBuilder
19
22
 
20
23
  class ProtectionUnitBaseItemRequestBuilder(BaseRequestBuilder):
21
24
  """
@@ -72,6 +75,33 @@ class ProtectionUnitBaseItemRequestBuilder(BaseRequestBuilder):
72
75
  raise TypeError("raw_url cannot be null.")
73
76
  return ProtectionUnitBaseItemRequestBuilder(self.request_adapter, raw_url)
74
77
 
78
+ @property
79
+ def graph_drive_protection_unit(self) -> GraphDriveProtectionUnitRequestBuilder:
80
+ """
81
+ Casts the previous resource to driveProtectionUnit.
82
+ """
83
+ from .graph_drive_protection_unit.graph_drive_protection_unit_request_builder import GraphDriveProtectionUnitRequestBuilder
84
+
85
+ return GraphDriveProtectionUnitRequestBuilder(self.request_adapter, self.path_parameters)
86
+
87
+ @property
88
+ def graph_mailbox_protection_unit(self) -> GraphMailboxProtectionUnitRequestBuilder:
89
+ """
90
+ Casts the previous resource to mailboxProtectionUnit.
91
+ """
92
+ from .graph_mailbox_protection_unit.graph_mailbox_protection_unit_request_builder import GraphMailboxProtectionUnitRequestBuilder
93
+
94
+ return GraphMailboxProtectionUnitRequestBuilder(self.request_adapter, self.path_parameters)
95
+
96
+ @property
97
+ def graph_site_protection_unit(self) -> GraphSiteProtectionUnitRequestBuilder:
98
+ """
99
+ Casts the previous resource to siteProtectionUnit.
100
+ """
101
+ from .graph_site_protection_unit.graph_site_protection_unit_request_builder import GraphSiteProtectionUnitRequestBuilder
102
+
103
+ return GraphSiteProtectionUnitRequestBuilder(self.request_adapter, self.path_parameters)
104
+
75
105
  @dataclass
76
106
  class ProtectionUnitBaseItemRequestBuilderGetQueryParameters():
77
107
  """
@@ -17,6 +17,9 @@ if TYPE_CHECKING:
17
17
  from ....models.o_data_errors.o_data_error import ODataError
18
18
  from ....models.protection_unit_base_collection_response import ProtectionUnitBaseCollectionResponse
19
19
  from .count.count_request_builder import CountRequestBuilder
20
+ from .graph_drive_protection_unit.graph_drive_protection_unit_request_builder import GraphDriveProtectionUnitRequestBuilder
21
+ from .graph_mailbox_protection_unit.graph_mailbox_protection_unit_request_builder import GraphMailboxProtectionUnitRequestBuilder
22
+ from .graph_site_protection_unit.graph_site_protection_unit_request_builder import GraphSiteProtectionUnitRequestBuilder
20
23
  from .item.protection_unit_base_item_request_builder import ProtectionUnitBaseItemRequestBuilder
21
24
 
22
25
  class ProtectionUnitsRequestBuilder(BaseRequestBuilder):
@@ -96,6 +99,33 @@ class ProtectionUnitsRequestBuilder(BaseRequestBuilder):
96
99
 
97
100
  return CountRequestBuilder(self.request_adapter, self.path_parameters)
98
101
 
102
+ @property
103
+ def graph_drive_protection_unit(self) -> GraphDriveProtectionUnitRequestBuilder:
104
+ """
105
+ Casts the previous resource to driveProtectionUnit.
106
+ """
107
+ from .graph_drive_protection_unit.graph_drive_protection_unit_request_builder import GraphDriveProtectionUnitRequestBuilder
108
+
109
+ return GraphDriveProtectionUnitRequestBuilder(self.request_adapter, self.path_parameters)
110
+
111
+ @property
112
+ def graph_mailbox_protection_unit(self) -> GraphMailboxProtectionUnitRequestBuilder:
113
+ """
114
+ Casts the previous resource to mailboxProtectionUnit.
115
+ """
116
+ from .graph_mailbox_protection_unit.graph_mailbox_protection_unit_request_builder import GraphMailboxProtectionUnitRequestBuilder
117
+
118
+ return GraphMailboxProtectionUnitRequestBuilder(self.request_adapter, self.path_parameters)
119
+
120
+ @property
121
+ def graph_site_protection_unit(self) -> GraphSiteProtectionUnitRequestBuilder:
122
+ """
123
+ Casts the previous resource to siteProtectionUnit.
124
+ """
125
+ from .graph_site_protection_unit.graph_site_protection_unit_request_builder import GraphSiteProtectionUnitRequestBuilder
126
+
127
+ return GraphSiteProtectionUnitRequestBuilder(self.request_adapter, self.path_parameters)
128
+
99
129
  @dataclass
100
130
  class ProtectionUnitsRequestBuilderGetQueryParameters():
101
131
  """
@@ -32,10 +32,10 @@ class ConversationMemberItemRequestBuilder(BaseRequestBuilder):
32
32
 
33
33
  async def delete(self,request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> None:
34
34
  """
35
- Delete a conversationMember from a channel.
35
+ Delete a conversationMember from a channel. This operation is allowed only for channels with a membershipType value of private or shared.
36
36
  param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
37
37
  Returns: None
38
- Find more info here: https://learn.microsoft.com/graph/api/conversationmember-delete?view=graph-rest-1.0
38
+ Find more info here: https://learn.microsoft.com/graph/api/channel-delete-members?view=graph-rest-1.0
39
39
  """
40
40
  request_info = self.to_delete_request_information(
41
41
  request_configuration
@@ -96,7 +96,7 @@ class ConversationMemberItemRequestBuilder(BaseRequestBuilder):
96
96
 
97
97
  def to_delete_request_information(self,request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> RequestInformation:
98
98
  """
99
- Delete a conversationMember from a channel.
99
+ Delete a conversationMember from a channel. This operation is allowed only for channels with a membershipType value of private or shared.
100
100
  param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
101
101
  Returns: RequestInformation
102
102
  """
@@ -72,11 +72,11 @@ class MembersRequestBuilder(BaseRequestBuilder):
72
72
 
73
73
  async def post(self,body: ConversationMember, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> Optional[ConversationMember]:
74
74
  """
75
- Add a conversationMember to a channel. This operation is allowed only for channels with a membershipType value of private or shared.
75
+ Add a conversationMember to a channel.
76
76
  param body: The request body
77
77
  param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
78
78
  Returns: Optional[ConversationMember]
79
- Find more info here: https://learn.microsoft.com/graph/api/channel-post-members?view=graph-rest-1.0
79
+ Find more info here: https://learn.microsoft.com/graph/api/conversationmember-add?view=graph-rest-1.0
80
80
  """
81
81
  if body is None:
82
82
  raise TypeError("body cannot be null.")
@@ -107,7 +107,7 @@ class MembersRequestBuilder(BaseRequestBuilder):
107
107
 
108
108
  def to_post_request_information(self,body: ConversationMember, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> RequestInformation:
109
109
  """
110
- Add a conversationMember to a channel. This operation is allowed only for channels with a membershipType value of private or shared.
110
+ Add a conversationMember to a channel.
111
111
  param body: The request body
112
112
  param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
113
113
  Returns: RequestInformation
@@ -71,11 +71,11 @@ class RepliesRequestBuilder(BaseRequestBuilder):
71
71
 
72
72
  async def post(self,body: ChatMessage, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> Optional[ChatMessage]:
73
73
  """
74
- Create a new reply to a chatMessage in a specified channel.
74
+ Send a new reply to a chatMessage in a specified channel.
75
75
  param body: The request body
76
76
  param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
77
77
  Returns: Optional[ChatMessage]
78
- Find more info here: https://learn.microsoft.com/graph/api/channel-post-messagereply?view=graph-rest-1.0
78
+ Find more info here: https://learn.microsoft.com/graph/api/chatmessage-post-replies?view=graph-rest-1.0
79
79
  """
80
80
  if body is None:
81
81
  raise TypeError("body cannot be null.")
@@ -106,7 +106,7 @@ class RepliesRequestBuilder(BaseRequestBuilder):
106
106
 
107
107
  def to_post_request_information(self,body: ChatMessage, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> RequestInformation:
108
108
  """
109
- Create a new reply to a chatMessage in a specified channel.
109
+ Send a new reply to a chatMessage in a specified channel.
110
110
  param body: The request body
111
111
  param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
112
112
  Returns: RequestInformation
@@ -71,11 +71,11 @@ class MessagesRequestBuilder(BaseRequestBuilder):
71
71
 
72
72
  async def post(self,body: ChatMessage, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> Optional[ChatMessage]:
73
73
  """
74
- Send a new chatMessage in the specified channel.
74
+ Send a new chatMessage in the specified channel or a chat.
75
75
  param body: The request body
76
76
  param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
77
77
  Returns: Optional[ChatMessage]
78
- Find more info here: https://learn.microsoft.com/graph/api/channel-post-messages?view=graph-rest-1.0
78
+ Find more info here: https://learn.microsoft.com/graph/api/chatmessage-post?view=graph-rest-1.0
79
79
  """
80
80
  if body is None:
81
81
  raise TypeError("body cannot be null.")
@@ -106,7 +106,7 @@ class MessagesRequestBuilder(BaseRequestBuilder):
106
106
 
107
107
  def to_post_request_information(self,body: ChatMessage, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> RequestInformation:
108
108
  """
109
- Send a new chatMessage in the specified channel.
109
+ Send a new chatMessage in the specified channel or a chat.
110
110
  param body: The request body
111
111
  param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
112
112
  Returns: RequestInformation
@@ -55,10 +55,10 @@ class PresenceRequestBuilder(BaseRequestBuilder):
55
55
 
56
56
  async def get(self,request_configuration: Optional[RequestConfiguration[PresenceRequestBuilderGetQueryParameters]] = None) -> Optional[Presence]:
57
57
  """
58
- Set a presence status message for a user. An optional expiration date and time can be supplied.
58
+ Get a user's presence information.
59
59
  param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
60
60
  Returns: Optional[Presence]
61
- Find more info here: https://learn.microsoft.com/graph/api/presence-setstatusmessage?view=graph-rest-1.0
61
+ Find more info here: https://learn.microsoft.com/graph/api/presence-get?view=graph-rest-1.0
62
62
  """
63
63
  request_info = self.to_get_request_information(
64
64
  request_configuration
@@ -110,7 +110,7 @@ class PresenceRequestBuilder(BaseRequestBuilder):
110
110
 
111
111
  def to_get_request_information(self,request_configuration: Optional[RequestConfiguration[PresenceRequestBuilderGetQueryParameters]] = None) -> RequestInformation:
112
112
  """
113
- Set a presence status message for a user. An optional expiration date and time can be supplied.
113
+ Get a user's presence information.
114
114
  param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
115
115
  Returns: RequestInformation
116
116
  """
@@ -199,7 +199,7 @@ class PresenceRequestBuilder(BaseRequestBuilder):
199
199
  @dataclass
200
200
  class PresenceRequestBuilderGetQueryParameters():
201
201
  """
202
- Set a presence status message for a user. An optional expiration date and time can be supplied.
202
+ Get a user's presence information.
203
203
  """
204
204
  def get_query_parameter(self,original_name: str) -> str:
205
205
  """
@@ -31,7 +31,7 @@ class RetryServiceProvisioningRequestBuilder(BaseRequestBuilder):
31
31
 
32
32
  async def post(self,request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> None:
33
33
  """
34
- Retry the user service provisioning.
34
+ Retry the provisioning of a user object in Microsoft Entra ID.
35
35
  param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
36
36
  Returns: None
37
37
  Find more info here: https://learn.microsoft.com/graph/api/user-retryserviceprovisioning?view=graph-rest-1.0
@@ -50,7 +50,7 @@ class RetryServiceProvisioningRequestBuilder(BaseRequestBuilder):
50
50
 
51
51
  def to_post_request_information(self,request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> RequestInformation:
52
52
  """
53
- Retry the user service provisioning.
53
+ Retry the provisioning of a user object in Microsoft Entra ID.
54
54
  param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
55
55
  Returns: RequestInformation
56
56
  """
@@ -32,7 +32,7 @@ class RevokeSignInSessionsRequestBuilder(BaseRequestBuilder):
32
32
 
33
33
  async def post(self,request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> Optional[RevokeSignInSessionsPostResponse]:
34
34
  """
35
- Invalidates all the refresh tokens issued to applications for a user (as well as session cookies in a user's browser), by resetting the signInSessionsValidFromDateTime user property to the current date-time. Typically, this operation is performed (by the user or an administrator) if the user has a lost or stolen device. This operation prevents access to the organization's data through applications on the device by requiring the user to sign in again to all applications that they have previously consented to, independent of device.
35
+ Invalidates all the refresh tokens issued to applications for a user (and session cookies in a user's browser), by resetting the signInSessionsValidFromDateTime user property to the current date-time. Typically, this operation is performed (by the user or an administrator) if the user has a lost or stolen device. This operation prevents access to the organization's data through applications on the device by requiring the user to sign in again to all applications that they consented to previously, independent of device.
36
36
  param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
37
37
  Returns: Optional[RevokeSignInSessionsPostResponse]
38
38
  Find more info here: https://learn.microsoft.com/graph/api/user-revokesigninsessions?view=graph-rest-1.0
@@ -53,7 +53,7 @@ class RevokeSignInSessionsRequestBuilder(BaseRequestBuilder):
53
53
 
54
54
  def to_post_request_information(self,request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> RequestInformation:
55
55
  """
56
- Invalidates all the refresh tokens issued to applications for a user (as well as session cookies in a user's browser), by resetting the signInSessionsValidFromDateTime user property to the current date-time. Typically, this operation is performed (by the user or an administrator) if the user has a lost or stolen device. This operation prevents access to the organization's data through applications on the device by requiring the user to sign in again to all applications that they have previously consented to, independent of device.
56
+ Invalidates all the refresh tokens issued to applications for a user (and session cookies in a user's browser), by resetting the signInSessionsValidFromDateTime user property to the current date-time. Typically, this operation is performed (by the user or an administrator) if the user has a lost or stolen device. This operation prevents access to the organization's data through applications on the device by requiring the user to sign in again to all applications that they consented to previously, independent of device.
57
57
  param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
58
58
  Returns: RequestInformation
59
59
  """
@@ -145,7 +145,7 @@ class UserItemRequestBuilder(BaseRequestBuilder):
145
145
  Read properties and relationships of the user object.
146
146
  param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
147
147
  Returns: Optional[User]
148
- Find more info here: https://learn.microsoft.com/graph/api/intune-mam-user-get?view=graph-rest-1.0
148
+ Find more info here: https://learn.microsoft.com/graph/api/intune-onboarding-user-get?view=graph-rest-1.0
149
149
  """
150
150
  request_info = self.to_get_request_information(
151
151
  request_configuration
@@ -167,7 +167,7 @@ class UserItemRequestBuilder(BaseRequestBuilder):
167
167
  param body: The request body
168
168
  param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
169
169
  Returns: Optional[User]
170
- Find more info here: https://learn.microsoft.com/graph/api/intune-mam-user-update?view=graph-rest-1.0
170
+ Find more info here: https://learn.microsoft.com/graph/api/user-update?view=graph-rest-1.0
171
171
  """
172
172
  if body is None:
173
173
  raise TypeError("body cannot be null.")
@@ -56,7 +56,7 @@ class UsersRequestBuilder(BaseRequestBuilder):
56
56
  List properties and relationships of the user objects.
57
57
  param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
58
58
  Returns: Optional[UserCollectionResponse]
59
- Find more info here: https://learn.microsoft.com/graph/api/intune-onboarding-user-list?view=graph-rest-1.0
59
+ Find more info here: https://learn.microsoft.com/graph/api/intune-mam-user-list?view=graph-rest-1.0
60
60
  """
61
61
  request_info = self.to_get_request_information(
62
62
  request_configuration
@@ -78,7 +78,7 @@ class UsersRequestBuilder(BaseRequestBuilder):
78
78
  param body: The request body
79
79
  param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
80
80
  Returns: Optional[User]
81
- Find more info here: https://learn.microsoft.com/graph/api/intune-mam-user-create?view=graph-rest-1.0
81
+ Find more info here: https://learn.microsoft.com/graph/api/intune-onboarding-user-create?view=graph-rest-1.0
82
82
  """
83
83
  if body is None:
84
84
  raise TypeError("body cannot be null.")
@@ -57,7 +57,7 @@ class UsersWithUserPrincipalNameRequestBuilder(BaseRequestBuilder):
57
57
  Read properties and relationships of the user object.
58
58
  param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
59
59
  Returns: Optional[User]
60
- Find more info here: https://learn.microsoft.com/graph/api/intune-mam-user-get?view=graph-rest-1.0
60
+ Find more info here: https://learn.microsoft.com/graph/api/intune-onboarding-user-get?view=graph-rest-1.0
61
61
  """
62
62
  request_info = self.to_get_request_information(
63
63
  request_configuration
@@ -79,7 +79,7 @@ class UsersWithUserPrincipalNameRequestBuilder(BaseRequestBuilder):
79
79
  param body: The request body
80
80
  param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
81
81
  Returns: Optional[User]
82
- Find more info here: https://learn.microsoft.com/graph/api/intune-mam-user-update?view=graph-rest-1.0
82
+ Find more info here: https://learn.microsoft.com/graph/api/user-update?view=graph-rest-1.0
83
83
  """
84
84
  if body is None:
85
85
  raise TypeError("body cannot be null.")