msgraph-sdk 1.51.0__py3-none-any.whl → 1.52.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- msgraph/_version.py +1 -1
- msgraph/generated/admin/admin_request_builder.py +10 -0
- msgraph/generated/admin/teams/teams_request_builder.py +198 -0
- msgraph/generated/admin/teams/user_configurations/count/count_request_builder.py +104 -0
- msgraph/generated/admin/teams/user_configurations/item/teams_user_configuration_item_request_builder.py +199 -0
- msgraph/generated/admin/teams/user_configurations/item/user/mailbox_settings/mailbox_settings_request_builder.py +152 -0
- msgraph/generated/admin/teams/user_configurations/item/user/service_provisioning_errors/count/count_request_builder.py +104 -0
- msgraph/generated/admin/teams/user_configurations/item/user/service_provisioning_errors/service_provisioning_errors_request_builder.py +147 -0
- msgraph/generated/admin/teams/user_configurations/item/user/user_request_builder.py +127 -0
- msgraph/generated/admin/teams/user_configurations/user_configurations_request_builder.py +209 -0
- msgraph/generated/communications/adhoc_calls/adhoc_calls_request_builder.py +208 -0
- msgraph/generated/communications/adhoc_calls/count/count_request_builder.py +104 -0
- msgraph/generated/communications/adhoc_calls/item/adhoc_call_item_request_builder.py +208 -0
- msgraph/generated/communications/adhoc_calls/item/recordings/count/count_request_builder.py +104 -0
- msgraph/generated/communications/adhoc_calls/item/recordings/delta/delta_get_response.py +58 -0
- msgraph/generated/communications/adhoc_calls/item/recordings/delta/delta_request_builder.py +137 -0
- msgraph/generated/communications/adhoc_calls/item/recordings/item/call_recording_item_request_builder.py +198 -0
- msgraph/generated/communications/adhoc_calls/item/recordings/item/content/content_request_builder.py +160 -0
- msgraph/generated/communications/adhoc_calls/item/recordings/recordings_request_builder.py +218 -0
- msgraph/generated/communications/adhoc_calls/item/transcripts/count/count_request_builder.py +104 -0
- msgraph/generated/communications/adhoc_calls/item/transcripts/delta/delta_get_response.py +58 -0
- msgraph/generated/communications/adhoc_calls/item/transcripts/delta/delta_request_builder.py +137 -0
- msgraph/generated/communications/adhoc_calls/item/transcripts/item/call_transcript_item_request_builder.py +208 -0
- msgraph/generated/communications/adhoc_calls/item/transcripts/item/content/content_request_builder.py +160 -0
- msgraph/generated/communications/adhoc_calls/item/transcripts/item/metadata_content/metadata_content_request_builder.py +157 -0
- msgraph/generated/communications/adhoc_calls/item/transcripts/transcripts_request_builder.py +218 -0
- msgraph/generated/communications/communications_request_builder.py +10 -0
- msgraph/generated/communications/presences/item/clear_automatic_location/clear_automatic_location_request_builder.py +79 -0
- msgraph/generated/communications/presences/item/clear_location/clear_location_request_builder.py +79 -0
- msgraph/generated/communications/presences/item/presence_item_request_builder.py +40 -0
- msgraph/generated/communications/presences/item/set_automatic_location/set_automatic_location_post_request_body.py +61 -0
- msgraph/generated/communications/presences/item/set_automatic_location/set_automatic_location_request_builder.py +87 -0
- msgraph/generated/communications/presences/item/set_manual_location/set_manual_location_post_request_body.py +61 -0
- msgraph/generated/communications/presences/item/set_manual_location/set_manual_location_request_builder.py +87 -0
- msgraph/generated/device_management/virtual_endpoint/cloud_p_cs/item/cloud_p_c_item_request_builder.py +20 -0
- msgraph/generated/device_management/virtual_endpoint/cloud_p_cs/item/reprovision/reprovision_post_request_body.py +64 -0
- msgraph/generated/device_management/virtual_endpoint/cloud_p_cs/item/reprovision/reprovision_request_builder.py +87 -0
- msgraph/generated/device_management/virtual_endpoint/cloud_p_cs/item/retrieve_cloud_pc_launch_detail/retrieve_cloud_pc_launch_detail_request_builder.py +82 -0
- msgraph/generated/device_management/virtual_endpoint/report/report_request_builder.py +198 -0
- msgraph/generated/device_management/virtual_endpoint/report/retrieve_cloud_pc_recommendation_reports/retrieve_cloud_pc_recommendation_reports_post_request_body.py +85 -0
- msgraph/generated/device_management/virtual_endpoint/report/retrieve_cloud_pc_recommendation_reports/retrieve_cloud_pc_recommendation_reports_request_builder.py +87 -0
- msgraph/generated/device_management/virtual_endpoint/virtual_endpoint_request_builder.py +10 -0
- msgraph/generated/drives/item/recent/recent_request_builder.py +3 -0
- msgraph/generated/drives/item/shared_with_me/shared_with_me_request_builder.py +3 -0
- msgraph/generated/kiota-dom-export.txt +1954 -1
- msgraph/generated/kiota-lock.json +1 -1
- msgraph/generated/models/action_item.py +62 -0
- msgraph/generated/models/adhoc_call.py +67 -0
- msgraph/generated/models/adhoc_call_collection_response.py +58 -0
- msgraph/generated/models/admin.py +7 -0
- msgraph/generated/models/ai_online_meeting.py +60 -0
- msgraph/generated/models/ai_user.py +7 -0
- msgraph/generated/models/allowed_target_scope.py +1 -0
- msgraph/generated/models/building.py +7 -0
- msgraph/generated/models/call_ai_insight.py +91 -0
- msgraph/generated/models/call_ai_insight_view_point.py +61 -0
- msgraph/generated/models/cloud_communications.py +7 -0
- msgraph/generated/models/cloud_pc_launch_detail.py +73 -0
- msgraph/generated/models/cloud_pc_operating_system.py +7 -0
- msgraph/generated/models/cloud_pc_recommendation_report_type.py +6 -0
- msgraph/generated/models/cloud_pc_report.py +53 -0
- msgraph/generated/models/cloud_pc_user_account_type.py +7 -0
- msgraph/generated/models/desk.py +8 -1
- msgraph/generated/models/entity.py +84 -0
- msgraph/generated/models/file_storage.py +16 -2
- msgraph/generated/models/file_storage_container.py +7 -0
- msgraph/generated/models/file_storage_container_billing_classification.py +8 -0
- msgraph/generated/models/file_storage_container_billing_status.py +7 -0
- msgraph/generated/models/file_storage_container_type.py +96 -0
- msgraph/generated/models/file_storage_container_type_app_permission.py +20 -0
- msgraph/generated/models/file_storage_container_type_app_permission_grant.py +69 -0
- msgraph/generated/models/file_storage_container_type_app_permission_grant_collection_response.py +58 -0
- msgraph/generated/models/file_storage_container_type_collection_response.py +58 -0
- msgraph/generated/models/file_storage_container_type_registration.py +103 -0
- msgraph/generated/models/file_storage_container_type_registration_collection_response.py +58 -0
- msgraph/generated/models/file_storage_container_type_registration_settings.py +89 -0
- msgraph/generated/models/file_storage_container_type_settings.py +96 -0
- msgraph/generated/models/file_storage_container_type_settings_override.py +11 -0
- msgraph/generated/models/list_item.py +7 -0
- msgraph/generated/models/max_work_location_details.py +9 -0
- msgraph/generated/models/meeting_note.py +69 -0
- msgraph/generated/models/meeting_note_subpoint.py +58 -0
- msgraph/generated/models/mention_event.py +70 -0
- msgraph/generated/models/online_meeting_base.py +20 -0
- msgraph/generated/models/online_meeting_sensitivity_label_assignment.py +54 -0
- msgraph/generated/models/place_feature_enablement.py +8 -0
- msgraph/generated/models/place_mode.py +7 -0
- msgraph/generated/models/presence.py +7 -0
- msgraph/generated/models/restore_point_search_result.py +1 -1
- msgraph/generated/models/room.py +11 -0
- msgraph/generated/models/security/active_directory_domain_evidence.py +61 -0
- msgraph/generated/models/security/alert_evidence.py +7 -0
- msgraph/generated/models/security/device_evidence.py +8 -1
- msgraph/generated/models/security/ediscovery_case.py +7 -0
- msgraph/generated/models/security/ediscovery_case_member.py +68 -0
- msgraph/generated/models/security/ediscovery_case_member_collection_response.py +58 -0
- msgraph/generated/models/security/mailbox_configuration_evidence.py +6 -6
- msgraph/generated/models/security/recipient_type.py +7 -0
- msgraph/generated/models/sensitivity_label.py +4 -0
- msgraph/generated/models/subject_set.py +7 -0
- msgraph/generated/models/target_agent_identity_sponsors_or_owners.py +53 -0
- msgraph/generated/models/teams_administration/account_type.py +11 -0
- msgraph/generated/models/teams_administration/assigned_telephone_number.py +65 -0
- msgraph/generated/models/teams_administration/assignment_category.py +8 -0
- msgraph/generated/models/teams_administration/assignment_type.py +7 -0
- msgraph/generated/models/teams_administration/effective_policy_assignment.py +65 -0
- msgraph/generated/models/teams_administration/policy_assignment.py +73 -0
- msgraph/generated/models/teams_administration/teams_admin_root.py +60 -0
- msgraph/generated/models/teams_administration/teams_user_configuration.py +106 -0
- msgraph/generated/models/teams_administration/teams_user_configuration_collection_response.py +58 -0
- msgraph/generated/models/time_off_details.py +58 -0
- msgraph/generated/models/unavailable_place_mode.py +57 -0
- msgraph/generated/models/user.py +14 -0
- msgraph/generated/models/user_settings.py +8 -1
- msgraph/generated/models/user_work_location.py +72 -0
- msgraph/generated/models/virtual_endpoint.py +7 -0
- msgraph/generated/models/windows365_switch_compatibility_failure_reason_type.py +7 -0
- msgraph/generated/models/work_hours_and_locations_setting.py +74 -0
- msgraph/generated/models/work_location_source.py +9 -0
- msgraph/generated/models/work_location_type.py +9 -0
- msgraph/generated/models/work_location_update_scope.py +7 -0
- msgraph/generated/models/work_plan_occurrence.py +86 -0
- msgraph/generated/models/work_plan_occurrence_collection_response.py +58 -0
- msgraph/generated/models/work_plan_recurrence.py +82 -0
- msgraph/generated/models/work_plan_recurrence_collection_response.py +58 -0
- msgraph/generated/models/workspace.py +5 -1
- msgraph/generated/security/cases/ediscovery_cases/item/case_members/case_members_request_builder.py +210 -0
- msgraph/generated/security/cases/ediscovery_cases/item/case_members/count/count_request_builder.py +104 -0
- msgraph/generated/security/cases/ediscovery_cases/item/case_members/item/ediscovery_case_member_item_request_builder.py +189 -0
- msgraph/generated/security/cases/ediscovery_cases/item/ediscovery_case_item_request_builder.py +10 -0
- msgraph/generated/security/secure_score_control_profiles/item/secure_score_control_profile_item_request_builder.py +2 -2
- msgraph/generated/solutions/backup_restore/service_apps/item/service_app_item_request_builder.py +2 -2
- msgraph/generated/storage/file_storage/container_type_registrations/container_type_registrations_request_builder.py +209 -0
- msgraph/generated/storage/file_storage/container_type_registrations/count/count_request_builder.py +104 -0
- msgraph/generated/storage/file_storage/container_type_registrations/item/application_permission_grants/application_permission_grants_request_builder.py +209 -0
- msgraph/generated/storage/file_storage/container_type_registrations/item/application_permission_grants/count/count_request_builder.py +104 -0
- msgraph/generated/storage/file_storage/container_type_registrations/item/application_permission_grants/item/file_storage_container_type_app_permission_grant_app_item_request_builder.py +191 -0
- msgraph/generated/storage/file_storage/container_type_registrations/item/file_storage_container_type_registration_item_request_builder.py +201 -0
- msgraph/generated/storage/file_storage/container_types/container_types_request_builder.py +210 -0
- msgraph/generated/storage/file_storage/container_types/count/count_request_builder.py +104 -0
- msgraph/generated/storage/file_storage/container_types/item/file_storage_container_type_item_request_builder.py +191 -0
- msgraph/generated/storage/file_storage/containers/item/file_storage_container_item_request_builder.py +3 -3
- msgraph/generated/storage/file_storage/deleted_containers/deleted_containers_request_builder.py +3 -3
- msgraph/generated/storage/file_storage/deleted_containers/item/file_storage_container_item_request_builder.py +3 -3
- msgraph/generated/storage/file_storage/file_storage_request_builder.py +20 -0
- msgraph/generated/users/item/adhoc_calls/adhoc_calls_request_builder.py +208 -0
- msgraph/generated/users/item/adhoc_calls/count/count_request_builder.py +104 -0
- msgraph/generated/users/item/adhoc_calls/item/adhoc_call_item_request_builder.py +208 -0
- msgraph/generated/users/item/adhoc_calls/item/recordings/count/count_request_builder.py +104 -0
- msgraph/generated/users/item/adhoc_calls/item/recordings/delta/delta_get_response.py +58 -0
- msgraph/generated/users/item/adhoc_calls/item/recordings/delta/delta_request_builder.py +137 -0
- msgraph/generated/users/item/adhoc_calls/item/recordings/item/call_recording_item_request_builder.py +199 -0
- msgraph/generated/users/item/adhoc_calls/item/recordings/item/content/content_request_builder.py +161 -0
- msgraph/generated/users/item/adhoc_calls/item/recordings/recordings_request_builder.py +218 -0
- msgraph/generated/users/item/adhoc_calls/item/transcripts/count/count_request_builder.py +104 -0
- msgraph/generated/users/item/adhoc_calls/item/transcripts/delta/delta_get_response.py +58 -0
- msgraph/generated/users/item/adhoc_calls/item/transcripts/delta/delta_request_builder.py +137 -0
- msgraph/generated/users/item/adhoc_calls/item/transcripts/item/call_transcript_item_request_builder.py +209 -0
- msgraph/generated/users/item/adhoc_calls/item/transcripts/item/content/content_request_builder.py +161 -0
- msgraph/generated/users/item/adhoc_calls/item/transcripts/item/metadata_content/metadata_content_request_builder.py +157 -0
- msgraph/generated/users/item/adhoc_calls/item/transcripts/transcripts_request_builder.py +218 -0
- msgraph/generated/users/item/cloud_p_cs/item/cloud_p_c_item_request_builder.py +20 -0
- msgraph/generated/users/item/cloud_p_cs/item/reprovision/reprovision_post_request_body.py +64 -0
- msgraph/generated/users/item/cloud_p_cs/item/reprovision/reprovision_request_builder.py +87 -0
- msgraph/generated/users/item/cloud_p_cs/item/retrieve_cloud_pc_launch_detail/retrieve_cloud_pc_launch_detail_request_builder.py +82 -0
- msgraph/generated/users/item/mail_folders/item/child_folders/item/messages/delta/delta_request_builder.py +3 -3
- msgraph/generated/users/item/mail_folders/item/messages/delta/delta_request_builder.py +3 -3
- msgraph/generated/users/item/messages/delta/delta_request_builder.py +3 -3
- msgraph/generated/users/item/on_premises_sync_behavior/on_premises_sync_behavior_request_builder.py +188 -0
- msgraph/generated/users/item/presence/clear_automatic_location/clear_automatic_location_request_builder.py +79 -0
- msgraph/generated/users/item/presence/clear_location/clear_location_request_builder.py +79 -0
- msgraph/generated/users/item/presence/presence_request_builder.py +40 -0
- msgraph/generated/users/item/presence/set_automatic_location/set_automatic_location_post_request_body.py +61 -0
- msgraph/generated/users/item/presence/set_automatic_location/set_automatic_location_request_builder.py +87 -0
- msgraph/generated/users/item/presence/set_manual_location/set_manual_location_post_request_body.py +61 -0
- msgraph/generated/users/item/presence/set_manual_location/set_manual_location_request_builder.py +87 -0
- msgraph/generated/users/item/settings/settings_request_builder.py +10 -0
- msgraph/generated/users/item/settings/windows/item/windows_setting_item_request_builder.py +3 -3
- msgraph/generated/users/item/settings/windows/windows_request_builder.py +3 -3
- msgraph/generated/users/item/settings/work_hours_and_locations/occurrences/count/count_request_builder.py +104 -0
- msgraph/generated/users/item/settings/work_hours_and_locations/occurrences/item/work_plan_occurrence_item_request_builder.py +188 -0
- msgraph/generated/users/item/settings/work_hours_and_locations/occurrences/occurrences_request_builder.py +218 -0
- msgraph/generated/users/item/settings/work_hours_and_locations/occurrences/set_current_location/set_current_location_post_request_body.py +68 -0
- msgraph/generated/users/item/settings/work_hours_and_locations/occurrences/set_current_location/set_current_location_request_builder.py +87 -0
- msgraph/generated/users/item/settings/work_hours_and_locations/occurrences_view_with_start_date_time_with_end_date_time/occurrences_view_with_start_date_time_with_end_date_time_get_response.py +58 -0
- msgraph/generated/users/item/settings/work_hours_and_locations/occurrences_view_with_start_date_time_with_end_date_time/occurrences_view_with_start_date_time_with_end_date_time_request_builder.py +143 -0
- msgraph/generated/users/item/settings/work_hours_and_locations/recurrences/count/count_request_builder.py +104 -0
- msgraph/generated/users/item/settings/work_hours_and_locations/recurrences/item/work_plan_recurrence_item_request_builder.py +188 -0
- msgraph/generated/users/item/settings/work_hours_and_locations/recurrences/recurrences_request_builder.py +208 -0
- msgraph/generated/users/item/settings/work_hours_and_locations/work_hours_and_locations_request_builder.py +188 -0
- msgraph/generated/users/item/user_item_request_builder.py +20 -0
- {msgraph_sdk-1.51.0.dist-info → msgraph_sdk-1.52.0.dist-info}/METADATA +1 -1
- {msgraph_sdk-1.51.0.dist-info → msgraph_sdk-1.52.0.dist-info}/RECORD +195 -55
- {msgraph_sdk-1.51.0.dist-info → msgraph_sdk-1.52.0.dist-info}/WHEEL +0 -0
- {msgraph_sdk-1.51.0.dist-info → msgraph_sdk-1.52.0.dist-info}/licenses/LICENSE +0 -0
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
from collections.abc import Callable
|
|
3
|
+
from dataclasses import dataclass, field
|
|
4
|
+
from kiota_abstractions.serialization import AdditionalDataHolder, Parsable, ParseNode, SerializationWriter
|
|
5
|
+
from kiota_abstractions.store import BackedModel, BackingStore, BackingStoreFactorySingleton
|
|
6
|
+
from typing import Any, Optional, TYPE_CHECKING, Union
|
|
7
|
+
|
|
8
|
+
if TYPE_CHECKING:
|
|
9
|
+
from .....models.work_location_type import WorkLocationType
|
|
10
|
+
|
|
11
|
+
@dataclass
|
|
12
|
+
class SetAutomaticLocationPostRequestBody(AdditionalDataHolder, BackedModel, Parsable):
|
|
13
|
+
# Stores model information.
|
|
14
|
+
backing_store: BackingStore = field(default_factory=BackingStoreFactorySingleton(backing_store_factory=None).backing_store_factory.create_backing_store, repr=False)
|
|
15
|
+
|
|
16
|
+
# Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
|
17
|
+
additional_data: dict[str, Any] = field(default_factory=dict)
|
|
18
|
+
# The placeId property
|
|
19
|
+
place_id: Optional[str] = None
|
|
20
|
+
# The workLocationType property
|
|
21
|
+
work_location_type: Optional[WorkLocationType] = None
|
|
22
|
+
|
|
23
|
+
@staticmethod
|
|
24
|
+
def create_from_discriminator_value(parse_node: ParseNode) -> SetAutomaticLocationPostRequestBody:
|
|
25
|
+
"""
|
|
26
|
+
Creates a new instance of the appropriate class based on discriminator value
|
|
27
|
+
param parse_node: The parse node to use to read the discriminator value and create the object
|
|
28
|
+
Returns: SetAutomaticLocationPostRequestBody
|
|
29
|
+
"""
|
|
30
|
+
if parse_node is None:
|
|
31
|
+
raise TypeError("parse_node cannot be null.")
|
|
32
|
+
return SetAutomaticLocationPostRequestBody()
|
|
33
|
+
|
|
34
|
+
def get_field_deserializers(self,) -> dict[str, Callable[[ParseNode], None]]:
|
|
35
|
+
"""
|
|
36
|
+
The deserialization information for the current model
|
|
37
|
+
Returns: dict[str, Callable[[ParseNode], None]]
|
|
38
|
+
"""
|
|
39
|
+
from .....models.work_location_type import WorkLocationType
|
|
40
|
+
|
|
41
|
+
from .....models.work_location_type import WorkLocationType
|
|
42
|
+
|
|
43
|
+
fields: dict[str, Callable[[Any], None]] = {
|
|
44
|
+
"placeId": lambda n : setattr(self, 'place_id', n.get_str_value()),
|
|
45
|
+
"workLocationType": lambda n : setattr(self, 'work_location_type', n.get_enum_value(WorkLocationType)),
|
|
46
|
+
}
|
|
47
|
+
return fields
|
|
48
|
+
|
|
49
|
+
def serialize(self,writer: SerializationWriter) -> None:
|
|
50
|
+
"""
|
|
51
|
+
Serializes information the current object
|
|
52
|
+
param writer: Serialization writer to use to serialize this model
|
|
53
|
+
Returns: None
|
|
54
|
+
"""
|
|
55
|
+
if writer is None:
|
|
56
|
+
raise TypeError("writer cannot be null.")
|
|
57
|
+
writer.write_str_value("placeId", self.place_id)
|
|
58
|
+
writer.write_enum_value("workLocationType", self.work_location_type)
|
|
59
|
+
writer.write_additional_data_value(self.additional_data)
|
|
60
|
+
|
|
61
|
+
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
from collections.abc import Callable
|
|
3
|
+
from dataclasses import dataclass, field
|
|
4
|
+
from kiota_abstractions.base_request_builder import BaseRequestBuilder
|
|
5
|
+
from kiota_abstractions.base_request_configuration import RequestConfiguration
|
|
6
|
+
from kiota_abstractions.default_query_parameters import QueryParameters
|
|
7
|
+
from kiota_abstractions.get_path_parameters import get_path_parameters
|
|
8
|
+
from kiota_abstractions.method import Method
|
|
9
|
+
from kiota_abstractions.request_adapter import RequestAdapter
|
|
10
|
+
from kiota_abstractions.request_information import RequestInformation
|
|
11
|
+
from kiota_abstractions.request_option import RequestOption
|
|
12
|
+
from kiota_abstractions.serialization import Parsable, ParsableFactory
|
|
13
|
+
from typing import Any, Optional, TYPE_CHECKING, Union
|
|
14
|
+
from warnings import warn
|
|
15
|
+
|
|
16
|
+
if TYPE_CHECKING:
|
|
17
|
+
from .....models.o_data_errors.o_data_error import ODataError
|
|
18
|
+
from .set_automatic_location_post_request_body import SetAutomaticLocationPostRequestBody
|
|
19
|
+
|
|
20
|
+
class SetAutomaticLocationRequestBuilder(BaseRequestBuilder):
|
|
21
|
+
"""
|
|
22
|
+
Provides operations to call the setAutomaticLocation method.
|
|
23
|
+
"""
|
|
24
|
+
def __init__(self,request_adapter: RequestAdapter, path_parameters: Union[str, dict[str, Any]]) -> None:
|
|
25
|
+
"""
|
|
26
|
+
Instantiates a new SetAutomaticLocationRequestBuilder 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}/communications/presences/{presence%2Did}/setAutomaticLocation", path_parameters)
|
|
32
|
+
|
|
33
|
+
async def post(self,body: SetAutomaticLocationPostRequestBody, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> None:
|
|
34
|
+
"""
|
|
35
|
+
Update the automatic work location for a user. The automatic layer participates in the standard precedence model: Use this operation from clients or services that automatically detect location (for example, Teams, network and location agents, or OEM docking apps). It doesn't clear manual or scheduled signals.
|
|
36
|
+
param body: The request body
|
|
37
|
+
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
|
|
38
|
+
Returns: None
|
|
39
|
+
Find more info here: https://learn.microsoft.com/graph/api/presence-setautomaticlocation?view=graph-rest-1.0
|
|
40
|
+
"""
|
|
41
|
+
if body is None:
|
|
42
|
+
raise TypeError("body cannot be null.")
|
|
43
|
+
request_info = self.to_post_request_information(
|
|
44
|
+
body, request_configuration
|
|
45
|
+
)
|
|
46
|
+
from .....models.o_data_errors.o_data_error import ODataError
|
|
47
|
+
|
|
48
|
+
error_mapping: dict[str, type[ParsableFactory]] = {
|
|
49
|
+
"XXX": ODataError,
|
|
50
|
+
}
|
|
51
|
+
if not self.request_adapter:
|
|
52
|
+
raise Exception("Http core is null")
|
|
53
|
+
return await self.request_adapter.send_no_response_content_async(request_info, error_mapping)
|
|
54
|
+
|
|
55
|
+
def to_post_request_information(self,body: SetAutomaticLocationPostRequestBody, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> RequestInformation:
|
|
56
|
+
"""
|
|
57
|
+
Update the automatic work location for a user. The automatic layer participates in the standard precedence model: Use this operation from clients or services that automatically detect location (for example, Teams, network and location agents, or OEM docking apps). It doesn't clear manual or scheduled signals.
|
|
58
|
+
param body: The request body
|
|
59
|
+
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
|
|
60
|
+
Returns: RequestInformation
|
|
61
|
+
"""
|
|
62
|
+
if body is None:
|
|
63
|
+
raise TypeError("body cannot be null.")
|
|
64
|
+
request_info = RequestInformation(Method.POST, self.url_template, self.path_parameters)
|
|
65
|
+
request_info.configure(request_configuration)
|
|
66
|
+
request_info.headers.try_add("Accept", "application/json")
|
|
67
|
+
request_info.set_content_from_parsable(self.request_adapter, "application/json", body)
|
|
68
|
+
return request_info
|
|
69
|
+
|
|
70
|
+
def with_url(self,raw_url: str) -> SetAutomaticLocationRequestBuilder:
|
|
71
|
+
"""
|
|
72
|
+
Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
|
|
73
|
+
param raw_url: The raw URL to use for the request builder.
|
|
74
|
+
Returns: SetAutomaticLocationRequestBuilder
|
|
75
|
+
"""
|
|
76
|
+
if raw_url is None:
|
|
77
|
+
raise TypeError("raw_url cannot be null.")
|
|
78
|
+
return SetAutomaticLocationRequestBuilder(self.request_adapter, raw_url)
|
|
79
|
+
|
|
80
|
+
@dataclass
|
|
81
|
+
class SetAutomaticLocationRequestBuilderPostRequestConfiguration(RequestConfiguration[QueryParameters]):
|
|
82
|
+
"""
|
|
83
|
+
Configuration for the request such as headers, query parameters, and middleware options.
|
|
84
|
+
"""
|
|
85
|
+
warn("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.", DeprecationWarning)
|
|
86
|
+
|
|
87
|
+
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
from collections.abc import Callable
|
|
3
|
+
from dataclasses import dataclass, field
|
|
4
|
+
from kiota_abstractions.serialization import AdditionalDataHolder, Parsable, ParseNode, SerializationWriter
|
|
5
|
+
from kiota_abstractions.store import BackedModel, BackingStore, BackingStoreFactorySingleton
|
|
6
|
+
from typing import Any, Optional, TYPE_CHECKING, Union
|
|
7
|
+
|
|
8
|
+
if TYPE_CHECKING:
|
|
9
|
+
from .....models.work_location_type import WorkLocationType
|
|
10
|
+
|
|
11
|
+
@dataclass
|
|
12
|
+
class SetManualLocationPostRequestBody(AdditionalDataHolder, BackedModel, Parsable):
|
|
13
|
+
# Stores model information.
|
|
14
|
+
backing_store: BackingStore = field(default_factory=BackingStoreFactorySingleton(backing_store_factory=None).backing_store_factory.create_backing_store, repr=False)
|
|
15
|
+
|
|
16
|
+
# Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
|
17
|
+
additional_data: dict[str, Any] = field(default_factory=dict)
|
|
18
|
+
# The placeId property
|
|
19
|
+
place_id: Optional[str] = None
|
|
20
|
+
# The workLocationType property
|
|
21
|
+
work_location_type: Optional[WorkLocationType] = None
|
|
22
|
+
|
|
23
|
+
@staticmethod
|
|
24
|
+
def create_from_discriminator_value(parse_node: ParseNode) -> SetManualLocationPostRequestBody:
|
|
25
|
+
"""
|
|
26
|
+
Creates a new instance of the appropriate class based on discriminator value
|
|
27
|
+
param parse_node: The parse node to use to read the discriminator value and create the object
|
|
28
|
+
Returns: SetManualLocationPostRequestBody
|
|
29
|
+
"""
|
|
30
|
+
if parse_node is None:
|
|
31
|
+
raise TypeError("parse_node cannot be null.")
|
|
32
|
+
return SetManualLocationPostRequestBody()
|
|
33
|
+
|
|
34
|
+
def get_field_deserializers(self,) -> dict[str, Callable[[ParseNode], None]]:
|
|
35
|
+
"""
|
|
36
|
+
The deserialization information for the current model
|
|
37
|
+
Returns: dict[str, Callable[[ParseNode], None]]
|
|
38
|
+
"""
|
|
39
|
+
from .....models.work_location_type import WorkLocationType
|
|
40
|
+
|
|
41
|
+
from .....models.work_location_type import WorkLocationType
|
|
42
|
+
|
|
43
|
+
fields: dict[str, Callable[[Any], None]] = {
|
|
44
|
+
"placeId": lambda n : setattr(self, 'place_id', n.get_str_value()),
|
|
45
|
+
"workLocationType": lambda n : setattr(self, 'work_location_type', n.get_enum_value(WorkLocationType)),
|
|
46
|
+
}
|
|
47
|
+
return fields
|
|
48
|
+
|
|
49
|
+
def serialize(self,writer: SerializationWriter) -> None:
|
|
50
|
+
"""
|
|
51
|
+
Serializes information the current object
|
|
52
|
+
param writer: Serialization writer to use to serialize this model
|
|
53
|
+
Returns: None
|
|
54
|
+
"""
|
|
55
|
+
if writer is None:
|
|
56
|
+
raise TypeError("writer cannot be null.")
|
|
57
|
+
writer.write_str_value("placeId", self.place_id)
|
|
58
|
+
writer.write_enum_value("workLocationType", self.work_location_type)
|
|
59
|
+
writer.write_additional_data_value(self.additional_data)
|
|
60
|
+
|
|
61
|
+
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
from collections.abc import Callable
|
|
3
|
+
from dataclasses import dataclass, field
|
|
4
|
+
from kiota_abstractions.base_request_builder import BaseRequestBuilder
|
|
5
|
+
from kiota_abstractions.base_request_configuration import RequestConfiguration
|
|
6
|
+
from kiota_abstractions.default_query_parameters import QueryParameters
|
|
7
|
+
from kiota_abstractions.get_path_parameters import get_path_parameters
|
|
8
|
+
from kiota_abstractions.method import Method
|
|
9
|
+
from kiota_abstractions.request_adapter import RequestAdapter
|
|
10
|
+
from kiota_abstractions.request_information import RequestInformation
|
|
11
|
+
from kiota_abstractions.request_option import RequestOption
|
|
12
|
+
from kiota_abstractions.serialization import Parsable, ParsableFactory
|
|
13
|
+
from typing import Any, Optional, TYPE_CHECKING, Union
|
|
14
|
+
from warnings import warn
|
|
15
|
+
|
|
16
|
+
if TYPE_CHECKING:
|
|
17
|
+
from .....models.o_data_errors.o_data_error import ODataError
|
|
18
|
+
from .set_manual_location_post_request_body import SetManualLocationPostRequestBody
|
|
19
|
+
|
|
20
|
+
class SetManualLocationRequestBuilder(BaseRequestBuilder):
|
|
21
|
+
"""
|
|
22
|
+
Provides operations to call the setManualLocation method.
|
|
23
|
+
"""
|
|
24
|
+
def __init__(self,request_adapter: RequestAdapter, path_parameters: Union[str, dict[str, Any]]) -> None:
|
|
25
|
+
"""
|
|
26
|
+
Instantiates a new SetManualLocationRequestBuilder 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}/communications/presences/{presence%2Did}/setManualLocation", path_parameters)
|
|
32
|
+
|
|
33
|
+
async def post(self,body: SetManualLocationPostRequestBody, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> None:
|
|
34
|
+
"""
|
|
35
|
+
Set the manual work location signal for a user. The explicit value chosen by a user or an authorized client overrides any automatically detected or scheduled working hours and location.
|
|
36
|
+
param body: The request body
|
|
37
|
+
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
|
|
38
|
+
Returns: None
|
|
39
|
+
Find more info here: https://learn.microsoft.com/graph/api/presence-setmanuallocation?view=graph-rest-1.0
|
|
40
|
+
"""
|
|
41
|
+
if body is None:
|
|
42
|
+
raise TypeError("body cannot be null.")
|
|
43
|
+
request_info = self.to_post_request_information(
|
|
44
|
+
body, request_configuration
|
|
45
|
+
)
|
|
46
|
+
from .....models.o_data_errors.o_data_error import ODataError
|
|
47
|
+
|
|
48
|
+
error_mapping: dict[str, type[ParsableFactory]] = {
|
|
49
|
+
"XXX": ODataError,
|
|
50
|
+
}
|
|
51
|
+
if not self.request_adapter:
|
|
52
|
+
raise Exception("Http core is null")
|
|
53
|
+
return await self.request_adapter.send_no_response_content_async(request_info, error_mapping)
|
|
54
|
+
|
|
55
|
+
def to_post_request_information(self,body: SetManualLocationPostRequestBody, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> RequestInformation:
|
|
56
|
+
"""
|
|
57
|
+
Set the manual work location signal for a user. The explicit value chosen by a user or an authorized client overrides any automatically detected or scheduled working hours and location.
|
|
58
|
+
param body: The request body
|
|
59
|
+
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
|
|
60
|
+
Returns: RequestInformation
|
|
61
|
+
"""
|
|
62
|
+
if body is None:
|
|
63
|
+
raise TypeError("body cannot be null.")
|
|
64
|
+
request_info = RequestInformation(Method.POST, self.url_template, self.path_parameters)
|
|
65
|
+
request_info.configure(request_configuration)
|
|
66
|
+
request_info.headers.try_add("Accept", "application/json")
|
|
67
|
+
request_info.set_content_from_parsable(self.request_adapter, "application/json", body)
|
|
68
|
+
return request_info
|
|
69
|
+
|
|
70
|
+
def with_url(self,raw_url: str) -> SetManualLocationRequestBuilder:
|
|
71
|
+
"""
|
|
72
|
+
Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
|
|
73
|
+
param raw_url: The raw URL to use for the request builder.
|
|
74
|
+
Returns: SetManualLocationRequestBuilder
|
|
75
|
+
"""
|
|
76
|
+
if raw_url is None:
|
|
77
|
+
raise TypeError("raw_url cannot be null.")
|
|
78
|
+
return SetManualLocationRequestBuilder(self.request_adapter, raw_url)
|
|
79
|
+
|
|
80
|
+
@dataclass
|
|
81
|
+
class SetManualLocationRequestBuilderPostRequestConfiguration(RequestConfiguration[QueryParameters]):
|
|
82
|
+
"""
|
|
83
|
+
Configuration for the request such as headers, query parameters, and middleware options.
|
|
84
|
+
"""
|
|
85
|
+
warn("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.", DeprecationWarning)
|
|
86
|
+
|
|
87
|
+
|
|
@@ -19,8 +19,10 @@ if TYPE_CHECKING:
|
|
|
19
19
|
from .end_grace_period.end_grace_period_request_builder import EndGracePeriodRequestBuilder
|
|
20
20
|
from .reboot.reboot_request_builder import RebootRequestBuilder
|
|
21
21
|
from .rename.rename_request_builder import RenameRequestBuilder
|
|
22
|
+
from .reprovision.reprovision_request_builder import ReprovisionRequestBuilder
|
|
22
23
|
from .resize.resize_request_builder import ResizeRequestBuilder
|
|
23
24
|
from .restore.restore_request_builder import RestoreRequestBuilder
|
|
25
|
+
from .retrieve_cloud_pc_launch_detail.retrieve_cloud_pc_launch_detail_request_builder import RetrieveCloudPcLaunchDetailRequestBuilder
|
|
24
26
|
from .troubleshoot.troubleshoot_request_builder import TroubleshootRequestBuilder
|
|
25
27
|
|
|
26
28
|
class CloudPCItemRequestBuilder(BaseRequestBuilder):
|
|
@@ -172,6 +174,15 @@ class CloudPCItemRequestBuilder(BaseRequestBuilder):
|
|
|
172
174
|
|
|
173
175
|
return RenameRequestBuilder(self.request_adapter, self.path_parameters)
|
|
174
176
|
|
|
177
|
+
@property
|
|
178
|
+
def reprovision(self) -> ReprovisionRequestBuilder:
|
|
179
|
+
"""
|
|
180
|
+
Provides operations to call the reprovision method.
|
|
181
|
+
"""
|
|
182
|
+
from .reprovision.reprovision_request_builder import ReprovisionRequestBuilder
|
|
183
|
+
|
|
184
|
+
return ReprovisionRequestBuilder(self.request_adapter, self.path_parameters)
|
|
185
|
+
|
|
175
186
|
@property
|
|
176
187
|
def resize(self) -> ResizeRequestBuilder:
|
|
177
188
|
"""
|
|
@@ -190,6 +201,15 @@ class CloudPCItemRequestBuilder(BaseRequestBuilder):
|
|
|
190
201
|
|
|
191
202
|
return RestoreRequestBuilder(self.request_adapter, self.path_parameters)
|
|
192
203
|
|
|
204
|
+
@property
|
|
205
|
+
def retrieve_cloud_pc_launch_detail(self) -> RetrieveCloudPcLaunchDetailRequestBuilder:
|
|
206
|
+
"""
|
|
207
|
+
Provides operations to call the retrieveCloudPcLaunchDetail method.
|
|
208
|
+
"""
|
|
209
|
+
from .retrieve_cloud_pc_launch_detail.retrieve_cloud_pc_launch_detail_request_builder import RetrieveCloudPcLaunchDetailRequestBuilder
|
|
210
|
+
|
|
211
|
+
return RetrieveCloudPcLaunchDetailRequestBuilder(self.request_adapter, self.path_parameters)
|
|
212
|
+
|
|
193
213
|
@property
|
|
194
214
|
def troubleshoot(self) -> TroubleshootRequestBuilder:
|
|
195
215
|
"""
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
from collections.abc import Callable
|
|
3
|
+
from dataclasses import dataclass, field
|
|
4
|
+
from kiota_abstractions.serialization import AdditionalDataHolder, Parsable, ParseNode, SerializationWriter
|
|
5
|
+
from kiota_abstractions.store import BackedModel, BackingStore, BackingStoreFactorySingleton
|
|
6
|
+
from typing import Any, Optional, TYPE_CHECKING, Union
|
|
7
|
+
|
|
8
|
+
if TYPE_CHECKING:
|
|
9
|
+
from ......models.cloud_pc_operating_system import CloudPcOperatingSystem
|
|
10
|
+
from ......models.cloud_pc_user_account_type import CloudPcUserAccountType
|
|
11
|
+
|
|
12
|
+
@dataclass
|
|
13
|
+
class ReprovisionPostRequestBody(AdditionalDataHolder, BackedModel, Parsable):
|
|
14
|
+
# Stores model information.
|
|
15
|
+
backing_store: BackingStore = field(default_factory=BackingStoreFactorySingleton(backing_store_factory=None).backing_store_factory.create_backing_store, repr=False)
|
|
16
|
+
|
|
17
|
+
# Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
|
18
|
+
additional_data: dict[str, Any] = field(default_factory=dict)
|
|
19
|
+
# The osVersion property
|
|
20
|
+
os_version: Optional[CloudPcOperatingSystem] = None
|
|
21
|
+
# The userAccountType property
|
|
22
|
+
user_account_type: Optional[CloudPcUserAccountType] = None
|
|
23
|
+
|
|
24
|
+
@staticmethod
|
|
25
|
+
def create_from_discriminator_value(parse_node: ParseNode) -> ReprovisionPostRequestBody:
|
|
26
|
+
"""
|
|
27
|
+
Creates a new instance of the appropriate class based on discriminator value
|
|
28
|
+
param parse_node: The parse node to use to read the discriminator value and create the object
|
|
29
|
+
Returns: ReprovisionPostRequestBody
|
|
30
|
+
"""
|
|
31
|
+
if parse_node is None:
|
|
32
|
+
raise TypeError("parse_node cannot be null.")
|
|
33
|
+
return ReprovisionPostRequestBody()
|
|
34
|
+
|
|
35
|
+
def get_field_deserializers(self,) -> dict[str, Callable[[ParseNode], None]]:
|
|
36
|
+
"""
|
|
37
|
+
The deserialization information for the current model
|
|
38
|
+
Returns: dict[str, Callable[[ParseNode], None]]
|
|
39
|
+
"""
|
|
40
|
+
from ......models.cloud_pc_operating_system import CloudPcOperatingSystem
|
|
41
|
+
from ......models.cloud_pc_user_account_type import CloudPcUserAccountType
|
|
42
|
+
|
|
43
|
+
from ......models.cloud_pc_operating_system import CloudPcOperatingSystem
|
|
44
|
+
from ......models.cloud_pc_user_account_type import CloudPcUserAccountType
|
|
45
|
+
|
|
46
|
+
fields: dict[str, Callable[[Any], None]] = {
|
|
47
|
+
"osVersion": lambda n : setattr(self, 'os_version', n.get_enum_value(CloudPcOperatingSystem)),
|
|
48
|
+
"userAccountType": lambda n : setattr(self, 'user_account_type', n.get_enum_value(CloudPcUserAccountType)),
|
|
49
|
+
}
|
|
50
|
+
return fields
|
|
51
|
+
|
|
52
|
+
def serialize(self,writer: SerializationWriter) -> None:
|
|
53
|
+
"""
|
|
54
|
+
Serializes information the current object
|
|
55
|
+
param writer: Serialization writer to use to serialize this model
|
|
56
|
+
Returns: None
|
|
57
|
+
"""
|
|
58
|
+
if writer is None:
|
|
59
|
+
raise TypeError("writer cannot be null.")
|
|
60
|
+
writer.write_enum_value("osVersion", self.os_version)
|
|
61
|
+
writer.write_enum_value("userAccountType", self.user_account_type)
|
|
62
|
+
writer.write_additional_data_value(self.additional_data)
|
|
63
|
+
|
|
64
|
+
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
from collections.abc import Callable
|
|
3
|
+
from dataclasses import dataclass, field
|
|
4
|
+
from kiota_abstractions.base_request_builder import BaseRequestBuilder
|
|
5
|
+
from kiota_abstractions.base_request_configuration import RequestConfiguration
|
|
6
|
+
from kiota_abstractions.default_query_parameters import QueryParameters
|
|
7
|
+
from kiota_abstractions.get_path_parameters import get_path_parameters
|
|
8
|
+
from kiota_abstractions.method import Method
|
|
9
|
+
from kiota_abstractions.request_adapter import RequestAdapter
|
|
10
|
+
from kiota_abstractions.request_information import RequestInformation
|
|
11
|
+
from kiota_abstractions.request_option import RequestOption
|
|
12
|
+
from kiota_abstractions.serialization import Parsable, ParsableFactory
|
|
13
|
+
from typing import Any, Optional, TYPE_CHECKING, Union
|
|
14
|
+
from warnings import warn
|
|
15
|
+
|
|
16
|
+
if TYPE_CHECKING:
|
|
17
|
+
from ......models.o_data_errors.o_data_error import ODataError
|
|
18
|
+
from .reprovision_post_request_body import ReprovisionPostRequestBody
|
|
19
|
+
|
|
20
|
+
class ReprovisionRequestBuilder(BaseRequestBuilder):
|
|
21
|
+
"""
|
|
22
|
+
Provides operations to call the reprovision method.
|
|
23
|
+
"""
|
|
24
|
+
def __init__(self,request_adapter: RequestAdapter, path_parameters: Union[str, dict[str, Any]]) -> None:
|
|
25
|
+
"""
|
|
26
|
+
Instantiates a new ReprovisionRequestBuilder 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}/deviceManagement/virtualEndpoint/cloudPCs/{cloudPC%2Did}/reprovision", path_parameters)
|
|
32
|
+
|
|
33
|
+
async def post(self,body: ReprovisionPostRequestBody, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> None:
|
|
34
|
+
"""
|
|
35
|
+
Reprovision a specific Cloud PC.
|
|
36
|
+
param body: The request body
|
|
37
|
+
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
|
|
38
|
+
Returns: None
|
|
39
|
+
Find more info here: https://learn.microsoft.com/graph/api/cloudpc-reprovision?view=graph-rest-1.0
|
|
40
|
+
"""
|
|
41
|
+
if body is None:
|
|
42
|
+
raise TypeError("body cannot be null.")
|
|
43
|
+
request_info = self.to_post_request_information(
|
|
44
|
+
body, request_configuration
|
|
45
|
+
)
|
|
46
|
+
from ......models.o_data_errors.o_data_error import ODataError
|
|
47
|
+
|
|
48
|
+
error_mapping: dict[str, type[ParsableFactory]] = {
|
|
49
|
+
"XXX": ODataError,
|
|
50
|
+
}
|
|
51
|
+
if not self.request_adapter:
|
|
52
|
+
raise Exception("Http core is null")
|
|
53
|
+
return await self.request_adapter.send_no_response_content_async(request_info, error_mapping)
|
|
54
|
+
|
|
55
|
+
def to_post_request_information(self,body: ReprovisionPostRequestBody, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> RequestInformation:
|
|
56
|
+
"""
|
|
57
|
+
Reprovision a specific Cloud PC.
|
|
58
|
+
param body: The request body
|
|
59
|
+
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
|
|
60
|
+
Returns: RequestInformation
|
|
61
|
+
"""
|
|
62
|
+
if body is None:
|
|
63
|
+
raise TypeError("body cannot be null.")
|
|
64
|
+
request_info = RequestInformation(Method.POST, self.url_template, self.path_parameters)
|
|
65
|
+
request_info.configure(request_configuration)
|
|
66
|
+
request_info.headers.try_add("Accept", "application/json")
|
|
67
|
+
request_info.set_content_from_parsable(self.request_adapter, "application/json", body)
|
|
68
|
+
return request_info
|
|
69
|
+
|
|
70
|
+
def with_url(self,raw_url: str) -> ReprovisionRequestBuilder:
|
|
71
|
+
"""
|
|
72
|
+
Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
|
|
73
|
+
param raw_url: The raw URL to use for the request builder.
|
|
74
|
+
Returns: ReprovisionRequestBuilder
|
|
75
|
+
"""
|
|
76
|
+
if raw_url is None:
|
|
77
|
+
raise TypeError("raw_url cannot be null.")
|
|
78
|
+
return ReprovisionRequestBuilder(self.request_adapter, raw_url)
|
|
79
|
+
|
|
80
|
+
@dataclass
|
|
81
|
+
class ReprovisionRequestBuilderPostRequestConfiguration(RequestConfiguration[QueryParameters]):
|
|
82
|
+
"""
|
|
83
|
+
Configuration for the request such as headers, query parameters, and middleware options.
|
|
84
|
+
"""
|
|
85
|
+
warn("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.", DeprecationWarning)
|
|
86
|
+
|
|
87
|
+
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
from collections.abc import Callable
|
|
3
|
+
from dataclasses import dataclass, field
|
|
4
|
+
from kiota_abstractions.base_request_builder import BaseRequestBuilder
|
|
5
|
+
from kiota_abstractions.base_request_configuration import RequestConfiguration
|
|
6
|
+
from kiota_abstractions.default_query_parameters import QueryParameters
|
|
7
|
+
from kiota_abstractions.get_path_parameters import get_path_parameters
|
|
8
|
+
from kiota_abstractions.method import Method
|
|
9
|
+
from kiota_abstractions.request_adapter import RequestAdapter
|
|
10
|
+
from kiota_abstractions.request_information import RequestInformation
|
|
11
|
+
from kiota_abstractions.request_option import RequestOption
|
|
12
|
+
from kiota_abstractions.serialization import Parsable, ParsableFactory
|
|
13
|
+
from typing import Any, Optional, TYPE_CHECKING, Union
|
|
14
|
+
from warnings import warn
|
|
15
|
+
|
|
16
|
+
if TYPE_CHECKING:
|
|
17
|
+
from ......models.cloud_pc_launch_detail import CloudPcLaunchDetail
|
|
18
|
+
from ......models.o_data_errors.o_data_error import ODataError
|
|
19
|
+
|
|
20
|
+
class RetrieveCloudPcLaunchDetailRequestBuilder(BaseRequestBuilder):
|
|
21
|
+
"""
|
|
22
|
+
Provides operations to call the retrieveCloudPcLaunchDetail method.
|
|
23
|
+
"""
|
|
24
|
+
def __init__(self,request_adapter: RequestAdapter, path_parameters: Union[str, dict[str, Any]]) -> None:
|
|
25
|
+
"""
|
|
26
|
+
Instantiates a new RetrieveCloudPcLaunchDetailRequestBuilder 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}/deviceManagement/virtualEndpoint/cloudPCs/{cloudPC%2Did}/retrieveCloudPcLaunchDetail()", path_parameters)
|
|
32
|
+
|
|
33
|
+
async def get(self,request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> Optional[CloudPcLaunchDetail]:
|
|
34
|
+
"""
|
|
35
|
+
Get the cloudPcLaunchDetail for a specific cloudPC that belongs to the current signed-in user.
|
|
36
|
+
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
|
|
37
|
+
Returns: Optional[CloudPcLaunchDetail]
|
|
38
|
+
Find more info here: https://learn.microsoft.com/graph/api/cloudpc-retrievecloudpclaunchdetail?view=graph-rest-1.0
|
|
39
|
+
"""
|
|
40
|
+
request_info = self.to_get_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
|
+
from ......models.cloud_pc_launch_detail import CloudPcLaunchDetail
|
|
51
|
+
|
|
52
|
+
return await self.request_adapter.send_async(request_info, CloudPcLaunchDetail, error_mapping)
|
|
53
|
+
|
|
54
|
+
def to_get_request_information(self,request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> RequestInformation:
|
|
55
|
+
"""
|
|
56
|
+
Get the cloudPcLaunchDetail for a specific cloudPC that belongs to the current signed-in user.
|
|
57
|
+
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
|
|
58
|
+
Returns: RequestInformation
|
|
59
|
+
"""
|
|
60
|
+
request_info = RequestInformation(Method.GET, self.url_template, self.path_parameters)
|
|
61
|
+
request_info.configure(request_configuration)
|
|
62
|
+
request_info.headers.try_add("Accept", "application/json")
|
|
63
|
+
return request_info
|
|
64
|
+
|
|
65
|
+
def with_url(self,raw_url: str) -> RetrieveCloudPcLaunchDetailRequestBuilder:
|
|
66
|
+
"""
|
|
67
|
+
Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
|
|
68
|
+
param raw_url: The raw URL to use for the request builder.
|
|
69
|
+
Returns: RetrieveCloudPcLaunchDetailRequestBuilder
|
|
70
|
+
"""
|
|
71
|
+
if raw_url is None:
|
|
72
|
+
raise TypeError("raw_url cannot be null.")
|
|
73
|
+
return RetrieveCloudPcLaunchDetailRequestBuilder(self.request_adapter, raw_url)
|
|
74
|
+
|
|
75
|
+
@dataclass
|
|
76
|
+
class RetrieveCloudPcLaunchDetailRequestBuilderGetRequestConfiguration(RequestConfiguration[QueryParameters]):
|
|
77
|
+
"""
|
|
78
|
+
Configuration for the request such as headers, query parameters, and middleware options.
|
|
79
|
+
"""
|
|
80
|
+
warn("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.", DeprecationWarning)
|
|
81
|
+
|
|
82
|
+
|