msgraph-sdk 1.13.0__py3-none-any.whl → 1.14.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- msgraph/_version.py +1 -1
- msgraph/generated/chats/item/members/item/conversation_member_item_request_builder.py +4 -4
- msgraph/generated/chats/item/messages/messages_request_builder.py +3 -3
- msgraph/generated/communications/calls/item/participants/invite/invite_request_builder.py +3 -3
- msgraph/generated/device_app_management/device_app_management_request_builder.py +1 -1
- 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_policies/managed_app_policies_request_builder.py +4 -4
- 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/managed_app_statuses_request_builder.py +4 -4
- msgraph/generated/device_app_management/managed_e_books/item/assignments/assignments_request_builder.py +3 -3
- msgraph/generated/device_app_management/managed_e_books/item/assignments/item/managed_e_book_assignment_item_request_builder.py +3 -3
- msgraph/generated/device_app_management/managed_e_books/item/managed_e_book_item_request_builder.py +4 -4
- msgraph/generated/device_app_management/managed_e_books/managed_e_books_request_builder.py +4 -4
- msgraph/generated/device_app_management/mobile_app_configurations/item/managed_device_mobile_app_configuration_item_request_builder.py +4 -4
- msgraph/generated/device_app_management/mobile_app_configurations/mobile_app_configurations_request_builder.py +4 -4
- 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 +6 -6
- msgraph/generated/device_management/device_management_request_builder.py +2 -2
- msgraph/generated/device_management/role_definitions/item/role_definition_item_request_builder.py +7 -7
- msgraph/generated/device_management/role_definitions/role_definitions_request_builder.py +7 -7
- msgraph/generated/drives/item/items/item/workbook/tables/add/add_request_builder.py +3 -3
- msgraph/generated/drives/item/items/item/workbook/worksheets/item/tables/add/add_request_builder.py +3 -3
- msgraph/generated/groups/groups_request_builder.py +3 -3
- msgraph/generated/groups/item/conversations/conversations_request_builder.py +3 -3
- msgraph/generated/groups/item/conversations/item/conversation_item_request_builder.py +5 -5
- msgraph/generated/groups/item/threads/item/conversation_thread_item_request_builder.py +1 -1
- msgraph/generated/groups/item/threads/item/posts/posts_request_builder.py +4 -4
- msgraph/generated/identity/conditional_access/named_locations/item/named_location_item_request_builder.py +6 -6
- msgraph/generated/identity_governance/entitlement_management/access_packages/item/access_package_item_request_builder.py +4 -4
- msgraph/generated/identity_governance/terms_of_use/agreements/item/agreement_item_request_builder.py +4 -4
- msgraph/generated/kiota-dom-export.txt +270 -0
- msgraph/generated/kiota-lock.json +1 -1
- msgraph/generated/models/app_management_restriction_state.py +7 -0
- msgraph/generated/models/conditional_access_authentication_flows.py +62 -0
- msgraph/generated/models/conditional_access_condition_set.py +8 -0
- msgraph/generated/models/conditional_access_transfer_methods.py +8 -0
- msgraph/generated/models/entity.py +16 -0
- msgraph/generated/models/key_credential_configuration.py +8 -0
- msgraph/generated/models/password_credential_configuration.py +8 -0
- msgraph/generated/models/security/deployment_access_key_type.py +53 -0
- msgraph/generated/models/security/deployment_status.py +14 -0
- msgraph/generated/models/security/evidence_remediation_status.py +6 -0
- msgraph/generated/models/security/identity_container.py +8 -0
- msgraph/generated/models/security/network_adapter.py +62 -0
- msgraph/generated/models/security/sensor.py +115 -0
- msgraph/generated/models/security/sensor_collection_response.py +60 -0
- msgraph/generated/models/security/sensor_deployment_package.py +57 -0
- msgraph/generated/models/security/sensor_health_status.py +9 -0
- msgraph/generated/models/security/sensor_settings.py +74 -0
- msgraph/generated/models/security/sensor_type.py +10 -0
- msgraph/generated/organization/item/organization_item_request_builder.py +4 -4
- msgraph/generated/organization/organization_request_builder.py +4 -4
- msgraph/generated/policies/cross_tenant_access_policy/partners/item/identity_synchronization/identity_synchronization_request_builder.py +3 -3
- msgraph/generated/security/cases/ediscovery_cases/item/custodians/item/microsoft_graph_security_apply_hold/microsoft_graph_security_apply_hold_request_builder.py +2 -2
- msgraph/generated/security/identities/identities_request_builder.py +10 -0
- msgraph/generated/security/identities/sensors/count/count_request_builder.py +103 -0
- msgraph/generated/security/identities/sensors/item/health_issues/count/count_request_builder.py +103 -0
- msgraph/generated/security/identities/sensors/item/health_issues/health_issues_request_builder.py +161 -0
- msgraph/generated/security/identities/sensors/item/health_issues/item/health_issue_item_request_builder.py +106 -0
- msgraph/generated/security/identities/sensors/item/sensor_item_request_builder.py +200 -0
- msgraph/generated/security/identities/sensors/microsoft_graph_security_get_deployment_access_key/microsoft_graph_security_get_deployment_access_key_request_builder.py +80 -0
- msgraph/generated/security/identities/sensors/microsoft_graph_security_get_deployment_package_uri/microsoft_graph_security_get_deployment_package_uri_request_builder.py +80 -0
- msgraph/generated/security/identities/sensors/microsoft_graph_security_regenerate_deployment_access_key/microsoft_graph_security_regenerate_deployment_access_key_request_builder.py +80 -0
- msgraph/generated/security/identities/sensors/sensors_request_builder.py +238 -0
- msgraph/generated/solutions/virtual_events/townhalls/item/virtual_event_townhall_item_request_builder.py +5 -5
- msgraph/generated/solutions/virtual_events/townhalls/townhalls_request_builder.py +3 -3
- msgraph/generated/solutions/virtual_events/webinars/item/virtual_event_webinar_item_request_builder.py +5 -5
- msgraph/generated/teams/item/channels/item/members/members_request_builder.py +3 -3
- msgraph/generated/teams/item/channels/item/messages/item/replies/replies_request_builder.py +3 -3
- msgraph/generated/teams/item/channels/item/messages/messages_request_builder.py +3 -3
- msgraph/generated/users/item/authentication/email_methods/email_methods_request_builder.py +2 -2
- msgraph/generated/users/item/authentication/email_methods/item/email_authentication_method_item_request_builder.py +2 -2
- msgraph/generated/users/item/authentication/microsoft_authenticator_methods/item/microsoft_authenticator_authentication_method_item_request_builder.py +2 -2
- msgraph/generated/users/item/authentication/phone_methods/item/phone_authentication_method_item_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 +5 -5
- msgraph/generated/users_with_user_principal_name/users_with_user_principal_name_request_builder.py +8 -8
- {msgraph_sdk-1.13.0.dist-info → msgraph_sdk-1.14.0.dist-info}/METADATA +1 -1
- {msgraph_sdk-1.13.0.dist-info → msgraph_sdk-1.14.0.dist-info}/RECORD +91 -70
- {msgraph_sdk-1.13.0.dist-info → msgraph_sdk-1.14.0.dist-info}/LICENSE +0 -0
- {msgraph_sdk-1.13.0.dist-info → msgraph_sdk-1.14.0.dist-info}/WHEEL +0 -0
@@ -0,0 +1,57 @@
|
|
1
|
+
from __future__ import annotations
|
2
|
+
from dataclasses import dataclass, field
|
3
|
+
from kiota_abstractions.serialization import AdditionalDataHolder, Parsable, ParseNode, SerializationWriter
|
4
|
+
from kiota_abstractions.store import BackedModel, BackingStore, BackingStoreFactorySingleton
|
5
|
+
from typing import Any, Callable, Dict, List, Optional, TYPE_CHECKING, Union
|
6
|
+
|
7
|
+
@dataclass
|
8
|
+
class SensorDeploymentPackage(AdditionalDataHolder, BackedModel, Parsable):
|
9
|
+
# Stores model information.
|
10
|
+
backing_store: BackingStore = field(default_factory=BackingStoreFactorySingleton(backing_store_factory=None).backing_store_factory.create_backing_store, repr=False)
|
11
|
+
|
12
|
+
# Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
13
|
+
additional_data: Dict[str, Any] = field(default_factory=dict)
|
14
|
+
# URL to download the sensor deployment package.
|
15
|
+
download_url: Optional[str] = None
|
16
|
+
# The OdataType property
|
17
|
+
odata_type: Optional[str] = None
|
18
|
+
# Version of the sensor.
|
19
|
+
version: Optional[str] = None
|
20
|
+
|
21
|
+
@staticmethod
|
22
|
+
def create_from_discriminator_value(parse_node: ParseNode) -> SensorDeploymentPackage:
|
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: SensorDeploymentPackage
|
27
|
+
"""
|
28
|
+
if parse_node is None:
|
29
|
+
raise TypeError("parse_node cannot be null.")
|
30
|
+
return SensorDeploymentPackage()
|
31
|
+
|
32
|
+
def get_field_deserializers(self,) -> Dict[str, Callable[[ParseNode], None]]:
|
33
|
+
"""
|
34
|
+
The deserialization information for the current model
|
35
|
+
Returns: Dict[str, Callable[[ParseNode], None]]
|
36
|
+
"""
|
37
|
+
fields: Dict[str, Callable[[Any], None]] = {
|
38
|
+
"downloadUrl": lambda n : setattr(self, 'download_url', n.get_str_value()),
|
39
|
+
"@odata.type": lambda n : setattr(self, 'odata_type', n.get_str_value()),
|
40
|
+
"version": lambda n : setattr(self, 'version', n.get_str_value()),
|
41
|
+
}
|
42
|
+
return fields
|
43
|
+
|
44
|
+
def serialize(self,writer: SerializationWriter) -> None:
|
45
|
+
"""
|
46
|
+
Serializes information the current object
|
47
|
+
param writer: Serialization writer to use to serialize this model
|
48
|
+
Returns: None
|
49
|
+
"""
|
50
|
+
if writer is None:
|
51
|
+
raise TypeError("writer cannot be null.")
|
52
|
+
writer.write_str_value("downloadUrl", self.download_url)
|
53
|
+
writer.write_str_value("@odata.type", self.odata_type)
|
54
|
+
writer.write_str_value("version", self.version)
|
55
|
+
writer.write_additional_data_value(self.additional_data)
|
56
|
+
|
57
|
+
|
@@ -0,0 +1,74 @@
|
|
1
|
+
from __future__ import annotations
|
2
|
+
from dataclasses import dataclass, field
|
3
|
+
from kiota_abstractions.serialization import AdditionalDataHolder, Parsable, ParseNode, SerializationWriter
|
4
|
+
from kiota_abstractions.store import BackedModel, BackingStore, BackingStoreFactorySingleton
|
5
|
+
from typing import Any, Callable, Dict, List, Optional, TYPE_CHECKING, Union
|
6
|
+
|
7
|
+
if TYPE_CHECKING:
|
8
|
+
from .network_adapter import NetworkAdapter
|
9
|
+
|
10
|
+
@dataclass
|
11
|
+
class SensorSettings(AdditionalDataHolder, BackedModel, Parsable):
|
12
|
+
# Stores model information.
|
13
|
+
backing_store: BackingStore = field(default_factory=BackingStoreFactorySingleton(backing_store_factory=None).backing_store_factory.create_backing_store, repr=False)
|
14
|
+
|
15
|
+
# Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
16
|
+
additional_data: Dict[str, Any] = field(default_factory=dict)
|
17
|
+
# Description of the sensor.
|
18
|
+
description: Optional[str] = None
|
19
|
+
# DNS names for the domain controller
|
20
|
+
domain_controller_dns_names: Optional[List[str]] = None
|
21
|
+
# Indicates whether to delay updates for the sensor.
|
22
|
+
is_delayed_deployment_enabled: Optional[bool] = None
|
23
|
+
# The networkAdapters property
|
24
|
+
network_adapters: Optional[List[NetworkAdapter]] = None
|
25
|
+
# The OdataType property
|
26
|
+
odata_type: Optional[str] = None
|
27
|
+
|
28
|
+
@staticmethod
|
29
|
+
def create_from_discriminator_value(parse_node: ParseNode) -> SensorSettings:
|
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: SensorSettings
|
34
|
+
"""
|
35
|
+
if parse_node is None:
|
36
|
+
raise TypeError("parse_node cannot be null.")
|
37
|
+
return SensorSettings()
|
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 .network_adapter import NetworkAdapter
|
45
|
+
|
46
|
+
from .network_adapter import NetworkAdapter
|
47
|
+
|
48
|
+
fields: Dict[str, Callable[[Any], None]] = {
|
49
|
+
"description": lambda n : setattr(self, 'description', n.get_str_value()),
|
50
|
+
"domainControllerDnsNames": lambda n : setattr(self, 'domain_controller_dns_names', n.get_collection_of_primitive_values(str)),
|
51
|
+
"isDelayedDeploymentEnabled": lambda n : setattr(self, 'is_delayed_deployment_enabled', n.get_bool_value()),
|
52
|
+
"networkAdapters": lambda n : setattr(self, 'network_adapters', n.get_collection_of_object_values(NetworkAdapter)),
|
53
|
+
"@odata.type": lambda n : setattr(self, 'odata_type', n.get_str_value()),
|
54
|
+
}
|
55
|
+
return fields
|
56
|
+
|
57
|
+
def serialize(self,writer: SerializationWriter) -> None:
|
58
|
+
"""
|
59
|
+
Serializes information the current object
|
60
|
+
param writer: Serialization writer to use to serialize this model
|
61
|
+
Returns: None
|
62
|
+
"""
|
63
|
+
if writer is None:
|
64
|
+
raise TypeError("writer cannot be null.")
|
65
|
+
from .network_adapter import NetworkAdapter
|
66
|
+
|
67
|
+
writer.write_str_value("description", self.description)
|
68
|
+
writer.write_collection_of_primitive_values("domainControllerDnsNames", self.domain_controller_dns_names)
|
69
|
+
writer.write_bool_value("isDelayedDeploymentEnabled", self.is_delayed_deployment_enabled)
|
70
|
+
writer.write_collection_of_object_values("networkAdapters", self.network_adapters)
|
71
|
+
writer.write_str_value("@odata.type", self.odata_type)
|
72
|
+
writer.write_additional_data_value(self.additional_data)
|
73
|
+
|
74
|
+
|
@@ -0,0 +1,10 @@
|
|
1
|
+
from enum import Enum
|
2
|
+
|
3
|
+
class SensorType(str, Enum):
|
4
|
+
AdConnectIntegrated = "adConnectIntegrated",
|
5
|
+
AdcsIntegrated = "adcsIntegrated",
|
6
|
+
AdfsIntegrated = "adfsIntegrated",
|
7
|
+
DomainControllerIntegrated = "domainControllerIntegrated",
|
8
|
+
DomainControllerStandalone = "domainControllerStandalone",
|
9
|
+
UnknownFutureValue = "unknownFutureValue",
|
10
|
+
|
@@ -58,10 +58,10 @@ class OrganizationItemRequestBuilder(BaseRequestBuilder):
|
|
58
58
|
|
59
59
|
async def get(self,request_configuration: Optional[RequestConfiguration[OrganizationItemRequestBuilderGetQueryParameters]] = None) -> Optional[Organization]:
|
60
60
|
"""
|
61
|
-
|
61
|
+
Read properties and relationships of the organization object.
|
62
62
|
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
|
63
63
|
Returns: Optional[Organization]
|
64
|
-
Find more info here: https://learn.microsoft.com/graph/api/organization-get?view=graph-rest-1.0
|
64
|
+
Find more info here: https://learn.microsoft.com/graph/api/intune-onboarding-organization-get?view=graph-rest-1.0
|
65
65
|
"""
|
66
66
|
request_info = self.to_get_request_information(
|
67
67
|
request_configuration
|
@@ -114,7 +114,7 @@ class OrganizationItemRequestBuilder(BaseRequestBuilder):
|
|
114
114
|
|
115
115
|
def to_get_request_information(self,request_configuration: Optional[RequestConfiguration[OrganizationItemRequestBuilderGetQueryParameters]] = None) -> RequestInformation:
|
116
116
|
"""
|
117
|
-
|
117
|
+
Read properties and relationships of the organization object.
|
118
118
|
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
|
119
119
|
Returns: RequestInformation
|
120
120
|
"""
|
@@ -239,7 +239,7 @@ class OrganizationItemRequestBuilder(BaseRequestBuilder):
|
|
239
239
|
@dataclass
|
240
240
|
class OrganizationItemRequestBuilderGetQueryParameters():
|
241
241
|
"""
|
242
|
-
|
242
|
+
Read properties and relationships of the organization object.
|
243
243
|
"""
|
244
244
|
def get_query_parameter(self,original_name: str) -> str:
|
245
245
|
"""
|
@@ -52,10 +52,10 @@ class OrganizationRequestBuilder(BaseRequestBuilder):
|
|
52
52
|
|
53
53
|
async def get(self,request_configuration: Optional[RequestConfiguration[OrganizationRequestBuilderGetQueryParameters]] = None) -> Optional[OrganizationCollectionResponse]:
|
54
54
|
"""
|
55
|
-
|
55
|
+
List properties and relationships of the organization objects.
|
56
56
|
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
|
57
57
|
Returns: Optional[OrganizationCollectionResponse]
|
58
|
-
Find more info here: https://learn.microsoft.com/graph/api/organization-list?view=graph-rest-1.0
|
58
|
+
Find more info here: https://learn.microsoft.com/graph/api/intune-onboarding-organization-list?view=graph-rest-1.0
|
59
59
|
"""
|
60
60
|
request_info = self.to_get_request_information(
|
61
61
|
request_configuration
|
@@ -96,7 +96,7 @@ class OrganizationRequestBuilder(BaseRequestBuilder):
|
|
96
96
|
|
97
97
|
def to_get_request_information(self,request_configuration: Optional[RequestConfiguration[OrganizationRequestBuilderGetQueryParameters]] = None) -> RequestInformation:
|
98
98
|
"""
|
99
|
-
|
99
|
+
List properties and relationships of the organization objects.
|
100
100
|
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
|
101
101
|
Returns: RequestInformation
|
102
102
|
"""
|
@@ -178,7 +178,7 @@ class OrganizationRequestBuilder(BaseRequestBuilder):
|
|
178
178
|
@dataclass
|
179
179
|
class OrganizationRequestBuilderGetQueryParameters():
|
180
180
|
"""
|
181
|
-
|
181
|
+
List properties and relationships of the organization objects.
|
182
182
|
"""
|
183
183
|
def get_query_parameter(self,original_name: str) -> str:
|
184
184
|
"""
|
@@ -71,11 +71,11 @@ class IdentitySynchronizationRequestBuilder(BaseRequestBuilder):
|
|
71
71
|
|
72
72
|
async def put(self,body: CrossTenantIdentitySyncPolicyPartner, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> Optional[CrossTenantIdentitySyncPolicyPartner]:
|
73
73
|
"""
|
74
|
-
|
74
|
+
Create a cross-tenant user synchronization policy for a partner-specific configuration.
|
75
75
|
param body: The request body
|
76
76
|
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
|
77
77
|
Returns: Optional[CrossTenantIdentitySyncPolicyPartner]
|
78
|
-
Find more info here: https://learn.microsoft.com/graph/api/
|
78
|
+
Find more info here: https://learn.microsoft.com/graph/api/crosstenantaccesspolicyconfigurationpartner-put-identitysynchronization?view=graph-rest-1.0
|
79
79
|
"""
|
80
80
|
if body is None:
|
81
81
|
raise TypeError("body cannot be null.")
|
@@ -117,7 +117,7 @@ class IdentitySynchronizationRequestBuilder(BaseRequestBuilder):
|
|
117
117
|
|
118
118
|
def to_put_request_information(self,body: CrossTenantIdentitySyncPolicyPartner, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> RequestInformation:
|
119
119
|
"""
|
120
|
-
|
120
|
+
Create a cross-tenant user synchronization policy for a partner-specific configuration.
|
121
121
|
param body: The request body
|
122
122
|
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
|
123
123
|
Returns: RequestInformation
|
@@ -30,7 +30,7 @@ class MicrosoftGraphSecurityApplyHoldRequestBuilder(BaseRequestBuilder):
|
|
30
30
|
|
31
31
|
async def post(self,request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> None:
|
32
32
|
"""
|
33
|
-
Start the process of applying hold on eDiscovery custodians. After the operation is created, you can
|
33
|
+
Start the process of applying hold on eDiscovery custodians. After the operation is created, you can use Get ediscoveryCustodian to retrieve the status of an ediscoveryCustodian.
|
34
34
|
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
|
35
35
|
Returns: None
|
36
36
|
Find more info here: https://learn.microsoft.com/graph/api/security-ediscoverycustodian-applyhold?view=graph-rest-1.0
|
@@ -49,7 +49,7 @@ class MicrosoftGraphSecurityApplyHoldRequestBuilder(BaseRequestBuilder):
|
|
49
49
|
|
50
50
|
def to_post_request_information(self,request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> RequestInformation:
|
51
51
|
"""
|
52
|
-
Start the process of applying hold on eDiscovery custodians. After the operation is created, you can
|
52
|
+
Start the process of applying hold on eDiscovery custodians. After the operation is created, you can use Get ediscoveryCustodian to retrieve the status of an ediscoveryCustodian.
|
53
53
|
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
|
54
54
|
Returns: RequestInformation
|
55
55
|
"""
|
@@ -16,6 +16,7 @@ if TYPE_CHECKING:
|
|
16
16
|
from ...models.o_data_errors.o_data_error import ODataError
|
17
17
|
from ...models.security.identity_container import IdentityContainer
|
18
18
|
from .health_issues.health_issues_request_builder import HealthIssuesRequestBuilder
|
19
|
+
from .sensors.sensors_request_builder import SensorsRequestBuilder
|
19
20
|
|
20
21
|
class IdentitiesRequestBuilder(BaseRequestBuilder):
|
21
22
|
"""
|
@@ -147,6 +148,15 @@ class IdentitiesRequestBuilder(BaseRequestBuilder):
|
|
147
148
|
|
148
149
|
return HealthIssuesRequestBuilder(self.request_adapter, self.path_parameters)
|
149
150
|
|
151
|
+
@property
|
152
|
+
def sensors(self) -> SensorsRequestBuilder:
|
153
|
+
"""
|
154
|
+
Provides operations to manage the sensors property of the microsoft.graph.security.identityContainer entity.
|
155
|
+
"""
|
156
|
+
from .sensors.sensors_request_builder import SensorsRequestBuilder
|
157
|
+
|
158
|
+
return SensorsRequestBuilder(self.request_adapter, self.path_parameters)
|
159
|
+
|
150
160
|
@dataclass
|
151
161
|
class IdentitiesRequestBuilderDeleteRequestConfiguration(RequestConfiguration[QueryParameters]):
|
152
162
|
"""
|
@@ -0,0 +1,103 @@
|
|
1
|
+
from __future__ import annotations
|
2
|
+
from dataclasses import dataclass, field
|
3
|
+
from kiota_abstractions.base_request_builder import BaseRequestBuilder
|
4
|
+
from kiota_abstractions.base_request_configuration import RequestConfiguration
|
5
|
+
from kiota_abstractions.default_query_parameters import QueryParameters
|
6
|
+
from kiota_abstractions.get_path_parameters import get_path_parameters
|
7
|
+
from kiota_abstractions.method import Method
|
8
|
+
from kiota_abstractions.request_adapter import RequestAdapter
|
9
|
+
from kiota_abstractions.request_information import RequestInformation
|
10
|
+
from kiota_abstractions.request_option import RequestOption
|
11
|
+
from kiota_abstractions.serialization import Parsable, ParsableFactory
|
12
|
+
from typing import Any, Callable, Dict, List, Optional, TYPE_CHECKING, Union
|
13
|
+
from warnings import warn
|
14
|
+
|
15
|
+
if TYPE_CHECKING:
|
16
|
+
from .....models.o_data_errors.o_data_error import ODataError
|
17
|
+
|
18
|
+
class CountRequestBuilder(BaseRequestBuilder):
|
19
|
+
"""
|
20
|
+
Provides operations to count the resources in the collection.
|
21
|
+
"""
|
22
|
+
def __init__(self,request_adapter: RequestAdapter, path_parameters: Union[str, Dict[str, Any]]) -> None:
|
23
|
+
"""
|
24
|
+
Instantiates a new CountRequestBuilder and sets the default values.
|
25
|
+
param path_parameters: The raw url or the url-template parameters for the request.
|
26
|
+
param request_adapter: The request adapter to use to execute the requests.
|
27
|
+
Returns: None
|
28
|
+
"""
|
29
|
+
super().__init__(request_adapter, "{+baseurl}/security/identities/sensors/$count{?%24filter,%24search}", path_parameters)
|
30
|
+
|
31
|
+
async def get(self,request_configuration: Optional[RequestConfiguration[CountRequestBuilderGetQueryParameters]] = None) -> Optional[int]:
|
32
|
+
"""
|
33
|
+
Get the number of the resource
|
34
|
+
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
|
35
|
+
Returns: Optional[int]
|
36
|
+
"""
|
37
|
+
request_info = self.to_get_request_information(
|
38
|
+
request_configuration
|
39
|
+
)
|
40
|
+
from .....models.o_data_errors.o_data_error import ODataError
|
41
|
+
|
42
|
+
error_mapping: Dict[str, type[ParsableFactory]] = {
|
43
|
+
"XXX": ODataError,
|
44
|
+
}
|
45
|
+
if not self.request_adapter:
|
46
|
+
raise Exception("Http core is null")
|
47
|
+
return await self.request_adapter.send_primitive_async(request_info, "int", error_mapping)
|
48
|
+
|
49
|
+
def to_get_request_information(self,request_configuration: Optional[RequestConfiguration[CountRequestBuilderGetQueryParameters]] = None) -> RequestInformation:
|
50
|
+
"""
|
51
|
+
Get the number of the resource
|
52
|
+
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
|
53
|
+
Returns: RequestInformation
|
54
|
+
"""
|
55
|
+
request_info = RequestInformation(Method.GET, self.url_template, self.path_parameters)
|
56
|
+
request_info.configure(request_configuration)
|
57
|
+
request_info.headers.try_add("Accept", "text/plain;q=0.9")
|
58
|
+
return request_info
|
59
|
+
|
60
|
+
def with_url(self,raw_url: str) -> CountRequestBuilder:
|
61
|
+
"""
|
62
|
+
Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
|
63
|
+
param raw_url: The raw URL to use for the request builder.
|
64
|
+
Returns: CountRequestBuilder
|
65
|
+
"""
|
66
|
+
if raw_url is None:
|
67
|
+
raise TypeError("raw_url cannot be null.")
|
68
|
+
return CountRequestBuilder(self.request_adapter, raw_url)
|
69
|
+
|
70
|
+
@dataclass
|
71
|
+
class CountRequestBuilderGetQueryParameters():
|
72
|
+
"""
|
73
|
+
Get the number of the resource
|
74
|
+
"""
|
75
|
+
def get_query_parameter(self,original_name: str) -> str:
|
76
|
+
"""
|
77
|
+
Maps the query parameters names to their encoded names for the URI template parsing.
|
78
|
+
param original_name: The original query parameter name in the class.
|
79
|
+
Returns: str
|
80
|
+
"""
|
81
|
+
if original_name is None:
|
82
|
+
raise TypeError("original_name cannot be null.")
|
83
|
+
if original_name == "filter":
|
84
|
+
return "%24filter"
|
85
|
+
if original_name == "search":
|
86
|
+
return "%24search"
|
87
|
+
return original_name
|
88
|
+
|
89
|
+
# Filter items by property values
|
90
|
+
filter: Optional[str] = None
|
91
|
+
|
92
|
+
# Search items by search phrases
|
93
|
+
search: Optional[str] = None
|
94
|
+
|
95
|
+
|
96
|
+
@dataclass
|
97
|
+
class CountRequestBuilderGetRequestConfiguration(RequestConfiguration[CountRequestBuilderGetQueryParameters]):
|
98
|
+
"""
|
99
|
+
Configuration for the request such as headers, query parameters, and middleware options.
|
100
|
+
"""
|
101
|
+
warn("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.", DeprecationWarning)
|
102
|
+
|
103
|
+
|
msgraph/generated/security/identities/sensors/item/health_issues/count/count_request_builder.py
ADDED
@@ -0,0 +1,103 @@
|
|
1
|
+
from __future__ import annotations
|
2
|
+
from dataclasses import dataclass, field
|
3
|
+
from kiota_abstractions.base_request_builder import BaseRequestBuilder
|
4
|
+
from kiota_abstractions.base_request_configuration import RequestConfiguration
|
5
|
+
from kiota_abstractions.default_query_parameters import QueryParameters
|
6
|
+
from kiota_abstractions.get_path_parameters import get_path_parameters
|
7
|
+
from kiota_abstractions.method import Method
|
8
|
+
from kiota_abstractions.request_adapter import RequestAdapter
|
9
|
+
from kiota_abstractions.request_information import RequestInformation
|
10
|
+
from kiota_abstractions.request_option import RequestOption
|
11
|
+
from kiota_abstractions.serialization import Parsable, ParsableFactory
|
12
|
+
from typing import Any, Callable, Dict, List, Optional, TYPE_CHECKING, Union
|
13
|
+
from warnings import warn
|
14
|
+
|
15
|
+
if TYPE_CHECKING:
|
16
|
+
from .......models.o_data_errors.o_data_error import ODataError
|
17
|
+
|
18
|
+
class CountRequestBuilder(BaseRequestBuilder):
|
19
|
+
"""
|
20
|
+
Provides operations to count the resources in the collection.
|
21
|
+
"""
|
22
|
+
def __init__(self,request_adapter: RequestAdapter, path_parameters: Union[str, Dict[str, Any]]) -> None:
|
23
|
+
"""
|
24
|
+
Instantiates a new CountRequestBuilder and sets the default values.
|
25
|
+
param path_parameters: The raw url or the url-template parameters for the request.
|
26
|
+
param request_adapter: The request adapter to use to execute the requests.
|
27
|
+
Returns: None
|
28
|
+
"""
|
29
|
+
super().__init__(request_adapter, "{+baseurl}/security/identities/sensors/{sensor%2Did}/healthIssues/$count{?%24filter,%24search}", path_parameters)
|
30
|
+
|
31
|
+
async def get(self,request_configuration: Optional[RequestConfiguration[CountRequestBuilderGetQueryParameters]] = None) -> Optional[int]:
|
32
|
+
"""
|
33
|
+
Get the number of the resource
|
34
|
+
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
|
35
|
+
Returns: Optional[int]
|
36
|
+
"""
|
37
|
+
request_info = self.to_get_request_information(
|
38
|
+
request_configuration
|
39
|
+
)
|
40
|
+
from .......models.o_data_errors.o_data_error import ODataError
|
41
|
+
|
42
|
+
error_mapping: Dict[str, type[ParsableFactory]] = {
|
43
|
+
"XXX": ODataError,
|
44
|
+
}
|
45
|
+
if not self.request_adapter:
|
46
|
+
raise Exception("Http core is null")
|
47
|
+
return await self.request_adapter.send_primitive_async(request_info, "int", error_mapping)
|
48
|
+
|
49
|
+
def to_get_request_information(self,request_configuration: Optional[RequestConfiguration[CountRequestBuilderGetQueryParameters]] = None) -> RequestInformation:
|
50
|
+
"""
|
51
|
+
Get the number of the resource
|
52
|
+
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
|
53
|
+
Returns: RequestInformation
|
54
|
+
"""
|
55
|
+
request_info = RequestInformation(Method.GET, self.url_template, self.path_parameters)
|
56
|
+
request_info.configure(request_configuration)
|
57
|
+
request_info.headers.try_add("Accept", "text/plain;q=0.9")
|
58
|
+
return request_info
|
59
|
+
|
60
|
+
def with_url(self,raw_url: str) -> CountRequestBuilder:
|
61
|
+
"""
|
62
|
+
Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
|
63
|
+
param raw_url: The raw URL to use for the request builder.
|
64
|
+
Returns: CountRequestBuilder
|
65
|
+
"""
|
66
|
+
if raw_url is None:
|
67
|
+
raise TypeError("raw_url cannot be null.")
|
68
|
+
return CountRequestBuilder(self.request_adapter, raw_url)
|
69
|
+
|
70
|
+
@dataclass
|
71
|
+
class CountRequestBuilderGetQueryParameters():
|
72
|
+
"""
|
73
|
+
Get the number of the resource
|
74
|
+
"""
|
75
|
+
def get_query_parameter(self,original_name: str) -> str:
|
76
|
+
"""
|
77
|
+
Maps the query parameters names to their encoded names for the URI template parsing.
|
78
|
+
param original_name: The original query parameter name in the class.
|
79
|
+
Returns: str
|
80
|
+
"""
|
81
|
+
if original_name is None:
|
82
|
+
raise TypeError("original_name cannot be null.")
|
83
|
+
if original_name == "filter":
|
84
|
+
return "%24filter"
|
85
|
+
if original_name == "search":
|
86
|
+
return "%24search"
|
87
|
+
return original_name
|
88
|
+
|
89
|
+
# Filter items by property values
|
90
|
+
filter: Optional[str] = None
|
91
|
+
|
92
|
+
# Search items by search phrases
|
93
|
+
search: Optional[str] = None
|
94
|
+
|
95
|
+
|
96
|
+
@dataclass
|
97
|
+
class CountRequestBuilderGetRequestConfiguration(RequestConfiguration[CountRequestBuilderGetQueryParameters]):
|
98
|
+
"""
|
99
|
+
Configuration for the request such as headers, query parameters, and middleware options.
|
100
|
+
"""
|
101
|
+
warn("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.", DeprecationWarning)
|
102
|
+
|
103
|
+
|
msgraph/generated/security/identities/sensors/item/health_issues/health_issues_request_builder.py
ADDED
@@ -0,0 +1,161 @@
|
|
1
|
+
from __future__ import annotations
|
2
|
+
from dataclasses import dataclass, field
|
3
|
+
from kiota_abstractions.base_request_builder import BaseRequestBuilder
|
4
|
+
from kiota_abstractions.base_request_configuration import RequestConfiguration
|
5
|
+
from kiota_abstractions.default_query_parameters import QueryParameters
|
6
|
+
from kiota_abstractions.get_path_parameters import get_path_parameters
|
7
|
+
from kiota_abstractions.method import Method
|
8
|
+
from kiota_abstractions.request_adapter import RequestAdapter
|
9
|
+
from kiota_abstractions.request_information import RequestInformation
|
10
|
+
from kiota_abstractions.request_option import RequestOption
|
11
|
+
from kiota_abstractions.serialization import Parsable, ParsableFactory
|
12
|
+
from typing import Any, Callable, Dict, List, Optional, TYPE_CHECKING, Union
|
13
|
+
from warnings import warn
|
14
|
+
|
15
|
+
if TYPE_CHECKING:
|
16
|
+
from ......models.o_data_errors.o_data_error import ODataError
|
17
|
+
from ......models.security.health_issue_collection_response import HealthIssueCollectionResponse
|
18
|
+
from .count.count_request_builder import CountRequestBuilder
|
19
|
+
from .item.health_issue_item_request_builder import HealthIssueItemRequestBuilder
|
20
|
+
|
21
|
+
class HealthIssuesRequestBuilder(BaseRequestBuilder):
|
22
|
+
"""
|
23
|
+
Provides operations to manage the healthIssues property of the microsoft.graph.security.sensor entity.
|
24
|
+
"""
|
25
|
+
def __init__(self,request_adapter: RequestAdapter, path_parameters: Union[str, Dict[str, Any]]) -> None:
|
26
|
+
"""
|
27
|
+
Instantiates a new HealthIssuesRequestBuilder and sets the default values.
|
28
|
+
param path_parameters: The raw url or the url-template parameters for the request.
|
29
|
+
param request_adapter: The request adapter to use to execute the requests.
|
30
|
+
Returns: None
|
31
|
+
"""
|
32
|
+
super().__init__(request_adapter, "{+baseurl}/security/identities/sensors/{sensor%2Did}/healthIssues{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", path_parameters)
|
33
|
+
|
34
|
+
def by_health_issue_id(self,health_issue_id: str) -> HealthIssueItemRequestBuilder:
|
35
|
+
"""
|
36
|
+
Provides operations to manage the healthIssues property of the microsoft.graph.security.sensor entity.
|
37
|
+
param health_issue_id: The unique identifier of healthIssue
|
38
|
+
Returns: HealthIssueItemRequestBuilder
|
39
|
+
"""
|
40
|
+
if health_issue_id is None:
|
41
|
+
raise TypeError("health_issue_id cannot be null.")
|
42
|
+
from .item.health_issue_item_request_builder import HealthIssueItemRequestBuilder
|
43
|
+
|
44
|
+
url_tpl_params = get_path_parameters(self.path_parameters)
|
45
|
+
url_tpl_params["healthIssue%2Did"] = health_issue_id
|
46
|
+
return HealthIssueItemRequestBuilder(self.request_adapter, url_tpl_params)
|
47
|
+
|
48
|
+
async def get(self,request_configuration: Optional[RequestConfiguration[HealthIssuesRequestBuilderGetQueryParameters]] = None) -> Optional[HealthIssueCollectionResponse]:
|
49
|
+
"""
|
50
|
+
Represents potential issues within a customer's Microsoft Defender for Identity configuration that Microsoft Defender for Identity identified related to the sensor.
|
51
|
+
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
|
52
|
+
Returns: Optional[HealthIssueCollectionResponse]
|
53
|
+
"""
|
54
|
+
request_info = self.to_get_request_information(
|
55
|
+
request_configuration
|
56
|
+
)
|
57
|
+
from ......models.o_data_errors.o_data_error import ODataError
|
58
|
+
|
59
|
+
error_mapping: Dict[str, type[ParsableFactory]] = {
|
60
|
+
"XXX": ODataError,
|
61
|
+
}
|
62
|
+
if not self.request_adapter:
|
63
|
+
raise Exception("Http core is null")
|
64
|
+
from ......models.security.health_issue_collection_response import HealthIssueCollectionResponse
|
65
|
+
|
66
|
+
return await self.request_adapter.send_async(request_info, HealthIssueCollectionResponse, error_mapping)
|
67
|
+
|
68
|
+
def to_get_request_information(self,request_configuration: Optional[RequestConfiguration[HealthIssuesRequestBuilderGetQueryParameters]] = None) -> RequestInformation:
|
69
|
+
"""
|
70
|
+
Represents potential issues within a customer's Microsoft Defender for Identity configuration that Microsoft Defender for Identity identified related to the sensor.
|
71
|
+
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
|
72
|
+
Returns: RequestInformation
|
73
|
+
"""
|
74
|
+
request_info = RequestInformation(Method.GET, self.url_template, self.path_parameters)
|
75
|
+
request_info.configure(request_configuration)
|
76
|
+
request_info.headers.try_add("Accept", "application/json")
|
77
|
+
return request_info
|
78
|
+
|
79
|
+
def with_url(self,raw_url: str) -> HealthIssuesRequestBuilder:
|
80
|
+
"""
|
81
|
+
Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
|
82
|
+
param raw_url: The raw URL to use for the request builder.
|
83
|
+
Returns: HealthIssuesRequestBuilder
|
84
|
+
"""
|
85
|
+
if raw_url is None:
|
86
|
+
raise TypeError("raw_url cannot be null.")
|
87
|
+
return HealthIssuesRequestBuilder(self.request_adapter, raw_url)
|
88
|
+
|
89
|
+
@property
|
90
|
+
def count(self) -> CountRequestBuilder:
|
91
|
+
"""
|
92
|
+
Provides operations to count the resources in the collection.
|
93
|
+
"""
|
94
|
+
from .count.count_request_builder import CountRequestBuilder
|
95
|
+
|
96
|
+
return CountRequestBuilder(self.request_adapter, self.path_parameters)
|
97
|
+
|
98
|
+
@dataclass
|
99
|
+
class HealthIssuesRequestBuilderGetQueryParameters():
|
100
|
+
"""
|
101
|
+
Represents potential issues within a customer's Microsoft Defender for Identity configuration that Microsoft Defender for Identity identified related to the sensor.
|
102
|
+
"""
|
103
|
+
def get_query_parameter(self,original_name: str) -> str:
|
104
|
+
"""
|
105
|
+
Maps the query parameters names to their encoded names for the URI template parsing.
|
106
|
+
param original_name: The original query parameter name in the class.
|
107
|
+
Returns: str
|
108
|
+
"""
|
109
|
+
if original_name is None:
|
110
|
+
raise TypeError("original_name cannot be null.")
|
111
|
+
if original_name == "count":
|
112
|
+
return "%24count"
|
113
|
+
if original_name == "expand":
|
114
|
+
return "%24expand"
|
115
|
+
if original_name == "filter":
|
116
|
+
return "%24filter"
|
117
|
+
if original_name == "orderby":
|
118
|
+
return "%24orderby"
|
119
|
+
if original_name == "search":
|
120
|
+
return "%24search"
|
121
|
+
if original_name == "select":
|
122
|
+
return "%24select"
|
123
|
+
if original_name == "skip":
|
124
|
+
return "%24skip"
|
125
|
+
if original_name == "top":
|
126
|
+
return "%24top"
|
127
|
+
return original_name
|
128
|
+
|
129
|
+
# Include count of items
|
130
|
+
count: Optional[bool] = None
|
131
|
+
|
132
|
+
# Expand related entities
|
133
|
+
expand: Optional[List[str]] = None
|
134
|
+
|
135
|
+
# Filter items by property values
|
136
|
+
filter: Optional[str] = None
|
137
|
+
|
138
|
+
# Order items by property values
|
139
|
+
orderby: Optional[List[str]] = None
|
140
|
+
|
141
|
+
# Search items by search phrases
|
142
|
+
search: Optional[str] = None
|
143
|
+
|
144
|
+
# Select properties to be returned
|
145
|
+
select: Optional[List[str]] = None
|
146
|
+
|
147
|
+
# Skip the first n items
|
148
|
+
skip: Optional[int] = None
|
149
|
+
|
150
|
+
# Show only the first n items
|
151
|
+
top: Optional[int] = None
|
152
|
+
|
153
|
+
|
154
|
+
@dataclass
|
155
|
+
class HealthIssuesRequestBuilderGetRequestConfiguration(RequestConfiguration[HealthIssuesRequestBuilderGetQueryParameters]):
|
156
|
+
"""
|
157
|
+
Configuration for the request such as headers, query parameters, and middleware options.
|
158
|
+
"""
|
159
|
+
warn("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.", DeprecationWarning)
|
160
|
+
|
161
|
+
|