msgraph-sdk 1.13.0__py3-none-any.whl → 1.15.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/app_catalogs/teams_apps/teams_apps_request_builder.py +3 -3
- msgraph/generated/chats/item/messages/messages_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/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_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/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 +7 -7
- msgraph/generated/device_app_management/managed_e_books/item/assignments/item/managed_e_book_assignment_item_request_builder.py +7 -7
- msgraph/generated/device_app_management/managed_e_books/item/managed_e_book_item_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 +6 -6
- 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 +10 -10
- msgraph/generated/device_management/role_definitions/role_definitions_request_builder.py +7 -7
- msgraph/generated/drives/item/items/item/discard_checkout/discard_checkout_request_builder.py +78 -0
- msgraph/generated/drives/item/items/item/drive_item_item_request_builder.py +10 -0
- 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/item/assign_license/assign_license_request_builder.py +2 -2
- msgraph/generated/groups/item/conversations/item/conversation_item_request_builder.py +4 -4
- msgraph/generated/groups/item/group_item_request_builder.py +2 -2
- msgraph/generated/groups/item/renew/renew_request_builder.py +2 -2
- msgraph/generated/groups/item/threads/item/conversation_thread_item_request_builder.py +4 -4
- msgraph/generated/groups_with_unique_name/groups_with_unique_name_request_builder.py +2 -2
- msgraph/generated/identity/conditional_access/named_locations/item/named_location_item_request_builder.py +4 -4
- msgraph/generated/identity_governance/entitlement_management/catalogs/item/custom_workflow_extensions/item/custom_callout_extension_item_request_builder.py +6 -6
- msgraph/generated/information_protection/bitlocker/recovery_keys/recovery_keys_request_builder.py +3 -3
- msgraph/generated/kiota-dom-export.txt +1259 -0
- msgraph/generated/kiota-lock.json +2 -2
- msgraph/generated/models/administrative_unit.py +1 -1
- msgraph/generated/models/app_management_restriction_state.py +7 -0
- msgraph/generated/models/app_role_assignment.py +2 -2
- msgraph/generated/models/application.py +1 -1
- msgraph/generated/models/base_item.py +16 -0
- msgraph/generated/models/conditional_access_authentication_flows.py +62 -0
- msgraph/generated/models/conditional_access_client_applications.py +1 -1
- msgraph/generated/models/conditional_access_condition_set.py +9 -1
- msgraph/generated/models/conditional_access_transfer_methods.py +8 -0
- msgraph/generated/models/device.py +1 -1
- msgraph/generated/models/eligibility_filtering_enabled_entities.py +9 -0
- msgraph/generated/models/entity.py +32 -0
- msgraph/generated/models/file_storage.py +4 -0
- msgraph/generated/models/file_storage_container.py +16 -0
- msgraph/generated/models/file_storage_container_settings.py +8 -0
- msgraph/generated/models/internal_domain_federation.py +4 -0
- msgraph/generated/models/key_credential_configuration.py +8 -0
- msgraph/generated/models/open_shift.py +7 -3
- msgraph/generated/models/org_contact.py +1 -1
- msgraph/generated/models/password_credential_configuration.py +8 -0
- msgraph/generated/models/recycle_bin.py +70 -0
- msgraph/generated/models/recycle_bin_item.py +67 -0
- msgraph/generated/models/recycle_bin_item_collection_response.py +60 -0
- msgraph/generated/models/recycle_bin_settings.py +53 -0
- msgraph/generated/models/security/data_set.py +4 -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/models/service_principal.py +1 -1
- msgraph/generated/models/shift.py +4 -0
- msgraph/generated/models/shift_activity.py +2 -2
- msgraph/generated/models/site_lock_state.py +9 -0
- msgraph/generated/models/time_off.py +5 -1
- msgraph/generated/models/user.py +1 -1
- msgraph/generated/models/workforce_integration.py +9 -1
- msgraph/generated/models/workforce_integration_supported_entities.py +3 -0
- msgraph/generated/models/x509_certificate_authentication_method_configuration.py +8 -0
- msgraph/generated/models/x509_certificate_c_r_l_validation_configuration.py +66 -0
- msgraph/generated/models/x509_certificate_c_r_l_validation_configuration_state.py +7 -0
- msgraph/generated/organization/item/branding/localizations/item/banner_logo/banner_logo_request_builder.py +3 -3
- 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/attack_simulation/payloads/item/payload_item_request_builder.py +4 -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/storage/file_storage/containers/item/file_storage_container_item_request_builder.py +40 -0
- msgraph/generated/storage/file_storage/containers/item/lock/lock_post_request_body.py +58 -0
- msgraph/generated/storage/file_storage/containers/item/lock/lock_request_builder.py +85 -0
- msgraph/generated/storage/file_storage/containers/item/recycle_bin/created_by_user/created_by_user_request_builder.py +126 -0
- msgraph/generated/storage/file_storage/containers/item/recycle_bin/created_by_user/mailbox_settings/mailbox_settings_request_builder.py +151 -0
- msgraph/generated/storage/file_storage/containers/item/recycle_bin/created_by_user/service_provisioning_errors/count/count_request_builder.py +103 -0
- msgraph/generated/storage/file_storage/containers/item/recycle_bin/created_by_user/service_provisioning_errors/service_provisioning_errors_request_builder.py +146 -0
- msgraph/generated/storage/file_storage/containers/item/recycle_bin/items/count/count_request_builder.py +103 -0
- msgraph/generated/storage/file_storage/containers/item/recycle_bin/items/item/created_by_user/created_by_user_request_builder.py +126 -0
- msgraph/generated/storage/file_storage/containers/item/recycle_bin/items/item/created_by_user/mailbox_settings/mailbox_settings_request_builder.py +151 -0
- msgraph/generated/storage/file_storage/containers/item/recycle_bin/items/item/created_by_user/service_provisioning_errors/count/count_request_builder.py +103 -0
- msgraph/generated/storage/file_storage/containers/item/recycle_bin/items/item/created_by_user/service_provisioning_errors/service_provisioning_errors_request_builder.py +146 -0
- msgraph/generated/storage/file_storage/containers/item/recycle_bin/items/item/last_modified_by_user/last_modified_by_user_request_builder.py +126 -0
- msgraph/generated/storage/file_storage/containers/item/recycle_bin/items/item/last_modified_by_user/mailbox_settings/mailbox_settings_request_builder.py +151 -0
- msgraph/generated/storage/file_storage/containers/item/recycle_bin/items/item/last_modified_by_user/service_provisioning_errors/count/count_request_builder.py +103 -0
- msgraph/generated/storage/file_storage/containers/item/recycle_bin/items/item/last_modified_by_user/service_provisioning_errors/service_provisioning_errors_request_builder.py +146 -0
- msgraph/generated/storage/file_storage/containers/item/recycle_bin/items/item/recycle_bin_item_item_request_builder.py +207 -0
- msgraph/generated/storage/file_storage/containers/item/recycle_bin/items/items_request_builder.py +207 -0
- msgraph/generated/storage/file_storage/containers/item/recycle_bin/last_modified_by_user/last_modified_by_user_request_builder.py +126 -0
- msgraph/generated/storage/file_storage/containers/item/recycle_bin/last_modified_by_user/mailbox_settings/mailbox_settings_request_builder.py +151 -0
- msgraph/generated/storage/file_storage/containers/item/recycle_bin/last_modified_by_user/service_provisioning_errors/count/count_request_builder.py +103 -0
- msgraph/generated/storage/file_storage/containers/item/recycle_bin/last_modified_by_user/service_provisioning_errors/service_provisioning_errors_request_builder.py +146 -0
- msgraph/generated/storage/file_storage/containers/item/recycle_bin/recycle_bin_request_builder.py +217 -0
- msgraph/generated/storage/file_storage/containers/item/restore/restore_request_builder.py +80 -0
- msgraph/generated/storage/file_storage/containers/item/unlock/unlock_request_builder.py +77 -0
- msgraph/generated/storage/file_storage/deleted_containers/count/count_request_builder.py +103 -0
- msgraph/generated/storage/file_storage/deleted_containers/deleted_containers_request_builder.py +207 -0
- msgraph/generated/storage/file_storage/deleted_containers/item/activate/activate_request_builder.py +77 -0
- msgraph/generated/storage/file_storage/deleted_containers/item/drive/drive_request_builder.py +106 -0
- msgraph/generated/storage/file_storage/deleted_containers/item/file_storage_container_item_request_builder.py +267 -0
- msgraph/generated/storage/file_storage/deleted_containers/item/lock/lock_post_request_body.py +58 -0
- msgraph/generated/storage/file_storage/deleted_containers/item/lock/lock_request_builder.py +85 -0
- msgraph/generated/storage/file_storage/deleted_containers/item/permanent_delete/permanent_delete_request_builder.py +77 -0
- msgraph/generated/storage/file_storage/deleted_containers/item/permissions/count/count_request_builder.py +103 -0
- msgraph/generated/storage/file_storage/deleted_containers/item/permissions/item/grant/grant_post_request_body.py +62 -0
- msgraph/generated/storage/file_storage/deleted_containers/item/permissions/item/grant/grant_post_response.py +60 -0
- msgraph/generated/storage/file_storage/deleted_containers/item/permissions/item/grant/grant_request_builder.py +89 -0
- msgraph/generated/storage/file_storage/deleted_containers/item/permissions/item/permission_item_request_builder.py +197 -0
- msgraph/generated/storage/file_storage/deleted_containers/item/permissions/permissions_request_builder.py +207 -0
- msgraph/generated/storage/file_storage/deleted_containers/item/recycle_bin/created_by_user/created_by_user_request_builder.py +126 -0
- msgraph/generated/storage/file_storage/deleted_containers/item/recycle_bin/created_by_user/mailbox_settings/mailbox_settings_request_builder.py +151 -0
- msgraph/generated/storage/file_storage/deleted_containers/item/recycle_bin/created_by_user/service_provisioning_errors/count/count_request_builder.py +103 -0
- msgraph/generated/storage/file_storage/deleted_containers/item/recycle_bin/created_by_user/service_provisioning_errors/service_provisioning_errors_request_builder.py +146 -0
- msgraph/generated/storage/file_storage/deleted_containers/item/recycle_bin/items/count/count_request_builder.py +103 -0
- msgraph/generated/storage/file_storage/deleted_containers/item/recycle_bin/items/item/created_by_user/created_by_user_request_builder.py +126 -0
- msgraph/generated/storage/file_storage/deleted_containers/item/recycle_bin/items/item/created_by_user/mailbox_settings/mailbox_settings_request_builder.py +151 -0
- msgraph/generated/storage/file_storage/deleted_containers/item/recycle_bin/items/item/created_by_user/service_provisioning_errors/count/count_request_builder.py +103 -0
- msgraph/generated/storage/file_storage/deleted_containers/item/recycle_bin/items/item/created_by_user/service_provisioning_errors/service_provisioning_errors_request_builder.py +146 -0
- msgraph/generated/storage/file_storage/deleted_containers/item/recycle_bin/items/item/last_modified_by_user/last_modified_by_user_request_builder.py +126 -0
- msgraph/generated/storage/file_storage/deleted_containers/item/recycle_bin/items/item/last_modified_by_user/mailbox_settings/mailbox_settings_request_builder.py +151 -0
- msgraph/generated/storage/file_storage/deleted_containers/item/recycle_bin/items/item/last_modified_by_user/service_provisioning_errors/count/count_request_builder.py +103 -0
- msgraph/generated/storage/file_storage/deleted_containers/item/recycle_bin/items/item/last_modified_by_user/service_provisioning_errors/service_provisioning_errors_request_builder.py +146 -0
- msgraph/generated/storage/file_storage/deleted_containers/item/recycle_bin/items/item/recycle_bin_item_item_request_builder.py +207 -0
- msgraph/generated/storage/file_storage/deleted_containers/item/recycle_bin/items/items_request_builder.py +207 -0
- msgraph/generated/storage/file_storage/deleted_containers/item/recycle_bin/last_modified_by_user/last_modified_by_user_request_builder.py +126 -0
- msgraph/generated/storage/file_storage/deleted_containers/item/recycle_bin/last_modified_by_user/mailbox_settings/mailbox_settings_request_builder.py +151 -0
- msgraph/generated/storage/file_storage/deleted_containers/item/recycle_bin/last_modified_by_user/service_provisioning_errors/count/count_request_builder.py +103 -0
- msgraph/generated/storage/file_storage/deleted_containers/item/recycle_bin/last_modified_by_user/service_provisioning_errors/service_provisioning_errors_request_builder.py +146 -0
- msgraph/generated/storage/file_storage/deleted_containers/item/recycle_bin/recycle_bin_request_builder.py +217 -0
- msgraph/generated/storage/file_storage/deleted_containers/item/restore/restore_request_builder.py +80 -0
- msgraph/generated/storage/file_storage/deleted_containers/item/unlock/unlock_request_builder.py +77 -0
- msgraph/generated/storage/file_storage/file_storage_request_builder.py +10 -0
- msgraph/generated/teams/item/channels/item/members/item/conversation_member_item_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/user_item_request_builder.py +8 -8
- 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.15.0.dist-info}/METADATA +1 -1
- {msgraph_sdk-1.13.0.dist-info → msgraph_sdk-1.15.0.dist-info}/RECORD +179 -89
- {msgraph_sdk-1.13.0.dist-info → msgraph_sdk-1.15.0.dist-info}/LICENSE +0 -0
- {msgraph_sdk-1.13.0.dist-info → msgraph_sdk-1.15.0.dist-info}/WHEEL +0 -0
@@ -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
|
+
|
@@ -0,0 +1,106 @@
|
|
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 import HealthIssue
|
18
|
+
|
19
|
+
class HealthIssueItemRequestBuilder(BaseRequestBuilder):
|
20
|
+
"""
|
21
|
+
Provides operations to manage the healthIssues property of the microsoft.graph.security.sensor entity.
|
22
|
+
"""
|
23
|
+
def __init__(self,request_adapter: RequestAdapter, path_parameters: Union[str, Dict[str, Any]]) -> None:
|
24
|
+
"""
|
25
|
+
Instantiates a new HealthIssueItemRequestBuilder and sets the default values.
|
26
|
+
param path_parameters: The raw url or the url-template parameters for the request.
|
27
|
+
param request_adapter: The request adapter to use to execute the requests.
|
28
|
+
Returns: None
|
29
|
+
"""
|
30
|
+
super().__init__(request_adapter, "{+baseurl}/security/identities/sensors/{sensor%2Did}/healthIssues/{healthIssue%2Did}{?%24expand,%24select}", path_parameters)
|
31
|
+
|
32
|
+
async def get(self,request_configuration: Optional[RequestConfiguration[HealthIssueItemRequestBuilderGetQueryParameters]] = None) -> Optional[HealthIssue]:
|
33
|
+
"""
|
34
|
+
Represents potential issues within a customer's Microsoft Defender for Identity configuration that Microsoft Defender for Identity identified related to the sensor.
|
35
|
+
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
|
36
|
+
Returns: Optional[HealthIssue]
|
37
|
+
"""
|
38
|
+
request_info = self.to_get_request_information(
|
39
|
+
request_configuration
|
40
|
+
)
|
41
|
+
from .......models.o_data_errors.o_data_error import ODataError
|
42
|
+
|
43
|
+
error_mapping: Dict[str, type[ParsableFactory]] = {
|
44
|
+
"XXX": ODataError,
|
45
|
+
}
|
46
|
+
if not self.request_adapter:
|
47
|
+
raise Exception("Http core is null")
|
48
|
+
from .......models.security.health_issue import HealthIssue
|
49
|
+
|
50
|
+
return await self.request_adapter.send_async(request_info, HealthIssue, error_mapping)
|
51
|
+
|
52
|
+
def to_get_request_information(self,request_configuration: Optional[RequestConfiguration[HealthIssueItemRequestBuilderGetQueryParameters]] = None) -> RequestInformation:
|
53
|
+
"""
|
54
|
+
Represents potential issues within a customer's Microsoft Defender for Identity configuration that Microsoft Defender for Identity identified related to the sensor.
|
55
|
+
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
|
56
|
+
Returns: RequestInformation
|
57
|
+
"""
|
58
|
+
request_info = RequestInformation(Method.GET, self.url_template, self.path_parameters)
|
59
|
+
request_info.configure(request_configuration)
|
60
|
+
request_info.headers.try_add("Accept", "application/json")
|
61
|
+
return request_info
|
62
|
+
|
63
|
+
def with_url(self,raw_url: str) -> HealthIssueItemRequestBuilder:
|
64
|
+
"""
|
65
|
+
Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
|
66
|
+
param raw_url: The raw URL to use for the request builder.
|
67
|
+
Returns: HealthIssueItemRequestBuilder
|
68
|
+
"""
|
69
|
+
if raw_url is None:
|
70
|
+
raise TypeError("raw_url cannot be null.")
|
71
|
+
return HealthIssueItemRequestBuilder(self.request_adapter, raw_url)
|
72
|
+
|
73
|
+
@dataclass
|
74
|
+
class HealthIssueItemRequestBuilderGetQueryParameters():
|
75
|
+
"""
|
76
|
+
Represents potential issues within a customer's Microsoft Defender for Identity configuration that Microsoft Defender for Identity identified related to the sensor.
|
77
|
+
"""
|
78
|
+
def get_query_parameter(self,original_name: str) -> str:
|
79
|
+
"""
|
80
|
+
Maps the query parameters names to their encoded names for the URI template parsing.
|
81
|
+
param original_name: The original query parameter name in the class.
|
82
|
+
Returns: str
|
83
|
+
"""
|
84
|
+
if original_name is None:
|
85
|
+
raise TypeError("original_name cannot be null.")
|
86
|
+
if original_name == "expand":
|
87
|
+
return "%24expand"
|
88
|
+
if original_name == "select":
|
89
|
+
return "%24select"
|
90
|
+
return original_name
|
91
|
+
|
92
|
+
# Expand related entities
|
93
|
+
expand: Optional[List[str]] = None
|
94
|
+
|
95
|
+
# Select properties to be returned
|
96
|
+
select: Optional[List[str]] = None
|
97
|
+
|
98
|
+
|
99
|
+
@dataclass
|
100
|
+
class HealthIssueItemRequestBuilderGetRequestConfiguration(RequestConfiguration[HealthIssueItemRequestBuilderGetQueryParameters]):
|
101
|
+
"""
|
102
|
+
Configuration for the request such as headers, query parameters, and middleware options.
|
103
|
+
"""
|
104
|
+
warn("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.", DeprecationWarning)
|
105
|
+
|
106
|
+
|