msgraph-sdk 1.49.0__py3-none-any.whl → 1.50.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.
Files changed (176) hide show
  1. msgraph/_version.py +1 -1
  2. msgraph/generated/chats/item/chat_item_request_builder.py +10 -0
  3. msgraph/generated/chats/item/remove_all_access_for_user/remove_all_access_for_user_post_request_body.py +57 -0
  4. msgraph/generated/chats/item/remove_all_access_for_user/remove_all_access_for_user_request_builder.py +87 -0
  5. msgraph/generated/drives/item/items/item/retention_label/retention_label_request_builder.py +4 -3
  6. msgraph/generated/kiota-dom-export.txt +1830 -6
  7. msgraph/generated/kiota-lock.json +1 -1
  8. msgraph/generated/models/assigned_place_mode.py +61 -0
  9. msgraph/generated/models/base_map_feature.py +104 -0
  10. msgraph/generated/models/building.py +67 -0
  11. msgraph/generated/models/building_collection_response.py +58 -0
  12. msgraph/generated/models/building_map.py +71 -0
  13. msgraph/generated/models/channel.py +1 -1
  14. msgraph/generated/models/communications_guest_identity.py +4 -0
  15. msgraph/generated/models/copilot_report_root.py +53 -0
  16. msgraph/generated/models/desk.py +71 -0
  17. msgraph/generated/models/desk_collection_response.py +58 -0
  18. msgraph/generated/models/drop_in_place_mode.py +53 -0
  19. msgraph/generated/models/education_assignment.py +1 -1
  20. msgraph/generated/models/education_assignment_defaults.py +1 -1
  21. msgraph/generated/models/entity.py +177 -0
  22. msgraph/generated/models/external_connectors/property_.py +1 -1
  23. msgraph/generated/models/file_storage_container.py +7 -0
  24. msgraph/generated/models/fixture_map.py +57 -0
  25. msgraph/generated/models/fixture_map_collection_response.py +58 -0
  26. msgraph/generated/models/floor.py +57 -0
  27. msgraph/generated/models/floor_collection_response.py +58 -0
  28. msgraph/generated/models/footprint_map.py +53 -0
  29. msgraph/generated/models/footprint_map_collection_response.py +58 -0
  30. msgraph/generated/models/identity_governance/user_inactivity_trigger.py +57 -0
  31. msgraph/generated/models/identity_governance/workflow_execution_trigger.py +7 -0
  32. msgraph/generated/models/level_map.py +78 -0
  33. msgraph/generated/models/level_map_collection_response.py +58 -0
  34. msgraph/generated/models/mailbox_details.py +58 -0
  35. msgraph/generated/models/place.py +51 -0
  36. msgraph/generated/models/place_mode.py +80 -0
  37. msgraph/generated/models/planner_plan_container.py +1 -1
  38. msgraph/generated/models/reservable_place_mode.py +53 -0
  39. msgraph/generated/models/resource_link.py +69 -0
  40. msgraph/generated/models/resource_link_type.py +6 -0
  41. msgraph/generated/models/restore_session_base.py +1 -1
  42. msgraph/generated/models/risk_detection.py +1 -1
  43. msgraph/generated/models/risk_service_principal_activity.py +1 -1
  44. msgraph/generated/models/risk_user_activity.py +1 -1
  45. msgraph/generated/models/risky_service_principal.py +1 -1
  46. msgraph/generated/models/risky_user.py +1 -1
  47. msgraph/generated/models/room.py +0 -12
  48. msgraph/generated/models/room_list.py +7 -0
  49. msgraph/generated/models/search_request.py +1 -1
  50. msgraph/generated/models/section.py +53 -0
  51. msgraph/generated/models/section_collection_response.py +58 -0
  52. msgraph/generated/models/section_map.py +57 -0
  53. msgraph/generated/models/section_map_collection_response.py +58 -0
  54. msgraph/generated/models/security/account.py +72 -0
  55. msgraph/generated/models/security/action.py +11 -0
  56. msgraph/generated/models/security/ai_agent_evidence.py +72 -0
  57. msgraph/generated/models/security/ai_agent_platform.py +9 -0
  58. msgraph/generated/models/security/alert_evidence.py +7 -0
  59. msgraph/generated/models/security/ediscovery_export_operation.py +1 -1
  60. msgraph/generated/models/security/identity_accounts.py +92 -0
  61. msgraph/generated/models/security/identity_accounts_collection_response.py +58 -0
  62. msgraph/generated/models/security/identity_container.py +7 -0
  63. msgraph/generated/models/security/identity_provider.py +8 -0
  64. msgraph/generated/models/security/invoke_action_result.py +76 -0
  65. msgraph/generated/models/security/user.py +61 -0
  66. msgraph/generated/models/service_principal_risk_detection.py +2 -2
  67. msgraph/generated/models/share_point_migration_container_info.py +62 -0
  68. msgraph/generated/models/share_point_migration_event.py +127 -0
  69. msgraph/generated/models/share_point_migration_event_collection_response.py +58 -0
  70. msgraph/generated/models/share_point_migration_finish_manifest_file_upload_event.py +57 -0
  71. msgraph/generated/models/share_point_migration_job.py +67 -0
  72. msgraph/generated/models/share_point_migration_job_cancelled_event.py +61 -0
  73. msgraph/generated/models/share_point_migration_job_collection_response.py +58 -0
  74. msgraph/generated/models/share_point_migration_job_deleted_event.py +53 -0
  75. msgraph/generated/models/share_point_migration_job_error_event.py +86 -0
  76. msgraph/generated/models/share_point_migration_job_error_level.py +9 -0
  77. msgraph/generated/models/share_point_migration_job_postponed_event.py +70 -0
  78. msgraph/generated/models/share_point_migration_job_progress_event.py +121 -0
  79. msgraph/generated/models/share_point_migration_job_queued_event.py +53 -0
  80. msgraph/generated/models/share_point_migration_job_start_event.py +61 -0
  81. msgraph/generated/models/share_point_migration_object_type.py +14 -0
  82. msgraph/generated/models/sign_in.py +1 -1
  83. msgraph/generated/models/subject_rights_request_history.py +1 -1
  84. msgraph/generated/models/subject_rights_request_stage_detail.py +1 -1
  85. msgraph/generated/models/unit_map.py +57 -0
  86. msgraph/generated/models/unit_map_collection_response.py +58 -0
  87. msgraph/generated/models/workforce_integration.py +1 -1
  88. msgraph/generated/models/workspace.py +76 -0
  89. msgraph/generated/models/workspace_collection_response.py +58 -0
  90. msgraph/generated/places/graph_building/count/count_request_builder.py +104 -0
  91. msgraph/generated/places/graph_building/graph_building_request_builder.py +147 -0
  92. msgraph/generated/places/graph_desk/count/count_request_builder.py +104 -0
  93. msgraph/generated/places/graph_desk/graph_desk_request_builder.py +147 -0
  94. msgraph/generated/places/graph_floor/count/count_request_builder.py +104 -0
  95. msgraph/generated/places/graph_floor/graph_floor_request_builder.py +147 -0
  96. msgraph/generated/places/graph_section/count/count_request_builder.py +104 -0
  97. msgraph/generated/places/graph_section/graph_section_request_builder.py +147 -0
  98. msgraph/generated/places/graph_workspace/count/count_request_builder.py +104 -0
  99. msgraph/generated/places/graph_workspace/graph_workspace_request_builder.py +147 -0
  100. msgraph/generated/places/item/descendants/descendants_get_response.py +58 -0
  101. msgraph/generated/places/item/descendants/descendants_request_builder.py +137 -0
  102. msgraph/generated/places/item/graph_building/check_ins/check_ins_request_builder.py +208 -0
  103. msgraph/generated/places/item/graph_building/check_ins/count/count_request_builder.py +104 -0
  104. msgraph/generated/places/item/graph_building/check_ins/item/check_in_claim_calendar_event_item_request_builder.py +188 -0
  105. msgraph/generated/places/item/graph_building/graph_building_request_builder.py +127 -0
  106. msgraph/generated/places/item/graph_building/map/footprints/count/count_request_builder.py +104 -0
  107. msgraph/generated/places/item/graph_building/map/footprints/footprints_request_builder.py +208 -0
  108. msgraph/generated/places/item/graph_building/map/footprints/item/footprint_map_item_request_builder.py +188 -0
  109. msgraph/generated/places/item/graph_building/map/levels/count/count_request_builder.py +104 -0
  110. msgraph/generated/places/item/graph_building/map/levels/item/fixtures/count/count_request_builder.py +104 -0
  111. msgraph/generated/places/item/graph_building/map/levels/item/fixtures/fixtures_request_builder.py +208 -0
  112. msgraph/generated/places/item/graph_building/map/levels/item/fixtures/item/fixture_map_item_request_builder.py +188 -0
  113. msgraph/generated/places/item/graph_building/map/levels/item/level_map_item_request_builder.py +218 -0
  114. msgraph/generated/places/item/graph_building/map/levels/item/sections/count/count_request_builder.py +104 -0
  115. msgraph/generated/places/item/graph_building/map/levels/item/sections/item/section_map_item_request_builder.py +188 -0
  116. msgraph/generated/places/item/graph_building/map/levels/item/sections/sections_request_builder.py +208 -0
  117. msgraph/generated/places/item/graph_building/map/levels/item/units/count/count_request_builder.py +104 -0
  118. msgraph/generated/places/item/graph_building/map/levels/item/units/item/unit_map_item_request_builder.py +188 -0
  119. msgraph/generated/places/item/graph_building/map/levels/item/units/units_request_builder.py +208 -0
  120. msgraph/generated/places/item/graph_building/map/levels/levels_request_builder.py +208 -0
  121. msgraph/generated/places/item/graph_building/map/map_request_builder.py +208 -0
  122. msgraph/generated/places/item/graph_desk/check_ins/check_ins_request_builder.py +208 -0
  123. msgraph/generated/places/item/graph_desk/check_ins/count/count_request_builder.py +104 -0
  124. msgraph/generated/places/item/graph_desk/check_ins/item/check_in_claim_calendar_event_item_request_builder.py +188 -0
  125. msgraph/generated/places/item/graph_desk/graph_desk_request_builder.py +117 -0
  126. msgraph/generated/places/item/graph_floor/check_ins/check_ins_request_builder.py +208 -0
  127. msgraph/generated/places/item/graph_floor/check_ins/count/count_request_builder.py +104 -0
  128. msgraph/generated/places/item/graph_floor/check_ins/item/check_in_claim_calendar_event_item_request_builder.py +188 -0
  129. msgraph/generated/places/item/graph_floor/graph_floor_request_builder.py +117 -0
  130. msgraph/generated/places/item/graph_room_list/graph_room_list_request_builder.py +10 -0
  131. msgraph/generated/places/item/graph_room_list/workspaces/count/count_request_builder.py +104 -0
  132. msgraph/generated/places/item/graph_room_list/workspaces/item/check_ins/check_ins_request_builder.py +208 -0
  133. msgraph/generated/places/item/graph_room_list/workspaces/item/check_ins/count/count_request_builder.py +104 -0
  134. msgraph/generated/places/item/graph_room_list/workspaces/item/check_ins/item/check_in_claim_calendar_event_item_request_builder.py +188 -0
  135. msgraph/generated/places/item/graph_room_list/workspaces/item/workspace_item_request_builder.py +198 -0
  136. msgraph/generated/places/item/graph_room_list/workspaces/workspaces_request_builder.py +208 -0
  137. msgraph/generated/places/item/graph_section/check_ins/check_ins_request_builder.py +208 -0
  138. msgraph/generated/places/item/graph_section/check_ins/count/count_request_builder.py +104 -0
  139. msgraph/generated/places/item/graph_section/check_ins/item/check_in_claim_calendar_event_item_request_builder.py +188 -0
  140. msgraph/generated/places/item/graph_section/graph_section_request_builder.py +117 -0
  141. msgraph/generated/places/item/graph_workspace/check_ins/check_ins_request_builder.py +208 -0
  142. msgraph/generated/places/item/graph_workspace/check_ins/count/count_request_builder.py +104 -0
  143. msgraph/generated/places/item/graph_workspace/check_ins/item/check_in_claim_calendar_event_item_request_builder.py +188 -0
  144. msgraph/generated/places/item/graph_workspace/graph_workspace_request_builder.py +117 -0
  145. msgraph/generated/places/item/place_item_request_builder.py +60 -0
  146. msgraph/generated/places/places_request_builder.py +50 -0
  147. msgraph/generated/security/identities/identities_request_builder.py +10 -0
  148. msgraph/generated/security/identities/identity_accounts/count/count_request_builder.py +104 -0
  149. msgraph/generated/security/identities/identity_accounts/identity_accounts_request_builder.py +209 -0
  150. msgraph/generated/security/identities/identity_accounts/item/identity_accounts_item_request_builder.py +199 -0
  151. msgraph/generated/security/identities/identity_accounts/item/microsoft_graph_security_invoke_action/invoke_action_post_request_body.py +68 -0
  152. msgraph/generated/security/identities/identity_accounts/item/microsoft_graph_security_invoke_action/microsoft_graph_security_invoke_action_request_builder.py +90 -0
  153. msgraph/generated/solutions/virtual_events/webinars/item/registrations/item/sessions/sessions_request_builder.py +3 -3
  154. msgraph/generated/storage/file_storage/containers/item/file_storage_container_item_request_builder.py +20 -0
  155. msgraph/generated/storage/file_storage/containers/item/migration_jobs/count/count_request_builder.py +104 -0
  156. msgraph/generated/storage/file_storage/containers/item/migration_jobs/item/progress_events/count/count_request_builder.py +104 -0
  157. msgraph/generated/storage/file_storage/containers/item/migration_jobs/item/progress_events/item/share_point_migration_event_item_request_builder.py +188 -0
  158. msgraph/generated/storage/file_storage/containers/item/migration_jobs/item/progress_events/progress_events_request_builder.py +208 -0
  159. msgraph/generated/storage/file_storage/containers/item/migration_jobs/item/share_point_migration_job_item_request_builder.py +198 -0
  160. msgraph/generated/storage/file_storage/containers/item/migration_jobs/migration_jobs_request_builder.py +208 -0
  161. msgraph/generated/storage/file_storage/containers/item/provision_migration_containers/provision_migration_containers_request_builder.py +81 -0
  162. msgraph/generated/storage/file_storage/deleted_containers/item/file_storage_container_item_request_builder.py +20 -0
  163. msgraph/generated/storage/file_storage/deleted_containers/item/migration_jobs/count/count_request_builder.py +104 -0
  164. msgraph/generated/storage/file_storage/deleted_containers/item/migration_jobs/item/progress_events/count/count_request_builder.py +104 -0
  165. msgraph/generated/storage/file_storage/deleted_containers/item/migration_jobs/item/progress_events/item/share_point_migration_event_item_request_builder.py +188 -0
  166. msgraph/generated/storage/file_storage/deleted_containers/item/migration_jobs/item/progress_events/progress_events_request_builder.py +208 -0
  167. msgraph/generated/storage/file_storage/deleted_containers/item/migration_jobs/item/share_point_migration_job_item_request_builder.py +198 -0
  168. msgraph/generated/storage/file_storage/deleted_containers/item/migration_jobs/migration_jobs_request_builder.py +208 -0
  169. msgraph/generated/storage/file_storage/deleted_containers/item/provision_migration_containers/provision_migration_containers_request_builder.py +81 -0
  170. msgraph/generated/users/item/chats/item/chat_item_request_builder.py +10 -0
  171. msgraph/generated/users/item/chats/item/remove_all_access_for_user/remove_all_access_for_user_post_request_body.py +57 -0
  172. msgraph/generated/users/item/chats/item/remove_all_access_for_user/remove_all_access_for_user_request_builder.py +87 -0
  173. {msgraph_sdk-1.49.0.dist-info → msgraph_sdk-1.50.0.dist-info}/METADATA +1 -1
  174. {msgraph_sdk-1.49.0.dist-info → msgraph_sdk-1.50.0.dist-info}/RECORD +176 -44
  175. {msgraph_sdk-1.49.0.dist-info → msgraph_sdk-1.50.0.dist-info}/WHEEL +0 -0
  176. {msgraph_sdk-1.49.0.dist-info → msgraph_sdk-1.50.0.dist-info}/licenses/LICENSE +0 -0
