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.
- msgraph/_version.py +1 -1
- msgraph/generated/chats/item/chat_item_request_builder.py +10 -0
- msgraph/generated/chats/item/remove_all_access_for_user/remove_all_access_for_user_post_request_body.py +57 -0
- msgraph/generated/chats/item/remove_all_access_for_user/remove_all_access_for_user_request_builder.py +87 -0
- msgraph/generated/drives/item/items/item/retention_label/retention_label_request_builder.py +4 -3
- msgraph/generated/kiota-dom-export.txt +1830 -6
- msgraph/generated/kiota-lock.json +1 -1
- msgraph/generated/models/assigned_place_mode.py +61 -0
- msgraph/generated/models/base_map_feature.py +104 -0
- msgraph/generated/models/building.py +67 -0
- msgraph/generated/models/building_collection_response.py +58 -0
- msgraph/generated/models/building_map.py +71 -0
- msgraph/generated/models/channel.py +1 -1
- msgraph/generated/models/communications_guest_identity.py +4 -0
- msgraph/generated/models/copilot_report_root.py +53 -0
- msgraph/generated/models/desk.py +71 -0
- msgraph/generated/models/desk_collection_response.py +58 -0
- msgraph/generated/models/drop_in_place_mode.py +53 -0
- msgraph/generated/models/education_assignment.py +1 -1
- msgraph/generated/models/education_assignment_defaults.py +1 -1
- msgraph/generated/models/entity.py +177 -0
- msgraph/generated/models/external_connectors/property_.py +1 -1
- msgraph/generated/models/file_storage_container.py +7 -0
- msgraph/generated/models/fixture_map.py +57 -0
- msgraph/generated/models/fixture_map_collection_response.py +58 -0
- msgraph/generated/models/floor.py +57 -0
- msgraph/generated/models/floor_collection_response.py +58 -0
- msgraph/generated/models/footprint_map.py +53 -0
- msgraph/generated/models/footprint_map_collection_response.py +58 -0
- msgraph/generated/models/identity_governance/user_inactivity_trigger.py +57 -0
- msgraph/generated/models/identity_governance/workflow_execution_trigger.py +7 -0
- msgraph/generated/models/level_map.py +78 -0
- msgraph/generated/models/level_map_collection_response.py +58 -0
- msgraph/generated/models/mailbox_details.py +58 -0
- msgraph/generated/models/place.py +51 -0
- msgraph/generated/models/place_mode.py +80 -0
- msgraph/generated/models/planner_plan_container.py +1 -1
- msgraph/generated/models/reservable_place_mode.py +53 -0
- msgraph/generated/models/resource_link.py +69 -0
- msgraph/generated/models/resource_link_type.py +6 -0
- msgraph/generated/models/restore_session_base.py +1 -1
- msgraph/generated/models/risk_detection.py +1 -1
- msgraph/generated/models/risk_service_principal_activity.py +1 -1
- msgraph/generated/models/risk_user_activity.py +1 -1
- msgraph/generated/models/risky_service_principal.py +1 -1
- msgraph/generated/models/risky_user.py +1 -1
- msgraph/generated/models/room.py +0 -12
- msgraph/generated/models/room_list.py +7 -0
- msgraph/generated/models/search_request.py +1 -1
- msgraph/generated/models/section.py +53 -0
- msgraph/generated/models/section_collection_response.py +58 -0
- msgraph/generated/models/section_map.py +57 -0
- msgraph/generated/models/section_map_collection_response.py +58 -0
- msgraph/generated/models/security/account.py +72 -0
- msgraph/generated/models/security/action.py +11 -0
- msgraph/generated/models/security/ai_agent_evidence.py +72 -0
- msgraph/generated/models/security/ai_agent_platform.py +9 -0
- msgraph/generated/models/security/alert_evidence.py +7 -0
- msgraph/generated/models/security/ediscovery_export_operation.py +1 -1
- msgraph/generated/models/security/identity_accounts.py +92 -0
- msgraph/generated/models/security/identity_accounts_collection_response.py +58 -0
- msgraph/generated/models/security/identity_container.py +7 -0
- msgraph/generated/models/security/identity_provider.py +8 -0
- msgraph/generated/models/security/invoke_action_result.py +76 -0
- msgraph/generated/models/security/user.py +61 -0
- msgraph/generated/models/service_principal_risk_detection.py +2 -2
- msgraph/generated/models/share_point_migration_container_info.py +62 -0
- msgraph/generated/models/share_point_migration_event.py +127 -0
- msgraph/generated/models/share_point_migration_event_collection_response.py +58 -0
- msgraph/generated/models/share_point_migration_finish_manifest_file_upload_event.py +57 -0
- msgraph/generated/models/share_point_migration_job.py +67 -0
- msgraph/generated/models/share_point_migration_job_cancelled_event.py +61 -0
- msgraph/generated/models/share_point_migration_job_collection_response.py +58 -0
- msgraph/generated/models/share_point_migration_job_deleted_event.py +53 -0
- msgraph/generated/models/share_point_migration_job_error_event.py +86 -0
- msgraph/generated/models/share_point_migration_job_error_level.py +9 -0
- msgraph/generated/models/share_point_migration_job_postponed_event.py +70 -0
- msgraph/generated/models/share_point_migration_job_progress_event.py +121 -0
- msgraph/generated/models/share_point_migration_job_queued_event.py +53 -0
- msgraph/generated/models/share_point_migration_job_start_event.py +61 -0
- msgraph/generated/models/share_point_migration_object_type.py +14 -0
- msgraph/generated/models/sign_in.py +1 -1
- msgraph/generated/models/subject_rights_request_history.py +1 -1
- msgraph/generated/models/subject_rights_request_stage_detail.py +1 -1
- msgraph/generated/models/unit_map.py +57 -0
- msgraph/generated/models/unit_map_collection_response.py +58 -0
- msgraph/generated/models/workforce_integration.py +1 -1
- msgraph/generated/models/workspace.py +76 -0
- msgraph/generated/models/workspace_collection_response.py +58 -0
- msgraph/generated/places/graph_building/count/count_request_builder.py +104 -0
- msgraph/generated/places/graph_building/graph_building_request_builder.py +147 -0
- msgraph/generated/places/graph_desk/count/count_request_builder.py +104 -0
- msgraph/generated/places/graph_desk/graph_desk_request_builder.py +147 -0
- msgraph/generated/places/graph_floor/count/count_request_builder.py +104 -0
- msgraph/generated/places/graph_floor/graph_floor_request_builder.py +147 -0
- msgraph/generated/places/graph_section/count/count_request_builder.py +104 -0
- msgraph/generated/places/graph_section/graph_section_request_builder.py +147 -0
- msgraph/generated/places/graph_workspace/count/count_request_builder.py +104 -0
- msgraph/generated/places/graph_workspace/graph_workspace_request_builder.py +147 -0
- msgraph/generated/places/item/descendants/descendants_get_response.py +58 -0
- msgraph/generated/places/item/descendants/descendants_request_builder.py +137 -0
- msgraph/generated/places/item/graph_building/check_ins/check_ins_request_builder.py +208 -0
- msgraph/generated/places/item/graph_building/check_ins/count/count_request_builder.py +104 -0
- msgraph/generated/places/item/graph_building/check_ins/item/check_in_claim_calendar_event_item_request_builder.py +188 -0
- msgraph/generated/places/item/graph_building/graph_building_request_builder.py +127 -0
- msgraph/generated/places/item/graph_building/map/footprints/count/count_request_builder.py +104 -0
- msgraph/generated/places/item/graph_building/map/footprints/footprints_request_builder.py +208 -0
- msgraph/generated/places/item/graph_building/map/footprints/item/footprint_map_item_request_builder.py +188 -0
- msgraph/generated/places/item/graph_building/map/levels/count/count_request_builder.py +104 -0
- msgraph/generated/places/item/graph_building/map/levels/item/fixtures/count/count_request_builder.py +104 -0
- msgraph/generated/places/item/graph_building/map/levels/item/fixtures/fixtures_request_builder.py +208 -0
- msgraph/generated/places/item/graph_building/map/levels/item/fixtures/item/fixture_map_item_request_builder.py +188 -0
- msgraph/generated/places/item/graph_building/map/levels/item/level_map_item_request_builder.py +218 -0
- msgraph/generated/places/item/graph_building/map/levels/item/sections/count/count_request_builder.py +104 -0
- msgraph/generated/places/item/graph_building/map/levels/item/sections/item/section_map_item_request_builder.py +188 -0
- msgraph/generated/places/item/graph_building/map/levels/item/sections/sections_request_builder.py +208 -0
- msgraph/generated/places/item/graph_building/map/levels/item/units/count/count_request_builder.py +104 -0
- msgraph/generated/places/item/graph_building/map/levels/item/units/item/unit_map_item_request_builder.py +188 -0
- msgraph/generated/places/item/graph_building/map/levels/item/units/units_request_builder.py +208 -0
- msgraph/generated/places/item/graph_building/map/levels/levels_request_builder.py +208 -0
- msgraph/generated/places/item/graph_building/map/map_request_builder.py +208 -0
- msgraph/generated/places/item/graph_desk/check_ins/check_ins_request_builder.py +208 -0
- msgraph/generated/places/item/graph_desk/check_ins/count/count_request_builder.py +104 -0
- msgraph/generated/places/item/graph_desk/check_ins/item/check_in_claim_calendar_event_item_request_builder.py +188 -0
- msgraph/generated/places/item/graph_desk/graph_desk_request_builder.py +117 -0
- msgraph/generated/places/item/graph_floor/check_ins/check_ins_request_builder.py +208 -0
- msgraph/generated/places/item/graph_floor/check_ins/count/count_request_builder.py +104 -0
- msgraph/generated/places/item/graph_floor/check_ins/item/check_in_claim_calendar_event_item_request_builder.py +188 -0
- msgraph/generated/places/item/graph_floor/graph_floor_request_builder.py +117 -0
- msgraph/generated/places/item/graph_room_list/graph_room_list_request_builder.py +10 -0
- msgraph/generated/places/item/graph_room_list/workspaces/count/count_request_builder.py +104 -0
- msgraph/generated/places/item/graph_room_list/workspaces/item/check_ins/check_ins_request_builder.py +208 -0
- msgraph/generated/places/item/graph_room_list/workspaces/item/check_ins/count/count_request_builder.py +104 -0
- msgraph/generated/places/item/graph_room_list/workspaces/item/check_ins/item/check_in_claim_calendar_event_item_request_builder.py +188 -0
- msgraph/generated/places/item/graph_room_list/workspaces/item/workspace_item_request_builder.py +198 -0
- msgraph/generated/places/item/graph_room_list/workspaces/workspaces_request_builder.py +208 -0
- msgraph/generated/places/item/graph_section/check_ins/check_ins_request_builder.py +208 -0
- msgraph/generated/places/item/graph_section/check_ins/count/count_request_builder.py +104 -0
- msgraph/generated/places/item/graph_section/check_ins/item/check_in_claim_calendar_event_item_request_builder.py +188 -0
- msgraph/generated/places/item/graph_section/graph_section_request_builder.py +117 -0
- msgraph/generated/places/item/graph_workspace/check_ins/check_ins_request_builder.py +208 -0
- msgraph/generated/places/item/graph_workspace/check_ins/count/count_request_builder.py +104 -0
- msgraph/generated/places/item/graph_workspace/check_ins/item/check_in_claim_calendar_event_item_request_builder.py +188 -0
- msgraph/generated/places/item/graph_workspace/graph_workspace_request_builder.py +117 -0
- msgraph/generated/places/item/place_item_request_builder.py +60 -0
- msgraph/generated/places/places_request_builder.py +50 -0
- msgraph/generated/security/identities/identities_request_builder.py +10 -0
- msgraph/generated/security/identities/identity_accounts/count/count_request_builder.py +104 -0
- msgraph/generated/security/identities/identity_accounts/identity_accounts_request_builder.py +209 -0
- msgraph/generated/security/identities/identity_accounts/item/identity_accounts_item_request_builder.py +199 -0
- msgraph/generated/security/identities/identity_accounts/item/microsoft_graph_security_invoke_action/invoke_action_post_request_body.py +68 -0
- msgraph/generated/security/identities/identity_accounts/item/microsoft_graph_security_invoke_action/microsoft_graph_security_invoke_action_request_builder.py +90 -0
- msgraph/generated/solutions/virtual_events/webinars/item/registrations/item/sessions/sessions_request_builder.py +3 -3
- msgraph/generated/storage/file_storage/containers/item/file_storage_container_item_request_builder.py +20 -0
- msgraph/generated/storage/file_storage/containers/item/migration_jobs/count/count_request_builder.py +104 -0
- msgraph/generated/storage/file_storage/containers/item/migration_jobs/item/progress_events/count/count_request_builder.py +104 -0
- msgraph/generated/storage/file_storage/containers/item/migration_jobs/item/progress_events/item/share_point_migration_event_item_request_builder.py +188 -0
- msgraph/generated/storage/file_storage/containers/item/migration_jobs/item/progress_events/progress_events_request_builder.py +208 -0
- msgraph/generated/storage/file_storage/containers/item/migration_jobs/item/share_point_migration_job_item_request_builder.py +198 -0
- msgraph/generated/storage/file_storage/containers/item/migration_jobs/migration_jobs_request_builder.py +208 -0
- msgraph/generated/storage/file_storage/containers/item/provision_migration_containers/provision_migration_containers_request_builder.py +81 -0
- msgraph/generated/storage/file_storage/deleted_containers/item/file_storage_container_item_request_builder.py +20 -0
- msgraph/generated/storage/file_storage/deleted_containers/item/migration_jobs/count/count_request_builder.py +104 -0
- msgraph/generated/storage/file_storage/deleted_containers/item/migration_jobs/item/progress_events/count/count_request_builder.py +104 -0
- msgraph/generated/storage/file_storage/deleted_containers/item/migration_jobs/item/progress_events/item/share_point_migration_event_item_request_builder.py +188 -0
- msgraph/generated/storage/file_storage/deleted_containers/item/migration_jobs/item/progress_events/progress_events_request_builder.py +208 -0
- msgraph/generated/storage/file_storage/deleted_containers/item/migration_jobs/item/share_point_migration_job_item_request_builder.py +198 -0
- msgraph/generated/storage/file_storage/deleted_containers/item/migration_jobs/migration_jobs_request_builder.py +208 -0
- msgraph/generated/storage/file_storage/deleted_containers/item/provision_migration_containers/provision_migration_containers_request_builder.py +81 -0
- msgraph/generated/users/item/chats/item/chat_item_request_builder.py +10 -0
- msgraph/generated/users/item/chats/item/remove_all_access_for_user/remove_all_access_for_user_post_request_body.py +57 -0
- msgraph/generated/users/item/chats/item/remove_all_access_for_user/remove_all_access_for_user_request_builder.py +87 -0
- {msgraph_sdk-1.49.0.dist-info → msgraph_sdk-1.50.0.dist-info}/METADATA +1 -1
- {msgraph_sdk-1.49.0.dist-info → msgraph_sdk-1.50.0.dist-info}/RECORD +176 -44
- {msgraph_sdk-1.49.0.dist-info → msgraph_sdk-1.50.0.dist-info}/WHEEL +0 -0
- {msgraph_sdk-1.49.0.dist-info → msgraph_sdk-1.50.0.dist-info}/licenses/LICENSE +0 -0
|
@@ -5,12 +5,17 @@ from kiota_abstractions.serialization import Parsable, ParseNode, SerializationW
|
|
|
5
5
|
from typing import Any, Optional, TYPE_CHECKING, Union
|
|
6
6
|
|
|
7
7
|
if TYPE_CHECKING:
|
|
8
|
+
from .building import Building
|
|
8
9
|
from .check_in_claim import CheckInClaim
|
|
10
|
+
from .desk import Desk
|
|
9
11
|
from .entity import Entity
|
|
12
|
+
from .floor import Floor
|
|
10
13
|
from .outlook_geo_coordinates import OutlookGeoCoordinates
|
|
11
14
|
from .physical_address import PhysicalAddress
|
|
12
15
|
from .room import Room
|
|
13
16
|
from .room_list import RoomList
|
|
17
|
+
from .section import Section
|
|
18
|
+
from .workspace import Workspace
|
|
14
19
|
|
|
15
20
|
from .entity import Entity
|
|
16
21
|
|
|
@@ -24,10 +29,18 @@ class Place(Entity, Parsable):
|
|
|
24
29
|
display_name: Optional[str] = None
|
|
25
30
|
# Specifies the place location in latitude, longitude, and (optionally) altitude coordinates.
|
|
26
31
|
geo_coordinates: Optional[OutlookGeoCoordinates] = None
|
|
32
|
+
# The isWheelChairAccessible property
|
|
33
|
+
is_wheel_chair_accessible: Optional[bool] = None
|
|
34
|
+
# The label property
|
|
35
|
+
label: Optional[str] = None
|
|
27
36
|
# The OdataType property
|
|
28
37
|
odata_type: Optional[str] = None
|
|
38
|
+
# The parentId property
|
|
39
|
+
parent_id: Optional[str] = None
|
|
29
40
|
# The phone number of the place.
|
|
30
41
|
phone: Optional[str] = None
|
|
42
|
+
# The tags property
|
|
43
|
+
tags: Optional[list[str]] = None
|
|
31
44
|
|
|
32
45
|
@staticmethod
|
|
33
46
|
def create_from_discriminator_value(parse_node: ParseNode) -> Place:
|
|
@@ -43,6 +56,18 @@ class Place(Entity, Parsable):
|
|
|
43
56
|
mapping_value = child_node.get_str_value() if child_node else None
|
|
44
57
|
except AttributeError:
|
|
45
58
|
mapping_value = None
|
|
59
|
+
if mapping_value and mapping_value.casefold() == "#microsoft.graph.building".casefold():
|
|
60
|
+
from .building import Building
|
|
61
|
+
|
|
62
|
+
return Building()
|
|
63
|
+
if mapping_value and mapping_value.casefold() == "#microsoft.graph.desk".casefold():
|
|
64
|
+
from .desk import Desk
|
|
65
|
+
|
|
66
|
+
return Desk()
|
|
67
|
+
if mapping_value and mapping_value.casefold() == "#microsoft.graph.floor".casefold():
|
|
68
|
+
from .floor import Floor
|
|
69
|
+
|
|
70
|
+
return Floor()
|
|
46
71
|
if mapping_value and mapping_value.casefold() == "#microsoft.graph.room".casefold():
|
|
47
72
|
from .room import Room
|
|
48
73
|
|
|
@@ -51,6 +76,14 @@ class Place(Entity, Parsable):
|
|
|
51
76
|
from .room_list import RoomList
|
|
52
77
|
|
|
53
78
|
return RoomList()
|
|
79
|
+
if mapping_value and mapping_value.casefold() == "#microsoft.graph.section".casefold():
|
|
80
|
+
from .section import Section
|
|
81
|
+
|
|
82
|
+
return Section()
|
|
83
|
+
if mapping_value and mapping_value.casefold() == "#microsoft.graph.workspace".casefold():
|
|
84
|
+
from .workspace import Workspace
|
|
85
|
+
|
|
86
|
+
return Workspace()
|
|
54
87
|
return Place()
|
|
55
88
|
|
|
56
89
|
def get_field_deserializers(self,) -> dict[str, Callable[[ParseNode], None]]:
|
|
@@ -58,26 +91,40 @@ class Place(Entity, Parsable):
|
|
|
58
91
|
The deserialization information for the current model
|
|
59
92
|
Returns: dict[str, Callable[[ParseNode], None]]
|
|
60
93
|
"""
|
|
94
|
+
from .building import Building
|
|
61
95
|
from .check_in_claim import CheckInClaim
|
|
96
|
+
from .desk import Desk
|
|
62
97
|
from .entity import Entity
|
|
98
|
+
from .floor import Floor
|
|
63
99
|
from .outlook_geo_coordinates import OutlookGeoCoordinates
|
|
64
100
|
from .physical_address import PhysicalAddress
|
|
65
101
|
from .room import Room
|
|
66
102
|
from .room_list import RoomList
|
|
103
|
+
from .section import Section
|
|
104
|
+
from .workspace import Workspace
|
|
67
105
|
|
|
106
|
+
from .building import Building
|
|
68
107
|
from .check_in_claim import CheckInClaim
|
|
108
|
+
from .desk import Desk
|
|
69
109
|
from .entity import Entity
|
|
110
|
+
from .floor import Floor
|
|
70
111
|
from .outlook_geo_coordinates import OutlookGeoCoordinates
|
|
71
112
|
from .physical_address import PhysicalAddress
|
|
72
113
|
from .room import Room
|
|
73
114
|
from .room_list import RoomList
|
|
115
|
+
from .section import Section
|
|
116
|
+
from .workspace import Workspace
|
|
74
117
|
|
|
75
118
|
fields: dict[str, Callable[[Any], None]] = {
|
|
76
119
|
"address": lambda n : setattr(self, 'address', n.get_object_value(PhysicalAddress)),
|
|
77
120
|
"checkIns": lambda n : setattr(self, 'check_ins', n.get_collection_of_object_values(CheckInClaim)),
|
|
78
121
|
"displayName": lambda n : setattr(self, 'display_name', n.get_str_value()),
|
|
79
122
|
"geoCoordinates": lambda n : setattr(self, 'geo_coordinates', n.get_object_value(OutlookGeoCoordinates)),
|
|
123
|
+
"isWheelChairAccessible": lambda n : setattr(self, 'is_wheel_chair_accessible', n.get_bool_value()),
|
|
124
|
+
"label": lambda n : setattr(self, 'label', n.get_str_value()),
|
|
125
|
+
"parentId": lambda n : setattr(self, 'parent_id', n.get_str_value()),
|
|
80
126
|
"phone": lambda n : setattr(self, 'phone', n.get_str_value()),
|
|
127
|
+
"tags": lambda n : setattr(self, 'tags', n.get_collection_of_primitive_values(str)),
|
|
81
128
|
}
|
|
82
129
|
super_fields = super().get_field_deserializers()
|
|
83
130
|
fields.update(super_fields)
|
|
@@ -96,6 +143,10 @@ class Place(Entity, Parsable):
|
|
|
96
143
|
writer.write_collection_of_object_values("checkIns", self.check_ins)
|
|
97
144
|
writer.write_str_value("displayName", self.display_name)
|
|
98
145
|
writer.write_object_value("geoCoordinates", self.geo_coordinates)
|
|
146
|
+
writer.write_bool_value("isWheelChairAccessible", self.is_wheel_chair_accessible)
|
|
147
|
+
writer.write_str_value("label", self.label)
|
|
148
|
+
writer.write_str_value("parentId", self.parent_id)
|
|
99
149
|
writer.write_str_value("phone", self.phone)
|
|
150
|
+
writer.write_collection_of_primitive_values("tags", self.tags)
|
|
100
151
|
|
|
101
152
|
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
from collections.abc import Callable
|
|
3
|
+
from dataclasses import dataclass, field
|
|
4
|
+
from kiota_abstractions.serialization import AdditionalDataHolder, Parsable, ParseNode, SerializationWriter
|
|
5
|
+
from kiota_abstractions.store import BackedModel, BackingStore, BackingStoreFactorySingleton
|
|
6
|
+
from typing import Any, Optional, TYPE_CHECKING, Union
|
|
7
|
+
|
|
8
|
+
if TYPE_CHECKING:
|
|
9
|
+
from .assigned_place_mode import AssignedPlaceMode
|
|
10
|
+
from .drop_in_place_mode import DropInPlaceMode
|
|
11
|
+
from .reservable_place_mode import ReservablePlaceMode
|
|
12
|
+
|
|
13
|
+
@dataclass
|
|
14
|
+
class PlaceMode(AdditionalDataHolder, BackedModel, Parsable):
|
|
15
|
+
# Stores model information.
|
|
16
|
+
backing_store: BackingStore = field(default_factory=BackingStoreFactorySingleton(backing_store_factory=None).backing_store_factory.create_backing_store, repr=False)
|
|
17
|
+
|
|
18
|
+
# Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
|
19
|
+
additional_data: dict[str, Any] = field(default_factory=dict)
|
|
20
|
+
# The OdataType property
|
|
21
|
+
odata_type: Optional[str] = None
|
|
22
|
+
|
|
23
|
+
@staticmethod
|
|
24
|
+
def create_from_discriminator_value(parse_node: ParseNode) -> PlaceMode:
|
|
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: PlaceMode
|
|
29
|
+
"""
|
|
30
|
+
if parse_node is None:
|
|
31
|
+
raise TypeError("parse_node cannot be null.")
|
|
32
|
+
try:
|
|
33
|
+
child_node = parse_node.get_child_node("@odata.type")
|
|
34
|
+
mapping_value = child_node.get_str_value() if child_node else None
|
|
35
|
+
except AttributeError:
|
|
36
|
+
mapping_value = None
|
|
37
|
+
if mapping_value and mapping_value.casefold() == "#microsoft.graph.assignedPlaceMode".casefold():
|
|
38
|
+
from .assigned_place_mode import AssignedPlaceMode
|
|
39
|
+
|
|
40
|
+
return AssignedPlaceMode()
|
|
41
|
+
if mapping_value and mapping_value.casefold() == "#microsoft.graph.dropInPlaceMode".casefold():
|
|
42
|
+
from .drop_in_place_mode import DropInPlaceMode
|
|
43
|
+
|
|
44
|
+
return DropInPlaceMode()
|
|
45
|
+
if mapping_value and mapping_value.casefold() == "#microsoft.graph.reservablePlaceMode".casefold():
|
|
46
|
+
from .reservable_place_mode import ReservablePlaceMode
|
|
47
|
+
|
|
48
|
+
return ReservablePlaceMode()
|
|
49
|
+
return PlaceMode()
|
|
50
|
+
|
|
51
|
+
def get_field_deserializers(self,) -> dict[str, Callable[[ParseNode], None]]:
|
|
52
|
+
"""
|
|
53
|
+
The deserialization information for the current model
|
|
54
|
+
Returns: dict[str, Callable[[ParseNode], None]]
|
|
55
|
+
"""
|
|
56
|
+
from .assigned_place_mode import AssignedPlaceMode
|
|
57
|
+
from .drop_in_place_mode import DropInPlaceMode
|
|
58
|
+
from .reservable_place_mode import ReservablePlaceMode
|
|
59
|
+
|
|
60
|
+
from .assigned_place_mode import AssignedPlaceMode
|
|
61
|
+
from .drop_in_place_mode import DropInPlaceMode
|
|
62
|
+
from .reservable_place_mode import ReservablePlaceMode
|
|
63
|
+
|
|
64
|
+
fields: dict[str, Callable[[Any], None]] = {
|
|
65
|
+
"@odata.type": lambda n : setattr(self, 'odata_type', n.get_str_value()),
|
|
66
|
+
}
|
|
67
|
+
return fields
|
|
68
|
+
|
|
69
|
+
def serialize(self,writer: SerializationWriter) -> None:
|
|
70
|
+
"""
|
|
71
|
+
Serializes information the current object
|
|
72
|
+
param writer: Serialization writer to use to serialize this model
|
|
73
|
+
Returns: None
|
|
74
|
+
"""
|
|
75
|
+
if writer is None:
|
|
76
|
+
raise TypeError("writer cannot be null.")
|
|
77
|
+
writer.write_str_value("@odata.type", self.odata_type)
|
|
78
|
+
writer.write_additional_data_value(self.additional_data)
|
|
79
|
+
|
|
80
|
+
|
|
@@ -19,7 +19,7 @@ class PlannerPlanContainer(AdditionalDataHolder, BackedModel, Parsable):
|
|
|
19
19
|
container_id: Optional[str] = None
|
|
20
20
|
# The OdataType property
|
|
21
21
|
odata_type: Optional[str] = None
|
|
22
|
-
# The type of the resource that contains the plan. For supported types, see the previous table. Possible values are: group, unknownFutureValue, roster. Use the Prefer: include-unknown-enum-members request header to get the following
|
|
22
|
+
# The type of the resource that contains the plan. For supported types, see the previous table. Possible values are: group, unknownFutureValue, roster. Use the Prefer: include-unknown-enum-members request header to get the following members in this evolvable enum: roster. Optional.
|
|
23
23
|
type: Optional[PlannerContainerType] = None
|
|
24
24
|
# The full canonical URL of the container. Optional.
|
|
25
25
|
url: Optional[str] = None
|
|
@@ -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 ReservablePlaceMode(PlaceMode, Parsable):
|
|
14
|
+
# The OdataType property
|
|
15
|
+
odata_type: Optional[str] = "#microsoft.graph.reservablePlaceMode"
|
|
16
|
+
|
|
17
|
+
@staticmethod
|
|
18
|
+
def create_from_discriminator_value(parse_node: ParseNode) -> ReservablePlaceMode:
|
|
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: ReservablePlaceMode
|
|
23
|
+
"""
|
|
24
|
+
if parse_node is None:
|
|
25
|
+
raise TypeError("parse_node cannot be null.")
|
|
26
|
+
return ReservablePlaceMode()
|
|
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
|
+
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
from collections.abc import Callable
|
|
3
|
+
from dataclasses import dataclass, field
|
|
4
|
+
from kiota_abstractions.serialization import AdditionalDataHolder, Parsable, ParseNode, SerializationWriter
|
|
5
|
+
from kiota_abstractions.store import BackedModel, BackingStore, BackingStoreFactorySingleton
|
|
6
|
+
from typing import Any, Optional, TYPE_CHECKING, Union
|
|
7
|
+
|
|
8
|
+
if TYPE_CHECKING:
|
|
9
|
+
from .resource_link_type import ResourceLinkType
|
|
10
|
+
|
|
11
|
+
@dataclass
|
|
12
|
+
class ResourceLink(AdditionalDataHolder, BackedModel, Parsable):
|
|
13
|
+
# Stores model information.
|
|
14
|
+
backing_store: BackingStore = field(default_factory=BackingStoreFactorySingleton(backing_store_factory=None).backing_store_factory.create_backing_store, repr=False)
|
|
15
|
+
|
|
16
|
+
# 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
|
+
# The linkType property
|
|
19
|
+
link_type: Optional[ResourceLinkType] = None
|
|
20
|
+
# The name property
|
|
21
|
+
name: Optional[str] = None
|
|
22
|
+
# The OdataType property
|
|
23
|
+
odata_type: Optional[str] = None
|
|
24
|
+
# The value property
|
|
25
|
+
value: Optional[str] = None
|
|
26
|
+
|
|
27
|
+
@staticmethod
|
|
28
|
+
def create_from_discriminator_value(parse_node: ParseNode) -> ResourceLink:
|
|
29
|
+
"""
|
|
30
|
+
Creates a new instance of the appropriate class based on discriminator value
|
|
31
|
+
param parse_node: The parse node to use to read the discriminator value and create the object
|
|
32
|
+
Returns: ResourceLink
|
|
33
|
+
"""
|
|
34
|
+
if parse_node is None:
|
|
35
|
+
raise TypeError("parse_node cannot be null.")
|
|
36
|
+
return ResourceLink()
|
|
37
|
+
|
|
38
|
+
def get_field_deserializers(self,) -> dict[str, Callable[[ParseNode], None]]:
|
|
39
|
+
"""
|
|
40
|
+
The deserialization information for the current model
|
|
41
|
+
Returns: dict[str, Callable[[ParseNode], None]]
|
|
42
|
+
"""
|
|
43
|
+
from .resource_link_type import ResourceLinkType
|
|
44
|
+
|
|
45
|
+
from .resource_link_type import ResourceLinkType
|
|
46
|
+
|
|
47
|
+
fields: dict[str, Callable[[Any], None]] = {
|
|
48
|
+
"linkType": lambda n : setattr(self, 'link_type', n.get_enum_value(ResourceLinkType)),
|
|
49
|
+
"name": lambda n : setattr(self, 'name', n.get_str_value()),
|
|
50
|
+
"@odata.type": lambda n : setattr(self, 'odata_type', n.get_str_value()),
|
|
51
|
+
"value": lambda n : setattr(self, 'value', n.get_str_value()),
|
|
52
|
+
}
|
|
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
|
+
writer.write_enum_value("linkType", self.link_type)
|
|
64
|
+
writer.write_str_value("name", self.name)
|
|
65
|
+
writer.write_str_value("@odata.type", self.odata_type)
|
|
66
|
+
writer.write_str_value("value", self.value)
|
|
67
|
+
writer.write_additional_data_value(self.additional_data)
|
|
68
|
+
|
|
69
|
+
|
|
@@ -38,7 +38,7 @@ class RestoreSessionBase(Entity, Parsable):
|
|
|
38
38
|
restore_job_type: Optional[RestoreJobType] = None
|
|
39
39
|
# The number of metadata artifacts that belong to this restore session.
|
|
40
40
|
restore_session_artifact_count: Optional[RestoreSessionArtifactCount] = None
|
|
41
|
-
# Status of the restore session. The value is an aggregated status of the restored artifacts. The possible values are: draft, activating, active, completedWithError, completed, unknownFutureValue, failed. Use the Prefer: include-unknown-enum-members request header to get the following
|
|
41
|
+
# Status of the restore session. The value is an aggregated status of the restored artifacts. The possible values are: draft, activating, active, completedWithError, completed, unknownFutureValue, failed. Use the Prefer: include-unknown-enum-members request header to get the following members in this evolvable enum: failed.
|
|
42
42
|
status: Optional[RestoreSessionStatus] = None
|
|
43
43
|
|
|
44
44
|
@staticmethod
|
|
@@ -41,7 +41,7 @@ class RiskDetection(Entity, Parsable):
|
|
|
41
41
|
odata_type: Optional[str] = None
|
|
42
42
|
# Request ID of the sign-in associated with the risk detection. This property is null if the risk detection is not associated with a sign-in.
|
|
43
43
|
request_id: Optional[str] = None
|
|
44
|
-
# Details of the detected risk.
|
|
44
|
+
# Details of the detected risk.
|
|
45
45
|
risk_detail: Optional[RiskDetail] = None
|
|
46
46
|
# The type of risk event detected. The possible values are adminConfirmedUserCompromised, anomalousToken, anomalousUserActivity, anonymizedIPAddress, generic, impossibleTravel, investigationsThreatIntelligence, suspiciousSendingPatterns, leakedCredentials, maliciousIPAddress,malwareInfectedIPAddress, mcasSuspiciousInboxManipulationRules, newCountry, passwordSpray,riskyIPAddress, suspiciousAPITraffic, suspiciousBrowser,suspiciousInboxForwarding, suspiciousIPAddress, tokenIssuerAnomaly, unfamiliarFeatures, unlikelyTravel. If the risk detection is a premium detection, will show generic. For more information about each value, see Risk types and detection.
|
|
47
47
|
risk_event_type: Optional[str] = None
|
|
@@ -15,7 +15,7 @@ class RiskServicePrincipalActivity(AdditionalDataHolder, BackedModel, Parsable):
|
|
|
15
15
|
|
|
16
16
|
# Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
|
17
17
|
additional_data: dict[str, Any] = field(default_factory=dict)
|
|
18
|
-
# Details of the detected risk. Note: Details for this property are only available for Workload Identities Premium customers. Events in tenants without this license will be returned hidden.
|
|
18
|
+
# Details of the detected risk. Note: Details for this property are only available for Workload Identities Premium customers. Events in tenants without this license will be returned hidden.
|
|
19
19
|
detail: Optional[RiskDetail] = None
|
|
20
20
|
# The OdataType property
|
|
21
21
|
odata_type: Optional[str] = None
|
|
@@ -15,7 +15,7 @@ class RiskUserActivity(AdditionalDataHolder, BackedModel, Parsable):
|
|
|
15
15
|
|
|
16
16
|
# Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
|
17
17
|
additional_data: dict[str, Any] = field(default_factory=dict)
|
|
18
|
-
#
|
|
18
|
+
# For more information, see riskDetail.
|
|
19
19
|
detail: Optional[RiskDetail] = None
|
|
20
20
|
# The OdataType property
|
|
21
21
|
odata_type: Optional[str] = None
|
|
@@ -28,7 +28,7 @@ class RiskyServicePrincipal(Entity, Parsable):
|
|
|
28
28
|
is_processing: Optional[bool] = None
|
|
29
29
|
# The OdataType property
|
|
30
30
|
odata_type: Optional[str] = None
|
|
31
|
-
# Details of the detected risk. Note: Details for this property are only available for Workload Identities Premium customers. Events in tenants without this license will be returned hidden.
|
|
31
|
+
# Details of the detected risk. Note: Details for this property are only available for Workload Identities Premium customers. Events in tenants without this license will be returned hidden.
|
|
32
32
|
risk_detail: Optional[RiskDetail] = None
|
|
33
33
|
# The date and time that the risk state was last updated. The DateTimeOffset type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2021 is 2021-01-01T00:00:00Z. Supports $filter (eq).
|
|
34
34
|
risk_last_updated_date_time: Optional[datetime.datetime] = None
|
|
@@ -24,7 +24,7 @@ class RiskyUser(Entity, Parsable):
|
|
|
24
24
|
is_processing: Optional[bool] = None
|
|
25
25
|
# The OdataType property
|
|
26
26
|
odata_type: Optional[str] = None
|
|
27
|
-
#
|
|
27
|
+
# Details of the detected risk.
|
|
28
28
|
risk_detail: Optional[RiskDetail] = None
|
|
29
29
|
# The date and time that the risky user was last updated. The DateTimeOffset type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z.
|
|
30
30
|
risk_last_updated_date_time: Optional[datetime.datetime] = None
|
msgraph/generated/models/room.py
CHANGED
|
@@ -30,14 +30,8 @@ class Room(Place, Parsable):
|
|
|
30
30
|
floor_label: Optional[str] = None
|
|
31
31
|
# Specifies the floor number that the room is on.
|
|
32
32
|
floor_number: Optional[int] = None
|
|
33
|
-
# Specifies whether the room is wheelchair accessible.
|
|
34
|
-
is_wheel_chair_accessible: Optional[bool] = None
|
|
35
|
-
# Specifies a descriptive label for the room, for example, a number or name.
|
|
36
|
-
label: Optional[str] = None
|
|
37
33
|
# Specifies a nickname for the room, for example, 'conf room'.
|
|
38
34
|
nickname: Optional[str] = None
|
|
39
|
-
# Specifies other features of the room, for example, details like the type of view or furniture type.
|
|
40
|
-
tags: Optional[list[str]] = None
|
|
41
35
|
# Specifies the name of the video device in the room.
|
|
42
36
|
video_device_name: Optional[str] = None
|
|
43
37
|
|
|
@@ -72,10 +66,7 @@ class Room(Place, Parsable):
|
|
|
72
66
|
"emailAddress": lambda n : setattr(self, 'email_address', n.get_str_value()),
|
|
73
67
|
"floorLabel": lambda n : setattr(self, 'floor_label', n.get_str_value()),
|
|
74
68
|
"floorNumber": lambda n : setattr(self, 'floor_number', n.get_int_value()),
|
|
75
|
-
"isWheelChairAccessible": lambda n : setattr(self, 'is_wheel_chair_accessible', n.get_bool_value()),
|
|
76
|
-
"label": lambda n : setattr(self, 'label', n.get_str_value()),
|
|
77
69
|
"nickname": lambda n : setattr(self, 'nickname', n.get_str_value()),
|
|
78
|
-
"tags": lambda n : setattr(self, 'tags', n.get_collection_of_primitive_values(str)),
|
|
79
70
|
"videoDeviceName": lambda n : setattr(self, 'video_device_name', n.get_str_value()),
|
|
80
71
|
}
|
|
81
72
|
super_fields = super().get_field_deserializers()
|
|
@@ -99,10 +90,7 @@ class Room(Place, Parsable):
|
|
|
99
90
|
writer.write_str_value("emailAddress", self.email_address)
|
|
100
91
|
writer.write_str_value("floorLabel", self.floor_label)
|
|
101
92
|
writer.write_int_value("floorNumber", self.floor_number)
|
|
102
|
-
writer.write_bool_value("isWheelChairAccessible", self.is_wheel_chair_accessible)
|
|
103
|
-
writer.write_str_value("label", self.label)
|
|
104
93
|
writer.write_str_value("nickname", self.nickname)
|
|
105
|
-
writer.write_collection_of_primitive_values("tags", self.tags)
|
|
106
94
|
writer.write_str_value("videoDeviceName", self.video_device_name)
|
|
107
95
|
|
|
108
96
|
|
|
@@ -7,6 +7,7 @@ from typing import Any, Optional, TYPE_CHECKING, Union
|
|
|
7
7
|
if TYPE_CHECKING:
|
|
8
8
|
from .place import Place
|
|
9
9
|
from .room import Room
|
|
10
|
+
from .workspace import Workspace
|
|
10
11
|
|
|
11
12
|
from .place import Place
|
|
12
13
|
|
|
@@ -18,6 +19,8 @@ class RoomList(Place, Parsable):
|
|
|
18
19
|
email_address: Optional[str] = None
|
|
19
20
|
# The rooms property
|
|
20
21
|
rooms: Optional[list[Room]] = None
|
|
22
|
+
# The workspaces property
|
|
23
|
+
workspaces: Optional[list[Workspace]] = None
|
|
21
24
|
|
|
22
25
|
@staticmethod
|
|
23
26
|
def create_from_discriminator_value(parse_node: ParseNode) -> RoomList:
|
|
@@ -37,13 +40,16 @@ class RoomList(Place, Parsable):
|
|
|
37
40
|
"""
|
|
38
41
|
from .place import Place
|
|
39
42
|
from .room import Room
|
|
43
|
+
from .workspace import Workspace
|
|
40
44
|
|
|
41
45
|
from .place import Place
|
|
42
46
|
from .room import Room
|
|
47
|
+
from .workspace import Workspace
|
|
43
48
|
|
|
44
49
|
fields: dict[str, Callable[[Any], None]] = {
|
|
45
50
|
"emailAddress": lambda n : setattr(self, 'email_address', n.get_str_value()),
|
|
46
51
|
"rooms": lambda n : setattr(self, 'rooms', n.get_collection_of_object_values(Room)),
|
|
52
|
+
"workspaces": lambda n : setattr(self, 'workspaces', n.get_collection_of_object_values(Workspace)),
|
|
47
53
|
}
|
|
48
54
|
super_fields = super().get_field_deserializers()
|
|
49
55
|
fields.update(super_fields)
|
|
@@ -60,5 +66,6 @@ class RoomList(Place, Parsable):
|
|
|
60
66
|
super().serialize(writer)
|
|
61
67
|
writer.write_str_value("emailAddress", self.email_address)
|
|
62
68
|
writer.write_collection_of_object_values("rooms", self.rooms)
|
|
69
|
+
writer.write_collection_of_object_values("workspaces", self.workspaces)
|
|
63
70
|
|
|
64
71
|
|
|
@@ -32,7 +32,7 @@ class SearchRequest(AdditionalDataHolder, BackedModel, Parsable):
|
|
|
32
32
|
content_sources: Optional[list[str]] = None
|
|
33
33
|
# This triggers hybrid sort for messages : the first 3 messages are the most relevant. This property is only applicable to entityType=message. Optional.
|
|
34
34
|
enable_top_results: Optional[bool] = None
|
|
35
|
-
# One or more types of resources expected in the response. Possible values are: event, message, driveItem, externalItem, site, list, listItem, drive, chatMessage, person, acronym, bookmark. Use the Prefer: include-unknown-enum-members request header to get the following
|
|
35
|
+
# One or more types of resources expected in the response. Possible values are: event, message, driveItem, externalItem, site, list, listItem, drive, chatMessage, person, acronym, bookmark. Use the Prefer: include-unknown-enum-members request header to get the following members in this evolvable enum: chatMessage, person, acronym, bookmark. See known limitations for those combinations of two or more entity types that are supported in the same search request. Required.
|
|
36
36
|
entity_types: Optional[list[EntityType]] = None
|
|
37
37
|
# Contains the fields to be returned for each resource object specified in entityTypes, allowing customization of the fields returned by default; otherwise, including additional fields such as custom managed properties from SharePoint and OneDrive, or custom fields in externalItem from the content that Microsoft 365 Copilot connectors bring in. The fields property can use the semantic labels applied to properties. For example, if a property is labeled as title, you can retrieve it using the following syntax: label_title. Optional.
|
|
38
38
|
fields: Optional[list[str]] = None
|
|
@@ -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 import Place
|
|
9
|
+
|
|
10
|
+
from .place import Place
|
|
11
|
+
|
|
12
|
+
@dataclass
|
|
13
|
+
class Section(Place, Parsable):
|
|
14
|
+
# The OdataType property
|
|
15
|
+
odata_type: Optional[str] = "#microsoft.graph.section"
|
|
16
|
+
|
|
17
|
+
@staticmethod
|
|
18
|
+
def create_from_discriminator_value(parse_node: ParseNode) -> Section:
|
|
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: Section
|
|
23
|
+
"""
|
|
24
|
+
if parse_node is None:
|
|
25
|
+
raise TypeError("parse_node cannot be null.")
|
|
26
|
+
return Section()
|
|
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 import Place
|
|
34
|
+
|
|
35
|
+
from .place import Place
|
|
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,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 .section import Section
|
|
10
|
+
|
|
11
|
+
from .base_collection_pagination_count_response import BaseCollectionPaginationCountResponse
|
|
12
|
+
|
|
13
|
+
@dataclass
|
|
14
|
+
class SectionCollectionResponse(BaseCollectionPaginationCountResponse, Parsable):
|
|
15
|
+
# The value property
|
|
16
|
+
value: Optional[list[Section]] = None
|
|
17
|
+
|
|
18
|
+
@staticmethod
|
|
19
|
+
def create_from_discriminator_value(parse_node: ParseNode) -> SectionCollectionResponse:
|
|
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: SectionCollectionResponse
|
|
24
|
+
"""
|
|
25
|
+
if parse_node is None:
|
|
26
|
+
raise TypeError("parse_node cannot be null.")
|
|
27
|
+
return SectionCollectionResponse()
|
|
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 .section import Section
|
|
36
|
+
|
|
37
|
+
from .base_collection_pagination_count_response import BaseCollectionPaginationCountResponse
|
|
38
|
+
from .section import Section
|
|
39
|
+
|
|
40
|
+
fields: dict[str, Callable[[Any], None]] = {
|
|
41
|
+
"value": lambda n : setattr(self, 'value', n.get_collection_of_object_values(Section)),
|
|
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
|
+
|