msgraph-sdk 1.49.0__py3-none-any.whl → 1.50.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 (176) hide show
  1. msgraph/_version.py +1 -1
  2. msgraph/generated/chats/item/chat_item_request_builder.py +10 -0
  3. msgraph/generated/chats/item/remove_all_access_for_user/remove_all_access_for_user_post_request_body.py +57 -0
  4. msgraph/generated/chats/item/remove_all_access_for_user/remove_all_access_for_user_request_builder.py +87 -0
  5. msgraph/generated/drives/item/items/item/retention_label/retention_label_request_builder.py +4 -3
  6. msgraph/generated/kiota-dom-export.txt +1830 -6
  7. msgraph/generated/kiota-lock.json +1 -1
  8. msgraph/generated/models/assigned_place_mode.py +61 -0
  9. msgraph/generated/models/base_map_feature.py +104 -0
  10. msgraph/generated/models/building.py +67 -0
  11. msgraph/generated/models/building_collection_response.py +58 -0
  12. msgraph/generated/models/building_map.py +71 -0
  13. msgraph/generated/models/channel.py +1 -1
  14. msgraph/generated/models/communications_guest_identity.py +4 -0
  15. msgraph/generated/models/copilot_report_root.py +53 -0
  16. msgraph/generated/models/desk.py +71 -0
  17. msgraph/generated/models/desk_collection_response.py +58 -0
  18. msgraph/generated/models/drop_in_place_mode.py +53 -0
  19. msgraph/generated/models/education_assignment.py +1 -1
  20. msgraph/generated/models/education_assignment_defaults.py +1 -1
  21. msgraph/generated/models/entity.py +177 -0
  22. msgraph/generated/models/external_connectors/property_.py +1 -1
  23. msgraph/generated/models/file_storage_container.py +7 -0
  24. msgraph/generated/models/fixture_map.py +57 -0
  25. msgraph/generated/models/fixture_map_collection_response.py +58 -0
  26. msgraph/generated/models/floor.py +57 -0
  27. msgraph/generated/models/floor_collection_response.py +58 -0
  28. msgraph/generated/models/footprint_map.py +53 -0
  29. msgraph/generated/models/footprint_map_collection_response.py +58 -0
  30. msgraph/generated/models/identity_governance/user_inactivity_trigger.py +57 -0
  31. msgraph/generated/models/identity_governance/workflow_execution_trigger.py +7 -0
  32. msgraph/generated/models/level_map.py +78 -0
  33. msgraph/generated/models/level_map_collection_response.py +58 -0
  34. msgraph/generated/models/mailbox_details.py +58 -0
  35. msgraph/generated/models/place.py +51 -0
  36. msgraph/generated/models/place_mode.py +80 -0
  37. msgraph/generated/models/planner_plan_container.py +1 -1
  38. msgraph/generated/models/reservable_place_mode.py +53 -0
  39. msgraph/generated/models/resource_link.py +69 -0
  40. msgraph/generated/models/resource_link_type.py +6 -0
  41. msgraph/generated/models/restore_session_base.py +1 -1
  42. msgraph/generated/models/risk_detection.py +1 -1
  43. msgraph/generated/models/risk_service_principal_activity.py +1 -1
  44. msgraph/generated/models/risk_user_activity.py +1 -1
  45. msgraph/generated/models/risky_service_principal.py +1 -1
  46. msgraph/generated/models/risky_user.py +1 -1
  47. msgraph/generated/models/room.py +0 -12
  48. msgraph/generated/models/room_list.py +7 -0
  49. msgraph/generated/models/search_request.py +1 -1
  50. msgraph/generated/models/section.py +53 -0
  51. msgraph/generated/models/section_collection_response.py +58 -0
  52. msgraph/generated/models/section_map.py +57 -0
  53. msgraph/generated/models/section_map_collection_response.py +58 -0
  54. msgraph/generated/models/security/account.py +72 -0
  55. msgraph/generated/models/security/action.py +11 -0
  56. msgraph/generated/models/security/ai_agent_evidence.py +72 -0
  57. msgraph/generated/models/security/ai_agent_platform.py +9 -0
  58. msgraph/generated/models/security/alert_evidence.py +7 -0
  59. msgraph/generated/models/security/ediscovery_export_operation.py +1 -1
  60. msgraph/generated/models/security/identity_accounts.py +92 -0
  61. msgraph/generated/models/security/identity_accounts_collection_response.py +58 -0
  62. msgraph/generated/models/security/identity_container.py +7 -0
  63. msgraph/generated/models/security/identity_provider.py +8 -0
  64. msgraph/generated/models/security/invoke_action_result.py +76 -0
  65. msgraph/generated/models/security/user.py +61 -0
  66. msgraph/generated/models/service_principal_risk_detection.py +2 -2
  67. msgraph/generated/models/share_point_migration_container_info.py +62 -0
  68. msgraph/generated/models/share_point_migration_event.py +127 -0
  69. msgraph/generated/models/share_point_migration_event_collection_response.py +58 -0
  70. msgraph/generated/models/share_point_migration_finish_manifest_file_upload_event.py +57 -0
  71. msgraph/generated/models/share_point_migration_job.py +67 -0
  72. msgraph/generated/models/share_point_migration_job_cancelled_event.py +61 -0
  73. msgraph/generated/models/share_point_migration_job_collection_response.py +58 -0
  74. msgraph/generated/models/share_point_migration_job_deleted_event.py +53 -0
  75. msgraph/generated/models/share_point_migration_job_error_event.py +86 -0
  76. msgraph/generated/models/share_point_migration_job_error_level.py +9 -0
  77. msgraph/generated/models/share_point_migration_job_postponed_event.py +70 -0
  78. msgraph/generated/models/share_point_migration_job_progress_event.py +121 -0
  79. msgraph/generated/models/share_point_migration_job_queued_event.py +53 -0
  80. msgraph/generated/models/share_point_migration_job_start_event.py +61 -0
  81. msgraph/generated/models/share_point_migration_object_type.py +14 -0
  82. msgraph/generated/models/sign_in.py +1 -1
  83. msgraph/generated/models/subject_rights_request_history.py +1 -1
  84. msgraph/generated/models/subject_rights_request_stage_detail.py +1 -1
  85. msgraph/generated/models/unit_map.py +57 -0
  86. msgraph/generated/models/unit_map_collection_response.py +58 -0
  87. msgraph/generated/models/workforce_integration.py +1 -1
  88. msgraph/generated/models/workspace.py +76 -0
  89. msgraph/generated/models/workspace_collection_response.py +58 -0
  90. msgraph/generated/places/graph_building/count/count_request_builder.py +104 -0
  91. msgraph/generated/places/graph_building/graph_building_request_builder.py +147 -0
  92. msgraph/generated/places/graph_desk/count/count_request_builder.py +104 -0
  93. msgraph/generated/places/graph_desk/graph_desk_request_builder.py +147 -0
  94. msgraph/generated/places/graph_floor/count/count_request_builder.py +104 -0
  95. msgraph/generated/places/graph_floor/graph_floor_request_builder.py +147 -0
  96. msgraph/generated/places/graph_section/count/count_request_builder.py +104 -0
  97. msgraph/generated/places/graph_section/graph_section_request_builder.py +147 -0
  98. msgraph/generated/places/graph_workspace/count/count_request_builder.py +104 -0
  99. msgraph/generated/places/graph_workspace/graph_workspace_request_builder.py +147 -0
  100. msgraph/generated/places/item/descendants/descendants_get_response.py +58 -0
  101. msgraph/generated/places/item/descendants/descendants_request_builder.py +137 -0
  102. msgraph/generated/places/item/graph_building/check_ins/check_ins_request_builder.py +208 -0
  103. msgraph/generated/places/item/graph_building/check_ins/count/count_request_builder.py +104 -0
  104. msgraph/generated/places/item/graph_building/check_ins/item/check_in_claim_calendar_event_item_request_builder.py +188 -0
  105. msgraph/generated/places/item/graph_building/graph_building_request_builder.py +127 -0
  106. msgraph/generated/places/item/graph_building/map/footprints/count/count_request_builder.py +104 -0
  107. msgraph/generated/places/item/graph_building/map/footprints/footprints_request_builder.py +208 -0
  108. msgraph/generated/places/item/graph_building/map/footprints/item/footprint_map_item_request_builder.py +188 -0
  109. msgraph/generated/places/item/graph_building/map/levels/count/count_request_builder.py +104 -0
  110. msgraph/generated/places/item/graph_building/map/levels/item/fixtures/count/count_request_builder.py +104 -0
  111. msgraph/generated/places/item/graph_building/map/levels/item/fixtures/fixtures_request_builder.py +208 -0
  112. msgraph/generated/places/item/graph_building/map/levels/item/fixtures/item/fixture_map_item_request_builder.py +188 -0
  113. msgraph/generated/places/item/graph_building/map/levels/item/level_map_item_request_builder.py +218 -0
  114. msgraph/generated/places/item/graph_building/map/levels/item/sections/count/count_request_builder.py +104 -0
  115. msgraph/generated/places/item/graph_building/map/levels/item/sections/item/section_map_item_request_builder.py +188 -0
  116. msgraph/generated/places/item/graph_building/map/levels/item/sections/sections_request_builder.py +208 -0
  117. msgraph/generated/places/item/graph_building/map/levels/item/units/count/count_request_builder.py +104 -0
  118. msgraph/generated/places/item/graph_building/map/levels/item/units/item/unit_map_item_request_builder.py +188 -0
  119. msgraph/generated/places/item/graph_building/map/levels/item/units/units_request_builder.py +208 -0
  120. msgraph/generated/places/item/graph_building/map/levels/levels_request_builder.py +208 -0
  121. msgraph/generated/places/item/graph_building/map/map_request_builder.py +208 -0
  122. msgraph/generated/places/item/graph_desk/check_ins/check_ins_request_builder.py +208 -0
  123. msgraph/generated/places/item/graph_desk/check_ins/count/count_request_builder.py +104 -0
  124. msgraph/generated/places/item/graph_desk/check_ins/item/check_in_claim_calendar_event_item_request_builder.py +188 -0
  125. msgraph/generated/places/item/graph_desk/graph_desk_request_builder.py +117 -0
  126. msgraph/generated/places/item/graph_floor/check_ins/check_ins_request_builder.py +208 -0
  127. msgraph/generated/places/item/graph_floor/check_ins/count/count_request_builder.py +104 -0
  128. msgraph/generated/places/item/graph_floor/check_ins/item/check_in_claim_calendar_event_item_request_builder.py +188 -0
  129. msgraph/generated/places/item/graph_floor/graph_floor_request_builder.py +117 -0
  130. msgraph/generated/places/item/graph_room_list/graph_room_list_request_builder.py +10 -0
  131. msgraph/generated/places/item/graph_room_list/workspaces/count/count_request_builder.py +104 -0
  132. msgraph/generated/places/item/graph_room_list/workspaces/item/check_ins/check_ins_request_builder.py +208 -0
  133. msgraph/generated/places/item/graph_room_list/workspaces/item/check_ins/count/count_request_builder.py +104 -0
  134. msgraph/generated/places/item/graph_room_list/workspaces/item/check_ins/item/check_in_claim_calendar_event_item_request_builder.py +188 -0
  135. msgraph/generated/places/item/graph_room_list/workspaces/item/workspace_item_request_builder.py +198 -0
  136. msgraph/generated/places/item/graph_room_list/workspaces/workspaces_request_builder.py +208 -0
  137. msgraph/generated/places/item/graph_section/check_ins/check_ins_request_builder.py +208 -0
  138. msgraph/generated/places/item/graph_section/check_ins/count/count_request_builder.py +104 -0
  139. msgraph/generated/places/item/graph_section/check_ins/item/check_in_claim_calendar_event_item_request_builder.py +188 -0
  140. msgraph/generated/places/item/graph_section/graph_section_request_builder.py +117 -0
  141. msgraph/generated/places/item/graph_workspace/check_ins/check_ins_request_builder.py +208 -0
  142. msgraph/generated/places/item/graph_workspace/check_ins/count/count_request_builder.py +104 -0
  143. msgraph/generated/places/item/graph_workspace/check_ins/item/check_in_claim_calendar_event_item_request_builder.py +188 -0
  144. msgraph/generated/places/item/graph_workspace/graph_workspace_request_builder.py +117 -0
  145. msgraph/generated/places/item/place_item_request_builder.py +60 -0
  146. msgraph/generated/places/places_request_builder.py +50 -0
  147. msgraph/generated/security/identities/identities_request_builder.py +10 -0
  148. msgraph/generated/security/identities/identity_accounts/count/count_request_builder.py +104 -0
  149. msgraph/generated/security/identities/identity_accounts/identity_accounts_request_builder.py +209 -0
  150. msgraph/generated/security/identities/identity_accounts/item/identity_accounts_item_request_builder.py +199 -0
  151. msgraph/generated/security/identities/identity_accounts/item/microsoft_graph_security_invoke_action/invoke_action_post_request_body.py +68 -0
  152. msgraph/generated/security/identities/identity_accounts/item/microsoft_graph_security_invoke_action/microsoft_graph_security_invoke_action_request_builder.py +90 -0
  153. msgraph/generated/solutions/virtual_events/webinars/item/registrations/item/sessions/sessions_request_builder.py +3 -3
  154. msgraph/generated/storage/file_storage/containers/item/file_storage_container_item_request_builder.py +20 -0
  155. msgraph/generated/storage/file_storage/containers/item/migration_jobs/count/count_request_builder.py +104 -0
  156. msgraph/generated/storage/file_storage/containers/item/migration_jobs/item/progress_events/count/count_request_builder.py +104 -0
  157. msgraph/generated/storage/file_storage/containers/item/migration_jobs/item/progress_events/item/share_point_migration_event_item_request_builder.py +188 -0
  158. msgraph/generated/storage/file_storage/containers/item/migration_jobs/item/progress_events/progress_events_request_builder.py +208 -0
  159. msgraph/generated/storage/file_storage/containers/item/migration_jobs/item/share_point_migration_job_item_request_builder.py +198 -0
  160. msgraph/generated/storage/file_storage/containers/item/migration_jobs/migration_jobs_request_builder.py +208 -0
  161. msgraph/generated/storage/file_storage/containers/item/provision_migration_containers/provision_migration_containers_request_builder.py +81 -0
  162. msgraph/generated/storage/file_storage/deleted_containers/item/file_storage_container_item_request_builder.py +20 -0
  163. msgraph/generated/storage/file_storage/deleted_containers/item/migration_jobs/count/count_request_builder.py +104 -0
  164. msgraph/generated/storage/file_storage/deleted_containers/item/migration_jobs/item/progress_events/count/count_request_builder.py +104 -0
  165. msgraph/generated/storage/file_storage/deleted_containers/item/migration_jobs/item/progress_events/item/share_point_migration_event_item_request_builder.py +188 -0
  166. msgraph/generated/storage/file_storage/deleted_containers/item/migration_jobs/item/progress_events/progress_events_request_builder.py +208 -0
  167. msgraph/generated/storage/file_storage/deleted_containers/item/migration_jobs/item/share_point_migration_job_item_request_builder.py +198 -0
  168. msgraph/generated/storage/file_storage/deleted_containers/item/migration_jobs/migration_jobs_request_builder.py +208 -0
  169. msgraph/generated/storage/file_storage/deleted_containers/item/provision_migration_containers/provision_migration_containers_request_builder.py +81 -0
  170. msgraph/generated/users/item/chats/item/chat_item_request_builder.py +10 -0
  171. msgraph/generated/users/item/chats/item/remove_all_access_for_user/remove_all_access_for_user_post_request_body.py +57 -0
  172. msgraph/generated/users/item/chats/item/remove_all_access_for_user/remove_all_access_for_user_request_builder.py +87 -0
  173. {msgraph_sdk-1.49.0.dist-info → msgraph_sdk-1.50.0.dist-info}/METADATA +1 -1
  174. {msgraph_sdk-1.49.0.dist-info → msgraph_sdk-1.50.0.dist-info}/RECORD +176 -44
  175. {msgraph_sdk-1.49.0.dist-info → msgraph_sdk-1.50.0.dist-info}/WHEEL +0 -0
  176. {msgraph_sdk-1.49.0.dist-info → msgraph_sdk-1.50.0.dist-info}/licenses/LICENSE +0 -0