@@ -0,0 +1,198 @@
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 .......models.share_point_migration_job import SharePointMigrationJob
19
+ from .progress_events.progress_events_request_builder import ProgressEventsRequestBuilder
20
+
21
+ class SharePointMigrationJobItemRequestBuilder(BaseRequestBuilder):
22
+ """
23
+ Provides operations to manage the migrationJobs property of the microsoft.graph.fileStorageContainer entity.
24
+ """
25
+ def __init__(self,request_adapter: RequestAdapter, path_parameters: Union[str, dict[str, Any]]) -> None:
26
+ """
27
+ Instantiates a new SharePointMigrationJobItemRequestBuilder 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}/storage/fileStorage/containers/{fileStorageContainer%2Did}/migrationJobs/{sharePointMigrationJob%2Did}{?%24expand,%24select}", path_parameters)
33
+
34
+ async def delete(self,request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> None:
35
+ """
36
+ Delete navigation property migrationJobs for storage
37
+ param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
38
+ Returns: None
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[SharePointMigrationJobItemRequestBuilderGetQueryParameters]] = None) -> Optional[SharePointMigrationJob]:
53
+ """
54
+ The collection of sharePointMigrationJob objects local to the container. Read-write.
55
+ param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
56
+ Returns: Optional[SharePointMigrationJob]
57
+ """
58
+ request_info = self.to_get_request_information(
59
+ request_configuration
60
+ )
61
+ from .......models.o_data_errors.o_data_error import ODataError
62
+
63
+ error_mapping: dict[str, type[ParsableFactory]] = {
64
+ "XXX": ODataError,
65
+ }
66
+ if not self.request_adapter:
67
+ raise Exception("Http core is null")
68
+ from .......models.share_point_migration_job import SharePointMigrationJob
69
+
70
+ return await self.request_adapter.send_async(request_info, SharePointMigrationJob, error_mapping)
71
+
72
+ async def patch(self,body: SharePointMigrationJob, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> Optional[SharePointMigrationJob]:
73
+ """
74
+ Update the navigation property migrationJobs in storage
75
+ param body: The request body
76
+ param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
77
+ Returns: Optional[SharePointMigrationJob]
78
+ """
79
+ if body is None:
80
+ raise TypeError("body cannot be null.")
81
+ request_info = self.to_patch_request_information(
82
+ body, request_configuration
83
+ )
84
+ from .......models.o_data_errors.o_data_error import ODataError
85
+
86
+ error_mapping: dict[str, type[ParsableFactory]] = {
87
+ "XXX": ODataError,
88
+ }
89
+ if not self.request_adapter:
90
+ raise Exception("Http core is null")
91
+ from .......models.share_point_migration_job import SharePointMigrationJob
92
+
93
+ return await self.request_adapter.send_async(request_info, SharePointMigrationJob, error_mapping)
94
+
95
+ def to_delete_request_information(self,request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> RequestInformation:
96
+ """
97
+ Delete navigation property migrationJobs for storage
98
+ param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
99
+ Returns: RequestInformation
100
+ """
101
+ request_info = RequestInformation(Method.DELETE, self.url_template, self.path_parameters)
102
+ request_info.configure(request_configuration)
103
+ request_info.headers.try_add("Accept", "application/json")
104
+ return request_info
105
+
106
+ def to_get_request_information(self,request_configuration: Optional[RequestConfiguration[SharePointMigrationJobItemRequestBuilderGetQueryParameters]] = None) -> RequestInformation:
107
+ """
108
+ The collection of sharePointMigrationJob objects local to the container. Read-write.
109
+ param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
110
+ Returns: RequestInformation
111
+ """
112
+ request_info = RequestInformation(Method.GET, self.url_template, self.path_parameters)
113
+ request_info.configure(request_configuration)
114
+ request_info.headers.try_add("Accept", "application/json")
115
+ return request_info
116
+
117
+ def to_patch_request_information(self,body: SharePointMigrationJob, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> RequestInformation:
118
+ """
119
+ Update the navigation property migrationJobs in storage
120
+ param body: The request body
121
+ param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
122
+ Returns: RequestInformation
123
+ """
124
+ if body is None:
125
+ raise TypeError("body cannot be null.")
126
+ request_info = RequestInformation(Method.PATCH, self.url_template, self.path_parameters)
127
+ request_info.configure(request_configuration)
128
+ request_info.headers.try_add("Accept", "application/json")
129
+ request_info.set_content_from_parsable(self.request_adapter, "application/json", body)
130
+ return request_info
131
+
132
+ def with_url(self,raw_url: str) -> SharePointMigrationJobItemRequestBuilder:
133
+ """
134
+ Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
135
+ param raw_url: The raw URL to use for the request builder.
136
+ Returns: SharePointMigrationJobItemRequestBuilder
137
+ """
138
+ if raw_url is None:
139
+ raise TypeError("raw_url cannot be null.")
140
+ return SharePointMigrationJobItemRequestBuilder(self.request_adapter, raw_url)
141
+
142
+ @property
143
+ def progress_events(self) -> ProgressEventsRequestBuilder:
144
+ """
145
+ Provides operations to manage the progressEvents property of the microsoft.graph.sharePointMigrationJob entity.
146
+ """
147
+ from .progress_events.progress_events_request_builder import ProgressEventsRequestBuilder
148
+
149
+ return ProgressEventsRequestBuilder(self.request_adapter, self.path_parameters)
150
+
151
+ @dataclass
152
+ class SharePointMigrationJobItemRequestBuilderDeleteRequestConfiguration(RequestConfiguration[QueryParameters]):
153
+ """
154
+ Configuration for the request such as headers, query parameters, and middleware options.
155
+ """
156
+ warn("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.", DeprecationWarning)
157
+
158
+ @dataclass
159
+ class SharePointMigrationJobItemRequestBuilderGetQueryParameters():
160
+ """
161
+ The collection of sharePointMigrationJob objects local to the container. Read-write.
162
+ """
163
+ def get_query_parameter(self,original_name: str) -> str:
164
+ """
165
+ Maps the query parameters names to their encoded names for the URI template parsing.
166
+ param original_name: The original query parameter name in the class.
167
+ Returns: str
168
+ """
169
+ if original_name is None:
170
+ raise TypeError("original_name cannot be null.")
171
+ if original_name == "expand":
172
+ return "%24expand"
173
+ if original_name == "select":
174
+ return "%24select"
175
+ return original_name
176
+
177
+ # Expand related entities
178
+ expand: Optional[list[str]] = None
179
+
180
+ # Select properties to be returned
181
+ select: Optional[list[str]] = None
182
+
183
+
184
+ @dataclass
185
+ class SharePointMigrationJobItemRequestBuilderGetRequestConfiguration(RequestConfiguration[SharePointMigrationJobItemRequestBuilderGetQueryParameters]):
186
+ """
187
+ Configuration for the request such as headers, query parameters, and middleware options.
188
+ """
189
+ warn("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.", DeprecationWarning)
190
+
191
+ @dataclass
192
+ class SharePointMigrationJobItemRequestBuilderPatchRequestConfiguration(RequestConfiguration[QueryParameters]):
193
+ """
194
+ Configuration for the request such as headers, query parameters, and middleware options.
195
+ """
196
+ warn("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.", DeprecationWarning)
197
+
198
+
@@ -0,0 +1,208 @@
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 ......models.share_point_migration_job import SharePointMigrationJob
19
+ from ......models.share_point_migration_job_collection_response import SharePointMigrationJobCollectionResponse
20
+ from .count.count_request_builder import CountRequestBuilder
21
+ from .item.share_point_migration_job_item_request_builder import SharePointMigrationJobItemRequestBuilder
22
+
23
+ class MigrationJobsRequestBuilder(BaseRequestBuilder):
24
+ """
25
+ Provides operations to manage the migrationJobs property of the microsoft.graph.fileStorageContainer entity.
26
+ """
27
+ def __init__(self,request_adapter: RequestAdapter, path_parameters: Union[str, dict[str, Any]]) -> None:
28
+ """
29
+ Instantiates a new MigrationJobsRequestBuilder and sets the default values.
30
+ param path_parameters: The raw url or the url-template parameters for the request.
31
+ param request_adapter: The request adapter to use to execute the requests.
32
+ Returns: None
33
+ """
34
+ super().__init__(request_adapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/migrationJobs{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", path_parameters)
35
+
36
+ def by_share_point_migration_job_id(self,share_point_migration_job_id: str) -> SharePointMigrationJobItemRequestBuilder:
37
+ """
38
+ Provides operations to manage the migrationJobs property of the microsoft.graph.fileStorageContainer entity.
39
+ param share_point_migration_job_id: The unique identifier of sharePointMigrationJob
40
+ Returns: SharePointMigrationJobItemRequestBuilder
41
+ """
42
+ if share_point_migration_job_id is None:
43
+ raise TypeError("share_point_migration_job_id cannot be null.")
44
+ from .item.share_point_migration_job_item_request_builder import SharePointMigrationJobItemRequestBuilder
45
+
46
+ url_tpl_params = get_path_parameters(self.path_parameters)
47
+ url_tpl_params["sharePointMigrationJob%2Did"] = share_point_migration_job_id
48
+ return SharePointMigrationJobItemRequestBuilder(self.request_adapter, url_tpl_params)
49
+
50
+ async def get(self,request_configuration: Optional[RequestConfiguration[MigrationJobsRequestBuilderGetQueryParameters]] = None) -> Optional[SharePointMigrationJobCollectionResponse]:
51
+ """
52
+ The collection of sharePointMigrationJob objects local to the container. Read-write.
53
+ param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
54
+ Returns: Optional[SharePointMigrationJobCollectionResponse]
55
+ """
56
+ request_info = self.to_get_request_information(
57
+ request_configuration
58
+ )
59
+ from ......models.o_data_errors.o_data_error import ODataError
60
+
61
+ error_mapping: dict[str, type[ParsableFactory]] = {
62
+ "XXX": ODataError,
63
+ }
64
+ if not self.request_adapter:
65
+ raise Exception("Http core is null")
66
+ from ......models.share_point_migration_job_collection_response import SharePointMigrationJobCollectionResponse
67
+
68
+ return await self.request_adapter.send_async(request_info, SharePointMigrationJobCollectionResponse, error_mapping)
69
+
70
+ async def post(self,body: SharePointMigrationJob, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> Optional[SharePointMigrationJob]:
71
+ """
72
+ Create new navigation property to migrationJobs for storage
73
+ param body: The request body
74
+ param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
75
+ Returns: Optional[SharePointMigrationJob]
76
+ """
77
+ if body is None:
78
+ raise TypeError("body cannot be null.")
79
+ request_info = self.to_post_request_information(
80
+ body, request_configuration
81
+ )
82
+ from ......models.o_data_errors.o_data_error import ODataError
83
+
84
+ error_mapping: dict[str, type[ParsableFactory]] = {
85
+ "XXX": ODataError,
86
+ }
87
+ if not self.request_adapter:
88
+ raise Exception("Http core is null")
89
+ from ......models.share_point_migration_job import SharePointMigrationJob
90
+
91
+ return await self.request_adapter.send_async(request_info, SharePointMigrationJob, error_mapping)
92
+
93
+ def to_get_request_information(self,request_configuration: Optional[RequestConfiguration[MigrationJobsRequestBuilderGetQueryParameters]] = None) -> RequestInformation:
94
+ """
95
+ The collection of sharePointMigrationJob objects local to the container. Read-write.
96
+ param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
97
+ Returns: RequestInformation
98
+ """
99
+ request_info = RequestInformation(Method.GET, self.url_template, self.path_parameters)
100
+ request_info.configure(request_configuration)
101
+ request_info.headers.try_add("Accept", "application/json")
102
+ return request_info
103
+
104
+ def to_post_request_information(self,body: SharePointMigrationJob, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> RequestInformation:
105
+ """
106
+ Create new navigation property to migrationJobs for storage
107
+ param body: The request body
108
+ param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
109
+ Returns: RequestInformation
110
+ """
111
+ if body is None:
112
+ raise TypeError("body cannot be null.")
113
+ request_info = RequestInformation(Method.POST, self.url_template, self.path_parameters)
114
+ request_info.configure(request_configuration)
115
+ request_info.headers.try_add("Accept", "application/json")
116
+ request_info.set_content_from_parsable(self.request_adapter, "application/json", body)
117
+ return request_info
118
+
119
+ def with_url(self,raw_url: str) -> MigrationJobsRequestBuilder:
120
+ """
121
+ Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
122
+ param raw_url: The raw URL to use for the request builder.
123
+ Returns: MigrationJobsRequestBuilder
124
+ """
125
+ if raw_url is None:
126
+ raise TypeError("raw_url cannot be null.")
127
+ return MigrationJobsRequestBuilder(self.request_adapter, raw_url)
128
+
129
+ @property
130
+ def count(self) -> CountRequestBuilder:
131
+ """
132
+ Provides operations to count the resources in the collection.
133
+ """
134
+ from .count.count_request_builder import CountRequestBuilder
135
+
136
+ return CountRequestBuilder(self.request_adapter, self.path_parameters)
137
+
138
+ @dataclass
139
+ class MigrationJobsRequestBuilderGetQueryParameters():
140
+ """
141
+ The collection of sharePointMigrationJob objects local to the container. Read-write.
142
+ """
143
+ def get_query_parameter(self,original_name: str) -> str:
144
+ """
145
+ Maps the query parameters names to their encoded names for the URI template parsing.
146
+ param original_name: The original query parameter name in the class.
147
+ Returns: str
148
+ """
149
+ if original_name is None:
150
+ raise TypeError("original_name cannot be null.")
151
+ if original_name == "count":
152
+ return "%24count"
153
+ if original_name == "expand":
154
+ return "%24expand"
155
+ if original_name == "filter":
156
+ return "%24filter"
157
+ if original_name == "orderby":
158
+ return "%24orderby"
159
+ if original_name == "search":
160
+ return "%24search"
161
+ if original_name == "select":
162
+ return "%24select"
163
+ if original_name == "skip":
164
+ return "%24skip"
165
+ if original_name == "top":
166
+ return "%24top"
167
+ return original_name
168
+
169
+ # Include count of items
170
+ count: Optional[bool] = None
171
+
172
+ # Expand related entities
173
+ expand: Optional[list[str]] = None
174
+
175
+ # Filter items by property values
176
+ filter: Optional[str] = None
177
+
178
+ # Order items by property values
179
+ orderby: Optional[list[str]] = None
180
+
181
+ # Search items by search phrases
182
+ search: Optional[str] = None
183
+
184
+ # Select properties to be returned
185
+ select: Optional[list[str]] = None
186
+
187
+ # Skip the first n items
188
+ skip: Optional[int] = None
189
+
190
+ # Show only the first n items
191
+ top: Optional[int] = None
192
+
193
+
194
+ @dataclass
195
+ class MigrationJobsRequestBuilderGetRequestConfiguration(RequestConfiguration[MigrationJobsRequestBuilderGetQueryParameters]):
196
+ """
197
+ Configuration for the request such as headers, query parameters, and middleware options.
198
+ """
199
+ warn("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.", DeprecationWarning)
200
+
201
+ @dataclass
202
+ class MigrationJobsRequestBuilderPostRequestConfiguration(RequestConfiguration[QueryParameters]):
203
+ """
204
+ Configuration for the request such as headers, query parameters, and middleware options.
205
+ """
206
+ warn("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.", DeprecationWarning)
207
+
208
+
@@ -0,0 +1,81 @@
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 ......models.share_point_migration_container_info import SharePointMigrationContainerInfo
19
+
20
+ class ProvisionMigrationContainersRequestBuilder(BaseRequestBuilder):
21
+ """
22
+ Provides operations to call the provisionMigrationContainers method.
23
+ """
24
+ def __init__(self,request_adapter: RequestAdapter, path_parameters: Union[str, dict[str, Any]]) -> None:
25
+ """
26
+ Instantiates a new ProvisionMigrationContainersRequestBuilder 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}/storage/fileStorage/containers/{fileStorageContainer%2Did}/provisionMigrationContainers", path_parameters)
32
+
33
+ async def post(self,request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> Optional[SharePointMigrationContainerInfo]:
34
+ """
35
+ Invoke action provisionMigrationContainers
36
+ param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
37
+ Returns: Optional[SharePointMigrationContainerInfo]
38
+ """
39
+ request_info = self.to_post_request_information(
40
+ request_configuration
41
+ )
42
+ from ......models.o_data_errors.o_data_error import ODataError
43
+
44
+ error_mapping: dict[str, type[ParsableFactory]] = {
45
+ "XXX": ODataError,
46
+ }
47
+ if not self.request_adapter:
48
+ raise Exception("Http core is null")
49
+ from ......models.share_point_migration_container_info import SharePointMigrationContainerInfo
50
+
51
+ return await self.request_adapter.send_async(request_info, SharePointMigrationContainerInfo, error_mapping)
52
+
53
+ def to_post_request_information(self,request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> RequestInformation:
54
+ """
55
+ Invoke action provisionMigrationContainers
56
+ param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
57
+ Returns: RequestInformation
58
+ """
59
+ request_info = RequestInformation(Method.POST, self.url_template, self.path_parameters)
60
+ request_info.configure(request_configuration)
61
+ request_info.headers.try_add("Accept", "application/json")
62
+ return request_info
63
+
64
+ def with_url(self,raw_url: str) -> ProvisionMigrationContainersRequestBuilder:
65
+ """
66
+ Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
67
+ param raw_url: The raw URL to use for the request builder.
68
+ Returns: ProvisionMigrationContainersRequestBuilder
69
+ """
70
+ if raw_url is None:
71
+ raise TypeError("raw_url cannot be null.")
72
+ return ProvisionMigrationContainersRequestBuilder(self.request_adapter, raw_url)
73
+
74
+ @dataclass
75
+ class ProvisionMigrationContainersRequestBuilderPostRequestConfiguration(RequestConfiguration[QueryParameters]):
76
+ """
77
+ Configuration for the request such as headers, query parameters, and middleware options.
78
+ """
79
+ warn("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.", DeprecationWarning)
80
+
81
+
@@ -20,8 +20,10 @@ if TYPE_CHECKING:
20
20
  from .columns.columns_request_builder import ColumnsRequestBuilder
21
21
  from .drive.drive_request_builder import DriveRequestBuilder
22
22
  from .lock.lock_request_builder import LockRequestBuilder
23
+ from .migration_jobs.migration_jobs_request_builder import MigrationJobsRequestBuilder
23
24
  from .permanent_delete.permanent_delete_request_builder import PermanentDeleteRequestBuilder
24
25
  from .permissions.permissions_request_builder import PermissionsRequestBuilder
26
+ from .provision_migration_containers.provision_migration_containers_request_builder import ProvisionMigrationContainersRequestBuilder
25
27
  from .recycle_bin.recycle_bin_request_builder import RecycleBinRequestBuilder
26
28
  from .restore.restore_request_builder import RestoreRequestBuilder
27
29
  from .unlock.unlock_request_builder import UnlockRequestBuilder
@@ -183,6 +185,15 @@ class FileStorageContainerItemRequestBuilder(BaseRequestBuilder):
183
185
 
184
186
  return LockRequestBuilder(self.request_adapter, self.path_parameters)
185
187
 
188
+ @property
189
+ def migration_jobs(self) -> MigrationJobsRequestBuilder:
190
+ """
191
+ Provides operations to manage the migrationJobs property of the microsoft.graph.fileStorageContainer entity.
192
+ """
193
+ from .migration_jobs.migration_jobs_request_builder import MigrationJobsRequestBuilder
194
+
195
+ return MigrationJobsRequestBuilder(self.request_adapter, self.path_parameters)
196
+
186
197
  @property
187
198
  def permanent_delete(self) -> PermanentDeleteRequestBuilder:
188
199
  """
@@ -201,6 +212,15 @@ class FileStorageContainerItemRequestBuilder(BaseRequestBuilder):
201
212
 
202
213
  return PermissionsRequestBuilder(self.request_adapter, self.path_parameters)
203
214
 
215
+ @property
216
+ def provision_migration_containers(self) -> ProvisionMigrationContainersRequestBuilder:
217
+ """
218
+ Provides operations to call the provisionMigrationContainers method.
219
+ """
220
+ from .provision_migration_containers.provision_migration_containers_request_builder import ProvisionMigrationContainersRequestBuilder
221
+
222
+ return ProvisionMigrationContainersRequestBuilder(self.request_adapter, self.path_parameters)
223
+
204
224
  @property
205
225
  def recycle_bin(self) -> RecycleBinRequestBuilder:
206
226
  """
@@ -0,0 +1,104 @@
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
+
19
+ class CountRequestBuilder(BaseRequestBuilder):
20
+ """
21
+ Provides operations to count the resources in the collection.
22
+ """
23
+ def __init__(self,request_adapter: RequestAdapter, path_parameters: Union[str, dict[str, Any]]) -> None:
24
+ """
25
+ Instantiates a new CountRequestBuilder 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}/storage/fileStorage/deletedContainers/{fileStorageContainer%2Did}/migrationJobs/$count{?%24filter,%24search}", path_parameters)
31
+
32
+ async def get(self,request_configuration: Optional[RequestConfiguration[CountRequestBuilderGetQueryParameters]] = None) -> Optional[int]:
33
+ """
34
+ Get the number of the resource
35
+ param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
36
+ Returns: Optional[int]
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
+ return await self.request_adapter.send_primitive_async(request_info, "int", error_mapping)
49
+
50
+ def to_get_request_information(self,request_configuration: Optional[RequestConfiguration[CountRequestBuilderGetQueryParameters]] = None) -> RequestInformation:
51
+ """
52
+ Get the number of the resource
53
+ param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
54
+ Returns: RequestInformation
55
+ """
56
+ request_info = RequestInformation(Method.GET, self.url_template, self.path_parameters)
57
+ request_info.configure(request_configuration)
58
+ request_info.headers.try_add("Accept", "text/plain;q=0.9")
59
+ return request_info
60
+
61
+ def with_url(self,raw_url: str) -> CountRequestBuilder:
62
+ """
63
+ Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
64
+ param raw_url: The raw URL to use for the request builder.
65
+ Returns: CountRequestBuilder
66
+ """
67
+ if raw_url is None:
68
+ raise TypeError("raw_url cannot be null.")
69
+ return CountRequestBuilder(self.request_adapter, raw_url)
70
+
71
+ @dataclass
72
+ class CountRequestBuilderGetQueryParameters():
73
+ """
74
+ Get the number of the resource
75
+ """
76
+ def get_query_parameter(self,original_name: str) -> str:
77
+ """
78
+ Maps the query parameters names to their encoded names for the URI template parsing.
79
+ param original_name: The original query parameter name in the class.
80
+ Returns: str
81
+ """
82
+ if original_name is None:
83
+ raise TypeError("original_name cannot be null.")
84
+ if original_name == "filter":
85
+ return "%24filter"
86
+ if original_name == "search":
87
+ return "%24search"
88
+ return original_name
89
+
90
+ # Filter items by property values
91
+ filter: Optional[str] = None
92
+
93
+ # Search items by search phrases
94
+ search: Optional[str] = None
95
+
96
+
97
+ @dataclass
98
+ class CountRequestBuilderGetRequestConfiguration(RequestConfiguration[CountRequestBuilderGetQueryParameters]):
99
+ """
100
+ Configuration for the request such as headers, query parameters, and middleware options.
101
+ """
102
+ warn("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.", DeprecationWarning)
103
+
104
+