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,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
|
+
|
@@ -0,0 +1,200 @@
|
|
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.sensor import Sensor
|
18
|
+
from .health_issues.health_issues_request_builder import HealthIssuesRequestBuilder
|
19
|
+
|
20
|
+
class SensorItemRequestBuilder(BaseRequestBuilder):
|
21
|
+
"""
|
22
|
+
Provides operations to manage the sensors property of the microsoft.graph.security.identityContainer entity.
|
23
|
+
"""
|
24
|
+
def __init__(self,request_adapter: RequestAdapter, path_parameters: Union[str, Dict[str, Any]]) -> None:
|
25
|
+
"""
|
26
|
+
Instantiates a new SensorItemRequestBuilder and sets the default values.
|
27
|
+
param path_parameters: The raw url or the url-template parameters for the request.
|
28
|
+
param request_adapter: The request adapter to use to execute the requests.
|
29
|
+
Returns: None
|
30
|
+
"""
|
31
|
+
super().__init__(request_adapter, "{+baseurl}/security/identities/sensors/{sensor%2Did}{?%24expand,%24select}", path_parameters)
|
32
|
+
|
33
|
+
async def delete(self,request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> None:
|
34
|
+
"""
|
35
|
+
Delete a sensor object.
|
36
|
+
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
|
37
|
+
Returns: None
|
38
|
+
Find more info here: https://learn.microsoft.com/graph/api/security-sensor-delete?view=graph-rest-1.0
|
39
|
+
"""
|
40
|
+
request_info = self.to_delete_request_information(
|
41
|
+
request_configuration
|
42
|
+
)
|
43
|
+
from .....models.o_data_errors.o_data_error import ODataError
|
44
|
+
|
45
|
+
error_mapping: Dict[str, type[ParsableFactory]] = {
|
46
|
+
"XXX": ODataError,
|
47
|
+
}
|
48
|
+
if not self.request_adapter:
|
49
|
+
raise Exception("Http core is null")
|
50
|
+
return await self.request_adapter.send_no_response_content_async(request_info, error_mapping)
|
51
|
+
|
52
|
+
async def get(self,request_configuration: Optional[RequestConfiguration[SensorItemRequestBuilderGetQueryParameters]] = None) -> Optional[Sensor]:
|
53
|
+
"""
|
54
|
+
Read the properties and relationships of a sensor object.
|
55
|
+
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
|
56
|
+
Returns: Optional[Sensor]
|
57
|
+
Find more info here: https://learn.microsoft.com/graph/api/security-sensor-get?view=graph-rest-1.0
|
58
|
+
"""
|
59
|
+
request_info = self.to_get_request_information(
|
60
|
+
request_configuration
|
61
|
+
)
|
62
|
+
from .....models.o_data_errors.o_data_error import ODataError
|
63
|
+
|
64
|
+
error_mapping: Dict[str, type[ParsableFactory]] = {
|
65
|
+
"XXX": ODataError,
|
66
|
+
}
|
67
|
+
if not self.request_adapter:
|
68
|
+
raise Exception("Http core is null")
|
69
|
+
from .....models.security.sensor import Sensor
|
70
|
+
|
71
|
+
return await self.request_adapter.send_async(request_info, Sensor, error_mapping)
|
72
|
+
|
73
|
+
async def patch(self,body: Sensor, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> Optional[Sensor]:
|
74
|
+
"""
|
75
|
+
Update the properties of a sensor object.
|
76
|
+
param body: The request body
|
77
|
+
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
|
78
|
+
Returns: Optional[Sensor]
|
79
|
+
Find more info here: https://learn.microsoft.com/graph/api/security-sensor-update?view=graph-rest-1.0
|
80
|
+
"""
|
81
|
+
if body is None:
|
82
|
+
raise TypeError("body cannot be null.")
|
83
|
+
request_info = self.to_patch_request_information(
|
84
|
+
body, request_configuration
|
85
|
+
)
|
86
|
+
from .....models.o_data_errors.o_data_error import ODataError
|
87
|
+
|
88
|
+
error_mapping: Dict[str, type[ParsableFactory]] = {
|
89
|
+
"XXX": ODataError,
|
90
|
+
}
|
91
|
+
if not self.request_adapter:
|
92
|
+
raise Exception("Http core is null")
|
93
|
+
from .....models.security.sensor import Sensor
|
94
|
+
|
95
|
+
return await self.request_adapter.send_async(request_info, Sensor, error_mapping)
|
96
|
+
|
97
|
+
def to_delete_request_information(self,request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> RequestInformation:
|
98
|
+
"""
|
99
|
+
Delete a sensor object.
|
100
|
+
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
|
101
|
+
Returns: RequestInformation
|
102
|
+
"""
|
103
|
+
request_info = RequestInformation(Method.DELETE, self.url_template, self.path_parameters)
|
104
|
+
request_info.configure(request_configuration)
|
105
|
+
request_info.headers.try_add("Accept", "application/json")
|
106
|
+
return request_info
|
107
|
+
|
108
|
+
def to_get_request_information(self,request_configuration: Optional[RequestConfiguration[SensorItemRequestBuilderGetQueryParameters]] = None) -> RequestInformation:
|
109
|
+
"""
|
110
|
+
Read the properties and relationships of a sensor object.
|
111
|
+
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
|
112
|
+
Returns: RequestInformation
|
113
|
+
"""
|
114
|
+
request_info = RequestInformation(Method.GET, self.url_template, self.path_parameters)
|
115
|
+
request_info.configure(request_configuration)
|
116
|
+
request_info.headers.try_add("Accept", "application/json")
|
117
|
+
return request_info
|
118
|
+
|
119
|
+
def to_patch_request_information(self,body: Sensor, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> RequestInformation:
|
120
|
+
"""
|
121
|
+
Update the properties of a sensor object.
|
122
|
+
param body: The request body
|
123
|
+
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
|
124
|
+
Returns: RequestInformation
|
125
|
+
"""
|
126
|
+
if body is None:
|
127
|
+
raise TypeError("body cannot be null.")
|
128
|
+
request_info = RequestInformation(Method.PATCH, self.url_template, self.path_parameters)
|
129
|
+
request_info.configure(request_configuration)
|
130
|
+
request_info.headers.try_add("Accept", "application/json")
|
131
|
+
request_info.set_content_from_parsable(self.request_adapter, "application/json", body)
|
132
|
+
return request_info
|
133
|
+
|
134
|
+
def with_url(self,raw_url: str) -> SensorItemRequestBuilder:
|
135
|
+
"""
|
136
|
+
Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
|
137
|
+
param raw_url: The raw URL to use for the request builder.
|
138
|
+
Returns: SensorItemRequestBuilder
|
139
|
+
"""
|
140
|
+
if raw_url is None:
|
141
|
+
raise TypeError("raw_url cannot be null.")
|
142
|
+
return SensorItemRequestBuilder(self.request_adapter, raw_url)
|
143
|
+
|
144
|
+
@property
|
145
|
+
def health_issues(self) -> HealthIssuesRequestBuilder:
|
146
|
+
"""
|
147
|
+
Provides operations to manage the healthIssues property of the microsoft.graph.security.sensor entity.
|
148
|
+
"""
|
149
|
+
from .health_issues.health_issues_request_builder import HealthIssuesRequestBuilder
|
150
|
+
|
151
|
+
return HealthIssuesRequestBuilder(self.request_adapter, self.path_parameters)
|
152
|
+
|
153
|
+
@dataclass
|
154
|
+
class SensorItemRequestBuilderDeleteRequestConfiguration(RequestConfiguration[QueryParameters]):
|
155
|
+
"""
|
156
|
+
Configuration for the request such as headers, query parameters, and middleware options.
|
157
|
+
"""
|
158
|
+
warn("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.", DeprecationWarning)
|
159
|
+
|
160
|
+
@dataclass
|
161
|
+
class SensorItemRequestBuilderGetQueryParameters():
|
162
|
+
"""
|
163
|
+
Read the properties and relationships of a sensor object.
|
164
|
+
"""
|
165
|
+
def get_query_parameter(self,original_name: str) -> str:
|
166
|
+
"""
|
167
|
+
Maps the query parameters names to their encoded names for the URI template parsing.
|
168
|
+
param original_name: The original query parameter name in the class.
|
169
|
+
Returns: str
|
170
|
+
"""
|
171
|
+
if original_name is None:
|
172
|
+
raise TypeError("original_name cannot be null.")
|
173
|
+
if original_name == "expand":
|
174
|
+
return "%24expand"
|
175
|
+
if original_name == "select":
|
176
|
+
return "%24select"
|
177
|
+
return original_name
|
178
|
+
|
179
|
+
# Expand related entities
|
180
|
+
expand: Optional[List[str]] = None
|
181
|
+
|
182
|
+
# Select properties to be returned
|
183
|
+
select: Optional[List[str]] = None
|
184
|
+
|
185
|
+
|
186
|
+
@dataclass
|
187
|
+
class SensorItemRequestBuilderGetRequestConfiguration(RequestConfiguration[SensorItemRequestBuilderGetQueryParameters]):
|
188
|
+
"""
|
189
|
+
Configuration for the request such as headers, query parameters, and middleware options.
|
190
|
+
"""
|
191
|
+
warn("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.", DeprecationWarning)
|
192
|
+
|
193
|
+
@dataclass
|
194
|
+
class SensorItemRequestBuilderPatchRequestConfiguration(RequestConfiguration[QueryParameters]):
|
195
|
+
"""
|
196
|
+
Configuration for the request such as headers, query parameters, and middleware options.
|
197
|
+
"""
|
198
|
+
warn("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.", DeprecationWarning)
|
199
|
+
|
200
|
+
|
@@ -0,0 +1,80 @@
|
|
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.deployment_access_key_type import DeploymentAccessKeyType
|
18
|
+
|
19
|
+
class MicrosoftGraphSecurityGetDeploymentAccessKeyRequestBuilder(BaseRequestBuilder):
|
20
|
+
"""
|
21
|
+
Provides operations to call the getDeploymentAccessKey method.
|
22
|
+
"""
|
23
|
+
def __init__(self,request_adapter: RequestAdapter, path_parameters: Union[str, Dict[str, Any]]) -> None:
|
24
|
+
"""
|
25
|
+
Instantiates a new MicrosoftGraphSecurityGetDeploymentAccessKeyRequestBuilder 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/microsoft.graph.security.getDeploymentAccessKey()", path_parameters)
|
31
|
+
|
32
|
+
async def get(self,request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> Optional[DeploymentAccessKeyType]:
|
33
|
+
"""
|
34
|
+
Get the deployment access key for Microsoft Defender for Identity that is required to install sensors associated with the workspace.
|
35
|
+
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
|
36
|
+
Returns: Optional[DeploymentAccessKeyType]
|
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.deployment_access_key_type import DeploymentAccessKeyType
|
49
|
+
|
50
|
+
return await self.request_adapter.send_async(request_info, DeploymentAccessKeyType, error_mapping)
|
51
|
+
|
52
|
+
def to_get_request_information(self,request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> RequestInformation:
|
53
|
+
"""
|
54
|
+
Get the deployment access key for Microsoft Defender for Identity that is required to install sensors associated with the workspace.
|
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) -> MicrosoftGraphSecurityGetDeploymentAccessKeyRequestBuilder:
|
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: MicrosoftGraphSecurityGetDeploymentAccessKeyRequestBuilder
|
68
|
+
"""
|
69
|
+
if raw_url is None:
|
70
|
+
raise TypeError("raw_url cannot be null.")
|
71
|
+
return MicrosoftGraphSecurityGetDeploymentAccessKeyRequestBuilder(self.request_adapter, raw_url)
|
72
|
+
|
73
|
+
@dataclass
|
74
|
+
class MicrosoftGraphSecurityGetDeploymentAccessKeyRequestBuilderGetRequestConfiguration(RequestConfiguration[QueryParameters]):
|
75
|
+
"""
|
76
|
+
Configuration for the request such as headers, query parameters, and middleware options.
|
77
|
+
"""
|
78
|
+
warn("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.", DeprecationWarning)
|
79
|
+
|
80
|
+
|
@@ -0,0 +1,80 @@
|
|
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.sensor_deployment_package import SensorDeploymentPackage
|
18
|
+
|
19
|
+
class MicrosoftGraphSecurityGetDeploymentPackageUriRequestBuilder(BaseRequestBuilder):
|
20
|
+
"""
|
21
|
+
Provides operations to call the getDeploymentPackageUri method.
|
22
|
+
"""
|
23
|
+
def __init__(self,request_adapter: RequestAdapter, path_parameters: Union[str, Dict[str, Any]]) -> None:
|
24
|
+
"""
|
25
|
+
Instantiates a new MicrosoftGraphSecurityGetDeploymentPackageUriRequestBuilder 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/microsoft.graph.security.getDeploymentPackageUri()", path_parameters)
|
31
|
+
|
32
|
+
async def get(self,request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> Optional[SensorDeploymentPackage]:
|
33
|
+
"""
|
34
|
+
Get the sensor deployment package URL and version. You can use this URL to download the installer to install the sensor on a server.
|
35
|
+
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
|
36
|
+
Returns: Optional[SensorDeploymentPackage]
|
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.sensor_deployment_package import SensorDeploymentPackage
|
49
|
+
|
50
|
+
return await self.request_adapter.send_async(request_info, SensorDeploymentPackage, error_mapping)
|
51
|
+
|
52
|
+
def to_get_request_information(self,request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> RequestInformation:
|
53
|
+
"""
|
54
|
+
Get the sensor deployment package URL and version. You can use this URL to download the installer to install the sensor on a server.
|
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) -> MicrosoftGraphSecurityGetDeploymentPackageUriRequestBuilder:
|
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: MicrosoftGraphSecurityGetDeploymentPackageUriRequestBuilder
|
68
|
+
"""
|
69
|
+
if raw_url is None:
|
70
|
+
raise TypeError("raw_url cannot be null.")
|
71
|
+
return MicrosoftGraphSecurityGetDeploymentPackageUriRequestBuilder(self.request_adapter, raw_url)
|
72
|
+
|
73
|
+
@dataclass
|
74
|
+
class MicrosoftGraphSecurityGetDeploymentPackageUriRequestBuilderGetRequestConfiguration(RequestConfiguration[QueryParameters]):
|
75
|
+
"""
|
76
|
+
Configuration for the request such as headers, query parameters, and middleware options.
|
77
|
+
"""
|
78
|
+
warn("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.", DeprecationWarning)
|
79
|
+
|
80
|
+
|
@@ -0,0 +1,80 @@
|
|
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.deployment_access_key_type import DeploymentAccessKeyType
|
18
|
+
|
19
|
+
class MicrosoftGraphSecurityRegenerateDeploymentAccessKeyRequestBuilder(BaseRequestBuilder):
|
20
|
+
"""
|
21
|
+
Provides operations to call the regenerateDeploymentAccessKey method.
|
22
|
+
"""
|
23
|
+
def __init__(self,request_adapter: RequestAdapter, path_parameters: Union[str, Dict[str, Any]]) -> None:
|
24
|
+
"""
|
25
|
+
Instantiates a new MicrosoftGraphSecurityRegenerateDeploymentAccessKeyRequestBuilder 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/microsoft.graph.security.regenerateDeploymentAccessKey", path_parameters)
|
31
|
+
|
32
|
+
async def post(self,request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> Optional[DeploymentAccessKeyType]:
|
33
|
+
"""
|
34
|
+
Generate a new deployment access key that can be used to install a sensor associated with the workspace.
|
35
|
+
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
|
36
|
+
Returns: Optional[DeploymentAccessKeyType]
|
37
|
+
"""
|
38
|
+
request_info = self.to_post_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.deployment_access_key_type import DeploymentAccessKeyType
|
49
|
+
|
50
|
+
return await self.request_adapter.send_async(request_info, DeploymentAccessKeyType, error_mapping)
|
51
|
+
|
52
|
+
def to_post_request_information(self,request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> RequestInformation:
|
53
|
+
"""
|
54
|
+
Generate a new deployment access key that can be used to install a sensor associated with the workspace.
|
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.POST, 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) -> MicrosoftGraphSecurityRegenerateDeploymentAccessKeyRequestBuilder:
|
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: MicrosoftGraphSecurityRegenerateDeploymentAccessKeyRequestBuilder
|
68
|
+
"""
|
69
|
+
if raw_url is None:
|
70
|
+
raise TypeError("raw_url cannot be null.")
|
71
|
+
return MicrosoftGraphSecurityRegenerateDeploymentAccessKeyRequestBuilder(self.request_adapter, raw_url)
|
72
|
+
|
73
|
+
@dataclass
|
74
|
+
class MicrosoftGraphSecurityRegenerateDeploymentAccessKeyRequestBuilderPostRequestConfiguration(RequestConfiguration[QueryParameters]):
|
75
|
+
"""
|
76
|
+
Configuration for the request such as headers, query parameters, and middleware options.
|
77
|
+
"""
|
78
|
+
warn("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.", DeprecationWarning)
|
79
|
+
|
80
|
+
|