msgraph-sdk 1.14.0__py3-none-any.whl → 1.15.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- msgraph/_version.py +1 -1
- msgraph/generated/app_catalogs/teams_apps/teams_apps_request_builder.py +3 -3
- msgraph/generated/chats/item/members/item/conversation_member_item_request_builder.py +4 -4
- msgraph/generated/communications/calls/item/participants/invite/invite_request_builder.py +3 -3
- msgraph/generated/device_app_management/device_app_management_request_builder.py +1 -1
- msgraph/generated/device_app_management/managed_app_policies/item/managed_app_policy_item_request_builder.py +4 -4
- msgraph/generated/device_app_management/managed_app_policies/item/target_apps/target_apps_request_builder.py +1 -1
- msgraph/generated/device_app_management/managed_app_policies/managed_app_policies_request_builder.py +4 -4
- msgraph/generated/device_app_management/managed_app_registrations/item/applied_policies/item/target_apps/target_apps_request_builder.py +1 -1
- msgraph/generated/device_app_management/managed_app_registrations/item/intended_policies/item/target_apps/target_apps_request_builder.py +1 -1
- msgraph/generated/device_app_management/managed_app_registrations/item/managed_app_registration_item_request_builder.py +4 -4
- msgraph/generated/device_app_management/managed_e_books/item/assignments/assignments_request_builder.py +4 -4
- msgraph/generated/device_app_management/managed_e_books/item/assignments/item/managed_e_book_assignment_item_request_builder.py +10 -10
- msgraph/generated/device_app_management/managed_e_books/managed_e_books_request_builder.py +4 -4
- msgraph/generated/device_app_management/mobile_app_configurations/item/managed_device_mobile_app_configuration_item_request_builder.py +4 -4
- msgraph/generated/device_app_management/mobile_app_configurations/mobile_app_configurations_request_builder.py +4 -4
- msgraph/generated/device_app_management/mobile_apps/item/mobile_app_item_request_builder.py +10 -10
- msgraph/generated/device_app_management/mobile_apps/mobile_apps_request_builder.py +7 -7
- msgraph/generated/device_management/device_compliance_policies/device_compliance_policies_request_builder.py +3 -3
- msgraph/generated/device_management/device_compliance_policies/item/device_compliance_policy_item_request_builder.py +10 -10
- msgraph/generated/device_management/device_configurations/device_configurations_request_builder.py +3 -3
- msgraph/generated/device_management/device_configurations/item/device_configuration_item_request_builder.py +7 -7
- msgraph/generated/device_management/device_enrollment_configurations/device_enrollment_configurations_request_builder.py +3 -3
- msgraph/generated/device_management/device_enrollment_configurations/item/device_enrollment_configuration_item_request_builder.py +6 -6
- msgraph/generated/device_management/device_management_request_builder.py +2 -2
- msgraph/generated/device_management/role_definitions/item/role_definition_item_request_builder.py +3 -3
- msgraph/generated/drives/item/items/item/discard_checkout/discard_checkout_request_builder.py +78 -0
- msgraph/generated/drives/item/items/item/drive_item_item_request_builder.py +10 -0
- msgraph/generated/drives/item/items/item/retention_label/retention_label_request_builder.py +3 -3
- msgraph/generated/drives/item/items/item/workbook/tables/add/add_request_builder.py +3 -3
- msgraph/generated/drives/item/items/item/workbook/worksheets/item/tables/add/add_request_builder.py +3 -3
- msgraph/generated/external/connections/item/items/item/external_item_item_request_builder.py +3 -3
- msgraph/generated/groups/groups_request_builder.py +3 -3
- msgraph/generated/groups/item/assign_license/assign_license_request_builder.py +2 -2
- msgraph/generated/groups/item/conversations/conversations_request_builder.py +3 -3
- msgraph/generated/groups/item/conversations/item/conversation_item_request_builder.py +1 -1
- msgraph/generated/groups/item/group_item_request_builder.py +2 -2
- msgraph/generated/groups/item/renew/renew_request_builder.py +2 -2
- msgraph/generated/groups/item/threads/item/conversation_thread_item_request_builder.py +5 -5
- msgraph/generated/groups/item/threads/item/posts/posts_request_builder.py +4 -4
- msgraph/generated/groups_with_unique_name/groups_with_unique_name_request_builder.py +2 -2
- msgraph/generated/identity/conditional_access/named_locations/item/named_location_item_request_builder.py +10 -10
- msgraph/generated/identity_governance/entitlement_management/access_packages/item/access_package_item_request_builder.py +4 -4
- msgraph/generated/identity_governance/entitlement_management/catalogs/item/custom_workflow_extensions/item/custom_callout_extension_item_request_builder.py +6 -6
- msgraph/generated/identity_governance/terms_of_use/agreements/item/agreement_item_request_builder.py +4 -4
- msgraph/generated/information_protection/bitlocker/recovery_keys/recovery_keys_request_builder.py +3 -3
- msgraph/generated/kiota-dom-export.txt +989 -0
- msgraph/generated/kiota-lock.json +2 -2
- msgraph/generated/models/administrative_unit.py +1 -1
- msgraph/generated/models/app_role_assignment.py +2 -2
- msgraph/generated/models/application.py +1 -1
- msgraph/generated/models/base_item.py +16 -0
- msgraph/generated/models/conditional_access_client_applications.py +1 -1
- msgraph/generated/models/conditional_access_condition_set.py +2 -2
- msgraph/generated/models/device.py +1 -1
- msgraph/generated/models/eligibility_filtering_enabled_entities.py +9 -0
- msgraph/generated/models/entity.py +16 -0
- msgraph/generated/models/file_storage.py +4 -0
- msgraph/generated/models/file_storage_container.py +16 -0
- msgraph/generated/models/file_storage_container_settings.py +8 -0
- msgraph/generated/models/internal_domain_federation.py +4 -0
- msgraph/generated/models/open_shift.py +7 -3
- msgraph/generated/models/org_contact.py +1 -1
- msgraph/generated/models/recycle_bin.py +70 -0
- msgraph/generated/models/recycle_bin_item.py +67 -0
- msgraph/generated/models/recycle_bin_item_collection_response.py +60 -0
- msgraph/generated/models/recycle_bin_settings.py +53 -0
- msgraph/generated/models/security/data_set.py +4 -0
- msgraph/generated/models/service_principal.py +1 -1
- msgraph/generated/models/shift.py +4 -0
- msgraph/generated/models/shift_activity.py +2 -2
- msgraph/generated/models/site_lock_state.py +9 -0
- msgraph/generated/models/time_off.py +5 -1
- msgraph/generated/models/user.py +1 -1
- msgraph/generated/models/workforce_integration.py +9 -1
- msgraph/generated/models/workforce_integration_supported_entities.py +3 -0
- msgraph/generated/models/x509_certificate_authentication_method_configuration.py +8 -0
- msgraph/generated/models/x509_certificate_c_r_l_validation_configuration.py +66 -0
- msgraph/generated/models/x509_certificate_c_r_l_validation_configuration_state.py +7 -0
- msgraph/generated/organization/item/branding/localizations/item/banner_logo/banner_logo_request_builder.py +3 -3
- msgraph/generated/organization/item/organization_item_request_builder.py +4 -4
- msgraph/generated/security/attack_simulation/payloads/item/payload_item_request_builder.py +4 -3
- msgraph/generated/storage/file_storage/containers/item/file_storage_container_item_request_builder.py +40 -0
- msgraph/generated/storage/file_storage/containers/item/lock/lock_post_request_body.py +58 -0
- msgraph/generated/storage/file_storage/containers/item/lock/lock_request_builder.py +85 -0
- msgraph/generated/storage/file_storage/containers/item/recycle_bin/created_by_user/created_by_user_request_builder.py +126 -0
- msgraph/generated/storage/file_storage/containers/item/recycle_bin/created_by_user/mailbox_settings/mailbox_settings_request_builder.py +151 -0
- msgraph/generated/storage/file_storage/containers/item/recycle_bin/created_by_user/service_provisioning_errors/count/count_request_builder.py +103 -0
- msgraph/generated/storage/file_storage/containers/item/recycle_bin/created_by_user/service_provisioning_errors/service_provisioning_errors_request_builder.py +146 -0
- msgraph/generated/storage/file_storage/containers/item/recycle_bin/items/count/count_request_builder.py +103 -0
- msgraph/generated/storage/file_storage/containers/item/recycle_bin/items/item/created_by_user/created_by_user_request_builder.py +126 -0
- msgraph/generated/storage/file_storage/containers/item/recycle_bin/items/item/created_by_user/mailbox_settings/mailbox_settings_request_builder.py +151 -0
- msgraph/generated/storage/file_storage/containers/item/recycle_bin/items/item/created_by_user/service_provisioning_errors/count/count_request_builder.py +103 -0
- msgraph/generated/storage/file_storage/containers/item/recycle_bin/items/item/created_by_user/service_provisioning_errors/service_provisioning_errors_request_builder.py +146 -0
- msgraph/generated/storage/file_storage/containers/item/recycle_bin/items/item/last_modified_by_user/last_modified_by_user_request_builder.py +126 -0
- msgraph/generated/storage/file_storage/containers/item/recycle_bin/items/item/last_modified_by_user/mailbox_settings/mailbox_settings_request_builder.py +151 -0
- msgraph/generated/storage/file_storage/containers/item/recycle_bin/items/item/last_modified_by_user/service_provisioning_errors/count/count_request_builder.py +103 -0
- msgraph/generated/storage/file_storage/containers/item/recycle_bin/items/item/last_modified_by_user/service_provisioning_errors/service_provisioning_errors_request_builder.py +146 -0
- msgraph/generated/storage/file_storage/containers/item/recycle_bin/items/item/recycle_bin_item_item_request_builder.py +207 -0
- msgraph/generated/storage/file_storage/containers/item/recycle_bin/items/items_request_builder.py +207 -0
- msgraph/generated/storage/file_storage/containers/item/recycle_bin/last_modified_by_user/last_modified_by_user_request_builder.py +126 -0
- msgraph/generated/storage/file_storage/containers/item/recycle_bin/last_modified_by_user/mailbox_settings/mailbox_settings_request_builder.py +151 -0
- msgraph/generated/storage/file_storage/containers/item/recycle_bin/last_modified_by_user/service_provisioning_errors/count/count_request_builder.py +103 -0
- msgraph/generated/storage/file_storage/containers/item/recycle_bin/last_modified_by_user/service_provisioning_errors/service_provisioning_errors_request_builder.py +146 -0
- msgraph/generated/storage/file_storage/containers/item/recycle_bin/recycle_bin_request_builder.py +217 -0
- msgraph/generated/storage/file_storage/containers/item/restore/restore_request_builder.py +80 -0
- msgraph/generated/storage/file_storage/containers/item/unlock/unlock_request_builder.py +77 -0
- msgraph/generated/storage/file_storage/deleted_containers/count/count_request_builder.py +103 -0
- msgraph/generated/storage/file_storage/deleted_containers/deleted_containers_request_builder.py +207 -0
- msgraph/generated/storage/file_storage/deleted_containers/item/activate/activate_request_builder.py +77 -0
- msgraph/generated/storage/file_storage/deleted_containers/item/drive/drive_request_builder.py +106 -0
- msgraph/generated/storage/file_storage/deleted_containers/item/file_storage_container_item_request_builder.py +267 -0
- msgraph/generated/storage/file_storage/deleted_containers/item/lock/lock_post_request_body.py +58 -0
- msgraph/generated/storage/file_storage/deleted_containers/item/lock/lock_request_builder.py +85 -0
- msgraph/generated/storage/file_storage/deleted_containers/item/permanent_delete/permanent_delete_request_builder.py +77 -0
- msgraph/generated/storage/file_storage/deleted_containers/item/permissions/count/count_request_builder.py +103 -0
- msgraph/generated/storage/file_storage/deleted_containers/item/permissions/item/grant/grant_post_request_body.py +62 -0
- msgraph/generated/storage/file_storage/deleted_containers/item/permissions/item/grant/grant_post_response.py +60 -0
- msgraph/generated/storage/file_storage/deleted_containers/item/permissions/item/grant/grant_request_builder.py +89 -0
- msgraph/generated/storage/file_storage/deleted_containers/item/permissions/item/permission_item_request_builder.py +197 -0
- msgraph/generated/storage/file_storage/deleted_containers/item/permissions/permissions_request_builder.py +207 -0
- msgraph/generated/storage/file_storage/deleted_containers/item/recycle_bin/created_by_user/created_by_user_request_builder.py +126 -0
- msgraph/generated/storage/file_storage/deleted_containers/item/recycle_bin/created_by_user/mailbox_settings/mailbox_settings_request_builder.py +151 -0
- msgraph/generated/storage/file_storage/deleted_containers/item/recycle_bin/created_by_user/service_provisioning_errors/count/count_request_builder.py +103 -0
- msgraph/generated/storage/file_storage/deleted_containers/item/recycle_bin/created_by_user/service_provisioning_errors/service_provisioning_errors_request_builder.py +146 -0
- msgraph/generated/storage/file_storage/deleted_containers/item/recycle_bin/items/count/count_request_builder.py +103 -0
- msgraph/generated/storage/file_storage/deleted_containers/item/recycle_bin/items/item/created_by_user/created_by_user_request_builder.py +126 -0
- msgraph/generated/storage/file_storage/deleted_containers/item/recycle_bin/items/item/created_by_user/mailbox_settings/mailbox_settings_request_builder.py +151 -0
- msgraph/generated/storage/file_storage/deleted_containers/item/recycle_bin/items/item/created_by_user/service_provisioning_errors/count/count_request_builder.py +103 -0
- msgraph/generated/storage/file_storage/deleted_containers/item/recycle_bin/items/item/created_by_user/service_provisioning_errors/service_provisioning_errors_request_builder.py +146 -0
- msgraph/generated/storage/file_storage/deleted_containers/item/recycle_bin/items/item/last_modified_by_user/last_modified_by_user_request_builder.py +126 -0
- msgraph/generated/storage/file_storage/deleted_containers/item/recycle_bin/items/item/last_modified_by_user/mailbox_settings/mailbox_settings_request_builder.py +151 -0
- msgraph/generated/storage/file_storage/deleted_containers/item/recycle_bin/items/item/last_modified_by_user/service_provisioning_errors/count/count_request_builder.py +103 -0
- msgraph/generated/storage/file_storage/deleted_containers/item/recycle_bin/items/item/last_modified_by_user/service_provisioning_errors/service_provisioning_errors_request_builder.py +146 -0
- msgraph/generated/storage/file_storage/deleted_containers/item/recycle_bin/items/item/recycle_bin_item_item_request_builder.py +207 -0
- msgraph/generated/storage/file_storage/deleted_containers/item/recycle_bin/items/items_request_builder.py +207 -0
- msgraph/generated/storage/file_storage/deleted_containers/item/recycle_bin/last_modified_by_user/last_modified_by_user_request_builder.py +126 -0
- msgraph/generated/storage/file_storage/deleted_containers/item/recycle_bin/last_modified_by_user/mailbox_settings/mailbox_settings_request_builder.py +151 -0
- msgraph/generated/storage/file_storage/deleted_containers/item/recycle_bin/last_modified_by_user/service_provisioning_errors/count/count_request_builder.py +103 -0
- msgraph/generated/storage/file_storage/deleted_containers/item/recycle_bin/last_modified_by_user/service_provisioning_errors/service_provisioning_errors_request_builder.py +146 -0
- msgraph/generated/storage/file_storage/deleted_containers/item/recycle_bin/recycle_bin_request_builder.py +217 -0
- msgraph/generated/storage/file_storage/deleted_containers/item/restore/restore_request_builder.py +80 -0
- msgraph/generated/storage/file_storage/deleted_containers/item/unlock/unlock_request_builder.py +77 -0
- msgraph/generated/storage/file_storage/file_storage_request_builder.py +10 -0
- msgraph/generated/teams/item/channels/item/members/item/conversation_member_item_request_builder.py +3 -3
- msgraph/generated/teams/item/channels/item/members/members_request_builder.py +3 -3
- msgraph/generated/teams/item/channels/item/messages/item/replies/replies_request_builder.py +3 -3
- msgraph/generated/users/item/presence/presence_request_builder.py +4 -4
- msgraph/generated/users/item/user_item_request_builder.py +2 -2
- msgraph/generated/users/users_request_builder.py +5 -5
- msgraph/generated/users_with_user_principal_name/users_with_user_principal_name_request_builder.py +2 -2
- {msgraph_sdk-1.14.0.dist-info → msgraph_sdk-1.15.0.dist-info}/METADATA +1 -1
- {msgraph_sdk-1.14.0.dist-info → msgraph_sdk-1.15.0.dist-info}/RECORD +155 -86
- {msgraph_sdk-1.14.0.dist-info → msgraph_sdk-1.15.0.dist-info}/LICENSE +0 -0
- {msgraph_sdk-1.14.0.dist-info → msgraph_sdk-1.15.0.dist-info}/WHEEL +0 -0
@@ -0,0 +1,151 @@
|
|
1
|
+
from __future__ import annotations
|
2
|
+
from dataclasses import dataclass, field
|
3
|
+
from kiota_abstractions.base_request_builder import BaseRequestBuilder
|
4
|
+
from kiota_abstractions.base_request_configuration import RequestConfiguration
|
5
|
+
from kiota_abstractions.default_query_parameters import QueryParameters
|
6
|
+
from kiota_abstractions.get_path_parameters import get_path_parameters
|
7
|
+
from kiota_abstractions.method import Method
|
8
|
+
from kiota_abstractions.request_adapter import RequestAdapter
|
9
|
+
from kiota_abstractions.request_information import RequestInformation
|
10
|
+
from kiota_abstractions.request_option import RequestOption
|
11
|
+
from kiota_abstractions.serialization import Parsable, ParsableFactory
|
12
|
+
from typing import Any, Callable, Dict, List, Optional, TYPE_CHECKING, Union
|
13
|
+
from warnings import warn
|
14
|
+
|
15
|
+
if TYPE_CHECKING:
|
16
|
+
from ........models.mailbox_settings import MailboxSettings
|
17
|
+
from ........models.o_data_errors.o_data_error import ODataError
|
18
|
+
|
19
|
+
class MailboxSettingsRequestBuilder(BaseRequestBuilder):
|
20
|
+
"""
|
21
|
+
Builds and executes requests for operations under /storage/fileStorage/containers/{fileStorageContainer-id}/recycleBin/lastModifiedByUser/mailboxSettings
|
22
|
+
"""
|
23
|
+
def __init__(self,request_adapter: RequestAdapter, path_parameters: Union[str, Dict[str, Any]]) -> None:
|
24
|
+
"""
|
25
|
+
Instantiates a new MailboxSettingsRequestBuilder 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/containers/{fileStorageContainer%2Did}/recycleBin/lastModifiedByUser/mailboxSettings{?%24expand,%24select}", path_parameters)
|
31
|
+
|
32
|
+
async def get(self,request_configuration: Optional[RequestConfiguration[MailboxSettingsRequestBuilderGetQueryParameters]] = None) -> Optional[MailboxSettings]:
|
33
|
+
"""
|
34
|
+
Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. Returned only on $select.
|
35
|
+
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
|
36
|
+
Returns: Optional[MailboxSettings]
|
37
|
+
"""
|
38
|
+
request_info = self.to_get_request_information(
|
39
|
+
request_configuration
|
40
|
+
)
|
41
|
+
from ........models.o_data_errors.o_data_error import ODataError
|
42
|
+
|
43
|
+
error_mapping: Dict[str, type[ParsableFactory]] = {
|
44
|
+
"XXX": ODataError,
|
45
|
+
}
|
46
|
+
if not self.request_adapter:
|
47
|
+
raise Exception("Http core is null")
|
48
|
+
from ........models.mailbox_settings import MailboxSettings
|
49
|
+
|
50
|
+
return await self.request_adapter.send_async(request_info, MailboxSettings, error_mapping)
|
51
|
+
|
52
|
+
async def patch(self,body: MailboxSettings, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> Optional[MailboxSettings]:
|
53
|
+
"""
|
54
|
+
Update property mailboxSettings value.
|
55
|
+
param body: The request body
|
56
|
+
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
|
57
|
+
Returns: Optional[MailboxSettings]
|
58
|
+
"""
|
59
|
+
if body is None:
|
60
|
+
raise TypeError("body cannot be null.")
|
61
|
+
request_info = self.to_patch_request_information(
|
62
|
+
body, request_configuration
|
63
|
+
)
|
64
|
+
from ........models.o_data_errors.o_data_error import ODataError
|
65
|
+
|
66
|
+
error_mapping: Dict[str, type[ParsableFactory]] = {
|
67
|
+
"XXX": ODataError,
|
68
|
+
}
|
69
|
+
if not self.request_adapter:
|
70
|
+
raise Exception("Http core is null")
|
71
|
+
from ........models.mailbox_settings import MailboxSettings
|
72
|
+
|
73
|
+
return await self.request_adapter.send_async(request_info, MailboxSettings, error_mapping)
|
74
|
+
|
75
|
+
def to_get_request_information(self,request_configuration: Optional[RequestConfiguration[MailboxSettingsRequestBuilderGetQueryParameters]] = None) -> RequestInformation:
|
76
|
+
"""
|
77
|
+
Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. Returned only on $select.
|
78
|
+
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
|
79
|
+
Returns: RequestInformation
|
80
|
+
"""
|
81
|
+
request_info = RequestInformation(Method.GET, self.url_template, self.path_parameters)
|
82
|
+
request_info.configure(request_configuration)
|
83
|
+
request_info.headers.try_add("Accept", "application/json")
|
84
|
+
return request_info
|
85
|
+
|
86
|
+
def to_patch_request_information(self,body: MailboxSettings, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> RequestInformation:
|
87
|
+
"""
|
88
|
+
Update property mailboxSettings value.
|
89
|
+
param body: The request body
|
90
|
+
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
|
91
|
+
Returns: RequestInformation
|
92
|
+
"""
|
93
|
+
if body is None:
|
94
|
+
raise TypeError("body cannot be null.")
|
95
|
+
request_info = RequestInformation(Method.PATCH, self.url_template, self.path_parameters)
|
96
|
+
request_info.configure(request_configuration)
|
97
|
+
request_info.headers.try_add("Accept", "application/json")
|
98
|
+
request_info.set_content_from_parsable(self.request_adapter, "application/json", body)
|
99
|
+
return request_info
|
100
|
+
|
101
|
+
def with_url(self,raw_url: str) -> MailboxSettingsRequestBuilder:
|
102
|
+
"""
|
103
|
+
Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
|
104
|
+
param raw_url: The raw URL to use for the request builder.
|
105
|
+
Returns: MailboxSettingsRequestBuilder
|
106
|
+
"""
|
107
|
+
if raw_url is None:
|
108
|
+
raise TypeError("raw_url cannot be null.")
|
109
|
+
return MailboxSettingsRequestBuilder(self.request_adapter, raw_url)
|
110
|
+
|
111
|
+
@dataclass
|
112
|
+
class MailboxSettingsRequestBuilderGetQueryParameters():
|
113
|
+
"""
|
114
|
+
Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. Returned only on $select.
|
115
|
+
"""
|
116
|
+
def get_query_parameter(self,original_name: str) -> str:
|
117
|
+
"""
|
118
|
+
Maps the query parameters names to their encoded names for the URI template parsing.
|
119
|
+
param original_name: The original query parameter name in the class.
|
120
|
+
Returns: str
|
121
|
+
"""
|
122
|
+
if original_name is None:
|
123
|
+
raise TypeError("original_name cannot be null.")
|
124
|
+
if original_name == "expand":
|
125
|
+
return "%24expand"
|
126
|
+
if original_name == "select":
|
127
|
+
return "%24select"
|
128
|
+
return original_name
|
129
|
+
|
130
|
+
# Expand related entities
|
131
|
+
expand: Optional[List[str]] = None
|
132
|
+
|
133
|
+
# Select properties to be returned
|
134
|
+
select: Optional[List[str]] = None
|
135
|
+
|
136
|
+
|
137
|
+
@dataclass
|
138
|
+
class MailboxSettingsRequestBuilderGetRequestConfiguration(RequestConfiguration[MailboxSettingsRequestBuilderGetQueryParameters]):
|
139
|
+
"""
|
140
|
+
Configuration for the request such as headers, query parameters, and middleware options.
|
141
|
+
"""
|
142
|
+
warn("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.", DeprecationWarning)
|
143
|
+
|
144
|
+
@dataclass
|
145
|
+
class MailboxSettingsRequestBuilderPatchRequestConfiguration(RequestConfiguration[QueryParameters]):
|
146
|
+
"""
|
147
|
+
Configuration for the request such as headers, query parameters, and middleware options.
|
148
|
+
"""
|
149
|
+
warn("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.", DeprecationWarning)
|
150
|
+
|
151
|
+
|
@@ -0,0 +1,103 @@
|
|
1
|
+
from __future__ import annotations
|
2
|
+
from dataclasses import dataclass, field
|
3
|
+
from kiota_abstractions.base_request_builder import BaseRequestBuilder
|
4
|
+
from kiota_abstractions.base_request_configuration import RequestConfiguration
|
5
|
+
from kiota_abstractions.default_query_parameters import QueryParameters
|
6
|
+
from kiota_abstractions.get_path_parameters import get_path_parameters
|
7
|
+
from kiota_abstractions.method import Method
|
8
|
+
from kiota_abstractions.request_adapter import RequestAdapter
|
9
|
+
from kiota_abstractions.request_information import RequestInformation
|
10
|
+
from kiota_abstractions.request_option import RequestOption
|
11
|
+
from kiota_abstractions.serialization import Parsable, ParsableFactory
|
12
|
+
from typing import Any, Callable, Dict, List, Optional, TYPE_CHECKING, Union
|
13
|
+
from warnings import warn
|
14
|
+
|
15
|
+
if TYPE_CHECKING:
|
16
|
+
from .........models.o_data_errors.o_data_error import ODataError
|
17
|
+
|
18
|
+
class CountRequestBuilder(BaseRequestBuilder):
|
19
|
+
"""
|
20
|
+
Provides operations to count the resources in the collection.
|
21
|
+
"""
|
22
|
+
def __init__(self,request_adapter: RequestAdapter, path_parameters: Union[str, Dict[str, Any]]) -> None:
|
23
|
+
"""
|
24
|
+
Instantiates a new CountRequestBuilder and sets the default values.
|
25
|
+
param path_parameters: The raw url or the url-template parameters for the request.
|
26
|
+
param request_adapter: The request adapter to use to execute the requests.
|
27
|
+
Returns: None
|
28
|
+
"""
|
29
|
+
super().__init__(request_adapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/recycleBin/lastModifiedByUser/serviceProvisioningErrors/$count{?%24filter,%24search}", path_parameters)
|
30
|
+
|
31
|
+
async def get(self,request_configuration: Optional[RequestConfiguration[CountRequestBuilderGetQueryParameters]] = None) -> Optional[int]:
|
32
|
+
"""
|
33
|
+
Get the number of the resource
|
34
|
+
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
|
35
|
+
Returns: Optional[int]
|
36
|
+
"""
|
37
|
+
request_info = self.to_get_request_information(
|
38
|
+
request_configuration
|
39
|
+
)
|
40
|
+
from .........models.o_data_errors.o_data_error import ODataError
|
41
|
+
|
42
|
+
error_mapping: Dict[str, type[ParsableFactory]] = {
|
43
|
+
"XXX": ODataError,
|
44
|
+
}
|
45
|
+
if not self.request_adapter:
|
46
|
+
raise Exception("Http core is null")
|
47
|
+
return await self.request_adapter.send_primitive_async(request_info, "int", error_mapping)
|
48
|
+
|
49
|
+
def to_get_request_information(self,request_configuration: Optional[RequestConfiguration[CountRequestBuilderGetQueryParameters]] = None) -> RequestInformation:
|
50
|
+
"""
|
51
|
+
Get the number of the resource
|
52
|
+
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
|
53
|
+
Returns: RequestInformation
|
54
|
+
"""
|
55
|
+
request_info = RequestInformation(Method.GET, self.url_template, self.path_parameters)
|
56
|
+
request_info.configure(request_configuration)
|
57
|
+
request_info.headers.try_add("Accept", "text/plain;q=0.9")
|
58
|
+
return request_info
|
59
|
+
|
60
|
+
def with_url(self,raw_url: str) -> CountRequestBuilder:
|
61
|
+
"""
|
62
|
+
Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
|
63
|
+
param raw_url: The raw URL to use for the request builder.
|
64
|
+
Returns: CountRequestBuilder
|
65
|
+
"""
|
66
|
+
if raw_url is None:
|
67
|
+
raise TypeError("raw_url cannot be null.")
|
68
|
+
return CountRequestBuilder(self.request_adapter, raw_url)
|
69
|
+
|
70
|
+
@dataclass
|
71
|
+
class CountRequestBuilderGetQueryParameters():
|
72
|
+
"""
|
73
|
+
Get the number of the resource
|
74
|
+
"""
|
75
|
+
def get_query_parameter(self,original_name: str) -> str:
|
76
|
+
"""
|
77
|
+
Maps the query parameters names to their encoded names for the URI template parsing.
|
78
|
+
param original_name: The original query parameter name in the class.
|
79
|
+
Returns: str
|
80
|
+
"""
|
81
|
+
if original_name is None:
|
82
|
+
raise TypeError("original_name cannot be null.")
|
83
|
+
if original_name == "filter":
|
84
|
+
return "%24filter"
|
85
|
+
if original_name == "search":
|
86
|
+
return "%24search"
|
87
|
+
return original_name
|
88
|
+
|
89
|
+
# Filter items by property values
|
90
|
+
filter: Optional[str] = None
|
91
|
+
|
92
|
+
# Search items by search phrases
|
93
|
+
search: Optional[str] = None
|
94
|
+
|
95
|
+
|
96
|
+
@dataclass
|
97
|
+
class CountRequestBuilderGetRequestConfiguration(RequestConfiguration[CountRequestBuilderGetQueryParameters]):
|
98
|
+
"""
|
99
|
+
Configuration for the request such as headers, query parameters, and middleware options.
|
100
|
+
"""
|
101
|
+
warn("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.", DeprecationWarning)
|
102
|
+
|
103
|
+
|
@@ -0,0 +1,146 @@
|
|
1
|
+
from __future__ import annotations
|
2
|
+
from dataclasses import dataclass, field
|
3
|
+
from kiota_abstractions.base_request_builder import BaseRequestBuilder
|
4
|
+
from kiota_abstractions.base_request_configuration import RequestConfiguration
|
5
|
+
from kiota_abstractions.default_query_parameters import QueryParameters
|
6
|
+
from kiota_abstractions.get_path_parameters import get_path_parameters
|
7
|
+
from kiota_abstractions.method import Method
|
8
|
+
from kiota_abstractions.request_adapter import RequestAdapter
|
9
|
+
from kiota_abstractions.request_information import RequestInformation
|
10
|
+
from kiota_abstractions.request_option import RequestOption
|
11
|
+
from kiota_abstractions.serialization import Parsable, ParsableFactory
|
12
|
+
from typing import Any, Callable, Dict, List, Optional, TYPE_CHECKING, Union
|
13
|
+
from warnings import warn
|
14
|
+
|
15
|
+
if TYPE_CHECKING:
|
16
|
+
from ........models.o_data_errors.o_data_error import ODataError
|
17
|
+
from ........models.service_provisioning_error_collection_response import ServiceProvisioningErrorCollectionResponse
|
18
|
+
from .count.count_request_builder import CountRequestBuilder
|
19
|
+
|
20
|
+
class ServiceProvisioningErrorsRequestBuilder(BaseRequestBuilder):
|
21
|
+
"""
|
22
|
+
Builds and executes requests for operations under /storage/fileStorage/containers/{fileStorageContainer-id}/recycleBin/lastModifiedByUser/serviceProvisioningErrors
|
23
|
+
"""
|
24
|
+
def __init__(self,request_adapter: RequestAdapter, path_parameters: Union[str, Dict[str, Any]]) -> None:
|
25
|
+
"""
|
26
|
+
Instantiates a new ServiceProvisioningErrorsRequestBuilder 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}/recycleBin/lastModifiedByUser/serviceProvisioningErrors{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", path_parameters)
|
32
|
+
|
33
|
+
async def get(self,request_configuration: Optional[RequestConfiguration[ServiceProvisioningErrorsRequestBuilderGetQueryParameters]] = None) -> Optional[ServiceProvisioningErrorCollectionResponse]:
|
34
|
+
"""
|
35
|
+
Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. Supports $filter (eq, not, for isResolved and serviceInstance).
|
36
|
+
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
|
37
|
+
Returns: Optional[ServiceProvisioningErrorCollectionResponse]
|
38
|
+
"""
|
39
|
+
request_info = self.to_get_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.service_provisioning_error_collection_response import ServiceProvisioningErrorCollectionResponse
|
50
|
+
|
51
|
+
return await self.request_adapter.send_async(request_info, ServiceProvisioningErrorCollectionResponse, error_mapping)
|
52
|
+
|
53
|
+
def to_get_request_information(self,request_configuration: Optional[RequestConfiguration[ServiceProvisioningErrorsRequestBuilderGetQueryParameters]] = None) -> RequestInformation:
|
54
|
+
"""
|
55
|
+
Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. Supports $filter (eq, not, for isResolved and serviceInstance).
|
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.GET, 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) -> ServiceProvisioningErrorsRequestBuilder:
|
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: ServiceProvisioningErrorsRequestBuilder
|
69
|
+
"""
|
70
|
+
if raw_url is None:
|
71
|
+
raise TypeError("raw_url cannot be null.")
|
72
|
+
return ServiceProvisioningErrorsRequestBuilder(self.request_adapter, raw_url)
|
73
|
+
|
74
|
+
@property
|
75
|
+
def count(self) -> CountRequestBuilder:
|
76
|
+
"""
|
77
|
+
Provides operations to count the resources in the collection.
|
78
|
+
"""
|
79
|
+
from .count.count_request_builder import CountRequestBuilder
|
80
|
+
|
81
|
+
return CountRequestBuilder(self.request_adapter, self.path_parameters)
|
82
|
+
|
83
|
+
@dataclass
|
84
|
+
class ServiceProvisioningErrorsRequestBuilderGetQueryParameters():
|
85
|
+
"""
|
86
|
+
Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. Supports $filter (eq, not, for isResolved and serviceInstance).
|
87
|
+
"""
|
88
|
+
def get_query_parameter(self,original_name: str) -> str:
|
89
|
+
"""
|
90
|
+
Maps the query parameters names to their encoded names for the URI template parsing.
|
91
|
+
param original_name: The original query parameter name in the class.
|
92
|
+
Returns: str
|
93
|
+
"""
|
94
|
+
if original_name is None:
|
95
|
+
raise TypeError("original_name cannot be null.")
|
96
|
+
if original_name == "count":
|
97
|
+
return "%24count"
|
98
|
+
if original_name == "expand":
|
99
|
+
return "%24expand"
|
100
|
+
if original_name == "filter":
|
101
|
+
return "%24filter"
|
102
|
+
if original_name == "orderby":
|
103
|
+
return "%24orderby"
|
104
|
+
if original_name == "search":
|
105
|
+
return "%24search"
|
106
|
+
if original_name == "select":
|
107
|
+
return "%24select"
|
108
|
+
if original_name == "skip":
|
109
|
+
return "%24skip"
|
110
|
+
if original_name == "top":
|
111
|
+
return "%24top"
|
112
|
+
return original_name
|
113
|
+
|
114
|
+
# Include count of items
|
115
|
+
count: Optional[bool] = None
|
116
|
+
|
117
|
+
# Expand related entities
|
118
|
+
expand: Optional[List[str]] = None
|
119
|
+
|
120
|
+
# Filter items by property values
|
121
|
+
filter: Optional[str] = None
|
122
|
+
|
123
|
+
# Order items by property values
|
124
|
+
orderby: Optional[List[str]] = None
|
125
|
+
|
126
|
+
# Search items by search phrases
|
127
|
+
search: Optional[str] = None
|
128
|
+
|
129
|
+
# Select properties to be returned
|
130
|
+
select: Optional[List[str]] = None
|
131
|
+
|
132
|
+
# Skip the first n items
|
133
|
+
skip: Optional[int] = None
|
134
|
+
|
135
|
+
# Show only the first n items
|
136
|
+
top: Optional[int] = None
|
137
|
+
|
138
|
+
|
139
|
+
@dataclass
|
140
|
+
class ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration(RequestConfiguration[ServiceProvisioningErrorsRequestBuilderGetQueryParameters]):
|
141
|
+
"""
|
142
|
+
Configuration for the request such as headers, query parameters, and middleware options.
|
143
|
+
"""
|
144
|
+
warn("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.", DeprecationWarning)
|
145
|
+
|
146
|
+
|
msgraph/generated/storage/file_storage/containers/item/recycle_bin/recycle_bin_request_builder.py
ADDED
@@ -0,0 +1,217 @@
|
|
1
|
+
from __future__ import annotations
|
2
|
+
from dataclasses import dataclass, field
|
3
|
+
from kiota_abstractions.base_request_builder import BaseRequestBuilder
|
4
|
+
from kiota_abstractions.base_request_configuration import RequestConfiguration
|
5
|
+
from kiota_abstractions.default_query_parameters import QueryParameters
|
6
|
+
from kiota_abstractions.get_path_parameters import get_path_parameters
|
7
|
+
from kiota_abstractions.method import Method
|
8
|
+
from kiota_abstractions.request_adapter import RequestAdapter
|
9
|
+
from kiota_abstractions.request_information import RequestInformation
|
10
|
+
from kiota_abstractions.request_option import RequestOption
|
11
|
+
from kiota_abstractions.serialization import Parsable, ParsableFactory
|
12
|
+
from typing import Any, Callable, Dict, List, Optional, TYPE_CHECKING, Union
|
13
|
+
from warnings import warn
|
14
|
+
|
15
|
+
if TYPE_CHECKING:
|
16
|
+
from ......models.o_data_errors.o_data_error import ODataError
|
17
|
+
from ......models.recycle_bin import RecycleBin
|
18
|
+
from .created_by_user.created_by_user_request_builder import CreatedByUserRequestBuilder
|
19
|
+
from .items.items_request_builder import ItemsRequestBuilder
|
20
|
+
from .last_modified_by_user.last_modified_by_user_request_builder import LastModifiedByUserRequestBuilder
|
21
|
+
|
22
|
+
class RecycleBinRequestBuilder(BaseRequestBuilder):
|
23
|
+
"""
|
24
|
+
Provides operations to manage the recycleBin property of the microsoft.graph.fileStorageContainer entity.
|
25
|
+
"""
|
26
|
+
def __init__(self,request_adapter: RequestAdapter, path_parameters: Union[str, Dict[str, Any]]) -> None:
|
27
|
+
"""
|
28
|
+
Instantiates a new RecycleBinRequestBuilder and sets the default values.
|
29
|
+
param path_parameters: The raw url or the url-template parameters for the request.
|
30
|
+
param request_adapter: The request adapter to use to execute the requests.
|
31
|
+
Returns: None
|
32
|
+
"""
|
33
|
+
super().__init__(request_adapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/recycleBin{?%24expand,%24select}", path_parameters)
|
34
|
+
|
35
|
+
async def delete(self,request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> None:
|
36
|
+
"""
|
37
|
+
Delete navigation property recycleBin for storage
|
38
|
+
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
|
39
|
+
Returns: None
|
40
|
+
"""
|
41
|
+
request_info = self.to_delete_request_information(
|
42
|
+
request_configuration
|
43
|
+
)
|
44
|
+
from ......models.o_data_errors.o_data_error import ODataError
|
45
|
+
|
46
|
+
error_mapping: Dict[str, type[ParsableFactory]] = {
|
47
|
+
"XXX": ODataError,
|
48
|
+
}
|
49
|
+
if not self.request_adapter:
|
50
|
+
raise Exception("Http core is null")
|
51
|
+
return await self.request_adapter.send_no_response_content_async(request_info, error_mapping)
|
52
|
+
|
53
|
+
async def get(self,request_configuration: Optional[RequestConfiguration[RecycleBinRequestBuilderGetQueryParameters]] = None) -> Optional[RecycleBin]:
|
54
|
+
"""
|
55
|
+
Recycle bin of the fileStorageContainer. Read-only.
|
56
|
+
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
|
57
|
+
Returns: Optional[RecycleBin]
|
58
|
+
"""
|
59
|
+
request_info = self.to_get_request_information(
|
60
|
+
request_configuration
|
61
|
+
)
|
62
|
+
from ......models.o_data_errors.o_data_error import ODataError
|
63
|
+
|
64
|
+
error_mapping: Dict[str, type[ParsableFactory]] = {
|
65
|
+
"XXX": ODataError,
|
66
|
+
}
|
67
|
+
if not self.request_adapter:
|
68
|
+
raise Exception("Http core is null")
|
69
|
+
from ......models.recycle_bin import RecycleBin
|
70
|
+
|
71
|
+
return await self.request_adapter.send_async(request_info, RecycleBin, error_mapping)
|
72
|
+
|
73
|
+
async def patch(self,body: RecycleBin, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> Optional[RecycleBin]:
|
74
|
+
"""
|
75
|
+
Update the navigation property recycleBin in storage
|
76
|
+
param body: The request body
|
77
|
+
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
|
78
|
+
Returns: Optional[RecycleBin]
|
79
|
+
"""
|
80
|
+
if body is None:
|
81
|
+
raise TypeError("body cannot be null.")
|
82
|
+
request_info = self.to_patch_request_information(
|
83
|
+
body, request_configuration
|
84
|
+
)
|
85
|
+
from ......models.o_data_errors.o_data_error import ODataError
|
86
|
+
|
87
|
+
error_mapping: Dict[str, type[ParsableFactory]] = {
|
88
|
+
"XXX": ODataError,
|
89
|
+
}
|
90
|
+
if not self.request_adapter:
|
91
|
+
raise Exception("Http core is null")
|
92
|
+
from ......models.recycle_bin import RecycleBin
|
93
|
+
|
94
|
+
return await self.request_adapter.send_async(request_info, RecycleBin, error_mapping)
|
95
|
+
|
96
|
+
def to_delete_request_information(self,request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> RequestInformation:
|
97
|
+
"""
|
98
|
+
Delete navigation property recycleBin for storage
|
99
|
+
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
|
100
|
+
Returns: RequestInformation
|
101
|
+
"""
|
102
|
+
request_info = RequestInformation(Method.DELETE, self.url_template, self.path_parameters)
|
103
|
+
request_info.configure(request_configuration)
|
104
|
+
request_info.headers.try_add("Accept", "application/json")
|
105
|
+
return request_info
|
106
|
+
|
107
|
+
def to_get_request_information(self,request_configuration: Optional[RequestConfiguration[RecycleBinRequestBuilderGetQueryParameters]] = None) -> RequestInformation:
|
108
|
+
"""
|
109
|
+
Recycle bin of the fileStorageContainer. Read-only.
|
110
|
+
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
|
111
|
+
Returns: RequestInformation
|
112
|
+
"""
|
113
|
+
request_info = RequestInformation(Method.GET, self.url_template, self.path_parameters)
|
114
|
+
request_info.configure(request_configuration)
|
115
|
+
request_info.headers.try_add("Accept", "application/json")
|
116
|
+
return request_info
|
117
|
+
|
118
|
+
def to_patch_request_information(self,body: RecycleBin, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> RequestInformation:
|
119
|
+
"""
|
120
|
+
Update the navigation property recycleBin in storage
|
121
|
+
param body: The request body
|
122
|
+
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
|
123
|
+
Returns: RequestInformation
|
124
|
+
"""
|
125
|
+
if body is None:
|
126
|
+
raise TypeError("body cannot be null.")
|
127
|
+
request_info = RequestInformation(Method.PATCH, self.url_template, self.path_parameters)
|
128
|
+
request_info.configure(request_configuration)
|
129
|
+
request_info.headers.try_add("Accept", "application/json")
|
130
|
+
request_info.set_content_from_parsable(self.request_adapter, "application/json", body)
|
131
|
+
return request_info
|
132
|
+
|
133
|
+
def with_url(self,raw_url: str) -> RecycleBinRequestBuilder:
|
134
|
+
"""
|
135
|
+
Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
|
136
|
+
param raw_url: The raw URL to use for the request builder.
|
137
|
+
Returns: RecycleBinRequestBuilder
|
138
|
+
"""
|
139
|
+
if raw_url is None:
|
140
|
+
raise TypeError("raw_url cannot be null.")
|
141
|
+
return RecycleBinRequestBuilder(self.request_adapter, raw_url)
|
142
|
+
|
143
|
+
@property
|
144
|
+
def created_by_user(self) -> CreatedByUserRequestBuilder:
|
145
|
+
"""
|
146
|
+
Provides operations to manage the createdByUser property of the microsoft.graph.baseItem entity.
|
147
|
+
"""
|
148
|
+
from .created_by_user.created_by_user_request_builder import CreatedByUserRequestBuilder
|
149
|
+
|
150
|
+
return CreatedByUserRequestBuilder(self.request_adapter, self.path_parameters)
|
151
|
+
|
152
|
+
@property
|
153
|
+
def items(self) -> ItemsRequestBuilder:
|
154
|
+
"""
|
155
|
+
Provides operations to manage the items property of the microsoft.graph.recycleBin entity.
|
156
|
+
"""
|
157
|
+
from .items.items_request_builder import ItemsRequestBuilder
|
158
|
+
|
159
|
+
return ItemsRequestBuilder(self.request_adapter, self.path_parameters)
|
160
|
+
|
161
|
+
@property
|
162
|
+
def last_modified_by_user(self) -> LastModifiedByUserRequestBuilder:
|
163
|
+
"""
|
164
|
+
Provides operations to manage the lastModifiedByUser property of the microsoft.graph.baseItem entity.
|
165
|
+
"""
|
166
|
+
from .last_modified_by_user.last_modified_by_user_request_builder import LastModifiedByUserRequestBuilder
|
167
|
+
|
168
|
+
return LastModifiedByUserRequestBuilder(self.request_adapter, self.path_parameters)
|
169
|
+
|
170
|
+
@dataclass
|
171
|
+
class RecycleBinRequestBuilderDeleteRequestConfiguration(RequestConfiguration[QueryParameters]):
|
172
|
+
"""
|
173
|
+
Configuration for the request such as headers, query parameters, and middleware options.
|
174
|
+
"""
|
175
|
+
warn("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.", DeprecationWarning)
|
176
|
+
|
177
|
+
@dataclass
|
178
|
+
class RecycleBinRequestBuilderGetQueryParameters():
|
179
|
+
"""
|
180
|
+
Recycle bin of the fileStorageContainer. Read-only.
|
181
|
+
"""
|
182
|
+
def get_query_parameter(self,original_name: str) -> str:
|
183
|
+
"""
|
184
|
+
Maps the query parameters names to their encoded names for the URI template parsing.
|
185
|
+
param original_name: The original query parameter name in the class.
|
186
|
+
Returns: str
|
187
|
+
"""
|
188
|
+
if original_name is None:
|
189
|
+
raise TypeError("original_name cannot be null.")
|
190
|
+
if original_name == "expand":
|
191
|
+
return "%24expand"
|
192
|
+
if original_name == "select":
|
193
|
+
return "%24select"
|
194
|
+
return original_name
|
195
|
+
|
196
|
+
# Expand related entities
|
197
|
+
expand: Optional[List[str]] = None
|
198
|
+
|
199
|
+
# Select properties to be returned
|
200
|
+
select: Optional[List[str]] = None
|
201
|
+
|
202
|
+
|
203
|
+
@dataclass
|
204
|
+
class RecycleBinRequestBuilderGetRequestConfiguration(RequestConfiguration[RecycleBinRequestBuilderGetQueryParameters]):
|
205
|
+
"""
|
206
|
+
Configuration for the request such as headers, query parameters, and middleware options.
|
207
|
+
"""
|
208
|
+
warn("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.", DeprecationWarning)
|
209
|
+
|
210
|
+
@dataclass
|
211
|
+
class RecycleBinRequestBuilderPatchRequestConfiguration(RequestConfiguration[QueryParameters]):
|
212
|
+
"""
|
213
|
+
Configuration for the request such as headers, query parameters, and middleware options.
|
214
|
+
"""
|
215
|
+
warn("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.", DeprecationWarning)
|
216
|
+
|
217
|
+
|