@@ -1,5 +1,5 @@
1
1
  {
2
- "descriptionHash": "D282F35F1C4502D8A194AC720C40CD42328A0D407D96EA32125D5E6F3F4483C6070BED2C504A5E1B5E49A4B1ABA6C9BEBA0FE6749B51318AC512B5FF4DD00ECC",
2
+ "descriptionHash": "B243F90AAC3F548EAA1D4BB9C012663E5F123A401E193B25D219B7D016381FF78B94701C2AF3F0DBDF12C8E8952F4095F9956FF17DE3320747B1A1BB91287751",
3
3
  "descriptionLocation": "../../msgraph-metadata/clean_v10_openapi/openapi.yaml",
4
4
  "lockFileVersion": "1.0.0",
5
5
  "kiotaVersion": "1.30.0",
@@ -0,0 +1,61 @@
1
+ from __future__ import annotations
2
+ from collections.abc import Callable
3
+ from dataclasses import dataclass, field
4
+ from kiota_abstractions.serialization import Parsable, ParseNode, SerializationWriter
5
+ from typing import Any, Optional, TYPE_CHECKING, Union
6
+
7
+ if TYPE_CHECKING:
8
+ from .place_mode import PlaceMode
9
+
10
+ from .place_mode import PlaceMode
11
+
12
+ @dataclass
13
+ class AssignedPlaceMode(PlaceMode, Parsable):
14
+ # The OdataType property
15
+ odata_type: Optional[str] = "#microsoft.graph.assignedPlaceMode"
16
+ # The assignedUserEmailAddress property
17
+ assigned_user_email_address: Optional[str] = None
18
+ # The assignedUserId property
19
+ assigned_user_id: Optional[str] = None
20
+
21
+ @staticmethod
22
+ def create_from_discriminator_value(parse_node: ParseNode) -> AssignedPlaceMode:
23
+ """
24
+ Creates a new instance of the appropriate class based on discriminator value
25
+ param parse_node: The parse node to use to read the discriminator value and create the object
26
+ Returns: AssignedPlaceMode
27
+ """
28
+ if parse_node is None:
29
+ raise TypeError("parse_node cannot be null.")
30
+ return AssignedPlaceMode()
31
+
32
+ def get_field_deserializers(self,) -> dict[str, Callable[[ParseNode], None]]:
33
+ """
34
+ The deserialization information for the current model
35
+ Returns: dict[str, Callable[[ParseNode], None]]
36
+ """
37
+ from .place_mode import PlaceMode
38
+
39
+ from .place_mode import PlaceMode
40
+
41
+ fields: dict[str, Callable[[Any], None]] = {
42
+ "assignedUserEmailAddress": lambda n : setattr(self, 'assigned_user_email_address', n.get_str_value()),
43
+ "assignedUserId": lambda n : setattr(self, 'assigned_user_id', n.get_str_value()),
44
+ }
45
+ super_fields = super().get_field_deserializers()
46
+ fields.update(super_fields)
47
+ return fields
48
+
49
+ def serialize(self,writer: SerializationWriter) -> None:
50
+ """
51
+ Serializes information the current object
52
+ param writer: Serialization writer to use to serialize this model
53
+ Returns: None
54
+ """
55
+ if writer is None:
56
+ raise TypeError("writer cannot be null.")
57
+ super().serialize(writer)
58
+ writer.write_str_value("assignedUserEmailAddress", self.assigned_user_email_address)
59
+ writer.write_str_value("assignedUserId", self.assigned_user_id)
60
+
61
+
@@ -0,0 +1,104 @@
1
+ from __future__ import annotations
2
+ from collections.abc import Callable
3
+ from dataclasses import dataclass, field
4
+ from kiota_abstractions.serialization import Parsable, ParseNode, SerializationWriter
5
+ from typing import Any, Optional, TYPE_CHECKING, Union
6
+
7
+ if TYPE_CHECKING:
8
+ from .building_map import BuildingMap
9
+ from .entity import Entity
10
+ from .fixture_map import FixtureMap
11
+ from .footprint_map import FootprintMap
12
+ from .level_map import LevelMap
13
+ from .section_map import SectionMap
14
+ from .unit_map import UnitMap
15
+
16
+ from .entity import Entity
17
+
18
+ @dataclass
19
+ class BaseMapFeature(Entity, Parsable):
20
+ # The OdataType property
21
+ odata_type: Optional[str] = None
22
+ # The properties property
23
+ properties: Optional[str] = None
24
+
25
+ @staticmethod
26
+ def create_from_discriminator_value(parse_node: ParseNode) -> BaseMapFeature:
27
+ """
28
+ Creates a new instance of the appropriate class based on discriminator value
29
+ param parse_node: The parse node to use to read the discriminator value and create the object
30
+ Returns: BaseMapFeature
31
+ """
32
+ if parse_node is None:
33
+ raise TypeError("parse_node cannot be null.")
34
+ try:
35
+ child_node = parse_node.get_child_node("@odata.type")
36
+ mapping_value = child_node.get_str_value() if child_node else None
37
+ except AttributeError:
38
+ mapping_value = None
39
+ if mapping_value and mapping_value.casefold() == "#microsoft.graph.buildingMap".casefold():
40
+ from .building_map import BuildingMap
41
+
42
+ return BuildingMap()
43
+ if mapping_value and mapping_value.casefold() == "#microsoft.graph.fixtureMap".casefold():
44
+ from .fixture_map import FixtureMap
45
+
46
+ return FixtureMap()
47
+ if mapping_value and mapping_value.casefold() == "#microsoft.graph.footprintMap".casefold():
48
+ from .footprint_map import FootprintMap
49
+
50
+ return FootprintMap()
51
+ if mapping_value and mapping_value.casefold() == "#microsoft.graph.levelMap".casefold():
52
+ from .level_map import LevelMap
53
+
54
+ return LevelMap()
55
+ if mapping_value and mapping_value.casefold() == "#microsoft.graph.sectionMap".casefold():
56
+ from .section_map import SectionMap
57
+
58
+ return SectionMap()
59
+ if mapping_value and mapping_value.casefold() == "#microsoft.graph.unitMap".casefold():
60
+ from .unit_map import UnitMap
61
+
62
+ return UnitMap()
63
+ return BaseMapFeature()
64
+
65
+ def get_field_deserializers(self,) -> dict[str, Callable[[ParseNode], None]]:
66
+ """
67
+ The deserialization information for the current model
68
+ Returns: dict[str, Callable[[ParseNode], None]]
69
+ """
70
+ from .building_map import BuildingMap
71
+ from .entity import Entity
72
+ from .fixture_map import FixtureMap
73
+ from .footprint_map import FootprintMap
74
+ from .level_map import LevelMap
75
+ from .section_map import SectionMap
76
+ from .unit_map import UnitMap
77
+
78
+ from .building_map import BuildingMap
79
+ from .entity import Entity
80
+ from .fixture_map import FixtureMap
81
+ from .footprint_map import FootprintMap
82
+ from .level_map import LevelMap
83
+ from .section_map import SectionMap
84
+ from .unit_map import UnitMap
85
+
86
+ fields: dict[str, Callable[[Any], None]] = {
87
+ "properties": lambda n : setattr(self, 'properties', n.get_str_value()),
88
+ }
89
+ super_fields = super().get_field_deserializers()
90
+ fields.update(super_fields)
91
+ return fields
92
+
93
+ def serialize(self,writer: SerializationWriter) -> None:
94
+ """
95
+ Serializes information the current object
96
+ param writer: Serialization writer to use to serialize this model
97
+ Returns: None
98
+ """
99
+ if writer is None:
100
+ raise TypeError("writer cannot be null.")
101
+ super().serialize(writer)
102
+ writer.write_str_value("properties", self.properties)
103
+
104
+
@@ -0,0 +1,67 @@
1
+ from __future__ import annotations
2
+ from collections.abc import Callable
3
+ from dataclasses import dataclass, field
4
+ from kiota_abstractions.serialization import Parsable, ParseNode, SerializationWriter
5
+ from typing import Any, Optional, TYPE_CHECKING, Union
6
+
7
+ if TYPE_CHECKING:
8
+ from .building_map import BuildingMap
9
+ from .place import Place
10
+ from .resource_link import ResourceLink
11
+
12
+ from .place import Place
13
+
14
+ @dataclass
15
+ class Building(Place, Parsable):
16
+ # The OdataType property
17
+ odata_type: Optional[str] = "#microsoft.graph.building"
18
+ # The map property
19
+ map: Optional[BuildingMap] = None
20
+ # The resourceLinks property
21
+ resource_links: Optional[list[ResourceLink]] = None
22
+
23
+ @staticmethod
24
+ def create_from_discriminator_value(parse_node: ParseNode) -> Building:
25
+ """
26
+ Creates a new instance of the appropriate class based on discriminator value
27
+ param parse_node: The parse node to use to read the discriminator value and create the object
28
+ Returns: Building
29
+ """
30
+ if parse_node is None:
31
+ raise TypeError("parse_node cannot be null.")
32
+ return Building()
33
+
34
+ def get_field_deserializers(self,) -> dict[str, Callable[[ParseNode], None]]:
35
+ """
36
+ The deserialization information for the current model
37
+ Returns: dict[str, Callable[[ParseNode], None]]
38
+ """
39
+ from .building_map import BuildingMap
40
+ from .place import Place
41
+ from .resource_link import ResourceLink
42
+
43
+ from .building_map import BuildingMap
44
+ from .place import Place
45
+ from .resource_link import ResourceLink
46
+
47
+ fields: dict[str, Callable[[Any], None]] = {
48
+ "map": lambda n : setattr(self, 'map', n.get_object_value(BuildingMap)),
49
+ "resourceLinks": lambda n : setattr(self, 'resource_links', n.get_collection_of_object_values(ResourceLink)),
50
+ }
51
+ super_fields = super().get_field_deserializers()
52
+ fields.update(super_fields)
53
+ return fields
54
+
55
+ def serialize(self,writer: SerializationWriter) -> None:
56
+ """
57
+ Serializes information the current object
58
+ param writer: Serialization writer to use to serialize this model
59
+ Returns: None
60
+ """
61
+ if writer is None:
62
+ raise TypeError("writer cannot be null.")
63
+ super().serialize(writer)
64
+ writer.write_object_value("map", self.map)
65
+ writer.write_collection_of_object_values("resourceLinks", self.resource_links)
66
+
67
+
@@ -0,0 +1,58 @@
1
+ from __future__ import annotations
2
+ from collections.abc import Callable
3
+ from dataclasses import dataclass, field
4
+ from kiota_abstractions.serialization import Parsable, ParseNode, SerializationWriter
5
+ from typing import Any, Optional, TYPE_CHECKING, Union
6
+
7
+ if TYPE_CHECKING:
8
+ from .base_collection_pagination_count_response import BaseCollectionPaginationCountResponse
9
+ from .building import Building
10
+
11
+ from .base_collection_pagination_count_response import BaseCollectionPaginationCountResponse
12
+
13
+ @dataclass
14
+ class BuildingCollectionResponse(BaseCollectionPaginationCountResponse, Parsable):
15
+ # The value property
16
+ value: Optional[list[Building]] = None
17
+
18
+ @staticmethod
19
+ def create_from_discriminator_value(parse_node: ParseNode) -> BuildingCollectionResponse:
20
+ """
21
+ Creates a new instance of the appropriate class based on discriminator value
22
+ param parse_node: The parse node to use to read the discriminator value and create the object
23
+ Returns: BuildingCollectionResponse
24
+ """
25
+ if parse_node is None:
26
+ raise TypeError("parse_node cannot be null.")
27
+ return BuildingCollectionResponse()
28
+
29
+ def get_field_deserializers(self,) -> dict[str, Callable[[ParseNode], None]]:
30
+ """
31
+ The deserialization information for the current model
32
+ Returns: dict[str, Callable[[ParseNode], None]]
33
+ """
34
+ from .base_collection_pagination_count_response import BaseCollectionPaginationCountResponse
35
+ from .building import Building
36
+
37
+ from .base_collection_pagination_count_response import BaseCollectionPaginationCountResponse
38
+ from .building import Building
39
+
40
+ fields: dict[str, Callable[[Any], None]] = {
41
+ "value": lambda n : setattr(self, 'value', n.get_collection_of_object_values(Building)),
42
+ }
43
+ super_fields = super().get_field_deserializers()
44
+ fields.update(super_fields)
45
+ return fields
46
+
47
+ def serialize(self,writer: SerializationWriter) -> None:
48
+ """
49
+ Serializes information the current object
50
+ param writer: Serialization writer to use to serialize this model
51
+ Returns: None
52
+ """
53
+ if writer is None:
54
+ raise TypeError("writer cannot be null.")
55
+ super().serialize(writer)
56
+ writer.write_collection_of_object_values("value", self.value)
57
+
58
+
@@ -0,0 +1,71 @@
1
+ from __future__ import annotations
2
+ from collections.abc import Callable
3
+ from dataclasses import dataclass, field
4
+ from kiota_abstractions.serialization import Parsable, ParseNode, SerializationWriter
5
+ from typing import Any, Optional, TYPE_CHECKING, Union
6
+
7
+ if TYPE_CHECKING:
8
+ from .base_map_feature import BaseMapFeature
9
+ from .footprint_map import FootprintMap
10
+ from .level_map import LevelMap
11
+
12
+ from .base_map_feature import BaseMapFeature
13
+
14
+ @dataclass
15
+ class BuildingMap(BaseMapFeature, Parsable):
16
+ # The OdataType property
17
+ odata_type: Optional[str] = "#microsoft.graph.buildingMap"
18
+ # The footprints property
19
+ footprints: Optional[list[FootprintMap]] = None
20
+ # The levels property
21
+ levels: Optional[list[LevelMap]] = None
22
+ # The placeId property
23
+ place_id: Optional[str] = None
24
+
25
+ @staticmethod
26
+ def create_from_discriminator_value(parse_node: ParseNode) -> BuildingMap:
27
+ """
28
+ Creates a new instance of the appropriate class based on discriminator value
29
+ param parse_node: The parse node to use to read the discriminator value and create the object
30
+ Returns: BuildingMap
31
+ """
32
+ if parse_node is None:
33
+ raise TypeError("parse_node cannot be null.")
34
+ return BuildingMap()
35
+
36
+ def get_field_deserializers(self,) -> dict[str, Callable[[ParseNode], None]]:
37
+ """
38
+ The deserialization information for the current model
39
+ Returns: dict[str, Callable[[ParseNode], None]]
40
+ """
41
+ from .base_map_feature import BaseMapFeature
42
+ from .footprint_map import FootprintMap
43
+ from .level_map import LevelMap
44
+
45
+ from .base_map_feature import BaseMapFeature
46
+ from .footprint_map import FootprintMap
47
+ from .level_map import LevelMap
48
+
49
+ fields: dict[str, Callable[[Any], None]] = {
50
+ "footprints": lambda n : setattr(self, 'footprints', n.get_collection_of_object_values(FootprintMap)),
51
+ "levels": lambda n : setattr(self, 'levels', n.get_collection_of_object_values(LevelMap)),
52
+ "placeId": lambda n : setattr(self, 'place_id', n.get_str_value()),
53
+ }
54
+ super_fields = super().get_field_deserializers()
55
+ fields.update(super_fields)
56
+ return fields
57
+
58
+ def serialize(self,writer: SerializationWriter) -> None:
59
+ """
60
+ Serializes information the current object
61
+ param writer: Serialization writer to use to serialize this model
62
+ Returns: None
63
+ """
64
+ if writer is None:
65
+ raise TypeError("writer cannot be null.")
66
+ super().serialize(writer)
67
+ writer.write_collection_of_object_values("footprints", self.footprints)
68
+ writer.write_collection_of_object_values("levels", self.levels)
69
+ writer.write_str_value("placeId", self.place_id)
70
+
71
+
@@ -37,7 +37,7 @@ class Channel(Entity, Parsable):
37
37
  is_favorite_by_default: Optional[bool] = None
38
38
  # A collection of membership records associated with the channel.
39
39
  members: Optional[list[ConversationMember]] = None
40
- # The type of the channel. Can be set during creation and can't be changed. The possible values are: standard, private, unknownFutureValue, shared. The default value is standard. Use the Prefer: include-unknown-enum-members request header to get the following value in this evolvable enum: shared.
40
+ # The type of the channel. Can be set during creation and can't be changed. The possible values are: standard, private, unknownFutureValue, shared. The default value is standard. Use the Prefer: include-unknown-enum-members request header to get the following members in this evolvable enum: shared.
41
41
  membership_type: Optional[ChannelMembershipType] = None
42
42
  # A collection of all the messages in the channel. A navigation property. Nullable.
43
43
  messages: Optional[list[ChatMessage]] = None
@@ -13,6 +13,8 @@ from .identity import Identity
13
13
  class CommunicationsGuestIdentity(Identity, Parsable):
14
14
  # The OdataType property
15
15
  odata_type: Optional[str] = "#microsoft.graph.communicationsGuestIdentity"
16
+ # The email of the guest user.
17
+ email: Optional[str] = None
16
18
 
17
19
  @staticmethod
18
20
  def create_from_discriminator_value(parse_node: ParseNode) -> CommunicationsGuestIdentity:
@@ -35,6 +37,7 @@ class CommunicationsGuestIdentity(Identity, Parsable):
35
37
  from .identity import Identity
36
38
 
37
39
  fields: dict[str, Callable[[Any], None]] = {
40
+ "email": lambda n : setattr(self, 'email', n.get_str_value()),
38
41
  }
39
42
  super_fields = super().get_field_deserializers()
40
43
  fields.update(super_fields)
@@ -49,5 +52,6 @@ class CommunicationsGuestIdentity(Identity, Parsable):
49
52
  if writer is None:
50
53
  raise TypeError("writer cannot be null.")
51
54
  super().serialize(writer)
55
+ writer.write_str_value("email", self.email)
52
56
 
53
57
 
@@ -0,0 +1,53 @@
1
+ from __future__ import annotations
2
+ from collections.abc import Callable
3
+ from dataclasses import dataclass, field
4
+ from kiota_abstractions.serialization import Parsable, ParseNode, SerializationWriter
5
+ from typing import Any, Optional, TYPE_CHECKING, Union
6
+
7
+ if TYPE_CHECKING:
8
+ from .entity import Entity
9
+
10
+ from .entity import Entity
11
+
12
+ @dataclass
13
+ class CopilotReportRoot(Entity, Parsable):
14
+ # The OdataType property
15
+ odata_type: Optional[str] = None
16
+
17
+ @staticmethod
18
+ def create_from_discriminator_value(parse_node: ParseNode) -> CopilotReportRoot:
19
+ """
20
+ Creates a new instance of the appropriate class based on discriminator value
21
+ param parse_node: The parse node to use to read the discriminator value and create the object
22
+ Returns: CopilotReportRoot
23
+ """
24
+ if parse_node is None:
25
+ raise TypeError("parse_node cannot be null.")
26
+ return CopilotReportRoot()
27
+
28
+ def get_field_deserializers(self,) -> dict[str, Callable[[ParseNode], None]]:
29
+ """
30
+ The deserialization information for the current model
31
+ Returns: dict[str, Callable[[ParseNode], None]]
32
+ """
33
+ from .entity import Entity
34
+
35
+ from .entity import Entity
36
+
37
+ fields: dict[str, Callable[[Any], None]] = {
38
+ }
39
+ super_fields = super().get_field_deserializers()
40
+ fields.update(super_fields)
41
+ return fields
42
+
43
+ def serialize(self,writer: SerializationWriter) -> None:
44
+ """
45
+ Serializes information the current object
46
+ param writer: Serialization writer to use to serialize this model
47
+ Returns: None
48
+ """
49
+ if writer is None:
50
+ raise TypeError("writer cannot be null.")
51
+ super().serialize(writer)
52
+
53
+
@@ -0,0 +1,71 @@
1
+ from __future__ import annotations
2
+ from collections.abc import Callable
3
+ from dataclasses import dataclass, field
4
+ from kiota_abstractions.serialization import Parsable, ParseNode, SerializationWriter
5
+ from typing import Any, Optional, TYPE_CHECKING, Union
6
+
7
+ if TYPE_CHECKING:
8
+ from .mailbox_details import MailboxDetails
9
+ from .place import Place
10
+ from .place_mode import PlaceMode
11
+
12
+ from .place import Place
13
+
14
+ @dataclass
15
+ class Desk(Place, Parsable):
16
+ # The OdataType property
17
+ odata_type: Optional[str] = "#microsoft.graph.desk"
18
+ # The displayDeviceName property
19
+ display_device_name: Optional[str] = None
20
+ # The mailboxDetails property
21
+ mailbox_details: Optional[MailboxDetails] = None
22
+ # The mode property
23
+ mode: Optional[PlaceMode] = None
24
+
25
+ @staticmethod
26
+ def create_from_discriminator_value(parse_node: ParseNode) -> Desk:
27
+ """
28
+ Creates a new instance of the appropriate class based on discriminator value
29
+ param parse_node: The parse node to use to read the discriminator value and create the object
30
+ Returns: Desk
31
+ """
32
+ if parse_node is None:
33
+ raise TypeError("parse_node cannot be null.")
34
+ return Desk()
35
+
36
+ def get_field_deserializers(self,) -> dict[str, Callable[[ParseNode], None]]:
37
+ """
38
+ The deserialization information for the current model
39
+ Returns: dict[str, Callable[[ParseNode], None]]
40
+ """
41
+ from .mailbox_details import MailboxDetails
42
+ from .place import Place
43
+ from .place_mode import PlaceMode
44
+
45
+ from .mailbox_details import MailboxDetails
46
+ from .place import Place
47
+ from .place_mode import PlaceMode
48
+
49
+ fields: dict[str, Callable[[Any], None]] = {
50
+ "displayDeviceName": lambda n : setattr(self, 'display_device_name', n.get_str_value()),
51
+ "mailboxDetails": lambda n : setattr(self, 'mailbox_details', n.get_object_value(MailboxDetails)),
52
+ "mode": lambda n : setattr(self, 'mode', n.get_object_value(PlaceMode)),
53
+ }
54
+ super_fields = super().get_field_deserializers()
55
+ fields.update(super_fields)
56
+ return fields
57
+
58
+ def serialize(self,writer: SerializationWriter) -> None:
59
+ """
60
+ Serializes information the current object
61
+ param writer: Serialization writer to use to serialize this model
62
+ Returns: None
63
+ """
64
+ if writer is None:
65
+ raise TypeError("writer cannot be null.")
66
+ super().serialize(writer)
67
+ writer.write_str_value("displayDeviceName", self.display_device_name)
68
+ writer.write_object_value("mailboxDetails", self.mailbox_details)
69
+ writer.write_object_value("mode", self.mode)
70
+
71
+
@@ -0,0 +1,58 @@
1
+ from __future__ import annotations
2
+ from collections.abc import Callable
3
+ from dataclasses import dataclass, field
4
+ from kiota_abstractions.serialization import Parsable, ParseNode, SerializationWriter
5
+ from typing import Any, Optional, TYPE_CHECKING, Union
6
+
7
+ if TYPE_CHECKING:
8
+ from .base_collection_pagination_count_response import BaseCollectionPaginationCountResponse
9
+ from .desk import Desk
10
+
11
+ from .base_collection_pagination_count_response import BaseCollectionPaginationCountResponse
12
+
13
+ @dataclass
14
+ class DeskCollectionResponse(BaseCollectionPaginationCountResponse, Parsable):
15
+ # The value property
16
+ value: Optional[list[Desk]] = None
17
+
18
+ @staticmethod
19
+ def create_from_discriminator_value(parse_node: ParseNode) -> DeskCollectionResponse:
20
+ """
21
+ Creates a new instance of the appropriate class based on discriminator value
22
+ param parse_node: The parse node to use to read the discriminator value and create the object
23
+ Returns: DeskCollectionResponse
24
+ """
25
+ if parse_node is None:
26
+ raise TypeError("parse_node cannot be null.")
27
+ return DeskCollectionResponse()
28
+
29
+ def get_field_deserializers(self,) -> dict[str, Callable[[ParseNode], None]]:
30
+ """
31
+ The deserialization information for the current model
32
+ Returns: dict[str, Callable[[ParseNode], None]]
33
+ """
34
+ from .base_collection_pagination_count_response import BaseCollectionPaginationCountResponse
35
+ from .desk import Desk
36
+
37
+ from .base_collection_pagination_count_response import BaseCollectionPaginationCountResponse
38
+ from .desk import Desk
39
+
40
+ fields: dict[str, Callable[[Any], None]] = {
41
+ "value": lambda n : setattr(self, 'value', n.get_collection_of_object_values(Desk)),
42
+ }
43
+ super_fields = super().get_field_deserializers()
44
+ fields.update(super_fields)
45
+ return fields
46
+
47
+ def serialize(self,writer: SerializationWriter) -> None:
48
+ """
49
+ Serializes information the current object
50
+ param writer: Serialization writer to use to serialize this model
51
+ Returns: None
52
+ """
53
+ if writer is None:
54
+ raise TypeError("writer cannot be null.")
55
+ super().serialize(writer)
56
+ writer.write_collection_of_object_values("value", self.value)
57
+
58
+
@@ -0,0 +1,53 @@
1
+ from __future__ import annotations
2
+ from collections.abc import Callable
3
+ from dataclasses import dataclass, field
4
+ from kiota_abstractions.serialization import Parsable, ParseNode, SerializationWriter
5
+ from typing import Any, Optional, TYPE_CHECKING, Union
6
+
7
+ if TYPE_CHECKING:
8
+ from .place_mode import PlaceMode
9
+
10
+ from .place_mode import PlaceMode
11
+
12
+ @dataclass
13
+ class DropInPlaceMode(PlaceMode, Parsable):
14
+ # The OdataType property
15
+ odata_type: Optional[str] = "#microsoft.graph.dropInPlaceMode"
16
+
17
+ @staticmethod
18
+ def create_from_discriminator_value(parse_node: ParseNode) -> DropInPlaceMode:
19
+ """
20
+ Creates a new instance of the appropriate class based on discriminator value
21
+ param parse_node: The parse node to use to read the discriminator value and create the object
22
+ Returns: DropInPlaceMode
23
+ """
24
+ if parse_node is None:
25
+ raise TypeError("parse_node cannot be null.")
26
+ return DropInPlaceMode()
27
+
28
+ def get_field_deserializers(self,) -> dict[str, Callable[[ParseNode], None]]:
29
+ """
30
+ The deserialization information for the current model
31
+ Returns: dict[str, Callable[[ParseNode], None]]
32
+ """
33
+ from .place_mode import PlaceMode
34
+
35
+ from .place_mode import PlaceMode
36
+
37
+ fields: dict[str, Callable[[Any], None]] = {
38
+ }
39
+ super_fields = super().get_field_deserializers()
40
+ fields.update(super_fields)
41
+ return fields
42
+
43
+ def serialize(self,writer: SerializationWriter) -> None:
44
+ """
45
+ Serializes information the current object
46
+ param writer: Serialization writer to use to serialize this model
47
+ Returns: None
48
+ """
49
+ if writer is None:
50
+ raise TypeError("writer cannot be null.")
51
+ super().serialize(writer)
52
+
53
+
@@ -81,7 +81,7 @@ class EducationAssignment(Entity, Parsable):
81
81
  resources_folder_url: Optional[str] = None
82
82
  # When set, the grading rubric attached to this assignment.
83
83
  rubric: Optional[EducationRubric] = None
84
- # Status of the assignment. You can't PATCH this value. Possible values are: draft, scheduled, published, assigned, unknownFutureValue, inactive. Use the Prefer: include-unknown-enum-members request header to get the following value(s) in this evolvable enum: inactive.
84
+ # Status of the assignment. You can't PATCH this value. Possible values are: draft, scheduled, published, assigned, unknownFutureValue, inactive. Use the Prefer: include-unknown-enum-members request header to get the following members in this evolvable enum: inactive.
85
85
  status: Optional[EducationAssignmentStatus] = None
86
86
  # Once published, there's a submission object for each student representing their work and grade. Read-only. Nullable.
87
87
  submissions: Optional[list[EducationSubmission]] = None
@@ -14,7 +14,7 @@ from .entity import Entity
14
14
 
15
15
  @dataclass
16
16
  class EducationAssignmentDefaults(Entity, Parsable):
17
- # Optional field to control adding assignments to students' and teachers' calendars when the assignment is published. The possible values are: none, studentsAndPublisher, studentsAndTeamOwners, unknownFutureValue, and studentsOnly. Use the Prefer: include-unknown-enum-members request header to get the following value in this evolvable enum: studentsOnly. The default value is none.
17
+ # Optional field to control adding assignments to students' and teachers' calendars when the assignment is published. The possible values are: none, studentsAndPublisher, studentsAndTeamOwners, unknownFutureValue, and studentsOnly. Use the Prefer: include-unknown-enum-members request header to get the following members in this evolvable enum: studentsOnly. The default value is none.
18
18
  add_to_calendar_action: Optional[EducationAddToCalendarOptions] = None
19
19
  # Class-level default behavior for handling students who are added after the assignment is published. Possible values are: none, assignIfOpen.
20
20
  added_student_action: Optional[EducationAddedStudentAction] = None