msgraph-sdk 1.51.0__py3-none-any.whl → 1.52.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/admin/admin_request_builder.py +10 -0
- msgraph/generated/admin/teams/teams_request_builder.py +198 -0
- msgraph/generated/admin/teams/user_configurations/count/count_request_builder.py +104 -0
- msgraph/generated/admin/teams/user_configurations/item/teams_user_configuration_item_request_builder.py +199 -0
- msgraph/generated/admin/teams/user_configurations/item/user/mailbox_settings/mailbox_settings_request_builder.py +152 -0
- msgraph/generated/admin/teams/user_configurations/item/user/service_provisioning_errors/count/count_request_builder.py +104 -0
- msgraph/generated/admin/teams/user_configurations/item/user/service_provisioning_errors/service_provisioning_errors_request_builder.py +147 -0
- msgraph/generated/admin/teams/user_configurations/item/user/user_request_builder.py +127 -0
- msgraph/generated/admin/teams/user_configurations/user_configurations_request_builder.py +209 -0
- msgraph/generated/communications/adhoc_calls/adhoc_calls_request_builder.py +208 -0
- msgraph/generated/communications/adhoc_calls/count/count_request_builder.py +104 -0
- msgraph/generated/communications/adhoc_calls/item/adhoc_call_item_request_builder.py +208 -0
- msgraph/generated/communications/adhoc_calls/item/recordings/count/count_request_builder.py +104 -0
- msgraph/generated/communications/adhoc_calls/item/recordings/delta/delta_get_response.py +58 -0
- msgraph/generated/communications/adhoc_calls/item/recordings/delta/delta_request_builder.py +137 -0
- msgraph/generated/communications/adhoc_calls/item/recordings/item/call_recording_item_request_builder.py +198 -0
- msgraph/generated/communications/adhoc_calls/item/recordings/item/content/content_request_builder.py +160 -0
- msgraph/generated/communications/adhoc_calls/item/recordings/recordings_request_builder.py +218 -0
- msgraph/generated/communications/adhoc_calls/item/transcripts/count/count_request_builder.py +104 -0
- msgraph/generated/communications/adhoc_calls/item/transcripts/delta/delta_get_response.py +58 -0
- msgraph/generated/communications/adhoc_calls/item/transcripts/delta/delta_request_builder.py +137 -0
- msgraph/generated/communications/adhoc_calls/item/transcripts/item/call_transcript_item_request_builder.py +208 -0
- msgraph/generated/communications/adhoc_calls/item/transcripts/item/content/content_request_builder.py +160 -0
- msgraph/generated/communications/adhoc_calls/item/transcripts/item/metadata_content/metadata_content_request_builder.py +157 -0
- msgraph/generated/communications/adhoc_calls/item/transcripts/transcripts_request_builder.py +218 -0
- msgraph/generated/communications/communications_request_builder.py +10 -0
- msgraph/generated/communications/presences/item/clear_automatic_location/clear_automatic_location_request_builder.py +79 -0
- msgraph/generated/communications/presences/item/clear_location/clear_location_request_builder.py +79 -0
- msgraph/generated/communications/presences/item/presence_item_request_builder.py +40 -0
- msgraph/generated/communications/presences/item/set_automatic_location/set_automatic_location_post_request_body.py +61 -0
- msgraph/generated/communications/presences/item/set_automatic_location/set_automatic_location_request_builder.py +87 -0
- msgraph/generated/communications/presences/item/set_manual_location/set_manual_location_post_request_body.py +61 -0
- msgraph/generated/communications/presences/item/set_manual_location/set_manual_location_request_builder.py +87 -0
- msgraph/generated/device_management/virtual_endpoint/cloud_p_cs/item/cloud_p_c_item_request_builder.py +20 -0
- msgraph/generated/device_management/virtual_endpoint/cloud_p_cs/item/reprovision/reprovision_post_request_body.py +64 -0
- msgraph/generated/device_management/virtual_endpoint/cloud_p_cs/item/reprovision/reprovision_request_builder.py +87 -0
- msgraph/generated/device_management/virtual_endpoint/cloud_p_cs/item/retrieve_cloud_pc_launch_detail/retrieve_cloud_pc_launch_detail_request_builder.py +82 -0
- msgraph/generated/device_management/virtual_endpoint/report/report_request_builder.py +198 -0
- msgraph/generated/device_management/virtual_endpoint/report/retrieve_cloud_pc_recommendation_reports/retrieve_cloud_pc_recommendation_reports_post_request_body.py +85 -0
- msgraph/generated/device_management/virtual_endpoint/report/retrieve_cloud_pc_recommendation_reports/retrieve_cloud_pc_recommendation_reports_request_builder.py +87 -0
- msgraph/generated/device_management/virtual_endpoint/virtual_endpoint_request_builder.py +10 -0
- msgraph/generated/drives/item/recent/recent_request_builder.py +3 -0
- msgraph/generated/drives/item/shared_with_me/shared_with_me_request_builder.py +3 -0
- msgraph/generated/kiota-dom-export.txt +1954 -1
- msgraph/generated/kiota-lock.json +1 -1
- msgraph/generated/models/action_item.py +62 -0
- msgraph/generated/models/adhoc_call.py +67 -0
- msgraph/generated/models/adhoc_call_collection_response.py +58 -0
- msgraph/generated/models/admin.py +7 -0
- msgraph/generated/models/ai_online_meeting.py +60 -0
- msgraph/generated/models/ai_user.py +7 -0
- msgraph/generated/models/allowed_target_scope.py +1 -0
- msgraph/generated/models/building.py +7 -0
- msgraph/generated/models/call_ai_insight.py +91 -0
- msgraph/generated/models/call_ai_insight_view_point.py +61 -0
- msgraph/generated/models/cloud_communications.py +7 -0
- msgraph/generated/models/cloud_pc_launch_detail.py +73 -0
- msgraph/generated/models/cloud_pc_operating_system.py +7 -0
- msgraph/generated/models/cloud_pc_recommendation_report_type.py +6 -0
- msgraph/generated/models/cloud_pc_report.py +53 -0
- msgraph/generated/models/cloud_pc_user_account_type.py +7 -0
- msgraph/generated/models/desk.py +8 -1
- msgraph/generated/models/entity.py +84 -0
- msgraph/generated/models/file_storage.py +16 -2
- msgraph/generated/models/file_storage_container.py +7 -0
- msgraph/generated/models/file_storage_container_billing_classification.py +8 -0
- msgraph/generated/models/file_storage_container_billing_status.py +7 -0
- msgraph/generated/models/file_storage_container_type.py +96 -0
- msgraph/generated/models/file_storage_container_type_app_permission.py +20 -0
- msgraph/generated/models/file_storage_container_type_app_permission_grant.py +69 -0
- msgraph/generated/models/file_storage_container_type_app_permission_grant_collection_response.py +58 -0
- msgraph/generated/models/file_storage_container_type_collection_response.py +58 -0
- msgraph/generated/models/file_storage_container_type_registration.py +103 -0
- msgraph/generated/models/file_storage_container_type_registration_collection_response.py +58 -0
- msgraph/generated/models/file_storage_container_type_registration_settings.py +89 -0
- msgraph/generated/models/file_storage_container_type_settings.py +96 -0
- msgraph/generated/models/file_storage_container_type_settings_override.py +11 -0
- msgraph/generated/models/list_item.py +7 -0
- msgraph/generated/models/max_work_location_details.py +9 -0
- msgraph/generated/models/meeting_note.py +69 -0
- msgraph/generated/models/meeting_note_subpoint.py +58 -0
- msgraph/generated/models/mention_event.py +70 -0
- msgraph/generated/models/online_meeting_base.py +20 -0
- msgraph/generated/models/online_meeting_sensitivity_label_assignment.py +54 -0
- msgraph/generated/models/place_feature_enablement.py +8 -0
- msgraph/generated/models/place_mode.py +7 -0
- msgraph/generated/models/presence.py +7 -0
- msgraph/generated/models/restore_point_search_result.py +1 -1
- msgraph/generated/models/room.py +11 -0
- msgraph/generated/models/security/active_directory_domain_evidence.py +61 -0
- msgraph/generated/models/security/alert_evidence.py +7 -0
- msgraph/generated/models/security/device_evidence.py +8 -1
- msgraph/generated/models/security/ediscovery_case.py +7 -0
- msgraph/generated/models/security/ediscovery_case_member.py +68 -0
- msgraph/generated/models/security/ediscovery_case_member_collection_response.py +58 -0
- msgraph/generated/models/security/mailbox_configuration_evidence.py +6 -6
- msgraph/generated/models/security/recipient_type.py +7 -0
- msgraph/generated/models/sensitivity_label.py +4 -0
- msgraph/generated/models/subject_set.py +7 -0
- msgraph/generated/models/target_agent_identity_sponsors_or_owners.py +53 -0
- msgraph/generated/models/teams_administration/account_type.py +11 -0
- msgraph/generated/models/teams_administration/assigned_telephone_number.py +65 -0
- msgraph/generated/models/teams_administration/assignment_category.py +8 -0
- msgraph/generated/models/teams_administration/assignment_type.py +7 -0
- msgraph/generated/models/teams_administration/effective_policy_assignment.py +65 -0
- msgraph/generated/models/teams_administration/policy_assignment.py +73 -0
- msgraph/generated/models/teams_administration/teams_admin_root.py +60 -0
- msgraph/generated/models/teams_administration/teams_user_configuration.py +106 -0
- msgraph/generated/models/teams_administration/teams_user_configuration_collection_response.py +58 -0
- msgraph/generated/models/time_off_details.py +58 -0
- msgraph/generated/models/unavailable_place_mode.py +57 -0
- msgraph/generated/models/user.py +14 -0
- msgraph/generated/models/user_settings.py +8 -1
- msgraph/generated/models/user_work_location.py +72 -0
- msgraph/generated/models/virtual_endpoint.py +7 -0
- msgraph/generated/models/windows365_switch_compatibility_failure_reason_type.py +7 -0
- msgraph/generated/models/work_hours_and_locations_setting.py +74 -0
- msgraph/generated/models/work_location_source.py +9 -0
- msgraph/generated/models/work_location_type.py +9 -0
- msgraph/generated/models/work_location_update_scope.py +7 -0
- msgraph/generated/models/work_plan_occurrence.py +86 -0
- msgraph/generated/models/work_plan_occurrence_collection_response.py +58 -0
- msgraph/generated/models/work_plan_recurrence.py +82 -0
- msgraph/generated/models/work_plan_recurrence_collection_response.py +58 -0
- msgraph/generated/models/workspace.py +5 -1
- msgraph/generated/security/cases/ediscovery_cases/item/case_members/case_members_request_builder.py +210 -0
- msgraph/generated/security/cases/ediscovery_cases/item/case_members/count/count_request_builder.py +104 -0
- msgraph/generated/security/cases/ediscovery_cases/item/case_members/item/ediscovery_case_member_item_request_builder.py +189 -0
- msgraph/generated/security/cases/ediscovery_cases/item/ediscovery_case_item_request_builder.py +10 -0
- msgraph/generated/security/secure_score_control_profiles/item/secure_score_control_profile_item_request_builder.py +2 -2
- msgraph/generated/solutions/backup_restore/service_apps/item/service_app_item_request_builder.py +2 -2
- msgraph/generated/storage/file_storage/container_type_registrations/container_type_registrations_request_builder.py +209 -0
- msgraph/generated/storage/file_storage/container_type_registrations/count/count_request_builder.py +104 -0
- msgraph/generated/storage/file_storage/container_type_registrations/item/application_permission_grants/application_permission_grants_request_builder.py +209 -0
- msgraph/generated/storage/file_storage/container_type_registrations/item/application_permission_grants/count/count_request_builder.py +104 -0
- msgraph/generated/storage/file_storage/container_type_registrations/item/application_permission_grants/item/file_storage_container_type_app_permission_grant_app_item_request_builder.py +191 -0
- msgraph/generated/storage/file_storage/container_type_registrations/item/file_storage_container_type_registration_item_request_builder.py +201 -0
- msgraph/generated/storage/file_storage/container_types/container_types_request_builder.py +210 -0
- msgraph/generated/storage/file_storage/container_types/count/count_request_builder.py +104 -0
- msgraph/generated/storage/file_storage/container_types/item/file_storage_container_type_item_request_builder.py +191 -0
- msgraph/generated/storage/file_storage/containers/item/file_storage_container_item_request_builder.py +3 -3
- msgraph/generated/storage/file_storage/deleted_containers/deleted_containers_request_builder.py +3 -3
- msgraph/generated/storage/file_storage/deleted_containers/item/file_storage_container_item_request_builder.py +3 -3
- msgraph/generated/storage/file_storage/file_storage_request_builder.py +20 -0
- msgraph/generated/users/item/adhoc_calls/adhoc_calls_request_builder.py +208 -0
- msgraph/generated/users/item/adhoc_calls/count/count_request_builder.py +104 -0
- msgraph/generated/users/item/adhoc_calls/item/adhoc_call_item_request_builder.py +208 -0
- msgraph/generated/users/item/adhoc_calls/item/recordings/count/count_request_builder.py +104 -0
- msgraph/generated/users/item/adhoc_calls/item/recordings/delta/delta_get_response.py +58 -0
- msgraph/generated/users/item/adhoc_calls/item/recordings/delta/delta_request_builder.py +137 -0
- msgraph/generated/users/item/adhoc_calls/item/recordings/item/call_recording_item_request_builder.py +199 -0
- msgraph/generated/users/item/adhoc_calls/item/recordings/item/content/content_request_builder.py +161 -0
- msgraph/generated/users/item/adhoc_calls/item/recordings/recordings_request_builder.py +218 -0
- msgraph/generated/users/item/adhoc_calls/item/transcripts/count/count_request_builder.py +104 -0
- msgraph/generated/users/item/adhoc_calls/item/transcripts/delta/delta_get_response.py +58 -0
- msgraph/generated/users/item/adhoc_calls/item/transcripts/delta/delta_request_builder.py +137 -0
- msgraph/generated/users/item/adhoc_calls/item/transcripts/item/call_transcript_item_request_builder.py +209 -0
- msgraph/generated/users/item/adhoc_calls/item/transcripts/item/content/content_request_builder.py +161 -0
- msgraph/generated/users/item/adhoc_calls/item/transcripts/item/metadata_content/metadata_content_request_builder.py +157 -0
- msgraph/generated/users/item/adhoc_calls/item/transcripts/transcripts_request_builder.py +218 -0
- msgraph/generated/users/item/cloud_p_cs/item/cloud_p_c_item_request_builder.py +20 -0
- msgraph/generated/users/item/cloud_p_cs/item/reprovision/reprovision_post_request_body.py +64 -0
- msgraph/generated/users/item/cloud_p_cs/item/reprovision/reprovision_request_builder.py +87 -0
- msgraph/generated/users/item/cloud_p_cs/item/retrieve_cloud_pc_launch_detail/retrieve_cloud_pc_launch_detail_request_builder.py +82 -0
- msgraph/generated/users/item/mail_folders/item/child_folders/item/messages/delta/delta_request_builder.py +3 -3
- msgraph/generated/users/item/mail_folders/item/messages/delta/delta_request_builder.py +3 -3
- msgraph/generated/users/item/messages/delta/delta_request_builder.py +3 -3
- msgraph/generated/users/item/on_premises_sync_behavior/on_premises_sync_behavior_request_builder.py +188 -0
- msgraph/generated/users/item/presence/clear_automatic_location/clear_automatic_location_request_builder.py +79 -0
- msgraph/generated/users/item/presence/clear_location/clear_location_request_builder.py +79 -0
- msgraph/generated/users/item/presence/presence_request_builder.py +40 -0
- msgraph/generated/users/item/presence/set_automatic_location/set_automatic_location_post_request_body.py +61 -0
- msgraph/generated/users/item/presence/set_automatic_location/set_automatic_location_request_builder.py +87 -0
- msgraph/generated/users/item/presence/set_manual_location/set_manual_location_post_request_body.py +61 -0
- msgraph/generated/users/item/presence/set_manual_location/set_manual_location_request_builder.py +87 -0
- msgraph/generated/users/item/settings/settings_request_builder.py +10 -0
- msgraph/generated/users/item/settings/windows/item/windows_setting_item_request_builder.py +3 -3
- msgraph/generated/users/item/settings/windows/windows_request_builder.py +3 -3
- msgraph/generated/users/item/settings/work_hours_and_locations/occurrences/count/count_request_builder.py +104 -0
- msgraph/generated/users/item/settings/work_hours_and_locations/occurrences/item/work_plan_occurrence_item_request_builder.py +188 -0
- msgraph/generated/users/item/settings/work_hours_and_locations/occurrences/occurrences_request_builder.py +218 -0
- msgraph/generated/users/item/settings/work_hours_and_locations/occurrences/set_current_location/set_current_location_post_request_body.py +68 -0
- msgraph/generated/users/item/settings/work_hours_and_locations/occurrences/set_current_location/set_current_location_request_builder.py +87 -0
- msgraph/generated/users/item/settings/work_hours_and_locations/occurrences_view_with_start_date_time_with_end_date_time/occurrences_view_with_start_date_time_with_end_date_time_get_response.py +58 -0
- msgraph/generated/users/item/settings/work_hours_and_locations/occurrences_view_with_start_date_time_with_end_date_time/occurrences_view_with_start_date_time_with_end_date_time_request_builder.py +143 -0
- msgraph/generated/users/item/settings/work_hours_and_locations/recurrences/count/count_request_builder.py +104 -0
- msgraph/generated/users/item/settings/work_hours_and_locations/recurrences/item/work_plan_recurrence_item_request_builder.py +188 -0
- msgraph/generated/users/item/settings/work_hours_and_locations/recurrences/recurrences_request_builder.py +208 -0
- msgraph/generated/users/item/settings/work_hours_and_locations/work_hours_and_locations_request_builder.py +188 -0
- msgraph/generated/users/item/user_item_request_builder.py +20 -0
- {msgraph_sdk-1.51.0.dist-info → msgraph_sdk-1.52.0.dist-info}/METADATA +1 -1
- {msgraph_sdk-1.51.0.dist-info → msgraph_sdk-1.52.0.dist-info}/RECORD +195 -55
- {msgraph_sdk-1.51.0.dist-info → msgraph_sdk-1.52.0.dist-info}/WHEEL +0 -0
- {msgraph_sdk-1.51.0.dist-info → msgraph_sdk-1.52.0.dist-info}/licenses/LICENSE +0 -0
|
@@ -0,0 +1,74 @@
|
|
|
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
|
+
from .max_work_location_details import MaxWorkLocationDetails
|
|
10
|
+
from .work_plan_occurrence import WorkPlanOccurrence
|
|
11
|
+
from .work_plan_recurrence import WorkPlanRecurrence
|
|
12
|
+
|
|
13
|
+
from .entity import Entity
|
|
14
|
+
|
|
15
|
+
@dataclass
|
|
16
|
+
class WorkHoursAndLocationsSetting(Entity, Parsable):
|
|
17
|
+
# The maxSharedWorkLocationDetails property
|
|
18
|
+
max_shared_work_location_details: Optional[MaxWorkLocationDetails] = None
|
|
19
|
+
# Collection of work plan occurrences.
|
|
20
|
+
occurrences: Optional[list[WorkPlanOccurrence]] = None
|
|
21
|
+
# The OdataType property
|
|
22
|
+
odata_type: Optional[str] = None
|
|
23
|
+
# Collection of recurring work plans defined by the user.
|
|
24
|
+
recurrences: Optional[list[WorkPlanRecurrence]] = None
|
|
25
|
+
|
|
26
|
+
@staticmethod
|
|
27
|
+
def create_from_discriminator_value(parse_node: ParseNode) -> WorkHoursAndLocationsSetting:
|
|
28
|
+
"""
|
|
29
|
+
Creates a new instance of the appropriate class based on discriminator value
|
|
30
|
+
param parse_node: The parse node to use to read the discriminator value and create the object
|
|
31
|
+
Returns: WorkHoursAndLocationsSetting
|
|
32
|
+
"""
|
|
33
|
+
if parse_node is None:
|
|
34
|
+
raise TypeError("parse_node cannot be null.")
|
|
35
|
+
return WorkHoursAndLocationsSetting()
|
|
36
|
+
|
|
37
|
+
def get_field_deserializers(self,) -> dict[str, Callable[[ParseNode], None]]:
|
|
38
|
+
"""
|
|
39
|
+
The deserialization information for the current model
|
|
40
|
+
Returns: dict[str, Callable[[ParseNode], None]]
|
|
41
|
+
"""
|
|
42
|
+
from .entity import Entity
|
|
43
|
+
from .max_work_location_details import MaxWorkLocationDetails
|
|
44
|
+
from .work_plan_occurrence import WorkPlanOccurrence
|
|
45
|
+
from .work_plan_recurrence import WorkPlanRecurrence
|
|
46
|
+
|
|
47
|
+
from .entity import Entity
|
|
48
|
+
from .max_work_location_details import MaxWorkLocationDetails
|
|
49
|
+
from .work_plan_occurrence import WorkPlanOccurrence
|
|
50
|
+
from .work_plan_recurrence import WorkPlanRecurrence
|
|
51
|
+
|
|
52
|
+
fields: dict[str, Callable[[Any], None]] = {
|
|
53
|
+
"maxSharedWorkLocationDetails": lambda n : setattr(self, 'max_shared_work_location_details', n.get_enum_value(MaxWorkLocationDetails)),
|
|
54
|
+
"occurrences": lambda n : setattr(self, 'occurrences', n.get_collection_of_object_values(WorkPlanOccurrence)),
|
|
55
|
+
"recurrences": lambda n : setattr(self, 'recurrences', n.get_collection_of_object_values(WorkPlanRecurrence)),
|
|
56
|
+
}
|
|
57
|
+
super_fields = super().get_field_deserializers()
|
|
58
|
+
fields.update(super_fields)
|
|
59
|
+
return fields
|
|
60
|
+
|
|
61
|
+
def serialize(self,writer: SerializationWriter) -> None:
|
|
62
|
+
"""
|
|
63
|
+
Serializes information the current object
|
|
64
|
+
param writer: Serialization writer to use to serialize this model
|
|
65
|
+
Returns: None
|
|
66
|
+
"""
|
|
67
|
+
if writer is None:
|
|
68
|
+
raise TypeError("writer cannot be null.")
|
|
69
|
+
super().serialize(writer)
|
|
70
|
+
writer.write_enum_value("maxSharedWorkLocationDetails", self.max_shared_work_location_details)
|
|
71
|
+
writer.write_collection_of_object_values("occurrences", self.occurrences)
|
|
72
|
+
writer.write_collection_of_object_values("recurrences", self.recurrences)
|
|
73
|
+
|
|
74
|
+
|
|
@@ -0,0 +1,86 @@
|
|
|
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 .date_time_time_zone import DateTimeTimeZone
|
|
9
|
+
from .entity import Entity
|
|
10
|
+
from .time_off_details import TimeOffDetails
|
|
11
|
+
from .work_location_type import WorkLocationType
|
|
12
|
+
|
|
13
|
+
from .entity import Entity
|
|
14
|
+
|
|
15
|
+
@dataclass
|
|
16
|
+
class WorkPlanOccurrence(Entity, Parsable):
|
|
17
|
+
# The end property
|
|
18
|
+
end: Optional[DateTimeTimeZone] = None
|
|
19
|
+
# The OdataType property
|
|
20
|
+
odata_type: Optional[str] = None
|
|
21
|
+
# Identifier of a place from the Microsoft Graph Places Directory API. Only applicable when workLocationType is set to office.
|
|
22
|
+
place_id: Optional[str] = None
|
|
23
|
+
# The identifier of the parent recurrence pattern that generated this occurrence. The value is null for time-off occurrences because they don't have a parent recurrence.
|
|
24
|
+
recurrence_id: Optional[str] = None
|
|
25
|
+
# The start property
|
|
26
|
+
start: Optional[DateTimeTimeZone] = None
|
|
27
|
+
# The details about the time off. Only applicable when workLocationType is set to timeOff.
|
|
28
|
+
time_off_details: Optional[TimeOffDetails] = None
|
|
29
|
+
# The workLocationType property
|
|
30
|
+
work_location_type: Optional[WorkLocationType] = None
|
|
31
|
+
|
|
32
|
+
@staticmethod
|
|
33
|
+
def create_from_discriminator_value(parse_node: ParseNode) -> WorkPlanOccurrence:
|
|
34
|
+
"""
|
|
35
|
+
Creates a new instance of the appropriate class based on discriminator value
|
|
36
|
+
param parse_node: The parse node to use to read the discriminator value and create the object
|
|
37
|
+
Returns: WorkPlanOccurrence
|
|
38
|
+
"""
|
|
39
|
+
if parse_node is None:
|
|
40
|
+
raise TypeError("parse_node cannot be null.")
|
|
41
|
+
return WorkPlanOccurrence()
|
|
42
|
+
|
|
43
|
+
def get_field_deserializers(self,) -> dict[str, Callable[[ParseNode], None]]:
|
|
44
|
+
"""
|
|
45
|
+
The deserialization information for the current model
|
|
46
|
+
Returns: dict[str, Callable[[ParseNode], None]]
|
|
47
|
+
"""
|
|
48
|
+
from .date_time_time_zone import DateTimeTimeZone
|
|
49
|
+
from .entity import Entity
|
|
50
|
+
from .time_off_details import TimeOffDetails
|
|
51
|
+
from .work_location_type import WorkLocationType
|
|
52
|
+
|
|
53
|
+
from .date_time_time_zone import DateTimeTimeZone
|
|
54
|
+
from .entity import Entity
|
|
55
|
+
from .time_off_details import TimeOffDetails
|
|
56
|
+
from .work_location_type import WorkLocationType
|
|
57
|
+
|
|
58
|
+
fields: dict[str, Callable[[Any], None]] = {
|
|
59
|
+
"end": lambda n : setattr(self, 'end', n.get_object_value(DateTimeTimeZone)),
|
|
60
|
+
"placeId": lambda n : setattr(self, 'place_id', n.get_str_value()),
|
|
61
|
+
"recurrenceId": lambda n : setattr(self, 'recurrence_id', n.get_str_value()),
|
|
62
|
+
"start": lambda n : setattr(self, 'start', n.get_object_value(DateTimeTimeZone)),
|
|
63
|
+
"timeOffDetails": lambda n : setattr(self, 'time_off_details', n.get_object_value(TimeOffDetails)),
|
|
64
|
+
"workLocationType": lambda n : setattr(self, 'work_location_type', n.get_enum_value(WorkLocationType)),
|
|
65
|
+
}
|
|
66
|
+
super_fields = super().get_field_deserializers()
|
|
67
|
+
fields.update(super_fields)
|
|
68
|
+
return fields
|
|
69
|
+
|
|
70
|
+
def serialize(self,writer: SerializationWriter) -> None:
|
|
71
|
+
"""
|
|
72
|
+
Serializes information the current object
|
|
73
|
+
param writer: Serialization writer to use to serialize this model
|
|
74
|
+
Returns: None
|
|
75
|
+
"""
|
|
76
|
+
if writer is None:
|
|
77
|
+
raise TypeError("writer cannot be null.")
|
|
78
|
+
super().serialize(writer)
|
|
79
|
+
writer.write_object_value("end", self.end)
|
|
80
|
+
writer.write_str_value("placeId", self.place_id)
|
|
81
|
+
writer.write_str_value("recurrenceId", self.recurrence_id)
|
|
82
|
+
writer.write_object_value("start", self.start)
|
|
83
|
+
writer.write_object_value("timeOffDetails", self.time_off_details)
|
|
84
|
+
writer.write_enum_value("workLocationType", self.work_location_type)
|
|
85
|
+
|
|
86
|
+
|
|
@@ -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 .work_plan_occurrence import WorkPlanOccurrence
|
|
10
|
+
|
|
11
|
+
from .base_collection_pagination_count_response import BaseCollectionPaginationCountResponse
|
|
12
|
+
|
|
13
|
+
@dataclass
|
|
14
|
+
class WorkPlanOccurrenceCollectionResponse(BaseCollectionPaginationCountResponse, Parsable):
|
|
15
|
+
# The value property
|
|
16
|
+
value: Optional[list[WorkPlanOccurrence]] = None
|
|
17
|
+
|
|
18
|
+
@staticmethod
|
|
19
|
+
def create_from_discriminator_value(parse_node: ParseNode) -> WorkPlanOccurrenceCollectionResponse:
|
|
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: WorkPlanOccurrenceCollectionResponse
|
|
24
|
+
"""
|
|
25
|
+
if parse_node is None:
|
|
26
|
+
raise TypeError("parse_node cannot be null.")
|
|
27
|
+
return WorkPlanOccurrenceCollectionResponse()
|
|
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 .work_plan_occurrence import WorkPlanOccurrence
|
|
36
|
+
|
|
37
|
+
from .base_collection_pagination_count_response import BaseCollectionPaginationCountResponse
|
|
38
|
+
from .work_plan_occurrence import WorkPlanOccurrence
|
|
39
|
+
|
|
40
|
+
fields: dict[str, Callable[[Any], None]] = {
|
|
41
|
+
"value": lambda n : setattr(self, 'value', n.get_collection_of_object_values(WorkPlanOccurrence)),
|
|
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,82 @@
|
|
|
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 .date_time_time_zone import DateTimeTimeZone
|
|
9
|
+
from .entity import Entity
|
|
10
|
+
from .patterned_recurrence import PatternedRecurrence
|
|
11
|
+
from .work_location_type import WorkLocationType
|
|
12
|
+
|
|
13
|
+
from .entity import Entity
|
|
14
|
+
|
|
15
|
+
@dataclass
|
|
16
|
+
class WorkPlanRecurrence(Entity, Parsable):
|
|
17
|
+
# The end property
|
|
18
|
+
end: Optional[DateTimeTimeZone] = None
|
|
19
|
+
# The OdataType property
|
|
20
|
+
odata_type: Optional[str] = None
|
|
21
|
+
# Identifier of a place from the Microsoft Graph Places Directory API. Only applicable when workLocationType is set to office.
|
|
22
|
+
place_id: Optional[str] = None
|
|
23
|
+
# The recurrence property
|
|
24
|
+
recurrence: Optional[PatternedRecurrence] = None
|
|
25
|
+
# The start property
|
|
26
|
+
start: Optional[DateTimeTimeZone] = None
|
|
27
|
+
# The workLocationType property
|
|
28
|
+
work_location_type: Optional[WorkLocationType] = None
|
|
29
|
+
|
|
30
|
+
@staticmethod
|
|
31
|
+
def create_from_discriminator_value(parse_node: ParseNode) -> WorkPlanRecurrence:
|
|
32
|
+
"""
|
|
33
|
+
Creates a new instance of the appropriate class based on discriminator value
|
|
34
|
+
param parse_node: The parse node to use to read the discriminator value and create the object
|
|
35
|
+
Returns: WorkPlanRecurrence
|
|
36
|
+
"""
|
|
37
|
+
if parse_node is None:
|
|
38
|
+
raise TypeError("parse_node cannot be null.")
|
|
39
|
+
return WorkPlanRecurrence()
|
|
40
|
+
|
|
41
|
+
def get_field_deserializers(self,) -> dict[str, Callable[[ParseNode], None]]:
|
|
42
|
+
"""
|
|
43
|
+
The deserialization information for the current model
|
|
44
|
+
Returns: dict[str, Callable[[ParseNode], None]]
|
|
45
|
+
"""
|
|
46
|
+
from .date_time_time_zone import DateTimeTimeZone
|
|
47
|
+
from .entity import Entity
|
|
48
|
+
from .patterned_recurrence import PatternedRecurrence
|
|
49
|
+
from .work_location_type import WorkLocationType
|
|
50
|
+
|
|
51
|
+
from .date_time_time_zone import DateTimeTimeZone
|
|
52
|
+
from .entity import Entity
|
|
53
|
+
from .patterned_recurrence import PatternedRecurrence
|
|
54
|
+
from .work_location_type import WorkLocationType
|
|
55
|
+
|
|
56
|
+
fields: dict[str, Callable[[Any], None]] = {
|
|
57
|
+
"end": lambda n : setattr(self, 'end', n.get_object_value(DateTimeTimeZone)),
|
|
58
|
+
"placeId": lambda n : setattr(self, 'place_id', n.get_str_value()),
|
|
59
|
+
"recurrence": lambda n : setattr(self, 'recurrence', n.get_object_value(PatternedRecurrence)),
|
|
60
|
+
"start": lambda n : setattr(self, 'start', n.get_object_value(DateTimeTimeZone)),
|
|
61
|
+
"workLocationType": lambda n : setattr(self, 'work_location_type', n.get_enum_value(WorkLocationType)),
|
|
62
|
+
}
|
|
63
|
+
super_fields = super().get_field_deserializers()
|
|
64
|
+
fields.update(super_fields)
|
|
65
|
+
return fields
|
|
66
|
+
|
|
67
|
+
def serialize(self,writer: SerializationWriter) -> None:
|
|
68
|
+
"""
|
|
69
|
+
Serializes information the current object
|
|
70
|
+
param writer: Serialization writer to use to serialize this model
|
|
71
|
+
Returns: None
|
|
72
|
+
"""
|
|
73
|
+
if writer is None:
|
|
74
|
+
raise TypeError("writer cannot be null.")
|
|
75
|
+
super().serialize(writer)
|
|
76
|
+
writer.write_object_value("end", self.end)
|
|
77
|
+
writer.write_str_value("placeId", self.place_id)
|
|
78
|
+
writer.write_object_value("recurrence", self.recurrence)
|
|
79
|
+
writer.write_object_value("start", self.start)
|
|
80
|
+
writer.write_enum_value("workLocationType", self.work_location_type)
|
|
81
|
+
|
|
82
|
+
|
|
@@ -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 .work_plan_recurrence import WorkPlanRecurrence
|
|
10
|
+
|
|
11
|
+
from .base_collection_pagination_count_response import BaseCollectionPaginationCountResponse
|
|
12
|
+
|
|
13
|
+
@dataclass
|
|
14
|
+
class WorkPlanRecurrenceCollectionResponse(BaseCollectionPaginationCountResponse, Parsable):
|
|
15
|
+
# The value property
|
|
16
|
+
value: Optional[list[WorkPlanRecurrence]] = None
|
|
17
|
+
|
|
18
|
+
@staticmethod
|
|
19
|
+
def create_from_discriminator_value(parse_node: ParseNode) -> WorkPlanRecurrenceCollectionResponse:
|
|
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: WorkPlanRecurrenceCollectionResponse
|
|
24
|
+
"""
|
|
25
|
+
if parse_node is None:
|
|
26
|
+
raise TypeError("parse_node cannot be null.")
|
|
27
|
+
return WorkPlanRecurrenceCollectionResponse()
|
|
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 .work_plan_recurrence import WorkPlanRecurrence
|
|
36
|
+
|
|
37
|
+
from .base_collection_pagination_count_response import BaseCollectionPaginationCountResponse
|
|
38
|
+
from .work_plan_recurrence import WorkPlanRecurrence
|
|
39
|
+
|
|
40
|
+
fields: dict[str, Callable[[Any], None]] = {
|
|
41
|
+
"value": lambda n : setattr(self, 'value', n.get_collection_of_object_values(WorkPlanRecurrence)),
|
|
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
|
+
|
|
@@ -20,10 +20,12 @@ class Workspace(Place, Parsable):
|
|
|
20
20
|
display_device_name: Optional[str] = None
|
|
21
21
|
# The email address that is associated with the workspace. This email address is used for booking.
|
|
22
22
|
email_address: Optional[str] = None
|
|
23
|
-
# The mode for a workspace. The supported modes are:reservablePlaceMode - Workspaces that can be booked in advance using desk pool reservation tools.dropInPlaceMode - First come, first served desks. When you plug into a peripheral on one of these desks in the workspace, the desk is booked for you, assuming that the peripheral has been associated with the desk in the Microsoft Teams Rooms
|
|
23
|
+
# The mode for a workspace. The supported modes are:reservablePlaceMode - Workspaces that can be booked in advance using desk pool reservation tools.dropInPlaceMode - First come, first served desks. When you plug into a peripheral on one of these desks in the workspace, the desk is booked for you, assuming that the peripheral has been associated with the desk in the Microsoft Teams Rooms pro management portal.unavailablePlaceMode - Workspaces that are taken down for maintenance or marked as not reservable.
|
|
24
24
|
mode: Optional[PlaceMode] = None
|
|
25
25
|
# A short, friendly name for the workspace, often used for easier identification or display in the UI.
|
|
26
26
|
nickname: Optional[str] = None
|
|
27
|
+
# An alternative immutable unique identifier of the workspace. Read-only.
|
|
28
|
+
place_id: Optional[str] = None
|
|
27
29
|
|
|
28
30
|
@staticmethod
|
|
29
31
|
def create_from_discriminator_value(parse_node: ParseNode) -> Workspace:
|
|
@@ -53,6 +55,7 @@ class Workspace(Place, Parsable):
|
|
|
53
55
|
"emailAddress": lambda n : setattr(self, 'email_address', n.get_str_value()),
|
|
54
56
|
"mode": lambda n : setattr(self, 'mode', n.get_object_value(PlaceMode)),
|
|
55
57
|
"nickname": lambda n : setattr(self, 'nickname', n.get_str_value()),
|
|
58
|
+
"placeId": lambda n : setattr(self, 'place_id', n.get_str_value()),
|
|
56
59
|
}
|
|
57
60
|
super_fields = super().get_field_deserializers()
|
|
58
61
|
fields.update(super_fields)
|
|
@@ -72,5 +75,6 @@ class Workspace(Place, Parsable):
|
|
|
72
75
|
writer.write_str_value("emailAddress", self.email_address)
|
|
73
76
|
writer.write_object_value("mode", self.mode)
|
|
74
77
|
writer.write_str_value("nickname", self.nickname)
|
|
78
|
+
writer.write_str_value("placeId", self.place_id)
|
|
75
79
|
|
|
76
80
|
|
msgraph/generated/security/cases/ediscovery_cases/item/case_members/case_members_request_builder.py
ADDED
|
@@ -0,0 +1,210 @@
|
|
|
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.security.ediscovery_case_member import EdiscoveryCaseMember
|
|
19
|
+
from ......models.security.ediscovery_case_member_collection_response import EdiscoveryCaseMemberCollectionResponse
|
|
20
|
+
from .count.count_request_builder import CountRequestBuilder
|
|
21
|
+
from .item.ediscovery_case_member_item_request_builder import EdiscoveryCaseMemberItemRequestBuilder
|
|
22
|
+
|
|
23
|
+
class CaseMembersRequestBuilder(BaseRequestBuilder):
|
|
24
|
+
"""
|
|
25
|
+
Provides operations to manage the caseMembers property of the microsoft.graph.security.ediscoveryCase entity.
|
|
26
|
+
"""
|
|
27
|
+
def __init__(self,request_adapter: RequestAdapter, path_parameters: Union[str, dict[str, Any]]) -> None:
|
|
28
|
+
"""
|
|
29
|
+
Instantiates a new CaseMembersRequestBuilder and sets the default values.
|
|
30
|
+
param path_parameters: The raw url or the url-template parameters for the request.
|
|
31
|
+
param request_adapter: The request adapter to use to execute the requests.
|
|
32
|
+
Returns: None
|
|
33
|
+
"""
|
|
34
|
+
super().__init__(request_adapter, "{+baseurl}/security/cases/ediscoveryCases/{ediscoveryCase%2Did}/caseMembers{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", path_parameters)
|
|
35
|
+
|
|
36
|
+
def by_ediscovery_case_member_id(self,ediscovery_case_member_id: str) -> EdiscoveryCaseMemberItemRequestBuilder:
|
|
37
|
+
"""
|
|
38
|
+
Provides operations to manage the caseMembers property of the microsoft.graph.security.ediscoveryCase entity.
|
|
39
|
+
param ediscovery_case_member_id: The unique identifier of ediscoveryCaseMember
|
|
40
|
+
Returns: EdiscoveryCaseMemberItemRequestBuilder
|
|
41
|
+
"""
|
|
42
|
+
if ediscovery_case_member_id is None:
|
|
43
|
+
raise TypeError("ediscovery_case_member_id cannot be null.")
|
|
44
|
+
from .item.ediscovery_case_member_item_request_builder import EdiscoveryCaseMemberItemRequestBuilder
|
|
45
|
+
|
|
46
|
+
url_tpl_params = get_path_parameters(self.path_parameters)
|
|
47
|
+
url_tpl_params["ediscoveryCaseMember%2Did"] = ediscovery_case_member_id
|
|
48
|
+
return EdiscoveryCaseMemberItemRequestBuilder(self.request_adapter, url_tpl_params)
|
|
49
|
+
|
|
50
|
+
async def get(self,request_configuration: Optional[RequestConfiguration[CaseMembersRequestBuilderGetQueryParameters]] = None) -> Optional[EdiscoveryCaseMemberCollectionResponse]:
|
|
51
|
+
"""
|
|
52
|
+
Get a list of ediscoveryCaseMember objects for an ediscoveryCase.
|
|
53
|
+
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
|
|
54
|
+
Returns: Optional[EdiscoveryCaseMemberCollectionResponse]
|
|
55
|
+
Find more info here: https://learn.microsoft.com/graph/api/security-ediscoverycasemember-list?view=graph-rest-1.0
|
|
56
|
+
"""
|
|
57
|
+
request_info = self.to_get_request_information(
|
|
58
|
+
request_configuration
|
|
59
|
+
)
|
|
60
|
+
from ......models.o_data_errors.o_data_error import ODataError
|
|
61
|
+
|
|
62
|
+
error_mapping: dict[str, type[ParsableFactory]] = {
|
|
63
|
+
"XXX": ODataError,
|
|
64
|
+
}
|
|
65
|
+
if not self.request_adapter:
|
|
66
|
+
raise Exception("Http core is null")
|
|
67
|
+
from ......models.security.ediscovery_case_member_collection_response import EdiscoveryCaseMemberCollectionResponse
|
|
68
|
+
|
|
69
|
+
return await self.request_adapter.send_async(request_info, EdiscoveryCaseMemberCollectionResponse, error_mapping)
|
|
70
|
+
|
|
71
|
+
async def post(self,body: EdiscoveryCaseMember, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> Optional[EdiscoveryCaseMember]:
|
|
72
|
+
"""
|
|
73
|
+
Add an ediscoveryCaseMember to an ediscoveryCase. The ediscoveryCaseMember can be one of two types: a user or a role group.
|
|
74
|
+
param body: The request body
|
|
75
|
+
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
|
|
76
|
+
Returns: Optional[EdiscoveryCaseMember]
|
|
77
|
+
Find more info here: https://learn.microsoft.com/graph/api/security-ediscoverycasemember-post?view=graph-rest-1.0
|
|
78
|
+
"""
|
|
79
|
+
if body is None:
|
|
80
|
+
raise TypeError("body cannot be null.")
|
|
81
|
+
request_info = self.to_post_request_information(
|
|
82
|
+
body, request_configuration
|
|
83
|
+
)
|
|
84
|
+
from ......models.o_data_errors.o_data_error import ODataError
|
|
85
|
+
|
|
86
|
+
error_mapping: dict[str, type[ParsableFactory]] = {
|
|
87
|
+
"XXX": ODataError,
|
|
88
|
+
}
|
|
89
|
+
if not self.request_adapter:
|
|
90
|
+
raise Exception("Http core is null")
|
|
91
|
+
from ......models.security.ediscovery_case_member import EdiscoveryCaseMember
|
|
92
|
+
|
|
93
|
+
return await self.request_adapter.send_async(request_info, EdiscoveryCaseMember, error_mapping)
|
|
94
|
+
|
|
95
|
+
def to_get_request_information(self,request_configuration: Optional[RequestConfiguration[CaseMembersRequestBuilderGetQueryParameters]] = None) -> RequestInformation:
|
|
96
|
+
"""
|
|
97
|
+
Get a list of ediscoveryCaseMember objects for an ediscoveryCase.
|
|
98
|
+
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
|
|
99
|
+
Returns: RequestInformation
|
|
100
|
+
"""
|
|
101
|
+
request_info = RequestInformation(Method.GET, self.url_template, self.path_parameters)
|
|
102
|
+
request_info.configure(request_configuration)
|
|
103
|
+
request_info.headers.try_add("Accept", "application/json")
|
|
104
|
+
return request_info
|
|
105
|
+
|
|
106
|
+
def to_post_request_information(self,body: EdiscoveryCaseMember, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> RequestInformation:
|
|
107
|
+
"""
|
|
108
|
+
Add an ediscoveryCaseMember to an ediscoveryCase. The ediscoveryCaseMember can be one of two types: a user or a role group.
|
|
109
|
+
param body: The request body
|
|
110
|
+
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
|
|
111
|
+
Returns: RequestInformation
|
|
112
|
+
"""
|
|
113
|
+
if body is None:
|
|
114
|
+
raise TypeError("body cannot be null.")
|
|
115
|
+
request_info = RequestInformation(Method.POST, self.url_template, self.path_parameters)
|
|
116
|
+
request_info.configure(request_configuration)
|
|
117
|
+
request_info.headers.try_add("Accept", "application/json")
|
|
118
|
+
request_info.set_content_from_parsable(self.request_adapter, "application/json", body)
|
|
119
|
+
return request_info
|
|
120
|
+
|
|
121
|
+
def with_url(self,raw_url: str) -> CaseMembersRequestBuilder:
|
|
122
|
+
"""
|
|
123
|
+
Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
|
|
124
|
+
param raw_url: The raw URL to use for the request builder.
|
|
125
|
+
Returns: CaseMembersRequestBuilder
|
|
126
|
+
"""
|
|
127
|
+
if raw_url is None:
|
|
128
|
+
raise TypeError("raw_url cannot be null.")
|
|
129
|
+
return CaseMembersRequestBuilder(self.request_adapter, raw_url)
|
|
130
|
+
|
|
131
|
+
@property
|
|
132
|
+
def count(self) -> CountRequestBuilder:
|
|
133
|
+
"""
|
|
134
|
+
Provides operations to count the resources in the collection.
|
|
135
|
+
"""
|
|
136
|
+
from .count.count_request_builder import CountRequestBuilder
|
|
137
|
+
|
|
138
|
+
return CountRequestBuilder(self.request_adapter, self.path_parameters)
|
|
139
|
+
|
|
140
|
+
@dataclass
|
|
141
|
+
class CaseMembersRequestBuilderGetQueryParameters():
|
|
142
|
+
"""
|
|
143
|
+
Get a list of ediscoveryCaseMember objects for an ediscoveryCase.
|
|
144
|
+
"""
|
|
145
|
+
def get_query_parameter(self,original_name: str) -> str:
|
|
146
|
+
"""
|
|
147
|
+
Maps the query parameters names to their encoded names for the URI template parsing.
|
|
148
|
+
param original_name: The original query parameter name in the class.
|
|
149
|
+
Returns: str
|
|
150
|
+
"""
|
|
151
|
+
if original_name is None:
|
|
152
|
+
raise TypeError("original_name cannot be null.")
|
|
153
|
+
if original_name == "count":
|
|
154
|
+
return "%24count"
|
|
155
|
+
if original_name == "expand":
|
|
156
|
+
return "%24expand"
|
|
157
|
+
if original_name == "filter":
|
|
158
|
+
return "%24filter"
|
|
159
|
+
if original_name == "orderby":
|
|
160
|
+
return "%24orderby"
|
|
161
|
+
if original_name == "search":
|
|
162
|
+
return "%24search"
|
|
163
|
+
if original_name == "select":
|
|
164
|
+
return "%24select"
|
|
165
|
+
if original_name == "skip":
|
|
166
|
+
return "%24skip"
|
|
167
|
+
if original_name == "top":
|
|
168
|
+
return "%24top"
|
|
169
|
+
return original_name
|
|
170
|
+
|
|
171
|
+
# Include count of items
|
|
172
|
+
count: Optional[bool] = None
|
|
173
|
+
|
|
174
|
+
# Expand related entities
|
|
175
|
+
expand: Optional[list[str]] = None
|
|
176
|
+
|
|
177
|
+
# Filter items by property values
|
|
178
|
+
filter: Optional[str] = None
|
|
179
|
+
|
|
180
|
+
# Order items by property values
|
|
181
|
+
orderby: Optional[list[str]] = None
|
|
182
|
+
|
|
183
|
+
# Search items by search phrases
|
|
184
|
+
search: Optional[str] = None
|
|
185
|
+
|
|
186
|
+
# Select properties to be returned
|
|
187
|
+
select: Optional[list[str]] = None
|
|
188
|
+
|
|
189
|
+
# Skip the first n items
|
|
190
|
+
skip: Optional[int] = None
|
|
191
|
+
|
|
192
|
+
# Show only the first n items
|
|
193
|
+
top: Optional[int] = None
|
|
194
|
+
|
|
195
|
+
|
|
196
|
+
@dataclass
|
|
197
|
+
class CaseMembersRequestBuilderGetRequestConfiguration(RequestConfiguration[CaseMembersRequestBuilderGetQueryParameters]):
|
|
198
|
+
"""
|
|
199
|
+
Configuration for the request such as headers, query parameters, and middleware options.
|
|
200
|
+
"""
|
|
201
|
+
warn("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.", DeprecationWarning)
|
|
202
|
+
|
|
203
|
+
@dataclass
|
|
204
|
+
class CaseMembersRequestBuilderPostRequestConfiguration(RequestConfiguration[QueryParameters]):
|
|
205
|
+
"""
|
|
206
|
+
Configuration for the request such as headers, query parameters, and middleware options.
|
|
207
|
+
"""
|
|
208
|
+
warn("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.", DeprecationWarning)
|
|
209
|
+
|
|
210
|
+
|