msgraph-sdk 1.40.0__py3-none-any.whl → 1.44.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/communications/calls/item/participants/invite/invite_request_builder.py +3 -3
- msgraph/generated/device_app_management/device_app_management_request_builder.py +11 -1
- msgraph/generated/device_app_management/managed_app_policies/item/managed_app_policy_item_request_builder.py +4 -4
- msgraph/generated/device_app_management/managed_app_policies/item/target_apps/target_apps_request_builder.py +1 -1
- msgraph/generated/device_app_management/managed_app_registrations/item/applied_policies/item/target_apps/target_apps_request_builder.py +1 -1
- msgraph/generated/device_app_management/managed_app_registrations/item/intended_policies/item/target_apps/target_apps_request_builder.py +1 -1
- msgraph/generated/device_app_management/managed_app_registrations/item/managed_app_registration_item_request_builder.py +4 -4
- msgraph/generated/device_app_management/managed_app_registrations/managed_app_registrations_request_builder.py +4 -4
- msgraph/generated/device_app_management/managed_app_statuses/item/managed_app_status_item_request_builder.py +4 -4
- msgraph/generated/device_app_management/managed_app_statuses/managed_app_statuses_request_builder.py +4 -4
- msgraph/generated/device_app_management/managed_e_books/item/assignments/item/managed_e_book_assignment_item_request_builder.py +6 -6
- msgraph/generated/device_app_management/managed_e_books/item/managed_e_book_item_request_builder.py +4 -4
- msgraph/generated/device_app_management/mobile_app_relationships/count/count_request_builder.py +104 -0
- msgraph/generated/device_app_management/mobile_app_relationships/item/mobile_app_relationship_item_request_builder.py +188 -0
- msgraph/generated/device_app_management/mobile_app_relationships/mobile_app_relationships_request_builder.py +208 -0
- msgraph/generated/device_app_management/mobile_apps/item/mobile_app_item_request_builder.py +10 -10
- msgraph/generated/device_app_management/mobile_apps/mobile_apps_request_builder.py +7 -7
- msgraph/generated/device_management/device_compliance_policies/device_compliance_policies_request_builder.py +7 -7
- msgraph/generated/device_management/device_compliance_policies/item/device_compliance_policy_item_request_builder.py +10 -10
- msgraph/generated/device_management/device_configurations/device_configurations_request_builder.py +7 -7
- msgraph/generated/device_management/device_configurations/item/device_configuration_item_request_builder.py +10 -10
- msgraph/generated/device_management/device_enrollment_configurations/device_enrollment_configurations_request_builder.py +7 -7
- msgraph/generated/device_management/device_enrollment_configurations/item/device_enrollment_configuration_item_request_builder.py +10 -10
- msgraph/generated/device_management/device_management_request_builder.py +2 -2
- msgraph/generated/device_management/role_definitions/item/role_definition_item_request_builder.py +3 -3
- msgraph/generated/device_management/role_definitions/role_definitions_request_builder.py +7 -7
- msgraph/generated/device_management/virtual_endpoint/cloud_p_cs/item/resize/resize_request_builder.py +3 -2
- msgraph/generated/drives/item/items/item/retention_label/retention_label_request_builder.py +3 -3
- msgraph/generated/external/connections/item/items/item/external_item_item_request_builder.py +3 -3
- msgraph/generated/groups/groups_request_builder.py +3 -3
- msgraph/generated/groups/item/conversations/item/conversation_item_request_builder.py +4 -4
- msgraph/generated/groups/item/conversations/item/threads/item/reply/reply_request_builder.py +3 -3
- msgraph/generated/groups/item/team/team_request_builder.py +2 -2
- msgraph/generated/groups/item/threads/item/conversation_thread_item_request_builder.py +5 -5
- msgraph/generated/groups/item/threads/item/posts/posts_request_builder.py +4 -4
- msgraph/generated/groups/item/threads/item/reply/reply_request_builder.py +3 -3
- msgraph/generated/identity/conditional_access/named_locations/item/named_location_item_request_builder.py +3 -3
- msgraph/generated/kiota-dom-export.txt +273 -8
- msgraph/generated/kiota-lock.json +1 -1
- msgraph/generated/models/access_package_assignment.py +1 -1
- msgraph/generated/models/ai_interaction.py +12 -12
- msgraph/generated/models/ai_interaction_attachment.py +16 -19
- msgraph/generated/models/ai_interaction_context.py +14 -17
- msgraph/generated/models/ai_interaction_link.py +14 -17
- msgraph/generated/models/ai_interaction_mention.py +14 -13
- msgraph/generated/models/ai_interaction_mentioned_identity_set.py +1 -1
- msgraph/generated/models/ai_user.py +1 -1
- msgraph/generated/models/app_scope.py +1 -1
- msgraph/generated/models/authentication_event_listener.py +8 -1
- msgraph/generated/models/auto_restart_notification_dismissal_method.py +1 -1
- msgraph/generated/models/call_options.py +4 -0
- msgraph/generated/models/cloud_pc_device_image.py +1 -1
- msgraph/generated/models/copilot_admin.py +1 -1
- msgraph/generated/models/copilot_admin_limited_mode.py +2 -2
- msgraph/generated/models/copilot_admin_setting.py +1 -1
- msgraph/generated/models/custom_authentication_extension.py +14 -0
- msgraph/generated/models/custom_callout_extension.py +7 -0
- msgraph/generated/models/custom_extension_behavior_on_error.py +66 -0
- msgraph/generated/models/custom_extension_overwrite_configuration.py +7 -0
- msgraph/generated/models/device_app_management.py +7 -0
- msgraph/generated/models/device_enrollment_type.py +2 -0
- msgraph/generated/models/device_management_reports.py +0 -3
- msgraph/generated/models/disk_type.py +1 -1
- msgraph/generated/models/entity.py +21 -0
- msgraph/generated/models/fallback_to_microsoft_provider_on_error.py +53 -0
- msgraph/generated/models/file_encryption_info.py +1 -1
- msgraph/generated/models/granular_mailbox_restore_artifact.py +1 -1
- msgraph/generated/models/group_members.py +1 -1
- msgraph/generated/models/ios_ddm_lob_app_assignment_settings.py +76 -0
- msgraph/generated/models/mailbox_restore_artifact.py +4 -0
- msgraph/generated/models/managed_app_availability.py +1 -1
- msgraph/generated/models/managed_app_data_storage_location.py +4 -4
- msgraph/generated/models/managed_device.py +1 -1
- msgraph/generated/models/managed_mobile_lob_app.py +1 -1
- msgraph/generated/models/mobile_app_assignment_settings.py +7 -0
- msgraph/generated/models/mobile_app_relationship.py +81 -0
- msgraph/generated/models/mobile_app_relationship_collection_response.py +58 -0
- msgraph/generated/models/mobile_lob_app.py +1 -1
- msgraph/generated/models/on_email_otp_send_listener.py +60 -0
- msgraph/generated/models/on_otp_send_custom_extension.py +53 -0
- msgraph/generated/models/on_otp_send_custom_extension_handler.py +67 -0
- msgraph/generated/models/on_otp_send_handler.py +66 -0
- msgraph/generated/models/online_meeting.py +1 -1
- msgraph/generated/models/online_meeting_base.py +6 -2
- msgraph/generated/models/out_of_office_settings.py +2 -2
- msgraph/generated/models/presence.py +3 -3
- msgraph/generated/models/restore_job_type.py +7 -0
- msgraph/generated/models/restore_session_artifact_count.py +66 -0
- msgraph/generated/models/restore_session_base.py +14 -0
- msgraph/generated/models/security/alert.py +1 -1
- msgraph/generated/models/security/case_type.py +7 -0
- msgraph/generated/models/security/ediscovery_add_to_review_set_operation.py +7 -0
- msgraph/generated/models/security/ediscovery_case_settings.py +14 -0
- msgraph/generated/models/security/ediscovery_estimate_operation.py +7 -0
- msgraph/generated/models/security/report_file_metadata.py +62 -0
- msgraph/generated/models/security/resource_access_event.py +67 -0
- msgraph/generated/models/security/review_set_settings.py +7 -0
- msgraph/generated/models/security/security_group_evidence.py +17 -0
- msgraph/generated/models/security/user_account.py +16 -0
- msgraph/generated/models/single_user.py +1 -1
- msgraph/generated/models/teams_tab.py +1 -1
- msgraph/generated/models/used_insight.py +2 -2
- msgraph/generated/models/win32_lob_app.py +4 -0
- msgraph/generated/models/windows_defender_product_status.py +3 -3
- msgraph/generated/models/windows_update_for_business_update_weeks.py +1 -1
- msgraph/generated/models/windows_update_notification_display_option.py +1 -1
- msgraph/generated/organization/item/branding/localizations/item/banner_logo/banner_logo_request_builder.py +3 -3
- msgraph/generated/organization/item/organization_item_request_builder.py +7 -7
- msgraph/generated/policies/cross_tenant_access_policy/partners/item/identity_synchronization/identity_synchronization_request_builder.py +3 -3
- msgraph/generated/security/attack_simulation/end_user_notifications/end_user_notifications_request_builder.py +4 -4
- msgraph/generated/sites/sites_request_builder.py +4 -4
- msgraph/generated/teams/item/channels/item/all_members/all_members_request_builder.py +3 -3
- msgraph/generated/teams/item/channels/item/members/item/conversation_member_item_request_builder.py +3 -3
- msgraph/generated/teams/item/channels/item/members/members_request_builder.py +6 -6
- msgraph/generated/tenant_relationships/multi_tenant_organization/multi_tenant_organization_request_builder.py +3 -3
- msgraph/generated/users/item/change_password/change_password_request_builder.py +2 -2
- msgraph/generated/users/item/presence/presence_request_builder.py +4 -4
- msgraph/generated/users/item/user_item_request_builder.py +8 -8
- msgraph/generated/users/users_request_builder.py +3 -3
- msgraph/generated/users_with_user_principal_name/users_with_user_principal_name_request_builder.py +8 -8
- {msgraph_sdk-1.40.0.dist-info → msgraph_sdk-1.44.0.dist-info}/METADATA +2 -2
- {msgraph_sdk-1.40.0.dist-info → msgraph_sdk-1.44.0.dist-info}/RECORD +125 -107
- {msgraph_sdk-1.40.0.dist-info → msgraph_sdk-1.44.0.dist-info}/WHEEL +0 -0
- {msgraph_sdk-1.40.0.dist-info → msgraph_sdk-1.44.0.dist-info}/licenses/LICENSE +0 -0
@@ -0,0 +1,60 @@
|
|
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 .authentication_event_listener import AuthenticationEventListener
|
9
|
+
from .on_otp_send_handler import OnOtpSendHandler
|
10
|
+
|
11
|
+
from .authentication_event_listener import AuthenticationEventListener
|
12
|
+
|
13
|
+
@dataclass
|
14
|
+
class OnEmailOtpSendListener(AuthenticationEventListener, Parsable):
|
15
|
+
# The OdataType property
|
16
|
+
odata_type: Optional[str] = "#microsoft.graph.onEmailOtpSendListener"
|
17
|
+
# Used to configure what to invoke if the onEmailOTPSend event resolves to this listener. This base class serves as a generic OTP event handler used for both email and SMS OTP messages.
|
18
|
+
handler: Optional[OnOtpSendHandler] = None
|
19
|
+
|
20
|
+
@staticmethod
|
21
|
+
def create_from_discriminator_value(parse_node: ParseNode) -> OnEmailOtpSendListener:
|
22
|
+
"""
|
23
|
+
Creates a new instance of the appropriate class based on discriminator value
|
24
|
+
param parse_node: The parse node to use to read the discriminator value and create the object
|
25
|
+
Returns: OnEmailOtpSendListener
|
26
|
+
"""
|
27
|
+
if parse_node is None:
|
28
|
+
raise TypeError("parse_node cannot be null.")
|
29
|
+
return OnEmailOtpSendListener()
|
30
|
+
|
31
|
+
def get_field_deserializers(self,) -> dict[str, Callable[[ParseNode], None]]:
|
32
|
+
"""
|
33
|
+
The deserialization information for the current model
|
34
|
+
Returns: dict[str, Callable[[ParseNode], None]]
|
35
|
+
"""
|
36
|
+
from .authentication_event_listener import AuthenticationEventListener
|
37
|
+
from .on_otp_send_handler import OnOtpSendHandler
|
38
|
+
|
39
|
+
from .authentication_event_listener import AuthenticationEventListener
|
40
|
+
from .on_otp_send_handler import OnOtpSendHandler
|
41
|
+
|
42
|
+
fields: dict[str, Callable[[Any], None]] = {
|
43
|
+
"handler": lambda n : setattr(self, 'handler', n.get_object_value(OnOtpSendHandler)),
|
44
|
+
}
|
45
|
+
super_fields = super().get_field_deserializers()
|
46
|
+
fields.update(super_fields)
|
47
|
+
return fields
|
48
|
+
|
49
|
+
def serialize(self,writer: SerializationWriter) -> None:
|
50
|
+
"""
|
51
|
+
Serializes information the current object
|
52
|
+
param writer: Serialization writer to use to serialize this model
|
53
|
+
Returns: None
|
54
|
+
"""
|
55
|
+
if writer is None:
|
56
|
+
raise TypeError("writer cannot be null.")
|
57
|
+
super().serialize(writer)
|
58
|
+
writer.write_object_value("handler", self.handler)
|
59
|
+
|
60
|
+
|
@@ -0,0 +1,53 @@
|
|
1
|
+
from __future__ import annotations
|
2
|
+
from collections.abc import Callable
|
3
|
+
from dataclasses import dataclass, field
|
4
|
+
from kiota_abstractions.serialization import Parsable, ParseNode, SerializationWriter
|
5
|
+
from typing import Any, Optional, TYPE_CHECKING, Union
|
6
|
+
|
7
|
+
if TYPE_CHECKING:
|
8
|
+
from .custom_authentication_extension import CustomAuthenticationExtension
|
9
|
+
|
10
|
+
from .custom_authentication_extension import CustomAuthenticationExtension
|
11
|
+
|
12
|
+
@dataclass
|
13
|
+
class OnOtpSendCustomExtension(CustomAuthenticationExtension, Parsable):
|
14
|
+
# The OdataType property
|
15
|
+
odata_type: Optional[str] = "#microsoft.graph.onOtpSendCustomExtension"
|
16
|
+
|
17
|
+
@staticmethod
|
18
|
+
def create_from_discriminator_value(parse_node: ParseNode) -> OnOtpSendCustomExtension:
|
19
|
+
"""
|
20
|
+
Creates a new instance of the appropriate class based on discriminator value
|
21
|
+
param parse_node: The parse node to use to read the discriminator value and create the object
|
22
|
+
Returns: OnOtpSendCustomExtension
|
23
|
+
"""
|
24
|
+
if parse_node is None:
|
25
|
+
raise TypeError("parse_node cannot be null.")
|
26
|
+
return OnOtpSendCustomExtension()
|
27
|
+
|
28
|
+
def get_field_deserializers(self,) -> dict[str, Callable[[ParseNode], None]]:
|
29
|
+
"""
|
30
|
+
The deserialization information for the current model
|
31
|
+
Returns: dict[str, Callable[[ParseNode], None]]
|
32
|
+
"""
|
33
|
+
from .custom_authentication_extension import CustomAuthenticationExtension
|
34
|
+
|
35
|
+
from .custom_authentication_extension import CustomAuthenticationExtension
|
36
|
+
|
37
|
+
fields: dict[str, Callable[[Any], None]] = {
|
38
|
+
}
|
39
|
+
super_fields = super().get_field_deserializers()
|
40
|
+
fields.update(super_fields)
|
41
|
+
return fields
|
42
|
+
|
43
|
+
def serialize(self,writer: SerializationWriter) -> None:
|
44
|
+
"""
|
45
|
+
Serializes information the current object
|
46
|
+
param writer: Serialization writer to use to serialize this model
|
47
|
+
Returns: None
|
48
|
+
"""
|
49
|
+
if writer is None:
|
50
|
+
raise TypeError("writer cannot be null.")
|
51
|
+
super().serialize(writer)
|
52
|
+
|
53
|
+
|
@@ -0,0 +1,67 @@
|
|
1
|
+
from __future__ import annotations
|
2
|
+
from collections.abc import Callable
|
3
|
+
from dataclasses import dataclass, field
|
4
|
+
from kiota_abstractions.serialization import Parsable, ParseNode, SerializationWriter
|
5
|
+
from typing import Any, Optional, TYPE_CHECKING, Union
|
6
|
+
|
7
|
+
if TYPE_CHECKING:
|
8
|
+
from .custom_extension_overwrite_configuration import CustomExtensionOverwriteConfiguration
|
9
|
+
from .on_otp_send_custom_extension import OnOtpSendCustomExtension
|
10
|
+
from .on_otp_send_handler import OnOtpSendHandler
|
11
|
+
|
12
|
+
from .on_otp_send_handler import OnOtpSendHandler
|
13
|
+
|
14
|
+
@dataclass
|
15
|
+
class OnOtpSendCustomExtensionHandler(OnOtpSendHandler, Parsable):
|
16
|
+
# The OdataType property
|
17
|
+
odata_type: Optional[str] = "#microsoft.graph.onOtpSendCustomExtensionHandler"
|
18
|
+
# Configuration regarding properties of the custom extension that are can be overwritten for the onEmailOtpSendListener event listener.
|
19
|
+
configuration: Optional[CustomExtensionOverwriteConfiguration] = None
|
20
|
+
# The customExtension property
|
21
|
+
custom_extension: Optional[OnOtpSendCustomExtension] = None
|
22
|
+
|
23
|
+
@staticmethod
|
24
|
+
def create_from_discriminator_value(parse_node: ParseNode) -> OnOtpSendCustomExtensionHandler:
|
25
|
+
"""
|
26
|
+
Creates a new instance of the appropriate class based on discriminator value
|
27
|
+
param parse_node: The parse node to use to read the discriminator value and create the object
|
28
|
+
Returns: OnOtpSendCustomExtensionHandler
|
29
|
+
"""
|
30
|
+
if parse_node is None:
|
31
|
+
raise TypeError("parse_node cannot be null.")
|
32
|
+
return OnOtpSendCustomExtensionHandler()
|
33
|
+
|
34
|
+
def get_field_deserializers(self,) -> dict[str, Callable[[ParseNode], None]]:
|
35
|
+
"""
|
36
|
+
The deserialization information for the current model
|
37
|
+
Returns: dict[str, Callable[[ParseNode], None]]
|
38
|
+
"""
|
39
|
+
from .custom_extension_overwrite_configuration import CustomExtensionOverwriteConfiguration
|
40
|
+
from .on_otp_send_custom_extension import OnOtpSendCustomExtension
|
41
|
+
from .on_otp_send_handler import OnOtpSendHandler
|
42
|
+
|
43
|
+
from .custom_extension_overwrite_configuration import CustomExtensionOverwriteConfiguration
|
44
|
+
from .on_otp_send_custom_extension import OnOtpSendCustomExtension
|
45
|
+
from .on_otp_send_handler import OnOtpSendHandler
|
46
|
+
|
47
|
+
fields: dict[str, Callable[[Any], None]] = {
|
48
|
+
"configuration": lambda n : setattr(self, 'configuration', n.get_object_value(CustomExtensionOverwriteConfiguration)),
|
49
|
+
"customExtension": lambda n : setattr(self, 'custom_extension', n.get_object_value(OnOtpSendCustomExtension)),
|
50
|
+
}
|
51
|
+
super_fields = super().get_field_deserializers()
|
52
|
+
fields.update(super_fields)
|
53
|
+
return fields
|
54
|
+
|
55
|
+
def serialize(self,writer: SerializationWriter) -> None:
|
56
|
+
"""
|
57
|
+
Serializes information the current object
|
58
|
+
param writer: Serialization writer to use to serialize this model
|
59
|
+
Returns: None
|
60
|
+
"""
|
61
|
+
if writer is None:
|
62
|
+
raise TypeError("writer cannot be null.")
|
63
|
+
super().serialize(writer)
|
64
|
+
writer.write_object_value("configuration", self.configuration)
|
65
|
+
writer.write_object_value("customExtension", self.custom_extension)
|
66
|
+
|
67
|
+
|
@@ -0,0 +1,66 @@
|
|
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 .on_otp_send_custom_extension_handler import OnOtpSendCustomExtensionHandler
|
10
|
+
|
11
|
+
@dataclass
|
12
|
+
class OnOtpSendHandler(AdditionalDataHolder, BackedModel, Parsable):
|
13
|
+
# Stores model information.
|
14
|
+
backing_store: BackingStore = field(default_factory=BackingStoreFactorySingleton(backing_store_factory=None).backing_store_factory.create_backing_store, repr=False)
|
15
|
+
|
16
|
+
# Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
17
|
+
additional_data: dict[str, Any] = field(default_factory=dict)
|
18
|
+
# The OdataType property
|
19
|
+
odata_type: Optional[str] = None
|
20
|
+
|
21
|
+
@staticmethod
|
22
|
+
def create_from_discriminator_value(parse_node: ParseNode) -> OnOtpSendHandler:
|
23
|
+
"""
|
24
|
+
Creates a new instance of the appropriate class based on discriminator value
|
25
|
+
param parse_node: The parse node to use to read the discriminator value and create the object
|
26
|
+
Returns: OnOtpSendHandler
|
27
|
+
"""
|
28
|
+
if parse_node is None:
|
29
|
+
raise TypeError("parse_node cannot be null.")
|
30
|
+
try:
|
31
|
+
child_node = parse_node.get_child_node("@odata.type")
|
32
|
+
mapping_value = child_node.get_str_value() if child_node else None
|
33
|
+
except AttributeError:
|
34
|
+
mapping_value = None
|
35
|
+
if mapping_value and mapping_value.casefold() == "#microsoft.graph.onOtpSendCustomExtensionHandler".casefold():
|
36
|
+
from .on_otp_send_custom_extension_handler import OnOtpSendCustomExtensionHandler
|
37
|
+
|
38
|
+
return OnOtpSendCustomExtensionHandler()
|
39
|
+
return OnOtpSendHandler()
|
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 .on_otp_send_custom_extension_handler import OnOtpSendCustomExtensionHandler
|
47
|
+
|
48
|
+
from .on_otp_send_custom_extension_handler import OnOtpSendCustomExtensionHandler
|
49
|
+
|
50
|
+
fields: dict[str, Callable[[Any], None]] = {
|
51
|
+
"@odata.type": lambda n : setattr(self, 'odata_type', n.get_str_value()),
|
52
|
+
}
|
53
|
+
return fields
|
54
|
+
|
55
|
+
def serialize(self,writer: SerializationWriter) -> None:
|
56
|
+
"""
|
57
|
+
Serializes information the current object
|
58
|
+
param writer: Serialization writer to use to serialize this model
|
59
|
+
Returns: None
|
60
|
+
"""
|
61
|
+
if writer is None:
|
62
|
+
raise TypeError("writer cannot be null.")
|
63
|
+
writer.write_str_value("@odata.type", self.odata_type)
|
64
|
+
writer.write_additional_data_value(self.additional_data)
|
65
|
+
|
66
|
+
|
@@ -26,7 +26,7 @@ class OnlineMeeting(OnlineMeetingBase, Parsable):
|
|
26
26
|
creation_date_time: Optional[datetime.datetime] = None
|
27
27
|
# The meeting end time in UTC. Required when you create an online meeting.
|
28
28
|
end_date_time: Optional[datetime.datetime] = None
|
29
|
-
# The
|
29
|
+
# The external ID that is a custom identifier. Optional.
|
30
30
|
external_id: Optional[str] = None
|
31
31
|
# Indicates whether this meeting is a Teams live event.
|
32
32
|
is_broadcast: Optional[bool] = None
|
@@ -32,6 +32,8 @@ class OnlineMeetingBase(Entity, Parsable):
|
|
32
32
|
allow_attendee_to_enable_mic: Optional[bool] = None
|
33
33
|
# Indicates whether breakout rooms are enabled for the meeting.
|
34
34
|
allow_breakout_rooms: Optional[bool] = None
|
35
|
+
# The allowCopyingAndSharingMeetingContent property
|
36
|
+
allow_copying_and_sharing_meeting_content: Optional[bool] = None
|
35
37
|
# Indicates whether live share is enabled for the meeting. Possible values are: enabled, disabled, unknownFutureValue.
|
36
38
|
allow_live_share: Optional[MeetingLiveShareOptions] = None
|
37
39
|
# Specifies the mode of the meeting chat.
|
@@ -50,7 +52,7 @@ class OnlineMeetingBase(Entity, Parsable):
|
|
50
52
|
allow_whiteboard: Optional[bool] = None
|
51
53
|
# Specifies the users who can admit from the lobby. Possible values are: organizerAndCoOrganizersAndPresenters, organizerAndCoOrganizers, unknownFutureValue.
|
52
54
|
allowed_lobby_admitters: Optional[AllowedLobbyAdmitterRoles] = None
|
53
|
-
# Specifies who can be a presenter in a meeting.
|
55
|
+
# Specifies who can be a presenter in a meeting. Possible values are: everyone, organization, roleIsPresenter, organizer, unknownFutureValue. Inherited from onlineMeetingBase.
|
54
56
|
allowed_presenters: Optional[OnlineMeetingPresenters] = None
|
55
57
|
# The attendance reports of an online meeting. Read-only.
|
56
58
|
attendance_reports: Optional[list[MeetingAttendanceReport]] = None
|
@@ -60,7 +62,7 @@ class OnlineMeetingBase(Entity, Parsable):
|
|
60
62
|
chat_info: Optional[ChatInfo] = None
|
61
63
|
# Specifies the configuration settings for meeting chat restrictions.
|
62
64
|
chat_restrictions: Optional[ChatRestrictions] = None
|
63
|
-
#
|
65
|
+
# Indicates whether end-to-end encryption (E2EE) is enabled for the online meeting.
|
64
66
|
is_end_to_end_encryption_enabled: Optional[bool] = None
|
65
67
|
# Indicates whether to announce when callers join or leave.
|
66
68
|
is_entry_exit_announced: Optional[bool] = None
|
@@ -152,6 +154,7 @@ class OnlineMeetingBase(Entity, Parsable):
|
|
152
154
|
"allowAttendeeToEnableCamera": lambda n : setattr(self, 'allow_attendee_to_enable_camera', n.get_bool_value()),
|
153
155
|
"allowAttendeeToEnableMic": lambda n : setattr(self, 'allow_attendee_to_enable_mic', n.get_bool_value()),
|
154
156
|
"allowBreakoutRooms": lambda n : setattr(self, 'allow_breakout_rooms', n.get_bool_value()),
|
157
|
+
"allowCopyingAndSharingMeetingContent": lambda n : setattr(self, 'allow_copying_and_sharing_meeting_content', n.get_bool_value()),
|
155
158
|
"allowLiveShare": lambda n : setattr(self, 'allow_live_share', n.get_enum_value(MeetingLiveShareOptions)),
|
156
159
|
"allowMeetingChat": lambda n : setattr(self, 'allow_meeting_chat', n.get_enum_value(MeetingChatMode)),
|
157
160
|
"allowParticipantsToChangeName": lambda n : setattr(self, 'allow_participants_to_change_name', n.get_bool_value()),
|
@@ -194,6 +197,7 @@ class OnlineMeetingBase(Entity, Parsable):
|
|
194
197
|
writer.write_bool_value("allowAttendeeToEnableCamera", self.allow_attendee_to_enable_camera)
|
195
198
|
writer.write_bool_value("allowAttendeeToEnableMic", self.allow_attendee_to_enable_mic)
|
196
199
|
writer.write_bool_value("allowBreakoutRooms", self.allow_breakout_rooms)
|
200
|
+
writer.write_bool_value("allowCopyingAndSharingMeetingContent", self.allow_copying_and_sharing_meeting_content)
|
197
201
|
writer.write_enum_value("allowLiveShare", self.allow_live_share)
|
198
202
|
writer.write_enum_value("allowMeetingChat", self.allow_meeting_chat)
|
199
203
|
writer.write_bool_value("allowParticipantsToChangeName", self.allow_participants_to_change_name)
|
@@ -12,9 +12,9 @@ class OutOfOfficeSettings(AdditionalDataHolder, BackedModel, Parsable):
|
|
12
12
|
|
13
13
|
# Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
14
14
|
additional_data: dict[str, Any] = field(default_factory=dict)
|
15
|
-
# The
|
15
|
+
# If true, either of the following is met:The current time falls within the out-of-office window configured in Outlook or Teams.An event marked as 'Show as Out of Office' appears on the user's calendar.Otherwise, false.
|
16
16
|
is_out_of_office: Optional[bool] = None
|
17
|
-
# The message
|
17
|
+
# The out-of-office message configured by the user in the Outlook client (Automatic replies) or the Teams client (Schedule out of office).
|
18
18
|
message: Optional[str] = None
|
19
19
|
# The OdataType property
|
20
20
|
odata_type: Optional[str] = None
|
@@ -15,13 +15,13 @@ from .entity import Entity
|
|
15
15
|
class Presence(Entity, Parsable):
|
16
16
|
# The supplemental information to a user's availability. Possible values are Available, Away, BeRightBack, Busy, DoNotDisturb, InACall, InAConferenceCall, Inactive, InAMeeting, Offline, OffWork, OutOfOffice, PresenceUnknown, Presenting, UrgentInterruptionsOnly.
|
17
17
|
activity: Optional[str] = None
|
18
|
-
# The base presence information for a user. Possible values are Available,
|
18
|
+
# The base presence information for a user. Possible values are Available, availableIdle, Away, beRightBack, Busy, busyIdle, DoNotDisturb, Offline, presenceUnknown.
|
19
19
|
availability: Optional[str] = None
|
20
20
|
# The OdataType property
|
21
21
|
odata_type: Optional[str] = None
|
22
|
-
# The
|
22
|
+
# The user's out-of-office settings.
|
23
23
|
out_of_office_settings: Optional[OutOfOfficeSettings] = None
|
24
|
-
# The
|
24
|
+
# The lexicographically sortable string stamp that represents the version of a presence object.
|
25
25
|
sequence_number: Optional[str] = None
|
26
26
|
# The presence status message of a user.
|
27
27
|
status_message: Optional[PresenceStatusMessage] = None
|
@@ -0,0 +1,66 @@
|
|
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
|
+
@dataclass
|
9
|
+
class RestoreSessionArtifactCount(AdditionalDataHolder, BackedModel, Parsable):
|
10
|
+
# Stores model information.
|
11
|
+
backing_store: BackingStore = field(default_factory=BackingStoreFactorySingleton(backing_store_factory=None).backing_store_factory.create_backing_store, repr=False)
|
12
|
+
|
13
|
+
# Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
14
|
+
additional_data: dict[str, Any] = field(default_factory=dict)
|
15
|
+
# The number of artifacts whose restoration completed.
|
16
|
+
completed: Optional[int] = None
|
17
|
+
# The number of artifacts whose restoration failed.
|
18
|
+
failed: Optional[int] = None
|
19
|
+
# The number of artifacts whose restoration is in progress.
|
20
|
+
in_progress: Optional[int] = None
|
21
|
+
# The OdataType property
|
22
|
+
odata_type: Optional[str] = None
|
23
|
+
# The number of artifacts present in the restore session.
|
24
|
+
total: Optional[int] = None
|
25
|
+
|
26
|
+
@staticmethod
|
27
|
+
def create_from_discriminator_value(parse_node: ParseNode) -> RestoreSessionArtifactCount:
|
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: RestoreSessionArtifactCount
|
32
|
+
"""
|
33
|
+
if parse_node is None:
|
34
|
+
raise TypeError("parse_node cannot be null.")
|
35
|
+
return RestoreSessionArtifactCount()
|
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
|
+
fields: dict[str, Callable[[Any], None]] = {
|
43
|
+
"completed": lambda n : setattr(self, 'completed', n.get_int_value()),
|
44
|
+
"failed": lambda n : setattr(self, 'failed', n.get_int_value()),
|
45
|
+
"inProgress": lambda n : setattr(self, 'in_progress', n.get_int_value()),
|
46
|
+
"@odata.type": lambda n : setattr(self, 'odata_type', n.get_str_value()),
|
47
|
+
"total": lambda n : setattr(self, 'total', n.get_int_value()),
|
48
|
+
}
|
49
|
+
return fields
|
50
|
+
|
51
|
+
def serialize(self,writer: SerializationWriter) -> None:
|
52
|
+
"""
|
53
|
+
Serializes information the current object
|
54
|
+
param writer: Serialization writer to use to serialize this model
|
55
|
+
Returns: None
|
56
|
+
"""
|
57
|
+
if writer is None:
|
58
|
+
raise TypeError("writer cannot be null.")
|
59
|
+
writer.write_int_value("completed", self.completed)
|
60
|
+
writer.write_int_value("failed", self.failed)
|
61
|
+
writer.write_int_value("inProgress", self.in_progress)
|
62
|
+
writer.write_str_value("@odata.type", self.odata_type)
|
63
|
+
writer.write_int_value("total", self.total)
|
64
|
+
writer.write_additional_data_value(self.additional_data)
|
65
|
+
|
66
|
+
|
@@ -11,6 +11,8 @@ if TYPE_CHECKING:
|
|
11
11
|
from .identity_set import IdentitySet
|
12
12
|
from .one_drive_for_business_restore_session import OneDriveForBusinessRestoreSession
|
13
13
|
from .public_error import PublicError
|
14
|
+
from .restore_job_type import RestoreJobType
|
15
|
+
from .restore_session_artifact_count import RestoreSessionArtifactCount
|
14
16
|
from .restore_session_status import RestoreSessionStatus
|
15
17
|
from .share_point_restore_session import SharePointRestoreSession
|
16
18
|
|
@@ -32,6 +34,10 @@ class RestoreSessionBase(Entity, Parsable):
|
|
32
34
|
last_modified_date_time: Optional[datetime.datetime] = None
|
33
35
|
# The OdataType property
|
34
36
|
odata_type: Optional[str] = None
|
37
|
+
# Indicates whether the restore session was created normally or by a bulk job.
|
38
|
+
restore_job_type: Optional[RestoreJobType] = None
|
39
|
+
# The number of metadata artifacts that belong to this restore session.
|
40
|
+
restore_session_artifact_count: Optional[RestoreSessionArtifactCount] = None
|
35
41
|
# Status of the restore session. The value is an aggregated status of the restored artifacts. The possible values are: draft, activating, active, completedWithError, completed, unknownFutureValue, failed. Use the Prefer: include-unknown-enum-members request header to get the following value in this evolvable enum: failed.
|
36
42
|
status: Optional[RestoreSessionStatus] = None
|
37
43
|
|
@@ -73,6 +79,8 @@ class RestoreSessionBase(Entity, Parsable):
|
|
73
79
|
from .identity_set import IdentitySet
|
74
80
|
from .one_drive_for_business_restore_session import OneDriveForBusinessRestoreSession
|
75
81
|
from .public_error import PublicError
|
82
|
+
from .restore_job_type import RestoreJobType
|
83
|
+
from .restore_session_artifact_count import RestoreSessionArtifactCount
|
76
84
|
from .restore_session_status import RestoreSessionStatus
|
77
85
|
from .share_point_restore_session import SharePointRestoreSession
|
78
86
|
|
@@ -81,6 +89,8 @@ class RestoreSessionBase(Entity, Parsable):
|
|
81
89
|
from .identity_set import IdentitySet
|
82
90
|
from .one_drive_for_business_restore_session import OneDriveForBusinessRestoreSession
|
83
91
|
from .public_error import PublicError
|
92
|
+
from .restore_job_type import RestoreJobType
|
93
|
+
from .restore_session_artifact_count import RestoreSessionArtifactCount
|
84
94
|
from .restore_session_status import RestoreSessionStatus
|
85
95
|
from .share_point_restore_session import SharePointRestoreSession
|
86
96
|
|
@@ -91,6 +101,8 @@ class RestoreSessionBase(Entity, Parsable):
|
|
91
101
|
"error": lambda n : setattr(self, 'error', n.get_object_value(PublicError)),
|
92
102
|
"lastModifiedBy": lambda n : setattr(self, 'last_modified_by', n.get_object_value(IdentitySet)),
|
93
103
|
"lastModifiedDateTime": lambda n : setattr(self, 'last_modified_date_time', n.get_datetime_value()),
|
104
|
+
"restoreJobType": lambda n : setattr(self, 'restore_job_type', n.get_enum_value(RestoreJobType)),
|
105
|
+
"restoreSessionArtifactCount": lambda n : setattr(self, 'restore_session_artifact_count', n.get_object_value(RestoreSessionArtifactCount)),
|
94
106
|
"status": lambda n : setattr(self, 'status', n.get_enum_value(RestoreSessionStatus)),
|
95
107
|
}
|
96
108
|
super_fields = super().get_field_deserializers()
|
@@ -112,6 +124,8 @@ class RestoreSessionBase(Entity, Parsable):
|
|
112
124
|
writer.write_object_value("error", self.error)
|
113
125
|
writer.write_object_value("lastModifiedBy", self.last_modified_by)
|
114
126
|
writer.write_datetime_value("lastModifiedDateTime", self.last_modified_date_time)
|
127
|
+
writer.write_enum_value("restoreJobType", self.restore_job_type)
|
128
|
+
writer.write_object_value("restoreSessionArtifactCount", self.restore_session_artifact_count)
|
115
129
|
writer.write_enum_value("status", self.status)
|
116
130
|
|
117
131
|
|
@@ -43,7 +43,7 @@ class Alert(Entity, Parsable):
|
|
43
43
|
custom_details: Optional[Dictionary] = None
|
44
44
|
# String value describing each alert.
|
45
45
|
description: Optional[str] = None
|
46
|
-
# Detection technology or sensor that identified the notable component or activity. Possible values are: unknown, microsoftDefenderForEndpoint, antivirus, smartScreen, customTi, microsoftDefenderForOffice365, automatedInvestigation, microsoftThreatExperts, customDetection, microsoftDefenderForIdentity, cloudAppSecurity, microsoft365Defender, azureAdIdentityProtection, manual, microsoftDataLossPrevention, appGovernancePolicy, appGovernanceDetection, unknownFutureValue, microsoftDefenderForCloud, microsoftDefenderForIoT, microsoftDefenderForServers, microsoftDefenderForStorage, microsoftDefenderForDNS, microsoftDefenderForDatabases, microsoftDefenderForContainers, microsoftDefenderForNetwork, microsoftDefenderForAppService, microsoftDefenderForKeyVault, microsoftDefenderForResourceManager, microsoftDefenderForApiManagement, microsoftSentinel, nrtAlerts, scheduledAlerts, microsoftDefenderThreatIntelligenceAnalytics, builtInMl, microsoftThreatIntelligence. Use the Prefer: include-unknown-enum-members request header to get the following values in this evolvable enum: microsoftDefenderForCloud, microsoftDefenderForIoT, microsoftDefenderForServers, microsoftDefenderForStorage, microsoftDefenderForDNS, microsoftDefenderForDatabases, microsoftDefenderForContainers, microsoftDefenderForNetwork, microsoftDefenderForAppService, microsoftDefenderForKeyVault, microsoftDefenderForResourceManager, microsoftDefenderForApiManagement, microsoftSentinel, nrtAlerts, scheduledAlerts, microsoftDefenderThreatIntelligenceAnalytics, builtInMl, microsoftThreatIntelligence.
|
46
|
+
# Detection technology or sensor that identified the notable component or activity. Possible values are: unknown, microsoftDefenderForEndpoint, antivirus, smartScreen, customTi, microsoftDefenderForOffice365, automatedInvestigation, microsoftThreatExperts, customDetection, microsoftDefenderForIdentity, cloudAppSecurity, microsoft365Defender, azureAdIdentityProtection, manual, microsoftDataLossPrevention, appGovernancePolicy, appGovernanceDetection, unknownFutureValue, microsoftDefenderForCloud, microsoftDefenderForIoT, microsoftDefenderForServers, microsoftDefenderForStorage, microsoftDefenderForDNS, microsoftDefenderForDatabases, microsoftDefenderForContainers, microsoftDefenderForNetwork, microsoftDefenderForAppService, microsoftDefenderForKeyVault, microsoftDefenderForResourceManager, microsoftDefenderForApiManagement, microsoftSentinel, nrtAlerts, scheduledAlerts, microsoftDefenderThreatIntelligenceAnalytics, builtInMl, microsoftThreatIntelligence, microsoftDefenderForAIServices, securityCopilot. Use the Prefer: include-unknown-enum-members request header to get the following values in this evolvable enum: microsoftDefenderForCloud, microsoftDefenderForIoT, microsoftDefenderForServers, microsoftDefenderForStorage, microsoftDefenderForDNS, microsoftDefenderForDatabases, microsoftDefenderForContainers, microsoftDefenderForNetwork, microsoftDefenderForAppService, microsoftDefenderForKeyVault, microsoftDefenderForResourceManager, microsoftDefenderForApiManagement, microsoftSentinel, nrtAlerts, scheduledAlerts, microsoftDefenderThreatIntelligenceAnalytics, builtInMl, microsoftThreatIntelligence, microsoftDefenderForAIServices, securityCopilot.
|
47
47
|
detection_source: Optional[DetectionSource] = None
|
48
48
|
# The ID of the detector that triggered the alert.
|
49
49
|
detector_id: Optional[str] = None
|
@@ -12,6 +12,7 @@ if TYPE_CHECKING:
|
|
12
12
|
from .ediscovery_review_set import EdiscoveryReviewSet
|
13
13
|
from .ediscovery_search import EdiscoverySearch
|
14
14
|
from .items_to_include import ItemsToInclude
|
15
|
+
from .report_file_metadata import ReportFileMetadata
|
15
16
|
|
16
17
|
from .case_operation import CaseOperation
|
17
18
|
|
@@ -27,6 +28,8 @@ class EdiscoveryAddToReviewSetOperation(CaseOperation, Parsable):
|
|
27
28
|
items_to_include: Optional[ItemsToInclude] = None
|
28
29
|
# The OdataType property
|
29
30
|
odata_type: Optional[str] = None
|
31
|
+
# Contains the properties for report file metadata, including downloadUrl, fileName, and size.
|
32
|
+
report_file_metadata: Optional[list[ReportFileMetadata]] = None
|
30
33
|
# eDiscovery review set to which items matching source collection query gets added.
|
31
34
|
review_set: Optional[EdiscoveryReviewSet] = None
|
32
35
|
# eDiscovery search that gets added to review set.
|
@@ -55,6 +58,7 @@ class EdiscoveryAddToReviewSetOperation(CaseOperation, Parsable):
|
|
55
58
|
from .ediscovery_review_set import EdiscoveryReviewSet
|
56
59
|
from .ediscovery_search import EdiscoverySearch
|
57
60
|
from .items_to_include import ItemsToInclude
|
61
|
+
from .report_file_metadata import ReportFileMetadata
|
58
62
|
|
59
63
|
from .additional_data_options import AdditionalDataOptions
|
60
64
|
from .case_operation import CaseOperation
|
@@ -63,12 +67,14 @@ class EdiscoveryAddToReviewSetOperation(CaseOperation, Parsable):
|
|
63
67
|
from .ediscovery_review_set import EdiscoveryReviewSet
|
64
68
|
from .ediscovery_search import EdiscoverySearch
|
65
69
|
from .items_to_include import ItemsToInclude
|
70
|
+
from .report_file_metadata import ReportFileMetadata
|
66
71
|
|
67
72
|
fields: dict[str, Callable[[Any], None]] = {
|
68
73
|
"additionalDataOptions": lambda n : setattr(self, 'additional_data_options', n.get_collection_of_enum_values(AdditionalDataOptions)),
|
69
74
|
"cloudAttachmentVersion": lambda n : setattr(self, 'cloud_attachment_version', n.get_enum_value(CloudAttachmentVersion)),
|
70
75
|
"documentVersion": lambda n : setattr(self, 'document_version', n.get_enum_value(DocumentVersion)),
|
71
76
|
"itemsToInclude": lambda n : setattr(self, 'items_to_include', n.get_collection_of_enum_values(ItemsToInclude)),
|
77
|
+
"reportFileMetadata": lambda n : setattr(self, 'report_file_metadata', n.get_collection_of_object_values(ReportFileMetadata)),
|
72
78
|
"reviewSet": lambda n : setattr(self, 'review_set', n.get_object_value(EdiscoveryReviewSet)),
|
73
79
|
"search": lambda n : setattr(self, 'search', n.get_object_value(EdiscoverySearch)),
|
74
80
|
}
|
@@ -89,6 +95,7 @@ class EdiscoveryAddToReviewSetOperation(CaseOperation, Parsable):
|
|
89
95
|
writer.write_enum_value("cloudAttachmentVersion", self.cloud_attachment_version)
|
90
96
|
writer.write_enum_value("documentVersion", self.document_version)
|
91
97
|
writer.write_enum_value("itemsToInclude", self.items_to_include)
|
98
|
+
writer.write_collection_of_object_values("reportFileMetadata", self.report_file_metadata)
|
92
99
|
writer.write_object_value("reviewSet", self.review_set)
|
93
100
|
writer.write_object_value("search", self.search)
|
94
101
|
|
@@ -6,20 +6,26 @@ from typing import Any, Optional, TYPE_CHECKING, Union
|
|
6
6
|
|
7
7
|
if TYPE_CHECKING:
|
8
8
|
from ..entity import Entity
|
9
|
+
from .case_type import CaseType
|
9
10
|
from .ocr_settings import OcrSettings
|
10
11
|
from .redundancy_detection_settings import RedundancyDetectionSettings
|
12
|
+
from .review_set_settings import ReviewSetSettings
|
11
13
|
from .topic_modeling_settings import TopicModelingSettings
|
12
14
|
|
13
15
|
from ..entity import Entity
|
14
16
|
|
15
17
|
@dataclass
|
16
18
|
class EdiscoveryCaseSettings(Entity, Parsable):
|
19
|
+
# The caseType property
|
20
|
+
case_type: Optional[CaseType] = None
|
17
21
|
# The OCR (Optical Character Recognition) settings for the case.
|
18
22
|
ocr: Optional[OcrSettings] = None
|
19
23
|
# The OdataType property
|
20
24
|
odata_type: Optional[str] = None
|
21
25
|
# The redundancy (near duplicate and email threading) detection settings for the case.
|
22
26
|
redundancy_detection: Optional[RedundancyDetectionSettings] = None
|
27
|
+
# The settings of the review set for the case. Possible values are: none, disableGrouping, unknownFutureValue.
|
28
|
+
review_set_settings: Optional[ReviewSetSettings] = None
|
23
29
|
# The Topic Modeling (Themes) settings for the case.
|
24
30
|
topic_modeling: Optional[TopicModelingSettings] = None
|
25
31
|
|
@@ -40,18 +46,24 @@ class EdiscoveryCaseSettings(Entity, Parsable):
|
|
40
46
|
Returns: dict[str, Callable[[ParseNode], None]]
|
41
47
|
"""
|
42
48
|
from ..entity import Entity
|
49
|
+
from .case_type import CaseType
|
43
50
|
from .ocr_settings import OcrSettings
|
44
51
|
from .redundancy_detection_settings import RedundancyDetectionSettings
|
52
|
+
from .review_set_settings import ReviewSetSettings
|
45
53
|
from .topic_modeling_settings import TopicModelingSettings
|
46
54
|
|
47
55
|
from ..entity import Entity
|
56
|
+
from .case_type import CaseType
|
48
57
|
from .ocr_settings import OcrSettings
|
49
58
|
from .redundancy_detection_settings import RedundancyDetectionSettings
|
59
|
+
from .review_set_settings import ReviewSetSettings
|
50
60
|
from .topic_modeling_settings import TopicModelingSettings
|
51
61
|
|
52
62
|
fields: dict[str, Callable[[Any], None]] = {
|
63
|
+
"caseType": lambda n : setattr(self, 'case_type', n.get_enum_value(CaseType)),
|
53
64
|
"ocr": lambda n : setattr(self, 'ocr', n.get_object_value(OcrSettings)),
|
54
65
|
"redundancyDetection": lambda n : setattr(self, 'redundancy_detection', n.get_object_value(RedundancyDetectionSettings)),
|
66
|
+
"reviewSetSettings": lambda n : setattr(self, 'review_set_settings', n.get_collection_of_enum_values(ReviewSetSettings)),
|
55
67
|
"topicModeling": lambda n : setattr(self, 'topic_modeling', n.get_object_value(TopicModelingSettings)),
|
56
68
|
}
|
57
69
|
super_fields = super().get_field_deserializers()
|
@@ -67,8 +79,10 @@ class EdiscoveryCaseSettings(Entity, Parsable):
|
|
67
79
|
if writer is None:
|
68
80
|
raise TypeError("writer cannot be null.")
|
69
81
|
super().serialize(writer)
|
82
|
+
writer.write_enum_value("caseType", self.case_type)
|
70
83
|
writer.write_object_value("ocr", self.ocr)
|
71
84
|
writer.write_object_value("redundancyDetection", self.redundancy_detection)
|
85
|
+
writer.write_enum_value("reviewSetSettings", self.review_set_settings)
|
72
86
|
writer.write_object_value("topicModeling", self.topic_modeling)
|
73
87
|
|
74
88
|
|
@@ -7,6 +7,7 @@ from typing import Any, Optional, TYPE_CHECKING, Union
|
|
7
7
|
if TYPE_CHECKING:
|
8
8
|
from .case_operation import CaseOperation
|
9
9
|
from .ediscovery_search import EdiscoverySearch
|
10
|
+
from .report_file_metadata import ReportFileMetadata
|
10
11
|
from .statistics_options import StatisticsOptions
|
11
12
|
|
12
13
|
from .case_operation import CaseOperation
|
@@ -21,6 +22,8 @@ class EdiscoveryEstimateOperation(CaseOperation, Parsable):
|
|
21
22
|
mailbox_count: Optional[int] = None
|
22
23
|
# The OdataType property
|
23
24
|
odata_type: Optional[str] = None
|
25
|
+
# Contains the properties for report file metadata, including downloadUrl, fileName, and size.
|
26
|
+
report_file_metadata: Optional[list[ReportFileMetadata]] = None
|
24
27
|
# eDiscovery search.
|
25
28
|
search: Optional[EdiscoverySearch] = None
|
26
29
|
# The number of mailboxes that had search hits.
|
@@ -50,16 +53,19 @@ class EdiscoveryEstimateOperation(CaseOperation, Parsable):
|
|
50
53
|
"""
|
51
54
|
from .case_operation import CaseOperation
|
52
55
|
from .ediscovery_search import EdiscoverySearch
|
56
|
+
from .report_file_metadata import ReportFileMetadata
|
53
57
|
from .statistics_options import StatisticsOptions
|
54
58
|
|
55
59
|
from .case_operation import CaseOperation
|
56
60
|
from .ediscovery_search import EdiscoverySearch
|
61
|
+
from .report_file_metadata import ReportFileMetadata
|
57
62
|
from .statistics_options import StatisticsOptions
|
58
63
|
|
59
64
|
fields: dict[str, Callable[[Any], None]] = {
|
60
65
|
"indexedItemCount": lambda n : setattr(self, 'indexed_item_count', n.get_int_value()),
|
61
66
|
"indexedItemsSize": lambda n : setattr(self, 'indexed_items_size', n.get_int_value()),
|
62
67
|
"mailboxCount": lambda n : setattr(self, 'mailbox_count', n.get_int_value()),
|
68
|
+
"reportFileMetadata": lambda n : setattr(self, 'report_file_metadata', n.get_collection_of_object_values(ReportFileMetadata)),
|
63
69
|
"search": lambda n : setattr(self, 'search', n.get_object_value(EdiscoverySearch)),
|
64
70
|
"siteCount": lambda n : setattr(self, 'site_count', n.get_int_value()),
|
65
71
|
"statisticsOptions": lambda n : setattr(self, 'statistics_options', n.get_collection_of_enum_values(StatisticsOptions)),
|
@@ -82,6 +88,7 @@ class EdiscoveryEstimateOperation(CaseOperation, Parsable):
|
|
82
88
|
writer.write_int_value("indexedItemCount", self.indexed_item_count)
|
83
89
|
writer.write_int_value("indexedItemsSize", self.indexed_items_size)
|
84
90
|
writer.write_int_value("mailboxCount", self.mailbox_count)
|
91
|
+
writer.write_collection_of_object_values("reportFileMetadata", self.report_file_metadata)
|
85
92
|
writer.write_object_value("search", self.search)
|
86
93
|
writer.write_int_value("siteCount", self.site_count)
|
87
94
|
writer.write_enum_value("statisticsOptions", self.statistics_options)
|