msgraph-sdk 1.51.0__py3-none-any.whl → 1.53.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 +1989 -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/protection_policy_artifact_count.py +66 -0
- msgraph/generated/models/protection_policy_base.py +11 -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.py +1 -1
- 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/incident.py +4 -0
- msgraph/generated/models/security/mailbox_configuration_evidence.py +6 -6
- msgraph/generated/models/security/recipient_type.py +7 -0
- msgraph/generated/models/security/sensor.py +7 -0
- msgraph/generated/models/security/sensor_candidate.py +4 -0
- msgraph/generated/models/security/service_status.py +11 -0
- msgraph/generated/models/sensitivity_label.py +4 -0
- msgraph/generated/models/service_principal.py +1 -1
- 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.53.0.dist-info}/METADATA +1 -1
- {msgraph_sdk-1.51.0.dist-info → msgraph_sdk-1.53.0.dist-info}/RECORD +203 -61
- {msgraph_sdk-1.51.0.dist-info → msgraph_sdk-1.53.0.dist-info}/WHEEL +0 -0
- {msgraph_sdk-1.51.0.dist-info → msgraph_sdk-1.53.0.dist-info}/licenses/LICENSE +0 -0
msgraph/generated/models/user.py
CHANGED
|
@@ -6,6 +6,7 @@ from kiota_abstractions.serialization import Parsable, ParseNode, SerializationW
|
|
|
6
6
|
from typing import Any, Optional, TYPE_CHECKING, Union
|
|
7
7
|
|
|
8
8
|
if TYPE_CHECKING:
|
|
9
|
+
from .adhoc_call import AdhocCall
|
|
9
10
|
from .agreement_acceptance import AgreementAcceptance
|
|
10
11
|
from .app_role_assignment import AppRoleAssignment
|
|
11
12
|
from .assigned_license import AssignedLicense
|
|
@@ -41,6 +42,7 @@ if TYPE_CHECKING:
|
|
|
41
42
|
from .online_meeting import OnlineMeeting
|
|
42
43
|
from .on_premises_extension_attributes import OnPremisesExtensionAttributes
|
|
43
44
|
from .on_premises_provisioning_error import OnPremisesProvisioningError
|
|
45
|
+
from .on_premises_sync_behavior import OnPremisesSyncBehavior
|
|
44
46
|
from .outlook_user import OutlookUser
|
|
45
47
|
from .o_auth2_permission_grant import OAuth2PermissionGrant
|
|
46
48
|
from .password_profile import PasswordProfile
|
|
@@ -78,6 +80,8 @@ class User(DirectoryObject, Parsable):
|
|
|
78
80
|
account_enabled: Optional[bool] = None
|
|
79
81
|
# The user's activities across devices. Read-only. Nullable.
|
|
80
82
|
activities: Optional[list[UserActivity]] = None
|
|
83
|
+
# Ad hoc calls associated with the user. Read-only. Nullable.
|
|
84
|
+
adhoc_calls: Optional[list[AdhocCall]] = None
|
|
81
85
|
# Sets the age group of the user. Allowed values: null, Minor, NotAdult, and Adult. For more information, see legal age group property definitions. Returned only on $select. Supports $filter (eq, ne, not, and in).
|
|
82
86
|
age_group: Optional[str] = None
|
|
83
87
|
# The user's terms of use acceptance statuses. Read-only. Nullable.
|
|
@@ -242,6 +246,8 @@ class User(DirectoryObject, Parsable):
|
|
|
242
246
|
on_premises_sam_account_name: Optional[str] = None
|
|
243
247
|
# Contains the on-premises security identifier (SID) for the user that was synchronized from on-premises to the cloud. Read-only. Returned only on $select. Supports $filter (eq including on null values).
|
|
244
248
|
on_premises_security_identifier: Optional[str] = None
|
|
249
|
+
# The onPremisesSyncBehavior property
|
|
250
|
+
on_premises_sync_behavior: Optional[OnPremisesSyncBehavior] = None
|
|
245
251
|
# true if this user object is currently being synced from an on-premises Active Directory (AD); otherwise the user isn't being synced and can be managed in Microsoft Entra ID. Read-only. Returned only on $select. Supports $filter (eq, ne, not, in, and eq on null values).
|
|
246
252
|
on_premises_sync_enabled: Optional[bool] = None
|
|
247
253
|
# Contains the on-premises userPrincipalName synchronized from the on-premises directory. The property is only populated for customers who are synchronizing their on-premises directory to Microsoft Entra ID via Microsoft Entra Connect. Read-only. Returned only on $select. Supports $filter (eq, ne, not, ge, le, in, startsWith).
|
|
@@ -351,6 +357,7 @@ class User(DirectoryObject, Parsable):
|
|
|
351
357
|
The deserialization information for the current model
|
|
352
358
|
Returns: dict[str, Callable[[ParseNode], None]]
|
|
353
359
|
"""
|
|
360
|
+
from .adhoc_call import AdhocCall
|
|
354
361
|
from .agreement_acceptance import AgreementAcceptance
|
|
355
362
|
from .app_role_assignment import AppRoleAssignment
|
|
356
363
|
from .assigned_license import AssignedLicense
|
|
@@ -386,6 +393,7 @@ class User(DirectoryObject, Parsable):
|
|
|
386
393
|
from .online_meeting import OnlineMeeting
|
|
387
394
|
from .on_premises_extension_attributes import OnPremisesExtensionAttributes
|
|
388
395
|
from .on_premises_provisioning_error import OnPremisesProvisioningError
|
|
396
|
+
from .on_premises_sync_behavior import OnPremisesSyncBehavior
|
|
389
397
|
from .outlook_user import OutlookUser
|
|
390
398
|
from .o_auth2_permission_grant import OAuth2PermissionGrant
|
|
391
399
|
from .password_profile import PasswordProfile
|
|
@@ -408,6 +416,7 @@ class User(DirectoryObject, Parsable):
|
|
|
408
416
|
from .user_solution_root import UserSolutionRoot
|
|
409
417
|
from .user_teamwork import UserTeamwork
|
|
410
418
|
|
|
419
|
+
from .adhoc_call import AdhocCall
|
|
411
420
|
from .agreement_acceptance import AgreementAcceptance
|
|
412
421
|
from .app_role_assignment import AppRoleAssignment
|
|
413
422
|
from .assigned_license import AssignedLicense
|
|
@@ -443,6 +452,7 @@ class User(DirectoryObject, Parsable):
|
|
|
443
452
|
from .online_meeting import OnlineMeeting
|
|
444
453
|
from .on_premises_extension_attributes import OnPremisesExtensionAttributes
|
|
445
454
|
from .on_premises_provisioning_error import OnPremisesProvisioningError
|
|
455
|
+
from .on_premises_sync_behavior import OnPremisesSyncBehavior
|
|
446
456
|
from .outlook_user import OutlookUser
|
|
447
457
|
from .o_auth2_permission_grant import OAuth2PermissionGrant
|
|
448
458
|
from .password_profile import PasswordProfile
|
|
@@ -469,6 +479,7 @@ class User(DirectoryObject, Parsable):
|
|
|
469
479
|
"aboutMe": lambda n : setattr(self, 'about_me', n.get_str_value()),
|
|
470
480
|
"accountEnabled": lambda n : setattr(self, 'account_enabled', n.get_bool_value()),
|
|
471
481
|
"activities": lambda n : setattr(self, 'activities', n.get_collection_of_object_values(UserActivity)),
|
|
482
|
+
"adhocCalls": lambda n : setattr(self, 'adhoc_calls', n.get_collection_of_object_values(AdhocCall)),
|
|
472
483
|
"ageGroup": lambda n : setattr(self, 'age_group', n.get_str_value()),
|
|
473
484
|
"agreementAcceptances": lambda n : setattr(self, 'agreement_acceptances', n.get_collection_of_object_values(AgreementAcceptance)),
|
|
474
485
|
"appRoleAssignments": lambda n : setattr(self, 'app_role_assignments', n.get_collection_of_object_values(AppRoleAssignment)),
|
|
@@ -551,6 +562,7 @@ class User(DirectoryObject, Parsable):
|
|
|
551
562
|
"onPremisesProvisioningErrors": lambda n : setattr(self, 'on_premises_provisioning_errors', n.get_collection_of_object_values(OnPremisesProvisioningError)),
|
|
552
563
|
"onPremisesSamAccountName": lambda n : setattr(self, 'on_premises_sam_account_name', n.get_str_value()),
|
|
553
564
|
"onPremisesSecurityIdentifier": lambda n : setattr(self, 'on_premises_security_identifier', n.get_str_value()),
|
|
565
|
+
"onPremisesSyncBehavior": lambda n : setattr(self, 'on_premises_sync_behavior', n.get_object_value(OnPremisesSyncBehavior)),
|
|
554
566
|
"onPremisesSyncEnabled": lambda n : setattr(self, 'on_premises_sync_enabled', n.get_bool_value()),
|
|
555
567
|
"onPremisesUserPrincipalName": lambda n : setattr(self, 'on_premises_user_principal_name', n.get_str_value()),
|
|
556
568
|
"onenote": lambda n : setattr(self, 'onenote', n.get_object_value(Onenote)),
|
|
@@ -614,6 +626,7 @@ class User(DirectoryObject, Parsable):
|
|
|
614
626
|
writer.write_str_value("aboutMe", self.about_me)
|
|
615
627
|
writer.write_bool_value("accountEnabled", self.account_enabled)
|
|
616
628
|
writer.write_collection_of_object_values("activities", self.activities)
|
|
629
|
+
writer.write_collection_of_object_values("adhocCalls", self.adhoc_calls)
|
|
617
630
|
writer.write_str_value("ageGroup", self.age_group)
|
|
618
631
|
writer.write_collection_of_object_values("agreementAcceptances", self.agreement_acceptances)
|
|
619
632
|
writer.write_collection_of_object_values("appRoleAssignments", self.app_role_assignments)
|
|
@@ -696,6 +709,7 @@ class User(DirectoryObject, Parsable):
|
|
|
696
709
|
writer.write_collection_of_object_values("onPremisesProvisioningErrors", self.on_premises_provisioning_errors)
|
|
697
710
|
writer.write_str_value("onPremisesSamAccountName", self.on_premises_sam_account_name)
|
|
698
711
|
writer.write_str_value("onPremisesSecurityIdentifier", self.on_premises_security_identifier)
|
|
712
|
+
writer.write_object_value("onPremisesSyncBehavior", self.on_premises_sync_behavior)
|
|
699
713
|
writer.write_bool_value("onPremisesSyncEnabled", self.on_premises_sync_enabled)
|
|
700
714
|
writer.write_str_value("onPremisesUserPrincipalName", self.on_premises_user_principal_name)
|
|
701
715
|
writer.write_object_value("onenote", self.onenote)
|
|
@@ -10,6 +10,7 @@ if TYPE_CHECKING:
|
|
|
10
10
|
from .user_insights_settings import UserInsightsSettings
|
|
11
11
|
from .user_storage import UserStorage
|
|
12
12
|
from .windows_setting import WindowsSetting
|
|
13
|
+
from .work_hours_and_locations_setting import WorkHoursAndLocationsSetting
|
|
13
14
|
|
|
14
15
|
from .entity import Entity
|
|
15
16
|
|
|
@@ -27,8 +28,10 @@ class UserSettings(Entity, Parsable):
|
|
|
27
28
|
shift_preferences: Optional[ShiftPreferences] = None
|
|
28
29
|
# The storage property
|
|
29
30
|
storage: Optional[UserStorage] = None
|
|
30
|
-
# The
|
|
31
|
+
# The Windows settings of the user stored in the cloud.
|
|
31
32
|
windows: Optional[list[WindowsSetting]] = None
|
|
33
|
+
# The user's settings for work hours and location preferences for scheduling and availability management.
|
|
34
|
+
work_hours_and_locations: Optional[WorkHoursAndLocationsSetting] = None
|
|
32
35
|
|
|
33
36
|
@staticmethod
|
|
34
37
|
def create_from_discriminator_value(parse_node: ParseNode) -> UserSettings:
|
|
@@ -51,12 +54,14 @@ class UserSettings(Entity, Parsable):
|
|
|
51
54
|
from .user_insights_settings import UserInsightsSettings
|
|
52
55
|
from .user_storage import UserStorage
|
|
53
56
|
from .windows_setting import WindowsSetting
|
|
57
|
+
from .work_hours_and_locations_setting import WorkHoursAndLocationsSetting
|
|
54
58
|
|
|
55
59
|
from .entity import Entity
|
|
56
60
|
from .shift_preferences import ShiftPreferences
|
|
57
61
|
from .user_insights_settings import UserInsightsSettings
|
|
58
62
|
from .user_storage import UserStorage
|
|
59
63
|
from .windows_setting import WindowsSetting
|
|
64
|
+
from .work_hours_and_locations_setting import WorkHoursAndLocationsSetting
|
|
60
65
|
|
|
61
66
|
fields: dict[str, Callable[[Any], None]] = {
|
|
62
67
|
"contributionToContentDiscoveryAsOrganizationDisabled": lambda n : setattr(self, 'contribution_to_content_discovery_as_organization_disabled', n.get_bool_value()),
|
|
@@ -65,6 +70,7 @@ class UserSettings(Entity, Parsable):
|
|
|
65
70
|
"shiftPreferences": lambda n : setattr(self, 'shift_preferences', n.get_object_value(ShiftPreferences)),
|
|
66
71
|
"storage": lambda n : setattr(self, 'storage', n.get_object_value(UserStorage)),
|
|
67
72
|
"windows": lambda n : setattr(self, 'windows', n.get_collection_of_object_values(WindowsSetting)),
|
|
73
|
+
"workHoursAndLocations": lambda n : setattr(self, 'work_hours_and_locations', n.get_object_value(WorkHoursAndLocationsSetting)),
|
|
68
74
|
}
|
|
69
75
|
super_fields = super().get_field_deserializers()
|
|
70
76
|
fields.update(super_fields)
|
|
@@ -85,5 +91,6 @@ class UserSettings(Entity, Parsable):
|
|
|
85
91
|
writer.write_object_value("shiftPreferences", self.shift_preferences)
|
|
86
92
|
writer.write_object_value("storage", self.storage)
|
|
87
93
|
writer.write_collection_of_object_values("windows", self.windows)
|
|
94
|
+
writer.write_object_value("workHoursAndLocations", self.work_hours_and_locations)
|
|
88
95
|
|
|
89
96
|
|
|
@@ -0,0 +1,72 @@
|
|
|
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 .work_location_source import WorkLocationSource
|
|
10
|
+
from .work_location_type import WorkLocationType
|
|
11
|
+
|
|
12
|
+
@dataclass
|
|
13
|
+
class UserWorkLocation(AdditionalDataHolder, BackedModel, Parsable):
|
|
14
|
+
# Stores model information.
|
|
15
|
+
backing_store: BackingStore = field(default_factory=BackingStoreFactorySingleton(backing_store_factory=None).backing_store_factory.create_backing_store, repr=False)
|
|
16
|
+
|
|
17
|
+
# Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
|
18
|
+
additional_data: dict[str, Any] = field(default_factory=dict)
|
|
19
|
+
# The OdataType property
|
|
20
|
+
odata_type: Optional[str] = None
|
|
21
|
+
# Identifier of the place, if applicable.
|
|
22
|
+
place_id: Optional[str] = None
|
|
23
|
+
# The source property
|
|
24
|
+
source: Optional[WorkLocationSource] = None
|
|
25
|
+
# The workLocationType property
|
|
26
|
+
work_location_type: Optional[WorkLocationType] = None
|
|
27
|
+
|
|
28
|
+
@staticmethod
|
|
29
|
+
def create_from_discriminator_value(parse_node: ParseNode) -> UserWorkLocation:
|
|
30
|
+
"""
|
|
31
|
+
Creates a new instance of the appropriate class based on discriminator value
|
|
32
|
+
param parse_node: The parse node to use to read the discriminator value and create the object
|
|
33
|
+
Returns: UserWorkLocation
|
|
34
|
+
"""
|
|
35
|
+
if parse_node is None:
|
|
36
|
+
raise TypeError("parse_node cannot be null.")
|
|
37
|
+
return UserWorkLocation()
|
|
38
|
+
|
|
39
|
+
def get_field_deserializers(self,) -> dict[str, Callable[[ParseNode], None]]:
|
|
40
|
+
"""
|
|
41
|
+
The deserialization information for the current model
|
|
42
|
+
Returns: dict[str, Callable[[ParseNode], None]]
|
|
43
|
+
"""
|
|
44
|
+
from .work_location_source import WorkLocationSource
|
|
45
|
+
from .work_location_type import WorkLocationType
|
|
46
|
+
|
|
47
|
+
from .work_location_source import WorkLocationSource
|
|
48
|
+
from .work_location_type import WorkLocationType
|
|
49
|
+
|
|
50
|
+
fields: dict[str, Callable[[Any], None]] = {
|
|
51
|
+
"@odata.type": lambda n : setattr(self, 'odata_type', n.get_str_value()),
|
|
52
|
+
"placeId": lambda n : setattr(self, 'place_id', n.get_str_value()),
|
|
53
|
+
"source": lambda n : setattr(self, 'source', n.get_enum_value(WorkLocationSource)),
|
|
54
|
+
"workLocationType": lambda n : setattr(self, 'work_location_type', n.get_enum_value(WorkLocationType)),
|
|
55
|
+
}
|
|
56
|
+
return fields
|
|
57
|
+
|
|
58
|
+
def serialize(self,writer: SerializationWriter) -> None:
|
|
59
|
+
"""
|
|
60
|
+
Serializes information the current object
|
|
61
|
+
param writer: Serialization writer to use to serialize this model
|
|
62
|
+
Returns: None
|
|
63
|
+
"""
|
|
64
|
+
if writer is None:
|
|
65
|
+
raise TypeError("writer cannot be null.")
|
|
66
|
+
writer.write_str_value("@odata.type", self.odata_type)
|
|
67
|
+
writer.write_str_value("placeId", self.place_id)
|
|
68
|
+
writer.write_enum_value("source", self.source)
|
|
69
|
+
writer.write_enum_value("workLocationType", self.work_location_type)
|
|
70
|
+
writer.write_additional_data_value(self.additional_data)
|
|
71
|
+
|
|
72
|
+
|
|
@@ -10,6 +10,7 @@ if TYPE_CHECKING:
|
|
|
10
10
|
from .cloud_pc_gallery_image import CloudPcGalleryImage
|
|
11
11
|
from .cloud_pc_on_premises_connection import CloudPcOnPremisesConnection
|
|
12
12
|
from .cloud_pc_provisioning_policy import CloudPcProvisioningPolicy
|
|
13
|
+
from .cloud_pc_report import CloudPcReport
|
|
13
14
|
from .cloud_pc_user_setting import CloudPcUserSetting
|
|
14
15
|
from .cloud_p_c import CloudPC
|
|
15
16
|
from .entity import Entity
|
|
@@ -32,6 +33,8 @@ class VirtualEndpoint(Entity, Parsable):
|
|
|
32
33
|
on_premises_connections: Optional[list[CloudPcOnPremisesConnection]] = None
|
|
33
34
|
# A collection of Cloud PC provisioning policies.
|
|
34
35
|
provisioning_policies: Optional[list[CloudPcProvisioningPolicy]] = None
|
|
36
|
+
# Cloud PC-related reports. Read-only.
|
|
37
|
+
report: Optional[CloudPcReport] = None
|
|
35
38
|
# A collection of Cloud PC user settings.
|
|
36
39
|
user_settings: Optional[list[CloudPcUserSetting]] = None
|
|
37
40
|
|
|
@@ -56,6 +59,7 @@ class VirtualEndpoint(Entity, Parsable):
|
|
|
56
59
|
from .cloud_pc_gallery_image import CloudPcGalleryImage
|
|
57
60
|
from .cloud_pc_on_premises_connection import CloudPcOnPremisesConnection
|
|
58
61
|
from .cloud_pc_provisioning_policy import CloudPcProvisioningPolicy
|
|
62
|
+
from .cloud_pc_report import CloudPcReport
|
|
59
63
|
from .cloud_pc_user_setting import CloudPcUserSetting
|
|
60
64
|
from .cloud_p_c import CloudPC
|
|
61
65
|
from .entity import Entity
|
|
@@ -65,6 +69,7 @@ class VirtualEndpoint(Entity, Parsable):
|
|
|
65
69
|
from .cloud_pc_gallery_image import CloudPcGalleryImage
|
|
66
70
|
from .cloud_pc_on_premises_connection import CloudPcOnPremisesConnection
|
|
67
71
|
from .cloud_pc_provisioning_policy import CloudPcProvisioningPolicy
|
|
72
|
+
from .cloud_pc_report import CloudPcReport
|
|
68
73
|
from .cloud_pc_user_setting import CloudPcUserSetting
|
|
69
74
|
from .cloud_p_c import CloudPC
|
|
70
75
|
from .entity import Entity
|
|
@@ -76,6 +81,7 @@ class VirtualEndpoint(Entity, Parsable):
|
|
|
76
81
|
"galleryImages": lambda n : setattr(self, 'gallery_images', n.get_collection_of_object_values(CloudPcGalleryImage)),
|
|
77
82
|
"onPremisesConnections": lambda n : setattr(self, 'on_premises_connections', n.get_collection_of_object_values(CloudPcOnPremisesConnection)),
|
|
78
83
|
"provisioningPolicies": lambda n : setattr(self, 'provisioning_policies', n.get_collection_of_object_values(CloudPcProvisioningPolicy)),
|
|
84
|
+
"report": lambda n : setattr(self, 'report', n.get_object_value(CloudPcReport)),
|
|
79
85
|
"userSettings": lambda n : setattr(self, 'user_settings', n.get_collection_of_object_values(CloudPcUserSetting)),
|
|
80
86
|
}
|
|
81
87
|
super_fields = super().get_field_deserializers()
|
|
@@ -97,6 +103,7 @@ class VirtualEndpoint(Entity, Parsable):
|
|
|
97
103
|
writer.write_collection_of_object_values("galleryImages", self.gallery_images)
|
|
98
104
|
writer.write_collection_of_object_values("onPremisesConnections", self.on_premises_connections)
|
|
99
105
|
writer.write_collection_of_object_values("provisioningPolicies", self.provisioning_policies)
|
|
106
|
+
writer.write_object_value("report", self.report)
|
|
100
107
|
writer.write_collection_of_object_values("userSettings", self.user_settings)
|
|
101
108
|
|
|
102
109
|
|
|
@@ -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
|
+
|