diff --git a/msgraph_beta/generated/admin/windows/updates/resource_connections/item/resource_connection_item_request_builder.py b/msgraph_beta/generated/admin/windows/updates/resource_connections/item/resource_connection_item_request_builder.py index 1ea421096b8..4ad6b425074 100644 --- a/msgraph_beta/generated/admin/windows/updates/resource_connections/item/resource_connection_item_request_builder.py +++ b/msgraph_beta/generated/admin/windows/updates/resource_connections/item/resource_connection_item_request_builder.py @@ -29,10 +29,10 @@ def __init__(self,request_adapter: RequestAdapter, path_parameters: Union[str, D async def delete(self,request_configuration: Optional[RequestConfiguration] = None) -> None: """ - Delete a resourceConnection object. + Delete an operationalInsightsConnection object. param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: None - Find more info here: https://learn.microsoft.com/graph/api/windowsupdates-resourceconnection-delete?view=graph-rest-1.0 + Find more info here: https://learn.microsoft.com/graph/api/windowsupdates-operationalinsightsconnection-delete?view=graph-rest-1.0 """ request_info = self.to_delete_request_information( request_configuration @@ -48,10 +48,10 @@ async def delete(self,request_configuration: Optional[RequestConfiguration] = No async def get(self,request_configuration: Optional[RequestConfiguration] = None) -> Optional[ResourceConnection]: """ - Read the properties and relationships of a resourceConnection object. + Read the properties and relationships of an operationalInsightsConnection object. param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: Optional[ResourceConnection] - Find more info here: https://learn.microsoft.com/graph/api/windowsupdates-resourceconnection-get?view=graph-rest-1.0 + Find more info here: https://learn.microsoft.com/graph/api/windowsupdates-operationalinsightsconnection-get?view=graph-rest-1.0 """ request_info = self.to_get_request_information( request_configuration @@ -92,7 +92,7 @@ async def patch(self,body: Optional[ResourceConnection] = None, request_configur def to_delete_request_information(self,request_configuration: Optional[RequestConfiguration] = None) -> RequestInformation: """ - Delete a resourceConnection object. + Delete an operationalInsightsConnection object. param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: RequestInformation """ @@ -103,7 +103,7 @@ def to_delete_request_information(self,request_configuration: Optional[RequestCo def to_get_request_information(self,request_configuration: Optional[RequestConfiguration] = None) -> RequestInformation: """ - Read the properties and relationships of a resourceConnection object. + Read the properties and relationships of an operationalInsightsConnection object. param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: RequestInformation """ @@ -140,7 +140,7 @@ def with_url(self,raw_url: Optional[str] = None) -> ResourceConnectionItemReques @dataclass class ResourceConnectionItemRequestBuilderGetQueryParameters(): """ - Read the properties and relationships of a resourceConnection object. + Read the properties and relationships of an operationalInsightsConnection object. """ def get_query_parameter(self,original_name: Optional[str] = None) -> str: """ diff --git a/msgraph_beta/generated/admin/windows/updates/updatable_assets/item/updatable_asset_item_request_builder.py b/msgraph_beta/generated/admin/windows/updates/updatable_assets/item/updatable_asset_item_request_builder.py index a1f9aaff1fb..9a4738915bb 100644 --- a/msgraph_beta/generated/admin/windows/updates/updatable_assets/item/updatable_asset_item_request_builder.py +++ b/msgraph_beta/generated/admin/windows/updates/updatable_assets/item/updatable_asset_item_request_builder.py @@ -33,10 +33,10 @@ def __init__(self,request_adapter: RequestAdapter, path_parameters: Union[str, D async def delete(self,request_configuration: Optional[RequestConfiguration] = None) -> None: """ - Delete an updatableAsset object. + Delete an updatableAssetGroup object. When an updatableAssetGroup object, its member updatableAsset objects are not deleted. param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: None - Find more info here: https://learn.microsoft.com/graph/api/windowsupdates-updatableasset-delete?view=graph-rest-1.0 + Find more info here: https://learn.microsoft.com/graph/api/windowsupdates-updatableassetgroup-delete?view=graph-rest-1.0 """ request_info = self.to_delete_request_information( request_configuration @@ -96,7 +96,7 @@ async def patch(self,body: Optional[UpdatableAsset] = None, request_configuratio def to_delete_request_information(self,request_configuration: Optional[RequestConfiguration] = None) -> RequestInformation: """ - Delete an updatableAsset object. + Delete an updatableAssetGroup object. When an updatableAssetGroup object, its member updatableAsset objects are not deleted. param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: RequestInformation """ diff --git a/msgraph_beta/generated/admin/windows/updates/update_policies/item/compliance_changes/item/compliance_change_item_request_builder.py b/msgraph_beta/generated/admin/windows/updates/update_policies/item/compliance_changes/item/compliance_change_item_request_builder.py index cbb3f7dd9e7..2b4afb618dd 100644 --- a/msgraph_beta/generated/admin/windows/updates/update_policies/item/compliance_changes/item/compliance_change_item_request_builder.py +++ b/msgraph_beta/generated/admin/windows/updates/update_policies/item/compliance_changes/item/compliance_change_item_request_builder.py @@ -70,11 +70,11 @@ async def get(self,request_configuration: Optional[RequestConfiguration] = None) async def patch(self,body: Optional[ComplianceChange] = None, request_configuration: Optional[RequestConfiguration] = None) -> Optional[ComplianceChange]: """ - Update the properties of a contentApproval object. + Update the properties of a complianceChange object. param body: The request body param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: Optional[ComplianceChange] - Find more info here: https://learn.microsoft.com/graph/api/windowsupdates-contentapproval-update?view=graph-rest-1.0 + Find more info here: https://learn.microsoft.com/graph/api/windowsupdates-compliancechange-update?view=graph-rest-1.0 """ if not body: raise TypeError("body cannot be null.") @@ -116,7 +116,7 @@ def to_get_request_information(self,request_configuration: Optional[RequestConfi def to_patch_request_information(self,body: Optional[ComplianceChange] = None, request_configuration: Optional[RequestConfiguration] = None) -> RequestInformation: """ - Update the properties of a contentApproval object. + Update the properties of a complianceChange object. param body: The request body param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: RequestInformation diff --git a/msgraph_beta/generated/app/online_meetings/item/registration/registration_request_builder.py b/msgraph_beta/generated/app/online_meetings/item/registration/registration_request_builder.py index 241f189a022..ab192b95c36 100644 --- a/msgraph_beta/generated/app/online_meetings/item/registration/registration_request_builder.py +++ b/msgraph_beta/generated/app/online_meetings/item/registration/registration_request_builder.py @@ -31,10 +31,10 @@ def __init__(self,request_adapter: RequestAdapter, path_parameters: Union[str, D async def delete(self,request_configuration: Optional[RequestConfiguration] = None) -> None: """ - Disable and delete the meetingRegistration of an onlineMeeting on behalf of the organizer. + Disable and delete the externalMeetingRegistration of an onlineMeeting. param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: None - Find more info here: https://learn.microsoft.com/graph/api/meetingregistration-delete?view=graph-rest-1.0 + Find more info here: https://learn.microsoft.com/graph/api/externalmeetingregistration-delete?view=graph-rest-1.0 """ request_info = self.to_delete_request_information( request_configuration @@ -95,7 +95,7 @@ async def patch(self,body: Optional[MeetingRegistration] = None, request_configu def to_delete_request_information(self,request_configuration: Optional[RequestConfiguration] = None) -> RequestInformation: """ - Disable and delete the meetingRegistration of an onlineMeeting on behalf of the organizer. + Disable and delete the externalMeetingRegistration of an onlineMeeting. param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: RequestInformation """ diff --git a/msgraph_beta/generated/app_catalogs/teams_apps/item/app_definitions/item/dashboard_cards/dashboard_cards_request_builder.py b/msgraph_beta/generated/app_catalogs/teams_apps/item/app_definitions/item/dashboard_cards/dashboard_cards_request_builder.py index 504744a04b3..1715ba2ddf1 100644 --- a/msgraph_beta/generated/app_catalogs/teams_apps/item/app_definitions/item/dashboard_cards/dashboard_cards_request_builder.py +++ b/msgraph_beta/generated/app_catalogs/teams_apps/item/app_definitions/item/dashboard_cards/dashboard_cards_request_builder.py @@ -46,7 +46,7 @@ def by_teams_app_dashboard_card_definition_id(self,teams_app_dashboard_card_defi async def get(self,request_configuration: Optional[RequestConfiguration] = None) -> Optional[TeamsAppDashboardCardDefinitionCollectionResponse]: """ - Get dashboardCards from appCatalogs + Dashboard cards specified in the Teams app manifest. param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: Optional[TeamsAppDashboardCardDefinitionCollectionResponse] """ @@ -89,7 +89,7 @@ async def post(self,body: Optional[TeamsAppDashboardCardDefinition] = None, requ def to_get_request_information(self,request_configuration: Optional[RequestConfiguration] = None) -> RequestInformation: """ - Get dashboardCards from appCatalogs + Dashboard cards specified in the Teams app manifest. param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: RequestInformation """ @@ -135,7 +135,7 @@ def count(self) -> CountRequestBuilder: @dataclass class DashboardCardsRequestBuilderGetQueryParameters(): """ - Get dashboardCards from appCatalogs + Dashboard cards specified in the Teams app manifest. """ def get_query_parameter(self,original_name: Optional[str] = None) -> str: """ diff --git a/msgraph_beta/generated/app_catalogs/teams_apps/item/app_definitions/item/dashboard_cards/item/teams_app_dashboard_card_definition_item_request_builder.py b/msgraph_beta/generated/app_catalogs/teams_apps/item/app_definitions/item/dashboard_cards/item/teams_app_dashboard_card_definition_item_request_builder.py index 27b96c33f09..4cf60f9776a 100644 --- a/msgraph_beta/generated/app_catalogs/teams_apps/item/app_definitions/item/dashboard_cards/item/teams_app_dashboard_card_definition_item_request_builder.py +++ b/msgraph_beta/generated/app_catalogs/teams_apps/item/app_definitions/item/dashboard_cards/item/teams_app_dashboard_card_definition_item_request_builder.py @@ -47,7 +47,7 @@ async def delete(self,request_configuration: Optional[RequestConfiguration] = No async def get(self,request_configuration: Optional[RequestConfiguration] = None) -> Optional[TeamsAppDashboardCardDefinition]: """ - Get dashboardCards from appCatalogs + Dashboard cards specified in the Teams app manifest. param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: Optional[TeamsAppDashboardCardDefinition] """ @@ -101,7 +101,7 @@ def to_delete_request_information(self,request_configuration: Optional[RequestCo def to_get_request_information(self,request_configuration: Optional[RequestConfiguration] = None) -> RequestInformation: """ - Get dashboardCards from appCatalogs + Dashboard cards specified in the Teams app manifest. param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: RequestInformation """ @@ -138,7 +138,7 @@ def with_url(self,raw_url: Optional[str] = None) -> TeamsAppDashboardCardDefinit @dataclass class TeamsAppDashboardCardDefinitionItemRequestBuilderGetQueryParameters(): """ - Get dashboardCards from appCatalogs + Dashboard cards specified in the Teams app manifest. """ def get_query_parameter(self,original_name: Optional[str] = None) -> str: """ diff --git a/msgraph_beta/generated/applications/item/application_item_request_builder.py b/msgraph_beta/generated/applications/item/application_item_request_builder.py index 9b8137dd08f..b546225896c 100644 --- a/msgraph_beta/generated/applications/item/application_item_request_builder.py +++ b/msgraph_beta/generated/applications/item/application_item_request_builder.py @@ -22,6 +22,7 @@ from .created_on_behalf_of.created_on_behalf_of_request_builder import CreatedOnBehalfOfRequestBuilder from .extension_properties.extension_properties_request_builder import ExtensionPropertiesRequestBuilder from .federated_identity_credentials.federated_identity_credentials_request_builder import FederatedIdentityCredentialsRequestBuilder + from .federated_identity_credentials_with_name.federated_identity_credentials_with_name_request_builder import FederatedIdentityCredentialsWithNameRequestBuilder from .get_member_groups.get_member_groups_request_builder import GetMemberGroupsRequestBuilder from .get_member_objects.get_member_objects_request_builder import GetMemberObjectsRequestBuilder from .home_realm_discovery_policies.home_realm_discovery_policies_request_builder import HomeRealmDiscoveryPoliciesRequestBuilder @@ -68,6 +69,18 @@ async def delete(self,request_configuration: Optional[RequestConfiguration] = No raise Exception("Http core is null") return await self.request_adapter.send_no_response_content_async(request_info, error_mapping) + def federated_identity_credentials_with_name(self,name: Optional[str] = None) -> FederatedIdentityCredentialsWithNameRequestBuilder: + """ + Provides operations to manage the federatedIdentityCredentials property of the microsoft.graph.application entity. + param name: Alternate key of federatedIdentityCredential + Returns: FederatedIdentityCredentialsWithNameRequestBuilder + """ + if not name: + raise TypeError("name cannot be null.") + from .federated_identity_credentials_with_name.federated_identity_credentials_with_name_request_builder import FederatedIdentityCredentialsWithNameRequestBuilder + + return FederatedIdentityCredentialsWithNameRequestBuilder(self.request_adapter, self.path_parameters, name) + async def get(self,request_configuration: Optional[RequestConfiguration] = None) -> Optional[Application]: """ Get the properties and relationships of an application object. diff --git a/msgraph_beta/generated/applications/item/federated_identity_credentials_with_name/federated_identity_credentials_with_name_request_builder.py b/msgraph_beta/generated/applications/item/federated_identity_credentials_with_name/federated_identity_credentials_with_name_request_builder.py new file mode 100644 index 00000000000..535c4343dfc --- /dev/null +++ b/msgraph_beta/generated/applications/item/federated_identity_credentials_with_name/federated_identity_credentials_with_name_request_builder.py @@ -0,0 +1,170 @@ +from __future__ import annotations +from dataclasses import dataclass, field +from kiota_abstractions.base_request_builder import BaseRequestBuilder +from kiota_abstractions.base_request_configuration import RequestConfiguration +from kiota_abstractions.get_path_parameters import get_path_parameters +from kiota_abstractions.method import Method +from kiota_abstractions.request_adapter import RequestAdapter +from kiota_abstractions.request_information import RequestInformation +from kiota_abstractions.request_option import RequestOption +from kiota_abstractions.serialization import Parsable, ParsableFactory +from typing import Any, Callable, Dict, List, Optional, TYPE_CHECKING, Union + +if TYPE_CHECKING: + from ....models.federated_identity_credential import FederatedIdentityCredential + from ....models.o_data_errors.o_data_error import ODataError + +class FederatedIdentityCredentialsWithNameRequestBuilder(BaseRequestBuilder): + """ + Provides operations to manage the federatedIdentityCredentials property of the microsoft.graph.application entity. + """ + def __init__(self,request_adapter: RequestAdapter, path_parameters: Union[str, Dict[str, Any]], name: Optional[str] = None) -> None: + """ + Instantiates a new FederatedIdentityCredentialsWithNameRequestBuilder and sets the default values. + param name: Alternate key of federatedIdentityCredential + param path_parameters: The raw url or the url-template parameters for the request. + param request_adapter: The request adapter to use to execute the requests. + Returns: None + """ + if isinstance(path_parameters, dict): + path_parameters['name'] = str(name) + super().__init__(request_adapter, "{+baseurl}/applications/{application%2Did}/federatedIdentityCredentials(name='{name}'){?%24expand,%24select}", path_parameters) + + async def delete(self,request_configuration: Optional[RequestConfiguration] = None) -> None: + """ + Deletes a federatedIdentityCredential object from an application. + param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. + Returns: None + Find more info here: https://learn.microsoft.com/graph/api/federatedidentitycredential-delete?view=graph-rest-1.0 + """ + request_info = self.to_delete_request_information( + request_configuration + ) + from ....models.o_data_errors.o_data_error import ODataError + + error_mapping: Dict[str, ParsableFactory] = { + "XXX": ODataError, + } + if not self.request_adapter: + raise Exception("Http core is null") + return await self.request_adapter.send_no_response_content_async(request_info, error_mapping) + + async def get(self,request_configuration: Optional[RequestConfiguration] = None) -> Optional[FederatedIdentityCredential]: + """ + Read the properties and relationships of a federatedIdentityCredential object. + param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. + Returns: Optional[FederatedIdentityCredential] + Find more info here: https://learn.microsoft.com/graph/api/federatedidentitycredential-get?view=graph-rest-1.0 + """ + request_info = self.to_get_request_information( + request_configuration + ) + from ....models.o_data_errors.o_data_error import ODataError + + error_mapping: Dict[str, ParsableFactory] = { + "XXX": ODataError, + } + if not self.request_adapter: + raise Exception("Http core is null") + from ....models.federated_identity_credential import FederatedIdentityCredential + + return await self.request_adapter.send_async(request_info, FederatedIdentityCredential, error_mapping) + + async def patch(self,body: Optional[FederatedIdentityCredential] = None, request_configuration: Optional[RequestConfiguration] = None) -> Optional[FederatedIdentityCredential]: + """ + Update the properties of a federatedIdentityCredential object. + param body: The request body + param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. + Returns: Optional[FederatedIdentityCredential] + Find more info here: https://learn.microsoft.com/graph/api/federatedidentitycredential-update?view=graph-rest-1.0 + """ + if not body: + raise TypeError("body cannot be null.") + request_info = self.to_patch_request_information( + body, request_configuration + ) + from ....models.o_data_errors.o_data_error import ODataError + + error_mapping: Dict[str, ParsableFactory] = { + "XXX": ODataError, + } + if not self.request_adapter: + raise Exception("Http core is null") + from ....models.federated_identity_credential import FederatedIdentityCredential + + return await self.request_adapter.send_async(request_info, FederatedIdentityCredential, error_mapping) + + def to_delete_request_information(self,request_configuration: Optional[RequestConfiguration] = None) -> RequestInformation: + """ + Deletes a federatedIdentityCredential object from an application. + param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. + Returns: RequestInformation + """ + request_info = RequestInformation(Method.DELETE, '{+baseurl}/applications/{application%2Did}/federatedIdentityCredentials(name='{name}')', self.path_parameters) + request_info.configure(request_configuration) + request_info.headers.try_add("Accept", "application/json") + return request_info + + def to_get_request_information(self,request_configuration: Optional[RequestConfiguration] = None) -> RequestInformation: + """ + Read the properties and relationships of a federatedIdentityCredential object. + param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. + Returns: RequestInformation + """ + request_info = RequestInformation(Method.GET, self.url_template, self.path_parameters) + request_info.configure(request_configuration) + request_info.headers.try_add("Accept", "application/json") + return request_info + + def to_patch_request_information(self,body: Optional[FederatedIdentityCredential] = None, request_configuration: Optional[RequestConfiguration] = None) -> RequestInformation: + """ + Update the properties of a federatedIdentityCredential object. + param body: The request body + param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. + Returns: RequestInformation + """ + if not body: + raise TypeError("body cannot be null.") + request_info = RequestInformation(Method.PATCH, '{+baseurl}/applications/{application%2Did}/federatedIdentityCredentials(name='{name}')', self.path_parameters) + request_info.configure(request_configuration) + request_info.headers.try_add("Accept", "application/json") + request_info.set_content_from_parsable(self.request_adapter, "application/json", body) + return request_info + + def with_url(self,raw_url: Optional[str] = None) -> FederatedIdentityCredentialsWithNameRequestBuilder: + """ + Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + param raw_url: The raw URL to use for the request builder. + Returns: FederatedIdentityCredentialsWithNameRequestBuilder + """ + if not raw_url: + raise TypeError("raw_url cannot be null.") + return FederatedIdentityCredentialsWithNameRequestBuilder(self.request_adapter, raw_url) + + @dataclass + class FederatedIdentityCredentialsWithNameRequestBuilderGetQueryParameters(): + """ + Read the properties and relationships of a federatedIdentityCredential object. + """ + def get_query_parameter(self,original_name: Optional[str] = None) -> str: + """ + Maps the query parameters names to their encoded names for the URI template parsing. + param original_name: The original query parameter name in the class. + Returns: str + """ + if not original_name: + raise TypeError("original_name cannot be null.") + if original_name == "expand": + return "%24expand" + if original_name == "select": + return "%24select" + return original_name + + # Expand related entities + expand: Optional[List[str]] = None + + # Select properties to be returned + select: Optional[List[str]] = None + + + diff --git a/msgraph_beta/generated/base_graph_service_client.py b/msgraph_beta/generated/base_graph_service_client.py index f6c43267921..51cf362b3cc 100644 --- a/msgraph_beta/generated/base_graph_service_client.py +++ b/msgraph_beta/generated/base_graph_service_client.py @@ -5,6 +5,8 @@ from kiota_abstractions.request_adapter import RequestAdapter from kiota_abstractions.serialization import ParseNodeFactoryRegistry, SerializationWriterFactoryRegistry from kiota_abstractions.store import BackingStoreFactory, BackingStoreFactorySingleton +from kiota_serialization_form.form_parse_node_factory import FormParseNodeFactory +from kiota_serialization_form.form_serialization_writer_factory import FormSerializationWriterFactory from kiota_serialization_json.json_parse_node_factory import JsonParseNodeFactory from kiota_serialization_json.json_serialization_writer_factory import JsonSerializationWriterFactory from kiota_serialization_text.text_parse_node_factory import TextParseNodeFactory @@ -91,6 +93,7 @@ from .payload_response.payload_response_request_builder import PayloadResponseRequestBuilder from .permission_grants.permission_grants_request_builder import PermissionGrantsRequestBuilder from .places.places_request_builder import PlacesRequestBuilder + from .places_with_place_id.places_with_place_id_request_builder import PlacesWithPlaceIdRequestBuilder from .planner.planner_request_builder import PlannerRequestBuilder from .policies.policies_request_builder import PoliciesRequestBuilder from .print.print_request_builder import PrintRequestBuilder @@ -147,8 +150,10 @@ def __init__(self,request_adapter: RequestAdapter, backing_store: Optional[Backi super().__init__(request_adapter, "{+baseurl}", None) register_default_serializer(JsonSerializationWriterFactory) register_default_serializer(TextSerializationWriterFactory) + register_default_serializer(FormSerializationWriterFactory) register_default_deserializer(JsonParseNodeFactory) register_default_deserializer(TextParseNodeFactory) + register_default_deserializer(FormParseNodeFactory) if not self.request_adapter.base_url: self.request_adapter.base_url = "https://graph.microsoft.com/beta" self.path_parameters["base_url"] = self.request_adapter.base_url @@ -214,6 +219,18 @@ def groups_with_unique_name(self,unique_name: Optional[str] = None) -> GroupsWit return GroupsWithUniqueNameRequestBuilder(self.request_adapter, self.path_parameters, unique_name) + def places_with_place_id(self,place_id: Optional[str] = None) -> PlacesWithPlaceIdRequestBuilder: + """ + Provides operations to manage the collection of place entities. + param place_id: Alternate key of place + Returns: PlacesWithPlaceIdRequestBuilder + """ + if not place_id: + raise TypeError("place_id cannot be null.") + from .places_with_place_id.places_with_place_id_request_builder import PlacesWithPlaceIdRequestBuilder + + return PlacesWithPlaceIdRequestBuilder(self.request_adapter, self.path_parameters, place_id) + def service_principals_with_app_id(self,app_id: Optional[str] = None) -> ServicePrincipalsWithAppIdRequestBuilder: """ Provides operations to manage the collection of servicePrincipal entities. diff --git a/msgraph_beta/generated/chats/item/messages/item/replies/replies_request_builder.py b/msgraph_beta/generated/chats/item/messages/item/replies/replies_request_builder.py index 671d6478b90..cecc81958df 100644 --- a/msgraph_beta/generated/chats/item/messages/item/replies/replies_request_builder.py +++ b/msgraph_beta/generated/chats/item/messages/item/replies/replies_request_builder.py @@ -47,7 +47,7 @@ def by_chat_message_id1(self,chat_message_id1: str) -> ChatMessageItemRequestBui async def get(self,request_configuration: Optional[RequestConfiguration] = None) -> Optional[ChatMessageCollectionResponse]: """ - List all the replies to a message in a channel of a team. This method lists only the replies of the specified message, if any. To get the message itself, simply call get channel message. + List all the replies to a message in a channel of a team. This method lists only the replies of the specified message, if any. To get the message itself, call get channel message. param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: Optional[ChatMessageCollectionResponse] Find more info here: https://learn.microsoft.com/graph/api/chatmessage-list-replies?view=graph-rest-1.0 @@ -92,7 +92,7 @@ async def post(self,body: Optional[ChatMessage] = None, request_configuration: O def to_get_request_information(self,request_configuration: Optional[RequestConfiguration] = None) -> RequestInformation: """ - List all the replies to a message in a channel of a team. This method lists only the replies of the specified message, if any. To get the message itself, simply call get channel message. + List all the replies to a message in a channel of a team. This method lists only the replies of the specified message, if any. To get the message itself, call get channel message. param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: RequestInformation """ @@ -147,7 +147,7 @@ def delta(self) -> DeltaRequestBuilder: @dataclass class RepliesRequestBuilderGetQueryParameters(): """ - List all the replies to a message in a channel of a team. This method lists only the replies of the specified message, if any. To get the message itself, simply call get channel message. + List all the replies to a message in a channel of a team. This method lists only the replies of the specified message, if any. To get the message itself, call get channel message. """ def get_query_parameter(self,original_name: Optional[str] = None) -> str: """ diff --git a/msgraph_beta/generated/chats/item/permission_grants/permission_grants_request_builder.py b/msgraph_beta/generated/chats/item/permission_grants/permission_grants_request_builder.py index fba7256c261..ce1d67da878 100644 --- a/msgraph_beta/generated/chats/item/permission_grants/permission_grants_request_builder.py +++ b/msgraph_beta/generated/chats/item/permission_grants/permission_grants_request_builder.py @@ -46,7 +46,7 @@ def by_resource_specific_permission_grant_id(self,resource_specific_permission_g async def get(self,request_configuration: Optional[RequestConfiguration] = None) -> Optional[ResourceSpecificPermissionGrantCollectionResponse]: """ - List all resource-specific permission grants on the chat. This list specifies the Microsoft Entra apps that have access to the chat, along with the corresponding kind of resource-specific access that each app has. + List all resource-specific permission grants on the chat. This list specifies the Microsoft Entra apps that have access to the chat, along with the corresponding resource-specific access that each app has. param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: Optional[ResourceSpecificPermissionGrantCollectionResponse] Find more info here: https://learn.microsoft.com/graph/api/chat-list-permissiongrants?view=graph-rest-1.0 @@ -90,7 +90,7 @@ async def post(self,body: Optional[ResourceSpecificPermissionGrant] = None, requ def to_get_request_information(self,request_configuration: Optional[RequestConfiguration] = None) -> RequestInformation: """ - List all resource-specific permission grants on the chat. This list specifies the Microsoft Entra apps that have access to the chat, along with the corresponding kind of resource-specific access that each app has. + List all resource-specific permission grants on the chat. This list specifies the Microsoft Entra apps that have access to the chat, along with the corresponding resource-specific access that each app has. param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: RequestInformation """ @@ -136,7 +136,7 @@ def count(self) -> CountRequestBuilder: @dataclass class PermissionGrantsRequestBuilderGetQueryParameters(): """ - List all resource-specific permission grants on the chat. This list specifies the Microsoft Entra apps that have access to the chat, along with the corresponding kind of resource-specific access that each app has. + List all resource-specific permission grants on the chat. This list specifies the Microsoft Entra apps that have access to the chat, along with the corresponding resource-specific access that each app has. """ def get_query_parameter(self,original_name: Optional[str] = None) -> str: """ diff --git a/msgraph_beta/generated/chats/item/tabs/item/teams_tab_item_request_builder.py b/msgraph_beta/generated/chats/item/tabs/item/teams_tab_item_request_builder.py index e48399899f8..39609f5ebfc 100644 --- a/msgraph_beta/generated/chats/item/tabs/item/teams_tab_item_request_builder.py +++ b/msgraph_beta/generated/chats/item/tabs/item/teams_tab_item_request_builder.py @@ -70,7 +70,7 @@ async def get(self,request_configuration: Optional[RequestConfiguration] = None) async def patch(self,body: Optional[TeamsTab] = None, request_configuration: Optional[RequestConfiguration] = None) -> Optional[TeamsTab]: """ - Update the properties of the specified tab in a chat. This can be used to configure the content of the tab. + Update the properties of the specified tab in a chat. This API can be used to configure the content of the tab. param body: The request body param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: Optional[TeamsTab] @@ -116,7 +116,7 @@ def to_get_request_information(self,request_configuration: Optional[RequestConfi def to_patch_request_information(self,body: Optional[TeamsTab] = None, request_configuration: Optional[RequestConfiguration] = None) -> RequestInformation: """ - Update the properties of the specified tab in a chat. This can be used to configure the content of the tab. + Update the properties of the specified tab in a chat. This API can be used to configure the content of the tab. param body: The request body param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: RequestInformation diff --git a/msgraph_beta/generated/communications/online_meetings/item/registration/registration_request_builder.py b/msgraph_beta/generated/communications/online_meetings/item/registration/registration_request_builder.py index e150bf4828a..4c8351ce18f 100644 --- a/msgraph_beta/generated/communications/online_meetings/item/registration/registration_request_builder.py +++ b/msgraph_beta/generated/communications/online_meetings/item/registration/registration_request_builder.py @@ -31,10 +31,10 @@ def __init__(self,request_adapter: RequestAdapter, path_parameters: Union[str, D async def delete(self,request_configuration: Optional[RequestConfiguration] = None) -> None: """ - Disable and delete the meetingRegistration of an onlineMeeting on behalf of the organizer. + Disable and delete the externalMeetingRegistration of an onlineMeeting. param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: None - Find more info here: https://learn.microsoft.com/graph/api/meetingregistration-delete?view=graph-rest-1.0 + Find more info here: https://learn.microsoft.com/graph/api/externalmeetingregistration-delete?view=graph-rest-1.0 """ request_info = self.to_delete_request_information( request_configuration @@ -95,7 +95,7 @@ async def patch(self,body: Optional[MeetingRegistration] = None, request_configu def to_delete_request_information(self,request_configuration: Optional[RequestConfiguration] = None) -> RequestInformation: """ - Disable and delete the meetingRegistration of an onlineMeeting on behalf of the organizer. + Disable and delete the externalMeetingRegistration of an onlineMeeting. param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: RequestInformation """ diff --git a/msgraph_beta/generated/directory/directory_request_builder.py b/msgraph_beta/generated/directory/directory_request_builder.py index 8b0dd9ea322..dc0ea0a28a9 100644 --- a/msgraph_beta/generated/directory/directory_request_builder.py +++ b/msgraph_beta/generated/directory/directory_request_builder.py @@ -19,12 +19,14 @@ from .custom_security_attribute_definitions.custom_security_attribute_definitions_request_builder import CustomSecurityAttributeDefinitionsRequestBuilder from .deleted_items.deleted_items_request_builder import DeletedItemsRequestBuilder from .device_local_credentials.device_local_credentials_request_builder import DeviceLocalCredentialsRequestBuilder + from .external_user_profiles.external_user_profiles_request_builder import ExternalUserProfilesRequestBuilder from .feature_rollout_policies.feature_rollout_policies_request_builder import FeatureRolloutPoliciesRequestBuilder from .federation_configurations.federation_configurations_request_builder import FederationConfigurationsRequestBuilder from .impacted_resources.impacted_resources_request_builder import ImpactedResourcesRequestBuilder from .inbound_shared_user_profiles.inbound_shared_user_profiles_request_builder import InboundSharedUserProfilesRequestBuilder from .on_premises_synchronization.on_premises_synchronization_request_builder import OnPremisesSynchronizationRequestBuilder from .outbound_shared_user_profiles.outbound_shared_user_profiles_request_builder import OutboundSharedUserProfilesRequestBuilder + from .pending_external_user_profiles.pending_external_user_profiles_request_builder import PendingExternalUserProfilesRequestBuilder from .recommendations.recommendations_request_builder import RecommendationsRequestBuilder from .shared_email_domains.shared_email_domains_request_builder import SharedEmailDomainsRequestBuilder from .subscriptions.subscriptions_request_builder import SubscriptionsRequestBuilder @@ -201,6 +203,15 @@ def device_local_credentials(self) -> DeviceLocalCredentialsRequestBuilder: return DeviceLocalCredentialsRequestBuilder(self.request_adapter, self.path_parameters) + @property + def external_user_profiles(self) -> ExternalUserProfilesRequestBuilder: + """ + Provides operations to manage the externalUserProfiles property of the microsoft.graph.directory entity. + """ + from .external_user_profiles.external_user_profiles_request_builder import ExternalUserProfilesRequestBuilder + + return ExternalUserProfilesRequestBuilder(self.request_adapter, self.path_parameters) + @property def feature_rollout_policies(self) -> FeatureRolloutPoliciesRequestBuilder: """ @@ -255,6 +266,15 @@ def outbound_shared_user_profiles(self) -> OutboundSharedUserProfilesRequestBuil return OutboundSharedUserProfilesRequestBuilder(self.request_adapter, self.path_parameters) + @property + def pending_external_user_profiles(self) -> PendingExternalUserProfilesRequestBuilder: + """ + Provides operations to manage the pendingExternalUserProfiles property of the microsoft.graph.directory entity. + """ + from .pending_external_user_profiles.pending_external_user_profiles_request_builder import PendingExternalUserProfilesRequestBuilder + + return PendingExternalUserProfilesRequestBuilder(self.request_adapter, self.path_parameters) + @property def recommendations(self) -> RecommendationsRequestBuilder: """ diff --git a/msgraph_beta/generated/directory/external_user_profiles/count/count_request_builder.py b/msgraph_beta/generated/directory/external_user_profiles/count/count_request_builder.py new file mode 100644 index 00000000000..1c87b1eeac3 --- /dev/null +++ b/msgraph_beta/generated/directory/external_user_profiles/count/count_request_builder.py @@ -0,0 +1,94 @@ +from __future__ import annotations +from dataclasses import dataclass, field +from kiota_abstractions.base_request_builder import BaseRequestBuilder +from kiota_abstractions.base_request_configuration import RequestConfiguration +from kiota_abstractions.get_path_parameters import get_path_parameters +from kiota_abstractions.method import Method +from kiota_abstractions.request_adapter import RequestAdapter +from kiota_abstractions.request_information import RequestInformation +from kiota_abstractions.request_option import RequestOption +from kiota_abstractions.serialization import Parsable, ParsableFactory +from typing import Any, Callable, Dict, List, Optional, TYPE_CHECKING, Union + +if TYPE_CHECKING: + from ....models.o_data_errors.o_data_error import ODataError + +class CountRequestBuilder(BaseRequestBuilder): + """ + Provides operations to count the resources in the collection. + """ + def __init__(self,request_adapter: RequestAdapter, path_parameters: Union[str, Dict[str, Any]]) -> None: + """ + Instantiates a new CountRequestBuilder and sets the default values. + param path_parameters: The raw url or the url-template parameters for the request. + param request_adapter: The request adapter to use to execute the requests. + Returns: None + """ + super().__init__(request_adapter, "{+baseurl}/directory/externalUserProfiles/$count{?%24filter,%24search}", path_parameters) + + async def get(self,request_configuration: Optional[RequestConfiguration] = None) -> Optional[int]: + """ + Get the number of the resource + param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. + Returns: Optional[int] + """ + request_info = self.to_get_request_information( + request_configuration + ) + from ....models.o_data_errors.o_data_error import ODataError + + error_mapping: Dict[str, ParsableFactory] = { + "XXX": ODataError, + } + if not self.request_adapter: + raise Exception("Http core is null") + return await self.request_adapter.send_primitive_async(request_info, "int", error_mapping) + + def to_get_request_information(self,request_configuration: Optional[RequestConfiguration] = None) -> RequestInformation: + """ + Get the number of the resource + param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. + Returns: RequestInformation + """ + request_info = RequestInformation(Method.GET, self.url_template, self.path_parameters) + request_info.configure(request_configuration) + request_info.headers.try_add("Accept", "text/plain;q=0.9") + return request_info + + def with_url(self,raw_url: Optional[str] = None) -> CountRequestBuilder: + """ + Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + param raw_url: The raw URL to use for the request builder. + Returns: CountRequestBuilder + """ + if not raw_url: + raise TypeError("raw_url cannot be null.") + return CountRequestBuilder(self.request_adapter, raw_url) + + @dataclass + class CountRequestBuilderGetQueryParameters(): + """ + Get the number of the resource + """ + def get_query_parameter(self,original_name: Optional[str] = None) -> str: + """ + Maps the query parameters names to their encoded names for the URI template parsing. + param original_name: The original query parameter name in the class. + Returns: str + """ + if not original_name: + raise TypeError("original_name cannot be null.") + if original_name == "filter": + return "%24filter" + if original_name == "search": + return "%24search" + return original_name + + # Filter items by property values + filter: Optional[str] = None + + # Search items by search phrases + search: Optional[str] = None + + + diff --git a/msgraph_beta/generated/directory/external_user_profiles/external_user_profiles_request_builder.py b/msgraph_beta/generated/directory/external_user_profiles/external_user_profiles_request_builder.py new file mode 100644 index 00000000000..a998b72fa48 --- /dev/null +++ b/msgraph_beta/generated/directory/external_user_profiles/external_user_profiles_request_builder.py @@ -0,0 +1,192 @@ +from __future__ import annotations +from dataclasses import dataclass, field +from kiota_abstractions.base_request_builder import BaseRequestBuilder +from kiota_abstractions.base_request_configuration import RequestConfiguration +from kiota_abstractions.get_path_parameters import get_path_parameters +from kiota_abstractions.method import Method +from kiota_abstractions.request_adapter import RequestAdapter +from kiota_abstractions.request_information import RequestInformation +from kiota_abstractions.request_option import RequestOption +from kiota_abstractions.serialization import Parsable, ParsableFactory +from typing import Any, Callable, Dict, List, Optional, TYPE_CHECKING, Union + +if TYPE_CHECKING: + from ...models.external_user_profile import ExternalUserProfile + from ...models.external_user_profile_collection_response import ExternalUserProfileCollectionResponse + from ...models.o_data_errors.o_data_error import ODataError + from .count.count_request_builder import CountRequestBuilder + from .item.external_user_profile_item_request_builder import ExternalUserProfileItemRequestBuilder + +class ExternalUserProfilesRequestBuilder(BaseRequestBuilder): + """ + Provides operations to manage the externalUserProfiles property of the microsoft.graph.directory entity. + """ + def __init__(self,request_adapter: RequestAdapter, path_parameters: Union[str, Dict[str, Any]]) -> None: + """ + Instantiates a new ExternalUserProfilesRequestBuilder and sets the default values. + param path_parameters: The raw url or the url-template parameters for the request. + param request_adapter: The request adapter to use to execute the requests. + Returns: None + """ + super().__init__(request_adapter, "{+baseurl}/directory/externalUserProfiles{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", path_parameters) + + def by_external_user_profile_id(self,external_user_profile_id: str) -> ExternalUserProfileItemRequestBuilder: + """ + Provides operations to manage the externalUserProfiles property of the microsoft.graph.directory entity. + param external_user_profile_id: The unique identifier of externalUserProfile + Returns: ExternalUserProfileItemRequestBuilder + """ + if not external_user_profile_id: + raise TypeError("external_user_profile_id cannot be null.") + from .item.external_user_profile_item_request_builder import ExternalUserProfileItemRequestBuilder + + url_tpl_params = get_path_parameters(self.path_parameters) + url_tpl_params["externalUserProfile%2Did"] = external_user_profile_id + return ExternalUserProfileItemRequestBuilder(self.request_adapter, url_tpl_params) + + async def get(self,request_configuration: Optional[RequestConfiguration] = None) -> Optional[ExternalUserProfileCollectionResponse]: + """ + Retrieve the properties of all externalUserProfiles + param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. + Returns: Optional[ExternalUserProfileCollectionResponse] + Find more info here: https://learn.microsoft.com/graph/api/directory-list-externaluserprofiles?view=graph-rest-1.0 + """ + request_info = self.to_get_request_information( + request_configuration + ) + from ...models.o_data_errors.o_data_error import ODataError + + error_mapping: Dict[str, ParsableFactory] = { + "XXX": ODataError, + } + if not self.request_adapter: + raise Exception("Http core is null") + from ...models.external_user_profile_collection_response import ExternalUserProfileCollectionResponse + + return await self.request_adapter.send_async(request_info, ExternalUserProfileCollectionResponse, error_mapping) + + async def post(self,body: Optional[ExternalUserProfile] = None, request_configuration: Optional[RequestConfiguration] = None) -> Optional[ExternalUserProfile]: + """ + Create new navigation property to externalUserProfiles for directory + param body: The request body + param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. + Returns: Optional[ExternalUserProfile] + """ + if not body: + raise TypeError("body cannot be null.") + request_info = self.to_post_request_information( + body, request_configuration + ) + from ...models.o_data_errors.o_data_error import ODataError + + error_mapping: Dict[str, ParsableFactory] = { + "XXX": ODataError, + } + if not self.request_adapter: + raise Exception("Http core is null") + from ...models.external_user_profile import ExternalUserProfile + + return await self.request_adapter.send_async(request_info, ExternalUserProfile, error_mapping) + + def to_get_request_information(self,request_configuration: Optional[RequestConfiguration] = None) -> RequestInformation: + """ + Retrieve the properties of all externalUserProfiles + param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. + Returns: RequestInformation + """ + request_info = RequestInformation(Method.GET, self.url_template, self.path_parameters) + request_info.configure(request_configuration) + request_info.headers.try_add("Accept", "application/json") + return request_info + + def to_post_request_information(self,body: Optional[ExternalUserProfile] = None, request_configuration: Optional[RequestConfiguration] = None) -> RequestInformation: + """ + Create new navigation property to externalUserProfiles for directory + param body: The request body + param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. + Returns: RequestInformation + """ + if not body: + raise TypeError("body cannot be null.") + request_info = RequestInformation(Method.POST, '{+baseurl}/directory/externalUserProfiles', self.path_parameters) + request_info.configure(request_configuration) + request_info.headers.try_add("Accept", "application/json") + request_info.set_content_from_parsable(self.request_adapter, "application/json", body) + return request_info + + def with_url(self,raw_url: Optional[str] = None) -> ExternalUserProfilesRequestBuilder: + """ + Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + param raw_url: The raw URL to use for the request builder. + Returns: ExternalUserProfilesRequestBuilder + """ + if not raw_url: + raise TypeError("raw_url cannot be null.") + return ExternalUserProfilesRequestBuilder(self.request_adapter, raw_url) + + @property + def count(self) -> CountRequestBuilder: + """ + Provides operations to count the resources in the collection. + """ + from .count.count_request_builder import CountRequestBuilder + + return CountRequestBuilder(self.request_adapter, self.path_parameters) + + @dataclass + class ExternalUserProfilesRequestBuilderGetQueryParameters(): + """ + Retrieve the properties of all externalUserProfiles + """ + def get_query_parameter(self,original_name: Optional[str] = None) -> str: + """ + Maps the query parameters names to their encoded names for the URI template parsing. + param original_name: The original query parameter name in the class. + Returns: str + """ + if not original_name: + raise TypeError("original_name cannot be null.") + if original_name == "count": + return "%24count" + if original_name == "expand": + return "%24expand" + if original_name == "filter": + return "%24filter" + if original_name == "orderby": + return "%24orderby" + if original_name == "search": + return "%24search" + if original_name == "select": + return "%24select" + if original_name == "skip": + return "%24skip" + if original_name == "top": + return "%24top" + return original_name + + # Include count of items + count: Optional[bool] = None + + # Expand related entities + expand: Optional[List[str]] = None + + # Filter items by property values + filter: Optional[str] = None + + # Order items by property values + orderby: Optional[List[str]] = None + + # Search items by search phrases + search: Optional[str] = None + + # Select properties to be returned + select: Optional[List[str]] = None + + # Skip the first n items + skip: Optional[int] = None + + # Show only the first n items + top: Optional[int] = None + + + diff --git a/msgraph_beta/generated/directory/external_user_profiles/item/external_user_profile_item_request_builder.py b/msgraph_beta/generated/directory/external_user_profiles/item/external_user_profile_item_request_builder.py new file mode 100644 index 00000000000..40b85101418 --- /dev/null +++ b/msgraph_beta/generated/directory/external_user_profiles/item/external_user_profile_item_request_builder.py @@ -0,0 +1,167 @@ +from __future__ import annotations +from dataclasses import dataclass, field +from kiota_abstractions.base_request_builder import BaseRequestBuilder +from kiota_abstractions.base_request_configuration import RequestConfiguration +from kiota_abstractions.get_path_parameters import get_path_parameters +from kiota_abstractions.method import Method +from kiota_abstractions.request_adapter import RequestAdapter +from kiota_abstractions.request_information import RequestInformation +from kiota_abstractions.request_option import RequestOption +from kiota_abstractions.serialization import Parsable, ParsableFactory +from typing import Any, Callable, Dict, List, Optional, TYPE_CHECKING, Union + +if TYPE_CHECKING: + from ....models.external_user_profile import ExternalUserProfile + from ....models.o_data_errors.o_data_error import ODataError + +class ExternalUserProfileItemRequestBuilder(BaseRequestBuilder): + """ + Provides operations to manage the externalUserProfiles property of the microsoft.graph.directory entity. + """ + def __init__(self,request_adapter: RequestAdapter, path_parameters: Union[str, Dict[str, Any]]) -> None: + """ + Instantiates a new ExternalUserProfileItemRequestBuilder and sets the default values. + param path_parameters: The raw url or the url-template parameters for the request. + param request_adapter: The request adapter to use to execute the requests. + Returns: None + """ + super().__init__(request_adapter, "{+baseurl}/directory/externalUserProfiles/{externalUserProfile%2Did}{?%24expand,%24select}", path_parameters) + + async def delete(self,request_configuration: Optional[RequestConfiguration] = None) -> None: + """ + Delete an externalUserProfile object. Note: To permanently delete the externalUserProfile, follow permanently delete an item. To restore an externalUserProfile, follow restore a deleted item. + param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. + Returns: None + Find more info here: https://learn.microsoft.com/graph/api/directory-delete-externaluserprofiles?view=graph-rest-1.0 + """ + request_info = self.to_delete_request_information( + request_configuration + ) + from ....models.o_data_errors.o_data_error import ODataError + + error_mapping: Dict[str, ParsableFactory] = { + "XXX": ODataError, + } + if not self.request_adapter: + raise Exception("Http core is null") + return await self.request_adapter.send_no_response_content_async(request_info, error_mapping) + + async def get(self,request_configuration: Optional[RequestConfiguration] = None) -> Optional[ExternalUserProfile]: + """ + Retrieve the properties of a specific externalUserProfile. + param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. + Returns: Optional[ExternalUserProfile] + Find more info here: https://learn.microsoft.com/graph/api/externaluserprofile-get?view=graph-rest-1.0 + """ + request_info = self.to_get_request_information( + request_configuration + ) + from ....models.o_data_errors.o_data_error import ODataError + + error_mapping: Dict[str, ParsableFactory] = { + "XXX": ODataError, + } + if not self.request_adapter: + raise Exception("Http core is null") + from ....models.external_user_profile import ExternalUserProfile + + return await self.request_adapter.send_async(request_info, ExternalUserProfile, error_mapping) + + async def patch(self,body: Optional[ExternalUserProfile] = None, request_configuration: Optional[RequestConfiguration] = None) -> Optional[ExternalUserProfile]: + """ + Update the properties of a externalUserProfile object. + param body: The request body + param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. + Returns: Optional[ExternalUserProfile] + Find more info here: https://learn.microsoft.com/graph/api/externaluserprofile-update?view=graph-rest-1.0 + """ + if not body: + raise TypeError("body cannot be null.") + request_info = self.to_patch_request_information( + body, request_configuration + ) + from ....models.o_data_errors.o_data_error import ODataError + + error_mapping: Dict[str, ParsableFactory] = { + "XXX": ODataError, + } + if not self.request_adapter: + raise Exception("Http core is null") + from ....models.external_user_profile import ExternalUserProfile + + return await self.request_adapter.send_async(request_info, ExternalUserProfile, error_mapping) + + def to_delete_request_information(self,request_configuration: Optional[RequestConfiguration] = None) -> RequestInformation: + """ + Delete an externalUserProfile object. Note: To permanently delete the externalUserProfile, follow permanently delete an item. To restore an externalUserProfile, follow restore a deleted item. + param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. + Returns: RequestInformation + """ + request_info = RequestInformation(Method.DELETE, '{+baseurl}/directory/externalUserProfiles/{externalUserProfile%2Did}', self.path_parameters) + request_info.configure(request_configuration) + request_info.headers.try_add("Accept", "application/json") + return request_info + + def to_get_request_information(self,request_configuration: Optional[RequestConfiguration] = None) -> RequestInformation: + """ + Retrieve the properties of a specific externalUserProfile. + param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. + Returns: RequestInformation + """ + request_info = RequestInformation(Method.GET, self.url_template, self.path_parameters) + request_info.configure(request_configuration) + request_info.headers.try_add("Accept", "application/json") + return request_info + + def to_patch_request_information(self,body: Optional[ExternalUserProfile] = None, request_configuration: Optional[RequestConfiguration] = None) -> RequestInformation: + """ + Update the properties of a externalUserProfile object. + param body: The request body + param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. + Returns: RequestInformation + """ + if not body: + raise TypeError("body cannot be null.") + request_info = RequestInformation(Method.PATCH, '{+baseurl}/directory/externalUserProfiles/{externalUserProfile%2Did}', self.path_parameters) + request_info.configure(request_configuration) + request_info.headers.try_add("Accept", "application/json") + request_info.set_content_from_parsable(self.request_adapter, "application/json", body) + return request_info + + def with_url(self,raw_url: Optional[str] = None) -> ExternalUserProfileItemRequestBuilder: + """ + Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + param raw_url: The raw URL to use for the request builder. + Returns: ExternalUserProfileItemRequestBuilder + """ + if not raw_url: + raise TypeError("raw_url cannot be null.") + return ExternalUserProfileItemRequestBuilder(self.request_adapter, raw_url) + + @dataclass + class ExternalUserProfileItemRequestBuilderGetQueryParameters(): + """ + Retrieve the properties of a specific externalUserProfile. + """ + def get_query_parameter(self,original_name: Optional[str] = None) -> str: + """ + Maps the query parameters names to their encoded names for the URI template parsing. + param original_name: The original query parameter name in the class. + Returns: str + """ + if not original_name: + raise TypeError("original_name cannot be null.") + if original_name == "expand": + return "%24expand" + if original_name == "select": + return "%24select" + return original_name + + # Expand related entities + expand: Optional[List[str]] = None + + # Select properties to be returned + select: Optional[List[str]] = None + + + diff --git a/msgraph_beta/generated/directory/pending_external_user_profiles/count/count_request_builder.py b/msgraph_beta/generated/directory/pending_external_user_profiles/count/count_request_builder.py new file mode 100644 index 00000000000..817743278fe --- /dev/null +++ b/msgraph_beta/generated/directory/pending_external_user_profiles/count/count_request_builder.py @@ -0,0 +1,94 @@ +from __future__ import annotations +from dataclasses import dataclass, field +from kiota_abstractions.base_request_builder import BaseRequestBuilder +from kiota_abstractions.base_request_configuration import RequestConfiguration +from kiota_abstractions.get_path_parameters import get_path_parameters +from kiota_abstractions.method import Method +from kiota_abstractions.request_adapter import RequestAdapter +from kiota_abstractions.request_information import RequestInformation +from kiota_abstractions.request_option import RequestOption +from kiota_abstractions.serialization import Parsable, ParsableFactory +from typing import Any, Callable, Dict, List, Optional, TYPE_CHECKING, Union + +if TYPE_CHECKING: + from ....models.o_data_errors.o_data_error import ODataError + +class CountRequestBuilder(BaseRequestBuilder): + """ + Provides operations to count the resources in the collection. + """ + def __init__(self,request_adapter: RequestAdapter, path_parameters: Union[str, Dict[str, Any]]) -> None: + """ + Instantiates a new CountRequestBuilder and sets the default values. + param path_parameters: The raw url or the url-template parameters for the request. + param request_adapter: The request adapter to use to execute the requests. + Returns: None + """ + super().__init__(request_adapter, "{+baseurl}/directory/pendingExternalUserProfiles/$count{?%24filter,%24search}", path_parameters) + + async def get(self,request_configuration: Optional[RequestConfiguration] = None) -> Optional[int]: + """ + Get the number of the resource + param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. + Returns: Optional[int] + """ + request_info = self.to_get_request_information( + request_configuration + ) + from ....models.o_data_errors.o_data_error import ODataError + + error_mapping: Dict[str, ParsableFactory] = { + "XXX": ODataError, + } + if not self.request_adapter: + raise Exception("Http core is null") + return await self.request_adapter.send_primitive_async(request_info, "int", error_mapping) + + def to_get_request_information(self,request_configuration: Optional[RequestConfiguration] = None) -> RequestInformation: + """ + Get the number of the resource + param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. + Returns: RequestInformation + """ + request_info = RequestInformation(Method.GET, self.url_template, self.path_parameters) + request_info.configure(request_configuration) + request_info.headers.try_add("Accept", "text/plain;q=0.9") + return request_info + + def with_url(self,raw_url: Optional[str] = None) -> CountRequestBuilder: + """ + Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + param raw_url: The raw URL to use for the request builder. + Returns: CountRequestBuilder + """ + if not raw_url: + raise TypeError("raw_url cannot be null.") + return CountRequestBuilder(self.request_adapter, raw_url) + + @dataclass + class CountRequestBuilderGetQueryParameters(): + """ + Get the number of the resource + """ + def get_query_parameter(self,original_name: Optional[str] = None) -> str: + """ + Maps the query parameters names to their encoded names for the URI template parsing. + param original_name: The original query parameter name in the class. + Returns: str + """ + if not original_name: + raise TypeError("original_name cannot be null.") + if original_name == "filter": + return "%24filter" + if original_name == "search": + return "%24search" + return original_name + + # Filter items by property values + filter: Optional[str] = None + + # Search items by search phrases + search: Optional[str] = None + + + diff --git a/msgraph_beta/generated/directory/pending_external_user_profiles/item/pending_external_user_profile_item_request_builder.py b/msgraph_beta/generated/directory/pending_external_user_profiles/item/pending_external_user_profile_item_request_builder.py new file mode 100644 index 00000000000..5b503111c24 --- /dev/null +++ b/msgraph_beta/generated/directory/pending_external_user_profiles/item/pending_external_user_profile_item_request_builder.py @@ -0,0 +1,167 @@ +from __future__ import annotations +from dataclasses import dataclass, field +from kiota_abstractions.base_request_builder import BaseRequestBuilder +from kiota_abstractions.base_request_configuration import RequestConfiguration +from kiota_abstractions.get_path_parameters import get_path_parameters +from kiota_abstractions.method import Method +from kiota_abstractions.request_adapter import RequestAdapter +from kiota_abstractions.request_information import RequestInformation +from kiota_abstractions.request_option import RequestOption +from kiota_abstractions.serialization import Parsable, ParsableFactory +from typing import Any, Callable, Dict, List, Optional, TYPE_CHECKING, Union + +if TYPE_CHECKING: + from ....models.o_data_errors.o_data_error import ODataError + from ....models.pending_external_user_profile import PendingExternalUserProfile + +class PendingExternalUserProfileItemRequestBuilder(BaseRequestBuilder): + """ + Provides operations to manage the pendingExternalUserProfiles property of the microsoft.graph.directory entity. + """ + def __init__(self,request_adapter: RequestAdapter, path_parameters: Union[str, Dict[str, Any]]) -> None: + """ + Instantiates a new PendingExternalUserProfileItemRequestBuilder and sets the default values. + param path_parameters: The raw url or the url-template parameters for the request. + param request_adapter: The request adapter to use to execute the requests. + Returns: None + """ + super().__init__(request_adapter, "{+baseurl}/directory/pendingExternalUserProfiles/{pendingExternalUserProfile%2Did}{?%24expand,%24select}", path_parameters) + + async def delete(self,request_configuration: Optional[RequestConfiguration] = None) -> None: + """ + Delete a pendingExternalUserProfile object. Note: To permanently delete the pendingExternalUserProfile, follow permanently delete an item. To restore a pendingExternalUserProfile, follow restore a deleted item. + param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. + Returns: None + Find more info here: https://learn.microsoft.com/graph/api/directory-delete-pendingexternaluserprofiles?view=graph-rest-1.0 + """ + request_info = self.to_delete_request_information( + request_configuration + ) + from ....models.o_data_errors.o_data_error import ODataError + + error_mapping: Dict[str, ParsableFactory] = { + "XXX": ODataError, + } + if not self.request_adapter: + raise Exception("Http core is null") + return await self.request_adapter.send_no_response_content_async(request_info, error_mapping) + + async def get(self,request_configuration: Optional[RequestConfiguration] = None) -> Optional[PendingExternalUserProfile]: + """ + Retrieve the properties of a specific pendingExternalUserProfile. + param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. + Returns: Optional[PendingExternalUserProfile] + Find more info here: https://learn.microsoft.com/graph/api/pendingexternaluserprofile-get?view=graph-rest-1.0 + """ + request_info = self.to_get_request_information( + request_configuration + ) + from ....models.o_data_errors.o_data_error import ODataError + + error_mapping: Dict[str, ParsableFactory] = { + "XXX": ODataError, + } + if not self.request_adapter: + raise Exception("Http core is null") + from ....models.pending_external_user_profile import PendingExternalUserProfile + + return await self.request_adapter.send_async(request_info, PendingExternalUserProfile, error_mapping) + + async def patch(self,body: Optional[PendingExternalUserProfile] = None, request_configuration: Optional[RequestConfiguration] = None) -> Optional[PendingExternalUserProfile]: + """ + Update the properties of a pendingExternalUserProfile object. + param body: The request body + param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. + Returns: Optional[PendingExternalUserProfile] + Find more info here: https://learn.microsoft.com/graph/api/pendingexternaluserprofile-update?view=graph-rest-1.0 + """ + if not body: + raise TypeError("body cannot be null.") + request_info = self.to_patch_request_information( + body, request_configuration + ) + from ....models.o_data_errors.o_data_error import ODataError + + error_mapping: Dict[str, ParsableFactory] = { + "XXX": ODataError, + } + if not self.request_adapter: + raise Exception("Http core is null") + from ....models.pending_external_user_profile import PendingExternalUserProfile + + return await self.request_adapter.send_async(request_info, PendingExternalUserProfile, error_mapping) + + def to_delete_request_information(self,request_configuration: Optional[RequestConfiguration] = None) -> RequestInformation: + """ + Delete a pendingExternalUserProfile object. Note: To permanently delete the pendingExternalUserProfile, follow permanently delete an item. To restore a pendingExternalUserProfile, follow restore a deleted item. + param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. + Returns: RequestInformation + """ + request_info = RequestInformation(Method.DELETE, '{+baseurl}/directory/pendingExternalUserProfiles/{pendingExternalUserProfile%2Did}', self.path_parameters) + request_info.configure(request_configuration) + request_info.headers.try_add("Accept", "application/json") + return request_info + + def to_get_request_information(self,request_configuration: Optional[RequestConfiguration] = None) -> RequestInformation: + """ + Retrieve the properties of a specific pendingExternalUserProfile. + param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. + Returns: RequestInformation + """ + request_info = RequestInformation(Method.GET, self.url_template, self.path_parameters) + request_info.configure(request_configuration) + request_info.headers.try_add("Accept", "application/json") + return request_info + + def to_patch_request_information(self,body: Optional[PendingExternalUserProfile] = None, request_configuration: Optional[RequestConfiguration] = None) -> RequestInformation: + """ + Update the properties of a pendingExternalUserProfile object. + param body: The request body + param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. + Returns: RequestInformation + """ + if not body: + raise TypeError("body cannot be null.") + request_info = RequestInformation(Method.PATCH, '{+baseurl}/directory/pendingExternalUserProfiles/{pendingExternalUserProfile%2Did}', self.path_parameters) + request_info.configure(request_configuration) + request_info.headers.try_add("Accept", "application/json") + request_info.set_content_from_parsable(self.request_adapter, "application/json", body) + return request_info + + def with_url(self,raw_url: Optional[str] = None) -> PendingExternalUserProfileItemRequestBuilder: + """ + Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + param raw_url: The raw URL to use for the request builder. + Returns: PendingExternalUserProfileItemRequestBuilder + """ + if not raw_url: + raise TypeError("raw_url cannot be null.") + return PendingExternalUserProfileItemRequestBuilder(self.request_adapter, raw_url) + + @dataclass + class PendingExternalUserProfileItemRequestBuilderGetQueryParameters(): + """ + Retrieve the properties of a specific pendingExternalUserProfile. + """ + def get_query_parameter(self,original_name: Optional[str] = None) -> str: + """ + Maps the query parameters names to their encoded names for the URI template parsing. + param original_name: The original query parameter name in the class. + Returns: str + """ + if not original_name: + raise TypeError("original_name cannot be null.") + if original_name == "expand": + return "%24expand" + if original_name == "select": + return "%24select" + return original_name + + # Expand related entities + expand: Optional[List[str]] = None + + # Select properties to be returned + select: Optional[List[str]] = None + + + diff --git a/msgraph_beta/generated/directory/pending_external_user_profiles/pending_external_user_profiles_request_builder.py b/msgraph_beta/generated/directory/pending_external_user_profiles/pending_external_user_profiles_request_builder.py new file mode 100644 index 00000000000..6bc317fbe55 --- /dev/null +++ b/msgraph_beta/generated/directory/pending_external_user_profiles/pending_external_user_profiles_request_builder.py @@ -0,0 +1,193 @@ +from __future__ import annotations +from dataclasses import dataclass, field +from kiota_abstractions.base_request_builder import BaseRequestBuilder +from kiota_abstractions.base_request_configuration import RequestConfiguration +from kiota_abstractions.get_path_parameters import get_path_parameters +from kiota_abstractions.method import Method +from kiota_abstractions.request_adapter import RequestAdapter +from kiota_abstractions.request_information import RequestInformation +from kiota_abstractions.request_option import RequestOption +from kiota_abstractions.serialization import Parsable, ParsableFactory +from typing import Any, Callable, Dict, List, Optional, TYPE_CHECKING, Union + +if TYPE_CHECKING: + from ...models.o_data_errors.o_data_error import ODataError + from ...models.pending_external_user_profile import PendingExternalUserProfile + from ...models.pending_external_user_profile_collection_response import PendingExternalUserProfileCollectionResponse + from .count.count_request_builder import CountRequestBuilder + from .item.pending_external_user_profile_item_request_builder import PendingExternalUserProfileItemRequestBuilder + +class PendingExternalUserProfilesRequestBuilder(BaseRequestBuilder): + """ + Provides operations to manage the pendingExternalUserProfiles property of the microsoft.graph.directory entity. + """ + def __init__(self,request_adapter: RequestAdapter, path_parameters: Union[str, Dict[str, Any]]) -> None: + """ + Instantiates a new PendingExternalUserProfilesRequestBuilder and sets the default values. + param path_parameters: The raw url or the url-template parameters for the request. + param request_adapter: The request adapter to use to execute the requests. + Returns: None + """ + super().__init__(request_adapter, "{+baseurl}/directory/pendingExternalUserProfiles{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", path_parameters) + + def by_pending_external_user_profile_id(self,pending_external_user_profile_id: str) -> PendingExternalUserProfileItemRequestBuilder: + """ + Provides operations to manage the pendingExternalUserProfiles property of the microsoft.graph.directory entity. + param pending_external_user_profile_id: The unique identifier of pendingExternalUserProfile + Returns: PendingExternalUserProfileItemRequestBuilder + """ + if not pending_external_user_profile_id: + raise TypeError("pending_external_user_profile_id cannot be null.") + from .item.pending_external_user_profile_item_request_builder import PendingExternalUserProfileItemRequestBuilder + + url_tpl_params = get_path_parameters(self.path_parameters) + url_tpl_params["pendingExternalUserProfile%2Did"] = pending_external_user_profile_id + return PendingExternalUserProfileItemRequestBuilder(self.request_adapter, url_tpl_params) + + async def get(self,request_configuration: Optional[RequestConfiguration] = None) -> Optional[PendingExternalUserProfileCollectionResponse]: + """ + Retrieve the properties of all pendingExternalUserProfiles. + param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. + Returns: Optional[PendingExternalUserProfileCollectionResponse] + Find more info here: https://learn.microsoft.com/graph/api/directory-list-pendingexternaluserprofile?view=graph-rest-1.0 + """ + request_info = self.to_get_request_information( + request_configuration + ) + from ...models.o_data_errors.o_data_error import ODataError + + error_mapping: Dict[str, ParsableFactory] = { + "XXX": ODataError, + } + if not self.request_adapter: + raise Exception("Http core is null") + from ...models.pending_external_user_profile_collection_response import PendingExternalUserProfileCollectionResponse + + return await self.request_adapter.send_async(request_info, PendingExternalUserProfileCollectionResponse, error_mapping) + + async def post(self,body: Optional[PendingExternalUserProfile] = None, request_configuration: Optional[RequestConfiguration] = None) -> Optional[PendingExternalUserProfile]: + """ + Create a new pendingExternalUserProfile object. + param body: The request body + param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. + Returns: Optional[PendingExternalUserProfile] + Find more info here: https://learn.microsoft.com/graph/api/directory-post-pendingexternaluserprofile?view=graph-rest-1.0 + """ + if not body: + raise TypeError("body cannot be null.") + request_info = self.to_post_request_information( + body, request_configuration + ) + from ...models.o_data_errors.o_data_error import ODataError + + error_mapping: Dict[str, ParsableFactory] = { + "XXX": ODataError, + } + if not self.request_adapter: + raise Exception("Http core is null") + from ...models.pending_external_user_profile import PendingExternalUserProfile + + return await self.request_adapter.send_async(request_info, PendingExternalUserProfile, error_mapping) + + def to_get_request_information(self,request_configuration: Optional[RequestConfiguration] = None) -> RequestInformation: + """ + Retrieve the properties of all pendingExternalUserProfiles. + param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. + Returns: RequestInformation + """ + request_info = RequestInformation(Method.GET, self.url_template, self.path_parameters) + request_info.configure(request_configuration) + request_info.headers.try_add("Accept", "application/json") + return request_info + + def to_post_request_information(self,body: Optional[PendingExternalUserProfile] = None, request_configuration: Optional[RequestConfiguration] = None) -> RequestInformation: + """ + Create a new pendingExternalUserProfile object. + param body: The request body + param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. + Returns: RequestInformation + """ + if not body: + raise TypeError("body cannot be null.") + request_info = RequestInformation(Method.POST, '{+baseurl}/directory/pendingExternalUserProfiles', self.path_parameters) + request_info.configure(request_configuration) + request_info.headers.try_add("Accept", "application/json") + request_info.set_content_from_parsable(self.request_adapter, "application/json", body) + return request_info + + def with_url(self,raw_url: Optional[str] = None) -> PendingExternalUserProfilesRequestBuilder: + """ + Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + param raw_url: The raw URL to use for the request builder. + Returns: PendingExternalUserProfilesRequestBuilder + """ + if not raw_url: + raise TypeError("raw_url cannot be null.") + return PendingExternalUserProfilesRequestBuilder(self.request_adapter, raw_url) + + @property + def count(self) -> CountRequestBuilder: + """ + Provides operations to count the resources in the collection. + """ + from .count.count_request_builder import CountRequestBuilder + + return CountRequestBuilder(self.request_adapter, self.path_parameters) + + @dataclass + class PendingExternalUserProfilesRequestBuilderGetQueryParameters(): + """ + Retrieve the properties of all pendingExternalUserProfiles. + """ + def get_query_parameter(self,original_name: Optional[str] = None) -> str: + """ + Maps the query parameters names to their encoded names for the URI template parsing. + param original_name: The original query parameter name in the class. + Returns: str + """ + if not original_name: + raise TypeError("original_name cannot be null.") + if original_name == "count": + return "%24count" + if original_name == "expand": + return "%24expand" + if original_name == "filter": + return "%24filter" + if original_name == "orderby": + return "%24orderby" + if original_name == "search": + return "%24search" + if original_name == "select": + return "%24select" + if original_name == "skip": + return "%24skip" + if original_name == "top": + return "%24top" + return original_name + + # Include count of items + count: Optional[bool] = None + + # Expand related entities + expand: Optional[List[str]] = None + + # Filter items by property values + filter: Optional[str] = None + + # Order items by property values + orderby: Optional[List[str]] = None + + # Search items by search phrases + search: Optional[str] = None + + # Select properties to be returned + select: Optional[List[str]] = None + + # Skip the first n items + skip: Optional[int] = None + + # Show only the first n items + top: Optional[int] = None + + + diff --git a/msgraph_beta/generated/drives/item/items/item/retention_label/retention_label_request_builder.py b/msgraph_beta/generated/drives/item/items/item/retention_label/retention_label_request_builder.py index 7f07810ef53..22a1feedc5d 100644 --- a/msgraph_beta/generated/drives/item/items/item/retention_label/retention_label_request_builder.py +++ b/msgraph_beta/generated/drives/item/items/item/retention_label/retention_label_request_builder.py @@ -68,11 +68,11 @@ async def get(self,request_configuration: Optional[RequestConfiguration] = None) async def patch(self,body: Optional[ItemRetentionLabel] = None, request_configuration: Optional[RequestConfiguration] = None) -> Optional[ItemRetentionLabel]: """ - Apply (set) a retention label on a driveItem (files and folders). Retention labels don't need to be published in a retention label policy to be applied using this method. When a retention label is applied to a folder, all the items in the folder are tagged with the same retention label. For information about conflict resolution for retention labels, see Will an existing label be overridden or removed. For information about retention labels from an administrator's perspective, see Use retention labels to manage the lifecycle of documents stored in SharePoint. + Lock or unlock a retention label on a driveItem that classifies content as records. For information about retention labels from an administrator's perspective, see Use retention labels to manage the lifecycle of documents stored in SharePoint. For more information about how you can lock and unlock retention labels, see Use record versioning to update records stored in SharePoint or OneDrive. param body: The request body param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: Optional[ItemRetentionLabel] - Find more info here: https://learn.microsoft.com/graph/api/driveitem-setretentionlabel?view=graph-rest-1.0 + Find more info here: https://learn.microsoft.com/graph/api/driveitem-lockorunlockrecord?view=graph-rest-1.0 """ if not body: raise TypeError("body cannot be null.") @@ -114,7 +114,7 @@ def to_get_request_information(self,request_configuration: Optional[RequestConfi def to_patch_request_information(self,body: Optional[ItemRetentionLabel] = None, request_configuration: Optional[RequestConfiguration] = None) -> RequestInformation: """ - Apply (set) a retention label on a driveItem (files and folders). Retention labels don't need to be published in a retention label policy to be applied using this method. When a retention label is applied to a folder, all the items in the folder are tagged with the same retention label. For information about conflict resolution for retention labels, see Will an existing label be overridden or removed. For information about retention labels from an administrator's perspective, see Use retention labels to manage the lifecycle of documents stored in SharePoint. + Lock or unlock a retention label on a driveItem that classifies content as records. For information about retention labels from an administrator's perspective, see Use retention labels to manage the lifecycle of documents stored in SharePoint. For more information about how you can lock and unlock retention labels, see Use record versioning to update records stored in SharePoint or OneDrive. param body: The request body param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: RequestInformation diff --git a/msgraph_beta/generated/drives/item/items/item/workbook/names/names_request_builder.py b/msgraph_beta/generated/drives/item/items/item/workbook/names/names_request_builder.py index 018cfa36a4b..0d2afe93e21 100644 --- a/msgraph_beta/generated/drives/item/items/item/workbook/names/names_request_builder.py +++ b/msgraph_beta/generated/drives/item/items/item/workbook/names/names_request_builder.py @@ -51,7 +51,7 @@ async def get(self,request_configuration: Optional[RequestConfiguration] = None) Retrieve a list of nameditem objects. param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: Optional[WorkbookNamedItemCollectionResponse] - Find more info here: https://learn.microsoft.com/graph/api/nameditem-list?view=graph-rest-1.0 + Find more info here: https://learn.microsoft.com/graph/api/workbook-list-names?view=graph-rest-1.0 """ request_info = self.to_get_request_information( request_configuration diff --git a/msgraph_beta/generated/drives/item/items/item/workbook/tables/item/columns/columns_request_builder.py b/msgraph_beta/generated/drives/item/items/item/workbook/tables/item/columns/columns_request_builder.py index c84f7f49b63..d758af47750 100644 --- a/msgraph_beta/generated/drives/item/items/item/workbook/tables/item/columns/columns_request_builder.py +++ b/msgraph_beta/generated/drives/item/items/item/workbook/tables/item/columns/columns_request_builder.py @@ -51,7 +51,7 @@ async def get(self,request_configuration: Optional[RequestConfiguration] = None) Retrieve a list of tablecolumn objects. param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: Optional[WorkbookTableColumnCollectionResponse] - Find more info here: https://learn.microsoft.com/graph/api/table-list-columns?view=graph-rest-1.0 + Find more info here: https://learn.microsoft.com/graph/api/tablecolumn-list?view=graph-rest-1.0 """ request_info = self.to_get_request_information( request_configuration diff --git a/msgraph_beta/generated/drives/item/items/item/workbook/tables/item/rows/rows_request_builder.py b/msgraph_beta/generated/drives/item/items/item/workbook/tables/item/rows/rows_request_builder.py index d047f879ef4..4ef23a785b2 100644 --- a/msgraph_beta/generated/drives/item/items/item/workbook/tables/item/rows/rows_request_builder.py +++ b/msgraph_beta/generated/drives/item/items/item/workbook/tables/item/rows/rows_request_builder.py @@ -51,7 +51,7 @@ async def get(self,request_configuration: Optional[RequestConfiguration] = None) Retrieve a list of tablerow objects. param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: Optional[WorkbookTableRowCollectionResponse] - Find more info here: https://learn.microsoft.com/graph/api/tablerow-list?view=graph-rest-1.0 + Find more info here: https://learn.microsoft.com/graph/api/table-list-rows?view=graph-rest-1.0 """ request_info = self.to_get_request_information( request_configuration diff --git a/msgraph_beta/generated/drives/item/items/item/workbook/tables/item_at_with_index/columns/columns_request_builder.py b/msgraph_beta/generated/drives/item/items/item/workbook/tables/item_at_with_index/columns/columns_request_builder.py index 8cdaf628e91..778ba325ab0 100644 --- a/msgraph_beta/generated/drives/item/items/item/workbook/tables/item_at_with_index/columns/columns_request_builder.py +++ b/msgraph_beta/generated/drives/item/items/item/workbook/tables/item_at_with_index/columns/columns_request_builder.py @@ -33,7 +33,7 @@ async def get(self,request_configuration: Optional[RequestConfiguration] = None) Retrieve a list of tablecolumn objects. param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: Optional[WorkbookTableColumnCollectionResponse] - Find more info here: https://learn.microsoft.com/graph/api/table-list-columns?view=graph-rest-1.0 + Find more info here: https://learn.microsoft.com/graph/api/tablecolumn-list?view=graph-rest-1.0 """ request_info = self.to_get_request_information( request_configuration diff --git a/msgraph_beta/generated/drives/item/items/item/workbook/tables/item_at_with_index/rows/rows_request_builder.py b/msgraph_beta/generated/drives/item/items/item/workbook/tables/item_at_with_index/rows/rows_request_builder.py index cbb5e1e8657..76ca8038f57 100644 --- a/msgraph_beta/generated/drives/item/items/item/workbook/tables/item_at_with_index/rows/rows_request_builder.py +++ b/msgraph_beta/generated/drives/item/items/item/workbook/tables/item_at_with_index/rows/rows_request_builder.py @@ -33,7 +33,7 @@ async def get(self,request_configuration: Optional[RequestConfiguration] = None) Retrieve a list of tablerow objects. param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: Optional[WorkbookTableRowCollectionResponse] - Find more info here: https://learn.microsoft.com/graph/api/tablerow-list?view=graph-rest-1.0 + Find more info here: https://learn.microsoft.com/graph/api/table-list-rows?view=graph-rest-1.0 """ request_info = self.to_get_request_information( request_configuration diff --git a/msgraph_beta/generated/drives/item/items/item/workbook/tables/tables_request_builder.py b/msgraph_beta/generated/drives/item/items/item/workbook/tables/tables_request_builder.py index 445dfdb9aa4..06e3e9de58c 100644 --- a/msgraph_beta/generated/drives/item/items/item/workbook/tables/tables_request_builder.py +++ b/msgraph_beta/generated/drives/item/items/item/workbook/tables/tables_request_builder.py @@ -51,7 +51,7 @@ async def get(self,request_configuration: Optional[RequestConfiguration] = None) Retrieve a list of table objects. param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: Optional[WorkbookTableCollectionResponse] - Find more info here: https://learn.microsoft.com/graph/api/workbook-list-tables?view=graph-rest-1.0 + Find more info here: https://learn.microsoft.com/graph/api/table-list?view=graph-rest-1.0 """ request_info = self.to_get_request_information( request_configuration diff --git a/msgraph_beta/generated/drives/item/items/item/workbook/worksheets/item/charts/charts_request_builder.py b/msgraph_beta/generated/drives/item/items/item/workbook/worksheets/item/charts/charts_request_builder.py index 694835b7004..0d2cc0921cc 100644 --- a/msgraph_beta/generated/drives/item/items/item/workbook/worksheets/item/charts/charts_request_builder.py +++ b/msgraph_beta/generated/drives/item/items/item/workbook/worksheets/item/charts/charts_request_builder.py @@ -52,7 +52,7 @@ async def get(self,request_configuration: Optional[RequestConfiguration] = None) Retrieve a list of chart objects. param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: Optional[WorkbookChartCollectionResponse] - Find more info here: https://learn.microsoft.com/graph/api/worksheet-list-charts?view=graph-rest-1.0 + Find more info here: https://learn.microsoft.com/graph/api/chart-list?view=graph-rest-1.0 """ request_info = self.to_get_request_information( request_configuration diff --git a/msgraph_beta/generated/drives/item/items/item/workbook/worksheets/item/charts/item/series/series_request_builder.py b/msgraph_beta/generated/drives/item/items/item/workbook/worksheets/item/charts/item/series/series_request_builder.py index b393e6210a7..5449bfcc1e1 100644 --- a/msgraph_beta/generated/drives/item/items/item/workbook/worksheets/item/charts/item/series/series_request_builder.py +++ b/msgraph_beta/generated/drives/item/items/item/workbook/worksheets/item/charts/item/series/series_request_builder.py @@ -50,7 +50,7 @@ async def get(self,request_configuration: Optional[RequestConfiguration] = None) Retrieve a list of chartseries objects. param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: Optional[WorkbookChartSeriesCollectionResponse] - Find more info here: https://learn.microsoft.com/graph/api/chartseries-list?view=graph-rest-1.0 + Find more info here: https://learn.microsoft.com/graph/api/chart-list-series?view=graph-rest-1.0 """ request_info = self.to_get_request_information( request_configuration diff --git a/msgraph_beta/generated/drives/item/items/item/workbook/worksheets/item/charts/item_at_with_index/series/series_request_builder.py b/msgraph_beta/generated/drives/item/items/item/workbook/worksheets/item/charts/item_at_with_index/series/series_request_builder.py index 544fd45a6eb..bd696a2a1f7 100644 --- a/msgraph_beta/generated/drives/item/items/item/workbook/worksheets/item/charts/item_at_with_index/series/series_request_builder.py +++ b/msgraph_beta/generated/drives/item/items/item/workbook/worksheets/item/charts/item_at_with_index/series/series_request_builder.py @@ -33,7 +33,7 @@ async def get(self,request_configuration: Optional[RequestConfiguration] = None) Retrieve a list of chartseries objects. param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: Optional[WorkbookChartSeriesCollectionResponse] - Find more info here: https://learn.microsoft.com/graph/api/chartseries-list?view=graph-rest-1.0 + Find more info here: https://learn.microsoft.com/graph/api/chart-list-series?view=graph-rest-1.0 """ request_info = self.to_get_request_information( request_configuration diff --git a/msgraph_beta/generated/drives/item/items/item/workbook/worksheets/item/charts/item_with_name/series/series_request_builder.py b/msgraph_beta/generated/drives/item/items/item/workbook/worksheets/item/charts/item_with_name/series/series_request_builder.py index b3aaec64b90..2111e5d280f 100644 --- a/msgraph_beta/generated/drives/item/items/item/workbook/worksheets/item/charts/item_with_name/series/series_request_builder.py +++ b/msgraph_beta/generated/drives/item/items/item/workbook/worksheets/item/charts/item_with_name/series/series_request_builder.py @@ -33,7 +33,7 @@ async def get(self,request_configuration: Optional[RequestConfiguration] = None) Retrieve a list of chartseries objects. param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: Optional[WorkbookChartSeriesCollectionResponse] - Find more info here: https://learn.microsoft.com/graph/api/chartseries-list?view=graph-rest-1.0 + Find more info here: https://learn.microsoft.com/graph/api/chart-list-series?view=graph-rest-1.0 """ request_info = self.to_get_request_information( request_configuration diff --git a/msgraph_beta/generated/drives/item/items/item/workbook/worksheets/item/tables/item/columns/columns_request_builder.py b/msgraph_beta/generated/drives/item/items/item/workbook/worksheets/item/tables/item/columns/columns_request_builder.py index a842e85dd2a..2e5ac16b7fd 100644 --- a/msgraph_beta/generated/drives/item/items/item/workbook/worksheets/item/tables/item/columns/columns_request_builder.py +++ b/msgraph_beta/generated/drives/item/items/item/workbook/worksheets/item/tables/item/columns/columns_request_builder.py @@ -51,7 +51,7 @@ async def get(self,request_configuration: Optional[RequestConfiguration] = None) Retrieve a list of tablecolumn objects. param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: Optional[WorkbookTableColumnCollectionResponse] - Find more info here: https://learn.microsoft.com/graph/api/table-list-columns?view=graph-rest-1.0 + Find more info here: https://learn.microsoft.com/graph/api/tablecolumn-list?view=graph-rest-1.0 """ request_info = self.to_get_request_information( request_configuration diff --git a/msgraph_beta/generated/drives/item/items/item/workbook/worksheets/item/tables/item/rows/rows_request_builder.py b/msgraph_beta/generated/drives/item/items/item/workbook/worksheets/item/tables/item/rows/rows_request_builder.py index e458bdeea38..5037ec97ec8 100644 --- a/msgraph_beta/generated/drives/item/items/item/workbook/worksheets/item/tables/item/rows/rows_request_builder.py +++ b/msgraph_beta/generated/drives/item/items/item/workbook/worksheets/item/tables/item/rows/rows_request_builder.py @@ -51,7 +51,7 @@ async def get(self,request_configuration: Optional[RequestConfiguration] = None) Retrieve a list of tablerow objects. param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: Optional[WorkbookTableRowCollectionResponse] - Find more info here: https://learn.microsoft.com/graph/api/tablerow-list?view=graph-rest-1.0 + Find more info here: https://learn.microsoft.com/graph/api/table-list-rows?view=graph-rest-1.0 """ request_info = self.to_get_request_information( request_configuration diff --git a/msgraph_beta/generated/drives/item/items/item/workbook/worksheets/item/tables/item_at_with_index/columns/columns_request_builder.py b/msgraph_beta/generated/drives/item/items/item/workbook/worksheets/item/tables/item_at_with_index/columns/columns_request_builder.py index dd9c366d824..2cd76d1366e 100644 --- a/msgraph_beta/generated/drives/item/items/item/workbook/worksheets/item/tables/item_at_with_index/columns/columns_request_builder.py +++ b/msgraph_beta/generated/drives/item/items/item/workbook/worksheets/item/tables/item_at_with_index/columns/columns_request_builder.py @@ -33,7 +33,7 @@ async def get(self,request_configuration: Optional[RequestConfiguration] = None) Retrieve a list of tablecolumn objects. param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: Optional[WorkbookTableColumnCollectionResponse] - Find more info here: https://learn.microsoft.com/graph/api/table-list-columns?view=graph-rest-1.0 + Find more info here: https://learn.microsoft.com/graph/api/tablecolumn-list?view=graph-rest-1.0 """ request_info = self.to_get_request_information( request_configuration diff --git a/msgraph_beta/generated/drives/item/items/item/workbook/worksheets/item/tables/item_at_with_index/rows/rows_request_builder.py b/msgraph_beta/generated/drives/item/items/item/workbook/worksheets/item/tables/item_at_with_index/rows/rows_request_builder.py index 78a84eb9975..6b8dc0bb40a 100644 --- a/msgraph_beta/generated/drives/item/items/item/workbook/worksheets/item/tables/item_at_with_index/rows/rows_request_builder.py +++ b/msgraph_beta/generated/drives/item/items/item/workbook/worksheets/item/tables/item_at_with_index/rows/rows_request_builder.py @@ -33,7 +33,7 @@ async def get(self,request_configuration: Optional[RequestConfiguration] = None) Retrieve a list of tablerow objects. param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: Optional[WorkbookTableRowCollectionResponse] - Find more info here: https://learn.microsoft.com/graph/api/tablerow-list?view=graph-rest-1.0 + Find more info here: https://learn.microsoft.com/graph/api/table-list-rows?view=graph-rest-1.0 """ request_info = self.to_get_request_information( request_configuration diff --git a/msgraph_beta/generated/drives/item/items/item/workbook/worksheets/worksheets_request_builder.py b/msgraph_beta/generated/drives/item/items/item/workbook/worksheets/worksheets_request_builder.py index e022edae376..06614f9c0cc 100644 --- a/msgraph_beta/generated/drives/item/items/item/workbook/worksheets/worksheets_request_builder.py +++ b/msgraph_beta/generated/drives/item/items/item/workbook/worksheets/worksheets_request_builder.py @@ -50,7 +50,7 @@ async def get(self,request_configuration: Optional[RequestConfiguration] = None) Retrieve a list of worksheet objects. param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: Optional[WorkbookWorksheetCollectionResponse] - Find more info here: https://learn.microsoft.com/graph/api/worksheet-list?view=graph-rest-1.0 + Find more info here: https://learn.microsoft.com/graph/api/workbook-list-worksheets?view=graph-rest-1.0 """ request_info = self.to_get_request_information( request_configuration diff --git a/msgraph_beta/generated/education/classes/item/assignment_settings/assignment_settings_request_builder.py b/msgraph_beta/generated/education/classes/item/assignment_settings/assignment_settings_request_builder.py index f8f3260068b..5a07cca252a 100644 --- a/msgraph_beta/generated/education/classes/item/assignment_settings/assignment_settings_request_builder.py +++ b/msgraph_beta/generated/education/classes/item/assignment_settings/assignment_settings_request_builder.py @@ -13,7 +13,9 @@ if TYPE_CHECKING: from .....models.education_assignment_settings import EducationAssignmentSettings from .....models.o_data_errors.o_data_error import ODataError + from .default_grading_scheme.default_grading_scheme_request_builder import DefaultGradingSchemeRequestBuilder from .grading_categories.grading_categories_request_builder import GradingCategoriesRequestBuilder + from .grading_schemes.grading_schemes_request_builder import GradingSchemesRequestBuilder class AssignmentSettingsRequestBuilder(BaseRequestBuilder): """ @@ -138,6 +140,15 @@ def with_url(self,raw_url: Optional[str] = None) -> AssignmentSettingsRequestBui raise TypeError("raw_url cannot be null.") return AssignmentSettingsRequestBuilder(self.request_adapter, raw_url) + @property + def default_grading_scheme(self) -> DefaultGradingSchemeRequestBuilder: + """ + Provides operations to manage the defaultGradingScheme property of the microsoft.graph.educationAssignmentSettings entity. + """ + from .default_grading_scheme.default_grading_scheme_request_builder import DefaultGradingSchemeRequestBuilder + + return DefaultGradingSchemeRequestBuilder(self.request_adapter, self.path_parameters) + @property def grading_categories(self) -> GradingCategoriesRequestBuilder: """ @@ -147,6 +158,15 @@ def grading_categories(self) -> GradingCategoriesRequestBuilder: return GradingCategoriesRequestBuilder(self.request_adapter, self.path_parameters) + @property + def grading_schemes(self) -> GradingSchemesRequestBuilder: + """ + Provides operations to manage the gradingSchemes property of the microsoft.graph.educationAssignmentSettings entity. + """ + from .grading_schemes.grading_schemes_request_builder import GradingSchemesRequestBuilder + + return GradingSchemesRequestBuilder(self.request_adapter, self.path_parameters) + @dataclass class AssignmentSettingsRequestBuilderGetQueryParameters(): """ diff --git a/msgraph_beta/generated/education/classes/item/assignment_settings/default_grading_scheme/default_grading_scheme_request_builder.py b/msgraph_beta/generated/education/classes/item/assignment_settings/default_grading_scheme/default_grading_scheme_request_builder.py new file mode 100644 index 00000000000..2e1b4323d1c --- /dev/null +++ b/msgraph_beta/generated/education/classes/item/assignment_settings/default_grading_scheme/default_grading_scheme_request_builder.py @@ -0,0 +1,97 @@ +from __future__ import annotations +from dataclasses import dataclass, field +from kiota_abstractions.base_request_builder import BaseRequestBuilder +from kiota_abstractions.base_request_configuration import RequestConfiguration +from kiota_abstractions.get_path_parameters import get_path_parameters +from kiota_abstractions.method import Method +from kiota_abstractions.request_adapter import RequestAdapter +from kiota_abstractions.request_information import RequestInformation +from kiota_abstractions.request_option import RequestOption +from kiota_abstractions.serialization import Parsable, ParsableFactory +from typing import Any, Callable, Dict, List, Optional, TYPE_CHECKING, Union + +if TYPE_CHECKING: + from ......models.education_grading_scheme import EducationGradingScheme + from ......models.o_data_errors.o_data_error import ODataError + +class DefaultGradingSchemeRequestBuilder(BaseRequestBuilder): + """ + Provides operations to manage the defaultGradingScheme property of the microsoft.graph.educationAssignmentSettings entity. + """ + def __init__(self,request_adapter: RequestAdapter, path_parameters: Union[str, Dict[str, Any]]) -> None: + """ + Instantiates a new DefaultGradingSchemeRequestBuilder and sets the default values. + param path_parameters: The raw url or the url-template parameters for the request. + param request_adapter: The request adapter to use to execute the requests. + Returns: None + """ + super().__init__(request_adapter, "{+baseurl}/education/classes/{educationClass%2Did}/assignmentSettings/defaultGradingScheme{?%24expand,%24select}", path_parameters) + + async def get(self,request_configuration: Optional[RequestConfiguration] = None) -> Optional[EducationGradingScheme]: + """ + Get defaultGradingScheme from education + param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. + Returns: Optional[EducationGradingScheme] + """ + request_info = self.to_get_request_information( + request_configuration + ) + from ......models.o_data_errors.o_data_error import ODataError + + error_mapping: Dict[str, ParsableFactory] = { + "XXX": ODataError, + } + if not self.request_adapter: + raise Exception("Http core is null") + from ......models.education_grading_scheme import EducationGradingScheme + + return await self.request_adapter.send_async(request_info, EducationGradingScheme, error_mapping) + + def to_get_request_information(self,request_configuration: Optional[RequestConfiguration] = None) -> RequestInformation: + """ + Get defaultGradingScheme from education + param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. + Returns: RequestInformation + """ + request_info = RequestInformation(Method.GET, self.url_template, self.path_parameters) + request_info.configure(request_configuration) + request_info.headers.try_add("Accept", "application/json") + return request_info + + def with_url(self,raw_url: Optional[str] = None) -> DefaultGradingSchemeRequestBuilder: + """ + Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + param raw_url: The raw URL to use for the request builder. + Returns: DefaultGradingSchemeRequestBuilder + """ + if not raw_url: + raise TypeError("raw_url cannot be null.") + return DefaultGradingSchemeRequestBuilder(self.request_adapter, raw_url) + + @dataclass + class DefaultGradingSchemeRequestBuilderGetQueryParameters(): + """ + Get defaultGradingScheme from education + """ + def get_query_parameter(self,original_name: Optional[str] = None) -> str: + """ + Maps the query parameters names to their encoded names for the URI template parsing. + param original_name: The original query parameter name in the class. + Returns: str + """ + if not original_name: + raise TypeError("original_name cannot be null.") + if original_name == "expand": + return "%24expand" + if original_name == "select": + return "%24select" + return original_name + + # Expand related entities + expand: Optional[List[str]] = None + + # Select properties to be returned + select: Optional[List[str]] = None + + + diff --git a/msgraph_beta/generated/education/classes/item/assignment_settings/grading_categories/item/education_grading_category_item_request_builder.py b/msgraph_beta/generated/education/classes/item/assignment_settings/grading_categories/item/education_grading_category_item_request_builder.py index 999465ee8a5..be43a2a7292 100644 --- a/msgraph_beta/generated/education/classes/item/assignment_settings/grading_categories/item/education_grading_category_item_request_builder.py +++ b/msgraph_beta/generated/education/classes/item/assignment_settings/grading_categories/item/education_grading_category_item_request_builder.py @@ -67,10 +67,11 @@ async def get(self,request_configuration: Optional[RequestConfiguration] = None) async def patch(self,body: Optional[EducationGradingCategory] = None, request_configuration: Optional[RequestConfiguration] = None) -> Optional[EducationGradingCategory]: """ - Update the navigation property gradingCategories in education + Update a single gradingCategory on the educationAssignmentSettings. Only teachers can perform this operation. param body: The request body param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: Optional[EducationGradingCategory] + Find more info here: https://learn.microsoft.com/graph/api/educationgradingcategory-update?view=graph-rest-1.0 """ if not body: raise TypeError("body cannot be null.") @@ -112,7 +113,7 @@ def to_get_request_information(self,request_configuration: Optional[RequestConfi def to_patch_request_information(self,body: Optional[EducationGradingCategory] = None, request_configuration: Optional[RequestConfiguration] = None) -> RequestInformation: """ - Update the navigation property gradingCategories in education + Update a single gradingCategory on the educationAssignmentSettings. Only teachers can perform this operation. param body: The request body param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: RequestInformation diff --git a/msgraph_beta/generated/education/classes/item/assignment_settings/grading_schemes/count/count_request_builder.py b/msgraph_beta/generated/education/classes/item/assignment_settings/grading_schemes/count/count_request_builder.py new file mode 100644 index 00000000000..41811d3b729 --- /dev/null +++ b/msgraph_beta/generated/education/classes/item/assignment_settings/grading_schemes/count/count_request_builder.py @@ -0,0 +1,94 @@ +from __future__ import annotations +from dataclasses import dataclass, field +from kiota_abstractions.base_request_builder import BaseRequestBuilder +from kiota_abstractions.base_request_configuration import RequestConfiguration +from kiota_abstractions.get_path_parameters import get_path_parameters +from kiota_abstractions.method import Method +from kiota_abstractions.request_adapter import RequestAdapter +from kiota_abstractions.request_information import RequestInformation +from kiota_abstractions.request_option import RequestOption +from kiota_abstractions.serialization import Parsable, ParsableFactory +from typing import Any, Callable, Dict, List, Optional, TYPE_CHECKING, Union + +if TYPE_CHECKING: + from .......models.o_data_errors.o_data_error import ODataError + +class CountRequestBuilder(BaseRequestBuilder): + """ + Provides operations to count the resources in the collection. + """ + def __init__(self,request_adapter: RequestAdapter, path_parameters: Union[str, Dict[str, Any]]) -> None: + """ + Instantiates a new CountRequestBuilder and sets the default values. + param path_parameters: The raw url or the url-template parameters for the request. + param request_adapter: The request adapter to use to execute the requests. + Returns: None + """ + super().__init__(request_adapter, "{+baseurl}/education/classes/{educationClass%2Did}/assignmentSettings/gradingSchemes/$count{?%24filter,%24search}", path_parameters) + + async def get(self,request_configuration: Optional[RequestConfiguration] = None) -> Optional[int]: + """ + Get the number of the resource + param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. + Returns: Optional[int] + """ + request_info = self.to_get_request_information( + request_configuration + ) + from .......models.o_data_errors.o_data_error import ODataError + + error_mapping: Dict[str, ParsableFactory] = { + "XXX": ODataError, + } + if not self.request_adapter: + raise Exception("Http core is null") + return await self.request_adapter.send_primitive_async(request_info, "int", error_mapping) + + def to_get_request_information(self,request_configuration: Optional[RequestConfiguration] = None) -> RequestInformation: + """ + Get the number of the resource + param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. + Returns: RequestInformation + """ + request_info = RequestInformation(Method.GET, self.url_template, self.path_parameters) + request_info.configure(request_configuration) + request_info.headers.try_add("Accept", "text/plain;q=0.9") + return request_info + + def with_url(self,raw_url: Optional[str] = None) -> CountRequestBuilder: + """ + Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + param raw_url: The raw URL to use for the request builder. + Returns: CountRequestBuilder + """ + if not raw_url: + raise TypeError("raw_url cannot be null.") + return CountRequestBuilder(self.request_adapter, raw_url) + + @dataclass + class CountRequestBuilderGetQueryParameters(): + """ + Get the number of the resource + """ + def get_query_parameter(self,original_name: Optional[str] = None) -> str: + """ + Maps the query parameters names to their encoded names for the URI template parsing. + param original_name: The original query parameter name in the class. + Returns: str + """ + if not original_name: + raise TypeError("original_name cannot be null.") + if original_name == "filter": + return "%24filter" + if original_name == "search": + return "%24search" + return original_name + + # Filter items by property values + filter: Optional[str] = None + + # Search items by search phrases + search: Optional[str] = None + + + diff --git a/msgraph_beta/generated/education/classes/item/assignment_settings/grading_schemes/grading_schemes_request_builder.py b/msgraph_beta/generated/education/classes/item/assignment_settings/grading_schemes/grading_schemes_request_builder.py new file mode 100644 index 00000000000..c5cfe9b3403 --- /dev/null +++ b/msgraph_beta/generated/education/classes/item/assignment_settings/grading_schemes/grading_schemes_request_builder.py @@ -0,0 +1,191 @@ +from __future__ import annotations +from dataclasses import dataclass, field +from kiota_abstractions.base_request_builder import BaseRequestBuilder +from kiota_abstractions.base_request_configuration import RequestConfiguration +from kiota_abstractions.get_path_parameters import get_path_parameters +from kiota_abstractions.method import Method +from kiota_abstractions.request_adapter import RequestAdapter +from kiota_abstractions.request_information import RequestInformation +from kiota_abstractions.request_option import RequestOption +from kiota_abstractions.serialization import Parsable, ParsableFactory +from typing import Any, Callable, Dict, List, Optional, TYPE_CHECKING, Union + +if TYPE_CHECKING: + from ......models.education_grading_scheme import EducationGradingScheme + from ......models.education_grading_scheme_collection_response import EducationGradingSchemeCollectionResponse + from ......models.o_data_errors.o_data_error import ODataError + from .count.count_request_builder import CountRequestBuilder + from .item.education_grading_scheme_item_request_builder import EducationGradingSchemeItemRequestBuilder + +class GradingSchemesRequestBuilder(BaseRequestBuilder): + """ + Provides operations to manage the gradingSchemes property of the microsoft.graph.educationAssignmentSettings entity. + """ + def __init__(self,request_adapter: RequestAdapter, path_parameters: Union[str, Dict[str, Any]]) -> None: + """ + Instantiates a new GradingSchemesRequestBuilder and sets the default values. + param path_parameters: The raw url or the url-template parameters for the request. + param request_adapter: The request adapter to use to execute the requests. + Returns: None + """ + super().__init__(request_adapter, "{+baseurl}/education/classes/{educationClass%2Did}/assignmentSettings/gradingSchemes{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", path_parameters) + + def by_education_grading_scheme_id(self,education_grading_scheme_id: str) -> EducationGradingSchemeItemRequestBuilder: + """ + Provides operations to manage the gradingSchemes property of the microsoft.graph.educationAssignmentSettings entity. + param education_grading_scheme_id: The unique identifier of educationGradingScheme + Returns: EducationGradingSchemeItemRequestBuilder + """ + if not education_grading_scheme_id: + raise TypeError("education_grading_scheme_id cannot be null.") + from .item.education_grading_scheme_item_request_builder import EducationGradingSchemeItemRequestBuilder + + url_tpl_params = get_path_parameters(self.path_parameters) + url_tpl_params["educationGradingScheme%2Did"] = education_grading_scheme_id + return EducationGradingSchemeItemRequestBuilder(self.request_adapter, url_tpl_params) + + async def get(self,request_configuration: Optional[RequestConfiguration] = None) -> Optional[EducationGradingSchemeCollectionResponse]: + """ + Get gradingSchemes from education + param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. + Returns: Optional[EducationGradingSchemeCollectionResponse] + """ + request_info = self.to_get_request_information( + request_configuration + ) + from ......models.o_data_errors.o_data_error import ODataError + + error_mapping: Dict[str, ParsableFactory] = { + "XXX": ODataError, + } + if not self.request_adapter: + raise Exception("Http core is null") + from ......models.education_grading_scheme_collection_response import EducationGradingSchemeCollectionResponse + + return await self.request_adapter.send_async(request_info, EducationGradingSchemeCollectionResponse, error_mapping) + + async def post(self,body: Optional[EducationGradingScheme] = None, request_configuration: Optional[RequestConfiguration] = None) -> Optional[EducationGradingScheme]: + """ + Create new navigation property to gradingSchemes for education + param body: The request body + param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. + Returns: Optional[EducationGradingScheme] + """ + if not body: + raise TypeError("body cannot be null.") + request_info = self.to_post_request_information( + body, request_configuration + ) + from ......models.o_data_errors.o_data_error import ODataError + + error_mapping: Dict[str, ParsableFactory] = { + "XXX": ODataError, + } + if not self.request_adapter: + raise Exception("Http core is null") + from ......models.education_grading_scheme import EducationGradingScheme + + return await self.request_adapter.send_async(request_info, EducationGradingScheme, error_mapping) + + def to_get_request_information(self,request_configuration: Optional[RequestConfiguration] = None) -> RequestInformation: + """ + Get gradingSchemes from education + param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. + Returns: RequestInformation + """ + request_info = RequestInformation(Method.GET, self.url_template, self.path_parameters) + request_info.configure(request_configuration) + request_info.headers.try_add("Accept", "application/json") + return request_info + + def to_post_request_information(self,body: Optional[EducationGradingScheme] = None, request_configuration: Optional[RequestConfiguration] = None) -> RequestInformation: + """ + Create new navigation property to gradingSchemes for education + param body: The request body + param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. + Returns: RequestInformation + """ + if not body: + raise TypeError("body cannot be null.") + request_info = RequestInformation(Method.POST, '{+baseurl}/education/classes/{educationClass%2Did}/assignmentSettings/gradingSchemes', self.path_parameters) + request_info.configure(request_configuration) + request_info.headers.try_add("Accept", "application/json") + request_info.set_content_from_parsable(self.request_adapter, "application/json", body) + return request_info + + def with_url(self,raw_url: Optional[str] = None) -> GradingSchemesRequestBuilder: + """ + Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + param raw_url: The raw URL to use for the request builder. + Returns: GradingSchemesRequestBuilder + """ + if not raw_url: + raise TypeError("raw_url cannot be null.") + return GradingSchemesRequestBuilder(self.request_adapter, raw_url) + + @property + def count(self) -> CountRequestBuilder: + """ + Provides operations to count the resources in the collection. + """ + from .count.count_request_builder import CountRequestBuilder + + return CountRequestBuilder(self.request_adapter, self.path_parameters) + + @dataclass + class GradingSchemesRequestBuilderGetQueryParameters(): + """ + Get gradingSchemes from education + """ + def get_query_parameter(self,original_name: Optional[str] = None) -> str: + """ + Maps the query parameters names to their encoded names for the URI template parsing. + param original_name: The original query parameter name in the class. + Returns: str + """ + if not original_name: + raise TypeError("original_name cannot be null.") + if original_name == "count": + return "%24count" + if original_name == "expand": + return "%24expand" + if original_name == "filter": + return "%24filter" + if original_name == "orderby": + return "%24orderby" + if original_name == "search": + return "%24search" + if original_name == "select": + return "%24select" + if original_name == "skip": + return "%24skip" + if original_name == "top": + return "%24top" + return original_name + + # Include count of items + count: Optional[bool] = None + + # Expand related entities + expand: Optional[List[str]] = None + + # Filter items by property values + filter: Optional[str] = None + + # Order items by property values + orderby: Optional[List[str]] = None + + # Search items by search phrases + search: Optional[str] = None + + # Select properties to be returned + select: Optional[List[str]] = None + + # Skip the first n items + skip: Optional[int] = None + + # Show only the first n items + top: Optional[int] = None + + + diff --git a/msgraph_beta/generated/education/classes/item/assignment_settings/grading_schemes/item/education_grading_scheme_item_request_builder.py b/msgraph_beta/generated/education/classes/item/assignment_settings/grading_schemes/item/education_grading_scheme_item_request_builder.py new file mode 100644 index 00000000000..da0d3f8ede6 --- /dev/null +++ b/msgraph_beta/generated/education/classes/item/assignment_settings/grading_schemes/item/education_grading_scheme_item_request_builder.py @@ -0,0 +1,164 @@ +from __future__ import annotations +from dataclasses import dataclass, field +from kiota_abstractions.base_request_builder import BaseRequestBuilder +from kiota_abstractions.base_request_configuration import RequestConfiguration +from kiota_abstractions.get_path_parameters import get_path_parameters +from kiota_abstractions.method import Method +from kiota_abstractions.request_adapter import RequestAdapter +from kiota_abstractions.request_information import RequestInformation +from kiota_abstractions.request_option import RequestOption +from kiota_abstractions.serialization import Parsable, ParsableFactory +from typing import Any, Callable, Dict, List, Optional, TYPE_CHECKING, Union + +if TYPE_CHECKING: + from .......models.education_grading_scheme import EducationGradingScheme + from .......models.o_data_errors.o_data_error import ODataError + +class EducationGradingSchemeItemRequestBuilder(BaseRequestBuilder): + """ + Provides operations to manage the gradingSchemes property of the microsoft.graph.educationAssignmentSettings entity. + """ + def __init__(self,request_adapter: RequestAdapter, path_parameters: Union[str, Dict[str, Any]]) -> None: + """ + Instantiates a new EducationGradingSchemeItemRequestBuilder and sets the default values. + param path_parameters: The raw url or the url-template parameters for the request. + param request_adapter: The request adapter to use to execute the requests. + Returns: None + """ + super().__init__(request_adapter, "{+baseurl}/education/classes/{educationClass%2Did}/assignmentSettings/gradingSchemes/{educationGradingScheme%2Did}{?%24expand,%24select}", path_parameters) + + async def delete(self,request_configuration: Optional[RequestConfiguration] = None) -> None: + """ + Delete navigation property gradingSchemes for education + param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. + Returns: None + """ + request_info = self.to_delete_request_information( + request_configuration + ) + from .......models.o_data_errors.o_data_error import ODataError + + error_mapping: Dict[str, ParsableFactory] = { + "XXX": ODataError, + } + if not self.request_adapter: + raise Exception("Http core is null") + return await self.request_adapter.send_no_response_content_async(request_info, error_mapping) + + async def get(self,request_configuration: Optional[RequestConfiguration] = None) -> Optional[EducationGradingScheme]: + """ + Get gradingSchemes from education + param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. + Returns: Optional[EducationGradingScheme] + """ + request_info = self.to_get_request_information( + request_configuration + ) + from .......models.o_data_errors.o_data_error import ODataError + + error_mapping: Dict[str, ParsableFactory] = { + "XXX": ODataError, + } + if not self.request_adapter: + raise Exception("Http core is null") + from .......models.education_grading_scheme import EducationGradingScheme + + return await self.request_adapter.send_async(request_info, EducationGradingScheme, error_mapping) + + async def patch(self,body: Optional[EducationGradingScheme] = None, request_configuration: Optional[RequestConfiguration] = None) -> Optional[EducationGradingScheme]: + """ + Update the navigation property gradingSchemes in education + param body: The request body + param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. + Returns: Optional[EducationGradingScheme] + """ + if not body: + raise TypeError("body cannot be null.") + request_info = self.to_patch_request_information( + body, request_configuration + ) + from .......models.o_data_errors.o_data_error import ODataError + + error_mapping: Dict[str, ParsableFactory] = { + "XXX": ODataError, + } + if not self.request_adapter: + raise Exception("Http core is null") + from .......models.education_grading_scheme import EducationGradingScheme + + return await self.request_adapter.send_async(request_info, EducationGradingScheme, error_mapping) + + def to_delete_request_information(self,request_configuration: Optional[RequestConfiguration] = None) -> RequestInformation: + """ + Delete navigation property gradingSchemes for education + param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. + Returns: RequestInformation + """ + request_info = RequestInformation(Method.DELETE, '{+baseurl}/education/classes/{educationClass%2Did}/assignmentSettings/gradingSchemes/{educationGradingScheme%2Did}', self.path_parameters) + request_info.configure(request_configuration) + request_info.headers.try_add("Accept", "application/json") + return request_info + + def to_get_request_information(self,request_configuration: Optional[RequestConfiguration] = None) -> RequestInformation: + """ + Get gradingSchemes from education + param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. + Returns: RequestInformation + """ + request_info = RequestInformation(Method.GET, self.url_template, self.path_parameters) + request_info.configure(request_configuration) + request_info.headers.try_add("Accept", "application/json") + return request_info + + def to_patch_request_information(self,body: Optional[EducationGradingScheme] = None, request_configuration: Optional[RequestConfiguration] = None) -> RequestInformation: + """ + Update the navigation property gradingSchemes in education + param body: The request body + param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. + Returns: RequestInformation + """ + if not body: + raise TypeError("body cannot be null.") + request_info = RequestInformation(Method.PATCH, '{+baseurl}/education/classes/{educationClass%2Did}/assignmentSettings/gradingSchemes/{educationGradingScheme%2Did}', self.path_parameters) + request_info.configure(request_configuration) + request_info.headers.try_add("Accept", "application/json") + request_info.set_content_from_parsable(self.request_adapter, "application/json", body) + return request_info + + def with_url(self,raw_url: Optional[str] = None) -> EducationGradingSchemeItemRequestBuilder: + """ + Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + param raw_url: The raw URL to use for the request builder. + Returns: EducationGradingSchemeItemRequestBuilder + """ + if not raw_url: + raise TypeError("raw_url cannot be null.") + return EducationGradingSchemeItemRequestBuilder(self.request_adapter, raw_url) + + @dataclass + class EducationGradingSchemeItemRequestBuilderGetQueryParameters(): + """ + Get gradingSchemes from education + """ + def get_query_parameter(self,original_name: Optional[str] = None) -> str: + """ + Maps the query parameters names to their encoded names for the URI template parsing. + param original_name: The original query parameter name in the class. + Returns: str + """ + if not original_name: + raise TypeError("original_name cannot be null.") + if original_name == "expand": + return "%24expand" + if original_name == "select": + return "%24select" + return original_name + + # Expand related entities + expand: Optional[List[str]] = None + + # Select properties to be returned + select: Optional[List[str]] = None + + + diff --git a/msgraph_beta/generated/education/classes/item/assignments/item/activate/activate_request_builder.py b/msgraph_beta/generated/education/classes/item/assignments/item/activate/activate_request_builder.py index c5ec330db0d..dd6d7d91bb8 100644 --- a/msgraph_beta/generated/education/classes/item/assignments/item/activate/activate_request_builder.py +++ b/msgraph_beta/generated/education/classes/item/assignments/item/activate/activate_request_builder.py @@ -28,7 +28,7 @@ def __init__(self,request_adapter: RequestAdapter, path_parameters: Union[str, D async def post(self,request_configuration: Optional[RequestConfiguration] = None) -> Optional[EducationAssignment]: """ - Activate an inactive educationAssignment to signal that the assignment has further action items for teachers and students. This action can only be performed by a teacher on currently inactive assignments. + Activate an inactive educationAssignment to signal that the assignment has further action items for teachers or students. This action can only be performed by a teacher on currently inactive assignments. param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: Optional[EducationAssignment] Find more info here: https://learn.microsoft.com/graph/api/educationassignment-activate?view=graph-rest-1.0 @@ -49,7 +49,7 @@ async def post(self,request_configuration: Optional[RequestConfiguration] = None def to_post_request_information(self,request_configuration: Optional[RequestConfiguration] = None) -> RequestInformation: """ - Activate an inactive educationAssignment to signal that the assignment has further action items for teachers and students. This action can only be performed by a teacher on currently inactive assignments. + Activate an inactive educationAssignment to signal that the assignment has further action items for teachers or students. This action can only be performed by a teacher on currently inactive assignments. param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: RequestInformation """ diff --git a/msgraph_beta/generated/education/classes/item/assignments/item/education_assignment_item_request_builder.py b/msgraph_beta/generated/education/classes/item/assignments/item/education_assignment_item_request_builder.py index 9355e1515d7..1a8713850f4 100644 --- a/msgraph_beta/generated/education/classes/item/assignments/item/education_assignment_item_request_builder.py +++ b/msgraph_beta/generated/education/classes/item/assignments/item/education_assignment_item_request_builder.py @@ -17,6 +17,7 @@ from .categories.categories_request_builder import CategoriesRequestBuilder from .deactivate.deactivate_request_builder import DeactivateRequestBuilder from .grading_category.grading_category_request_builder import GradingCategoryRequestBuilder + from .grading_scheme.grading_scheme_request_builder import GradingSchemeRequestBuilder from .publish.publish_request_builder import PublishRequestBuilder from .resources.resources_request_builder import ResourcesRequestBuilder from .rubric.rubric_request_builder import RubricRequestBuilder @@ -58,7 +59,7 @@ async def delete(self,request_configuration: Optional[RequestConfiguration] = No async def get(self,request_configuration: Optional[RequestConfiguration] = None) -> Optional[EducationAssignment]: """ - Get the properties and relationships of an assignment. Only teachers, students, and applications with application permissions can perform this operation. Students can only see assignments assigned to them; teachers and applications with application permissions can see all assignments in a class. You can use the Prefer header in your request to get the inactive status in case the assignment is deactivated; otherwise, you will get an unknownFutureValue value in the response. + Get the properties and relationships of an assignment. Only teachers, students, and applications with application permissions can perform this operation. Students can only see assignments assigned to them; teachers and applications with application permissions can see all assignments in a class. You can use the Prefer header in your request to get the inactive status in case the assignment is deactivated; otherwise, the response value for the status property is unknownFutureValue. param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: Optional[EducationAssignment] Find more info here: https://learn.microsoft.com/graph/api/educationassignment-get?view=graph-rest-1.0 @@ -114,7 +115,7 @@ def to_delete_request_information(self,request_configuration: Optional[RequestCo def to_get_request_information(self,request_configuration: Optional[RequestConfiguration] = None) -> RequestInformation: """ - Get the properties and relationships of an assignment. Only teachers, students, and applications with application permissions can perform this operation. Students can only see assignments assigned to them; teachers and applications with application permissions can see all assignments in a class. You can use the Prefer header in your request to get the inactive status in case the assignment is deactivated; otherwise, you will get an unknownFutureValue value in the response. + Get the properties and relationships of an assignment. Only teachers, students, and applications with application permissions can perform this operation. Students can only see assignments assigned to them; teachers and applications with application permissions can see all assignments in a class. You can use the Prefer header in your request to get the inactive status in case the assignment is deactivated; otherwise, the response value for the status property is unknownFutureValue. param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: RequestInformation """ @@ -184,6 +185,15 @@ def grading_category(self) -> GradingCategoryRequestBuilder: return GradingCategoryRequestBuilder(self.request_adapter, self.path_parameters) + @property + def grading_scheme(self) -> GradingSchemeRequestBuilder: + """ + Provides operations to manage the gradingScheme property of the microsoft.graph.educationAssignment entity. + """ + from .grading_scheme.grading_scheme_request_builder import GradingSchemeRequestBuilder + + return GradingSchemeRequestBuilder(self.request_adapter, self.path_parameters) + @property def publish(self) -> PublishRequestBuilder: """ @@ -241,7 +251,7 @@ def submissions(self) -> SubmissionsRequestBuilder: @dataclass class EducationAssignmentItemRequestBuilderGetQueryParameters(): """ - Get the properties and relationships of an assignment. Only teachers, students, and applications with application permissions can perform this operation. Students can only see assignments assigned to them; teachers and applications with application permissions can see all assignments in a class. You can use the Prefer header in your request to get the inactive status in case the assignment is deactivated; otherwise, you will get an unknownFutureValue value in the response. + Get the properties and relationships of an assignment. Only teachers, students, and applications with application permissions can perform this operation. Students can only see assignments assigned to them; teachers and applications with application permissions can see all assignments in a class. You can use the Prefer header in your request to get the inactive status in case the assignment is deactivated; otherwise, the response value for the status property is unknownFutureValue. """ def get_query_parameter(self,original_name: Optional[str] = None) -> str: """ diff --git a/msgraph_beta/generated/education/classes/item/assignments/item/grading_scheme/grading_scheme_request_builder.py b/msgraph_beta/generated/education/classes/item/assignments/item/grading_scheme/grading_scheme_request_builder.py new file mode 100644 index 00000000000..c264fa1f17f --- /dev/null +++ b/msgraph_beta/generated/education/classes/item/assignments/item/grading_scheme/grading_scheme_request_builder.py @@ -0,0 +1,97 @@ +from __future__ import annotations +from dataclasses import dataclass, field +from kiota_abstractions.base_request_builder import BaseRequestBuilder +from kiota_abstractions.base_request_configuration import RequestConfiguration +from kiota_abstractions.get_path_parameters import get_path_parameters +from kiota_abstractions.method import Method +from kiota_abstractions.request_adapter import RequestAdapter +from kiota_abstractions.request_information import RequestInformation +from kiota_abstractions.request_option import RequestOption +from kiota_abstractions.serialization import Parsable, ParsableFactory +from typing import Any, Callable, Dict, List, Optional, TYPE_CHECKING, Union + +if TYPE_CHECKING: + from .......models.education_grading_scheme import EducationGradingScheme + from .......models.o_data_errors.o_data_error import ODataError + +class GradingSchemeRequestBuilder(BaseRequestBuilder): + """ + Provides operations to manage the gradingScheme property of the microsoft.graph.educationAssignment entity. + """ + def __init__(self,request_adapter: RequestAdapter, path_parameters: Union[str, Dict[str, Any]]) -> None: + """ + Instantiates a new GradingSchemeRequestBuilder and sets the default values. + param path_parameters: The raw url or the url-template parameters for the request. + param request_adapter: The request adapter to use to execute the requests. + Returns: None + """ + super().__init__(request_adapter, "{+baseurl}/education/classes/{educationClass%2Did}/assignments/{educationAssignment%2Did}/gradingScheme{?%24expand,%24select}", path_parameters) + + async def get(self,request_configuration: Optional[RequestConfiguration] = None) -> Optional[EducationGradingScheme]: + """ + Get gradingScheme from education + param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. + Returns: Optional[EducationGradingScheme] + """ + request_info = self.to_get_request_information( + request_configuration + ) + from .......models.o_data_errors.o_data_error import ODataError + + error_mapping: Dict[str, ParsableFactory] = { + "XXX": ODataError, + } + if not self.request_adapter: + raise Exception("Http core is null") + from .......models.education_grading_scheme import EducationGradingScheme + + return await self.request_adapter.send_async(request_info, EducationGradingScheme, error_mapping) + + def to_get_request_information(self,request_configuration: Optional[RequestConfiguration] = None) -> RequestInformation: + """ + Get gradingScheme from education + param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. + Returns: RequestInformation + """ + request_info = RequestInformation(Method.GET, self.url_template, self.path_parameters) + request_info.configure(request_configuration) + request_info.headers.try_add("Accept", "application/json") + return request_info + + def with_url(self,raw_url: Optional[str] = None) -> GradingSchemeRequestBuilder: + """ + Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + param raw_url: The raw URL to use for the request builder. + Returns: GradingSchemeRequestBuilder + """ + if not raw_url: + raise TypeError("raw_url cannot be null.") + return GradingSchemeRequestBuilder(self.request_adapter, raw_url) + + @dataclass + class GradingSchemeRequestBuilderGetQueryParameters(): + """ + Get gradingScheme from education + """ + def get_query_parameter(self,original_name: Optional[str] = None) -> str: + """ + Maps the query parameters names to their encoded names for the URI template parsing. + param original_name: The original query parameter name in the class. + Returns: str + """ + if not original_name: + raise TypeError("original_name cannot be null.") + if original_name == "expand": + return "%24expand" + if original_name == "select": + return "%24select" + return original_name + + # Expand related entities + expand: Optional[List[str]] = None + + # Select properties to be returned + select: Optional[List[str]] = None + + + diff --git a/msgraph_beta/generated/education/me/assignments/item/activate/activate_request_builder.py b/msgraph_beta/generated/education/me/assignments/item/activate/activate_request_builder.py index 3982f0d3e7d..d7bd2f11053 100644 --- a/msgraph_beta/generated/education/me/assignments/item/activate/activate_request_builder.py +++ b/msgraph_beta/generated/education/me/assignments/item/activate/activate_request_builder.py @@ -28,7 +28,7 @@ def __init__(self,request_adapter: RequestAdapter, path_parameters: Union[str, D async def post(self,request_configuration: Optional[RequestConfiguration] = None) -> Optional[EducationAssignment]: """ - Activate an inactive educationAssignment to signal that the assignment has further action items for teachers and students. This action can only be performed by a teacher on currently inactive assignments. + Activate an inactive educationAssignment to signal that the assignment has further action items for teachers or students. This action can only be performed by a teacher on currently inactive assignments. param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: Optional[EducationAssignment] Find more info here: https://learn.microsoft.com/graph/api/educationassignment-activate?view=graph-rest-1.0 @@ -49,7 +49,7 @@ async def post(self,request_configuration: Optional[RequestConfiguration] = None def to_post_request_information(self,request_configuration: Optional[RequestConfiguration] = None) -> RequestInformation: """ - Activate an inactive educationAssignment to signal that the assignment has further action items for teachers and students. This action can only be performed by a teacher on currently inactive assignments. + Activate an inactive educationAssignment to signal that the assignment has further action items for teachers or students. This action can only be performed by a teacher on currently inactive assignments. param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: RequestInformation """ diff --git a/msgraph_beta/generated/education/me/assignments/item/education_assignment_item_request_builder.py b/msgraph_beta/generated/education/me/assignments/item/education_assignment_item_request_builder.py index 6b00f42c120..2c49cdc2e9b 100644 --- a/msgraph_beta/generated/education/me/assignments/item/education_assignment_item_request_builder.py +++ b/msgraph_beta/generated/education/me/assignments/item/education_assignment_item_request_builder.py @@ -17,6 +17,7 @@ from .categories.categories_request_builder import CategoriesRequestBuilder from .deactivate.deactivate_request_builder import DeactivateRequestBuilder from .grading_category.grading_category_request_builder import GradingCategoryRequestBuilder + from .grading_scheme.grading_scheme_request_builder import GradingSchemeRequestBuilder from .publish.publish_request_builder import PublishRequestBuilder from .resources.resources_request_builder import ResourcesRequestBuilder from .rubric.rubric_request_builder import RubricRequestBuilder @@ -181,6 +182,15 @@ def grading_category(self) -> GradingCategoryRequestBuilder: return GradingCategoryRequestBuilder(self.request_adapter, self.path_parameters) + @property + def grading_scheme(self) -> GradingSchemeRequestBuilder: + """ + Provides operations to manage the gradingScheme property of the microsoft.graph.educationAssignment entity. + """ + from .grading_scheme.grading_scheme_request_builder import GradingSchemeRequestBuilder + + return GradingSchemeRequestBuilder(self.request_adapter, self.path_parameters) + @property def publish(self) -> PublishRequestBuilder: """ diff --git a/msgraph_beta/generated/education/me/assignments/item/grading_scheme/grading_scheme_request_builder.py b/msgraph_beta/generated/education/me/assignments/item/grading_scheme/grading_scheme_request_builder.py new file mode 100644 index 00000000000..dead9742c7a --- /dev/null +++ b/msgraph_beta/generated/education/me/assignments/item/grading_scheme/grading_scheme_request_builder.py @@ -0,0 +1,97 @@ +from __future__ import annotations +from dataclasses import dataclass, field +from kiota_abstractions.base_request_builder import BaseRequestBuilder +from kiota_abstractions.base_request_configuration import RequestConfiguration +from kiota_abstractions.get_path_parameters import get_path_parameters +from kiota_abstractions.method import Method +from kiota_abstractions.request_adapter import RequestAdapter +from kiota_abstractions.request_information import RequestInformation +from kiota_abstractions.request_option import RequestOption +from kiota_abstractions.serialization import Parsable, ParsableFactory +from typing import Any, Callable, Dict, List, Optional, TYPE_CHECKING, Union + +if TYPE_CHECKING: + from ......models.education_grading_scheme import EducationGradingScheme + from ......models.o_data_errors.o_data_error import ODataError + +class GradingSchemeRequestBuilder(BaseRequestBuilder): + """ + Provides operations to manage the gradingScheme property of the microsoft.graph.educationAssignment entity. + """ + def __init__(self,request_adapter: RequestAdapter, path_parameters: Union[str, Dict[str, Any]]) -> None: + """ + Instantiates a new GradingSchemeRequestBuilder and sets the default values. + param path_parameters: The raw url or the url-template parameters for the request. + param request_adapter: The request adapter to use to execute the requests. + Returns: None + """ + super().__init__(request_adapter, "{+baseurl}/education/me/assignments/{educationAssignment%2Did}/gradingScheme{?%24expand,%24select}", path_parameters) + + async def get(self,request_configuration: Optional[RequestConfiguration] = None) -> Optional[EducationGradingScheme]: + """ + Get gradingScheme from education + param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. + Returns: Optional[EducationGradingScheme] + """ + request_info = self.to_get_request_information( + request_configuration + ) + from ......models.o_data_errors.o_data_error import ODataError + + error_mapping: Dict[str, ParsableFactory] = { + "XXX": ODataError, + } + if not self.request_adapter: + raise Exception("Http core is null") + from ......models.education_grading_scheme import EducationGradingScheme + + return await self.request_adapter.send_async(request_info, EducationGradingScheme, error_mapping) + + def to_get_request_information(self,request_configuration: Optional[RequestConfiguration] = None) -> RequestInformation: + """ + Get gradingScheme from education + param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. + Returns: RequestInformation + """ + request_info = RequestInformation(Method.GET, self.url_template, self.path_parameters) + request_info.configure(request_configuration) + request_info.headers.try_add("Accept", "application/json") + return request_info + + def with_url(self,raw_url: Optional[str] = None) -> GradingSchemeRequestBuilder: + """ + Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + param raw_url: The raw URL to use for the request builder. + Returns: GradingSchemeRequestBuilder + """ + if not raw_url: + raise TypeError("raw_url cannot be null.") + return GradingSchemeRequestBuilder(self.request_adapter, raw_url) + + @dataclass + class GradingSchemeRequestBuilderGetQueryParameters(): + """ + Get gradingScheme from education + """ + def get_query_parameter(self,original_name: Optional[str] = None) -> str: + """ + Maps the query parameters names to their encoded names for the URI template parsing. + param original_name: The original query parameter name in the class. + Returns: str + """ + if not original_name: + raise TypeError("original_name cannot be null.") + if original_name == "expand": + return "%24expand" + if original_name == "select": + return "%24select" + return original_name + + # Expand related entities + expand: Optional[List[str]] = None + + # Select properties to be returned + select: Optional[List[str]] = None + + + diff --git a/msgraph_beta/generated/education/users/item/assignments/item/activate/activate_request_builder.py b/msgraph_beta/generated/education/users/item/assignments/item/activate/activate_request_builder.py index f3ede43d7ec..f77542a75d7 100644 --- a/msgraph_beta/generated/education/users/item/assignments/item/activate/activate_request_builder.py +++ b/msgraph_beta/generated/education/users/item/assignments/item/activate/activate_request_builder.py @@ -28,7 +28,7 @@ def __init__(self,request_adapter: RequestAdapter, path_parameters: Union[str, D async def post(self,request_configuration: Optional[RequestConfiguration] = None) -> Optional[EducationAssignment]: """ - Activate an inactive educationAssignment to signal that the assignment has further action items for teachers and students. This action can only be performed by a teacher on currently inactive assignments. + Activate an inactive educationAssignment to signal that the assignment has further action items for teachers or students. This action can only be performed by a teacher on currently inactive assignments. param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: Optional[EducationAssignment] Find more info here: https://learn.microsoft.com/graph/api/educationassignment-activate?view=graph-rest-1.0 @@ -49,7 +49,7 @@ async def post(self,request_configuration: Optional[RequestConfiguration] = None def to_post_request_information(self,request_configuration: Optional[RequestConfiguration] = None) -> RequestInformation: """ - Activate an inactive educationAssignment to signal that the assignment has further action items for teachers and students. This action can only be performed by a teacher on currently inactive assignments. + Activate an inactive educationAssignment to signal that the assignment has further action items for teachers or students. This action can only be performed by a teacher on currently inactive assignments. param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: RequestInformation """ diff --git a/msgraph_beta/generated/education/users/item/assignments/item/education_assignment_item_request_builder.py b/msgraph_beta/generated/education/users/item/assignments/item/education_assignment_item_request_builder.py index ad01f52897b..650aabe11f0 100644 --- a/msgraph_beta/generated/education/users/item/assignments/item/education_assignment_item_request_builder.py +++ b/msgraph_beta/generated/education/users/item/assignments/item/education_assignment_item_request_builder.py @@ -17,6 +17,7 @@ from .categories.categories_request_builder import CategoriesRequestBuilder from .deactivate.deactivate_request_builder import DeactivateRequestBuilder from .grading_category.grading_category_request_builder import GradingCategoryRequestBuilder + from .grading_scheme.grading_scheme_request_builder import GradingSchemeRequestBuilder from .publish.publish_request_builder import PublishRequestBuilder from .resources.resources_request_builder import ResourcesRequestBuilder from .rubric.rubric_request_builder import RubricRequestBuilder @@ -181,6 +182,15 @@ def grading_category(self) -> GradingCategoryRequestBuilder: return GradingCategoryRequestBuilder(self.request_adapter, self.path_parameters) + @property + def grading_scheme(self) -> GradingSchemeRequestBuilder: + """ + Provides operations to manage the gradingScheme property of the microsoft.graph.educationAssignment entity. + """ + from .grading_scheme.grading_scheme_request_builder import GradingSchemeRequestBuilder + + return GradingSchemeRequestBuilder(self.request_adapter, self.path_parameters) + @property def publish(self) -> PublishRequestBuilder: """ diff --git a/msgraph_beta/generated/education/users/item/assignments/item/grading_scheme/grading_scheme_request_builder.py b/msgraph_beta/generated/education/users/item/assignments/item/grading_scheme/grading_scheme_request_builder.py new file mode 100644 index 00000000000..3d0066f15ce --- /dev/null +++ b/msgraph_beta/generated/education/users/item/assignments/item/grading_scheme/grading_scheme_request_builder.py @@ -0,0 +1,97 @@ +from __future__ import annotations +from dataclasses import dataclass, field +from kiota_abstractions.base_request_builder import BaseRequestBuilder +from kiota_abstractions.base_request_configuration import RequestConfiguration +from kiota_abstractions.get_path_parameters import get_path_parameters +from kiota_abstractions.method import Method +from kiota_abstractions.request_adapter import RequestAdapter +from kiota_abstractions.request_information import RequestInformation +from kiota_abstractions.request_option import RequestOption +from kiota_abstractions.serialization import Parsable, ParsableFactory +from typing import Any, Callable, Dict, List, Optional, TYPE_CHECKING, Union + +if TYPE_CHECKING: + from .......models.education_grading_scheme import EducationGradingScheme + from .......models.o_data_errors.o_data_error import ODataError + +class GradingSchemeRequestBuilder(BaseRequestBuilder): + """ + Provides operations to manage the gradingScheme property of the microsoft.graph.educationAssignment entity. + """ + def __init__(self,request_adapter: RequestAdapter, path_parameters: Union[str, Dict[str, Any]]) -> None: + """ + Instantiates a new GradingSchemeRequestBuilder and sets the default values. + param path_parameters: The raw url or the url-template parameters for the request. + param request_adapter: The request adapter to use to execute the requests. + Returns: None + """ + super().__init__(request_adapter, "{+baseurl}/education/users/{educationUser%2Did}/assignments/{educationAssignment%2Did}/gradingScheme{?%24expand,%24select}", path_parameters) + + async def get(self,request_configuration: Optional[RequestConfiguration] = None) -> Optional[EducationGradingScheme]: + """ + Get gradingScheme from education + param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. + Returns: Optional[EducationGradingScheme] + """ + request_info = self.to_get_request_information( + request_configuration + ) + from .......models.o_data_errors.o_data_error import ODataError + + error_mapping: Dict[str, ParsableFactory] = { + "XXX": ODataError, + } + if not self.request_adapter: + raise Exception("Http core is null") + from .......models.education_grading_scheme import EducationGradingScheme + + return await self.request_adapter.send_async(request_info, EducationGradingScheme, error_mapping) + + def to_get_request_information(self,request_configuration: Optional[RequestConfiguration] = None) -> RequestInformation: + """ + Get gradingScheme from education + param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. + Returns: RequestInformation + """ + request_info = RequestInformation(Method.GET, self.url_template, self.path_parameters) + request_info.configure(request_configuration) + request_info.headers.try_add("Accept", "application/json") + return request_info + + def with_url(self,raw_url: Optional[str] = None) -> GradingSchemeRequestBuilder: + """ + Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + param raw_url: The raw URL to use for the request builder. + Returns: GradingSchemeRequestBuilder + """ + if not raw_url: + raise TypeError("raw_url cannot be null.") + return GradingSchemeRequestBuilder(self.request_adapter, raw_url) + + @dataclass + class GradingSchemeRequestBuilderGetQueryParameters(): + """ + Get gradingScheme from education + """ + def get_query_parameter(self,original_name: Optional[str] = None) -> str: + """ + Maps the query parameters names to their encoded names for the URI template parsing. + param original_name: The original query parameter name in the class. + Returns: str + """ + if not original_name: + raise TypeError("original_name cannot be null.") + if original_name == "expand": + return "%24expand" + if original_name == "select": + return "%24select" + return original_name + + # Expand related entities + expand: Optional[List[str]] = None + + # Select properties to be returned + select: Optional[List[str]] = None + + + diff --git a/msgraph_beta/generated/education/users/item/education_user_item_request_builder.py b/msgraph_beta/generated/education/users/item/education_user_item_request_builder.py index 8afe6648b99..0e98f107666 100644 --- a/msgraph_beta/generated/education/users/item/education_user_item_request_builder.py +++ b/msgraph_beta/generated/education/users/item/education_user_item_request_builder.py @@ -75,11 +75,11 @@ async def get(self,request_configuration: Optional[RequestConfiguration] = None) async def patch(self,body: Optional[EducationUser] = None, request_configuration: Optional[RequestConfiguration] = None) -> Optional[EducationUser]: """ - Update the properties of an educationuser object. + Update the relatedContact collection of an educationUser object. param body: The request body param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: Optional[EducationUser] - Find more info here: https://learn.microsoft.com/graph/api/educationuser-update?view=graph-rest-1.0 + Find more info here: https://learn.microsoft.com/graph/api/relatedcontact-update?view=graph-rest-1.0 """ if not body: raise TypeError("body cannot be null.") @@ -121,7 +121,7 @@ def to_get_request_information(self,request_configuration: Optional[RequestConfi def to_patch_request_information(self,body: Optional[EducationUser] = None, request_configuration: Optional[RequestConfiguration] = None) -> RequestInformation: """ - Update the properties of an educationuser object. + Update the relatedContact collection of an educationUser object. param body: The request body param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: RequestInformation diff --git a/msgraph_beta/generated/external/industry_data/data_connectors/data_connectors_request_builder.py b/msgraph_beta/generated/external/industry_data/data_connectors/data_connectors_request_builder.py index b896dc08291..1119fe2f728 100644 --- a/msgraph_beta/generated/external/industry_data/data_connectors/data_connectors_request_builder.py +++ b/msgraph_beta/generated/external/industry_data/data_connectors/data_connectors_request_builder.py @@ -67,11 +67,11 @@ async def get(self,request_configuration: Optional[RequestConfiguration] = None) async def post(self,body: Optional[IndustryDataConnector] = None, request_configuration: Optional[RequestConfiguration] = None) -> Optional[IndustryDataConnector]: """ - Create a new azureDataLakeConnector object. + Create a new industryDataConnector object. param body: The request body param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: Optional[IndustryDataConnector] - Find more info here: https://learn.microsoft.com/graph/api/industrydata-azuredatalakeconnector-post?view=graph-rest-1.0 + Find more info here: https://learn.microsoft.com/graph/api/industrydata-industrydataconnector-post?view=graph-rest-1.0 """ if not body: raise TypeError("body cannot be null.") @@ -102,7 +102,7 @@ def to_get_request_information(self,request_configuration: Optional[RequestConfi def to_post_request_information(self,body: Optional[IndustryDataConnector] = None, request_configuration: Optional[RequestConfiguration] = None) -> RequestInformation: """ - Create a new azureDataLakeConnector object. + Create a new industryDataConnector object. param body: The request body param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: RequestInformation diff --git a/msgraph_beta/generated/groups/item/calendar/calendar_view/item/attachments/attachments_request_builder.py b/msgraph_beta/generated/groups/item/calendar/calendar_view/item/attachments/attachments_request_builder.py index b08949e536f..02b1680194d 100644 --- a/msgraph_beta/generated/groups/item/calendar/calendar_view/item/attachments/attachments_request_builder.py +++ b/msgraph_beta/generated/groups/item/calendar/calendar_view/item/attachments/attachments_request_builder.py @@ -68,11 +68,11 @@ async def get(self,request_configuration: Optional[RequestConfiguration] = None) async def post(self,body: Optional[Attachment] = None, request_configuration: Optional[RequestConfiguration] = None) -> Optional[Attachment]: """ - Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. param body: The request body param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: Optional[Attachment] - Find more info here: https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 + Find more info here: https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0 """ if not body: raise TypeError("body cannot be null.") @@ -103,7 +103,7 @@ def to_get_request_information(self,request_configuration: Optional[RequestConfi def to_post_request_information(self,body: Optional[Attachment] = None, request_configuration: Optional[RequestConfiguration] = None) -> RequestInformation: """ - Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. param body: The request body param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: RequestInformation diff --git a/msgraph_beta/generated/groups/item/calendar/calendar_view/item/exception_occurrences/item/attachments/attachments_request_builder.py b/msgraph_beta/generated/groups/item/calendar/calendar_view/item/exception_occurrences/item/attachments/attachments_request_builder.py index 3b7758d625b..9c2cf47a18d 100644 --- a/msgraph_beta/generated/groups/item/calendar/calendar_view/item/exception_occurrences/item/attachments/attachments_request_builder.py +++ b/msgraph_beta/generated/groups/item/calendar/calendar_view/item/exception_occurrences/item/attachments/attachments_request_builder.py @@ -68,11 +68,11 @@ async def get(self,request_configuration: Optional[RequestConfiguration] = None) async def post(self,body: Optional[Attachment] = None, request_configuration: Optional[RequestConfiguration] = None) -> Optional[Attachment]: """ - Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. param body: The request body param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: Optional[Attachment] - Find more info here: https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 + Find more info here: https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0 """ if not body: raise TypeError("body cannot be null.") @@ -103,7 +103,7 @@ def to_get_request_information(self,request_configuration: Optional[RequestConfi def to_post_request_information(self,body: Optional[Attachment] = None, request_configuration: Optional[RequestConfiguration] = None) -> RequestInformation: """ - Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. param body: The request body param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: RequestInformation diff --git a/msgraph_beta/generated/groups/item/calendar/calendar_view/item/exception_occurrences/item/instances/item/attachments/attachments_request_builder.py b/msgraph_beta/generated/groups/item/calendar/calendar_view/item/exception_occurrences/item/instances/item/attachments/attachments_request_builder.py index c43bac19ddf..b8d5b4cdbba 100644 --- a/msgraph_beta/generated/groups/item/calendar/calendar_view/item/exception_occurrences/item/instances/item/attachments/attachments_request_builder.py +++ b/msgraph_beta/generated/groups/item/calendar/calendar_view/item/exception_occurrences/item/instances/item/attachments/attachments_request_builder.py @@ -68,11 +68,11 @@ async def get(self,request_configuration: Optional[RequestConfiguration] = None) async def post(self,body: Optional[Attachment] = None, request_configuration: Optional[RequestConfiguration] = None) -> Optional[Attachment]: """ - Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. param body: The request body param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: Optional[Attachment] - Find more info here: https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 + Find more info here: https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0 """ if not body: raise TypeError("body cannot be null.") @@ -103,7 +103,7 @@ def to_get_request_information(self,request_configuration: Optional[RequestConfi def to_post_request_information(self,body: Optional[Attachment] = None, request_configuration: Optional[RequestConfiguration] = None) -> RequestInformation: """ - Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. param body: The request body param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: RequestInformation diff --git a/msgraph_beta/generated/groups/item/calendar/calendar_view/item/instances/item/attachments/attachments_request_builder.py b/msgraph_beta/generated/groups/item/calendar/calendar_view/item/instances/item/attachments/attachments_request_builder.py index d093bd8fced..360be1baf34 100644 --- a/msgraph_beta/generated/groups/item/calendar/calendar_view/item/instances/item/attachments/attachments_request_builder.py +++ b/msgraph_beta/generated/groups/item/calendar/calendar_view/item/instances/item/attachments/attachments_request_builder.py @@ -68,11 +68,11 @@ async def get(self,request_configuration: Optional[RequestConfiguration] = None) async def post(self,body: Optional[Attachment] = None, request_configuration: Optional[RequestConfiguration] = None) -> Optional[Attachment]: """ - Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. param body: The request body param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: Optional[Attachment] - Find more info here: https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 + Find more info here: https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0 """ if not body: raise TypeError("body cannot be null.") @@ -103,7 +103,7 @@ def to_get_request_information(self,request_configuration: Optional[RequestConfi def to_post_request_information(self,body: Optional[Attachment] = None, request_configuration: Optional[RequestConfiguration] = None) -> RequestInformation: """ - Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. param body: The request body param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: RequestInformation diff --git a/msgraph_beta/generated/groups/item/calendar/calendar_view/item/instances/item/exception_occurrences/item/attachments/attachments_request_builder.py b/msgraph_beta/generated/groups/item/calendar/calendar_view/item/instances/item/exception_occurrences/item/attachments/attachments_request_builder.py index 5562544be0d..990806985dc 100644 --- a/msgraph_beta/generated/groups/item/calendar/calendar_view/item/instances/item/exception_occurrences/item/attachments/attachments_request_builder.py +++ b/msgraph_beta/generated/groups/item/calendar/calendar_view/item/instances/item/exception_occurrences/item/attachments/attachments_request_builder.py @@ -68,11 +68,11 @@ async def get(self,request_configuration: Optional[RequestConfiguration] = None) async def post(self,body: Optional[Attachment] = None, request_configuration: Optional[RequestConfiguration] = None) -> Optional[Attachment]: """ - Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. param body: The request body param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: Optional[Attachment] - Find more info here: https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 + Find more info here: https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0 """ if not body: raise TypeError("body cannot be null.") @@ -103,7 +103,7 @@ def to_get_request_information(self,request_configuration: Optional[RequestConfi def to_post_request_information(self,body: Optional[Attachment] = None, request_configuration: Optional[RequestConfiguration] = None) -> RequestInformation: """ - Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. param body: The request body param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: RequestInformation diff --git a/msgraph_beta/generated/groups/item/calendar/events/item/attachments/attachments_request_builder.py b/msgraph_beta/generated/groups/item/calendar/events/item/attachments/attachments_request_builder.py index a4cfc6ca525..34daaa84799 100644 --- a/msgraph_beta/generated/groups/item/calendar/events/item/attachments/attachments_request_builder.py +++ b/msgraph_beta/generated/groups/item/calendar/events/item/attachments/attachments_request_builder.py @@ -68,11 +68,11 @@ async def get(self,request_configuration: Optional[RequestConfiguration] = None) async def post(self,body: Optional[Attachment] = None, request_configuration: Optional[RequestConfiguration] = None) -> Optional[Attachment]: """ - Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. param body: The request body param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: Optional[Attachment] - Find more info here: https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 + Find more info here: https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0 """ if not body: raise TypeError("body cannot be null.") @@ -103,7 +103,7 @@ def to_get_request_information(self,request_configuration: Optional[RequestConfi def to_post_request_information(self,body: Optional[Attachment] = None, request_configuration: Optional[RequestConfiguration] = None) -> RequestInformation: """ - Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. param body: The request body param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: RequestInformation diff --git a/msgraph_beta/generated/groups/item/calendar/events/item/exception_occurrences/item/attachments/attachments_request_builder.py b/msgraph_beta/generated/groups/item/calendar/events/item/exception_occurrences/item/attachments/attachments_request_builder.py index 547e9a20319..23fc919032e 100644 --- a/msgraph_beta/generated/groups/item/calendar/events/item/exception_occurrences/item/attachments/attachments_request_builder.py +++ b/msgraph_beta/generated/groups/item/calendar/events/item/exception_occurrences/item/attachments/attachments_request_builder.py @@ -68,11 +68,11 @@ async def get(self,request_configuration: Optional[RequestConfiguration] = None) async def post(self,body: Optional[Attachment] = None, request_configuration: Optional[RequestConfiguration] = None) -> Optional[Attachment]: """ - Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. param body: The request body param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: Optional[Attachment] - Find more info here: https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 + Find more info here: https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0 """ if not body: raise TypeError("body cannot be null.") @@ -103,7 +103,7 @@ def to_get_request_information(self,request_configuration: Optional[RequestConfi def to_post_request_information(self,body: Optional[Attachment] = None, request_configuration: Optional[RequestConfiguration] = None) -> RequestInformation: """ - Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. param body: The request body param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: RequestInformation diff --git a/msgraph_beta/generated/groups/item/calendar/events/item/exception_occurrences/item/instances/item/attachments/attachments_request_builder.py b/msgraph_beta/generated/groups/item/calendar/events/item/exception_occurrences/item/instances/item/attachments/attachments_request_builder.py index e87a8afc2c5..3d011a5d350 100644 --- a/msgraph_beta/generated/groups/item/calendar/events/item/exception_occurrences/item/instances/item/attachments/attachments_request_builder.py +++ b/msgraph_beta/generated/groups/item/calendar/events/item/exception_occurrences/item/instances/item/attachments/attachments_request_builder.py @@ -68,11 +68,11 @@ async def get(self,request_configuration: Optional[RequestConfiguration] = None) async def post(self,body: Optional[Attachment] = None, request_configuration: Optional[RequestConfiguration] = None) -> Optional[Attachment]: """ - Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. param body: The request body param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: Optional[Attachment] - Find more info here: https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 + Find more info here: https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0 """ if not body: raise TypeError("body cannot be null.") @@ -103,7 +103,7 @@ def to_get_request_information(self,request_configuration: Optional[RequestConfi def to_post_request_information(self,body: Optional[Attachment] = None, request_configuration: Optional[RequestConfiguration] = None) -> RequestInformation: """ - Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. param body: The request body param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: RequestInformation diff --git a/msgraph_beta/generated/groups/item/calendar/events/item/instances/item/attachments/attachments_request_builder.py b/msgraph_beta/generated/groups/item/calendar/events/item/instances/item/attachments/attachments_request_builder.py index b005baee6cc..e6df0174dc3 100644 --- a/msgraph_beta/generated/groups/item/calendar/events/item/instances/item/attachments/attachments_request_builder.py +++ b/msgraph_beta/generated/groups/item/calendar/events/item/instances/item/attachments/attachments_request_builder.py @@ -68,11 +68,11 @@ async def get(self,request_configuration: Optional[RequestConfiguration] = None) async def post(self,body: Optional[Attachment] = None, request_configuration: Optional[RequestConfiguration] = None) -> Optional[Attachment]: """ - Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. param body: The request body param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: Optional[Attachment] - Find more info here: https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 + Find more info here: https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0 """ if not body: raise TypeError("body cannot be null.") @@ -103,7 +103,7 @@ def to_get_request_information(self,request_configuration: Optional[RequestConfi def to_post_request_information(self,body: Optional[Attachment] = None, request_configuration: Optional[RequestConfiguration] = None) -> RequestInformation: """ - Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. param body: The request body param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: RequestInformation diff --git a/msgraph_beta/generated/groups/item/calendar/events/item/instances/item/exception_occurrences/item/attachments/attachments_request_builder.py b/msgraph_beta/generated/groups/item/calendar/events/item/instances/item/exception_occurrences/item/attachments/attachments_request_builder.py index 5d788aae9cc..5b500faae55 100644 --- a/msgraph_beta/generated/groups/item/calendar/events/item/instances/item/exception_occurrences/item/attachments/attachments_request_builder.py +++ b/msgraph_beta/generated/groups/item/calendar/events/item/instances/item/exception_occurrences/item/attachments/attachments_request_builder.py @@ -68,11 +68,11 @@ async def get(self,request_configuration: Optional[RequestConfiguration] = None) async def post(self,body: Optional[Attachment] = None, request_configuration: Optional[RequestConfiguration] = None) -> Optional[Attachment]: """ - Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. param body: The request body param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: Optional[Attachment] - Find more info here: https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 + Find more info here: https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0 """ if not body: raise TypeError("body cannot be null.") @@ -103,7 +103,7 @@ def to_get_request_information(self,request_configuration: Optional[RequestConfi def to_post_request_information(self,body: Optional[Attachment] = None, request_configuration: Optional[RequestConfiguration] = None) -> RequestInformation: """ - Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. param body: The request body param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: RequestInformation diff --git a/msgraph_beta/generated/groups/item/calendar_view/item/attachments/attachments_request_builder.py b/msgraph_beta/generated/groups/item/calendar_view/item/attachments/attachments_request_builder.py index 9637d6b1433..e8da4b19ceb 100644 --- a/msgraph_beta/generated/groups/item/calendar_view/item/attachments/attachments_request_builder.py +++ b/msgraph_beta/generated/groups/item/calendar_view/item/attachments/attachments_request_builder.py @@ -68,11 +68,11 @@ async def get(self,request_configuration: Optional[RequestConfiguration] = None) async def post(self,body: Optional[Attachment] = None, request_configuration: Optional[RequestConfiguration] = None) -> Optional[Attachment]: """ - Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. param body: The request body param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: Optional[Attachment] - Find more info here: https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 + Find more info here: https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0 """ if not body: raise TypeError("body cannot be null.") @@ -103,7 +103,7 @@ def to_get_request_information(self,request_configuration: Optional[RequestConfi def to_post_request_information(self,body: Optional[Attachment] = None, request_configuration: Optional[RequestConfiguration] = None) -> RequestInformation: """ - Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. param body: The request body param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: RequestInformation diff --git a/msgraph_beta/generated/groups/item/calendar_view/item/exception_occurrences/item/attachments/attachments_request_builder.py b/msgraph_beta/generated/groups/item/calendar_view/item/exception_occurrences/item/attachments/attachments_request_builder.py index a6cc40aedd9..4fd4f50e091 100644 --- a/msgraph_beta/generated/groups/item/calendar_view/item/exception_occurrences/item/attachments/attachments_request_builder.py +++ b/msgraph_beta/generated/groups/item/calendar_view/item/exception_occurrences/item/attachments/attachments_request_builder.py @@ -68,11 +68,11 @@ async def get(self,request_configuration: Optional[RequestConfiguration] = None) async def post(self,body: Optional[Attachment] = None, request_configuration: Optional[RequestConfiguration] = None) -> Optional[Attachment]: """ - Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. param body: The request body param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: Optional[Attachment] - Find more info here: https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 + Find more info here: https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0 """ if not body: raise TypeError("body cannot be null.") @@ -103,7 +103,7 @@ def to_get_request_information(self,request_configuration: Optional[RequestConfi def to_post_request_information(self,body: Optional[Attachment] = None, request_configuration: Optional[RequestConfiguration] = None) -> RequestInformation: """ - Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. param body: The request body param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: RequestInformation diff --git a/msgraph_beta/generated/groups/item/calendar_view/item/exception_occurrences/item/instances/item/attachments/attachments_request_builder.py b/msgraph_beta/generated/groups/item/calendar_view/item/exception_occurrences/item/instances/item/attachments/attachments_request_builder.py index 5097dc1488d..f20af875165 100644 --- a/msgraph_beta/generated/groups/item/calendar_view/item/exception_occurrences/item/instances/item/attachments/attachments_request_builder.py +++ b/msgraph_beta/generated/groups/item/calendar_view/item/exception_occurrences/item/instances/item/attachments/attachments_request_builder.py @@ -68,11 +68,11 @@ async def get(self,request_configuration: Optional[RequestConfiguration] = None) async def post(self,body: Optional[Attachment] = None, request_configuration: Optional[RequestConfiguration] = None) -> Optional[Attachment]: """ - Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. param body: The request body param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: Optional[Attachment] - Find more info here: https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 + Find more info here: https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0 """ if not body: raise TypeError("body cannot be null.") @@ -103,7 +103,7 @@ def to_get_request_information(self,request_configuration: Optional[RequestConfi def to_post_request_information(self,body: Optional[Attachment] = None, request_configuration: Optional[RequestConfiguration] = None) -> RequestInformation: """ - Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. param body: The request body param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: RequestInformation diff --git a/msgraph_beta/generated/groups/item/calendar_view/item/instances/item/attachments/attachments_request_builder.py b/msgraph_beta/generated/groups/item/calendar_view/item/instances/item/attachments/attachments_request_builder.py index b9ddc252063..2510fc1ee68 100644 --- a/msgraph_beta/generated/groups/item/calendar_view/item/instances/item/attachments/attachments_request_builder.py +++ b/msgraph_beta/generated/groups/item/calendar_view/item/instances/item/attachments/attachments_request_builder.py @@ -68,11 +68,11 @@ async def get(self,request_configuration: Optional[RequestConfiguration] = None) async def post(self,body: Optional[Attachment] = None, request_configuration: Optional[RequestConfiguration] = None) -> Optional[Attachment]: """ - Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. param body: The request body param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: Optional[Attachment] - Find more info here: https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 + Find more info here: https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0 """ if not body: raise TypeError("body cannot be null.") @@ -103,7 +103,7 @@ def to_get_request_information(self,request_configuration: Optional[RequestConfi def to_post_request_information(self,body: Optional[Attachment] = None, request_configuration: Optional[RequestConfiguration] = None) -> RequestInformation: """ - Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. param body: The request body param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: RequestInformation diff --git a/msgraph_beta/generated/groups/item/calendar_view/item/instances/item/exception_occurrences/item/attachments/attachments_request_builder.py b/msgraph_beta/generated/groups/item/calendar_view/item/instances/item/exception_occurrences/item/attachments/attachments_request_builder.py index 0f702f3d375..b61aaae5373 100644 --- a/msgraph_beta/generated/groups/item/calendar_view/item/instances/item/exception_occurrences/item/attachments/attachments_request_builder.py +++ b/msgraph_beta/generated/groups/item/calendar_view/item/instances/item/exception_occurrences/item/attachments/attachments_request_builder.py @@ -68,11 +68,11 @@ async def get(self,request_configuration: Optional[RequestConfiguration] = None) async def post(self,body: Optional[Attachment] = None, request_configuration: Optional[RequestConfiguration] = None) -> Optional[Attachment]: """ - Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. param body: The request body param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: Optional[Attachment] - Find more info here: https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 + Find more info here: https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0 """ if not body: raise TypeError("body cannot be null.") @@ -103,7 +103,7 @@ def to_get_request_information(self,request_configuration: Optional[RequestConfi def to_post_request_information(self,body: Optional[Attachment] = None, request_configuration: Optional[RequestConfiguration] = None) -> RequestInformation: """ - Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. param body: The request body param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: RequestInformation diff --git a/msgraph_beta/generated/groups/item/conversations/conversations_request_builder.py b/msgraph_beta/generated/groups/item/conversations/conversations_request_builder.py index f8685d44a7f..f6b47924054 100644 --- a/msgraph_beta/generated/groups/item/conversations/conversations_request_builder.py +++ b/msgraph_beta/generated/groups/item/conversations/conversations_request_builder.py @@ -67,11 +67,11 @@ async def get(self,request_configuration: Optional[RequestConfiguration] = None) async def post(self,body: Optional[Conversation] = None, request_configuration: Optional[RequestConfiguration] = None) -> Optional[Conversation]: """ - Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. + Create a new conversation by including a thread and a post. Use reply thread or reply post to further post to that conversation. param body: The request body param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: Optional[Conversation] - Find more info here: https://learn.microsoft.com/graph/api/opentypeextension-post-opentypeextension?view=graph-rest-1.0 + Find more info here: https://learn.microsoft.com/graph/api/group-post-conversations?view=graph-rest-1.0 """ if not body: raise TypeError("body cannot be null.") @@ -102,7 +102,7 @@ def to_get_request_information(self,request_configuration: Optional[RequestConfi def to_post_request_information(self,body: Optional[Conversation] = None, request_configuration: Optional[RequestConfiguration] = None) -> RequestInformation: """ - Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. + Create a new conversation by including a thread and a post. Use reply thread or reply post to further post to that conversation. param body: The request body param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: RequestInformation diff --git a/msgraph_beta/generated/groups/item/conversations/item/conversation_item_request_builder.py b/msgraph_beta/generated/groups/item/conversations/item/conversation_item_request_builder.py index 4a32084de74..9295169bbe5 100644 --- a/msgraph_beta/generated/groups/item/conversations/item/conversation_item_request_builder.py +++ b/msgraph_beta/generated/groups/item/conversations/item/conversation_item_request_builder.py @@ -30,7 +30,7 @@ def __init__(self,request_adapter: RequestAdapter, path_parameters: Union[str, D async def delete(self,request_configuration: Optional[RequestConfiguration] = None) -> None: """ - Delete a conversation object. + Delete a group's conversation object. param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: None Find more info here: https://learn.microsoft.com/graph/api/group-delete-conversation?view=graph-rest-1.0 @@ -49,10 +49,10 @@ async def delete(self,request_configuration: Optional[RequestConfiguration] = No async def get(self,request_configuration: Optional[RequestConfiguration] = None) -> Optional[Conversation]: """ - Get a conversation object. + Retrieve the properties and relationships of conversation object. param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: Optional[Conversation] - Find more info here: https://learn.microsoft.com/graph/api/group-get-conversation?view=graph-rest-1.0 + Find more info here: https://learn.microsoft.com/graph/api/conversation-get?view=graph-rest-1.0 """ request_info = self.to_get_request_information( request_configuration @@ -70,7 +70,7 @@ async def get(self,request_configuration: Optional[RequestConfiguration] = None) def to_delete_request_information(self,request_configuration: Optional[RequestConfiguration] = None) -> RequestInformation: """ - Delete a conversation object. + Delete a group's conversation object. param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: RequestInformation """ @@ -81,7 +81,7 @@ def to_delete_request_information(self,request_configuration: Optional[RequestCo def to_get_request_information(self,request_configuration: Optional[RequestConfiguration] = None) -> RequestInformation: """ - Get a conversation object. + Retrieve the properties and relationships of conversation object. param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: RequestInformation """ @@ -112,7 +112,7 @@ def threads(self) -> ThreadsRequestBuilder: @dataclass class ConversationItemRequestBuilderGetQueryParameters(): """ - Get a conversation object. + Retrieve the properties and relationships of conversation object. """ def get_query_parameter(self,original_name: Optional[str] = None) -> str: """ diff --git a/msgraph_beta/generated/groups/item/conversations/item/threads/item/reply/reply_request_builder.py b/msgraph_beta/generated/groups/item/conversations/item/threads/item/reply/reply_request_builder.py index 89a81b0ae1a..16d0ce53cfd 100644 --- a/msgraph_beta/generated/groups/item/conversations/item/threads/item/reply/reply_request_builder.py +++ b/msgraph_beta/generated/groups/item/conversations/item/threads/item/reply/reply_request_builder.py @@ -28,11 +28,11 @@ def __init__(self,request_adapter: RequestAdapter, path_parameters: Union[str, D async def post(self,body: Optional[ReplyPostRequestBody] = None, request_configuration: Optional[RequestConfiguration] = None) -> None: """ - Reply to a post and add a new post to the specified thread in a group conversation. You can specify both the parent conversation and thread in the request, or, you can specify just the parent thread without the parent conversation. + Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. param body: The request body param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: None - Find more info here: https://learn.microsoft.com/graph/api/post-reply?view=graph-rest-1.0 + Find more info here: https://learn.microsoft.com/graph/api/opentypeextension-post-opentypeextension?view=graph-rest-1.0 """ if not body: raise TypeError("body cannot be null.") @@ -50,7 +50,7 @@ async def post(self,body: Optional[ReplyPostRequestBody] = None, request_configu def to_post_request_information(self,body: Optional[ReplyPostRequestBody] = None, request_configuration: Optional[RequestConfiguration] = None) -> RequestInformation: """ - Reply to a post and add a new post to the specified thread in a group conversation. You can specify both the parent conversation and thread in the request, or, you can specify just the parent thread without the parent conversation. + Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. param body: The request body param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: RequestInformation diff --git a/msgraph_beta/generated/groups/item/events/item/attachments/attachments_request_builder.py b/msgraph_beta/generated/groups/item/events/item/attachments/attachments_request_builder.py index d626b2807c6..cb506d1d857 100644 --- a/msgraph_beta/generated/groups/item/events/item/attachments/attachments_request_builder.py +++ b/msgraph_beta/generated/groups/item/events/item/attachments/attachments_request_builder.py @@ -68,11 +68,11 @@ async def get(self,request_configuration: Optional[RequestConfiguration] = None) async def post(self,body: Optional[Attachment] = None, request_configuration: Optional[RequestConfiguration] = None) -> Optional[Attachment]: """ - Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. param body: The request body param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: Optional[Attachment] - Find more info here: https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 + Find more info here: https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0 """ if not body: raise TypeError("body cannot be null.") @@ -103,7 +103,7 @@ def to_get_request_information(self,request_configuration: Optional[RequestConfi def to_post_request_information(self,body: Optional[Attachment] = None, request_configuration: Optional[RequestConfiguration] = None) -> RequestInformation: """ - Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. param body: The request body param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: RequestInformation diff --git a/msgraph_beta/generated/groups/item/events/item/exception_occurrences/item/attachments/attachments_request_builder.py b/msgraph_beta/generated/groups/item/events/item/exception_occurrences/item/attachments/attachments_request_builder.py index 0ccc4f7ca14..d7eb5e32bb9 100644 --- a/msgraph_beta/generated/groups/item/events/item/exception_occurrences/item/attachments/attachments_request_builder.py +++ b/msgraph_beta/generated/groups/item/events/item/exception_occurrences/item/attachments/attachments_request_builder.py @@ -68,11 +68,11 @@ async def get(self,request_configuration: Optional[RequestConfiguration] = None) async def post(self,body: Optional[Attachment] = None, request_configuration: Optional[RequestConfiguration] = None) -> Optional[Attachment]: """ - Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. param body: The request body param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: Optional[Attachment] - Find more info here: https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 + Find more info here: https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0 """ if not body: raise TypeError("body cannot be null.") @@ -103,7 +103,7 @@ def to_get_request_information(self,request_configuration: Optional[RequestConfi def to_post_request_information(self,body: Optional[Attachment] = None, request_configuration: Optional[RequestConfiguration] = None) -> RequestInformation: """ - Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. param body: The request body param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: RequestInformation diff --git a/msgraph_beta/generated/groups/item/events/item/exception_occurrences/item/instances/item/attachments/attachments_request_builder.py b/msgraph_beta/generated/groups/item/events/item/exception_occurrences/item/instances/item/attachments/attachments_request_builder.py index 2e885ba84e3..14b1f28ec00 100644 --- a/msgraph_beta/generated/groups/item/events/item/exception_occurrences/item/instances/item/attachments/attachments_request_builder.py +++ b/msgraph_beta/generated/groups/item/events/item/exception_occurrences/item/instances/item/attachments/attachments_request_builder.py @@ -68,11 +68,11 @@ async def get(self,request_configuration: Optional[RequestConfiguration] = None) async def post(self,body: Optional[Attachment] = None, request_configuration: Optional[RequestConfiguration] = None) -> Optional[Attachment]: """ - Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. param body: The request body param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: Optional[Attachment] - Find more info here: https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 + Find more info here: https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0 """ if not body: raise TypeError("body cannot be null.") @@ -103,7 +103,7 @@ def to_get_request_information(self,request_configuration: Optional[RequestConfi def to_post_request_information(self,body: Optional[Attachment] = None, request_configuration: Optional[RequestConfiguration] = None) -> RequestInformation: """ - Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. param body: The request body param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: RequestInformation diff --git a/msgraph_beta/generated/groups/item/events/item/instances/item/attachments/attachments_request_builder.py b/msgraph_beta/generated/groups/item/events/item/instances/item/attachments/attachments_request_builder.py index 19ead9caeed..158d4af024c 100644 --- a/msgraph_beta/generated/groups/item/events/item/instances/item/attachments/attachments_request_builder.py +++ b/msgraph_beta/generated/groups/item/events/item/instances/item/attachments/attachments_request_builder.py @@ -68,11 +68,11 @@ async def get(self,request_configuration: Optional[RequestConfiguration] = None) async def post(self,body: Optional[Attachment] = None, request_configuration: Optional[RequestConfiguration] = None) -> Optional[Attachment]: """ - Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. param body: The request body param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: Optional[Attachment] - Find more info here: https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 + Find more info here: https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0 """ if not body: raise TypeError("body cannot be null.") @@ -103,7 +103,7 @@ def to_get_request_information(self,request_configuration: Optional[RequestConfi def to_post_request_information(self,body: Optional[Attachment] = None, request_configuration: Optional[RequestConfiguration] = None) -> RequestInformation: """ - Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. param body: The request body param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: RequestInformation diff --git a/msgraph_beta/generated/groups/item/events/item/instances/item/exception_occurrences/item/attachments/attachments_request_builder.py b/msgraph_beta/generated/groups/item/events/item/instances/item/exception_occurrences/item/attachments/attachments_request_builder.py index 63fca1c4a77..8f960351092 100644 --- a/msgraph_beta/generated/groups/item/events/item/instances/item/exception_occurrences/item/attachments/attachments_request_builder.py +++ b/msgraph_beta/generated/groups/item/events/item/instances/item/exception_occurrences/item/attachments/attachments_request_builder.py @@ -68,11 +68,11 @@ async def get(self,request_configuration: Optional[RequestConfiguration] = None) async def post(self,body: Optional[Attachment] = None, request_configuration: Optional[RequestConfiguration] = None) -> Optional[Attachment]: """ - Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. param body: The request body param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: Optional[Attachment] - Find more info here: https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 + Find more info here: https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0 """ if not body: raise TypeError("body cannot be null.") @@ -103,7 +103,7 @@ def to_get_request_information(self,request_configuration: Optional[RequestConfi def to_post_request_information(self,body: Optional[Attachment] = None, request_configuration: Optional[RequestConfiguration] = None) -> RequestInformation: """ - Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. param body: The request body param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: RequestInformation diff --git a/msgraph_beta/generated/groups/item/sites/item/lists/item/list_item_request_builder.py b/msgraph_beta/generated/groups/item/sites/item/lists/item/list_item_request_builder.py index 165c1714df0..699c5b94993 100644 --- a/msgraph_beta/generated/groups/item/sites/item/lists/item/list_item_request_builder.py +++ b/msgraph_beta/generated/groups/item/sites/item/lists/item/list_item_request_builder.py @@ -56,10 +56,10 @@ async def delete(self,request_configuration: Optional[RequestConfiguration] = No async def get(self,request_configuration: Optional[RequestConfiguration] = None) -> Optional[List_]: """ - Get the list of richLongRunningOperations associated with a list. + Return the metadata for a [list][]. param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: Optional[List_] - Find more info here: https://learn.microsoft.com/graph/api/list-list-operations?view=graph-rest-1.0 + Find more info here: https://learn.microsoft.com/graph/api/list-get?view=graph-rest-1.0 """ request_info = self.to_get_request_information( request_configuration @@ -111,7 +111,7 @@ def to_delete_request_information(self,request_configuration: Optional[RequestCo def to_get_request_information(self,request_configuration: Optional[RequestConfiguration] = None) -> RequestInformation: """ - Get the list of richLongRunningOperations associated with a list. + Return the metadata for a [list][]. param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: RequestInformation """ @@ -229,7 +229,7 @@ def subscriptions(self) -> SubscriptionsRequestBuilder: @dataclass class ListItemRequestBuilderGetQueryParameters(): """ - Get the list of richLongRunningOperations associated with a list. + Return the metadata for a [list][]. """ def get_query_parameter(self,original_name: Optional[str] = None) -> str: """ diff --git a/msgraph_beta/generated/groups/item/team/channels/item/members/item/conversation_member_item_request_builder.py b/msgraph_beta/generated/groups/item/team/channels/item/members/item/conversation_member_item_request_builder.py index 149cbd0c502..8ee79931a10 100644 --- a/msgraph_beta/generated/groups/item/team/channels/item/members/item/conversation_member_item_request_builder.py +++ b/msgraph_beta/generated/groups/item/team/channels/item/members/item/conversation_member_item_request_builder.py @@ -69,11 +69,11 @@ async def get(self,request_configuration: Optional[RequestConfiguration] = None) async def patch(self,body: Optional[ConversationMember] = None, request_configuration: Optional[RequestConfiguration] = None) -> Optional[ConversationMember]: """ - Update the role of a conversationMember in a channel. This operation is allowed only for channels with a membershipType value of private or shared. + Update the role of a conversationMember in a team.or channel. param body: The request body param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: Optional[ConversationMember] - Find more info here: https://learn.microsoft.com/graph/api/channel-update-members?view=graph-rest-1.0 + Find more info here: https://learn.microsoft.com/graph/api/conversationmember-update?view=graph-rest-1.0 """ if not body: raise TypeError("body cannot be null.") @@ -115,7 +115,7 @@ def to_get_request_information(self,request_configuration: Optional[RequestConfi def to_patch_request_information(self,body: Optional[ConversationMember] = None, request_configuration: Optional[RequestConfiguration] = None) -> RequestInformation: """ - Update the role of a conversationMember in a channel. This operation is allowed only for channels with a membershipType value of private or shared. + Update the role of a conversationMember in a team.or channel. param body: The request body param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: RequestInformation diff --git a/msgraph_beta/generated/groups/item/team/channels/item/messages/item/replies/replies_request_builder.py b/msgraph_beta/generated/groups/item/team/channels/item/messages/item/replies/replies_request_builder.py index f76c9611e0b..d6740913fe3 100644 --- a/msgraph_beta/generated/groups/item/team/channels/item/messages/item/replies/replies_request_builder.py +++ b/msgraph_beta/generated/groups/item/team/channels/item/messages/item/replies/replies_request_builder.py @@ -47,7 +47,7 @@ def by_chat_message_id1(self,chat_message_id1: str) -> ChatMessageItemRequestBui async def get(self,request_configuration: Optional[RequestConfiguration] = None) -> Optional[ChatMessageCollectionResponse]: """ - List all the replies to a message in a channel of a team. This method lists only the replies of the specified message, if any. To get the message itself, simply call get channel message. + List all the replies to a message in a channel of a team. This method lists only the replies of the specified message, if any. To get the message itself, call get channel message. param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: Optional[ChatMessageCollectionResponse] Find more info here: https://learn.microsoft.com/graph/api/chatmessage-list-replies?view=graph-rest-1.0 @@ -92,7 +92,7 @@ async def post(self,body: Optional[ChatMessage] = None, request_configuration: O def to_get_request_information(self,request_configuration: Optional[RequestConfiguration] = None) -> RequestInformation: """ - List all the replies to a message in a channel of a team. This method lists only the replies of the specified message, if any. To get the message itself, simply call get channel message. + List all the replies to a message in a channel of a team. This method lists only the replies of the specified message, if any. To get the message itself, call get channel message. param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: RequestInformation """ @@ -147,7 +147,7 @@ def delta(self) -> DeltaRequestBuilder: @dataclass class RepliesRequestBuilderGetQueryParameters(): """ - List all the replies to a message in a channel of a team. This method lists only the replies of the specified message, if any. To get the message itself, simply call get channel message. + List all the replies to a message in a channel of a team. This method lists only the replies of the specified message, if any. To get the message itself, call get channel message. """ def get_query_parameter(self,original_name: Optional[str] = None) -> str: """ diff --git a/msgraph_beta/generated/groups/item/team/channels/item/messages/messages_request_builder.py b/msgraph_beta/generated/groups/item/team/channels/item/messages/messages_request_builder.py index dd07b82fa3e..d2bca1321b7 100644 --- a/msgraph_beta/generated/groups/item/team/channels/item/messages/messages_request_builder.py +++ b/msgraph_beta/generated/groups/item/team/channels/item/messages/messages_request_builder.py @@ -68,11 +68,11 @@ async def get(self,request_configuration: Optional[RequestConfiguration] = None) async def post(self,body: Optional[ChatMessage] = None, request_configuration: Optional[RequestConfiguration] = None) -> Optional[ChatMessage]: """ - Send a new chatMessage in the specified channel. + Send a new chatMessage in the specified channel or a chat. param body: The request body param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: Optional[ChatMessage] - Find more info here: https://learn.microsoft.com/graph/api/channel-post-messages?view=graph-rest-1.0 + Find more info here: https://learn.microsoft.com/graph/api/chatmessage-post?view=graph-rest-1.0 """ if not body: raise TypeError("body cannot be null.") @@ -103,7 +103,7 @@ def to_get_request_information(self,request_configuration: Optional[RequestConfi def to_post_request_information(self,body: Optional[ChatMessage] = None, request_configuration: Optional[RequestConfiguration] = None) -> RequestInformation: """ - Send a new chatMessage in the specified channel. + Send a new chatMessage in the specified channel or a chat. param body: The request body param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: RequestInformation diff --git a/msgraph_beta/generated/groups/item/team/primary_channel/members/item/conversation_member_item_request_builder.py b/msgraph_beta/generated/groups/item/team/primary_channel/members/item/conversation_member_item_request_builder.py index c106ee7ed05..7efc0880baf 100644 --- a/msgraph_beta/generated/groups/item/team/primary_channel/members/item/conversation_member_item_request_builder.py +++ b/msgraph_beta/generated/groups/item/team/primary_channel/members/item/conversation_member_item_request_builder.py @@ -69,11 +69,11 @@ async def get(self,request_configuration: Optional[RequestConfiguration] = None) async def patch(self,body: Optional[ConversationMember] = None, request_configuration: Optional[RequestConfiguration] = None) -> Optional[ConversationMember]: """ - Update the role of a conversationMember in a channel. This operation is allowed only for channels with a membershipType value of private or shared. + Update the role of a conversationMember in a team.or channel. param body: The request body param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: Optional[ConversationMember] - Find more info here: https://learn.microsoft.com/graph/api/channel-update-members?view=graph-rest-1.0 + Find more info here: https://learn.microsoft.com/graph/api/conversationmember-update?view=graph-rest-1.0 """ if not body: raise TypeError("body cannot be null.") @@ -115,7 +115,7 @@ def to_get_request_information(self,request_configuration: Optional[RequestConfi def to_patch_request_information(self,body: Optional[ConversationMember] = None, request_configuration: Optional[RequestConfiguration] = None) -> RequestInformation: """ - Update the role of a conversationMember in a channel. This operation is allowed only for channels with a membershipType value of private or shared. + Update the role of a conversationMember in a team.or channel. param body: The request body param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: RequestInformation diff --git a/msgraph_beta/generated/groups/item/team/primary_channel/messages/item/replies/replies_request_builder.py b/msgraph_beta/generated/groups/item/team/primary_channel/messages/item/replies/replies_request_builder.py index c8db7c043d0..83f6306448f 100644 --- a/msgraph_beta/generated/groups/item/team/primary_channel/messages/item/replies/replies_request_builder.py +++ b/msgraph_beta/generated/groups/item/team/primary_channel/messages/item/replies/replies_request_builder.py @@ -47,7 +47,7 @@ def by_chat_message_id1(self,chat_message_id1: str) -> ChatMessageItemRequestBui async def get(self,request_configuration: Optional[RequestConfiguration] = None) -> Optional[ChatMessageCollectionResponse]: """ - List all the replies to a message in a channel of a team. This method lists only the replies of the specified message, if any. To get the message itself, simply call get channel message. + List all the replies to a message in a channel of a team. This method lists only the replies of the specified message, if any. To get the message itself, call get channel message. param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: Optional[ChatMessageCollectionResponse] Find more info here: https://learn.microsoft.com/graph/api/chatmessage-list-replies?view=graph-rest-1.0 @@ -92,7 +92,7 @@ async def post(self,body: Optional[ChatMessage] = None, request_configuration: O def to_get_request_information(self,request_configuration: Optional[RequestConfiguration] = None) -> RequestInformation: """ - List all the replies to a message in a channel of a team. This method lists only the replies of the specified message, if any. To get the message itself, simply call get channel message. + List all the replies to a message in a channel of a team. This method lists only the replies of the specified message, if any. To get the message itself, call get channel message. param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: RequestInformation """ @@ -147,7 +147,7 @@ def delta(self) -> DeltaRequestBuilder: @dataclass class RepliesRequestBuilderGetQueryParameters(): """ - List all the replies to a message in a channel of a team. This method lists only the replies of the specified message, if any. To get the message itself, simply call get channel message. + List all the replies to a message in a channel of a team. This method lists only the replies of the specified message, if any. To get the message itself, call get channel message. """ def get_query_parameter(self,original_name: Optional[str] = None) -> str: """ diff --git a/msgraph_beta/generated/groups/item/team/primary_channel/messages/messages_request_builder.py b/msgraph_beta/generated/groups/item/team/primary_channel/messages/messages_request_builder.py index 96ecea1bfb4..f822a1e98aa 100644 --- a/msgraph_beta/generated/groups/item/team/primary_channel/messages/messages_request_builder.py +++ b/msgraph_beta/generated/groups/item/team/primary_channel/messages/messages_request_builder.py @@ -68,11 +68,11 @@ async def get(self,request_configuration: Optional[RequestConfiguration] = None) async def post(self,body: Optional[ChatMessage] = None, request_configuration: Optional[RequestConfiguration] = None) -> Optional[ChatMessage]: """ - Send a new chatMessage in the specified channel. + Send a new chatMessage in the specified channel or a chat. param body: The request body param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: Optional[ChatMessage] - Find more info here: https://learn.microsoft.com/graph/api/channel-post-messages?view=graph-rest-1.0 + Find more info here: https://learn.microsoft.com/graph/api/chatmessage-post?view=graph-rest-1.0 """ if not body: raise TypeError("body cannot be null.") @@ -103,7 +103,7 @@ def to_get_request_information(self,request_configuration: Optional[RequestConfi def to_post_request_information(self,body: Optional[ChatMessage] = None, request_configuration: Optional[RequestConfiguration] = None) -> RequestInformation: """ - Send a new chatMessage in the specified channel. + Send a new chatMessage in the specified channel or a chat. param body: The request body param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: RequestInformation diff --git a/msgraph_beta/generated/groups/item/threads/item/conversation_thread_item_request_builder.py b/msgraph_beta/generated/groups/item/threads/item/conversation_thread_item_request_builder.py index 7cc563a6a6e..fef9d08f7e0 100644 --- a/msgraph_beta/generated/groups/item/threads/item/conversation_thread_item_request_builder.py +++ b/msgraph_beta/generated/groups/item/threads/item/conversation_thread_item_request_builder.py @@ -31,10 +31,10 @@ def __init__(self,request_adapter: RequestAdapter, path_parameters: Union[str, D async def delete(self,request_configuration: Optional[RequestConfiguration] = None) -> None: """ - Delete a thread object. + Delete conversationThread. param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: None - Find more info here: https://learn.microsoft.com/graph/api/group-delete-thread?view=graph-rest-1.0 + Find more info here: https://learn.microsoft.com/graph/api/conversationthread-delete?view=graph-rest-1.0 """ request_info = self.to_delete_request_information( request_configuration @@ -50,10 +50,10 @@ async def delete(self,request_configuration: Optional[RequestConfiguration] = No async def get(self,request_configuration: Optional[RequestConfiguration] = None) -> Optional[ConversationThread]: """ - Get a thread object. + Get a specific thread that belongs to a group. You can specify both the parent conversation and the thread, or, you can specify the thread without referencing the parent conversation. param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: Optional[ConversationThread] - Find more info here: https://learn.microsoft.com/graph/api/group-get-thread?view=graph-rest-1.0 + Find more info here: https://learn.microsoft.com/graph/api/conversationthread-get?view=graph-rest-1.0 """ request_info = self.to_get_request_information( request_configuration @@ -95,7 +95,7 @@ async def patch(self,body: Optional[ConversationThread] = None, request_configur def to_delete_request_information(self,request_configuration: Optional[RequestConfiguration] = None) -> RequestInformation: """ - Delete a thread object. + Delete conversationThread. param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: RequestInformation """ @@ -106,7 +106,7 @@ def to_delete_request_information(self,request_configuration: Optional[RequestCo def to_get_request_information(self,request_configuration: Optional[RequestConfiguration] = None) -> RequestInformation: """ - Get a thread object. + Get a specific thread that belongs to a group. You can specify both the parent conversation and the thread, or, you can specify the thread without referencing the parent conversation. param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: RequestInformation """ @@ -161,7 +161,7 @@ def reply(self) -> ReplyRequestBuilder: @dataclass class ConversationThreadItemRequestBuilderGetQueryParameters(): """ - Get a thread object. + Get a specific thread that belongs to a group. You can specify both the parent conversation and the thread, or, you can specify the thread without referencing the parent conversation. """ def get_query_parameter(self,original_name: Optional[str] = None) -> str: """ diff --git a/msgraph_beta/generated/groups/item/threads/item/reply/reply_request_builder.py b/msgraph_beta/generated/groups/item/threads/item/reply/reply_request_builder.py index c0eb598940c..6d79144727a 100644 --- a/msgraph_beta/generated/groups/item/threads/item/reply/reply_request_builder.py +++ b/msgraph_beta/generated/groups/item/threads/item/reply/reply_request_builder.py @@ -28,11 +28,11 @@ def __init__(self,request_adapter: RequestAdapter, path_parameters: Union[str, D async def post(self,body: Optional[ReplyPostRequestBody] = None, request_configuration: Optional[RequestConfiguration] = None) -> None: """ - Reply to a post and add a new post to the specified thread in a group conversation. You can specify both the parent conversation and thread in the request, or, you can specify just the parent thread without the parent conversation. + Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. param body: The request body param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: None - Find more info here: https://learn.microsoft.com/graph/api/post-reply?view=graph-rest-1.0 + Find more info here: https://learn.microsoft.com/graph/api/opentypeextension-post-opentypeextension?view=graph-rest-1.0 """ if not body: raise TypeError("body cannot be null.") @@ -50,7 +50,7 @@ async def post(self,body: Optional[ReplyPostRequestBody] = None, request_configu def to_post_request_information(self,body: Optional[ReplyPostRequestBody] = None, request_configuration: Optional[RequestConfiguration] = None) -> RequestInformation: """ - Reply to a post and add a new post to the specified thread in a group conversation. You can specify both the parent conversation and thread in the request, or, you can specify just the parent thread without the parent conversation. + Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. param body: The request body param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: RequestInformation diff --git a/msgraph_beta/generated/identity/conditional_access/named_locations/item/named_location_item_request_builder.py b/msgraph_beta/generated/identity/conditional_access/named_locations/item/named_location_item_request_builder.py index 69320261f40..bdd7dfeed75 100644 --- a/msgraph_beta/generated/identity/conditional_access/named_locations/item/named_location_item_request_builder.py +++ b/msgraph_beta/generated/identity/conditional_access/named_locations/item/named_location_item_request_builder.py @@ -29,10 +29,10 @@ def __init__(self,request_adapter: RequestAdapter, path_parameters: Union[str, D async def delete(self,request_configuration: Optional[RequestConfiguration] = None) -> None: """ - Delete a namedLocation object. + Delete a countryNamedLocation object. param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: None - Find more info here: https://learn.microsoft.com/graph/api/namedlocation-delete?view=graph-rest-1.0 + Find more info here: https://learn.microsoft.com/graph/api/countrynamedlocation-delete?view=graph-rest-1.0 """ request_info = self.to_delete_request_information( request_configuration @@ -93,7 +93,7 @@ async def patch(self,body: Optional[NamedLocation] = None, request_configuration def to_delete_request_information(self,request_configuration: Optional[RequestConfiguration] = None) -> RequestInformation: """ - Delete a namedLocation object. + Delete a countryNamedLocation object. param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: RequestInformation """ diff --git a/msgraph_beta/generated/identity/custom_authentication_extensions/item/custom_authentication_extension_item_request_builder.py b/msgraph_beta/generated/identity/custom_authentication_extensions/item/custom_authentication_extension_item_request_builder.py index 5da92de5159..6f126fc394e 100644 --- a/msgraph_beta/generated/identity/custom_authentication_extensions/item/custom_authentication_extension_item_request_builder.py +++ b/msgraph_beta/generated/identity/custom_authentication_extensions/item/custom_authentication_extension_item_request_builder.py @@ -49,10 +49,10 @@ async def delete(self,request_configuration: Optional[RequestConfiguration] = No async def get(self,request_configuration: Optional[RequestConfiguration] = None) -> Optional[CustomAuthenticationExtension]: """ - Read the properties and relationships of a customAuthenticationExtension object. + Read the properties and relationships of an authenticationEventListener object. The @odata.type property in the response object indicates the type of the authenticationEventListener object. param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: Optional[CustomAuthenticationExtension] - Find more info here: https://learn.microsoft.com/graph/api/customauthenticationextension-get?view=graph-rest-1.0 + Find more info here: https://learn.microsoft.com/graph/api/authenticationeventlistener-get?view=graph-rest-1.0 """ request_info = self.to_get_request_information( request_configuration @@ -104,7 +104,7 @@ def to_delete_request_information(self,request_configuration: Optional[RequestCo def to_get_request_information(self,request_configuration: Optional[RequestConfiguration] = None) -> RequestInformation: """ - Read the properties and relationships of a customAuthenticationExtension object. + Read the properties and relationships of an authenticationEventListener object. The @odata.type property in the response object indicates the type of the authenticationEventListener object. param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: RequestInformation """ @@ -150,7 +150,7 @@ def validate_authentication_configuration(self) -> ValidateAuthenticationConfigu @dataclass class CustomAuthenticationExtensionItemRequestBuilderGetQueryParameters(): """ - Read the properties and relationships of a customAuthenticationExtension object. + Read the properties and relationships of an authenticationEventListener object. The @odata.type property in the response object indicates the type of the authenticationEventListener object. """ def get_query_parameter(self,original_name: Optional[str] = None) -> str: """ diff --git a/msgraph_beta/generated/identity_governance/entitlement_management/access_package_catalogs/item/access_package_custom_workflow_extensions/item/custom_callout_extension_item_request_builder.py b/msgraph_beta/generated/identity_governance/entitlement_management/access_package_catalogs/item/access_package_custom_workflow_extensions/item/custom_callout_extension_item_request_builder.py index 7a0805357d2..f5e184bf569 100644 --- a/msgraph_beta/generated/identity_governance/entitlement_management/access_package_catalogs/item/access_package_custom_workflow_extensions/item/custom_callout_extension_item_request_builder.py +++ b/msgraph_beta/generated/identity_governance/entitlement_management/access_package_catalogs/item/access_package_custom_workflow_extensions/item/custom_callout_extension_item_request_builder.py @@ -49,10 +49,10 @@ async def delete(self,request_configuration: Optional[RequestConfiguration] = No async def get(self,request_configuration: Optional[RequestConfiguration] = None) -> Optional[CustomCalloutExtension]: """ - Read the properties and relationships of an accessPackageAssignmentWorkflowExtension object. + Read the properties and relationships of an accessPackageAssignmentRequestWorkflowExtension object. param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: Optional[CustomCalloutExtension] - Find more info here: https://learn.microsoft.com/graph/api/accesspackageassignmentworkflowextension-get?view=graph-rest-1.0 + Find more info here: https://learn.microsoft.com/graph/api/accesspackageassignmentrequestworkflowextension-get?view=graph-rest-1.0 """ warn(" as of 2022-10/PrivatePreview:MicrosofEntitlementManagementCustomextensions", DeprecationWarning) request_info = self.to_get_request_information( @@ -108,7 +108,7 @@ def to_delete_request_information(self,request_configuration: Optional[RequestCo def to_get_request_information(self,request_configuration: Optional[RequestConfiguration] = None) -> RequestInformation: """ - Read the properties and relationships of an accessPackageAssignmentWorkflowExtension object. + Read the properties and relationships of an accessPackageAssignmentRequestWorkflowExtension object. param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: RequestInformation """ @@ -148,7 +148,7 @@ def with_url(self,raw_url: Optional[str] = None) -> CustomCalloutExtensionItemRe @dataclass class CustomCalloutExtensionItemRequestBuilderGetQueryParameters(): """ - Read the properties and relationships of an accessPackageAssignmentWorkflowExtension object. + Read the properties and relationships of an accessPackageAssignmentRequestWorkflowExtension object. """ def get_query_parameter(self,original_name: Optional[str] = None) -> str: """ diff --git a/msgraph_beta/generated/identity_protection/risk_detections/item/risk_detection_item_request_builder.py b/msgraph_beta/generated/identity_protection/risk_detections/item/risk_detection_item_request_builder.py index 5775bfb74e1..86ff64c1a23 100644 --- a/msgraph_beta/generated/identity_protection/risk_detections/item/risk_detection_item_request_builder.py +++ b/msgraph_beta/generated/identity_protection/risk_detections/item/risk_detection_item_request_builder.py @@ -47,10 +47,10 @@ async def delete(self,request_configuration: Optional[RequestConfiguration] = No async def get(self,request_configuration: Optional[RequestConfiguration] = None) -> Optional[RiskDetection]: """ - Retrieve the properties of a riskDetection object. + Retrieve the properties of a collection of riskDetection objects. param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: Optional[RiskDetection] - Find more info here: https://learn.microsoft.com/graph/api/riskdetection-get?view=graph-rest-1.0 + Find more info here: https://learn.microsoft.com/graph/api/riskdetection-list?view=graph-rest-1.0 """ request_info = self.to_get_request_information( request_configuration @@ -102,7 +102,7 @@ def to_delete_request_information(self,request_configuration: Optional[RequestCo def to_get_request_information(self,request_configuration: Optional[RequestConfiguration] = None) -> RequestInformation: """ - Retrieve the properties of a riskDetection object. + Retrieve the properties of a collection of riskDetection objects. param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: RequestInformation """ @@ -139,7 +139,7 @@ def with_url(self,raw_url: Optional[str] = None) -> RiskDetectionItemRequestBuil @dataclass class RiskDetectionItemRequestBuilderGetQueryParameters(): """ - Retrieve the properties of a riskDetection object. + Retrieve the properties of a collection of riskDetection objects. """ def get_query_parameter(self,original_name: Optional[str] = None) -> str: """ diff --git a/msgraph_beta/generated/identity_protection/risky_users/risky_users_request_builder.py b/msgraph_beta/generated/identity_protection/risky_users/risky_users_request_builder.py index 2baae2b9b0f..c5c0afb64ee 100644 --- a/msgraph_beta/generated/identity_protection/risky_users/risky_users_request_builder.py +++ b/msgraph_beta/generated/identity_protection/risky_users/risky_users_request_builder.py @@ -48,10 +48,10 @@ def by_risky_user_id(self,risky_user_id: str) -> RiskyUserItemRequestBuilder: async def get(self,request_configuration: Optional[RequestConfiguration] = None) -> Optional[RiskyUserCollectionResponse]: """ - Retrieve the properties and relationships of a collection of riskyUser objects. + Retrieve the properties and relationships of a riskyUser object. param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: Optional[RiskyUserCollectionResponse] - Find more info here: https://learn.microsoft.com/graph/api/riskyusers-list?view=graph-rest-1.0 + Find more info here: https://learn.microsoft.com/graph/api/riskyusers-get?view=graph-rest-1.0 """ request_info = self.to_get_request_information( request_configuration @@ -92,7 +92,7 @@ async def post(self,body: Optional[RiskyUser] = None, request_configuration: Opt def to_get_request_information(self,request_configuration: Optional[RequestConfiguration] = None) -> RequestInformation: """ - Retrieve the properties and relationships of a collection of riskyUser objects. + Retrieve the properties and relationships of a riskyUser object. param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: RequestInformation """ @@ -156,7 +156,7 @@ def dismiss(self) -> DismissRequestBuilder: @dataclass class RiskyUsersRequestBuilderGetQueryParameters(): """ - Retrieve the properties and relationships of a collection of riskyUser objects. + Retrieve the properties and relationships of a riskyUser object. """ def get_query_parameter(self,original_name: Optional[str] = None) -> str: """ diff --git a/msgraph_beta/generated/kiota-lock.json b/msgraph_beta/generated/kiota-lock.json index b8298d26b54..2cd0d28eb74 100644 --- a/msgraph_beta/generated/kiota-lock.json +++ b/msgraph_beta/generated/kiota-lock.json @@ -1,8 +1,8 @@ { - "descriptionHash": "80AE5F11CB2B8FBB037F5218237A91F5BE7576BBBAAB151FC9F39207791A1CBBE34006DDCFF2AF096E840E8A8E076D056D1ED0C78526B7859DC517FE998E726D", + "descriptionHash": "F3E1C7DF7BE6C33263B10E0783BE7327166206498BFCA86ECB39DCF1F4C28CF74A0D3B35C585D59C774652347A9506B9082D33E7A5D7CBE6473CB3FA4B4FC080", "descriptionLocation": "../../msgraph-metadata/clean_beta_openapi/openapi.yaml", "lockFileVersion": "1.0.0", - "kiotaVersion": "1.11.1", + "kiotaVersion": "1.12.0", "clientClassName": "BaseGraphServiceClient", "clientNamespaceName": "msgraph_beta.generated", "language": "Python", diff --git a/msgraph_beta/generated/models/administrative_unit.py b/msgraph_beta/generated/models/administrative_unit.py index e09c2037a38..f35758b09b4 100644 --- a/msgraph_beta/generated/models/administrative_unit.py +++ b/msgraph_beta/generated/models/administrative_unit.py @@ -24,6 +24,12 @@ class AdministrativeUnit(DirectoryObject): is_member_management_restricted: Optional[bool] = None # Users and groups that are members of this administrative unit. Supports $expand. members: Optional[List[DirectoryObject]] = None + # Dynamic membership rule for the administrative unit. For more about the rules that you can use for dynamic administrative units and dynamic groups, see Using attributes to create advanced rules. + membership_rule: Optional[str] = None + # Used to control whether the dynamic membership rule is actively processed. Set to On when you want the dynamic membership rule to be active and Paused if you want to stop updating membership dynamically. If not set, the default behavior is Paused. + membership_rule_processing_state: Optional[str] = None + # Membership type for the administrative unit. Can be dynamic or assigned. If not set, the default behavior is assigned. + membership_type: Optional[str] = None # Scoped-role members of this administrative unit. scoped_role_members: Optional[List[ScopedRoleMembership]] = None # Controls whether the administrative unit and its members are hidden or public. Can be set to HiddenMembership or Public. If not set, the default behavior is Public. When set to HiddenMembership, only members of the administrative unit can list other members of the administrative unit. @@ -59,6 +65,9 @@ def get_field_deserializers(self,) -> Dict[str, Callable[[ParseNode], None]]: "extensions": lambda n : setattr(self, 'extensions', n.get_collection_of_object_values(Extension)), "isMemberManagementRestricted": lambda n : setattr(self, 'is_member_management_restricted', n.get_bool_value()), "members": lambda n : setattr(self, 'members', n.get_collection_of_object_values(DirectoryObject)), + "membershipRule": lambda n : setattr(self, 'membership_rule', n.get_str_value()), + "membershipRuleProcessingState": lambda n : setattr(self, 'membership_rule_processing_state', n.get_str_value()), + "membershipType": lambda n : setattr(self, 'membership_type', n.get_str_value()), "scopedRoleMembers": lambda n : setattr(self, 'scoped_role_members', n.get_collection_of_object_values(ScopedRoleMembership)), "visibility": lambda n : setattr(self, 'visibility', n.get_str_value()), } @@ -80,6 +89,9 @@ def serialize(self,writer: SerializationWriter) -> None: writer.write_collection_of_object_values("extensions", self.extensions) writer.write_bool_value("isMemberManagementRestricted", self.is_member_management_restricted) writer.write_collection_of_object_values("members", self.members) + writer.write_str_value("membershipRule", self.membership_rule) + writer.write_str_value("membershipRuleProcessingState", self.membership_rule_processing_state) + writer.write_str_value("membershipType", self.membership_type) writer.write_collection_of_object_values("scopedRoleMembers", self.scoped_role_members) writer.write_str_value("visibility", self.visibility) diff --git a/msgraph_beta/generated/models/attendee_notification_info.py b/msgraph_beta/generated/models/attendee_notification_info.py index dbbefd11e23..e369e4fe06a 100644 --- a/msgraph_beta/generated/models/attendee_notification_info.py +++ b/msgraph_beta/generated/models/attendee_notification_info.py @@ -13,9 +13,9 @@ class AttendeeNotificationInfo(AdditionalDataHolder, BackedModel, Parsable): additional_data: Dict[str, Any] = field(default_factory=dict) # The OdataType property odata_type: Optional[str] = None - # The phoneNumber property + # The phone number of the external attendee. Required. phone_number: Optional[str] = None - # The timeZone property + # The time zone of the external attendee. The timeZone property can be set to any of the time zones currently supported by Windows. Required. time_zone: Optional[str] = None @staticmethod diff --git a/msgraph_beta/generated/models/booking_appointment.py b/msgraph_beta/generated/models/booking_appointment.py index 63d8e6870b0..3a5f1a34f3f 100644 --- a/msgraph_beta/generated/models/booking_appointment.py +++ b/msgraph_beta/generated/models/booking_appointment.py @@ -60,6 +60,8 @@ class BookingAppointment(Entity): invoice_status: Optional[BookingInvoiceStatus] = None # The URL of the invoice in Microsoft Bookings. invoice_url: Optional[str] = None + # The isCustomerAllowedToManageBooking property + is_customer_allowed_to_manage_booking: Optional[bool] = None # True indicates that the appointment will be held online. Default value is false. is_location_online: Optional[bool] = None # The URL of the online meeting for the appointment. @@ -154,6 +156,7 @@ def get_field_deserializers(self,) -> Dict[str, Callable[[ParseNode], None]]: "invoiceId": lambda n : setattr(self, 'invoice_id', n.get_str_value()), "invoiceStatus": lambda n : setattr(self, 'invoice_status', n.get_enum_value(BookingInvoiceStatus)), "invoiceUrl": lambda n : setattr(self, 'invoice_url', n.get_str_value()), + "isCustomerAllowedToManageBooking": lambda n : setattr(self, 'is_customer_allowed_to_manage_booking', n.get_bool_value()), "isLocationOnline": lambda n : setattr(self, 'is_location_online', n.get_bool_value()), "joinWebUrl": lambda n : setattr(self, 'join_web_url', n.get_str_value()), "lastUpdatedDateTime": lambda n : setattr(self, 'last_updated_date_time', n.get_datetime_value()), @@ -205,6 +208,7 @@ def serialize(self,writer: SerializationWriter) -> None: writer.write_str_value("invoiceId", self.invoice_id) writer.write_enum_value("invoiceStatus", self.invoice_status) writer.write_str_value("invoiceUrl", self.invoice_url) + writer.write_bool_value("isCustomerAllowedToManageBooking", self.is_customer_allowed_to_manage_booking) writer.write_bool_value("isLocationOnline", self.is_location_online) writer.write_str_value("joinWebUrl", self.join_web_url) writer.write_datetime_value("lastUpdatedDateTime", self.last_updated_date_time) diff --git a/msgraph_beta/generated/models/booking_scheduling_policy.py b/msgraph_beta/generated/models/booking_scheduling_policy.py index 3ca77d44294..17112c65c41 100644 --- a/msgraph_beta/generated/models/booking_scheduling_policy.py +++ b/msgraph_beta/generated/models/booking_scheduling_policy.py @@ -5,6 +5,10 @@ from kiota_abstractions.store import BackedModel, BackingStore, BackingStoreFactorySingleton from typing import Any, Callable, Dict, List, Optional, TYPE_CHECKING, Union +if TYPE_CHECKING: + from .bookings_availability import BookingsAvailability + from .bookings_availability_window import BookingsAvailabilityWindow + @dataclass class BookingSchedulingPolicy(AdditionalDataHolder, BackedModel, Parsable): """ @@ -17,6 +21,10 @@ class BookingSchedulingPolicy(AdditionalDataHolder, BackedModel, Parsable): additional_data: Dict[str, Any] = field(default_factory=dict) # True if to allow customers to choose a specific person for the booking. allow_staff_selection: Optional[bool] = None + # collection of custom availabilities for a given time range. + custom_availabilities: Optional[List[BookingsAvailabilityWindow]] = None + # General availability + general_availability: Optional[BookingsAvailability] = None # Indicates if the meeting invite is sent to the customers. The default value is false is_meeting_invite_to_customers_enabled: Optional[bool] = None # Maximum number of days in advance that a booking can be made. It follows the ISO 8601 format. @@ -46,8 +54,16 @@ def get_field_deserializers(self,) -> Dict[str, Callable[[ParseNode], None]]: The deserialization information for the current model Returns: Dict[str, Callable[[ParseNode], None]] """ + from .bookings_availability import BookingsAvailability + from .bookings_availability_window import BookingsAvailabilityWindow + + from .bookings_availability import BookingsAvailability + from .bookings_availability_window import BookingsAvailabilityWindow + fields: Dict[str, Callable[[Any], None]] = { "allowStaffSelection": lambda n : setattr(self, 'allow_staff_selection', n.get_bool_value()), + "customAvailabilities": lambda n : setattr(self, 'custom_availabilities', n.get_collection_of_object_values(BookingsAvailabilityWindow)), + "generalAvailability": lambda n : setattr(self, 'general_availability', n.get_object_value(BookingsAvailability)), "isMeetingInviteToCustomersEnabled": lambda n : setattr(self, 'is_meeting_invite_to_customers_enabled', n.get_bool_value()), "maximumAdvance": lambda n : setattr(self, 'maximum_advance', n.get_timedelta_value()), "minimumLeadTime": lambda n : setattr(self, 'minimum_lead_time', n.get_timedelta_value()), @@ -66,6 +82,8 @@ def serialize(self,writer: SerializationWriter) -> None: if not writer: raise TypeError("writer cannot be null.") writer.write_bool_value("allowStaffSelection", self.allow_staff_selection) + writer.write_collection_of_object_values("customAvailabilities", self.custom_availabilities) + writer.write_object_value("generalAvailability", self.general_availability) writer.write_bool_value("isMeetingInviteToCustomersEnabled", self.is_meeting_invite_to_customers_enabled) writer.write_timedelta_value("maximumAdvance", self.maximum_advance) writer.write_timedelta_value("minimumLeadTime", self.minimum_lead_time) diff --git a/msgraph_beta/generated/models/booking_service.py b/msgraph_beta/generated/models/booking_service.py index 1d169605eca..119ae5fff90 100644 --- a/msgraph_beta/generated/models/booking_service.py +++ b/msgraph_beta/generated/models/booking_service.py @@ -41,6 +41,8 @@ class BookingService(BookingNamedEntity): description: Optional[str] = None # Indicates if an anonymousJoinWebUrl(webrtcUrl) is generated for the appointment booked for this service. The default value is false. is_anonymous_join_enabled: Optional[bool] = None + # The isCustomerAllowedToManageBooking property + is_customer_allowed_to_manage_booking: Optional[bool] = None # True means this service isn't available to customers for booking. is_hidden_from_customers: Optional[bool] = None # Indicates that the appointments for the service are held online. The default value is false. @@ -107,6 +109,7 @@ def get_field_deserializers(self,) -> Dict[str, Callable[[ParseNode], None]]: "defaultReminders": lambda n : setattr(self, 'default_reminders', n.get_collection_of_object_values(BookingReminder)), "description": lambda n : setattr(self, 'description', n.get_str_value()), "isAnonymousJoinEnabled": lambda n : setattr(self, 'is_anonymous_join_enabled', n.get_bool_value()), + "isCustomerAllowedToManageBooking": lambda n : setattr(self, 'is_customer_allowed_to_manage_booking', n.get_bool_value()), "isHiddenFromCustomers": lambda n : setattr(self, 'is_hidden_from_customers', n.get_bool_value()), "isLocationOnline": lambda n : setattr(self, 'is_location_online', n.get_bool_value()), "languageTag": lambda n : setattr(self, 'language_tag', n.get_str_value()), @@ -143,6 +146,7 @@ def serialize(self,writer: SerializationWriter) -> None: writer.write_collection_of_object_values("defaultReminders", self.default_reminders) writer.write_str_value("description", self.description) writer.write_bool_value("isAnonymousJoinEnabled", self.is_anonymous_join_enabled) + writer.write_bool_value("isCustomerAllowedToManageBooking", self.is_customer_allowed_to_manage_booking) writer.write_bool_value("isHiddenFromCustomers", self.is_hidden_from_customers) writer.write_bool_value("isLocationOnline", self.is_location_online) writer.write_str_value("languageTag", self.language_tag) diff --git a/msgraph_beta/generated/models/bookings_availability.py b/msgraph_beta/generated/models/bookings_availability.py new file mode 100644 index 00000000000..f63f9162e7d --- /dev/null +++ b/msgraph_beta/generated/models/bookings_availability.py @@ -0,0 +1,78 @@ +from __future__ import annotations +from dataclasses import dataclass, field +from kiota_abstractions.serialization import AdditionalDataHolder, Parsable, ParseNode, SerializationWriter +from kiota_abstractions.store import BackedModel, BackingStore, BackingStoreFactorySingleton +from typing import Any, Callable, Dict, List, Optional, TYPE_CHECKING, Union + +if TYPE_CHECKING: + from .bookings_availability_window import BookingsAvailabilityWindow + from .bookings_service_availability_type import BookingsServiceAvailabilityType + from .booking_work_hours import BookingWorkHours + +@dataclass +class BookingsAvailability(AdditionalDataHolder, BackedModel, Parsable): + # Stores model information. + backing_store: BackingStore = field(default_factory=BackingStoreFactorySingleton(backing_store_factory=None).backing_store_factory.create_backing_store, repr=False) + + # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additional_data: Dict[str, Any] = field(default_factory=dict) + # The availabilityType property + availability_type: Optional[BookingsServiceAvailabilityType] = None + # The hours of operation in a week. This is set to null if the availability type is not customWeeklyHours + business_hours: Optional[List[BookingWorkHours]] = None + # The OdataType property + odata_type: Optional[str] = None + + @staticmethod + def create_from_discriminator_value(parse_node: Optional[ParseNode] = None) -> BookingsAvailability: + """ + Creates a new instance of the appropriate class based on discriminator value + param parse_node: The parse node to use to read the discriminator value and create the object + Returns: BookingsAvailability + """ + if not parse_node: + raise TypeError("parse_node cannot be null.") + try: + mapping_value = parse_node.get_child_node("@odata.type").get_str_value() + except AttributeError: + mapping_value = None + if mapping_value and mapping_value.casefold() == "#microsoft.graph.bookingsAvailabilityWindow".casefold(): + from .bookings_availability_window import BookingsAvailabilityWindow + + return BookingsAvailabilityWindow() + return BookingsAvailability() + + def get_field_deserializers(self,) -> Dict[str, Callable[[ParseNode], None]]: + """ + The deserialization information for the current model + Returns: Dict[str, Callable[[ParseNode], None]] + """ + from .bookings_availability_window import BookingsAvailabilityWindow + from .bookings_service_availability_type import BookingsServiceAvailabilityType + from .booking_work_hours import BookingWorkHours + + from .bookings_availability_window import BookingsAvailabilityWindow + from .bookings_service_availability_type import BookingsServiceAvailabilityType + from .booking_work_hours import BookingWorkHours + + fields: Dict[str, Callable[[Any], None]] = { + "availabilityType": lambda n : setattr(self, 'availability_type', n.get_enum_value(BookingsServiceAvailabilityType)), + "businessHours": lambda n : setattr(self, 'business_hours', n.get_collection_of_object_values(BookingWorkHours)), + "@odata.type": lambda n : setattr(self, 'odata_type', n.get_str_value()), + } + return fields + + def serialize(self,writer: SerializationWriter) -> None: + """ + Serializes information the current object + param writer: Serialization writer to use to serialize this model + Returns: None + """ + if not writer: + raise TypeError("writer cannot be null.") + writer.write_enum_value("availabilityType", self.availability_type) + writer.write_collection_of_object_values("businessHours", self.business_hours) + writer.write_str_value("@odata.type", self.odata_type) + writer.write_additional_data_value(self.additional_data) + + diff --git a/msgraph_beta/generated/models/bookings_availability_window.py b/msgraph_beta/generated/models/bookings_availability_window.py new file mode 100644 index 00000000000..96126b29336 --- /dev/null +++ b/msgraph_beta/generated/models/bookings_availability_window.py @@ -0,0 +1,61 @@ +from __future__ import annotations +import datetime +from dataclasses import dataclass, field +from kiota_abstractions.serialization import Parsable, ParseNode, SerializationWriter +from typing import Any, Callable, Dict, List, Optional, TYPE_CHECKING, Union + +if TYPE_CHECKING: + from .bookings_availability import BookingsAvailability + +from .bookings_availability import BookingsAvailability + +@dataclass +class BookingsAvailabilityWindow(BookingsAvailability): + # The OdataType property + odata_type: Optional[str] = "#microsoft.graph.bookingsAvailabilityWindow" + # Allow customers to end date of availability window. + end_date: Optional[datetime.date] = None + # Allow customers to start date of availability window. + start_date: Optional[datetime.date] = None + + @staticmethod + def create_from_discriminator_value(parse_node: Optional[ParseNode] = None) -> BookingsAvailabilityWindow: + """ + Creates a new instance of the appropriate class based on discriminator value + param parse_node: The parse node to use to read the discriminator value and create the object + Returns: BookingsAvailabilityWindow + """ + if not parse_node: + raise TypeError("parse_node cannot be null.") + return BookingsAvailabilityWindow() + + def get_field_deserializers(self,) -> Dict[str, Callable[[ParseNode], None]]: + """ + The deserialization information for the current model + Returns: Dict[str, Callable[[ParseNode], None]] + """ + from .bookings_availability import BookingsAvailability + + from .bookings_availability import BookingsAvailability + + fields: Dict[str, Callable[[Any], None]] = { + "endDate": lambda n : setattr(self, 'end_date', n.get_date_value()), + "startDate": lambda n : setattr(self, 'start_date', n.get_date_value()), + } + super_fields = super().get_field_deserializers() + fields.update(super_fields) + return fields + + def serialize(self,writer: SerializationWriter) -> None: + """ + Serializes information the current object + param writer: Serialization writer to use to serialize this model + Returns: None + """ + if not writer: + raise TypeError("writer cannot be null.") + super().serialize(writer) + writer.write_date_value("endDate", self.end_date) + writer.write_date_value("startDate", self.start_date) + + diff --git a/msgraph_beta/generated/models/bookings_service_availability_type.py b/msgraph_beta/generated/models/bookings_service_availability_type.py new file mode 100644 index 00000000000..239bb3d9280 --- /dev/null +++ b/msgraph_beta/generated/models/bookings_service_availability_type.py @@ -0,0 +1,8 @@ +from enum import Enum + +class BookingsServiceAvailabilityType(str, Enum): + BookWhenStaffAreFree = "bookWhenStaffAreFree", + NotBookable = "notBookable", + CustomWeeklyHours = "customWeeklyHours", + UnknownFutureValue = "unknownFutureValue", + diff --git a/msgraph_beta/generated/models/cloud_clipboard_item.py b/msgraph_beta/generated/models/cloud_clipboard_item.py new file mode 100644 index 00000000000..79a84067444 --- /dev/null +++ b/msgraph_beta/generated/models/cloud_clipboard_item.py @@ -0,0 +1,72 @@ +from __future__ import annotations +import datetime +from dataclasses import dataclass, field +from kiota_abstractions.serialization import Parsable, ParseNode, SerializationWriter +from typing import Any, Callable, Dict, List, Optional, TYPE_CHECKING, Union + +if TYPE_CHECKING: + from .cloud_clipboard_item_payload import CloudClipboardItemPayload + from .entity import Entity + +from .entity import Entity + +@dataclass +class CloudClipboardItem(Entity): + # The createdDateTime property + created_date_time: Optional[datetime.datetime] = None + # The expirationDateTime property + expiration_date_time: Optional[datetime.datetime] = None + # The lastModifiedDateTime property + last_modified_date_time: Optional[datetime.datetime] = None + # The OdataType property + odata_type: Optional[str] = None + # The payloads property + payloads: Optional[List[CloudClipboardItemPayload]] = None + + @staticmethod + def create_from_discriminator_value(parse_node: Optional[ParseNode] = None) -> CloudClipboardItem: + """ + Creates a new instance of the appropriate class based on discriminator value + param parse_node: The parse node to use to read the discriminator value and create the object + Returns: CloudClipboardItem + """ + if not parse_node: + raise TypeError("parse_node cannot be null.") + return CloudClipboardItem() + + def get_field_deserializers(self,) -> Dict[str, Callable[[ParseNode], None]]: + """ + The deserialization information for the current model + Returns: Dict[str, Callable[[ParseNode], None]] + """ + from .cloud_clipboard_item_payload import CloudClipboardItemPayload + from .entity import Entity + + from .cloud_clipboard_item_payload import CloudClipboardItemPayload + from .entity import Entity + + fields: Dict[str, Callable[[Any], None]] = { + "createdDateTime": lambda n : setattr(self, 'created_date_time', n.get_datetime_value()), + "expirationDateTime": lambda n : setattr(self, 'expiration_date_time', n.get_datetime_value()), + "lastModifiedDateTime": lambda n : setattr(self, 'last_modified_date_time', n.get_datetime_value()), + "payloads": lambda n : setattr(self, 'payloads', n.get_collection_of_object_values(CloudClipboardItemPayload)), + } + super_fields = super().get_field_deserializers() + fields.update(super_fields) + return fields + + def serialize(self,writer: SerializationWriter) -> None: + """ + Serializes information the current object + param writer: Serialization writer to use to serialize this model + Returns: None + """ + if not writer: + raise TypeError("writer cannot be null.") + super().serialize(writer) + writer.write_datetime_value("createdDateTime", self.created_date_time) + writer.write_datetime_value("expirationDateTime", self.expiration_date_time) + writer.write_datetime_value("lastModifiedDateTime", self.last_modified_date_time) + writer.write_collection_of_object_values("payloads", self.payloads) + + diff --git a/msgraph_beta/generated/models/cloud_clipboard_item_collection_response.py b/msgraph_beta/generated/models/cloud_clipboard_item_collection_response.py new file mode 100644 index 00000000000..3f4ae328cd3 --- /dev/null +++ b/msgraph_beta/generated/models/cloud_clipboard_item_collection_response.py @@ -0,0 +1,57 @@ +from __future__ import annotations +from dataclasses import dataclass, field +from kiota_abstractions.serialization import Parsable, ParseNode, SerializationWriter +from typing import Any, Callable, Dict, List, Optional, TYPE_CHECKING, Union + +if TYPE_CHECKING: + from .base_collection_pagination_count_response import BaseCollectionPaginationCountResponse + from .cloud_clipboard_item import CloudClipboardItem + +from .base_collection_pagination_count_response import BaseCollectionPaginationCountResponse + +@dataclass +class CloudClipboardItemCollectionResponse(BaseCollectionPaginationCountResponse): + # The value property + value: Optional[List[CloudClipboardItem]] = None + + @staticmethod + def create_from_discriminator_value(parse_node: Optional[ParseNode] = None) -> CloudClipboardItemCollectionResponse: + """ + Creates a new instance of the appropriate class based on discriminator value + param parse_node: The parse node to use to read the discriminator value and create the object + Returns: CloudClipboardItemCollectionResponse + """ + if not parse_node: + raise TypeError("parse_node cannot be null.") + return CloudClipboardItemCollectionResponse() + + def get_field_deserializers(self,) -> Dict[str, Callable[[ParseNode], None]]: + """ + The deserialization information for the current model + Returns: Dict[str, Callable[[ParseNode], None]] + """ + from .base_collection_pagination_count_response import BaseCollectionPaginationCountResponse + from .cloud_clipboard_item import CloudClipboardItem + + from .base_collection_pagination_count_response import BaseCollectionPaginationCountResponse + from .cloud_clipboard_item import CloudClipboardItem + + fields: Dict[str, Callable[[Any], None]] = { + "value": lambda n : setattr(self, 'value', n.get_collection_of_object_values(CloudClipboardItem)), + } + super_fields = super().get_field_deserializers() + fields.update(super_fields) + return fields + + def serialize(self,writer: SerializationWriter) -> None: + """ + Serializes information the current object + param writer: Serialization writer to use to serialize this model + Returns: None + """ + if not writer: + raise TypeError("writer cannot be null.") + super().serialize(writer) + writer.write_collection_of_object_values("value", self.value) + + diff --git a/msgraph_beta/generated/models/cloud_clipboard_item_payload.py b/msgraph_beta/generated/models/cloud_clipboard_item_payload.py new file mode 100644 index 00000000000..c98866eb7f2 --- /dev/null +++ b/msgraph_beta/generated/models/cloud_clipboard_item_payload.py @@ -0,0 +1,57 @@ +from __future__ import annotations +from dataclasses import dataclass, field +from kiota_abstractions.serialization import AdditionalDataHolder, Parsable, ParseNode, SerializationWriter +from kiota_abstractions.store import BackedModel, BackingStore, BackingStoreFactorySingleton +from typing import Any, Callable, Dict, List, Optional, TYPE_CHECKING, Union + +@dataclass +class CloudClipboardItemPayload(AdditionalDataHolder, BackedModel, Parsable): + # Stores model information. + backing_store: BackingStore = field(default_factory=BackingStoreFactorySingleton(backing_store_factory=None).backing_store_factory.create_backing_store, repr=False) + + # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additional_data: Dict[str, Any] = field(default_factory=dict) + # The content property + content: Optional[str] = None + # The formatName property + format_name: Optional[str] = None + # The OdataType property + odata_type: Optional[str] = None + + @staticmethod + def create_from_discriminator_value(parse_node: Optional[ParseNode] = None) -> CloudClipboardItemPayload: + """ + Creates a new instance of the appropriate class based on discriminator value + param parse_node: The parse node to use to read the discriminator value and create the object + Returns: CloudClipboardItemPayload + """ + if not parse_node: + raise TypeError("parse_node cannot be null.") + return CloudClipboardItemPayload() + + def get_field_deserializers(self,) -> Dict[str, Callable[[ParseNode], None]]: + """ + The deserialization information for the current model + Returns: Dict[str, Callable[[ParseNode], None]] + """ + fields: Dict[str, Callable[[Any], None]] = { + "content": lambda n : setattr(self, 'content', n.get_str_value()), + "formatName": lambda n : setattr(self, 'format_name', n.get_str_value()), + "@odata.type": lambda n : setattr(self, 'odata_type', n.get_str_value()), + } + return fields + + def serialize(self,writer: SerializationWriter) -> None: + """ + Serializes information the current object + param writer: Serialization writer to use to serialize this model + Returns: None + """ + if not writer: + raise TypeError("writer cannot be null.") + writer.write_str_value("content", self.content) + writer.write_str_value("formatName", self.format_name) + writer.write_str_value("@odata.type", self.odata_type) + writer.write_additional_data_value(self.additional_data) + + diff --git a/msgraph_beta/generated/models/cloud_clipboard_root.py b/msgraph_beta/generated/models/cloud_clipboard_root.py new file mode 100644 index 00000000000..2dd52c3a1b3 --- /dev/null +++ b/msgraph_beta/generated/models/cloud_clipboard_root.py @@ -0,0 +1,59 @@ +from __future__ import annotations +from dataclasses import dataclass, field +from kiota_abstractions.serialization import Parsable, ParseNode, SerializationWriter +from typing import Any, Callable, Dict, List, Optional, TYPE_CHECKING, Union + +if TYPE_CHECKING: + from .cloud_clipboard_item import CloudClipboardItem + from .entity import Entity + +from .entity import Entity + +@dataclass +class CloudClipboardRoot(Entity): + # The items property + items: Optional[List[CloudClipboardItem]] = None + # The OdataType property + odata_type: Optional[str] = None + + @staticmethod + def create_from_discriminator_value(parse_node: Optional[ParseNode] = None) -> CloudClipboardRoot: + """ + Creates a new instance of the appropriate class based on discriminator value + param parse_node: The parse node to use to read the discriminator value and create the object + Returns: CloudClipboardRoot + """ + if not parse_node: + raise TypeError("parse_node cannot be null.") + return CloudClipboardRoot() + + def get_field_deserializers(self,) -> Dict[str, Callable[[ParseNode], None]]: + """ + The deserialization information for the current model + Returns: Dict[str, Callable[[ParseNode], None]] + """ + from .cloud_clipboard_item import CloudClipboardItem + from .entity import Entity + + from .cloud_clipboard_item import CloudClipboardItem + from .entity import Entity + + fields: Dict[str, Callable[[Any], None]] = { + "items": lambda n : setattr(self, 'items', n.get_collection_of_object_values(CloudClipboardItem)), + } + super_fields = super().get_field_deserializers() + fields.update(super_fields) + return fields + + def serialize(self,writer: SerializationWriter) -> None: + """ + Serializes information the current object + param writer: Serialization writer to use to serialize this model + Returns: None + """ + if not writer: + raise TypeError("writer cannot be null.") + super().serialize(writer) + writer.write_collection_of_object_values("items", self.items) + + diff --git a/msgraph_beta/generated/models/communications_guest_identity.py b/msgraph_beta/generated/models/communications_guest_identity.py index 8954f32927c..3b59004eb9f 100644 --- a/msgraph_beta/generated/models/communications_guest_identity.py +++ b/msgraph_beta/generated/models/communications_guest_identity.py @@ -12,6 +12,8 @@ class CommunicationsGuestIdentity(Identity): # The OdataType property odata_type: Optional[str] = "#microsoft.graph.communicationsGuestIdentity" + # The email of the guest user. + email: Optional[str] = None @staticmethod def create_from_discriminator_value(parse_node: Optional[ParseNode] = None) -> CommunicationsGuestIdentity: @@ -34,6 +36,7 @@ def get_field_deserializers(self,) -> Dict[str, Callable[[ParseNode], None]]: from .identity import Identity fields: Dict[str, Callable[[Any], None]] = { + "email": lambda n : setattr(self, 'email', n.get_str_value()), } super_fields = super().get_field_deserializers() fields.update(super_fields) @@ -48,5 +51,6 @@ def serialize(self,writer: SerializationWriter) -> None: if not writer: raise TypeError("writer cannot be null.") super().serialize(writer) + writer.write_str_value("email", self.email) diff --git a/msgraph_beta/generated/models/conditional_access_condition_set.py b/msgraph_beta/generated/models/conditional_access_condition_set.py index d8a28830753..91bc543b805 100644 --- a/msgraph_beta/generated/models/conditional_access_condition_set.py +++ b/msgraph_beta/generated/models/conditional_access_condition_set.py @@ -24,7 +24,7 @@ class ConditionalAccessConditionSet(AdditionalDataHolder, BackedModel, Parsable) additional_data: Dict[str, Any] = field(default_factory=dict) # Applications and user actions included in and excluded from the policy. Required. applications: Optional[ConditionalAccessApplications] = None - # Client application types included in the policy. Possible values are: all, browser, mobileAppsAndDesktopClients, exchangeActiveSync, easSupported, other. Required. The easUnsupported enumeration member will be deprecated in favor of exchangeActiveSync which includes EAS supported and unsupported platforms. + # Client application types included in the policy. Possible values are: all, browser, mobileAppsAndDesktopClients, exchangeActiveSync, easSupported, other. Required. The easUnsupported enumeration member will be deprecated in favor of exchangeActiveSync, which includes EAS supported and unsupported platforms. client_app_types: Optional[List[ConditionalAccessClientApp]] = None # Client applications (service principals and workload identities) included in and excluded from the policy. Either users or clientApplications is required. client_applications: Optional[ConditionalAccessClientApplications] = None diff --git a/msgraph_beta/generated/models/daily_user_insight_metrics_root.py b/msgraph_beta/generated/models/daily_user_insight_metrics_root.py index 39e0fa85ebc..31698cbd180 100644 --- a/msgraph_beta/generated/models/daily_user_insight_metrics_root.py +++ b/msgraph_beta/generated/models/daily_user_insight_metrics_root.py @@ -21,7 +21,7 @@ class DailyUserInsightMetricsRoot(Entity): # Insights for active users on apps registered in the tenant for a specified period. active_users: Optional[List[ActiveUsersMetric]] = None - # Insights for the breakdown of users who were active on apps registered in the tenant for a specified period. + # The activeUsersBreakdown property active_users_breakdown: Optional[List[ActiveUsersBreakdownMetric]] = None # Insights for authentications on apps registered in the tenant for a specified period. authentications: Optional[List[AuthenticationsMetric]] = None diff --git a/msgraph_beta/generated/models/delegated_admin_relationship.py b/msgraph_beta/generated/models/delegated_admin_relationship.py index 7c6a79f1890..ac9d750dad7 100644 --- a/msgraph_beta/generated/models/delegated_admin_relationship.py +++ b/msgraph_beta/generated/models/delegated_admin_relationship.py @@ -30,7 +30,7 @@ class DelegatedAdminRelationship(Entity): created_date_time: Optional[datetime.datetime] = None # The display name and unique identifier of the customer of the relationship. This is configured either by the partner at the time the relationship is created or by the system after the customer approves the relationship. Can't be changed by the customer. customer: Optional[DelegatedAdminRelationshipCustomerParticipant] = None - # The display name of the relationship used for ease of identification. Must be unique across all delegated admin relationships of the partner. This is set by the partner only when the relationship is in the created status and can't be changed by the customer. + # The display name of the relationship used for ease of identification. Must be unique across all delegated admin relationships of the partner. This is set by the partner only when the relationship is in the created status and can't be changed by the customer. Maximum length is 50 characters. display_name: Optional[str] = None # The duration of the relationship in ISO 8601 format. Must be a value between P1D and P2Y inclusive. This is set by the partner only when the relationship is in the created status and can't be changed by the customer. duration: Optional[datetime.timedelta] = None diff --git a/msgraph_beta/generated/models/device_management_configuration_choice_setting_definition.py b/msgraph_beta/generated/models/device_management_configuration_choice_setting_definition.py index 4d02e448166..3fe7ccc7309 100644 --- a/msgraph_beta/generated/models/device_management_configuration_choice_setting_definition.py +++ b/msgraph_beta/generated/models/device_management_configuration_choice_setting_definition.py @@ -12,11 +12,11 @@ @dataclass class DeviceManagementConfigurationChoiceSettingDefinition(DeviceManagementConfigurationSettingDefinition): - # Default option for choice setting + # Default option for the choice setting. default_option_id: Optional[str] = None # The OdataType property odata_type: Optional[str] = None - # Options for the setting that can be selected + # Options for the setting that can be selected. options: Optional[List[DeviceManagementConfigurationOptionDefinition]] = None @staticmethod diff --git a/msgraph_beta/generated/models/device_management_configuration_referred_setting_information.py b/msgraph_beta/generated/models/device_management_configuration_referred_setting_information.py index 6ada6faaca8..a0e5c234c16 100644 --- a/msgraph_beta/generated/models/device_management_configuration_referred_setting_information.py +++ b/msgraph_beta/generated/models/device_management_configuration_referred_setting_information.py @@ -16,7 +16,7 @@ class DeviceManagementConfigurationReferredSettingInformation(AdditionalDataHold additional_data: Dict[str, Any] = field(default_factory=dict) # The OdataType property odata_type: Optional[str] = None - # Setting definition id that is being referred to a setting. Applicable for reusable setting + # Setting definition id that is being referred to a setting. Applicable for reusable setting. setting_definition_id: Optional[str] = None @staticmethod diff --git a/msgraph_beta/generated/models/device_management_configuration_setting_definition.py b/msgraph_beta/generated/models/device_management_configuration_setting_definition.py index d291e693f8e..49e4c9c8236 100644 --- a/msgraph_beta/generated/models/device_management_configuration_setting_definition.py +++ b/msgraph_beta/generated/models/device_management_configuration_setting_definition.py @@ -26,19 +26,19 @@ class DeviceManagementConfigurationSettingDefinition(Entity): # The accessTypes property access_types: Optional[DeviceManagementConfigurationSettingAccessTypes] = None - # Details which device setting is applicable on. Supports: $filters. + # Details which device setting is applicable on applicability: Optional[DeviceManagementConfigurationSettingApplicability] = None # Base CSP Path base_uri: Optional[str] = None - # Specify category in which the setting is under. Support $filters. + # Specifies the area group under which the setting is configured in a specified configuration service provider (CSP) category_id: Optional[str] = None - # Description of the setting. + # Description of the item description: Optional[str] = None - # Name of the setting. For example: Allow Toast. + # Display name of the item display_name: Optional[str] = None - # Help text of the setting. Give more details of the setting. + # Help text of the item help_text: Optional[str] = None - # List of links more info for the setting can be found at. + # List of links more info for the setting can be found at info_urls: Optional[List[str]] = None # Tokens which to search settings on keywords: Optional[List[str]] = None @@ -52,7 +52,7 @@ class DeviceManagementConfigurationSettingDefinition(Entity): offset_uri: Optional[str] = None # List of referred setting information. referred_setting_information_list: Optional[List[DeviceManagementConfigurationReferredSettingInformation]] = None - # Root setting definition id if the setting is a child setting. + # Root setting definition if the setting is a child setting. root_definition_id: Optional[str] = None # Supported setting types setting_usage: Optional[DeviceManagementConfigurationSettingUsage] = None diff --git a/msgraph_beta/generated/models/device_management_configuration_setting_group_collection_definition.py b/msgraph_beta/generated/models/device_management_configuration_setting_group_collection_definition.py index f609ce42d24..23e2d360690 100644 --- a/msgraph_beta/generated/models/device_management_configuration_setting_group_collection_definition.py +++ b/msgraph_beta/generated/models/device_management_configuration_setting_group_collection_definition.py @@ -10,9 +10,9 @@ @dataclass class DeviceManagementConfigurationSettingGroupCollectionDefinition(DeviceManagementConfigurationSettingGroupDefinition): - # Maximum number of setting group count in the collection + # Maximum number of setting group count in the collection. Valid values 1 to 100 maximum_count: Optional[int] = None - # Minimum number of setting group count in the collection + # Minimum number of setting group count in the collection. Valid values 1 to 100 minimum_count: Optional[int] = None # The OdataType property odata_type: Optional[str] = None diff --git a/msgraph_beta/generated/models/device_management_configuration_string_setting_value_definition.py b/msgraph_beta/generated/models/device_management_configuration_string_setting_value_definition.py index 676e1cff8a9..c20c52265ae 100644 --- a/msgraph_beta/generated/models/device_management_configuration_string_setting_value_definition.py +++ b/msgraph_beta/generated/models/device_management_configuration_string_setting_value_definition.py @@ -18,15 +18,15 @@ class DeviceManagementConfigurationStringSettingValueDefinition(DeviceManagement odata_type: Optional[str] = "#microsoft.graph.deviceManagementConfigurationStringSettingValueDefinition" # Supported file types for this setting. file_types: Optional[List[str]] = None - # Pre-defined format of the string. Possible values are: none, email, guid, ip, base64, url, version, xml, date, time, binary, regEx, json, dateTime, surfaceHub. + # Pre-defined format of the string. Possible values are: none, email, guid, ip, base64, url, version, xml, date, time, binary, regEx, json, dateTime, surfaceHub, bashScript, unknownFutureValue. format: Optional[DeviceManagementConfigurationStringFormat] = None # Regular expression or any xml or json schema that the input string should match input_validation_schema: Optional[str] = None # Specifies whether the setting needs to be treated as a secret. Settings marked as yes will be encrypted in transit and at rest and will be displayed as asterisks when represented in the UX. is_secret: Optional[bool] = None - # Maximum length of string + # Maximum length of string. Valid values 0 to 87516 maximum_length: Optional[int] = None - # Minimum length of string + # Minimum length of string. Valid values 0 to 87516 minimum_length: Optional[int] = None @staticmethod diff --git a/msgraph_beta/generated/models/directory.py b/msgraph_beta/generated/models/directory.py index f56e75b617d..d898e49b292 100644 --- a/msgraph_beta/generated/models/directory.py +++ b/msgraph_beta/generated/models/directory.py @@ -12,12 +12,14 @@ from .device_local_credential_info import DeviceLocalCredentialInfo from .directory_object import DirectoryObject from .entity import Entity + from .external_user_profile import ExternalUserProfile from .feature_rollout_policy import FeatureRolloutPolicy from .identity_provider_base import IdentityProviderBase from .impacted_resource import ImpactedResource from .inbound_shared_user_profile import InboundSharedUserProfile from .on_premises_directory_synchronization import OnPremisesDirectorySynchronization from .outbound_shared_user_profile import OutboundSharedUserProfile + from .pending_external_user_profile import PendingExternalUserProfile from .recommendation import Recommendation from .shared_email_domain import SharedEmailDomain @@ -37,6 +39,8 @@ class Directory(Entity): deleted_items: Optional[List[DirectoryObject]] = None # The credentials of the device's local administrator account backed up to Microsoft Entra ID. device_local_credentials: Optional[List[DeviceLocalCredentialInfo]] = None + # Collection of external user profiles that represent collaborators in the directory. + external_user_profiles: Optional[List[ExternalUserProfile]] = None # The featureRolloutPolicies property feature_rollout_policies: Optional[List[FeatureRolloutPolicy]] = None # Configure domain federation with organizations whose identity provider (IdP) supports either the SAML or WS-Fed protocol. @@ -51,6 +55,8 @@ class Directory(Entity): on_premises_synchronization: Optional[List[OnPremisesDirectorySynchronization]] = None # The outboundSharedUserProfiles property outbound_shared_user_profiles: Optional[List[OutboundSharedUserProfile]] = None + # Collection of pending external user profiles representing collaborators in the directory that are unredeemed. + pending_external_user_profiles: Optional[List[PendingExternalUserProfile]] = None # List of recommended improvements to improve tenant posture. recommendations: Optional[List[Recommendation]] = None # The sharedEmailDomains property @@ -82,12 +88,14 @@ def get_field_deserializers(self,) -> Dict[str, Callable[[ParseNode], None]]: from .device_local_credential_info import DeviceLocalCredentialInfo from .directory_object import DirectoryObject from .entity import Entity + from .external_user_profile import ExternalUserProfile from .feature_rollout_policy import FeatureRolloutPolicy from .identity_provider_base import IdentityProviderBase from .impacted_resource import ImpactedResource from .inbound_shared_user_profile import InboundSharedUserProfile from .on_premises_directory_synchronization import OnPremisesDirectorySynchronization from .outbound_shared_user_profile import OutboundSharedUserProfile + from .pending_external_user_profile import PendingExternalUserProfile from .recommendation import Recommendation from .shared_email_domain import SharedEmailDomain @@ -99,12 +107,14 @@ def get_field_deserializers(self,) -> Dict[str, Callable[[ParseNode], None]]: from .device_local_credential_info import DeviceLocalCredentialInfo from .directory_object import DirectoryObject from .entity import Entity + from .external_user_profile import ExternalUserProfile from .feature_rollout_policy import FeatureRolloutPolicy from .identity_provider_base import IdentityProviderBase from .impacted_resource import ImpactedResource from .inbound_shared_user_profile import InboundSharedUserProfile from .on_premises_directory_synchronization import OnPremisesDirectorySynchronization from .outbound_shared_user_profile import OutboundSharedUserProfile + from .pending_external_user_profile import PendingExternalUserProfile from .recommendation import Recommendation from .shared_email_domain import SharedEmailDomain @@ -115,12 +125,14 @@ def get_field_deserializers(self,) -> Dict[str, Callable[[ParseNode], None]]: "customSecurityAttributeDefinitions": lambda n : setattr(self, 'custom_security_attribute_definitions', n.get_collection_of_object_values(CustomSecurityAttributeDefinition)), "deletedItems": lambda n : setattr(self, 'deleted_items', n.get_collection_of_object_values(DirectoryObject)), "deviceLocalCredentials": lambda n : setattr(self, 'device_local_credentials', n.get_collection_of_object_values(DeviceLocalCredentialInfo)), + "externalUserProfiles": lambda n : setattr(self, 'external_user_profiles', n.get_collection_of_object_values(ExternalUserProfile)), "featureRolloutPolicies": lambda n : setattr(self, 'feature_rollout_policies', n.get_collection_of_object_values(FeatureRolloutPolicy)), "federationConfigurations": lambda n : setattr(self, 'federation_configurations', n.get_collection_of_object_values(IdentityProviderBase)), "impactedResources": lambda n : setattr(self, 'impacted_resources', n.get_collection_of_object_values(ImpactedResource)), "inboundSharedUserProfiles": lambda n : setattr(self, 'inbound_shared_user_profiles', n.get_collection_of_object_values(InboundSharedUserProfile)), "onPremisesSynchronization": lambda n : setattr(self, 'on_premises_synchronization', n.get_collection_of_object_values(OnPremisesDirectorySynchronization)), "outboundSharedUserProfiles": lambda n : setattr(self, 'outbound_shared_user_profiles', n.get_collection_of_object_values(OutboundSharedUserProfile)), + "pendingExternalUserProfiles": lambda n : setattr(self, 'pending_external_user_profiles', n.get_collection_of_object_values(PendingExternalUserProfile)), "recommendations": lambda n : setattr(self, 'recommendations', n.get_collection_of_object_values(Recommendation)), "sharedEmailDomains": lambda n : setattr(self, 'shared_email_domains', n.get_collection_of_object_values(SharedEmailDomain)), "subscriptions": lambda n : setattr(self, 'subscriptions', n.get_collection_of_object_values(CompanySubscription)), @@ -144,12 +156,14 @@ def serialize(self,writer: SerializationWriter) -> None: writer.write_collection_of_object_values("customSecurityAttributeDefinitions", self.custom_security_attribute_definitions) writer.write_collection_of_object_values("deletedItems", self.deleted_items) writer.write_collection_of_object_values("deviceLocalCredentials", self.device_local_credentials) + writer.write_collection_of_object_values("externalUserProfiles", self.external_user_profiles) writer.write_collection_of_object_values("featureRolloutPolicies", self.feature_rollout_policies) writer.write_collection_of_object_values("federationConfigurations", self.federation_configurations) writer.write_collection_of_object_values("impactedResources", self.impacted_resources) writer.write_collection_of_object_values("inboundSharedUserProfiles", self.inbound_shared_user_profiles) writer.write_collection_of_object_values("onPremisesSynchronization", self.on_premises_synchronization) writer.write_collection_of_object_values("outboundSharedUserProfiles", self.outbound_shared_user_profiles) + writer.write_collection_of_object_values("pendingExternalUserProfiles", self.pending_external_user_profiles) writer.write_collection_of_object_values("recommendations", self.recommendations) writer.write_collection_of_object_values("sharedEmailDomains", self.shared_email_domains) writer.write_collection_of_object_values("subscriptions", self.subscriptions) diff --git a/msgraph_beta/generated/models/directory_object.py b/msgraph_beta/generated/models/directory_object.py index 8b0f2a2dd11..f36755eac42 100644 --- a/msgraph_beta/generated/models/directory_object.py +++ b/msgraph_beta/generated/models/directory_object.py @@ -23,6 +23,8 @@ from .entity import Entity from .extension_property import ExtensionProperty from .external_identities_policy import ExternalIdentitiesPolicy + from .external_profile import ExternalProfile + from .external_user_profile import ExternalUserProfile from .federated_token_validation_policy import FederatedTokenValidationPolicy from .group import Group from .home_realm_discovery_policy import HomeRealmDiscoveryPolicy @@ -30,6 +32,7 @@ from .multi_tenant_organization_member import MultiTenantOrganizationMember from .organization import Organization from .org_contact import OrgContact + from .pending_external_user_profile import PendingExternalUserProfile from .permission_grant_policy import PermissionGrantPolicy from .policy_base import PolicyBase from .resource_specific_permission_grant import ResourceSpecificPermissionGrant @@ -133,6 +136,14 @@ def create_from_discriminator_value(parse_node: Optional[ParseNode] = None) -> D from .external_identities_policy import ExternalIdentitiesPolicy return ExternalIdentitiesPolicy() + if mapping_value and mapping_value.casefold() == "#microsoft.graph.externalProfile".casefold(): + from .external_profile import ExternalProfile + + return ExternalProfile() + if mapping_value and mapping_value.casefold() == "#microsoft.graph.externalUserProfile".casefold(): + from .external_user_profile import ExternalUserProfile + + return ExternalUserProfile() if mapping_value and mapping_value.casefold() == "#microsoft.graph.federatedTokenValidationPolicy".casefold(): from .federated_token_validation_policy import FederatedTokenValidationPolicy @@ -161,6 +172,10 @@ def create_from_discriminator_value(parse_node: Optional[ParseNode] = None) -> D from .org_contact import OrgContact return OrgContact() + if mapping_value and mapping_value.casefold() == "#microsoft.graph.pendingExternalUserProfile".casefold(): + from .pending_external_user_profile import PendingExternalUserProfile + + return PendingExternalUserProfile() if mapping_value and mapping_value.casefold() == "#microsoft.graph.permissionGrantPolicy".casefold(): from .permission_grant_policy import PermissionGrantPolicy @@ -234,6 +249,8 @@ def get_field_deserializers(self,) -> Dict[str, Callable[[ParseNode], None]]: from .entity import Entity from .extension_property import ExtensionProperty from .external_identities_policy import ExternalIdentitiesPolicy + from .external_profile import ExternalProfile + from .external_user_profile import ExternalUserProfile from .federated_token_validation_policy import FederatedTokenValidationPolicy from .group import Group from .home_realm_discovery_policy import HomeRealmDiscoveryPolicy @@ -241,6 +258,7 @@ def get_field_deserializers(self,) -> Dict[str, Callable[[ParseNode], None]]: from .multi_tenant_organization_member import MultiTenantOrganizationMember from .organization import Organization from .org_contact import OrgContact + from .pending_external_user_profile import PendingExternalUserProfile from .permission_grant_policy import PermissionGrantPolicy from .policy_base import PolicyBase from .resource_specific_permission_grant import ResourceSpecificPermissionGrant @@ -272,6 +290,8 @@ def get_field_deserializers(self,) -> Dict[str, Callable[[ParseNode], None]]: from .entity import Entity from .extension_property import ExtensionProperty from .external_identities_policy import ExternalIdentitiesPolicy + from .external_profile import ExternalProfile + from .external_user_profile import ExternalUserProfile from .federated_token_validation_policy import FederatedTokenValidationPolicy from .group import Group from .home_realm_discovery_policy import HomeRealmDiscoveryPolicy @@ -279,6 +299,7 @@ def get_field_deserializers(self,) -> Dict[str, Callable[[ParseNode], None]]: from .multi_tenant_organization_member import MultiTenantOrganizationMember from .organization import Organization from .org_contact import OrgContact + from .pending_external_user_profile import PendingExternalUserProfile from .permission_grant_policy import PermissionGrantPolicy from .policy_base import PolicyBase from .resource_specific_permission_grant import ResourceSpecificPermissionGrant diff --git a/msgraph_beta/generated/models/drive_item_source_application.py b/msgraph_beta/generated/models/drive_item_source_application.py index 839561ef96e..ecfca2a7698 100644 --- a/msgraph_beta/generated/models/drive_item_source_application.py +++ b/msgraph_beta/generated/models/drive_item_source_application.py @@ -8,5 +8,8 @@ class DriveItemSourceApplication(str, Enum): Stream = "stream", PowerPoint = "powerPoint", Office = "office", + Loki = "loki", + Loop = "loop", + Other = "other", UnknownFutureValue = "unknownFutureValue", diff --git a/msgraph_beta/generated/models/drive_item_uploadable_properties.py b/msgraph_beta/generated/models/drive_item_uploadable_properties.py index d48fc62e97c..9c061bb3473 100644 --- a/msgraph_beta/generated/models/drive_item_uploadable_properties.py +++ b/msgraph_beta/generated/models/drive_item_uploadable_properties.py @@ -5,7 +5,9 @@ from typing import Any, Callable, Dict, List, Optional, TYPE_CHECKING, Union if TYPE_CHECKING: + from .drive_item_source import DriveItemSource from .file_system_info import FileSystemInfo + from .media_source import MediaSource @dataclass class DriveItemUploadableProperties(AdditionalDataHolder, BackedModel, Parsable): @@ -16,10 +18,14 @@ class DriveItemUploadableProperties(AdditionalDataHolder, BackedModel, Parsable) additional_data: Dict[str, Any] = field(default_factory=dict) # Provides a user-visible description of the item. Read-write. Only on OneDrive Personal. description: Optional[str] = None + # Information about the drive item source. Read-write. Only on OneDrive for Business and SharePoint. + drive_item_source: Optional[DriveItemSource] = None # Provides an expected file size to perform a quota check prior to upload. Only on OneDrive Personal. file_size: Optional[int] = None # File system information on client. Read-write. file_system_info: Optional[FileSystemInfo] = None + # Media source information. Read-write. Only on OneDrive for Business and SharePoint. + media_source: Optional[MediaSource] = None # The name of the item (filename and extension). Read-write. name: Optional[str] = None # The OdataType property @@ -41,14 +47,20 @@ def get_field_deserializers(self,) -> Dict[str, Callable[[ParseNode], None]]: The deserialization information for the current model Returns: Dict[str, Callable[[ParseNode], None]] """ + from .drive_item_source import DriveItemSource from .file_system_info import FileSystemInfo + from .media_source import MediaSource + from .drive_item_source import DriveItemSource from .file_system_info import FileSystemInfo + from .media_source import MediaSource fields: Dict[str, Callable[[Any], None]] = { "description": lambda n : setattr(self, 'description', n.get_str_value()), + "driveItemSource": lambda n : setattr(self, 'drive_item_source', n.get_object_value(DriveItemSource)), "fileSize": lambda n : setattr(self, 'file_size', n.get_int_value()), "fileSystemInfo": lambda n : setattr(self, 'file_system_info', n.get_object_value(FileSystemInfo)), + "mediaSource": lambda n : setattr(self, 'media_source', n.get_object_value(MediaSource)), "name": lambda n : setattr(self, 'name', n.get_str_value()), "@odata.type": lambda n : setattr(self, 'odata_type', n.get_str_value()), } @@ -63,8 +75,10 @@ def serialize(self,writer: SerializationWriter) -> None: if not writer: raise TypeError("writer cannot be null.") writer.write_str_value("description", self.description) + writer.write_object_value("driveItemSource", self.drive_item_source) writer.write_int_value("fileSize", self.file_size) writer.write_object_value("fileSystemInfo", self.file_system_info) + writer.write_object_value("mediaSource", self.media_source) writer.write_str_value("name", self.name) writer.write_str_value("@odata.type", self.odata_type) writer.write_additional_data_value(self.additional_data) diff --git a/msgraph_beta/generated/models/education_assignment.py b/msgraph_beta/generated/models/education_assignment.py index c4acb3700d8..0ae5f99798b 100644 --- a/msgraph_beta/generated/models/education_assignment.py +++ b/msgraph_beta/generated/models/education_assignment.py @@ -13,6 +13,7 @@ from .education_assignment_status import EducationAssignmentStatus from .education_category import EducationCategory from .education_grading_category import EducationGradingCategory + from .education_grading_scheme import EducationGradingScheme from .education_item_body import EducationItemBody from .education_rubric import EducationRubric from .education_submission import EducationSubmission @@ -57,6 +58,8 @@ class EducationAssignment(Entity): grading: Optional[EducationAssignmentGradeType] = None # When set, enables users to weight assignments differently when computing a class average grade. grading_category: Optional[EducationGradingCategory] = None + # The gradingScheme property + grading_scheme: Optional[EducationGradingScheme] = None # Instructions for the assignment. This property and the display name tell the student what to do. instructions: Optional[EducationItemBody] = None # Who last modified the assignment. @@ -75,7 +78,7 @@ class EducationAssignment(Entity): resources_folder_url: Optional[str] = None # When set, the grading rubric attached to this assignment. rubric: Optional[EducationRubric] = None - # Status of the Assignment. You can’t PATCH this value. Possible values are: draft, scheduled, published, assigned, unknownFutureValue and inactive. You must use the Prefer: include-unknown-enum-members request header to get the following value(s) in this evolvable enum: inactive. + # Status of the assignment. You can't PATCH this value. Possible values are: draft, scheduled, published, assigned, unknownFutureValue, inactive. You must use the Prefer: include-unknown-enum-members request header to get the following value(s) in this evolvable enum: inactive. status: Optional[EducationAssignmentStatus] = None # Once published, there is a submission object for each student representing their work and grade. Read-only. Nullable. submissions: Optional[List[EducationSubmission]] = None @@ -106,6 +109,7 @@ def get_field_deserializers(self,) -> Dict[str, Callable[[ParseNode], None]]: from .education_assignment_status import EducationAssignmentStatus from .education_category import EducationCategory from .education_grading_category import EducationGradingCategory + from .education_grading_scheme import EducationGradingScheme from .education_item_body import EducationItemBody from .education_rubric import EducationRubric from .education_submission import EducationSubmission @@ -120,6 +124,7 @@ def get_field_deserializers(self,) -> Dict[str, Callable[[ParseNode], None]]: from .education_assignment_status import EducationAssignmentStatus from .education_category import EducationCategory from .education_grading_category import EducationGradingCategory + from .education_grading_scheme import EducationGradingScheme from .education_item_body import EducationItemBody from .education_rubric import EducationRubric from .education_submission import EducationSubmission @@ -144,6 +149,7 @@ def get_field_deserializers(self,) -> Dict[str, Callable[[ParseNode], None]]: "feedbackResourcesFolderUrl": lambda n : setattr(self, 'feedback_resources_folder_url', n.get_str_value()), "grading": lambda n : setattr(self, 'grading', n.get_object_value(EducationAssignmentGradeType)), "gradingCategory": lambda n : setattr(self, 'grading_category', n.get_object_value(EducationGradingCategory)), + "gradingScheme": lambda n : setattr(self, 'grading_scheme', n.get_object_value(EducationGradingScheme)), "instructions": lambda n : setattr(self, 'instructions', n.get_object_value(EducationItemBody)), "lastModifiedBy": lambda n : setattr(self, 'last_modified_by', n.get_object_value(IdentitySet)), "lastModifiedDateTime": lambda n : setattr(self, 'last_modified_date_time', n.get_datetime_value()), @@ -181,6 +187,7 @@ def serialize(self,writer: SerializationWriter) -> None: writer.write_datetime_value("dueDateTime", self.due_date_time) writer.write_object_value("grading", self.grading) writer.write_object_value("gradingCategory", self.grading_category) + writer.write_object_value("gradingScheme", self.grading_scheme) writer.write_object_value("instructions", self.instructions) writer.write_str_value("moduleUrl", self.module_url) writer.write_str_value("notificationChannelUrl", self.notification_channel_url) diff --git a/msgraph_beta/generated/models/education_assignment_settings.py b/msgraph_beta/generated/models/education_assignment_settings.py index 4a9d8742d8c..82c859dcce0 100644 --- a/msgraph_beta/generated/models/education_assignment_settings.py +++ b/msgraph_beta/generated/models/education_assignment_settings.py @@ -5,14 +5,19 @@ if TYPE_CHECKING: from .education_grading_category import EducationGradingCategory + from .education_grading_scheme import EducationGradingScheme from .entity import Entity from .entity import Entity @dataclass class EducationAssignmentSettings(Entity): + # The defaultGradingScheme property + default_grading_scheme: Optional[EducationGradingScheme] = None # When set, enables users to weight assignments differently when computing a class average grade. grading_categories: Optional[List[EducationGradingCategory]] = None + # The gradingSchemes property + grading_schemes: Optional[List[EducationGradingScheme]] = None # The OdataType property odata_type: Optional[str] = None # Indicates whether turn-in celebration animation will be shown. If true, the animation won't be shown. The default value is false. @@ -35,13 +40,17 @@ def get_field_deserializers(self,) -> Dict[str, Callable[[ParseNode], None]]: Returns: Dict[str, Callable[[ParseNode], None]] """ from .education_grading_category import EducationGradingCategory + from .education_grading_scheme import EducationGradingScheme from .entity import Entity from .education_grading_category import EducationGradingCategory + from .education_grading_scheme import EducationGradingScheme from .entity import Entity fields: Dict[str, Callable[[Any], None]] = { + "defaultGradingScheme": lambda n : setattr(self, 'default_grading_scheme', n.get_object_value(EducationGradingScheme)), "gradingCategories": lambda n : setattr(self, 'grading_categories', n.get_collection_of_object_values(EducationGradingCategory)), + "gradingSchemes": lambda n : setattr(self, 'grading_schemes', n.get_collection_of_object_values(EducationGradingScheme)), "submissionAnimationDisabled": lambda n : setattr(self, 'submission_animation_disabled', n.get_bool_value()), } super_fields = super().get_field_deserializers() @@ -57,7 +66,9 @@ def serialize(self,writer: SerializationWriter) -> None: if not writer: raise TypeError("writer cannot be null.") super().serialize(writer) + writer.write_object_value("defaultGradingScheme", self.default_grading_scheme) writer.write_collection_of_object_values("gradingCategories", self.grading_categories) + writer.write_collection_of_object_values("gradingSchemes", self.grading_schemes) writer.write_bool_value("submissionAnimationDisabled", self.submission_animation_disabled) diff --git a/msgraph_beta/generated/models/education_grading_scheme.py b/msgraph_beta/generated/models/education_grading_scheme.py new file mode 100644 index 00000000000..87b3851e30e --- /dev/null +++ b/msgraph_beta/generated/models/education_grading_scheme.py @@ -0,0 +1,67 @@ +from __future__ import annotations +from dataclasses import dataclass, field +from kiota_abstractions.serialization import Parsable, ParseNode, SerializationWriter +from typing import Any, Callable, Dict, List, Optional, TYPE_CHECKING, Union + +if TYPE_CHECKING: + from .education_grading_scheme_grade import EducationGradingSchemeGrade + from .entity import Entity + +from .entity import Entity + +@dataclass +class EducationGradingScheme(Entity): + # The displayName property + display_name: Optional[str] = None + # The grades property + grades: Optional[List[EducationGradingSchemeGrade]] = None + # The hidePointsDuringGrading property + hide_points_during_grading: Optional[bool] = None + # The OdataType property + odata_type: Optional[str] = None + + @staticmethod + def create_from_discriminator_value(parse_node: Optional[ParseNode] = None) -> EducationGradingScheme: + """ + Creates a new instance of the appropriate class based on discriminator value + param parse_node: The parse node to use to read the discriminator value and create the object + Returns: EducationGradingScheme + """ + if not parse_node: + raise TypeError("parse_node cannot be null.") + return EducationGradingScheme() + + def get_field_deserializers(self,) -> Dict[str, Callable[[ParseNode], None]]: + """ + The deserialization information for the current model + Returns: Dict[str, Callable[[ParseNode], None]] + """ + from .education_grading_scheme_grade import EducationGradingSchemeGrade + from .entity import Entity + + from .education_grading_scheme_grade import EducationGradingSchemeGrade + from .entity import Entity + + fields: Dict[str, Callable[[Any], None]] = { + "displayName": lambda n : setattr(self, 'display_name', n.get_str_value()), + "grades": lambda n : setattr(self, 'grades', n.get_collection_of_object_values(EducationGradingSchemeGrade)), + "hidePointsDuringGrading": lambda n : setattr(self, 'hide_points_during_grading', n.get_bool_value()), + } + super_fields = super().get_field_deserializers() + fields.update(super_fields) + return fields + + def serialize(self,writer: SerializationWriter) -> None: + """ + Serializes information the current object + param writer: Serialization writer to use to serialize this model + Returns: None + """ + if not writer: + raise TypeError("writer cannot be null.") + super().serialize(writer) + writer.write_str_value("displayName", self.display_name) + writer.write_collection_of_object_values("grades", self.grades) + writer.write_bool_value("hidePointsDuringGrading", self.hide_points_during_grading) + + diff --git a/msgraph_beta/generated/models/education_grading_scheme_collection_response.py b/msgraph_beta/generated/models/education_grading_scheme_collection_response.py new file mode 100644 index 00000000000..035386baf30 --- /dev/null +++ b/msgraph_beta/generated/models/education_grading_scheme_collection_response.py @@ -0,0 +1,57 @@ +from __future__ import annotations +from dataclasses import dataclass, field +from kiota_abstractions.serialization import Parsable, ParseNode, SerializationWriter +from typing import Any, Callable, Dict, List, Optional, TYPE_CHECKING, Union + +if TYPE_CHECKING: + from .base_collection_pagination_count_response import BaseCollectionPaginationCountResponse + from .education_grading_scheme import EducationGradingScheme + +from .base_collection_pagination_count_response import BaseCollectionPaginationCountResponse + +@dataclass +class EducationGradingSchemeCollectionResponse(BaseCollectionPaginationCountResponse): + # The value property + value: Optional[List[EducationGradingScheme]] = None + + @staticmethod + def create_from_discriminator_value(parse_node: Optional[ParseNode] = None) -> EducationGradingSchemeCollectionResponse: + """ + Creates a new instance of the appropriate class based on discriminator value + param parse_node: The parse node to use to read the discriminator value and create the object + Returns: EducationGradingSchemeCollectionResponse + """ + if not parse_node: + raise TypeError("parse_node cannot be null.") + return EducationGradingSchemeCollectionResponse() + + def get_field_deserializers(self,) -> Dict[str, Callable[[ParseNode], None]]: + """ + The deserialization information for the current model + Returns: Dict[str, Callable[[ParseNode], None]] + """ + from .base_collection_pagination_count_response import BaseCollectionPaginationCountResponse + from .education_grading_scheme import EducationGradingScheme + + from .base_collection_pagination_count_response import BaseCollectionPaginationCountResponse + from .education_grading_scheme import EducationGradingScheme + + fields: Dict[str, Callable[[Any], None]] = { + "value": lambda n : setattr(self, 'value', n.get_collection_of_object_values(EducationGradingScheme)), + } + super_fields = super().get_field_deserializers() + fields.update(super_fields) + return fields + + def serialize(self,writer: SerializationWriter) -> None: + """ + Serializes information the current object + param writer: Serialization writer to use to serialize this model + Returns: None + """ + if not writer: + raise TypeError("writer cannot be null.") + super().serialize(writer) + writer.write_collection_of_object_values("value", self.value) + + diff --git a/msgraph_beta/generated/models/education_grading_scheme_grade.py b/msgraph_beta/generated/models/education_grading_scheme_grade.py new file mode 100644 index 00000000000..3e85631d9e5 --- /dev/null +++ b/msgraph_beta/generated/models/education_grading_scheme_grade.py @@ -0,0 +1,61 @@ +from __future__ import annotations +from dataclasses import dataclass, field +from kiota_abstractions.serialization import AdditionalDataHolder, Parsable, ParseNode, SerializationWriter +from kiota_abstractions.store import BackedModel, BackingStore, BackingStoreFactorySingleton +from typing import Any, Callable, Dict, List, Optional, TYPE_CHECKING, Union + +@dataclass +class EducationGradingSchemeGrade(AdditionalDataHolder, BackedModel, Parsable): + # Stores model information. + backing_store: BackingStore = field(default_factory=BackingStoreFactorySingleton(backing_store_factory=None).backing_store_factory.create_backing_store, repr=False) + + # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additional_data: Dict[str, Any] = field(default_factory=dict) + # The defaultPercentage property + default_percentage: Optional[float] = None + # The displayName property + display_name: Optional[str] = None + # The minPercentage property + min_percentage: Optional[float] = None + # The OdataType property + odata_type: Optional[str] = None + + @staticmethod + def create_from_discriminator_value(parse_node: Optional[ParseNode] = None) -> EducationGradingSchemeGrade: + """ + Creates a new instance of the appropriate class based on discriminator value + param parse_node: The parse node to use to read the discriminator value and create the object + Returns: EducationGradingSchemeGrade + """ + if not parse_node: + raise TypeError("parse_node cannot be null.") + return EducationGradingSchemeGrade() + + def get_field_deserializers(self,) -> Dict[str, Callable[[ParseNode], None]]: + """ + The deserialization information for the current model + Returns: Dict[str, Callable[[ParseNode], None]] + """ + fields: Dict[str, Callable[[Any], None]] = { + "defaultPercentage": lambda n : setattr(self, 'default_percentage', n.get_float_value()), + "displayName": lambda n : setattr(self, 'display_name', n.get_str_value()), + "minPercentage": lambda n : setattr(self, 'min_percentage', n.get_float_value()), + "@odata.type": lambda n : setattr(self, 'odata_type', n.get_str_value()), + } + return fields + + def serialize(self,writer: SerializationWriter) -> None: + """ + Serializes information the current object + param writer: Serialization writer to use to serialize this model + Returns: None + """ + if not writer: + raise TypeError("writer cannot be null.") + writer.write_float_value("defaultPercentage", self.default_percentage) + writer.write_str_value("displayName", self.display_name) + writer.write_float_value("minPercentage", self.min_percentage) + writer.write_str_value("@odata.type", self.odata_type) + writer.write_additional_data_value(self.additional_data) + + diff --git a/msgraph_beta/generated/models/entity.py b/msgraph_beta/generated/models/entity.py index 276de13cf90..db57feac3a1 100644 --- a/msgraph_beta/generated/models/entity.py +++ b/msgraph_beta/generated/models/entity.py @@ -294,6 +294,8 @@ from .claims_mapping_policy import ClaimsMappingPolicy from .classification_job_response import ClassificationJobResponse from .cloud_app_security_profile import CloudAppSecurityProfile + from .cloud_clipboard_item import CloudClipboardItem + from .cloud_clipboard_root import CloudClipboardRoot from .cloud_pc_audit_event import CloudPcAuditEvent from .cloud_pc_bulk_action import CloudPcBulkAction from .cloud_pc_bulk_disaster_recovery_failback import CloudPcBulkDisasterRecoveryFailback @@ -577,6 +579,7 @@ from .education_feedback_outcome import EducationFeedbackOutcome from .education_feedback_resource_outcome import EducationFeedbackResourceOutcome from .education_grading_category import EducationGradingCategory + from .education_grading_scheme import EducationGradingScheme from .education_module import EducationModule from .education_module_resource import EducationModuleResource from .education_organization import EducationOrganization @@ -647,7 +650,9 @@ from .external_item import ExternalItem from .external_meeting_registrant import ExternalMeetingRegistrant from .external_meeting_registration import ExternalMeetingRegistration + from .external_profile import ExternalProfile from .external_users_self_service_sign_up_events_flow import ExternalUsersSelfServiceSignUpEventsFlow + from .external_user_profile import ExternalUserProfile from .e_book_install_summary import EBookInstallSummary from .feature_rollout_policy import FeatureRolloutPolicy from .federated_identity_credential import FederatedIdentityCredential @@ -1131,8 +1136,10 @@ from .participant_joining_notification import ParticipantJoiningNotification from .participant_left_notification import ParticipantLeftNotification from .partners.billing.azure_usage import AzureUsage + from .partners.billing.billed_reconciliation import BilledReconciliation from .partners.billing.billed_usage import BilledUsage from .partners.billing.billing import Billing + from .partners.billing.billing_reconciliation import BillingReconciliation from .partners.billing.export_success_operation import ExportSuccessOperation from .partners.billing.failed_operation import FailedOperation from .partners.billing.manifest import Manifest @@ -1145,6 +1152,7 @@ from .payload import Payload from .payload_compatible_assignment_filter import PayloadCompatibleAssignmentFilter from .payload_response import PayloadResponse + from .pending_external_user_profile import PendingExternalUserProfile from .people_admin_settings import PeopleAdminSettings from .permission import Permission from .permissions_analytics import PermissionsAnalytics @@ -1389,6 +1397,7 @@ from .security.retention_event import RetentionEvent from .security.retention_event_type import RetentionEventType from .security.retention_label import RetentionLabel + from .security.rules_root import RulesRoot from .security.search import Search from .security.security import Security from .security.sensitivity_label import SensitivityLabel @@ -1787,6 +1796,8 @@ from .windows_quality_update_catalog_item import WindowsQualityUpdateCatalogItem from .windows_quality_update_profile import WindowsQualityUpdateProfile from .windows_quality_update_profile_assignment import WindowsQualityUpdateProfileAssignment + from .windows_setting import WindowsSetting + from .windows_setting_instance import WindowsSettingInstance from .windows_store_app import WindowsStoreApp from .windows_universal_app_x import WindowsUniversalAppX from .windows_universal_app_x_contained_app import WindowsUniversalAppXContainedApp @@ -3059,6 +3070,14 @@ def create_from_discriminator_value(parse_node: Optional[ParseNode] = None) -> E from .cloud_app_security_profile import CloudAppSecurityProfile return CloudAppSecurityProfile() + if mapping_value and mapping_value.casefold() == "#microsoft.graph.cloudClipboardItem".casefold(): + from .cloud_clipboard_item import CloudClipboardItem + + return CloudClipboardItem() + if mapping_value and mapping_value.casefold() == "#microsoft.graph.cloudClipboardRoot".casefold(): + from .cloud_clipboard_root import CloudClipboardRoot + + return CloudClipboardRoot() if mapping_value and mapping_value.casefold() == "#microsoft.graph.cloudPC".casefold(): from .cloud_p_c import CloudPC @@ -4206,6 +4225,10 @@ def create_from_discriminator_value(parse_node: Optional[ParseNode] = None) -> E from .education_grading_category import EducationGradingCategory return EducationGradingCategory() + if mapping_value and mapping_value.casefold() == "#microsoft.graph.educationGradingScheme".casefold(): + from .education_grading_scheme import EducationGradingScheme + + return EducationGradingScheme() if mapping_value and mapping_value.casefold() == "#microsoft.graph.educationModule".casefold(): from .education_module import EducationModule @@ -4494,6 +4517,14 @@ def create_from_discriminator_value(parse_node: Optional[ParseNode] = None) -> E from .external_meeting_registration import ExternalMeetingRegistration return ExternalMeetingRegistration() + if mapping_value and mapping_value.casefold() == "#microsoft.graph.externalProfile".casefold(): + from .external_profile import ExternalProfile + + return ExternalProfile() + if mapping_value and mapping_value.casefold() == "#microsoft.graph.externalUserProfile".casefold(): + from .external_user_profile import ExternalUserProfile + + return ExternalUserProfile() if mapping_value and mapping_value.casefold() == "#microsoft.graph.externalUsersSelfServiceSignUpEventsFlow".casefold(): from .external_users_self_service_sign_up_events_flow import ExternalUsersSelfServiceSignUpEventsFlow @@ -6442,6 +6473,10 @@ def create_from_discriminator_value(parse_node: Optional[ParseNode] = None) -> E from .partners.billing.azure_usage import AzureUsage return AzureUsage() + if mapping_value and mapping_value.casefold() == "#microsoft.graph.partners.billing.billedReconciliation".casefold(): + from .partners.billing.billed_reconciliation import BilledReconciliation + + return BilledReconciliation() if mapping_value and mapping_value.casefold() == "#microsoft.graph.partners.billing.billedUsage".casefold(): from .partners.billing.billed_usage import BilledUsage @@ -6450,6 +6485,10 @@ def create_from_discriminator_value(parse_node: Optional[ParseNode] = None) -> E from .partners.billing.billing import Billing return Billing() + if mapping_value and mapping_value.casefold() == "#microsoft.graph.partners.billing.billingReconciliation".casefold(): + from .partners.billing.billing_reconciliation import BillingReconciliation + + return BillingReconciliation() if mapping_value and mapping_value.casefold() == "#microsoft.graph.partners.billing.exportSuccessOperation".casefold(): from .partners.billing.export_success_operation import ExportSuccessOperation @@ -6495,6 +6534,10 @@ def create_from_discriminator_value(parse_node: Optional[ParseNode] = None) -> E from .payload_response import PayloadResponse return PayloadResponse() + if mapping_value and mapping_value.casefold() == "#microsoft.graph.pendingExternalUserProfile".casefold(): + from .pending_external_user_profile import PendingExternalUserProfile + + return PendingExternalUserProfile() if mapping_value and mapping_value.casefold() == "#microsoft.graph.peopleAdminSettings".casefold(): from .people_admin_settings import PeopleAdminSettings @@ -7486,6 +7529,10 @@ def create_from_discriminator_value(parse_node: Optional[ParseNode] = None) -> E from .security.retention_label import RetentionLabel return RetentionLabel() + if mapping_value and mapping_value.casefold() == "#microsoft.graph.security.rulesRoot".casefold(): + from .security.rules_root import RulesRoot + + return RulesRoot() if mapping_value and mapping_value.casefold() == "#microsoft.graph.security.search".casefold(): from .security.search import Search @@ -9087,6 +9134,14 @@ def create_from_discriminator_value(parse_node: Optional[ParseNode] = None) -> E from .windows_quality_update_profile_assignment import WindowsQualityUpdateProfileAssignment return WindowsQualityUpdateProfileAssignment() + if mapping_value and mapping_value.casefold() == "#microsoft.graph.windowsSetting".casefold(): + from .windows_setting import WindowsSetting + + return WindowsSetting() + if mapping_value and mapping_value.casefold() == "#microsoft.graph.windowsSettingInstance".casefold(): + from .windows_setting_instance import WindowsSettingInstance + + return WindowsSettingInstance() if mapping_value and mapping_value.casefold() == "#microsoft.graph.windowsStoreApp".casefold(): from .windows_store_app import WindowsStoreApp @@ -9727,6 +9782,8 @@ def get_field_deserializers(self,) -> Dict[str, Callable[[ParseNode], None]]: from .claims_mapping_policy import ClaimsMappingPolicy from .classification_job_response import ClassificationJobResponse from .cloud_app_security_profile import CloudAppSecurityProfile + from .cloud_clipboard_item import CloudClipboardItem + from .cloud_clipboard_root import CloudClipboardRoot from .cloud_pc_audit_event import CloudPcAuditEvent from .cloud_pc_bulk_action import CloudPcBulkAction from .cloud_pc_bulk_disaster_recovery_failback import CloudPcBulkDisasterRecoveryFailback @@ -10010,6 +10067,7 @@ def get_field_deserializers(self,) -> Dict[str, Callable[[ParseNode], None]]: from .education_feedback_outcome import EducationFeedbackOutcome from .education_feedback_resource_outcome import EducationFeedbackResourceOutcome from .education_grading_category import EducationGradingCategory + from .education_grading_scheme import EducationGradingScheme from .education_module import EducationModule from .education_module_resource import EducationModuleResource from .education_organization import EducationOrganization @@ -10080,7 +10138,9 @@ def get_field_deserializers(self,) -> Dict[str, Callable[[ParseNode], None]]: from .external_item import ExternalItem from .external_meeting_registrant import ExternalMeetingRegistrant from .external_meeting_registration import ExternalMeetingRegistration + from .external_profile import ExternalProfile from .external_users_self_service_sign_up_events_flow import ExternalUsersSelfServiceSignUpEventsFlow + from .external_user_profile import ExternalUserProfile from .e_book_install_summary import EBookInstallSummary from .feature_rollout_policy import FeatureRolloutPolicy from .federated_identity_credential import FederatedIdentityCredential @@ -10564,8 +10624,10 @@ def get_field_deserializers(self,) -> Dict[str, Callable[[ParseNode], None]]: from .participant_joining_notification import ParticipantJoiningNotification from .participant_left_notification import ParticipantLeftNotification from .partners.billing.azure_usage import AzureUsage + from .partners.billing.billed_reconciliation import BilledReconciliation from .partners.billing.billed_usage import BilledUsage from .partners.billing.billing import Billing + from .partners.billing.billing_reconciliation import BillingReconciliation from .partners.billing.export_success_operation import ExportSuccessOperation from .partners.billing.failed_operation import FailedOperation from .partners.billing.manifest import Manifest @@ -10578,6 +10640,7 @@ def get_field_deserializers(self,) -> Dict[str, Callable[[ParseNode], None]]: from .payload import Payload from .payload_compatible_assignment_filter import PayloadCompatibleAssignmentFilter from .payload_response import PayloadResponse + from .pending_external_user_profile import PendingExternalUserProfile from .people_admin_settings import PeopleAdminSettings from .permission import Permission from .permissions_analytics import PermissionsAnalytics @@ -10822,6 +10885,7 @@ def get_field_deserializers(self,) -> Dict[str, Callable[[ParseNode], None]]: from .security.retention_event import RetentionEvent from .security.retention_event_type import RetentionEventType from .security.retention_label import RetentionLabel + from .security.rules_root import RulesRoot from .security.search import Search from .security.security import Security from .security.sensitivity_label import SensitivityLabel @@ -11220,6 +11284,8 @@ def get_field_deserializers(self,) -> Dict[str, Callable[[ParseNode], None]]: from .windows_quality_update_catalog_item import WindowsQualityUpdateCatalogItem from .windows_quality_update_profile import WindowsQualityUpdateProfile from .windows_quality_update_profile_assignment import WindowsQualityUpdateProfileAssignment + from .windows_setting import WindowsSetting + from .windows_setting_instance import WindowsSettingInstance from .windows_store_app import WindowsStoreApp from .windows_universal_app_x import WindowsUniversalAppX from .windows_universal_app_x_contained_app import WindowsUniversalAppXContainedApp @@ -11596,6 +11662,8 @@ def get_field_deserializers(self,) -> Dict[str, Callable[[ParseNode], None]]: from .claims_mapping_policy import ClaimsMappingPolicy from .classification_job_response import ClassificationJobResponse from .cloud_app_security_profile import CloudAppSecurityProfile + from .cloud_clipboard_item import CloudClipboardItem + from .cloud_clipboard_root import CloudClipboardRoot from .cloud_pc_audit_event import CloudPcAuditEvent from .cloud_pc_bulk_action import CloudPcBulkAction from .cloud_pc_bulk_disaster_recovery_failback import CloudPcBulkDisasterRecoveryFailback @@ -11879,6 +11947,7 @@ def get_field_deserializers(self,) -> Dict[str, Callable[[ParseNode], None]]: from .education_feedback_outcome import EducationFeedbackOutcome from .education_feedback_resource_outcome import EducationFeedbackResourceOutcome from .education_grading_category import EducationGradingCategory + from .education_grading_scheme import EducationGradingScheme from .education_module import EducationModule from .education_module_resource import EducationModuleResource from .education_organization import EducationOrganization @@ -11949,7 +12018,9 @@ def get_field_deserializers(self,) -> Dict[str, Callable[[ParseNode], None]]: from .external_item import ExternalItem from .external_meeting_registrant import ExternalMeetingRegistrant from .external_meeting_registration import ExternalMeetingRegistration + from .external_profile import ExternalProfile from .external_users_self_service_sign_up_events_flow import ExternalUsersSelfServiceSignUpEventsFlow + from .external_user_profile import ExternalUserProfile from .e_book_install_summary import EBookInstallSummary from .feature_rollout_policy import FeatureRolloutPolicy from .federated_identity_credential import FederatedIdentityCredential @@ -12433,8 +12504,10 @@ def get_field_deserializers(self,) -> Dict[str, Callable[[ParseNode], None]]: from .participant_joining_notification import ParticipantJoiningNotification from .participant_left_notification import ParticipantLeftNotification from .partners.billing.azure_usage import AzureUsage + from .partners.billing.billed_reconciliation import BilledReconciliation from .partners.billing.billed_usage import BilledUsage from .partners.billing.billing import Billing + from .partners.billing.billing_reconciliation import BillingReconciliation from .partners.billing.export_success_operation import ExportSuccessOperation from .partners.billing.failed_operation import FailedOperation from .partners.billing.manifest import Manifest @@ -12447,6 +12520,7 @@ def get_field_deserializers(self,) -> Dict[str, Callable[[ParseNode], None]]: from .payload import Payload from .payload_compatible_assignment_filter import PayloadCompatibleAssignmentFilter from .payload_response import PayloadResponse + from .pending_external_user_profile import PendingExternalUserProfile from .people_admin_settings import PeopleAdminSettings from .permission import Permission from .permissions_analytics import PermissionsAnalytics @@ -12691,6 +12765,7 @@ def get_field_deserializers(self,) -> Dict[str, Callable[[ParseNode], None]]: from .security.retention_event import RetentionEvent from .security.retention_event_type import RetentionEventType from .security.retention_label import RetentionLabel + from .security.rules_root import RulesRoot from .security.search import Search from .security.security import Security from .security.sensitivity_label import SensitivityLabel @@ -13089,6 +13164,8 @@ def get_field_deserializers(self,) -> Dict[str, Callable[[ParseNode], None]]: from .windows_quality_update_catalog_item import WindowsQualityUpdateCatalogItem from .windows_quality_update_profile import WindowsQualityUpdateProfile from .windows_quality_update_profile_assignment import WindowsQualityUpdateProfileAssignment + from .windows_setting import WindowsSetting + from .windows_setting_instance import WindowsSettingInstance from .windows_store_app import WindowsStoreApp from .windows_universal_app_x import WindowsUniversalAppX from .windows_universal_app_x_contained_app import WindowsUniversalAppXContainedApp diff --git a/msgraph_beta/generated/models/external_profile.py b/msgraph_beta/generated/models/external_profile.py new file mode 100644 index 00000000000..400647ad0d3 --- /dev/null +++ b/msgraph_beta/generated/models/external_profile.py @@ -0,0 +1,118 @@ +from __future__ import annotations +import datetime +from dataclasses import dataclass, field +from kiota_abstractions.serialization import Parsable, ParseNode, SerializationWriter +from typing import Any, Callable, Dict, List, Optional, TYPE_CHECKING, Union + +if TYPE_CHECKING: + from .directory_object import DirectoryObject + from .external_user_profile import ExternalUserProfile + from .pending_external_user_profile import PendingExternalUserProfile + from .physical_office_address import PhysicalOfficeAddress + +from .directory_object import DirectoryObject + +@dataclass +class ExternalProfile(DirectoryObject): + # The OdataType property + odata_type: Optional[str] = "#microsoft.graph.externalProfile" + # The office address of the external user profile. + address: Optional[PhysicalOfficeAddress] = None + # The company name of the external user profile. Supports $filter (eq, startswith). + company_name: Optional[str] = None + # The object ID of the user who created the external user profile. Read-only. Not nullable. + created_by: Optional[str] = None + # Date and time when this external user was created. Not nullable. Read-only. + created_date_time: Optional[datetime.datetime] = None + # The department of the external user profile. + department: Optional[str] = None + # The display name of the external user profile. + display_name: Optional[str] = None + # Represents whether the external user profile is discoverable in the directory. When true, this external profile shows up in Teams search. + is_discoverable: Optional[bool] = None + # Represents whether the external user profile is enabled in the directory. This property is peer to the accountEnabled property on the user object. + is_enabled: Optional[bool] = None + # The job title of the external user profile. + job_title: Optional[str] = None + # The phone number of the external user profile. Must be in E164 format. + phone_number: Optional[str] = None + # The object ID of the supervisor of the external user profile. Supports $filter (eq, startswith). + supervisor_id: Optional[str] = None + + @staticmethod + def create_from_discriminator_value(parse_node: Optional[ParseNode] = None) -> ExternalProfile: + """ + Creates a new instance of the appropriate class based on discriminator value + param parse_node: The parse node to use to read the discriminator value and create the object + Returns: ExternalProfile + """ + if not parse_node: + raise TypeError("parse_node cannot be null.") + try: + mapping_value = parse_node.get_child_node("@odata.type").get_str_value() + except AttributeError: + mapping_value = None + if mapping_value and mapping_value.casefold() == "#microsoft.graph.externalUserProfile".casefold(): + from .external_user_profile import ExternalUserProfile + + return ExternalUserProfile() + if mapping_value and mapping_value.casefold() == "#microsoft.graph.pendingExternalUserProfile".casefold(): + from .pending_external_user_profile import PendingExternalUserProfile + + return PendingExternalUserProfile() + return ExternalProfile() + + def get_field_deserializers(self,) -> Dict[str, Callable[[ParseNode], None]]: + """ + The deserialization information for the current model + Returns: Dict[str, Callable[[ParseNode], None]] + """ + from .directory_object import DirectoryObject + from .external_user_profile import ExternalUserProfile + from .pending_external_user_profile import PendingExternalUserProfile + from .physical_office_address import PhysicalOfficeAddress + + from .directory_object import DirectoryObject + from .external_user_profile import ExternalUserProfile + from .pending_external_user_profile import PendingExternalUserProfile + from .physical_office_address import PhysicalOfficeAddress + + fields: Dict[str, Callable[[Any], None]] = { + "address": lambda n : setattr(self, 'address', n.get_object_value(PhysicalOfficeAddress)), + "companyName": lambda n : setattr(self, 'company_name', n.get_str_value()), + "createdBy": lambda n : setattr(self, 'created_by', n.get_str_value()), + "createdDateTime": lambda n : setattr(self, 'created_date_time', n.get_datetime_value()), + "department": lambda n : setattr(self, 'department', n.get_str_value()), + "displayName": lambda n : setattr(self, 'display_name', n.get_str_value()), + "isDiscoverable": lambda n : setattr(self, 'is_discoverable', n.get_bool_value()), + "isEnabled": lambda n : setattr(self, 'is_enabled', n.get_bool_value()), + "jobTitle": lambda n : setattr(self, 'job_title', n.get_str_value()), + "phoneNumber": lambda n : setattr(self, 'phone_number', n.get_str_value()), + "supervisorId": lambda n : setattr(self, 'supervisor_id', n.get_str_value()), + } + super_fields = super().get_field_deserializers() + fields.update(super_fields) + return fields + + def serialize(self,writer: SerializationWriter) -> None: + """ + Serializes information the current object + param writer: Serialization writer to use to serialize this model + Returns: None + """ + if not writer: + raise TypeError("writer cannot be null.") + super().serialize(writer) + writer.write_object_value("address", self.address) + writer.write_str_value("companyName", self.company_name) + writer.write_str_value("createdBy", self.created_by) + writer.write_datetime_value("createdDateTime", self.created_date_time) + writer.write_str_value("department", self.department) + writer.write_str_value("displayName", self.display_name) + writer.write_bool_value("isDiscoverable", self.is_discoverable) + writer.write_bool_value("isEnabled", self.is_enabled) + writer.write_str_value("jobTitle", self.job_title) + writer.write_str_value("phoneNumber", self.phone_number) + writer.write_str_value("supervisorId", self.supervisor_id) + + diff --git a/msgraph_beta/generated/models/external_user_profile.py b/msgraph_beta/generated/models/external_user_profile.py new file mode 100644 index 00000000000..fe7814b545c --- /dev/null +++ b/msgraph_beta/generated/models/external_user_profile.py @@ -0,0 +1,52 @@ +from __future__ import annotations +from dataclasses import dataclass, field +from kiota_abstractions.serialization import Parsable, ParseNode, SerializationWriter +from typing import Any, Callable, Dict, List, Optional, TYPE_CHECKING, Union + +if TYPE_CHECKING: + from .external_profile import ExternalProfile + +from .external_profile import ExternalProfile + +@dataclass +class ExternalUserProfile(ExternalProfile): + # The OdataType property + odata_type: Optional[str] = "#microsoft.graph.externalUserProfile" + + @staticmethod + def create_from_discriminator_value(parse_node: Optional[ParseNode] = None) -> ExternalUserProfile: + """ + Creates a new instance of the appropriate class based on discriminator value + param parse_node: The parse node to use to read the discriminator value and create the object + Returns: ExternalUserProfile + """ + if not parse_node: + raise TypeError("parse_node cannot be null.") + return ExternalUserProfile() + + def get_field_deserializers(self,) -> Dict[str, Callable[[ParseNode], None]]: + """ + The deserialization information for the current model + Returns: Dict[str, Callable[[ParseNode], None]] + """ + from .external_profile import ExternalProfile + + from .external_profile import ExternalProfile + + fields: Dict[str, Callable[[Any], None]] = { + } + super_fields = super().get_field_deserializers() + fields.update(super_fields) + return fields + + def serialize(self,writer: SerializationWriter) -> None: + """ + Serializes information the current object + param writer: Serialization writer to use to serialize this model + Returns: None + """ + if not writer: + raise TypeError("writer cannot be null.") + super().serialize(writer) + + diff --git a/msgraph_beta/generated/models/external_user_profile_collection_response.py b/msgraph_beta/generated/models/external_user_profile_collection_response.py new file mode 100644 index 00000000000..8ae21d5d773 --- /dev/null +++ b/msgraph_beta/generated/models/external_user_profile_collection_response.py @@ -0,0 +1,57 @@ +from __future__ import annotations +from dataclasses import dataclass, field +from kiota_abstractions.serialization import Parsable, ParseNode, SerializationWriter +from typing import Any, Callable, Dict, List, Optional, TYPE_CHECKING, Union + +if TYPE_CHECKING: + from .base_collection_pagination_count_response import BaseCollectionPaginationCountResponse + from .external_user_profile import ExternalUserProfile + +from .base_collection_pagination_count_response import BaseCollectionPaginationCountResponse + +@dataclass +class ExternalUserProfileCollectionResponse(BaseCollectionPaginationCountResponse): + # The value property + value: Optional[List[ExternalUserProfile]] = None + + @staticmethod + def create_from_discriminator_value(parse_node: Optional[ParseNode] = None) -> ExternalUserProfileCollectionResponse: + """ + Creates a new instance of the appropriate class based on discriminator value + param parse_node: The parse node to use to read the discriminator value and create the object + Returns: ExternalUserProfileCollectionResponse + """ + if not parse_node: + raise TypeError("parse_node cannot be null.") + return ExternalUserProfileCollectionResponse() + + def get_field_deserializers(self,) -> Dict[str, Callable[[ParseNode], None]]: + """ + The deserialization information for the current model + Returns: Dict[str, Callable[[ParseNode], None]] + """ + from .base_collection_pagination_count_response import BaseCollectionPaginationCountResponse + from .external_user_profile import ExternalUserProfile + + from .base_collection_pagination_count_response import BaseCollectionPaginationCountResponse + from .external_user_profile import ExternalUserProfile + + fields: Dict[str, Callable[[Any], None]] = { + "value": lambda n : setattr(self, 'value', n.get_collection_of_object_values(ExternalUserProfile)), + } + super_fields = super().get_field_deserializers() + fields.update(super_fields) + return fields + + def serialize(self,writer: SerializationWriter) -> None: + """ + Serializes information the current object + param writer: Serialization writer to use to serialize this model + Returns: None + """ + if not writer: + raise TypeError("writer cannot be null.") + super().serialize(writer) + writer.write_collection_of_object_values("value", self.value) + + diff --git a/msgraph_beta/generated/models/key_value.py b/msgraph_beta/generated/models/key_value.py index 204ef89cd40..4c7f8547c71 100644 --- a/msgraph_beta/generated/models/key_value.py +++ b/msgraph_beta/generated/models/key_value.py @@ -11,11 +11,11 @@ class KeyValue(AdditionalDataHolder, BackedModel, Parsable): # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. additional_data: Dict[str, Any] = field(default_factory=dict) - # Contains the name of the field that a value is associated with. + # Key. key: Optional[str] = None # The OdataType property odata_type: Optional[str] = None - # Contains the corresponding value for the specified key. + # Value. value: Optional[str] = None @staticmethod diff --git a/msgraph_beta/generated/models/media_source_content_category.py b/msgraph_beta/generated/models/media_source_content_category.py index 8bfdff9b23b..9b27807e017 100644 --- a/msgraph_beta/generated/models/media_source_content_category.py +++ b/msgraph_beta/generated/models/media_source_content_category.py @@ -5,5 +5,10 @@ class MediaSourceContentCategory(str, Enum): LiveStream = "liveStream", Presentation = "presentation", ScreenRecording = "screenRecording", + Story = "story", + Profile = "profile", + Chat = "chat", + Note = "note", + Comment = "comment", UnknownFutureValue = "unknownFutureValue", diff --git a/msgraph_beta/generated/models/monthly_user_insight_metrics_root.py b/msgraph_beta/generated/models/monthly_user_insight_metrics_root.py index 026ee065dbf..5b23716b363 100644 --- a/msgraph_beta/generated/models/monthly_user_insight_metrics_root.py +++ b/msgraph_beta/generated/models/monthly_user_insight_metrics_root.py @@ -21,7 +21,7 @@ class MonthlyUserInsightMetricsRoot(Entity): # Insights for active users on apps registered in the tenant for a specified period. active_users: Optional[List[ActiveUsersMetric]] = None - # Insights for the breakdown of users who were active on apps registered in the tenant for a specified period. + # The activeUsersBreakdown property active_users_breakdown: Optional[List[ActiveUsersBreakdownMetric]] = None # Insights for authentications on apps registered in the tenant for a specified period. authentications: Optional[List[AuthenticationsMetric]] = None diff --git a/msgraph_beta/generated/models/networkaccess/alert.py b/msgraph_beta/generated/models/networkaccess/alert.py index f341237f87c..c8af9dc2dd7 100644 --- a/msgraph_beta/generated/models/networkaccess/alert.py +++ b/msgraph_beta/generated/models/networkaccess/alert.py @@ -8,6 +8,7 @@ from ..entity import Entity from .alert_action import AlertAction from .alert_type import AlertType + from .related_resource import RelatedResource from ..entity import Entity @@ -25,6 +26,8 @@ class Alert(Entity): first_impacted_date_time: Optional[datetime.datetime] = None # The OdataType property odata_type: Optional[str] = None + # The relatedResources property + related_resources: Optional[List[RelatedResource]] = None @staticmethod def create_from_discriminator_value(parse_node: Optional[ParseNode] = None) -> Alert: @@ -45,10 +48,12 @@ def get_field_deserializers(self,) -> Dict[str, Callable[[ParseNode], None]]: from ..entity import Entity from .alert_action import AlertAction from .alert_type import AlertType + from .related_resource import RelatedResource from ..entity import Entity from .alert_action import AlertAction from .alert_type import AlertType + from .related_resource import RelatedResource fields: Dict[str, Callable[[Any], None]] = { "actions": lambda n : setattr(self, 'actions', n.get_collection_of_object_values(AlertAction)), @@ -56,6 +61,7 @@ def get_field_deserializers(self,) -> Dict[str, Callable[[ParseNode], None]]: "creationDateTime": lambda n : setattr(self, 'creation_date_time', n.get_datetime_value()), "description": lambda n : setattr(self, 'description', n.get_str_value()), "firstImpactedDateTime": lambda n : setattr(self, 'first_impacted_date_time', n.get_datetime_value()), + "relatedResources": lambda n : setattr(self, 'related_resources', n.get_collection_of_object_values(RelatedResource)), } super_fields = super().get_field_deserializers() fields.update(super_fields) @@ -75,5 +81,6 @@ def serialize(self,writer: SerializationWriter) -> None: writer.write_datetime_value("creationDateTime", self.creation_date_time) writer.write_str_value("description", self.description) writer.write_datetime_value("firstImpactedDateTime", self.first_impacted_date_time) + writer.write_collection_of_object_values("relatedResources", self.related_resources) diff --git a/msgraph_beta/generated/models/networkaccess/alert_collection_response.py b/msgraph_beta/generated/models/networkaccess/alert_collection_response.py new file mode 100644 index 00000000000..17d756f43fb --- /dev/null +++ b/msgraph_beta/generated/models/networkaccess/alert_collection_response.py @@ -0,0 +1,57 @@ +from __future__ import annotations +from dataclasses import dataclass, field +from kiota_abstractions.serialization import Parsable, ParseNode, SerializationWriter +from typing import Any, Callable, Dict, List, Optional, TYPE_CHECKING, Union + +if TYPE_CHECKING: + from ..base_collection_pagination_count_response import BaseCollectionPaginationCountResponse + from .alert import Alert + +from ..base_collection_pagination_count_response import BaseCollectionPaginationCountResponse + +@dataclass +class AlertCollectionResponse(BaseCollectionPaginationCountResponse): + # The value property + value: Optional[List[Alert]] = None + + @staticmethod + def create_from_discriminator_value(parse_node: Optional[ParseNode] = None) -> AlertCollectionResponse: + """ + Creates a new instance of the appropriate class based on discriminator value + param parse_node: The parse node to use to read the discriminator value and create the object + Returns: AlertCollectionResponse + """ + if not parse_node: + raise TypeError("parse_node cannot be null.") + return AlertCollectionResponse() + + def get_field_deserializers(self,) -> Dict[str, Callable[[ParseNode], None]]: + """ + The deserialization information for the current model + Returns: Dict[str, Callable[[ParseNode], None]] + """ + from ..base_collection_pagination_count_response import BaseCollectionPaginationCountResponse + from .alert import Alert + + from ..base_collection_pagination_count_response import BaseCollectionPaginationCountResponse + from .alert import Alert + + fields: Dict[str, Callable[[Any], None]] = { + "value": lambda n : setattr(self, 'value', n.get_collection_of_object_values(Alert)), + } + super_fields = super().get_field_deserializers() + fields.update(super_fields) + return fields + + def serialize(self,writer: SerializationWriter) -> None: + """ + Serializes information the current object + param writer: Serialization writer to use to serialize this model + Returns: None + """ + if not writer: + raise TypeError("writer cannot be null.") + super().serialize(writer) + writer.write_collection_of_object_values("value", self.value) + + diff --git a/msgraph_beta/generated/models/networkaccess/alert_type.py b/msgraph_beta/generated/models/networkaccess/alert_type.py index a46356f0aa7..49044ac97fd 100644 --- a/msgraph_beta/generated/models/networkaccess/alert_type.py +++ b/msgraph_beta/generated/models/networkaccess/alert_type.py @@ -8,4 +8,5 @@ class AlertType(str, Enum): SuspiciousProcess = "suspiciousProcess", ThreatIntelligenceTransactions = "threatIntelligenceTransactions", UnknownFutureValue = "unknownFutureValue", + WebContentBlocked = "webContentBlocked", diff --git a/msgraph_beta/generated/models/networkaccess/device_category.py b/msgraph_beta/generated/models/networkaccess/device_category.py index 620d5d9be66..cfac0d8099b 100644 --- a/msgraph_beta/generated/models/networkaccess/device_category.py +++ b/msgraph_beta/generated/models/networkaccess/device_category.py @@ -4,4 +4,5 @@ class DeviceCategory(str, Enum): Client = "client", Branch = "branch", UnknownFutureValue = "unknownFutureValue", + RemoteNetwork = "remoteNetwork", diff --git a/msgraph_beta/generated/models/networkaccess/network_access_root.py b/msgraph_beta/generated/models/networkaccess/network_access_root.py index 3c9142dd9f1..dd580977190 100644 --- a/msgraph_beta/generated/models/networkaccess/network_access_root.py +++ b/msgraph_beta/generated/models/networkaccess/network_access_root.py @@ -5,6 +5,7 @@ if TYPE_CHECKING: from ..entity import Entity + from .alert import Alert from .connectivity import Connectivity from .filtering_policy import FilteringPolicy from .filtering_profile import FilteringProfile @@ -19,6 +20,8 @@ @dataclass class NetworkAccessRoot(Entity): + # The alerts property + alerts: Optional[List[Alert]] = None # Connectivity represents all the connectivity components in Global Secure Access. connectivity: Optional[Connectivity] = None # A filtering policy defines the specific traffic that is allowed or blocked through the Global Secure Access services for a filtering profile. @@ -57,6 +60,7 @@ def get_field_deserializers(self,) -> Dict[str, Callable[[ParseNode], None]]: Returns: Dict[str, Callable[[ParseNode], None]] """ from ..entity import Entity + from .alert import Alert from .connectivity import Connectivity from .filtering_policy import FilteringPolicy from .filtering_profile import FilteringProfile @@ -68,6 +72,7 @@ def get_field_deserializers(self,) -> Dict[str, Callable[[ParseNode], None]]: from .tenant_status import TenantStatus from ..entity import Entity + from .alert import Alert from .connectivity import Connectivity from .filtering_policy import FilteringPolicy from .filtering_profile import FilteringProfile @@ -79,6 +84,7 @@ def get_field_deserializers(self,) -> Dict[str, Callable[[ParseNode], None]]: from .tenant_status import TenantStatus fields: Dict[str, Callable[[Any], None]] = { + "alerts": lambda n : setattr(self, 'alerts', n.get_collection_of_object_values(Alert)), "connectivity": lambda n : setattr(self, 'connectivity', n.get_object_value(Connectivity)), "filteringPolicies": lambda n : setattr(self, 'filtering_policies', n.get_collection_of_object_values(FilteringPolicy)), "filteringProfiles": lambda n : setattr(self, 'filtering_profiles', n.get_collection_of_object_values(FilteringProfile)), @@ -102,6 +108,7 @@ def serialize(self,writer: SerializationWriter) -> None: if not writer: raise TypeError("writer cannot be null.") super().serialize(writer) + writer.write_collection_of_object_values("alerts", self.alerts) writer.write_object_value("connectivity", self.connectivity) writer.write_collection_of_object_values("filteringPolicies", self.filtering_policies) writer.write_collection_of_object_values("filteringProfiles", self.filtering_profiles) diff --git a/msgraph_beta/generated/models/networkaccess/related_destination.py b/msgraph_beta/generated/models/networkaccess/related_destination.py new file mode 100644 index 00000000000..bc705fcb0ba --- /dev/null +++ b/msgraph_beta/generated/models/networkaccess/related_destination.py @@ -0,0 +1,71 @@ +from __future__ import annotations +from dataclasses import dataclass, field +from kiota_abstractions.serialization import Parsable, ParseNode, SerializationWriter +from typing import Any, Callable, Dict, List, Optional, TYPE_CHECKING, Union + +if TYPE_CHECKING: + from .networking_protocol import NetworkingProtocol + from .related_resource import RelatedResource + +from .related_resource import RelatedResource + +@dataclass +class RelatedDestination(RelatedResource): + # The OdataType property + odata_type: Optional[str] = "#microsoft.graph.networkaccess.relatedDestination" + # The fqdn property + fqdn: Optional[str] = None + # The ip property + ip: Optional[str] = None + # The networkingProtocol property + networking_protocol: Optional[NetworkingProtocol] = None + # The port property + port: Optional[int] = None + + @staticmethod + def create_from_discriminator_value(parse_node: Optional[ParseNode] = None) -> RelatedDestination: + """ + Creates a new instance of the appropriate class based on discriminator value + param parse_node: The parse node to use to read the discriminator value and create the object + Returns: RelatedDestination + """ + if not parse_node: + raise TypeError("parse_node cannot be null.") + return RelatedDestination() + + def get_field_deserializers(self,) -> Dict[str, Callable[[ParseNode], None]]: + """ + The deserialization information for the current model + Returns: Dict[str, Callable[[ParseNode], None]] + """ + from .networking_protocol import NetworkingProtocol + from .related_resource import RelatedResource + + from .networking_protocol import NetworkingProtocol + from .related_resource import RelatedResource + + fields: Dict[str, Callable[[Any], None]] = { + "fqdn": lambda n : setattr(self, 'fqdn', n.get_str_value()), + "ip": lambda n : setattr(self, 'ip', n.get_str_value()), + "networkingProtocol": lambda n : setattr(self, 'networking_protocol', n.get_enum_value(NetworkingProtocol)), + "port": lambda n : setattr(self, 'port', n.get_int_value()), + } + super_fields = super().get_field_deserializers() + fields.update(super_fields) + return fields + + def serialize(self,writer: SerializationWriter) -> None: + """ + Serializes information the current object + param writer: Serialization writer to use to serialize this model + Returns: None + """ + if not writer: + raise TypeError("writer cannot be null.") + super().serialize(writer) + writer.write_str_value("fqdn", self.fqdn) + writer.write_str_value("ip", self.ip) + writer.write_enum_value("networkingProtocol", self.networking_protocol) + writer.write_int_value("port", self.port) + + diff --git a/msgraph_beta/generated/models/networkaccess/related_device.py b/msgraph_beta/generated/models/networkaccess/related_device.py new file mode 100644 index 00000000000..91d9113120b --- /dev/null +++ b/msgraph_beta/generated/models/networkaccess/related_device.py @@ -0,0 +1,56 @@ +from __future__ import annotations +from dataclasses import dataclass, field +from kiota_abstractions.serialization import Parsable, ParseNode, SerializationWriter +from typing import Any, Callable, Dict, List, Optional, TYPE_CHECKING, Union + +if TYPE_CHECKING: + from .related_resource import RelatedResource + +from .related_resource import RelatedResource + +@dataclass +class RelatedDevice(RelatedResource): + # The OdataType property + odata_type: Optional[str] = "#microsoft.graph.networkaccess.relatedDevice" + # The deviceId property + device_id: Optional[str] = None + + @staticmethod + def create_from_discriminator_value(parse_node: Optional[ParseNode] = None) -> RelatedDevice: + """ + Creates a new instance of the appropriate class based on discriminator value + param parse_node: The parse node to use to read the discriminator value and create the object + Returns: RelatedDevice + """ + if not parse_node: + raise TypeError("parse_node cannot be null.") + return RelatedDevice() + + def get_field_deserializers(self,) -> Dict[str, Callable[[ParseNode], None]]: + """ + The deserialization information for the current model + Returns: Dict[str, Callable[[ParseNode], None]] + """ + from .related_resource import RelatedResource + + from .related_resource import RelatedResource + + fields: Dict[str, Callable[[Any], None]] = { + "deviceId": lambda n : setattr(self, 'device_id', n.get_str_value()), + } + super_fields = super().get_field_deserializers() + fields.update(super_fields) + return fields + + def serialize(self,writer: SerializationWriter) -> None: + """ + Serializes information the current object + param writer: Serialization writer to use to serialize this model + Returns: None + """ + if not writer: + raise TypeError("writer cannot be null.") + super().serialize(writer) + writer.write_str_value("deviceId", self.device_id) + + diff --git a/msgraph_beta/generated/models/networkaccess/related_process.py b/msgraph_beta/generated/models/networkaccess/related_process.py new file mode 100644 index 00000000000..d8293bbd556 --- /dev/null +++ b/msgraph_beta/generated/models/networkaccess/related_process.py @@ -0,0 +1,60 @@ +from __future__ import annotations +from dataclasses import dataclass, field +from kiota_abstractions.serialization import Parsable, ParseNode, SerializationWriter +from typing import Any, Callable, Dict, List, Optional, TYPE_CHECKING, Union + +if TYPE_CHECKING: + from .related_resource import RelatedResource + +from .related_resource import RelatedResource + +@dataclass +class RelatedProcess(RelatedResource): + # The OdataType property + odata_type: Optional[str] = "#microsoft.graph.networkaccess.relatedProcess" + # The isSuspicious property + is_suspicious: Optional[bool] = None + # The processName property + process_name: Optional[str] = None + + @staticmethod + def create_from_discriminator_value(parse_node: Optional[ParseNode] = None) -> RelatedProcess: + """ + Creates a new instance of the appropriate class based on discriminator value + param parse_node: The parse node to use to read the discriminator value and create the object + Returns: RelatedProcess + """ + if not parse_node: + raise TypeError("parse_node cannot be null.") + return RelatedProcess() + + def get_field_deserializers(self,) -> Dict[str, Callable[[ParseNode], None]]: + """ + The deserialization information for the current model + Returns: Dict[str, Callable[[ParseNode], None]] + """ + from .related_resource import RelatedResource + + from .related_resource import RelatedResource + + fields: Dict[str, Callable[[Any], None]] = { + "isSuspicious": lambda n : setattr(self, 'is_suspicious', n.get_bool_value()), + "processName": lambda n : setattr(self, 'process_name', n.get_str_value()), + } + super_fields = super().get_field_deserializers() + fields.update(super_fields) + return fields + + def serialize(self,writer: SerializationWriter) -> None: + """ + Serializes information the current object + param writer: Serialization writer to use to serialize this model + Returns: None + """ + if not writer: + raise TypeError("writer cannot be null.") + super().serialize(writer) + writer.write_bool_value("isSuspicious", self.is_suspicious) + writer.write_str_value("processName", self.process_name) + + diff --git a/msgraph_beta/generated/models/networkaccess/related_remote_network.py b/msgraph_beta/generated/models/networkaccess/related_remote_network.py new file mode 100644 index 00000000000..37b85f0aa8f --- /dev/null +++ b/msgraph_beta/generated/models/networkaccess/related_remote_network.py @@ -0,0 +1,56 @@ +from __future__ import annotations +from dataclasses import dataclass, field +from kiota_abstractions.serialization import Parsable, ParseNode, SerializationWriter +from typing import Any, Callable, Dict, List, Optional, TYPE_CHECKING, Union + +if TYPE_CHECKING: + from .related_resource import RelatedResource + +from .related_resource import RelatedResource + +@dataclass +class RelatedRemoteNetwork(RelatedResource): + # The OdataType property + odata_type: Optional[str] = "#microsoft.graph.networkaccess.relatedRemoteNetwork" + # The remoteNetworkId property + remote_network_id: Optional[str] = None + + @staticmethod + def create_from_discriminator_value(parse_node: Optional[ParseNode] = None) -> RelatedRemoteNetwork: + """ + Creates a new instance of the appropriate class based on discriminator value + param parse_node: The parse node to use to read the discriminator value and create the object + Returns: RelatedRemoteNetwork + """ + if not parse_node: + raise TypeError("parse_node cannot be null.") + return RelatedRemoteNetwork() + + def get_field_deserializers(self,) -> Dict[str, Callable[[ParseNode], None]]: + """ + The deserialization information for the current model + Returns: Dict[str, Callable[[ParseNode], None]] + """ + from .related_resource import RelatedResource + + from .related_resource import RelatedResource + + fields: Dict[str, Callable[[Any], None]] = { + "remoteNetworkId": lambda n : setattr(self, 'remote_network_id', n.get_str_value()), + } + super_fields = super().get_field_deserializers() + fields.update(super_fields) + return fields + + def serialize(self,writer: SerializationWriter) -> None: + """ + Serializes information the current object + param writer: Serialization writer to use to serialize this model + Returns: None + """ + if not writer: + raise TypeError("writer cannot be null.") + super().serialize(writer) + writer.write_str_value("remoteNetworkId", self.remote_network_id) + + diff --git a/msgraph_beta/generated/models/networkaccess/related_resource.py b/msgraph_beta/generated/models/networkaccess/related_resource.py new file mode 100644 index 00000000000..51a210e986d --- /dev/null +++ b/msgraph_beta/generated/models/networkaccess/related_resource.py @@ -0,0 +1,106 @@ +from __future__ import annotations +from dataclasses import dataclass, field +from kiota_abstractions.serialization import AdditionalDataHolder, Parsable, ParseNode, SerializationWriter +from kiota_abstractions.store import BackedModel, BackingStore, BackingStoreFactorySingleton +from typing import Any, Callable, Dict, List, Optional, TYPE_CHECKING, Union + +if TYPE_CHECKING: + from .related_destination import RelatedDestination + from .related_device import RelatedDevice + from .related_process import RelatedProcess + from .related_remote_network import RelatedRemoteNetwork + from .related_tenant import RelatedTenant + from .related_threat_intelligence import RelatedThreatIntelligence + from .related_web_category import RelatedWebCategory + +@dataclass +class RelatedResource(AdditionalDataHolder, BackedModel, Parsable): + # Stores model information. + backing_store: BackingStore = field(default_factory=BackingStoreFactorySingleton(backing_store_factory=None).backing_store_factory.create_backing_store, repr=False) + + # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additional_data: Dict[str, Any] = field(default_factory=dict) + # The OdataType property + odata_type: Optional[str] = None + + @staticmethod + def create_from_discriminator_value(parse_node: Optional[ParseNode] = None) -> RelatedResource: + """ + Creates a new instance of the appropriate class based on discriminator value + param parse_node: The parse node to use to read the discriminator value and create the object + Returns: RelatedResource + """ + if not parse_node: + raise TypeError("parse_node cannot be null.") + try: + mapping_value = parse_node.get_child_node("@odata.type").get_str_value() + except AttributeError: + mapping_value = None + if mapping_value and mapping_value.casefold() == "#microsoft.graph.networkaccess.relatedDestination".casefold(): + from .related_destination import RelatedDestination + + return RelatedDestination() + if mapping_value and mapping_value.casefold() == "#microsoft.graph.networkaccess.relatedDevice".casefold(): + from .related_device import RelatedDevice + + return RelatedDevice() + if mapping_value and mapping_value.casefold() == "#microsoft.graph.networkaccess.relatedProcess".casefold(): + from .related_process import RelatedProcess + + return RelatedProcess() + if mapping_value and mapping_value.casefold() == "#microsoft.graph.networkaccess.relatedRemoteNetwork".casefold(): + from .related_remote_network import RelatedRemoteNetwork + + return RelatedRemoteNetwork() + if mapping_value and mapping_value.casefold() == "#microsoft.graph.networkaccess.relatedTenant".casefold(): + from .related_tenant import RelatedTenant + + return RelatedTenant() + if mapping_value and mapping_value.casefold() == "#microsoft.graph.networkaccess.relatedThreatIntelligence".casefold(): + from .related_threat_intelligence import RelatedThreatIntelligence + + return RelatedThreatIntelligence() + if mapping_value and mapping_value.casefold() == "#microsoft.graph.networkaccess.relatedWebCategory".casefold(): + from .related_web_category import RelatedWebCategory + + return RelatedWebCategory() + return RelatedResource() + + def get_field_deserializers(self,) -> Dict[str, Callable[[ParseNode], None]]: + """ + The deserialization information for the current model + Returns: Dict[str, Callable[[ParseNode], None]] + """ + from .related_destination import RelatedDestination + from .related_device import RelatedDevice + from .related_process import RelatedProcess + from .related_remote_network import RelatedRemoteNetwork + from .related_tenant import RelatedTenant + from .related_threat_intelligence import RelatedThreatIntelligence + from .related_web_category import RelatedWebCategory + + from .related_destination import RelatedDestination + from .related_device import RelatedDevice + from .related_process import RelatedProcess + from .related_remote_network import RelatedRemoteNetwork + from .related_tenant import RelatedTenant + from .related_threat_intelligence import RelatedThreatIntelligence + from .related_web_category import RelatedWebCategory + + fields: Dict[str, Callable[[Any], None]] = { + "@odata.type": lambda n : setattr(self, 'odata_type', n.get_str_value()), + } + return fields + + def serialize(self,writer: SerializationWriter) -> None: + """ + Serializes information the current object + param writer: Serialization writer to use to serialize this model + Returns: None + """ + if not writer: + raise TypeError("writer cannot be null.") + writer.write_str_value("@odata.type", self.odata_type) + writer.write_additional_data_value(self.additional_data) + + diff --git a/msgraph_beta/generated/models/networkaccess/related_tenant.py b/msgraph_beta/generated/models/networkaccess/related_tenant.py new file mode 100644 index 00000000000..50818168940 --- /dev/null +++ b/msgraph_beta/generated/models/networkaccess/related_tenant.py @@ -0,0 +1,56 @@ +from __future__ import annotations +from dataclasses import dataclass, field +from kiota_abstractions.serialization import Parsable, ParseNode, SerializationWriter +from typing import Any, Callable, Dict, List, Optional, TYPE_CHECKING, Union + +if TYPE_CHECKING: + from .related_resource import RelatedResource + +from .related_resource import RelatedResource + +@dataclass +class RelatedTenant(RelatedResource): + # The OdataType property + odata_type: Optional[str] = "#microsoft.graph.networkaccess.relatedTenant" + # The tenantId property + tenant_id: Optional[str] = None + + @staticmethod + def create_from_discriminator_value(parse_node: Optional[ParseNode] = None) -> RelatedTenant: + """ + Creates a new instance of the appropriate class based on discriminator value + param parse_node: The parse node to use to read the discriminator value and create the object + Returns: RelatedTenant + """ + if not parse_node: + raise TypeError("parse_node cannot be null.") + return RelatedTenant() + + def get_field_deserializers(self,) -> Dict[str, Callable[[ParseNode], None]]: + """ + The deserialization information for the current model + Returns: Dict[str, Callable[[ParseNode], None]] + """ + from .related_resource import RelatedResource + + from .related_resource import RelatedResource + + fields: Dict[str, Callable[[Any], None]] = { + "tenantId": lambda n : setattr(self, 'tenant_id', n.get_str_value()), + } + super_fields = super().get_field_deserializers() + fields.update(super_fields) + return fields + + def serialize(self,writer: SerializationWriter) -> None: + """ + Serializes information the current object + param writer: Serialization writer to use to serialize this model + Returns: None + """ + if not writer: + raise TypeError("writer cannot be null.") + super().serialize(writer) + writer.write_str_value("tenantId", self.tenant_id) + + diff --git a/msgraph_beta/generated/models/networkaccess/related_threat_intelligence.py b/msgraph_beta/generated/models/networkaccess/related_threat_intelligence.py new file mode 100644 index 00000000000..ee5eabac1e4 --- /dev/null +++ b/msgraph_beta/generated/models/networkaccess/related_threat_intelligence.py @@ -0,0 +1,56 @@ +from __future__ import annotations +from dataclasses import dataclass, field +from kiota_abstractions.serialization import Parsable, ParseNode, SerializationWriter +from typing import Any, Callable, Dict, List, Optional, TYPE_CHECKING, Union + +if TYPE_CHECKING: + from .related_resource import RelatedResource + +from .related_resource import RelatedResource + +@dataclass +class RelatedThreatIntelligence(RelatedResource): + # The OdataType property + odata_type: Optional[str] = "#microsoft.graph.networkaccess.relatedThreatIntelligence" + # The threatCount property + threat_count: Optional[int] = None + + @staticmethod + def create_from_discriminator_value(parse_node: Optional[ParseNode] = None) -> RelatedThreatIntelligence: + """ + Creates a new instance of the appropriate class based on discriminator value + param parse_node: The parse node to use to read the discriminator value and create the object + Returns: RelatedThreatIntelligence + """ + if not parse_node: + raise TypeError("parse_node cannot be null.") + return RelatedThreatIntelligence() + + def get_field_deserializers(self,) -> Dict[str, Callable[[ParseNode], None]]: + """ + The deserialization information for the current model + Returns: Dict[str, Callable[[ParseNode], None]] + """ + from .related_resource import RelatedResource + + from .related_resource import RelatedResource + + fields: Dict[str, Callable[[Any], None]] = { + "threatCount": lambda n : setattr(self, 'threat_count', n.get_int_value()), + } + super_fields = super().get_field_deserializers() + fields.update(super_fields) + return fields + + def serialize(self,writer: SerializationWriter) -> None: + """ + Serializes information the current object + param writer: Serialization writer to use to serialize this model + Returns: None + """ + if not writer: + raise TypeError("writer cannot be null.") + super().serialize(writer) + writer.write_int_value("threatCount", self.threat_count) + + diff --git a/msgraph_beta/generated/models/networkaccess/related_web_category.py b/msgraph_beta/generated/models/networkaccess/related_web_category.py new file mode 100644 index 00000000000..cf4c6ad21bb --- /dev/null +++ b/msgraph_beta/generated/models/networkaccess/related_web_category.py @@ -0,0 +1,56 @@ +from __future__ import annotations +from dataclasses import dataclass, field +from kiota_abstractions.serialization import Parsable, ParseNode, SerializationWriter +from typing import Any, Callable, Dict, List, Optional, TYPE_CHECKING, Union + +if TYPE_CHECKING: + from .related_resource import RelatedResource + +from .related_resource import RelatedResource + +@dataclass +class RelatedWebCategory(RelatedResource): + # The OdataType property + odata_type: Optional[str] = "#microsoft.graph.networkaccess.relatedWebCategory" + # The webCategoryName property + web_category_name: Optional[str] = None + + @staticmethod + def create_from_discriminator_value(parse_node: Optional[ParseNode] = None) -> RelatedWebCategory: + """ + Creates a new instance of the appropriate class based on discriminator value + param parse_node: The parse node to use to read the discriminator value and create the object + Returns: RelatedWebCategory + """ + if not parse_node: + raise TypeError("parse_node cannot be null.") + return RelatedWebCategory() + + def get_field_deserializers(self,) -> Dict[str, Callable[[ParseNode], None]]: + """ + The deserialization information for the current model + Returns: Dict[str, Callable[[ParseNode], None]] + """ + from .related_resource import RelatedResource + + from .related_resource import RelatedResource + + fields: Dict[str, Callable[[Any], None]] = { + "webCategoryName": lambda n : setattr(self, 'web_category_name', n.get_str_value()), + } + super_fields = super().get_field_deserializers() + fields.update(super_fields) + return fields + + def serialize(self,writer: SerializationWriter) -> None: + """ + Serializes information the current object + param writer: Serialization writer to use to serialize this model + Returns: None + """ + if not writer: + raise TypeError("writer cannot be null.") + super().serialize(writer) + writer.write_str_value("webCategoryName", self.web_category_name) + + diff --git a/msgraph_beta/generated/models/online_meeting.py b/msgraph_beta/generated/models/online_meeting.py index 25c02733c0f..9fdb0105b29 100644 --- a/msgraph_beta/generated/models/online_meeting.py +++ b/msgraph_beta/generated/models/online_meeting.py @@ -42,6 +42,8 @@ class OnlineMeeting(OnlineMeetingBase): join_url: Optional[str] = None # The meetingAttendanceReport property meeting_attendance_report: Optional[MeetingAttendanceReport] = None + # The ID of the meeting template. + meeting_template_id: Optional[str] = None # The participants associated with the online meeting, including the organizer and the attendees. participants: Optional[MeetingParticipants] = None # The recording property @@ -101,6 +103,7 @@ def get_field_deserializers(self,) -> Dict[str, Callable[[ParseNode], None]]: "isBroadcast": lambda n : setattr(self, 'is_broadcast', n.get_bool_value()), "joinUrl": lambda n : setattr(self, 'join_url', n.get_str_value()), "meetingAttendanceReport": lambda n : setattr(self, 'meeting_attendance_report', n.get_object_value(MeetingAttendanceReport)), + "meetingTemplateId": lambda n : setattr(self, 'meeting_template_id', n.get_str_value()), "participants": lambda n : setattr(self, 'participants', n.get_object_value(MeetingParticipants)), "recording": lambda n : setattr(self, 'recording', n.get_bytes_value()), "recordings": lambda n : setattr(self, 'recordings', n.get_collection_of_object_values(CallRecording)), @@ -132,6 +135,7 @@ def serialize(self,writer: SerializationWriter) -> None: writer.write_bool_value("isBroadcast", self.is_broadcast) writer.write_str_value("joinUrl", self.join_url) writer.write_object_value("meetingAttendanceReport", self.meeting_attendance_report) + writer.write_str_value("meetingTemplateId", self.meeting_template_id) writer.write_object_value("participants", self.participants) writer.write_bytes_value("recording", self.recording) writer.write_collection_of_object_values("recordings", self.recordings) diff --git a/msgraph_beta/generated/models/partners/billing/billed_reconciliation.py b/msgraph_beta/generated/models/partners/billing/billed_reconciliation.py new file mode 100644 index 00000000000..7b16f8ea586 --- /dev/null +++ b/msgraph_beta/generated/models/partners/billing/billed_reconciliation.py @@ -0,0 +1,52 @@ +from __future__ import annotations +from dataclasses import dataclass, field +from kiota_abstractions.serialization import Parsable, ParseNode, SerializationWriter +from typing import Any, Callable, Dict, List, Optional, TYPE_CHECKING, Union + +if TYPE_CHECKING: + from ...entity import Entity + +from ...entity import Entity + +@dataclass +class BilledReconciliation(Entity): + # The OdataType property + odata_type: Optional[str] = None + + @staticmethod + def create_from_discriminator_value(parse_node: Optional[ParseNode] = None) -> BilledReconciliation: + """ + Creates a new instance of the appropriate class based on discriminator value + param parse_node: The parse node to use to read the discriminator value and create the object + Returns: BilledReconciliation + """ + if not parse_node: + raise TypeError("parse_node cannot be null.") + return BilledReconciliation() + + def get_field_deserializers(self,) -> Dict[str, Callable[[ParseNode], None]]: + """ + The deserialization information for the current model + Returns: Dict[str, Callable[[ParseNode], None]] + """ + from ...entity import Entity + + from ...entity import Entity + + fields: Dict[str, Callable[[Any], None]] = { + } + super_fields = super().get_field_deserializers() + fields.update(super_fields) + return fields + + def serialize(self,writer: SerializationWriter) -> None: + """ + Serializes information the current object + param writer: Serialization writer to use to serialize this model + Returns: None + """ + if not writer: + raise TypeError("writer cannot be null.") + super().serialize(writer) + + diff --git a/msgraph_beta/generated/models/partners/billing/billing.py b/msgraph_beta/generated/models/partners/billing/billing.py index dc57b00eb9a..311f7c9815f 100644 --- a/msgraph_beta/generated/models/partners/billing/billing.py +++ b/msgraph_beta/generated/models/partners/billing/billing.py @@ -6,6 +6,7 @@ if TYPE_CHECKING: from ...entity import Entity from .azure_usage import AzureUsage + from .billing_reconciliation import BillingReconciliation from .manifest import Manifest from .operation import Operation @@ -19,6 +20,8 @@ class Billing(Entity): odata_type: Optional[str] = None # Represents an operation to export the billing data of a partner. operations: Optional[List[Operation]] = None + # The reconciliation property + reconciliation: Optional[BillingReconciliation] = None # The usage property usage: Optional[AzureUsage] = None @@ -40,17 +43,20 @@ def get_field_deserializers(self,) -> Dict[str, Callable[[ParseNode], None]]: """ from ...entity import Entity from .azure_usage import AzureUsage + from .billing_reconciliation import BillingReconciliation from .manifest import Manifest from .operation import Operation from ...entity import Entity from .azure_usage import AzureUsage + from .billing_reconciliation import BillingReconciliation from .manifest import Manifest from .operation import Operation fields: Dict[str, Callable[[Any], None]] = { "manifests": lambda n : setattr(self, 'manifests', n.get_collection_of_object_values(Manifest)), "operations": lambda n : setattr(self, 'operations', n.get_collection_of_object_values(Operation)), + "reconciliation": lambda n : setattr(self, 'reconciliation', n.get_object_value(BillingReconciliation)), "usage": lambda n : setattr(self, 'usage', n.get_object_value(AzureUsage)), } super_fields = super().get_field_deserializers() @@ -68,6 +74,7 @@ def serialize(self,writer: SerializationWriter) -> None: super().serialize(writer) writer.write_collection_of_object_values("manifests", self.manifests) writer.write_collection_of_object_values("operations", self.operations) + writer.write_object_value("reconciliation", self.reconciliation) writer.write_object_value("usage", self.usage) diff --git a/msgraph_beta/generated/models/partners/billing/billing_reconciliation.py b/msgraph_beta/generated/models/partners/billing/billing_reconciliation.py new file mode 100644 index 00000000000..589420c9040 --- /dev/null +++ b/msgraph_beta/generated/models/partners/billing/billing_reconciliation.py @@ -0,0 +1,59 @@ +from __future__ import annotations +from dataclasses import dataclass, field +from kiota_abstractions.serialization import Parsable, ParseNode, SerializationWriter +from typing import Any, Callable, Dict, List, Optional, TYPE_CHECKING, Union + +if TYPE_CHECKING: + from ...entity import Entity + from .billed_reconciliation import BilledReconciliation + +from ...entity import Entity + +@dataclass +class BillingReconciliation(Entity): + # The billed property + billed: Optional[BilledReconciliation] = None + # The OdataType property + odata_type: Optional[str] = None + + @staticmethod + def create_from_discriminator_value(parse_node: Optional[ParseNode] = None) -> BillingReconciliation: + """ + Creates a new instance of the appropriate class based on discriminator value + param parse_node: The parse node to use to read the discriminator value and create the object + Returns: BillingReconciliation + """ + if not parse_node: + raise TypeError("parse_node cannot be null.") + return BillingReconciliation() + + def get_field_deserializers(self,) -> Dict[str, Callable[[ParseNode], None]]: + """ + The deserialization information for the current model + Returns: Dict[str, Callable[[ParseNode], None]] + """ + from ...entity import Entity + from .billed_reconciliation import BilledReconciliation + + from ...entity import Entity + from .billed_reconciliation import BilledReconciliation + + fields: Dict[str, Callable[[Any], None]] = { + "billed": lambda n : setattr(self, 'billed', n.get_object_value(BilledReconciliation)), + } + super_fields = super().get_field_deserializers() + fields.update(super_fields) + return fields + + def serialize(self,writer: SerializationWriter) -> None: + """ + Serializes information the current object + param writer: Serialization writer to use to serialize this model + Returns: None + """ + if not writer: + raise TypeError("writer cannot be null.") + super().serialize(writer) + writer.write_object_value("billed", self.billed) + + diff --git a/msgraph_beta/generated/models/pending_external_user_profile.py b/msgraph_beta/generated/models/pending_external_user_profile.py new file mode 100644 index 00000000000..8898ce4c76b --- /dev/null +++ b/msgraph_beta/generated/models/pending_external_user_profile.py @@ -0,0 +1,52 @@ +from __future__ import annotations +from dataclasses import dataclass, field +from kiota_abstractions.serialization import Parsable, ParseNode, SerializationWriter +from typing import Any, Callable, Dict, List, Optional, TYPE_CHECKING, Union + +if TYPE_CHECKING: + from .external_profile import ExternalProfile + +from .external_profile import ExternalProfile + +@dataclass +class PendingExternalUserProfile(ExternalProfile): + # The OdataType property + odata_type: Optional[str] = "#microsoft.graph.pendingExternalUserProfile" + + @staticmethod + def create_from_discriminator_value(parse_node: Optional[ParseNode] = None) -> PendingExternalUserProfile: + """ + Creates a new instance of the appropriate class based on discriminator value + param parse_node: The parse node to use to read the discriminator value and create the object + Returns: PendingExternalUserProfile + """ + if not parse_node: + raise TypeError("parse_node cannot be null.") + return PendingExternalUserProfile() + + def get_field_deserializers(self,) -> Dict[str, Callable[[ParseNode], None]]: + """ + The deserialization information for the current model + Returns: Dict[str, Callable[[ParseNode], None]] + """ + from .external_profile import ExternalProfile + + from .external_profile import ExternalProfile + + fields: Dict[str, Callable[[Any], None]] = { + } + super_fields = super().get_field_deserializers() + fields.update(super_fields) + return fields + + def serialize(self,writer: SerializationWriter) -> None: + """ + Serializes information the current object + param writer: Serialization writer to use to serialize this model + Returns: None + """ + if not writer: + raise TypeError("writer cannot be null.") + super().serialize(writer) + + diff --git a/msgraph_beta/generated/models/pending_external_user_profile_collection_response.py b/msgraph_beta/generated/models/pending_external_user_profile_collection_response.py new file mode 100644 index 00000000000..a8cad08df2b --- /dev/null +++ b/msgraph_beta/generated/models/pending_external_user_profile_collection_response.py @@ -0,0 +1,57 @@ +from __future__ import annotations +from dataclasses import dataclass, field +from kiota_abstractions.serialization import Parsable, ParseNode, SerializationWriter +from typing import Any, Callable, Dict, List, Optional, TYPE_CHECKING, Union + +if TYPE_CHECKING: + from .base_collection_pagination_count_response import BaseCollectionPaginationCountResponse + from .pending_external_user_profile import PendingExternalUserProfile + +from .base_collection_pagination_count_response import BaseCollectionPaginationCountResponse + +@dataclass +class PendingExternalUserProfileCollectionResponse(BaseCollectionPaginationCountResponse): + # The value property + value: Optional[List[PendingExternalUserProfile]] = None + + @staticmethod + def create_from_discriminator_value(parse_node: Optional[ParseNode] = None) -> PendingExternalUserProfileCollectionResponse: + """ + Creates a new instance of the appropriate class based on discriminator value + param parse_node: The parse node to use to read the discriminator value and create the object + Returns: PendingExternalUserProfileCollectionResponse + """ + if not parse_node: + raise TypeError("parse_node cannot be null.") + return PendingExternalUserProfileCollectionResponse() + + def get_field_deserializers(self,) -> Dict[str, Callable[[ParseNode], None]]: + """ + The deserialization information for the current model + Returns: Dict[str, Callable[[ParseNode], None]] + """ + from .base_collection_pagination_count_response import BaseCollectionPaginationCountResponse + from .pending_external_user_profile import PendingExternalUserProfile + + from .base_collection_pagination_count_response import BaseCollectionPaginationCountResponse + from .pending_external_user_profile import PendingExternalUserProfile + + fields: Dict[str, Callable[[Any], None]] = { + "value": lambda n : setattr(self, 'value', n.get_collection_of_object_values(PendingExternalUserProfile)), + } + super_fields = super().get_field_deserializers() + fields.update(super_fields) + return fields + + def serialize(self,writer: SerializationWriter) -> None: + """ + Serializes information the current object + param writer: Serialization writer to use to serialize this model + Returns: None + """ + if not writer: + raise TypeError("writer cannot be null.") + super().serialize(writer) + writer.write_collection_of_object_values("value", self.value) + + diff --git a/msgraph_beta/generated/models/permission_grant_policy.py b/msgraph_beta/generated/models/permission_grant_policy.py index a7864d615f5..a72620f5cb0 100644 --- a/msgraph_beta/generated/models/permission_grant_policy.py +++ b/msgraph_beta/generated/models/permission_grant_policy.py @@ -6,6 +6,7 @@ if TYPE_CHECKING: from .permission_grant_condition_set import PermissionGrantConditionSet from .policy_base import PolicyBase + from .resource_scope_type import ResourceScopeType from .policy_base import PolicyBase @@ -17,6 +18,8 @@ class PermissionGrantPolicy(PolicyBase): excludes: Optional[List[PermissionGrantConditionSet]] = None # Condition sets that are included in this permission grant policy. Automatically expanded on GET. includes: Optional[List[PermissionGrantConditionSet]] = None + # The resource type the pre-approval policy applies to. Possible values: group for groups and teams, chat for chats, tenant for all supported resources in the tenant. Required. + resource_scope_type: Optional[ResourceScopeType] = None @staticmethod def create_from_discriminator_value(parse_node: Optional[ParseNode] = None) -> PermissionGrantPolicy: @@ -36,13 +39,16 @@ def get_field_deserializers(self,) -> Dict[str, Callable[[ParseNode], None]]: """ from .permission_grant_condition_set import PermissionGrantConditionSet from .policy_base import PolicyBase + from .resource_scope_type import ResourceScopeType from .permission_grant_condition_set import PermissionGrantConditionSet from .policy_base import PolicyBase + from .resource_scope_type import ResourceScopeType fields: Dict[str, Callable[[Any], None]] = { "excludes": lambda n : setattr(self, 'excludes', n.get_collection_of_object_values(PermissionGrantConditionSet)), "includes": lambda n : setattr(self, 'includes', n.get_collection_of_object_values(PermissionGrantConditionSet)), + "resourceScopeType": lambda n : setattr(self, 'resource_scope_type', n.get_enum_value(ResourceScopeType)), } super_fields = super().get_field_deserializers() fields.update(super_fields) @@ -59,5 +65,6 @@ def serialize(self,writer: SerializationWriter) -> None: super().serialize(writer) writer.write_collection_of_object_values("excludes", self.excludes) writer.write_collection_of_object_values("includes", self.includes) + writer.write_enum_value("resourceScopeType", self.resource_scope_type) diff --git a/msgraph_beta/generated/models/place.py b/msgraph_beta/generated/models/place.py index 7b7fa345f28..9ecb698d619 100644 --- a/msgraph_beta/generated/models/place.py +++ b/msgraph_beta/generated/models/place.py @@ -25,6 +25,8 @@ class Place(Entity): odata_type: Optional[str] = None # The phone number of the place. phone: Optional[str] = None + # An alternate immutable unique identifier of the place. + place_id: Optional[str] = None @staticmethod def create_from_discriminator_value(parse_node: Optional[ParseNode] = None) -> Place: @@ -77,6 +79,7 @@ def get_field_deserializers(self,) -> Dict[str, Callable[[ParseNode], None]]: "displayName": lambda n : setattr(self, 'display_name', n.get_str_value()), "geoCoordinates": lambda n : setattr(self, 'geo_coordinates', n.get_object_value(OutlookGeoCoordinates)), "phone": lambda n : setattr(self, 'phone', n.get_str_value()), + "placeId": lambda n : setattr(self, 'place_id', n.get_str_value()), } super_fields = super().get_field_deserializers() fields.update(super_fields) @@ -95,5 +98,6 @@ def serialize(self,writer: SerializationWriter) -> None: writer.write_str_value("displayName", self.display_name) writer.write_object_value("geoCoordinates", self.geo_coordinates) writer.write_str_value("phone", self.phone) + writer.write_str_value("placeId", self.place_id) diff --git a/msgraph_beta/generated/models/planner_task_completion_requirements.py b/msgraph_beta/generated/models/planner_task_completion_requirements.py index 410b32c9e7e..797b52c20f4 100644 --- a/msgraph_beta/generated/models/planner_task_completion_requirements.py +++ b/msgraph_beta/generated/models/planner_task_completion_requirements.py @@ -6,4 +6,5 @@ class PlannerTaskCompletionRequirements(str, Enum): UnknownFutureValue = "unknownFutureValue", FormCompletion = "formCompletion", ApprovalCompletion = "approvalCompletion", + CompletionInHostedApp = "completionInHostedApp", diff --git a/msgraph_beta/generated/models/recommendation_base.py b/msgraph_beta/generated/models/recommendation_base.py index faef3469d7d..301cb1e2c57 100644 --- a/msgraph_beta/generated/models/recommendation_base.py +++ b/msgraph_beta/generated/models/recommendation_base.py @@ -55,7 +55,7 @@ class RecommendationBase(Entity): postpone_until_date_time: Optional[datetime.datetime] = None # The priority property priority: Optional[RecommendationPriority] = None - # Friendly shortname to identify the recommendation. The possible values are: adfsAppsMigration, enableDesktopSSO, enablePHS, enableProvisioning, switchFromPerUserMFA, tenantMFA, thirdPartyApps, turnOffPerUserMFA, useAuthenticatorApp, useMyApps, staleApps, staleAppCreds, applicationCredentialExpiry, servicePrincipalKeyExpiry, adminMFAV2, blockLegacyAuthentication, integratedApps, mfaRegistrationV2, pwagePolicyNew, passwordHashSync, oneAdmin, roleOverlap, selfServicePasswordReset, signinRiskPolicy, userRiskPolicy, verifyAppPublisher, privateLinkForAAD, appRoleAssignmentsGroups, appRoleAssignmentsUsers, managedIdentity, overprivilegedApps, unknownFutureValue, longLivedCredentials, aadConnectDeprecated, adalToMsalMigration, ownerlessApps, inactiveGuests. Also, please note that you must use the Prefer: include-unknown-enum-members request header to get the following value(s) in this evolvable enum: longLivedCredentials, aadConnectDeprecated, adalToMsalMigration, ownerlessApps, inactiveGuests. + # Friendly shortname to identify the recommendation. The possible values are: adfsAppsMigration, enableDesktopSSO, enablePHS, enableProvisioning, switchFromPerUserMFA, tenantMFA, thirdPartyApps, turnOffPerUserMFA, useAuthenticatorApp, useMyApps, staleApps, staleAppCreds, applicationCredentialExpiry, servicePrincipalKeyExpiry, adminMFAV2, blockLegacyAuthentication, integratedApps, mfaRegistrationV2, pwagePolicyNew, passwordHashSync, oneAdmin, roleOverlap, selfServicePasswordReset, signinRiskPolicy, userRiskPolicy, verifyAppPublisher, privateLinkForAAD, appRoleAssignmentsGroups, appRoleAssignmentsUsers, managedIdentity, overprivilegedApps, unknownFutureValue, longLivedCredentials, aadConnectDeprecated, adalToMsalMigration, ownerlessApps, inactiveGuests, aadGraphDeprecationApplication, aadGraphDeprecationServicePrincipal, mfaServerDeprecation. Also, please note that you must use the Prefer: include-unknown-enum-members request header to get the following value(s) in this evolvable enum: longLivedCredentials, aadConnectDeprecated, adalToMsalMigration, ownerlessApps, inactiveGuests. recommendation_type: Optional[RecommendationType] = None # The current release type of the recommendation. The possible values are: preview, generallyAvailable, unknownFutureValue. release_type: Optional[str] = None diff --git a/msgraph_beta/generated/models/resource_scope_type.py b/msgraph_beta/generated/models/resource_scope_type.py new file mode 100644 index 00000000000..09d84511891 --- /dev/null +++ b/msgraph_beta/generated/models/resource_scope_type.py @@ -0,0 +1,9 @@ +from enum import Enum + +class ResourceScopeType(str, Enum): + Group = "group", + Chat = "chat", + Tenant = "tenant", + UnknownFutureValue = "unknownFutureValue", + Team = "team", + diff --git a/msgraph_beta/generated/models/schedule.py b/msgraph_beta/generated/models/schedule.py index 30316167e90..328e2af892a 100644 --- a/msgraph_beta/generated/models/schedule.py +++ b/msgraph_beta/generated/models/schedule.py @@ -31,6 +31,10 @@ class Schedule(Entity): day_notes: Optional[List[DayNote]] = None # Indicates whether the schedule is enabled for the team. Required. enabled: Optional[bool] = None + # Indicates whether approval is required by a manager of this schedule for cross location shift requests. + is_cross_location_shift_request_approval_required: Optional[bool] = None + # Indicates whether the cross-location marketplace feature is enabled for this schedule. + is_cross_location_shifts_enabled: Optional[bool] = None # The OdataType property odata_type: Optional[str] = None # The offer requests for shifts in the schedule. @@ -53,7 +57,7 @@ class Schedule(Entity): shifts: Optional[List[Shift]] = None # The shiftsRoleDefinitions property shifts_role_definitions: Optional[List[ShiftsRoleDefinition]] = None - # Indicates the start day of the week. + # Indicates the start day of the week. The possible values are: sunday, monday, tuesday, wednesday, thursday, friday, saturday. start_day_of_week: Optional[DayOfWeek] = None # The swap requests for shifts in the schedule. swap_shifts_change_requests: Optional[List[SwapShiftsChangeRequest]] = None @@ -75,7 +79,7 @@ class Schedule(Entity): time_zone: Optional[str] = None # The instances of times off in the schedule. times_off: Optional[List[TimeOff]] = None - # The Ids for the workforce integrations associated with this schedule. + # The IDs for the workforce integrations associated with this schedule. workforce_integration_ids: Optional[List[str]] = None @staticmethod @@ -132,6 +136,8 @@ def get_field_deserializers(self,) -> Dict[str, Callable[[ParseNode], None]]: "activitiesIncludedWhenCopyingShiftsEnabled": lambda n : setattr(self, 'activities_included_when_copying_shifts_enabled', n.get_bool_value()), "dayNotes": lambda n : setattr(self, 'day_notes', n.get_collection_of_object_values(DayNote)), "enabled": lambda n : setattr(self, 'enabled', n.get_bool_value()), + "isCrossLocationShiftRequestApprovalRequired": lambda n : setattr(self, 'is_cross_location_shift_request_approval_required', n.get_bool_value()), + "isCrossLocationShiftsEnabled": lambda n : setattr(self, 'is_cross_location_shifts_enabled', n.get_bool_value()), "offerShiftRequests": lambda n : setattr(self, 'offer_shift_requests', n.get_collection_of_object_values(OfferShiftRequest)), "offerShiftRequestsEnabled": lambda n : setattr(self, 'offer_shift_requests_enabled', n.get_bool_value()), "openShiftChangeRequests": lambda n : setattr(self, 'open_shift_change_requests', n.get_collection_of_object_values(OpenShiftChangeRequest)), @@ -171,6 +177,8 @@ def serialize(self,writer: SerializationWriter) -> None: writer.write_bool_value("activitiesIncludedWhenCopyingShiftsEnabled", self.activities_included_when_copying_shifts_enabled) writer.write_collection_of_object_values("dayNotes", self.day_notes) writer.write_bool_value("enabled", self.enabled) + writer.write_bool_value("isCrossLocationShiftRequestApprovalRequired", self.is_cross_location_shift_request_approval_required) + writer.write_bool_value("isCrossLocationShiftsEnabled", self.is_cross_location_shifts_enabled) writer.write_collection_of_object_values("offerShiftRequests", self.offer_shift_requests) writer.write_bool_value("offerShiftRequestsEnabled", self.offer_shift_requests_enabled) writer.write_collection_of_object_values("openShiftChangeRequests", self.open_shift_change_requests) diff --git a/msgraph_beta/generated/models/scheduling_group.py b/msgraph_beta/generated/models/scheduling_group.py index 5ad2639ca01..a0b5810c786 100644 --- a/msgraph_beta/generated/models/scheduling_group.py +++ b/msgraph_beta/generated/models/scheduling_group.py @@ -12,7 +12,7 @@ class SchedulingGroup(ChangeTrackedEntity): # The OdataType property odata_type: Optional[str] = "#microsoft.graph.schedulingGroup" - # The code for the schedulingGroup to represent an external identifier. + # The code for the schedulingGroup to represent an external identifier. This field must be unique within the team in Microsoft Teams and uses an alphanumeric format, with a maximum of 100 characters. code: Optional[str] = None # The display name for the schedulingGroup. Required. display_name: Optional[str] = None diff --git a/msgraph_beta/generated/models/security/alert.py b/msgraph_beta/generated/models/security/alert.py index 3d5f221c379..a5ddbf5b293 100644 --- a/msgraph_beta/generated/models/security/alert.py +++ b/msgraph_beta/generated/models/security/alert.py @@ -21,11 +21,11 @@ class Alert(Entity): # The adversary or activity group that is associated with this alert. actor_display_name: Optional[str] = None - # The additionalDataProperty property + # A collection of other alert properties, including user-defined properties. Any custom details defined in the alert, and any dynamic content in the alert details, are stored here. additional_data: Optional[Dictionary] = None - # The alertPolicyId property + # The ID of the policy that generated the alert, and populated when there is a specific policy that generated the alert, whether configured by a customer or a built-in policy. alert_policy_id: Optional[str] = None - # URL for the alert page in the Microsoft 365 Defender portal. + # URL for the Microsoft 365 Defender portal alert page. alert_web_url: Optional[str] = None # Owner of the alert, or null if no owner is assigned. assigned_to: Optional[str] = None @@ -39,11 +39,11 @@ class Alert(Entity): created_date_time: Optional[datetime.datetime] = None # String value describing each alert. description: Optional[str] = None - # Detection technology or sensor that identified the notable component or activity. Possible values are: unknown, microsoftDefenderForEndpoint, antivirus, smartScreen, customTi, microsoftDefenderForOffice365, automatedInvestigation, microsoftThreatExperts, customDetection, microsoftDefenderForIdentity, cloudAppSecurity, microsoft365Defender, azureAdIdentityProtection, manual, microsoftDataLossPrevention, appGovernancePolicy, appGovernanceDetection, unknownFutureValue, microsoftDefenderForCloud, microsoftDefenderForIoT, microsoftDefenderForServers, microsoftDefenderForStorage, microsoftDefenderForDNS, microsoftDefenderForDatabases, microsoftDefenderForContainers, microsoftDefenderForNetwork, microsoftDefenderForAppService, microsoftDefenderForKeyVault, microsoftDefenderForResourceManager, microsoftDefenderForApiManagement. You must use the Prefer: include-unknown-enum-members request header to get the following value(s) in this evolvable enum: microsoftDefenderForCloud, microsoftDefenderForIoT, microsoftDefenderForServers, microsoftDefenderForStorage, microsoftDefenderForDNS, microsoftDefenderForDatabases, microsoftDefenderForContainers, microsoftDefenderForNetwork, microsoftDefenderForAppService, microsoftDefenderForKeyVault, microsoftDefenderForResourceManager, microsoftDefenderForApiManagement. + # Detection technology or sensor that identified the notable component or activity. Possible values are: unknown, microsoftDefenderForEndpoint, antivirus, smartScreen, customTi, microsoftDefenderForOffice365, automatedInvestigation, microsoftThreatExperts, customDetection, microsoftDefenderForIdentity, cloudAppSecurity, microsoft365Defender, azureAdIdentityProtection, manual, microsoftDataLossPrevention, appGovernancePolicy, appGovernanceDetection, unknownFutureValue, microsoftDefenderForCloud, microsoftDefenderForIoT, microsoftDefenderForServers, microsoftDefenderForStorage, microsoftDefenderForDNS, microsoftDefenderForDatabases, microsoftDefenderForContainers, microsoftDefenderForNetwork, microsoftDefenderForAppService, microsoftDefenderForKeyVault, microsoftDefenderForResourceManager, microsoftDefenderForApiManagement, microsoftSentinel, nrtAlerts, scheduledAlerts, microsoftDefenderThreatIntelligenceAnalytics, builtInMl. You must use the Prefer: include-unknown-enum-members request header to get the following value(s) in this evolvable enum: microsoftDefenderForCloud, microsoftDefenderForIoT, microsoftDefenderForServers, microsoftDefenderForStorage, microsoftDefenderForDNS, microsoftDefenderForDatabases, microsoftDefenderForContainers, microsoftDefenderForNetwork, microsoftDefenderForAppService, microsoftDefenderForKeyVault, microsoftDefenderForResourceManager, microsoftDefenderForApiManagement, microsoftSentinel, nrtAlerts, scheduledAlerts, microsoftDefenderThreatIntelligenceAnalytics, builtInMl. detection_source: Optional[DetectionSource] = None # The ID of the detector that triggered the alert. detector_id: Optional[str] = None - # Specifies the result of the investigation, whether the alert represents a true attack and if so, the nature of the attack. Possible values are: unknown, apt, malware, securityPersonnel, securityTesting, unwantedSoftware, other, multiStagedAttack, compromisedUser, phishing, maliciousUserActivity, clean, insufficientData, confirmedUserActivity, lineOfBusinessApplication, unknownFutureValue. + # Specifies the result of the investigation, whether the alert represents a true attack, and if so, the nature of the attack. Possible values are: unknown, apt, malware, securityPersonnel, securityTesting, unwantedSoftware, other, multiStagedAttack, compromisedUser, phishing, maliciousUserActivity, clean, insufficientData, confirmedUserActivity, lineOfBusinessApplication, unknownFutureValue. determination: Optional[AlertDetermination] = None # Collection of evidence related to the alert. evidence: Optional[List[AlertEvidence]] = None @@ -61,7 +61,7 @@ class Alert(Entity): mitre_techniques: Optional[List[str]] = None # The OdataType property odata_type: Optional[str] = None - # The productName property + # The name of the product which published this alert. product_name: Optional[str] = None # The ID of the alert as it appears in the security provider product that generated the alert. provider_alert_id: Optional[str] = None @@ -75,7 +75,7 @@ class Alert(Entity): severity: Optional[AlertSeverity] = None # The status property status: Optional[AlertStatus] = None - # The system tags associated with the alert + # The system tags associated with the alert. system_tags: Optional[List[str]] = None # The Microsoft Entra tenant the alert was created in. tenant_id: Optional[str] = None diff --git a/msgraph_beta/generated/models/security/detection_rule_collection_response.py b/msgraph_beta/generated/models/security/detection_rule_collection_response.py new file mode 100644 index 00000000000..7c3f6851f0c --- /dev/null +++ b/msgraph_beta/generated/models/security/detection_rule_collection_response.py @@ -0,0 +1,57 @@ +from __future__ import annotations +from dataclasses import dataclass, field +from kiota_abstractions.serialization import Parsable, ParseNode, SerializationWriter +from typing import Any, Callable, Dict, List, Optional, TYPE_CHECKING, Union + +if TYPE_CHECKING: + from ..base_collection_pagination_count_response import BaseCollectionPaginationCountResponse + from .detection_rule import DetectionRule + +from ..base_collection_pagination_count_response import BaseCollectionPaginationCountResponse + +@dataclass +class DetectionRuleCollectionResponse(BaseCollectionPaginationCountResponse): + # The value property + value: Optional[List[DetectionRule]] = None + + @staticmethod + def create_from_discriminator_value(parse_node: Optional[ParseNode] = None) -> DetectionRuleCollectionResponse: + """ + Creates a new instance of the appropriate class based on discriminator value + param parse_node: The parse node to use to read the discriminator value and create the object + Returns: DetectionRuleCollectionResponse + """ + if not parse_node: + raise TypeError("parse_node cannot be null.") + return DetectionRuleCollectionResponse() + + def get_field_deserializers(self,) -> Dict[str, Callable[[ParseNode], None]]: + """ + The deserialization information for the current model + Returns: Dict[str, Callable[[ParseNode], None]] + """ + from ..base_collection_pagination_count_response import BaseCollectionPaginationCountResponse + from .detection_rule import DetectionRule + + from ..base_collection_pagination_count_response import BaseCollectionPaginationCountResponse + from .detection_rule import DetectionRule + + fields: Dict[str, Callable[[Any], None]] = { + "value": lambda n : setattr(self, 'value', n.get_collection_of_object_values(DetectionRule)), + } + super_fields = super().get_field_deserializers() + fields.update(super_fields) + return fields + + def serialize(self,writer: SerializationWriter) -> None: + """ + Serializes information the current object + param writer: Serialization writer to use to serialize this model + Returns: None + """ + if not writer: + raise TypeError("writer cannot be null.") + super().serialize(writer) + writer.write_collection_of_object_values("value", self.value) + + diff --git a/msgraph_beta/generated/models/security/incident.py b/msgraph_beta/generated/models/security/incident.py index 4b6ffb27b36..b5e1f2ae011 100644 --- a/msgraph_beta/generated/models/security/incident.py +++ b/msgraph_beta/generated/models/security/incident.py @@ -30,7 +30,7 @@ class Incident(Entity): created_date_time: Optional[datetime.datetime] = None # The collection of custom tags that are associated with an incident. custom_tags: Optional[List[str]] = None - # A rich text string describing the incident + # Description of the incident. description: Optional[str] = None # Specifies the determination of the incident. Possible values are: unknown, apt, malware, securityPersonnel, securityTesting, unwantedSoftware, other, multiStagedAttack, compromisedUser, phishing, maliciousUserActivity, clean, insufficientData, confirmedUserActivity, lineOfBusinessApplication, unknownFutureValue. determination: Optional[AlertDetermination] = None @@ -38,7 +38,7 @@ class Incident(Entity): display_name: Optional[str] = None # The URL for the incident page in the Microsoft 365 Defender portal. incident_web_url: Optional[str] = None - # The lastModifiedBy property + # The identity that last modified the incident. last_modified_by: Optional[str] = None # Time when the incident was last updated. last_update_date_time: Optional[datetime.datetime] = None diff --git a/msgraph_beta/generated/models/security/rules_root.py b/msgraph_beta/generated/models/security/rules_root.py new file mode 100644 index 00000000000..55a83f9aabe --- /dev/null +++ b/msgraph_beta/generated/models/security/rules_root.py @@ -0,0 +1,59 @@ +from __future__ import annotations +from dataclasses import dataclass, field +from kiota_abstractions.serialization import Parsable, ParseNode, SerializationWriter +from typing import Any, Callable, Dict, List, Optional, TYPE_CHECKING, Union + +if TYPE_CHECKING: + from ..entity import Entity + from .detection_rule import DetectionRule + +from ..entity import Entity + +@dataclass +class RulesRoot(Entity): + # The detectionRules property + detection_rules: Optional[List[DetectionRule]] = None + # The OdataType property + odata_type: Optional[str] = None + + @staticmethod + def create_from_discriminator_value(parse_node: Optional[ParseNode] = None) -> RulesRoot: + """ + Creates a new instance of the appropriate class based on discriminator value + param parse_node: The parse node to use to read the discriminator value and create the object + Returns: RulesRoot + """ + if not parse_node: + raise TypeError("parse_node cannot be null.") + return RulesRoot() + + def get_field_deserializers(self,) -> Dict[str, Callable[[ParseNode], None]]: + """ + The deserialization information for the current model + Returns: Dict[str, Callable[[ParseNode], None]] + """ + from ..entity import Entity + from .detection_rule import DetectionRule + + from ..entity import Entity + from .detection_rule import DetectionRule + + fields: Dict[str, Callable[[Any], None]] = { + "detectionRules": lambda n : setattr(self, 'detection_rules', n.get_collection_of_object_values(DetectionRule)), + } + super_fields = super().get_field_deserializers() + fields.update(super_fields) + return fields + + def serialize(self,writer: SerializationWriter) -> None: + """ + Serializes information the current object + param writer: Serialization writer to use to serialize this model + Returns: None + """ + if not writer: + raise TypeError("writer cannot be null.") + super().serialize(writer) + writer.write_collection_of_object_values("detectionRules", self.detection_rules) + + diff --git a/msgraph_beta/generated/models/teams_app_dashboard_card_bot_configuration.py b/msgraph_beta/generated/models/teams_app_dashboard_card_bot_configuration.py index d21afc541d7..b140ed07001 100644 --- a/msgraph_beta/generated/models/teams_app_dashboard_card_bot_configuration.py +++ b/msgraph_beta/generated/models/teams_app_dashboard_card_bot_configuration.py @@ -11,7 +11,7 @@ class TeamsAppDashboardCardBotConfiguration(AdditionalDataHolder, BackedModel, P # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. additional_data: Dict[str, Any] = field(default_factory=dict) - # The botId property + # The ID (usually a GUID) of the bot associated with the specific teamsAppDefinition. This is a unique app ID for the bot as registered with the Bot Framework. bot_id: Optional[str] = None # The OdataType property odata_type: Optional[str] = None diff --git a/msgraph_beta/generated/models/teams_app_dashboard_card_content_source.py b/msgraph_beta/generated/models/teams_app_dashboard_card_content_source.py index 3ba43e59cbf..7361d087008 100644 --- a/msgraph_beta/generated/models/teams_app_dashboard_card_content_source.py +++ b/msgraph_beta/generated/models/teams_app_dashboard_card_content_source.py @@ -15,11 +15,11 @@ class TeamsAppDashboardCardContentSource(AdditionalDataHolder, BackedModel, Pars # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. additional_data: Dict[str, Any] = field(default_factory=dict) - # The botConfiguration property + # The configuration for the bot source. Required if sourceType is set to bot. bot_configuration: Optional[TeamsAppDashboardCardBotConfiguration] = None # The OdataType property odata_type: Optional[str] = None - # The sourceType property + # Represents the type of source that powers the content of the dashboard card. The possible values are: bot, unknownFutureValue. source_type: Optional[TeamsAppDashboardCardSourceType] = None @staticmethod diff --git a/msgraph_beta/generated/models/teams_app_dashboard_card_definition.py b/msgraph_beta/generated/models/teams_app_dashboard_card_definition.py index 26ee5e15a43..35bca02304e 100644 --- a/msgraph_beta/generated/models/teams_app_dashboard_card_definition.py +++ b/msgraph_beta/generated/models/teams_app_dashboard_card_definition.py @@ -13,19 +13,19 @@ @dataclass class TeamsAppDashboardCardDefinition(Entity): - # The contentSource property + # The configuration for the source of the card content. Required. content_source: Optional[TeamsAppDashboardCardContentSource] = None - # The defaultSize property + # The size of the card. The possible values are: medium, large, unknownFutureValue. Required. default_size: Optional[TeamsAppDashboardCardSize] = None - # The description property + # The description for the card. Required. description: Optional[str] = None - # The displayName property + # The name of the card. Required. display_name: Optional[str] = None - # The icon property + # Configuration for the display of the icon in the card picker. If neither this nor any of its properties (iconUrl and officeUIFabricIconName) are specified, the color icon of the app is used. Optional. icon: Optional[TeamsAppDashboardCardIcon] = None # The OdataType property odata_type: Optional[str] = None - # The pickerGroupId property + # ID for the group in the card picker. Required. picker_group_id: Optional[str] = None @staticmethod diff --git a/msgraph_beta/generated/models/teams_app_dashboard_card_icon.py b/msgraph_beta/generated/models/teams_app_dashboard_card_icon.py index f6e3c69ae68..0b9ea01a321 100644 --- a/msgraph_beta/generated/models/teams_app_dashboard_card_icon.py +++ b/msgraph_beta/generated/models/teams_app_dashboard_card_icon.py @@ -11,11 +11,11 @@ class TeamsAppDashboardCardIcon(AdditionalDataHolder, BackedModel, Parsable): # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. additional_data: Dict[str, Any] = field(default_factory=dict) - # The iconUrl property + # The icon for the card, displayed in the toolbox and card bar, is represented as a URL. The preferred size for raster images is 28x28 pixels. If this property has a value, the officeFabricIconFontName property is ignored. icon_url: Optional[str] = None # The OdataType property odata_type: Optional[str] = None - # The officeUIFabricIconName property + # The friendly name of the Office UI Fabric/Fluent UI icon for the card that is used when the iconUrl property isn't specified. For example, 'officeUIFabricIconName': 'Search'. office_u_i_fabric_icon_name: Optional[str] = None @staticmethod diff --git a/msgraph_beta/generated/models/teams_app_definition.py b/msgraph_beta/generated/models/teams_app_definition.py index e5c1e4bd6bb..43db941fe6f 100644 --- a/msgraph_beta/generated/models/teams_app_definition.py +++ b/msgraph_beta/generated/models/teams_app_definition.py @@ -18,7 +18,7 @@ @dataclass class TeamsAppDefinition(Entity): - # A collection of scopes where the Teams app can be installed. Possible values are:team—Indicates that the Teams app can be installed within a team and is authorized to access that team's data. groupChat—Indicates that the Teams app can be installed within a group chat and is authorized to access that group chat's data. personal—Indicates that the Teams app can be installed in the personal scope of a user and is authorized to access that user's data. + # A collection of scopes where the Teams app can be installed. Possible values are:team—Indicates that the Teams app can be installed within a team and is authorized to access that team's data. groupChat—Indicates that the Teams app can be installed within a group chat and is authorized to access that group chat's data. personal—Indicates that the Teams app can be installed in the personal scope of a user and is authorized to access that user's data. allowed_installation_scopes: Optional[TeamsAppInstallationScopes] = None # Authorization requirements specified in the Teams app manifest. authorization: Optional[TeamsAppAuthorization] = None @@ -30,7 +30,7 @@ class TeamsAppDefinition(Entity): color_icon: Optional[TeamsAppIcon] = None # The createdBy property created_by: Optional[IdentitySet] = None - # The dashboardCards property + # Dashboard cards specified in the Teams app manifest. dashboard_cards: Optional[List[TeamsAppDashboardCardDefinition]] = None # The description property description: Optional[str] = None @@ -42,7 +42,7 @@ class TeamsAppDefinition(Entity): odata_type: Optional[str] = None # The outline version of the Teams app's icon. outline_icon: Optional[TeamsAppIcon] = None - # The published status of a specific version of a Teams app. Possible values are:submitted—The specific version of the Teams app has been submitted and is under review. published—The request to publish the specific version of the Teams app has been approved by the admin and the app is published. rejected — The request to publish the specific version of the Teams app was rejected by the admin. + # The published status of a specific version of a Teams app. Possible values are:submitted—The specific version of the Teams app has been submitted and is under review. published - The request to publish the specific version of the Teams app has been approved by the admin and the app is published. rejected - The request to publish the specific version of the Teams app was rejected by the admin. publishing_state: Optional[TeamsAppPublishingState] = None # The shortdescription property shortdescription: Optional[str] = None diff --git a/msgraph_beta/generated/models/time_off_reason.py b/msgraph_beta/generated/models/time_off_reason.py index 71009049bfa..4fe1e2aa818 100644 --- a/msgraph_beta/generated/models/time_off_reason.py +++ b/msgraph_beta/generated/models/time_off_reason.py @@ -13,7 +13,7 @@ class TimeOffReason(ChangeTrackedEntity): # The OdataType property odata_type: Optional[str] = "#microsoft.graph.timeOffReason" - # The code of the timeOffReason to represent an external identifier. + # The code of the timeOffReason to represent an external identifier. This field must be unique within the team in Microsoft Teams and uses an alphanumeric format, with a maximum of 100 characters. code: Optional[str] = None # The name of the timeOffReason. Required. display_name: Optional[str] = None diff --git a/msgraph_beta/generated/models/user.py b/msgraph_beta/generated/models/user.py index 75f3458ad88..fc35ce2f5b7 100644 --- a/msgraph_beta/generated/models/user.py +++ b/msgraph_beta/generated/models/user.py @@ -17,6 +17,7 @@ from .calendar import Calendar from .calendar_group import CalendarGroup from .chat import Chat + from .cloud_clipboard_root import CloudClipboardRoot from .cloud_p_c import CloudPC from .cloud_realtime_communication_info import CloudRealtimeCommunicationInfo from .contact import Contact @@ -129,6 +130,8 @@ class User(DirectoryObject): chats: Optional[List[Chat]] = None # The city where the user is located. Maximum length is 128 characters. Supports $filter (eq, ne, not, ge, le, in, startsWith, and eq on null values). city: Optional[str] = None + # The cloudClipboard property + cloud_clipboard: Optional[CloudClipboardRoot] = None # The cloudPCs property cloud_p_cs: Optional[List[CloudPC]] = None # Microsoft realtime communication information related to the user. Supports $filter (eq, ne,not). @@ -418,6 +421,7 @@ def get_field_deserializers(self,) -> Dict[str, Callable[[ParseNode], None]]: from .calendar import Calendar from .calendar_group import CalendarGroup from .chat import Chat + from .cloud_clipboard_root import CloudClipboardRoot from .cloud_p_c import CloudPC from .cloud_realtime_communication_info import CloudRealtimeCommunicationInfo from .contact import Contact @@ -492,6 +496,7 @@ def get_field_deserializers(self,) -> Dict[str, Callable[[ParseNode], None]]: from .calendar import Calendar from .calendar_group import CalendarGroup from .chat import Chat + from .cloud_clipboard_root import CloudClipboardRoot from .cloud_p_c import CloudPC from .cloud_realtime_communication_info import CloudRealtimeCommunicationInfo from .contact import Contact @@ -577,6 +582,7 @@ def get_field_deserializers(self,) -> Dict[str, Callable[[ParseNode], None]]: "calendars": lambda n : setattr(self, 'calendars', n.get_collection_of_object_values(Calendar)), "chats": lambda n : setattr(self, 'chats', n.get_collection_of_object_values(Chat)), "city": lambda n : setattr(self, 'city', n.get_str_value()), + "cloudClipboard": lambda n : setattr(self, 'cloud_clipboard', n.get_object_value(CloudClipboardRoot)), "cloudPCs": lambda n : setattr(self, 'cloud_p_cs', n.get_collection_of_object_values(CloudPC)), "cloudRealtimeCommunicationInfo": lambda n : setattr(self, 'cloud_realtime_communication_info', n.get_object_value(CloudRealtimeCommunicationInfo)), "companyName": lambda n : setattr(self, 'company_name', n.get_str_value()), @@ -743,6 +749,7 @@ def serialize(self,writer: SerializationWriter) -> None: writer.write_collection_of_object_values("calendars", self.calendars) writer.write_collection_of_object_values("chats", self.chats) writer.write_str_value("city", self.city) + writer.write_object_value("cloudClipboard", self.cloud_clipboard) writer.write_collection_of_object_values("cloudPCs", self.cloud_p_cs) writer.write_object_value("cloudRealtimeCommunicationInfo", self.cloud_realtime_communication_info) writer.write_str_value("companyName", self.company_name) diff --git a/msgraph_beta/generated/models/user_settings.py b/msgraph_beta/generated/models/user_settings.py index 425eb7a93bb..377df245335 100644 --- a/msgraph_beta/generated/models/user_settings.py +++ b/msgraph_beta/generated/models/user_settings.py @@ -9,6 +9,7 @@ from .regional_and_language_settings import RegionalAndLanguageSettings from .shift_preferences import ShiftPreferences from .user_insights_settings import UserInsightsSettings + from .windows_setting import WindowsSetting from .entity import Entity @@ -28,6 +29,8 @@ class UserSettings(Entity): regional_and_language_settings: Optional[RegionalAndLanguageSettings] = None # The shift preferences for the user. shift_preferences: Optional[ShiftPreferences] = None + # The windows property + windows: Optional[List[WindowsSetting]] = None @staticmethod def create_from_discriminator_value(parse_node: Optional[ParseNode] = None) -> UserSettings: @@ -50,12 +53,14 @@ def get_field_deserializers(self,) -> Dict[str, Callable[[ParseNode], None]]: from .regional_and_language_settings import RegionalAndLanguageSettings from .shift_preferences import ShiftPreferences from .user_insights_settings import UserInsightsSettings + from .windows_setting import WindowsSetting from .contact_merge_suggestions import ContactMergeSuggestions from .entity import Entity from .regional_and_language_settings import RegionalAndLanguageSettings from .shift_preferences import ShiftPreferences from .user_insights_settings import UserInsightsSettings + from .windows_setting import WindowsSetting fields: Dict[str, Callable[[Any], None]] = { "contactMergeSuggestions": lambda n : setattr(self, 'contact_merge_suggestions', n.get_object_value(ContactMergeSuggestions)), @@ -64,6 +69,7 @@ def get_field_deserializers(self,) -> Dict[str, Callable[[ParseNode], None]]: "itemInsights": lambda n : setattr(self, 'item_insights', n.get_object_value(UserInsightsSettings)), "regionalAndLanguageSettings": lambda n : setattr(self, 'regional_and_language_settings', n.get_object_value(RegionalAndLanguageSettings)), "shiftPreferences": lambda n : setattr(self, 'shift_preferences', n.get_object_value(ShiftPreferences)), + "windows": lambda n : setattr(self, 'windows', n.get_collection_of_object_values(WindowsSetting)), } super_fields = super().get_field_deserializers() fields.update(super_fields) @@ -84,5 +90,6 @@ def serialize(self,writer: SerializationWriter) -> None: writer.write_object_value("itemInsights", self.item_insights) writer.write_object_value("regionalAndLanguageSettings", self.regional_and_language_settings) writer.write_object_value("shiftPreferences", self.shift_preferences) + writer.write_collection_of_object_values("windows", self.windows) diff --git a/msgraph_beta/generated/models/user_teamwork.py b/msgraph_beta/generated/models/user_teamwork.py index 1e2dca4674a..c6ae9296410 100644 --- a/msgraph_beta/generated/models/user_teamwork.py +++ b/msgraph_beta/generated/models/user_teamwork.py @@ -16,11 +16,11 @@ class UserTeamwork(Entity): associated_teams: Optional[List[AssociatedTeamInfo]] = None # The apps installed in the personal scope of this user. installed_apps: Optional[List[UserScopeTeamsAppInstallation]] = None - # Represents the chosen locale of a user in Microsoft Teams. + # The chosen locale of a user in Microsoft Teams. locale: Optional[str] = None # The OdataType property odata_type: Optional[str] = None - # Represents the region of the user in Microsoft Teams. + # The region of the user in Microsoft Teams. region: Optional[str] = None @staticmethod diff --git a/msgraph_beta/generated/models/virtual_event_presenter.py b/msgraph_beta/generated/models/virtual_event_presenter.py index b71e3e75c40..5a70f5bcc53 100644 --- a/msgraph_beta/generated/models/virtual_event_presenter.py +++ b/msgraph_beta/generated/models/virtual_event_presenter.py @@ -4,8 +4,8 @@ from typing import Any, Callable, Dict, List, Optional, TYPE_CHECKING, Union if TYPE_CHECKING: - from .communications_user_identity import CommunicationsUserIdentity from .entity import Entity + from .identity import Identity from .virtual_event_presenter_details import VirtualEventPresenterDetails from .virtual_event_session import VirtualEventSession @@ -15,14 +15,12 @@ class VirtualEventPresenter(Entity): # Email address of the presenter. email: Optional[str] = None - # Identity information of the presenter. - identity: Optional[CommunicationsUserIdentity] = None + # Identity information of the presenter. The supported identites are: communicationsGuestIdentity and communicationsUserIdentity. + identity: Optional[Identity] = None # The OdataType property odata_type: Optional[str] = None # Other detail information of the presenter. presenter_details: Optional[VirtualEventPresenterDetails] = None - # The profilePhoto property - profile_photo: Optional[bytes] = None # The sessions property sessions: Optional[List[VirtualEventSession]] = None @@ -42,21 +40,20 @@ def get_field_deserializers(self,) -> Dict[str, Callable[[ParseNode], None]]: The deserialization information for the current model Returns: Dict[str, Callable[[ParseNode], None]] """ - from .communications_user_identity import CommunicationsUserIdentity from .entity import Entity + from .identity import Identity from .virtual_event_presenter_details import VirtualEventPresenterDetails from .virtual_event_session import VirtualEventSession - from .communications_user_identity import CommunicationsUserIdentity from .entity import Entity + from .identity import Identity from .virtual_event_presenter_details import VirtualEventPresenterDetails from .virtual_event_session import VirtualEventSession fields: Dict[str, Callable[[Any], None]] = { "email": lambda n : setattr(self, 'email', n.get_str_value()), - "identity": lambda n : setattr(self, 'identity', n.get_object_value(CommunicationsUserIdentity)), + "identity": lambda n : setattr(self, 'identity', n.get_object_value(Identity)), "presenterDetails": lambda n : setattr(self, 'presenter_details', n.get_object_value(VirtualEventPresenterDetails)), - "profilePhoto": lambda n : setattr(self, 'profile_photo', n.get_bytes_value()), "sessions": lambda n : setattr(self, 'sessions', n.get_collection_of_object_values(VirtualEventSession)), } super_fields = super().get_field_deserializers() @@ -75,7 +72,6 @@ def serialize(self,writer: SerializationWriter) -> None: writer.write_str_value("email", self.email) writer.write_object_value("identity", self.identity) writer.write_object_value("presenterDetails", self.presenter_details) - writer.write_bytes_value("profilePhoto", self.profile_photo) writer.write_collection_of_object_values("sessions", self.sessions) diff --git a/msgraph_beta/generated/models/virtual_event_presenter_details.py b/msgraph_beta/generated/models/virtual_event_presenter_details.py index 4cb24c99985..263ee8d140c 100644 --- a/msgraph_beta/generated/models/virtual_event_presenter_details.py +++ b/msgraph_beta/generated/models/virtual_event_presenter_details.py @@ -26,6 +26,8 @@ class VirtualEventPresenterDetails(AdditionalDataHolder, BackedModel, Parsable): odata_type: Optional[str] = None # The presenter's personal website URL. personal_site_web_url: Optional[str] = None + # The content stream of the presenter's photo. + photo: Optional[bytes] = None # The presenter's Twitter profile URL. twitter_profile_web_url: Optional[str] = None @@ -56,6 +58,7 @@ def get_field_deserializers(self,) -> Dict[str, Callable[[ParseNode], None]]: "linkedInProfileWebUrl": lambda n : setattr(self, 'linked_in_profile_web_url', n.get_str_value()), "@odata.type": lambda n : setattr(self, 'odata_type', n.get_str_value()), "personalSiteWebUrl": lambda n : setattr(self, 'personal_site_web_url', n.get_str_value()), + "photo": lambda n : setattr(self, 'photo', n.get_bytes_value()), "twitterProfileWebUrl": lambda n : setattr(self, 'twitter_profile_web_url', n.get_str_value()), } return fields @@ -74,6 +77,7 @@ def serialize(self,writer: SerializationWriter) -> None: writer.write_str_value("linkedInProfileWebUrl", self.linked_in_profile_web_url) writer.write_str_value("@odata.type", self.odata_type) writer.write_str_value("personalSiteWebUrl", self.personal_site_web_url) + writer.write_bytes_value("photo", self.photo) writer.write_str_value("twitterProfileWebUrl", self.twitter_profile_web_url) writer.write_additional_data_value(self.additional_data) diff --git a/msgraph_beta/generated/models/virtual_event_townhall.py b/msgraph_beta/generated/models/virtual_event_townhall.py index 27e158784a1..e7fb39092b3 100644 --- a/msgraph_beta/generated/models/virtual_event_townhall.py +++ b/msgraph_beta/generated/models/virtual_event_townhall.py @@ -5,6 +5,7 @@ if TYPE_CHECKING: from .communications_user_identity import CommunicationsUserIdentity + from .identity import Identity from .meeting_audience import MeetingAudience from .virtual_event import VirtualEvent @@ -19,7 +20,7 @@ class VirtualEventTownhall(VirtualEvent): # The coOrganizers property co_organizers: Optional[List[CommunicationsUserIdentity]] = None # The invitedAttendees property - invited_attendees: Optional[List[CommunicationsUserIdentity]] = None + invited_attendees: Optional[List[Identity]] = None # The isInviteOnly property is_invite_only: Optional[bool] = None @@ -40,17 +41,19 @@ def get_field_deserializers(self,) -> Dict[str, Callable[[ParseNode], None]]: Returns: Dict[str, Callable[[ParseNode], None]] """ from .communications_user_identity import CommunicationsUserIdentity + from .identity import Identity from .meeting_audience import MeetingAudience from .virtual_event import VirtualEvent from .communications_user_identity import CommunicationsUserIdentity + from .identity import Identity from .meeting_audience import MeetingAudience from .virtual_event import VirtualEvent fields: Dict[str, Callable[[Any], None]] = { "audience": lambda n : setattr(self, 'audience', n.get_enum_value(MeetingAudience)), "coOrganizers": lambda n : setattr(self, 'co_organizers', n.get_collection_of_object_values(CommunicationsUserIdentity)), - "invitedAttendees": lambda n : setattr(self, 'invited_attendees', n.get_collection_of_object_values(CommunicationsUserIdentity)), + "invitedAttendees": lambda n : setattr(self, 'invited_attendees', n.get_collection_of_object_values(Identity)), "isInviteOnly": lambda n : setattr(self, 'is_invite_only', n.get_bool_value()), } super_fields = super().get_field_deserializers() diff --git a/msgraph_beta/generated/models/windows_setting.py b/msgraph_beta/generated/models/windows_setting.py new file mode 100644 index 00000000000..bc5541aec69 --- /dev/null +++ b/msgraph_beta/generated/models/windows_setting.py @@ -0,0 +1,74 @@ +from __future__ import annotations +from dataclasses import dataclass, field +from kiota_abstractions.serialization import Parsable, ParseNode, SerializationWriter +from typing import Any, Callable, Dict, List, Optional, TYPE_CHECKING, Union + +if TYPE_CHECKING: + from .entity import Entity + from .windows_setting_instance import WindowsSettingInstance + from .windows_setting_type import WindowsSettingType + +from .entity import Entity + +@dataclass +class WindowsSetting(Entity): + # The instances property + instances: Optional[List[WindowsSettingInstance]] = None + # The OdataType property + odata_type: Optional[str] = None + # The payloadType property + payload_type: Optional[str] = None + # The settingType property + setting_type: Optional[WindowsSettingType] = None + # The windowsDeviceId property + windows_device_id: Optional[str] = None + + @staticmethod + def create_from_discriminator_value(parse_node: Optional[ParseNode] = None) -> WindowsSetting: + """ + Creates a new instance of the appropriate class based on discriminator value + param parse_node: The parse node to use to read the discriminator value and create the object + Returns: WindowsSetting + """ + if not parse_node: + raise TypeError("parse_node cannot be null.") + return WindowsSetting() + + def get_field_deserializers(self,) -> Dict[str, Callable[[ParseNode], None]]: + """ + The deserialization information for the current model + Returns: Dict[str, Callable[[ParseNode], None]] + """ + from .entity import Entity + from .windows_setting_instance import WindowsSettingInstance + from .windows_setting_type import WindowsSettingType + + from .entity import Entity + from .windows_setting_instance import WindowsSettingInstance + from .windows_setting_type import WindowsSettingType + + fields: Dict[str, Callable[[Any], None]] = { + "instances": lambda n : setattr(self, 'instances', n.get_collection_of_object_values(WindowsSettingInstance)), + "payloadType": lambda n : setattr(self, 'payload_type', n.get_str_value()), + "settingType": lambda n : setattr(self, 'setting_type', n.get_enum_value(WindowsSettingType)), + "windowsDeviceId": lambda n : setattr(self, 'windows_device_id', n.get_str_value()), + } + super_fields = super().get_field_deserializers() + fields.update(super_fields) + return fields + + def serialize(self,writer: SerializationWriter) -> None: + """ + Serializes information the current object + param writer: Serialization writer to use to serialize this model + Returns: None + """ + if not writer: + raise TypeError("writer cannot be null.") + super().serialize(writer) + writer.write_collection_of_object_values("instances", self.instances) + writer.write_str_value("payloadType", self.payload_type) + writer.write_enum_value("settingType", self.setting_type) + writer.write_str_value("windowsDeviceId", self.windows_device_id) + + diff --git a/msgraph_beta/generated/models/windows_setting_collection_response.py b/msgraph_beta/generated/models/windows_setting_collection_response.py new file mode 100644 index 00000000000..bb358e27ee0 --- /dev/null +++ b/msgraph_beta/generated/models/windows_setting_collection_response.py @@ -0,0 +1,57 @@ +from __future__ import annotations +from dataclasses import dataclass, field +from kiota_abstractions.serialization import Parsable, ParseNode, SerializationWriter +from typing import Any, Callable, Dict, List, Optional, TYPE_CHECKING, Union + +if TYPE_CHECKING: + from .base_collection_pagination_count_response import BaseCollectionPaginationCountResponse + from .windows_setting import WindowsSetting + +from .base_collection_pagination_count_response import BaseCollectionPaginationCountResponse + +@dataclass +class WindowsSettingCollectionResponse(BaseCollectionPaginationCountResponse): + # The value property + value: Optional[List[WindowsSetting]] = None + + @staticmethod + def create_from_discriminator_value(parse_node: Optional[ParseNode] = None) -> WindowsSettingCollectionResponse: + """ + Creates a new instance of the appropriate class based on discriminator value + param parse_node: The parse node to use to read the discriminator value and create the object + Returns: WindowsSettingCollectionResponse + """ + if not parse_node: + raise TypeError("parse_node cannot be null.") + return WindowsSettingCollectionResponse() + + def get_field_deserializers(self,) -> Dict[str, Callable[[ParseNode], None]]: + """ + The deserialization information for the current model + Returns: Dict[str, Callable[[ParseNode], None]] + """ + from .base_collection_pagination_count_response import BaseCollectionPaginationCountResponse + from .windows_setting import WindowsSetting + + from .base_collection_pagination_count_response import BaseCollectionPaginationCountResponse + from .windows_setting import WindowsSetting + + fields: Dict[str, Callable[[Any], None]] = { + "value": lambda n : setattr(self, 'value', n.get_collection_of_object_values(WindowsSetting)), + } + super_fields = super().get_field_deserializers() + fields.update(super_fields) + return fields + + def serialize(self,writer: SerializationWriter) -> None: + """ + Serializes information the current object + param writer: Serialization writer to use to serialize this model + Returns: None + """ + if not writer: + raise TypeError("writer cannot be null.") + super().serialize(writer) + writer.write_collection_of_object_values("value", self.value) + + diff --git a/msgraph_beta/generated/models/windows_setting_instance.py b/msgraph_beta/generated/models/windows_setting_instance.py new file mode 100644 index 00000000000..41a32321dae --- /dev/null +++ b/msgraph_beta/generated/models/windows_setting_instance.py @@ -0,0 +1,69 @@ +from __future__ import annotations +import datetime +from dataclasses import dataclass, field +from kiota_abstractions.serialization import Parsable, ParseNode, SerializationWriter +from typing import Any, Callable, Dict, List, Optional, TYPE_CHECKING, Union + +if TYPE_CHECKING: + from .entity import Entity + +from .entity import Entity + +@dataclass +class WindowsSettingInstance(Entity): + # The createdDateTime property + created_date_time: Optional[datetime.datetime] = None + # The expirationDateTime property + expiration_date_time: Optional[datetime.datetime] = None + # The lastModifiedDateTime property + last_modified_date_time: Optional[datetime.datetime] = None + # The OdataType property + odata_type: Optional[str] = None + # The payload property + payload: Optional[str] = None + + @staticmethod + def create_from_discriminator_value(parse_node: Optional[ParseNode] = None) -> WindowsSettingInstance: + """ + Creates a new instance of the appropriate class based on discriminator value + param parse_node: The parse node to use to read the discriminator value and create the object + Returns: WindowsSettingInstance + """ + if not parse_node: + raise TypeError("parse_node cannot be null.") + return WindowsSettingInstance() + + def get_field_deserializers(self,) -> Dict[str, Callable[[ParseNode], None]]: + """ + The deserialization information for the current model + Returns: Dict[str, Callable[[ParseNode], None]] + """ + from .entity import Entity + + from .entity import Entity + + fields: Dict[str, Callable[[Any], None]] = { + "createdDateTime": lambda n : setattr(self, 'created_date_time', n.get_datetime_value()), + "expirationDateTime": lambda n : setattr(self, 'expiration_date_time', n.get_datetime_value()), + "lastModifiedDateTime": lambda n : setattr(self, 'last_modified_date_time', n.get_datetime_value()), + "payload": lambda n : setattr(self, 'payload', n.get_str_value()), + } + super_fields = super().get_field_deserializers() + fields.update(super_fields) + return fields + + def serialize(self,writer: SerializationWriter) -> None: + """ + Serializes information the current object + param writer: Serialization writer to use to serialize this model + Returns: None + """ + if not writer: + raise TypeError("writer cannot be null.") + super().serialize(writer) + writer.write_datetime_value("createdDateTime", self.created_date_time) + writer.write_datetime_value("expirationDateTime", self.expiration_date_time) + writer.write_datetime_value("lastModifiedDateTime", self.last_modified_date_time) + writer.write_str_value("payload", self.payload) + + diff --git a/msgraph_beta/generated/models/windows_setting_instance_collection_response.py b/msgraph_beta/generated/models/windows_setting_instance_collection_response.py new file mode 100644 index 00000000000..6551370b671 --- /dev/null +++ b/msgraph_beta/generated/models/windows_setting_instance_collection_response.py @@ -0,0 +1,57 @@ +from __future__ import annotations +from dataclasses import dataclass, field +from kiota_abstractions.serialization import Parsable, ParseNode, SerializationWriter +from typing import Any, Callable, Dict, List, Optional, TYPE_CHECKING, Union + +if TYPE_CHECKING: + from .base_collection_pagination_count_response import BaseCollectionPaginationCountResponse + from .windows_setting_instance import WindowsSettingInstance + +from .base_collection_pagination_count_response import BaseCollectionPaginationCountResponse + +@dataclass +class WindowsSettingInstanceCollectionResponse(BaseCollectionPaginationCountResponse): + # The value property + value: Optional[List[WindowsSettingInstance]] = None + + @staticmethod + def create_from_discriminator_value(parse_node: Optional[ParseNode] = None) -> WindowsSettingInstanceCollectionResponse: + """ + Creates a new instance of the appropriate class based on discriminator value + param parse_node: The parse node to use to read the discriminator value and create the object + Returns: WindowsSettingInstanceCollectionResponse + """ + if not parse_node: + raise TypeError("parse_node cannot be null.") + return WindowsSettingInstanceCollectionResponse() + + def get_field_deserializers(self,) -> Dict[str, Callable[[ParseNode], None]]: + """ + The deserialization information for the current model + Returns: Dict[str, Callable[[ParseNode], None]] + """ + from .base_collection_pagination_count_response import BaseCollectionPaginationCountResponse + from .windows_setting_instance import WindowsSettingInstance + + from .base_collection_pagination_count_response import BaseCollectionPaginationCountResponse + from .windows_setting_instance import WindowsSettingInstance + + fields: Dict[str, Callable[[Any], None]] = { + "value": lambda n : setattr(self, 'value', n.get_collection_of_object_values(WindowsSettingInstance)), + } + super_fields = super().get_field_deserializers() + fields.update(super_fields) + return fields + + def serialize(self,writer: SerializationWriter) -> None: + """ + Serializes information the current object + param writer: Serialization writer to use to serialize this model + Returns: None + """ + if not writer: + raise TypeError("writer cannot be null.") + super().serialize(writer) + writer.write_collection_of_object_values("value", self.value) + + diff --git a/msgraph_beta/generated/models/windows_setting_type.py b/msgraph_beta/generated/models/windows_setting_type.py new file mode 100644 index 00000000000..b9ade36241d --- /dev/null +++ b/msgraph_beta/generated/models/windows_setting_type.py @@ -0,0 +1,7 @@ +from enum import Enum + +class WindowsSettingType(str, Enum): + Roaming = "roaming", + Backup = "backup", + UnknownFutureValue = "unknownFutureValue", + diff --git a/msgraph_beta/generated/models/windows_universal_app_x_app_assignment_settings.py b/msgraph_beta/generated/models/windows_universal_app_x_app_assignment_settings.py index e2634b2432c..399d8d85884 100644 --- a/msgraph_beta/generated/models/windows_universal_app_x_app_assignment_settings.py +++ b/msgraph_beta/generated/models/windows_universal_app_x_app_assignment_settings.py @@ -15,7 +15,7 @@ class WindowsUniversalAppXAppAssignmentSettings(MobileAppAssignmentSettings): """ # The OdataType property odata_type: Optional[str] = "#microsoft.graph.windowsUniversalAppXAppAssignmentSettings" - # Whether or not to use device execution context for Windows Universal AppX mobile app. + # If true, uses device execution context for Windows Universal AppX mobile app. Device-context install is not allowed when this type of app is targeted with Available intent. Defaults to false. use_device_context: Optional[bool] = None @staticmethod diff --git a/msgraph_beta/generated/models/windows_updates/applicable_content.py b/msgraph_beta/generated/models/windows_updates/applicable_content.py index 8ec60a7682f..7743ed6e7a9 100644 --- a/msgraph_beta/generated/models/windows_updates/applicable_content.py +++ b/msgraph_beta/generated/models/windows_updates/applicable_content.py @@ -17,7 +17,7 @@ class ApplicableContent(AdditionalDataHolder, BackedModel, Parsable): additional_data: Dict[str, Any] = field(default_factory=dict) # The catalogEntry property catalog_entry: Optional[CatalogEntry] = None - # Collection of devices and recommendations for applicable catalog content. + # The matchedDevices property matched_devices: Optional[List[ApplicableContentDeviceMatch]] = None # The OdataType property odata_type: Optional[str] = None diff --git a/msgraph_beta/generated/models/windows_updates/applicable_content_device_match.py b/msgraph_beta/generated/models/windows_updates/applicable_content_device_match.py index 705afebb855..55ea2445c56 100644 --- a/msgraph_beta/generated/models/windows_updates/applicable_content_device_match.py +++ b/msgraph_beta/generated/models/windows_updates/applicable_content_device_match.py @@ -11,7 +11,7 @@ class ApplicableContentDeviceMatch(AdditionalDataHolder, BackedModel, Parsable): # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. additional_data: Dict[str, Any] = field(default_factory=dict) - # The deviceId property + # Collection of vendors who recommend the content. device_id: Optional[str] = None # The OdataType property odata_type: Optional[str] = None diff --git a/msgraph_beta/generated/models/windows_updates/deployment_audience.py b/msgraph_beta/generated/models/windows_updates/deployment_audience.py index 5d146fc5f7e..d162c3ab937 100644 --- a/msgraph_beta/generated/models/windows_updates/deployment_audience.py +++ b/msgraph_beta/generated/models/windows_updates/deployment_audience.py @@ -12,7 +12,7 @@ @dataclass class DeploymentAudience(Entity): - # Content eligible to deploy to devices in the audience. Not nullable. Read-only. + # The applicableContent property applicable_content: Optional[List[ApplicableContent]] = None # Specifies the assets to exclude from the audience. exclusions: Optional[List[UpdatableAsset]] = None diff --git a/msgraph_beta/generated/network_access/alerts/alerts_request_builder.py b/msgraph_beta/generated/network_access/alerts/alerts_request_builder.py new file mode 100644 index 00000000000..80da1325f8c --- /dev/null +++ b/msgraph_beta/generated/network_access/alerts/alerts_request_builder.py @@ -0,0 +1,191 @@ +from __future__ import annotations +from dataclasses import dataclass, field +from kiota_abstractions.base_request_builder import BaseRequestBuilder +from kiota_abstractions.base_request_configuration import RequestConfiguration +from kiota_abstractions.get_path_parameters import get_path_parameters +from kiota_abstractions.method import Method +from kiota_abstractions.request_adapter import RequestAdapter +from kiota_abstractions.request_information import RequestInformation +from kiota_abstractions.request_option import RequestOption +from kiota_abstractions.serialization import Parsable, ParsableFactory +from typing import Any, Callable, Dict, List, Optional, TYPE_CHECKING, Union + +if TYPE_CHECKING: + from ...models.networkaccess.alert import Alert + from ...models.networkaccess.alert_collection_response import AlertCollectionResponse + from ...models.o_data_errors.o_data_error import ODataError + from .count.count_request_builder import CountRequestBuilder + from .item.alert_item_request_builder import AlertItemRequestBuilder + +class AlertsRequestBuilder(BaseRequestBuilder): + """ + Provides operations to manage the alerts property of the microsoft.graph.networkaccess.networkAccessRoot entity. + """ + def __init__(self,request_adapter: RequestAdapter, path_parameters: Union[str, Dict[str, Any]]) -> None: + """ + Instantiates a new AlertsRequestBuilder and sets the default values. + param path_parameters: The raw url or the url-template parameters for the request. + param request_adapter: The request adapter to use to execute the requests. + Returns: None + """ + super().__init__(request_adapter, "{+baseurl}/networkAccess/alerts{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", path_parameters) + + def by_alert_id(self,alert_id: str) -> AlertItemRequestBuilder: + """ + Provides operations to manage the alerts property of the microsoft.graph.networkaccess.networkAccessRoot entity. + param alert_id: The unique identifier of alert + Returns: AlertItemRequestBuilder + """ + if not alert_id: + raise TypeError("alert_id cannot be null.") + from .item.alert_item_request_builder import AlertItemRequestBuilder + + url_tpl_params = get_path_parameters(self.path_parameters) + url_tpl_params["alert%2Did"] = alert_id + return AlertItemRequestBuilder(self.request_adapter, url_tpl_params) + + async def get(self,request_configuration: Optional[RequestConfiguration] = None) -> Optional[AlertCollectionResponse]: + """ + Get alerts from networkAccess + param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. + Returns: Optional[AlertCollectionResponse] + """ + request_info = self.to_get_request_information( + request_configuration + ) + from ...models.o_data_errors.o_data_error import ODataError + + error_mapping: Dict[str, ParsableFactory] = { + "XXX": ODataError, + } + if not self.request_adapter: + raise Exception("Http core is null") + from ...models.networkaccess.alert_collection_response import AlertCollectionResponse + + return await self.request_adapter.send_async(request_info, AlertCollectionResponse, error_mapping) + + async def post(self,body: Optional[Alert] = None, request_configuration: Optional[RequestConfiguration] = None) -> Optional[Alert]: + """ + Create new navigation property to alerts for networkAccess + param body: The request body + param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. + Returns: Optional[Alert] + """ + if not body: + raise TypeError("body cannot be null.") + request_info = self.to_post_request_information( + body, request_configuration + ) + from ...models.o_data_errors.o_data_error import ODataError + + error_mapping: Dict[str, ParsableFactory] = { + "XXX": ODataError, + } + if not self.request_adapter: + raise Exception("Http core is null") + from ...models.networkaccess.alert import Alert + + return await self.request_adapter.send_async(request_info, Alert, error_mapping) + + def to_get_request_information(self,request_configuration: Optional[RequestConfiguration] = None) -> RequestInformation: + """ + Get alerts from networkAccess + param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. + Returns: RequestInformation + """ + request_info = RequestInformation(Method.GET, self.url_template, self.path_parameters) + request_info.configure(request_configuration) + request_info.headers.try_add("Accept", "application/json") + return request_info + + def to_post_request_information(self,body: Optional[Alert] = None, request_configuration: Optional[RequestConfiguration] = None) -> RequestInformation: + """ + Create new navigation property to alerts for networkAccess + param body: The request body + param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. + Returns: RequestInformation + """ + if not body: + raise TypeError("body cannot be null.") + request_info = RequestInformation(Method.POST, '{+baseurl}/networkAccess/alerts', self.path_parameters) + request_info.configure(request_configuration) + request_info.headers.try_add("Accept", "application/json") + request_info.set_content_from_parsable(self.request_adapter, "application/json", body) + return request_info + + def with_url(self,raw_url: Optional[str] = None) -> AlertsRequestBuilder: + """ + Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + param raw_url: The raw URL to use for the request builder. + Returns: AlertsRequestBuilder + """ + if not raw_url: + raise TypeError("raw_url cannot be null.") + return AlertsRequestBuilder(self.request_adapter, raw_url) + + @property + def count(self) -> CountRequestBuilder: + """ + Provides operations to count the resources in the collection. + """ + from .count.count_request_builder import CountRequestBuilder + + return CountRequestBuilder(self.request_adapter, self.path_parameters) + + @dataclass + class AlertsRequestBuilderGetQueryParameters(): + """ + Get alerts from networkAccess + """ + def get_query_parameter(self,original_name: Optional[str] = None) -> str: + """ + Maps the query parameters names to their encoded names for the URI template parsing. + param original_name: The original query parameter name in the class. + Returns: str + """ + if not original_name: + raise TypeError("original_name cannot be null.") + if original_name == "count": + return "%24count" + if original_name == "expand": + return "%24expand" + if original_name == "filter": + return "%24filter" + if original_name == "orderby": + return "%24orderby" + if original_name == "search": + return "%24search" + if original_name == "select": + return "%24select" + if original_name == "skip": + return "%24skip" + if original_name == "top": + return "%24top" + return original_name + + # Include count of items + count: Optional[bool] = None + + # Expand related entities + expand: Optional[List[str]] = None + + # Filter items by property values + filter: Optional[str] = None + + # Order items by property values + orderby: Optional[List[str]] = None + + # Search items by search phrases + search: Optional[str] = None + + # Select properties to be returned + select: Optional[List[str]] = None + + # Skip the first n items + skip: Optional[int] = None + + # Show only the first n items + top: Optional[int] = None + + + diff --git a/msgraph_beta/generated/network_access/alerts/count/count_request_builder.py b/msgraph_beta/generated/network_access/alerts/count/count_request_builder.py new file mode 100644 index 00000000000..f359cf6d5cb --- /dev/null +++ b/msgraph_beta/generated/network_access/alerts/count/count_request_builder.py @@ -0,0 +1,94 @@ +from __future__ import annotations +from dataclasses import dataclass, field +from kiota_abstractions.base_request_builder import BaseRequestBuilder +from kiota_abstractions.base_request_configuration import RequestConfiguration +from kiota_abstractions.get_path_parameters import get_path_parameters +from kiota_abstractions.method import Method +from kiota_abstractions.request_adapter import RequestAdapter +from kiota_abstractions.request_information import RequestInformation +from kiota_abstractions.request_option import RequestOption +from kiota_abstractions.serialization import Parsable, ParsableFactory +from typing import Any, Callable, Dict, List, Optional, TYPE_CHECKING, Union + +if TYPE_CHECKING: + from ....models.o_data_errors.o_data_error import ODataError + +class CountRequestBuilder(BaseRequestBuilder): + """ + Provides operations to count the resources in the collection. + """ + def __init__(self,request_adapter: RequestAdapter, path_parameters: Union[str, Dict[str, Any]]) -> None: + """ + Instantiates a new CountRequestBuilder and sets the default values. + param path_parameters: The raw url or the url-template parameters for the request. + param request_adapter: The request adapter to use to execute the requests. + Returns: None + """ + super().__init__(request_adapter, "{+baseurl}/networkAccess/alerts/$count{?%24filter,%24search}", path_parameters) + + async def get(self,request_configuration: Optional[RequestConfiguration] = None) -> Optional[int]: + """ + Get the number of the resource + param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. + Returns: Optional[int] + """ + request_info = self.to_get_request_information( + request_configuration + ) + from ....models.o_data_errors.o_data_error import ODataError + + error_mapping: Dict[str, ParsableFactory] = { + "XXX": ODataError, + } + if not self.request_adapter: + raise Exception("Http core is null") + return await self.request_adapter.send_primitive_async(request_info, "int", error_mapping) + + def to_get_request_information(self,request_configuration: Optional[RequestConfiguration] = None) -> RequestInformation: + """ + Get the number of the resource + param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. + Returns: RequestInformation + """ + request_info = RequestInformation(Method.GET, self.url_template, self.path_parameters) + request_info.configure(request_configuration) + request_info.headers.try_add("Accept", "text/plain;q=0.9") + return request_info + + def with_url(self,raw_url: Optional[str] = None) -> CountRequestBuilder: + """ + Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + param raw_url: The raw URL to use for the request builder. + Returns: CountRequestBuilder + """ + if not raw_url: + raise TypeError("raw_url cannot be null.") + return CountRequestBuilder(self.request_adapter, raw_url) + + @dataclass + class CountRequestBuilderGetQueryParameters(): + """ + Get the number of the resource + """ + def get_query_parameter(self,original_name: Optional[str] = None) -> str: + """ + Maps the query parameters names to their encoded names for the URI template parsing. + param original_name: The original query parameter name in the class. + Returns: str + """ + if not original_name: + raise TypeError("original_name cannot be null.") + if original_name == "filter": + return "%24filter" + if original_name == "search": + return "%24search" + return original_name + + # Filter items by property values + filter: Optional[str] = None + + # Search items by search phrases + search: Optional[str] = None + + + diff --git a/msgraph_beta/generated/network_access/alerts/item/alert_item_request_builder.py b/msgraph_beta/generated/network_access/alerts/item/alert_item_request_builder.py new file mode 100644 index 00000000000..aa37f54233c --- /dev/null +++ b/msgraph_beta/generated/network_access/alerts/item/alert_item_request_builder.py @@ -0,0 +1,164 @@ +from __future__ import annotations +from dataclasses import dataclass, field +from kiota_abstractions.base_request_builder import BaseRequestBuilder +from kiota_abstractions.base_request_configuration import RequestConfiguration +from kiota_abstractions.get_path_parameters import get_path_parameters +from kiota_abstractions.method import Method +from kiota_abstractions.request_adapter import RequestAdapter +from kiota_abstractions.request_information import RequestInformation +from kiota_abstractions.request_option import RequestOption +from kiota_abstractions.serialization import Parsable, ParsableFactory +from typing import Any, Callable, Dict, List, Optional, TYPE_CHECKING, Union + +if TYPE_CHECKING: + from ....models.networkaccess.alert import Alert + from ....models.o_data_errors.o_data_error import ODataError + +class AlertItemRequestBuilder(BaseRequestBuilder): + """ + Provides operations to manage the alerts property of the microsoft.graph.networkaccess.networkAccessRoot entity. + """ + def __init__(self,request_adapter: RequestAdapter, path_parameters: Union[str, Dict[str, Any]]) -> None: + """ + Instantiates a new AlertItemRequestBuilder and sets the default values. + param path_parameters: The raw url or the url-template parameters for the request. + param request_adapter: The request adapter to use to execute the requests. + Returns: None + """ + super().__init__(request_adapter, "{+baseurl}/networkAccess/alerts/{alert%2Did}{?%24expand,%24select}", path_parameters) + + async def delete(self,request_configuration: Optional[RequestConfiguration] = None) -> None: + """ + Delete navigation property alerts for networkAccess + param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. + Returns: None + """ + request_info = self.to_delete_request_information( + request_configuration + ) + from ....models.o_data_errors.o_data_error import ODataError + + error_mapping: Dict[str, ParsableFactory] = { + "XXX": ODataError, + } + if not self.request_adapter: + raise Exception("Http core is null") + return await self.request_adapter.send_no_response_content_async(request_info, error_mapping) + + async def get(self,request_configuration: Optional[RequestConfiguration] = None) -> Optional[Alert]: + """ + Get alerts from networkAccess + param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. + Returns: Optional[Alert] + """ + request_info = self.to_get_request_information( + request_configuration + ) + from ....models.o_data_errors.o_data_error import ODataError + + error_mapping: Dict[str, ParsableFactory] = { + "XXX": ODataError, + } + if not self.request_adapter: + raise Exception("Http core is null") + from ....models.networkaccess.alert import Alert + + return await self.request_adapter.send_async(request_info, Alert, error_mapping) + + async def patch(self,body: Optional[Alert] = None, request_configuration: Optional[RequestConfiguration] = None) -> Optional[Alert]: + """ + Update the navigation property alerts in networkAccess + param body: The request body + param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. + Returns: Optional[Alert] + """ + if not body: + raise TypeError("body cannot be null.") + request_info = self.to_patch_request_information( + body, request_configuration + ) + from ....models.o_data_errors.o_data_error import ODataError + + error_mapping: Dict[str, ParsableFactory] = { + "XXX": ODataError, + } + if not self.request_adapter: + raise Exception("Http core is null") + from ....models.networkaccess.alert import Alert + + return await self.request_adapter.send_async(request_info, Alert, error_mapping) + + def to_delete_request_information(self,request_configuration: Optional[RequestConfiguration] = None) -> RequestInformation: + """ + Delete navigation property alerts for networkAccess + param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. + Returns: RequestInformation + """ + request_info = RequestInformation(Method.DELETE, '{+baseurl}/networkAccess/alerts/{alert%2Did}', self.path_parameters) + request_info.configure(request_configuration) + request_info.headers.try_add("Accept", "application/json") + return request_info + + def to_get_request_information(self,request_configuration: Optional[RequestConfiguration] = None) -> RequestInformation: + """ + Get alerts from networkAccess + param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. + Returns: RequestInformation + """ + request_info = RequestInformation(Method.GET, self.url_template, self.path_parameters) + request_info.configure(request_configuration) + request_info.headers.try_add("Accept", "application/json") + return request_info + + def to_patch_request_information(self,body: Optional[Alert] = None, request_configuration: Optional[RequestConfiguration] = None) -> RequestInformation: + """ + Update the navigation property alerts in networkAccess + param body: The request body + param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. + Returns: RequestInformation + """ + if not body: + raise TypeError("body cannot be null.") + request_info = RequestInformation(Method.PATCH, '{+baseurl}/networkAccess/alerts/{alert%2Did}', self.path_parameters) + request_info.configure(request_configuration) + request_info.headers.try_add("Accept", "application/json") + request_info.set_content_from_parsable(self.request_adapter, "application/json", body) + return request_info + + def with_url(self,raw_url: Optional[str] = None) -> AlertItemRequestBuilder: + """ + Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + param raw_url: The raw URL to use for the request builder. + Returns: AlertItemRequestBuilder + """ + if not raw_url: + raise TypeError("raw_url cannot be null.") + return AlertItemRequestBuilder(self.request_adapter, raw_url) + + @dataclass + class AlertItemRequestBuilderGetQueryParameters(): + """ + Get alerts from networkAccess + """ + def get_query_parameter(self,original_name: Optional[str] = None) -> str: + """ + Maps the query parameters names to their encoded names for the URI template parsing. + param original_name: The original query parameter name in the class. + Returns: str + """ + if not original_name: + raise TypeError("original_name cannot be null.") + if original_name == "expand": + return "%24expand" + if original_name == "select": + return "%24select" + return original_name + + # Expand related entities + expand: Optional[List[str]] = None + + # Select properties to be returned + select: Optional[List[str]] = None + + + diff --git a/msgraph_beta/generated/network_access/network_access_request_builder.py b/msgraph_beta/generated/network_access/network_access_request_builder.py index 26f7397abf5..80724f347eb 100644 --- a/msgraph_beta/generated/network_access/network_access_request_builder.py +++ b/msgraph_beta/generated/network_access/network_access_request_builder.py @@ -13,6 +13,7 @@ if TYPE_CHECKING: from ..models.networkaccess.network_access_root import NetworkAccessRoot from ..models.o_data_errors.o_data_error import ODataError + from .alerts.alerts_request_builder import AlertsRequestBuilder from .connectivity.connectivity_request_builder import ConnectivityRequestBuilder from .filtering_policies.filtering_policies_request_builder import FilteringPoliciesRequestBuilder from .filtering_profiles.filtering_profiles_request_builder import FilteringProfilesRequestBuilder @@ -116,6 +117,15 @@ def with_url(self,raw_url: Optional[str] = None) -> NetworkAccessRequestBuilder: raise TypeError("raw_url cannot be null.") return NetworkAccessRequestBuilder(self.request_adapter, raw_url) + @property + def alerts(self) -> AlertsRequestBuilder: + """ + Provides operations to manage the alerts property of the microsoft.graph.networkaccess.networkAccessRoot entity. + """ + from .alerts.alerts_request_builder import AlertsRequestBuilder + + return AlertsRequestBuilder(self.request_adapter, self.path_parameters) + @property def connectivity(self) -> ConnectivityRequestBuilder: """ diff --git a/msgraph_beta/generated/places/item/graph_room_list/graph_room_list_request_builder.py b/msgraph_beta/generated/places/item/graph_room_list/graph_room_list_request_builder.py index d7f19097691..09e38e97f92 100644 --- a/msgraph_beta/generated/places/item/graph_room_list/graph_room_list_request_builder.py +++ b/msgraph_beta/generated/places/item/graph_room_list/graph_room_list_request_builder.py @@ -14,7 +14,9 @@ from ....models.o_data_errors.o_data_error import ODataError from ....models.room_list import RoomList from .rooms.rooms_request_builder import RoomsRequestBuilder + from .rooms_with_place_id.rooms_with_place_id_request_builder import RoomsWithPlaceIdRequestBuilder from .workspaces.workspaces_request_builder import WorkspacesRequestBuilder + from .workspaces_with_place_id.workspaces_with_place_id_request_builder import WorkspacesWithPlaceIdRequestBuilder class GraphRoomListRequestBuilder(BaseRequestBuilder): """ @@ -49,6 +51,18 @@ async def get(self,request_configuration: Optional[RequestConfiguration] = None) return await self.request_adapter.send_async(request_info, RoomList, error_mapping) + def rooms_with_place_id(self,place_id: Optional[str] = None) -> RoomsWithPlaceIdRequestBuilder: + """ + Provides operations to manage the rooms property of the microsoft.graph.roomList entity. + param place_id: Alternate key of room + Returns: RoomsWithPlaceIdRequestBuilder + """ + if not place_id: + raise TypeError("place_id cannot be null.") + from .rooms_with_place_id.rooms_with_place_id_request_builder import RoomsWithPlaceIdRequestBuilder + + return RoomsWithPlaceIdRequestBuilder(self.request_adapter, self.path_parameters, place_id) + def to_get_request_information(self,request_configuration: Optional[RequestConfiguration] = None) -> RequestInformation: """ Get the item of type microsoft.graph.place as microsoft.graph.roomList @@ -70,6 +84,18 @@ def with_url(self,raw_url: Optional[str] = None) -> GraphRoomListRequestBuilder: raise TypeError("raw_url cannot be null.") return GraphRoomListRequestBuilder(self.request_adapter, raw_url) + def workspaces_with_place_id(self,place_id: Optional[str] = None) -> WorkspacesWithPlaceIdRequestBuilder: + """ + Provides operations to manage the workspaces property of the microsoft.graph.roomList entity. + param place_id: Alternate key of workspace + Returns: WorkspacesWithPlaceIdRequestBuilder + """ + if not place_id: + raise TypeError("place_id cannot be null.") + from .workspaces_with_place_id.workspaces_with_place_id_request_builder import WorkspacesWithPlaceIdRequestBuilder + + return WorkspacesWithPlaceIdRequestBuilder(self.request_adapter, self.path_parameters, place_id) + @property def rooms(self) -> RoomsRequestBuilder: """ diff --git a/msgraph_beta/generated/places/item/graph_room_list/rooms_with_place_id/rooms_with_place_id_request_builder.py b/msgraph_beta/generated/places/item/graph_room_list/rooms_with_place_id/rooms_with_place_id_request_builder.py new file mode 100644 index 00000000000..30de18100be --- /dev/null +++ b/msgraph_beta/generated/places/item/graph_room_list/rooms_with_place_id/rooms_with_place_id_request_builder.py @@ -0,0 +1,167 @@ +from __future__ import annotations +from dataclasses import dataclass, field +from kiota_abstractions.base_request_builder import BaseRequestBuilder +from kiota_abstractions.base_request_configuration import RequestConfiguration +from kiota_abstractions.get_path_parameters import get_path_parameters +from kiota_abstractions.method import Method +from kiota_abstractions.request_adapter import RequestAdapter +from kiota_abstractions.request_information import RequestInformation +from kiota_abstractions.request_option import RequestOption +from kiota_abstractions.serialization import Parsable, ParsableFactory +from typing import Any, Callable, Dict, List, Optional, TYPE_CHECKING, Union + +if TYPE_CHECKING: + from .....models.o_data_errors.o_data_error import ODataError + from .....models.room import Room + +class RoomsWithPlaceIdRequestBuilder(BaseRequestBuilder): + """ + Provides operations to manage the rooms property of the microsoft.graph.roomList entity. + """ + def __init__(self,request_adapter: RequestAdapter, path_parameters: Union[str, Dict[str, Any]], place_id: Optional[str] = None) -> None: + """ + Instantiates a new RoomsWithPlaceIdRequestBuilder and sets the default values. + param path_parameters: The raw url or the url-template parameters for the request. + param place_id: Alternate key of room + param request_adapter: The request adapter to use to execute the requests. + Returns: None + """ + if isinstance(path_parameters, dict): + path_parameters['placeId'] = str(place_id) + super().__init__(request_adapter, "{+baseurl}/places/{place%2Did}/graph.roomList/rooms(placeId='{placeId}'){?%24expand,%24select}", path_parameters) + + async def delete(self,request_configuration: Optional[RequestConfiguration] = None) -> None: + """ + Delete navigation property rooms for places + param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. + Returns: None + """ + request_info = self.to_delete_request_information( + request_configuration + ) + from .....models.o_data_errors.o_data_error import ODataError + + error_mapping: Dict[str, ParsableFactory] = { + "XXX": ODataError, + } + if not self.request_adapter: + raise Exception("Http core is null") + return await self.request_adapter.send_no_response_content_async(request_info, error_mapping) + + async def get(self,request_configuration: Optional[RequestConfiguration] = None) -> Optional[Room]: + """ + Get rooms from places + param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. + Returns: Optional[Room] + """ + request_info = self.to_get_request_information( + request_configuration + ) + from .....models.o_data_errors.o_data_error import ODataError + + error_mapping: Dict[str, ParsableFactory] = { + "XXX": ODataError, + } + if not self.request_adapter: + raise Exception("Http core is null") + from .....models.room import Room + + return await self.request_adapter.send_async(request_info, Room, error_mapping) + + async def patch(self,body: Optional[Room] = None, request_configuration: Optional[RequestConfiguration] = None) -> Optional[Room]: + """ + Update the navigation property rooms in places + param body: The request body + param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. + Returns: Optional[Room] + """ + if not body: + raise TypeError("body cannot be null.") + request_info = self.to_patch_request_information( + body, request_configuration + ) + from .....models.o_data_errors.o_data_error import ODataError + + error_mapping: Dict[str, ParsableFactory] = { + "XXX": ODataError, + } + if not self.request_adapter: + raise Exception("Http core is null") + from .....models.room import Room + + return await self.request_adapter.send_async(request_info, Room, error_mapping) + + def to_delete_request_information(self,request_configuration: Optional[RequestConfiguration] = None) -> RequestInformation: + """ + Delete navigation property rooms for places + param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. + Returns: RequestInformation + """ + request_info = RequestInformation(Method.DELETE, '{+baseurl}/places/{place%2Did}/graph.roomList/rooms(placeId='{placeId}')', self.path_parameters) + request_info.configure(request_configuration) + request_info.headers.try_add("Accept", "application/json") + return request_info + + def to_get_request_information(self,request_configuration: Optional[RequestConfiguration] = None) -> RequestInformation: + """ + Get rooms from places + param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. + Returns: RequestInformation + """ + request_info = RequestInformation(Method.GET, self.url_template, self.path_parameters) + request_info.configure(request_configuration) + request_info.headers.try_add("Accept", "application/json") + return request_info + + def to_patch_request_information(self,body: Optional[Room] = None, request_configuration: Optional[RequestConfiguration] = None) -> RequestInformation: + """ + Update the navigation property rooms in places + param body: The request body + param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. + Returns: RequestInformation + """ + if not body: + raise TypeError("body cannot be null.") + request_info = RequestInformation(Method.PATCH, '{+baseurl}/places/{place%2Did}/graph.roomList/rooms(placeId='{placeId}')', self.path_parameters) + request_info.configure(request_configuration) + request_info.headers.try_add("Accept", "application/json") + request_info.set_content_from_parsable(self.request_adapter, "application/json", body) + return request_info + + def with_url(self,raw_url: Optional[str] = None) -> RoomsWithPlaceIdRequestBuilder: + """ + Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + param raw_url: The raw URL to use for the request builder. + Returns: RoomsWithPlaceIdRequestBuilder + """ + if not raw_url: + raise TypeError("raw_url cannot be null.") + return RoomsWithPlaceIdRequestBuilder(self.request_adapter, raw_url) + + @dataclass + class RoomsWithPlaceIdRequestBuilderGetQueryParameters(): + """ + Get rooms from places + """ + def get_query_parameter(self,original_name: Optional[str] = None) -> str: + """ + Maps the query parameters names to their encoded names for the URI template parsing. + param original_name: The original query parameter name in the class. + Returns: str + """ + if not original_name: + raise TypeError("original_name cannot be null.") + if original_name == "expand": + return "%24expand" + if original_name == "select": + return "%24select" + return original_name + + # Expand related entities + expand: Optional[List[str]] = None + + # Select properties to be returned + select: Optional[List[str]] = None + + + diff --git a/msgraph_beta/generated/places/item/graph_room_list/workspaces_with_place_id/workspaces_with_place_id_request_builder.py b/msgraph_beta/generated/places/item/graph_room_list/workspaces_with_place_id/workspaces_with_place_id_request_builder.py new file mode 100644 index 00000000000..a3e79760186 --- /dev/null +++ b/msgraph_beta/generated/places/item/graph_room_list/workspaces_with_place_id/workspaces_with_place_id_request_builder.py @@ -0,0 +1,167 @@ +from __future__ import annotations +from dataclasses import dataclass, field +from kiota_abstractions.base_request_builder import BaseRequestBuilder +from kiota_abstractions.base_request_configuration import RequestConfiguration +from kiota_abstractions.get_path_parameters import get_path_parameters +from kiota_abstractions.method import Method +from kiota_abstractions.request_adapter import RequestAdapter +from kiota_abstractions.request_information import RequestInformation +from kiota_abstractions.request_option import RequestOption +from kiota_abstractions.serialization import Parsable, ParsableFactory +from typing import Any, Callable, Dict, List, Optional, TYPE_CHECKING, Union + +if TYPE_CHECKING: + from .....models.o_data_errors.o_data_error import ODataError + from .....models.workspace import Workspace + +class WorkspacesWithPlaceIdRequestBuilder(BaseRequestBuilder): + """ + Provides operations to manage the workspaces property of the microsoft.graph.roomList entity. + """ + def __init__(self,request_adapter: RequestAdapter, path_parameters: Union[str, Dict[str, Any]], place_id: Optional[str] = None) -> None: + """ + Instantiates a new WorkspacesWithPlaceIdRequestBuilder and sets the default values. + param path_parameters: The raw url or the url-template parameters for the request. + param place_id: Alternate key of workspace + param request_adapter: The request adapter to use to execute the requests. + Returns: None + """ + if isinstance(path_parameters, dict): + path_parameters['placeId'] = str(place_id) + super().__init__(request_adapter, "{+baseurl}/places/{place%2Did}/graph.roomList/workspaces(placeId='{placeId}'){?%24expand,%24select}", path_parameters) + + async def delete(self,request_configuration: Optional[RequestConfiguration] = None) -> None: + """ + Delete navigation property workspaces for places + param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. + Returns: None + """ + request_info = self.to_delete_request_information( + request_configuration + ) + from .....models.o_data_errors.o_data_error import ODataError + + error_mapping: Dict[str, ParsableFactory] = { + "XXX": ODataError, + } + if not self.request_adapter: + raise Exception("Http core is null") + return await self.request_adapter.send_no_response_content_async(request_info, error_mapping) + + async def get(self,request_configuration: Optional[RequestConfiguration] = None) -> Optional[Workspace]: + """ + Get workspaces from places + param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. + Returns: Optional[Workspace] + """ + request_info = self.to_get_request_information( + request_configuration + ) + from .....models.o_data_errors.o_data_error import ODataError + + error_mapping: Dict[str, ParsableFactory] = { + "XXX": ODataError, + } + if not self.request_adapter: + raise Exception("Http core is null") + from .....models.workspace import Workspace + + return await self.request_adapter.send_async(request_info, Workspace, error_mapping) + + async def patch(self,body: Optional[Workspace] = None, request_configuration: Optional[RequestConfiguration] = None) -> Optional[Workspace]: + """ + Update the navigation property workspaces in places + param body: The request body + param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. + Returns: Optional[Workspace] + """ + if not body: + raise TypeError("body cannot be null.") + request_info = self.to_patch_request_information( + body, request_configuration + ) + from .....models.o_data_errors.o_data_error import ODataError + + error_mapping: Dict[str, ParsableFactory] = { + "XXX": ODataError, + } + if not self.request_adapter: + raise Exception("Http core is null") + from .....models.workspace import Workspace + + return await self.request_adapter.send_async(request_info, Workspace, error_mapping) + + def to_delete_request_information(self,request_configuration: Optional[RequestConfiguration] = None) -> RequestInformation: + """ + Delete navigation property workspaces for places + param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. + Returns: RequestInformation + """ + request_info = RequestInformation(Method.DELETE, '{+baseurl}/places/{place%2Did}/graph.roomList/workspaces(placeId='{placeId}')', self.path_parameters) + request_info.configure(request_configuration) + request_info.headers.try_add("Accept", "application/json") + return request_info + + def to_get_request_information(self,request_configuration: Optional[RequestConfiguration] = None) -> RequestInformation: + """ + Get workspaces from places + param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. + Returns: RequestInformation + """ + request_info = RequestInformation(Method.GET, self.url_template, self.path_parameters) + request_info.configure(request_configuration) + request_info.headers.try_add("Accept", "application/json") + return request_info + + def to_patch_request_information(self,body: Optional[Workspace] = None, request_configuration: Optional[RequestConfiguration] = None) -> RequestInformation: + """ + Update the navigation property workspaces in places + param body: The request body + param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. + Returns: RequestInformation + """ + if not body: + raise TypeError("body cannot be null.") + request_info = RequestInformation(Method.PATCH, '{+baseurl}/places/{place%2Did}/graph.roomList/workspaces(placeId='{placeId}')', self.path_parameters) + request_info.configure(request_configuration) + request_info.headers.try_add("Accept", "application/json") + request_info.set_content_from_parsable(self.request_adapter, "application/json", body) + return request_info + + def with_url(self,raw_url: Optional[str] = None) -> WorkspacesWithPlaceIdRequestBuilder: + """ + Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + param raw_url: The raw URL to use for the request builder. + Returns: WorkspacesWithPlaceIdRequestBuilder + """ + if not raw_url: + raise TypeError("raw_url cannot be null.") + return WorkspacesWithPlaceIdRequestBuilder(self.request_adapter, raw_url) + + @dataclass + class WorkspacesWithPlaceIdRequestBuilderGetQueryParameters(): + """ + Get workspaces from places + """ + def get_query_parameter(self,original_name: Optional[str] = None) -> str: + """ + Maps the query parameters names to their encoded names for the URI template parsing. + param original_name: The original query parameter name in the class. + Returns: str + """ + if not original_name: + raise TypeError("original_name cannot be null.") + if original_name == "expand": + return "%24expand" + if original_name == "select": + return "%24select" + return original_name + + # Expand related entities + expand: Optional[List[str]] = None + + # Select properties to be returned + select: Optional[List[str]] = None + + + diff --git a/msgraph_beta/generated/places_with_place_id/places_with_place_id_request_builder.py b/msgraph_beta/generated/places_with_place_id/places_with_place_id_request_builder.py new file mode 100644 index 00000000000..6a5595b8f5f --- /dev/null +++ b/msgraph_beta/generated/places_with_place_id/places_with_place_id_request_builder.py @@ -0,0 +1,110 @@ +from __future__ import annotations +from kiota_abstractions.base_request_builder import BaseRequestBuilder +from kiota_abstractions.base_request_configuration import RequestConfiguration +from kiota_abstractions.get_path_parameters import get_path_parameters +from kiota_abstractions.method import Method +from kiota_abstractions.request_adapter import RequestAdapter +from kiota_abstractions.request_information import RequestInformation +from kiota_abstractions.request_option import RequestOption +from kiota_abstractions.serialization import Parsable, ParsableFactory +from typing import Any, Callable, Dict, List, Optional, TYPE_CHECKING, Union + +if TYPE_CHECKING: + from ..models.o_data_errors.o_data_error import ODataError + from ..models.place import Place + +class PlacesWithPlaceIdRequestBuilder(BaseRequestBuilder): + """ + Provides operations to manage the collection of place entities. + """ + def __init__(self,request_adapter: RequestAdapter, path_parameters: Union[str, Dict[str, Any]], place_id: Optional[str] = None) -> None: + """ + Instantiates a new PlacesWithPlaceIdRequestBuilder and sets the default values. + param path_parameters: The raw url or the url-template parameters for the request. + param place_id: Alternate key of place + param request_adapter: The request adapter to use to execute the requests. + Returns: None + """ + if isinstance(path_parameters, dict): + path_parameters['placeId'] = str(place_id) + super().__init__(request_adapter, "{+baseurl}/places(placeId='{placeId}')", path_parameters) + + async def delete(self,request_configuration: Optional[RequestConfiguration] = None) -> None: + """ + Delete entity from places by placeId + param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. + Returns: None + """ + request_info = self.to_delete_request_information( + request_configuration + ) + from ..models.o_data_errors.o_data_error import ODataError + + error_mapping: Dict[str, ParsableFactory] = { + "XXX": ODataError, + } + if not self.request_adapter: + raise Exception("Http core is null") + return await self.request_adapter.send_no_response_content_async(request_info, error_mapping) + + async def patch(self,body: Optional[Place] = None, request_configuration: Optional[RequestConfiguration] = None) -> Optional[Place]: + """ + Update the properties of place object, which can be a room, workspace, or roomList. You can identify the room, workspace, or roomList by specifying the id or emailAddress property. + param body: The request body + param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. + Returns: Optional[Place] + Find more info here: https://learn.microsoft.com/graph/api/place-update?view=graph-rest-1.0 + """ + if not body: + raise TypeError("body cannot be null.") + request_info = self.to_patch_request_information( + body, request_configuration + ) + from ..models.o_data_errors.o_data_error import ODataError + + error_mapping: Dict[str, ParsableFactory] = { + "XXX": ODataError, + } + if not self.request_adapter: + raise Exception("Http core is null") + from ..models.place import Place + + return await self.request_adapter.send_async(request_info, Place, error_mapping) + + def to_delete_request_information(self,request_configuration: Optional[RequestConfiguration] = None) -> RequestInformation: + """ + Delete entity from places by placeId + param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. + Returns: RequestInformation + """ + request_info = RequestInformation(Method.DELETE, self.url_template, self.path_parameters) + request_info.configure(request_configuration) + request_info.headers.try_add("Accept", "application/json") + return request_info + + def to_patch_request_information(self,body: Optional[Place] = None, request_configuration: Optional[RequestConfiguration] = None) -> RequestInformation: + """ + Update the properties of place object, which can be a room, workspace, or roomList. You can identify the room, workspace, or roomList by specifying the id or emailAddress property. + param body: The request body + param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. + Returns: RequestInformation + """ + if not body: + raise TypeError("body cannot be null.") + request_info = RequestInformation(Method.PATCH, self.url_template, self.path_parameters) + request_info.configure(request_configuration) + request_info.headers.try_add("Accept", "application/json") + request_info.set_content_from_parsable(self.request_adapter, "application/json", body) + return request_info + + def with_url(self,raw_url: Optional[str] = None) -> PlacesWithPlaceIdRequestBuilder: + """ + Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + param raw_url: The raw URL to use for the request builder. + Returns: PlacesWithPlaceIdRequestBuilder + """ + if not raw_url: + raise TypeError("raw_url cannot be null.") + return PlacesWithPlaceIdRequestBuilder(self.request_adapter, raw_url) + + diff --git a/msgraph_beta/generated/reports/partners/billing/billing_request_builder.py b/msgraph_beta/generated/reports/partners/billing/billing_request_builder.py index d05f8bd92f4..cb6c5a67b4e 100644 --- a/msgraph_beta/generated/reports/partners/billing/billing_request_builder.py +++ b/msgraph_beta/generated/reports/partners/billing/billing_request_builder.py @@ -15,6 +15,7 @@ from ....models.partners.billing.billing import Billing from .manifests.manifests_request_builder import ManifestsRequestBuilder from .operations.operations_request_builder import OperationsRequestBuilder + from .reconciliation.reconciliation_request_builder import ReconciliationRequestBuilder from .usage.usage_request_builder import UsageRequestBuilder class BillingRequestBuilder(BaseRequestBuilder): @@ -156,6 +157,15 @@ def operations(self) -> OperationsRequestBuilder: return OperationsRequestBuilder(self.request_adapter, self.path_parameters) + @property + def reconciliation(self) -> ReconciliationRequestBuilder: + """ + Provides operations to manage the reconciliation property of the microsoft.graph.partners.billing.billing entity. + """ + from .reconciliation.reconciliation_request_builder import ReconciliationRequestBuilder + + return ReconciliationRequestBuilder(self.request_adapter, self.path_parameters) + @property def usage(self) -> UsageRequestBuilder: """ diff --git a/msgraph_beta/generated/reports/partners/billing/reconciliation/billed/billed_request_builder.py b/msgraph_beta/generated/reports/partners/billing/reconciliation/billed/billed_request_builder.py new file mode 100644 index 00000000000..9a29a902055 --- /dev/null +++ b/msgraph_beta/generated/reports/partners/billing/reconciliation/billed/billed_request_builder.py @@ -0,0 +1,174 @@ +from __future__ import annotations +from dataclasses import dataclass, field +from kiota_abstractions.base_request_builder import BaseRequestBuilder +from kiota_abstractions.base_request_configuration import RequestConfiguration +from kiota_abstractions.get_path_parameters import get_path_parameters +from kiota_abstractions.method import Method +from kiota_abstractions.request_adapter import RequestAdapter +from kiota_abstractions.request_information import RequestInformation +from kiota_abstractions.request_option import RequestOption +from kiota_abstractions.serialization import Parsable, ParsableFactory +from typing import Any, Callable, Dict, List, Optional, TYPE_CHECKING, Union + +if TYPE_CHECKING: + from ......models.o_data_errors.o_data_error import ODataError + from ......models.partners.billing.billed_reconciliation import BilledReconciliation + from .microsoft_graph_partners_billing_export.microsoft_graph_partners_billing_export_request_builder import MicrosoftGraphPartnersBillingExportRequestBuilder + +class BilledRequestBuilder(BaseRequestBuilder): + """ + Provides operations to manage the billed property of the microsoft.graph.partners.billing.billingReconciliation entity. + """ + def __init__(self,request_adapter: RequestAdapter, path_parameters: Union[str, Dict[str, Any]]) -> None: + """ + Instantiates a new BilledRequestBuilder and sets the default values. + param path_parameters: The raw url or the url-template parameters for the request. + param request_adapter: The request adapter to use to execute the requests. + Returns: None + """ + super().__init__(request_adapter, "{+baseurl}/reports/partners/billing/reconciliation/billed{?%24expand,%24select}", path_parameters) + + async def delete(self,request_configuration: Optional[RequestConfiguration] = None) -> None: + """ + Delete navigation property billed for reports + param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. + Returns: None + """ + request_info = self.to_delete_request_information( + request_configuration + ) + from ......models.o_data_errors.o_data_error import ODataError + + error_mapping: Dict[str, ParsableFactory] = { + "XXX": ODataError, + } + if not self.request_adapter: + raise Exception("Http core is null") + return await self.request_adapter.send_no_response_content_async(request_info, error_mapping) + + async def get(self,request_configuration: Optional[RequestConfiguration] = None) -> Optional[BilledReconciliation]: + """ + Represents details for billed invoice reconciliation data. + param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. + Returns: Optional[BilledReconciliation] + """ + request_info = self.to_get_request_information( + request_configuration + ) + from ......models.o_data_errors.o_data_error import ODataError + + error_mapping: Dict[str, ParsableFactory] = { + "XXX": ODataError, + } + if not self.request_adapter: + raise Exception("Http core is null") + from ......models.partners.billing.billed_reconciliation import BilledReconciliation + + return await self.request_adapter.send_async(request_info, BilledReconciliation, error_mapping) + + async def patch(self,body: Optional[BilledReconciliation] = None, request_configuration: Optional[RequestConfiguration] = None) -> Optional[BilledReconciliation]: + """ + Update the navigation property billed in reports + param body: The request body + param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. + Returns: Optional[BilledReconciliation] + """ + if not body: + raise TypeError("body cannot be null.") + request_info = self.to_patch_request_information( + body, request_configuration + ) + from ......models.o_data_errors.o_data_error import ODataError + + error_mapping: Dict[str, ParsableFactory] = { + "XXX": ODataError, + } + if not self.request_adapter: + raise Exception("Http core is null") + from ......models.partners.billing.billed_reconciliation import BilledReconciliation + + return await self.request_adapter.send_async(request_info, BilledReconciliation, error_mapping) + + def to_delete_request_information(self,request_configuration: Optional[RequestConfiguration] = None) -> RequestInformation: + """ + Delete navigation property billed for reports + param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. + Returns: RequestInformation + """ + request_info = RequestInformation(Method.DELETE, '{+baseurl}/reports/partners/billing/reconciliation/billed', self.path_parameters) + request_info.configure(request_configuration) + request_info.headers.try_add("Accept", "application/json") + return request_info + + def to_get_request_information(self,request_configuration: Optional[RequestConfiguration] = None) -> RequestInformation: + """ + Represents details for billed invoice reconciliation data. + param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. + Returns: RequestInformation + """ + request_info = RequestInformation(Method.GET, self.url_template, self.path_parameters) + request_info.configure(request_configuration) + request_info.headers.try_add("Accept", "application/json") + return request_info + + def to_patch_request_information(self,body: Optional[BilledReconciliation] = None, request_configuration: Optional[RequestConfiguration] = None) -> RequestInformation: + """ + Update the navigation property billed in reports + param body: The request body + param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. + Returns: RequestInformation + """ + if not body: + raise TypeError("body cannot be null.") + request_info = RequestInformation(Method.PATCH, '{+baseurl}/reports/partners/billing/reconciliation/billed', self.path_parameters) + request_info.configure(request_configuration) + request_info.headers.try_add("Accept", "application/json") + request_info.set_content_from_parsable(self.request_adapter, "application/json", body) + return request_info + + def with_url(self,raw_url: Optional[str] = None) -> BilledRequestBuilder: + """ + Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + param raw_url: The raw URL to use for the request builder. + Returns: BilledRequestBuilder + """ + if not raw_url: + raise TypeError("raw_url cannot be null.") + return BilledRequestBuilder(self.request_adapter, raw_url) + + @property + def microsoft_graph_partners_billing_export(self) -> MicrosoftGraphPartnersBillingExportRequestBuilder: + """ + Provides operations to call the export method. + """ + from .microsoft_graph_partners_billing_export.microsoft_graph_partners_billing_export_request_builder import MicrosoftGraphPartnersBillingExportRequestBuilder + + return MicrosoftGraphPartnersBillingExportRequestBuilder(self.request_adapter, self.path_parameters) + + @dataclass + class BilledRequestBuilderGetQueryParameters(): + """ + Represents details for billed invoice reconciliation data. + """ + def get_query_parameter(self,original_name: Optional[str] = None) -> str: + """ + Maps the query parameters names to their encoded names for the URI template parsing. + param original_name: The original query parameter name in the class. + Returns: str + """ + if not original_name: + raise TypeError("original_name cannot be null.") + if original_name == "expand": + return "%24expand" + if original_name == "select": + return "%24select" + return original_name + + # Expand related entities + expand: Optional[List[str]] = None + + # Select properties to be returned + select: Optional[List[str]] = None + + + diff --git a/msgraph_beta/generated/reports/partners/billing/reconciliation/billed/microsoft_graph_partners_billing_export/export_post_request_body.py b/msgraph_beta/generated/reports/partners/billing/reconciliation/billed/microsoft_graph_partners_billing_export/export_post_request_body.py new file mode 100644 index 00000000000..785ca604b9a --- /dev/null +++ b/msgraph_beta/generated/reports/partners/billing/reconciliation/billed/microsoft_graph_partners_billing_export/export_post_request_body.py @@ -0,0 +1,60 @@ +from __future__ import annotations +from dataclasses import dataclass, field +from kiota_abstractions.serialization import AdditionalDataHolder, Parsable, ParseNode, SerializationWriter +from kiota_abstractions.store import BackedModel, BackingStore, BackingStoreFactorySingleton +from typing import Any, Callable, Dict, List, Optional, TYPE_CHECKING, Union + +if TYPE_CHECKING: + from .......models.partners.billing.attribute_set import AttributeSet + +@dataclass +class ExportPostRequestBody(AdditionalDataHolder, BackedModel, Parsable): + # Stores model information. + backing_store: BackingStore = field(default_factory=BackingStoreFactorySingleton(backing_store_factory=None).backing_store_factory.create_backing_store, repr=False) + + # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + additional_data: Dict[str, Any] = field(default_factory=dict) + # The attributeSet property + attribute_set: Optional[AttributeSet] = None + # The invoiceId property + invoice_id: Optional[str] = None + + @staticmethod + def create_from_discriminator_value(parse_node: Optional[ParseNode] = None) -> ExportPostRequestBody: + """ + Creates a new instance of the appropriate class based on discriminator value + param parse_node: The parse node to use to read the discriminator value and create the object + Returns: ExportPostRequestBody + """ + if not parse_node: + raise TypeError("parse_node cannot be null.") + return ExportPostRequestBody() + + def get_field_deserializers(self,) -> Dict[str, Callable[[ParseNode], None]]: + """ + The deserialization information for the current model + Returns: Dict[str, Callable[[ParseNode], None]] + """ + from .......models.partners.billing.attribute_set import AttributeSet + + from .......models.partners.billing.attribute_set import AttributeSet + + fields: Dict[str, Callable[[Any], None]] = { + "attributeSet": lambda n : setattr(self, 'attribute_set', n.get_enum_value(AttributeSet)), + "invoiceId": lambda n : setattr(self, 'invoice_id', n.get_str_value()), + } + return fields + + def serialize(self,writer: SerializationWriter) -> None: + """ + Serializes information the current object + param writer: Serialization writer to use to serialize this model + Returns: None + """ + if not writer: + raise TypeError("writer cannot be null.") + writer.write_enum_value("attributeSet", self.attribute_set) + writer.write_str_value("invoiceId", self.invoice_id) + writer.write_additional_data_value(self.additional_data) + + diff --git a/msgraph_beta/generated/reports/partners/billing/reconciliation/billed/microsoft_graph_partners_billing_export/microsoft_graph_partners_billing_export_request_builder.py b/msgraph_beta/generated/reports/partners/billing/reconciliation/billed/microsoft_graph_partners_billing_export/microsoft_graph_partners_billing_export_request_builder.py new file mode 100644 index 00000000000..bd3d9689134 --- /dev/null +++ b/msgraph_beta/generated/reports/partners/billing/reconciliation/billed/microsoft_graph_partners_billing_export/microsoft_graph_partners_billing_export_request_builder.py @@ -0,0 +1,79 @@ +from __future__ import annotations +from kiota_abstractions.base_request_builder import BaseRequestBuilder +from kiota_abstractions.base_request_configuration import RequestConfiguration +from kiota_abstractions.get_path_parameters import get_path_parameters +from kiota_abstractions.method import Method +from kiota_abstractions.request_adapter import RequestAdapter +from kiota_abstractions.request_information import RequestInformation +from kiota_abstractions.request_option import RequestOption +from kiota_abstractions.serialization import Parsable, ParsableFactory +from typing import Any, Callable, Dict, List, Optional, TYPE_CHECKING, Union + +if TYPE_CHECKING: + from .......models.o_data_errors.o_data_error import ODataError + from .......models.partners.billing.operation import Operation + from .export_post_request_body import ExportPostRequestBody + +class MicrosoftGraphPartnersBillingExportRequestBuilder(BaseRequestBuilder): + """ + Provides operations to call the export method. + """ + def __init__(self,request_adapter: RequestAdapter, path_parameters: Union[str, Dict[str, Any]]) -> None: + """ + Instantiates a new MicrosoftGraphPartnersBillingExportRequestBuilder and sets the default values. + param path_parameters: The raw url or the url-template parameters for the request. + param request_adapter: The request adapter to use to execute the requests. + Returns: None + """ + super().__init__(request_adapter, "{+baseurl}/reports/partners/billing/reconciliation/billed/microsoft.graph.partners.billing.export", path_parameters) + + async def post(self,body: Optional[ExportPostRequestBody] = None, request_configuration: Optional[RequestConfiguration] = None) -> Optional[Operation]: + """ + Export the billed invoice reconciliation data. + param body: The request body + param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. + Returns: Optional[Operation] + Find more info here: https://learn.microsoft.com/graph/api/partners-billing-billedreconciliation-export?view=graph-rest-1.0 + """ + if not body: + raise TypeError("body cannot be null.") + request_info = self.to_post_request_information( + body, request_configuration + ) + from .......models.o_data_errors.o_data_error import ODataError + + error_mapping: Dict[str, ParsableFactory] = { + "XXX": ODataError, + } + if not self.request_adapter: + raise Exception("Http core is null") + from .......models.partners.billing.operation import Operation + + return await self.request_adapter.send_async(request_info, Operation, error_mapping) + + def to_post_request_information(self,body: Optional[ExportPostRequestBody] = None, request_configuration: Optional[RequestConfiguration] = None) -> RequestInformation: + """ + Export the billed invoice reconciliation data. + param body: The request body + param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. + Returns: RequestInformation + """ + if not body: + raise TypeError("body cannot be null.") + request_info = RequestInformation(Method.POST, self.url_template, self.path_parameters) + request_info.configure(request_configuration) + request_info.headers.try_add("Accept", "application/json") + request_info.set_content_from_parsable(self.request_adapter, "application/json", body) + return request_info + + def with_url(self,raw_url: Optional[str] = None) -> MicrosoftGraphPartnersBillingExportRequestBuilder: + """ + Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + param raw_url: The raw URL to use for the request builder. + Returns: MicrosoftGraphPartnersBillingExportRequestBuilder + """ + if not raw_url: + raise TypeError("raw_url cannot be null.") + return MicrosoftGraphPartnersBillingExportRequestBuilder(self.request_adapter, raw_url) + + diff --git a/msgraph_beta/generated/reports/partners/billing/reconciliation/reconciliation_request_builder.py b/msgraph_beta/generated/reports/partners/billing/reconciliation/reconciliation_request_builder.py new file mode 100644 index 00000000000..0d83ef7a924 --- /dev/null +++ b/msgraph_beta/generated/reports/partners/billing/reconciliation/reconciliation_request_builder.py @@ -0,0 +1,174 @@ +from __future__ import annotations +from dataclasses import dataclass, field +from kiota_abstractions.base_request_builder import BaseRequestBuilder +from kiota_abstractions.base_request_configuration import RequestConfiguration +from kiota_abstractions.get_path_parameters import get_path_parameters +from kiota_abstractions.method import Method +from kiota_abstractions.request_adapter import RequestAdapter +from kiota_abstractions.request_information import RequestInformation +from kiota_abstractions.request_option import RequestOption +from kiota_abstractions.serialization import Parsable, ParsableFactory +from typing import Any, Callable, Dict, List, Optional, TYPE_CHECKING, Union + +if TYPE_CHECKING: + from .....models.o_data_errors.o_data_error import ODataError + from .....models.partners.billing.billing_reconciliation import BillingReconciliation + from .billed.billed_request_builder import BilledRequestBuilder + +class ReconciliationRequestBuilder(BaseRequestBuilder): + """ + Provides operations to manage the reconciliation property of the microsoft.graph.partners.billing.billing entity. + """ + def __init__(self,request_adapter: RequestAdapter, path_parameters: Union[str, Dict[str, Any]]) -> None: + """ + Instantiates a new ReconciliationRequestBuilder and sets the default values. + param path_parameters: The raw url or the url-template parameters for the request. + param request_adapter: The request adapter to use to execute the requests. + Returns: None + """ + super().__init__(request_adapter, "{+baseurl}/reports/partners/billing/reconciliation{?%24expand,%24select}", path_parameters) + + async def delete(self,request_configuration: Optional[RequestConfiguration] = None) -> None: + """ + Delete navigation property reconciliation for reports + param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. + Returns: None + """ + request_info = self.to_delete_request_information( + request_configuration + ) + from .....models.o_data_errors.o_data_error import ODataError + + error_mapping: Dict[str, ParsableFactory] = { + "XXX": ODataError, + } + if not self.request_adapter: + raise Exception("Http core is null") + return await self.request_adapter.send_no_response_content_async(request_info, error_mapping) + + async def get(self,request_configuration: Optional[RequestConfiguration] = None) -> Optional[BillingReconciliation]: + """ + Represents details for billed invoice reconciliation data. + param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. + Returns: Optional[BillingReconciliation] + """ + request_info = self.to_get_request_information( + request_configuration + ) + from .....models.o_data_errors.o_data_error import ODataError + + error_mapping: Dict[str, ParsableFactory] = { + "XXX": ODataError, + } + if not self.request_adapter: + raise Exception("Http core is null") + from .....models.partners.billing.billing_reconciliation import BillingReconciliation + + return await self.request_adapter.send_async(request_info, BillingReconciliation, error_mapping) + + async def patch(self,body: Optional[BillingReconciliation] = None, request_configuration: Optional[RequestConfiguration] = None) -> Optional[BillingReconciliation]: + """ + Update the navigation property reconciliation in reports + param body: The request body + param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. + Returns: Optional[BillingReconciliation] + """ + if not body: + raise TypeError("body cannot be null.") + request_info = self.to_patch_request_information( + body, request_configuration + ) + from .....models.o_data_errors.o_data_error import ODataError + + error_mapping: Dict[str, ParsableFactory] = { + "XXX": ODataError, + } + if not self.request_adapter: + raise Exception("Http core is null") + from .....models.partners.billing.billing_reconciliation import BillingReconciliation + + return await self.request_adapter.send_async(request_info, BillingReconciliation, error_mapping) + + def to_delete_request_information(self,request_configuration: Optional[RequestConfiguration] = None) -> RequestInformation: + """ + Delete navigation property reconciliation for reports + param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. + Returns: RequestInformation + """ + request_info = RequestInformation(Method.DELETE, '{+baseurl}/reports/partners/billing/reconciliation', self.path_parameters) + request_info.configure(request_configuration) + request_info.headers.try_add("Accept", "application/json") + return request_info + + def to_get_request_information(self,request_configuration: Optional[RequestConfiguration] = None) -> RequestInformation: + """ + Represents details for billed invoice reconciliation data. + param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. + Returns: RequestInformation + """ + request_info = RequestInformation(Method.GET, self.url_template, self.path_parameters) + request_info.configure(request_configuration) + request_info.headers.try_add("Accept", "application/json") + return request_info + + def to_patch_request_information(self,body: Optional[BillingReconciliation] = None, request_configuration: Optional[RequestConfiguration] = None) -> RequestInformation: + """ + Update the navigation property reconciliation in reports + param body: The request body + param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. + Returns: RequestInformation + """ + if not body: + raise TypeError("body cannot be null.") + request_info = RequestInformation(Method.PATCH, '{+baseurl}/reports/partners/billing/reconciliation', self.path_parameters) + request_info.configure(request_configuration) + request_info.headers.try_add("Accept", "application/json") + request_info.set_content_from_parsable(self.request_adapter, "application/json", body) + return request_info + + def with_url(self,raw_url: Optional[str] = None) -> ReconciliationRequestBuilder: + """ + Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + param raw_url: The raw URL to use for the request builder. + Returns: ReconciliationRequestBuilder + """ + if not raw_url: + raise TypeError("raw_url cannot be null.") + return ReconciliationRequestBuilder(self.request_adapter, raw_url) + + @property + def billed(self) -> BilledRequestBuilder: + """ + Provides operations to manage the billed property of the microsoft.graph.partners.billing.billingReconciliation entity. + """ + from .billed.billed_request_builder import BilledRequestBuilder + + return BilledRequestBuilder(self.request_adapter, self.path_parameters) + + @dataclass + class ReconciliationRequestBuilderGetQueryParameters(): + """ + Represents details for billed invoice reconciliation data. + """ + def get_query_parameter(self,original_name: Optional[str] = None) -> str: + """ + Maps the query parameters names to their encoded names for the URI template parsing. + param original_name: The original query parameter name in the class. + Returns: str + """ + if not original_name: + raise TypeError("original_name cannot be null.") + if original_name == "expand": + return "%24expand" + if original_name == "select": + return "%24select" + return original_name + + # Expand related entities + expand: Optional[List[str]] = None + + # Select properties to be returned + select: Optional[List[str]] = None + + + diff --git a/msgraph_beta/generated/reports/user_insights/daily/active_users_breakdown/active_users_breakdown_request_builder.py b/msgraph_beta/generated/reports/user_insights/daily/active_users_breakdown/active_users_breakdown_request_builder.py index a613e0aefa4..d4eb741a2d5 100644 --- a/msgraph_beta/generated/reports/user_insights/daily/active_users_breakdown/active_users_breakdown_request_builder.py +++ b/msgraph_beta/generated/reports/user_insights/daily/active_users_breakdown/active_users_breakdown_request_builder.py @@ -9,6 +9,7 @@ from kiota_abstractions.request_option import RequestOption from kiota_abstractions.serialization import Parsable, ParsableFactory from typing import Any, Callable, Dict, List, Optional, TYPE_CHECKING, Union +from warnings import warn if TYPE_CHECKING: from .....models.active_users_breakdown_metric_collection_response import ActiveUsersBreakdownMetricCollectionResponse @@ -35,6 +36,7 @@ def by_active_users_breakdown_metric_id(self,active_users_breakdown_metric_id: s param active_users_breakdown_metric_id: The unique identifier of activeUsersBreakdownMetric Returns: ActiveUsersBreakdownMetricItemRequestBuilder """ + warn("The Active Users Breakdown Metric is deprecated and will stop returning data on February 16, 2024. Please use the existing Active Users API. as of 2024-02/Remove_Breakdown_APIs", DeprecationWarning) if not active_users_breakdown_metric_id: raise TypeError("active_users_breakdown_metric_id cannot be null.") from .item.active_users_breakdown_metric_item_request_builder import ActiveUsersBreakdownMetricItemRequestBuilder @@ -50,6 +52,7 @@ async def get(self,request_configuration: Optional[RequestConfiguration] = None) Returns: Optional[ActiveUsersBreakdownMetricCollectionResponse] Find more info here: https://learn.microsoft.com/graph/api/dailyuserinsightmetricsroot-list-activeusersbreakdown?view=graph-rest-1.0 """ + warn("The Active Users Breakdown Metric is deprecated and will stop returning data on February 16, 2024. Please use the existing Active Users API. as of 2024-02/Remove_Breakdown_APIs", DeprecationWarning) request_info = self.to_get_request_information( request_configuration ) @@ -70,6 +73,7 @@ def to_get_request_information(self,request_configuration: Optional[RequestConfi param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: RequestInformation """ + warn("The Active Users Breakdown Metric is deprecated and will stop returning data on February 16, 2024. Please use the existing Active Users API. as of 2024-02/Remove_Breakdown_APIs", DeprecationWarning) request_info = RequestInformation(Method.GET, self.url_template, self.path_parameters) request_info.configure(request_configuration) request_info.headers.try_add("Accept", "application/json") @@ -81,6 +85,7 @@ def with_url(self,raw_url: Optional[str] = None) -> ActiveUsersBreakdownRequestB param raw_url: The raw URL to use for the request builder. Returns: ActiveUsersBreakdownRequestBuilder """ + warn("The Active Users Breakdown Metric is deprecated and will stop returning data on February 16, 2024. Please use the existing Active Users API. as of 2024-02/Remove_Breakdown_APIs", DeprecationWarning) if not raw_url: raise TypeError("raw_url cannot be null.") return ActiveUsersBreakdownRequestBuilder(self.request_adapter, raw_url) diff --git a/msgraph_beta/generated/reports/user_insights/daily/active_users_breakdown/count/count_request_builder.py b/msgraph_beta/generated/reports/user_insights/daily/active_users_breakdown/count/count_request_builder.py index 511b398ad1e..dd13269b842 100644 --- a/msgraph_beta/generated/reports/user_insights/daily/active_users_breakdown/count/count_request_builder.py +++ b/msgraph_beta/generated/reports/user_insights/daily/active_users_breakdown/count/count_request_builder.py @@ -9,6 +9,7 @@ from kiota_abstractions.request_option import RequestOption from kiota_abstractions.serialization import Parsable, ParsableFactory from typing import Any, Callable, Dict, List, Optional, TYPE_CHECKING, Union +from warnings import warn if TYPE_CHECKING: from ......models.o_data_errors.o_data_error import ODataError @@ -32,6 +33,7 @@ async def get(self,request_configuration: Optional[RequestConfiguration] = None) param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: Optional[int] """ + warn("The Active Users Breakdown Metric is deprecated and will stop returning data on February 16, 2024. Please use the existing Active Users API. as of 2024-02/Remove_Breakdown_APIs", DeprecationWarning) request_info = self.to_get_request_information( request_configuration ) @@ -50,6 +52,7 @@ def to_get_request_information(self,request_configuration: Optional[RequestConfi param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: RequestInformation """ + warn("The Active Users Breakdown Metric is deprecated and will stop returning data on February 16, 2024. Please use the existing Active Users API. as of 2024-02/Remove_Breakdown_APIs", DeprecationWarning) request_info = RequestInformation(Method.GET, self.url_template, self.path_parameters) request_info.configure(request_configuration) request_info.headers.try_add("Accept", "text/plain;q=0.9") @@ -61,6 +64,7 @@ def with_url(self,raw_url: Optional[str] = None) -> CountRequestBuilder: param raw_url: The raw URL to use for the request builder. Returns: CountRequestBuilder """ + warn("The Active Users Breakdown Metric is deprecated and will stop returning data on February 16, 2024. Please use the existing Active Users API. as of 2024-02/Remove_Breakdown_APIs", DeprecationWarning) if not raw_url: raise TypeError("raw_url cannot be null.") return CountRequestBuilder(self.request_adapter, raw_url) diff --git a/msgraph_beta/generated/reports/user_insights/daily/active_users_breakdown/item/active_users_breakdown_metric_item_request_builder.py b/msgraph_beta/generated/reports/user_insights/daily/active_users_breakdown/item/active_users_breakdown_metric_item_request_builder.py index 4ed056e9e39..27066fb9730 100644 --- a/msgraph_beta/generated/reports/user_insights/daily/active_users_breakdown/item/active_users_breakdown_metric_item_request_builder.py +++ b/msgraph_beta/generated/reports/user_insights/daily/active_users_breakdown/item/active_users_breakdown_metric_item_request_builder.py @@ -9,6 +9,7 @@ from kiota_abstractions.request_option import RequestOption from kiota_abstractions.serialization import Parsable, ParsableFactory from typing import Any, Callable, Dict, List, Optional, TYPE_CHECKING, Union +from warnings import warn if TYPE_CHECKING: from ......models.active_users_breakdown_metric import ActiveUsersBreakdownMetric @@ -29,10 +30,11 @@ def __init__(self,request_adapter: RequestAdapter, path_parameters: Union[str, D async def get(self,request_configuration: Optional[RequestConfiguration] = None) -> Optional[ActiveUsersBreakdownMetric]: """ - Insights for the breakdown of users who were active on apps registered in the tenant for a specified period. + Get activeUsersBreakdown from reports param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: Optional[ActiveUsersBreakdownMetric] """ + warn("The Active Users Breakdown Metric is deprecated and will stop returning data on February 16, 2024. Please use the existing Active Users API. as of 2024-02/Remove_Breakdown_APIs", DeprecationWarning) request_info = self.to_get_request_information( request_configuration ) @@ -49,10 +51,11 @@ async def get(self,request_configuration: Optional[RequestConfiguration] = None) def to_get_request_information(self,request_configuration: Optional[RequestConfiguration] = None) -> RequestInformation: """ - Insights for the breakdown of users who were active on apps registered in the tenant for a specified period. + Get activeUsersBreakdown from reports param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: RequestInformation """ + warn("The Active Users Breakdown Metric is deprecated and will stop returning data on February 16, 2024. Please use the existing Active Users API. as of 2024-02/Remove_Breakdown_APIs", DeprecationWarning) request_info = RequestInformation(Method.GET, self.url_template, self.path_parameters) request_info.configure(request_configuration) request_info.headers.try_add("Accept", "application/json") @@ -64,6 +67,7 @@ def with_url(self,raw_url: Optional[str] = None) -> ActiveUsersBreakdownMetricIt param raw_url: The raw URL to use for the request builder. Returns: ActiveUsersBreakdownMetricItemRequestBuilder """ + warn("The Active Users Breakdown Metric is deprecated and will stop returning data on February 16, 2024. Please use the existing Active Users API. as of 2024-02/Remove_Breakdown_APIs", DeprecationWarning) if not raw_url: raise TypeError("raw_url cannot be null.") return ActiveUsersBreakdownMetricItemRequestBuilder(self.request_adapter, raw_url) @@ -71,7 +75,7 @@ def with_url(self,raw_url: Optional[str] = None) -> ActiveUsersBreakdownMetricIt @dataclass class ActiveUsersBreakdownMetricItemRequestBuilderGetQueryParameters(): """ - Insights for the breakdown of users who were active on apps registered in the tenant for a specified period. + Get activeUsersBreakdown from reports """ def get_query_parameter(self,original_name: Optional[str] = None) -> str: """ diff --git a/msgraph_beta/generated/reports/user_insights/daily/inactive_users_by_application/count/count_request_builder.py b/msgraph_beta/generated/reports/user_insights/daily/inactive_users_by_application/count/count_request_builder.py index 697383160fe..34db635b136 100644 --- a/msgraph_beta/generated/reports/user_insights/daily/inactive_users_by_application/count/count_request_builder.py +++ b/msgraph_beta/generated/reports/user_insights/daily/inactive_users_by_application/count/count_request_builder.py @@ -9,6 +9,7 @@ from kiota_abstractions.request_option import RequestOption from kiota_abstractions.serialization import Parsable, ParsableFactory from typing import Any, Callable, Dict, List, Optional, TYPE_CHECKING, Union +from warnings import warn if TYPE_CHECKING: from ......models.o_data_errors.o_data_error import ODataError @@ -32,6 +33,7 @@ async def get(self,request_configuration: Optional[RequestConfiguration] = None) param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: Optional[int] """ + warn("The Inactive Users By Application Metric is deprecated and will stop returning data on February 16, 2024. Please use the existing Inactive Users API. as of 2024-02/Remove_Breakdown_APIs", DeprecationWarning) request_info = self.to_get_request_information( request_configuration ) @@ -50,6 +52,7 @@ def to_get_request_information(self,request_configuration: Optional[RequestConfi param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: RequestInformation """ + warn("The Inactive Users By Application Metric is deprecated and will stop returning data on February 16, 2024. Please use the existing Inactive Users API. as of 2024-02/Remove_Breakdown_APIs", DeprecationWarning) request_info = RequestInformation(Method.GET, self.url_template, self.path_parameters) request_info.configure(request_configuration) request_info.headers.try_add("Accept", "text/plain;q=0.9") @@ -61,6 +64,7 @@ def with_url(self,raw_url: Optional[str] = None) -> CountRequestBuilder: param raw_url: The raw URL to use for the request builder. Returns: CountRequestBuilder """ + warn("The Inactive Users By Application Metric is deprecated and will stop returning data on February 16, 2024. Please use the existing Inactive Users API. as of 2024-02/Remove_Breakdown_APIs", DeprecationWarning) if not raw_url: raise TypeError("raw_url cannot be null.") return CountRequestBuilder(self.request_adapter, raw_url) diff --git a/msgraph_beta/generated/reports/user_insights/daily/inactive_users_by_application/inactive_users_by_application_request_builder.py b/msgraph_beta/generated/reports/user_insights/daily/inactive_users_by_application/inactive_users_by_application_request_builder.py index 69441dd87da..0876c5260d0 100644 --- a/msgraph_beta/generated/reports/user_insights/daily/inactive_users_by_application/inactive_users_by_application_request_builder.py +++ b/msgraph_beta/generated/reports/user_insights/daily/inactive_users_by_application/inactive_users_by_application_request_builder.py @@ -9,6 +9,7 @@ from kiota_abstractions.request_option import RequestOption from kiota_abstractions.serialization import Parsable, ParsableFactory from typing import Any, Callable, Dict, List, Optional, TYPE_CHECKING, Union +from warnings import warn if TYPE_CHECKING: from .....models.daily_inactive_users_by_application_metric_collection_response import DailyInactiveUsersByApplicationMetricCollectionResponse @@ -35,6 +36,7 @@ def by_daily_inactive_users_by_application_metric_id(self,daily_inactive_users_b param daily_inactive_users_by_application_metric_id: The unique identifier of dailyInactiveUsersByApplicationMetric Returns: DailyInactiveUsersByApplicationMetricItemRequestBuilder """ + warn("The Inactive Users By Application Metric is deprecated and will stop returning data on February 16, 2024. Please use the existing Inactive Users API. as of 2024-02/Remove_Breakdown_APIs", DeprecationWarning) if not daily_inactive_users_by_application_metric_id: raise TypeError("daily_inactive_users_by_application_metric_id cannot be null.") from .item.daily_inactive_users_by_application_metric_item_request_builder import DailyInactiveUsersByApplicationMetricItemRequestBuilder @@ -49,6 +51,7 @@ async def get(self,request_configuration: Optional[RequestConfiguration] = None) param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: Optional[DailyInactiveUsersByApplicationMetricCollectionResponse] """ + warn("The Inactive Users By Application Metric is deprecated and will stop returning data on February 16, 2024. Please use the existing Inactive Users API. as of 2024-02/Remove_Breakdown_APIs", DeprecationWarning) request_info = self.to_get_request_information( request_configuration ) @@ -69,6 +72,7 @@ def to_get_request_information(self,request_configuration: Optional[RequestConfi param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: RequestInformation """ + warn("The Inactive Users By Application Metric is deprecated and will stop returning data on February 16, 2024. Please use the existing Inactive Users API. as of 2024-02/Remove_Breakdown_APIs", DeprecationWarning) request_info = RequestInformation(Method.GET, self.url_template, self.path_parameters) request_info.configure(request_configuration) request_info.headers.try_add("Accept", "application/json") @@ -80,6 +84,7 @@ def with_url(self,raw_url: Optional[str] = None) -> InactiveUsersByApplicationRe param raw_url: The raw URL to use for the request builder. Returns: InactiveUsersByApplicationRequestBuilder """ + warn("The Inactive Users By Application Metric is deprecated and will stop returning data on February 16, 2024. Please use the existing Inactive Users API. as of 2024-02/Remove_Breakdown_APIs", DeprecationWarning) if not raw_url: raise TypeError("raw_url cannot be null.") return InactiveUsersByApplicationRequestBuilder(self.request_adapter, raw_url) diff --git a/msgraph_beta/generated/reports/user_insights/daily/inactive_users_by_application/item/daily_inactive_users_by_application_metric_item_request_builder.py b/msgraph_beta/generated/reports/user_insights/daily/inactive_users_by_application/item/daily_inactive_users_by_application_metric_item_request_builder.py index 462ed9abdfe..e3ff31e8526 100644 --- a/msgraph_beta/generated/reports/user_insights/daily/inactive_users_by_application/item/daily_inactive_users_by_application_metric_item_request_builder.py +++ b/msgraph_beta/generated/reports/user_insights/daily/inactive_users_by_application/item/daily_inactive_users_by_application_metric_item_request_builder.py @@ -9,6 +9,7 @@ from kiota_abstractions.request_option import RequestOption from kiota_abstractions.serialization import Parsable, ParsableFactory from typing import Any, Callable, Dict, List, Optional, TYPE_CHECKING, Union +from warnings import warn if TYPE_CHECKING: from ......models.daily_inactive_users_by_application_metric import DailyInactiveUsersByApplicationMetric @@ -33,6 +34,7 @@ async def get(self,request_configuration: Optional[RequestConfiguration] = None) param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: Optional[DailyInactiveUsersByApplicationMetric] """ + warn("The Inactive Users By Application Metric is deprecated and will stop returning data on February 16, 2024. Please use the existing Inactive Users API. as of 2024-02/Remove_Breakdown_APIs", DeprecationWarning) request_info = self.to_get_request_information( request_configuration ) @@ -53,6 +55,7 @@ def to_get_request_information(self,request_configuration: Optional[RequestConfi param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: RequestInformation """ + warn("The Inactive Users By Application Metric is deprecated and will stop returning data on February 16, 2024. Please use the existing Inactive Users API. as of 2024-02/Remove_Breakdown_APIs", DeprecationWarning) request_info = RequestInformation(Method.GET, self.url_template, self.path_parameters) request_info.configure(request_configuration) request_info.headers.try_add("Accept", "application/json") @@ -64,6 +67,7 @@ def with_url(self,raw_url: Optional[str] = None) -> DailyInactiveUsersByApplicat param raw_url: The raw URL to use for the request builder. Returns: DailyInactiveUsersByApplicationMetricItemRequestBuilder """ + warn("The Inactive Users By Application Metric is deprecated and will stop returning data on February 16, 2024. Please use the existing Inactive Users API. as of 2024-02/Remove_Breakdown_APIs", DeprecationWarning) if not raw_url: raise TypeError("raw_url cannot be null.") return DailyInactiveUsersByApplicationMetricItemRequestBuilder(self.request_adapter, raw_url) diff --git a/msgraph_beta/generated/reports/user_insights/monthly/active_users_breakdown/active_users_breakdown_request_builder.py b/msgraph_beta/generated/reports/user_insights/monthly/active_users_breakdown/active_users_breakdown_request_builder.py index 48d8278e53a..09f313b11e8 100644 --- a/msgraph_beta/generated/reports/user_insights/monthly/active_users_breakdown/active_users_breakdown_request_builder.py +++ b/msgraph_beta/generated/reports/user_insights/monthly/active_users_breakdown/active_users_breakdown_request_builder.py @@ -9,6 +9,7 @@ from kiota_abstractions.request_option import RequestOption from kiota_abstractions.serialization import Parsable, ParsableFactory from typing import Any, Callable, Dict, List, Optional, TYPE_CHECKING, Union +from warnings import warn if TYPE_CHECKING: from .....models.active_users_breakdown_metric_collection_response import ActiveUsersBreakdownMetricCollectionResponse @@ -35,6 +36,7 @@ def by_active_users_breakdown_metric_id(self,active_users_breakdown_metric_id: s param active_users_breakdown_metric_id: The unique identifier of activeUsersBreakdownMetric Returns: ActiveUsersBreakdownMetricItemRequestBuilder """ + warn("The Active Users Breakdown Metric is deprecated and will stop returning data on February 16, 2024. Please use the existing Active Users API. as of 2024-02/Remove_Breakdown_APIs", DeprecationWarning) if not active_users_breakdown_metric_id: raise TypeError("active_users_breakdown_metric_id cannot be null.") from .item.active_users_breakdown_metric_item_request_builder import ActiveUsersBreakdownMetricItemRequestBuilder @@ -50,6 +52,7 @@ async def get(self,request_configuration: Optional[RequestConfiguration] = None) Returns: Optional[ActiveUsersBreakdownMetricCollectionResponse] Find more info here: https://learn.microsoft.com/graph/api/monthlyuserinsightmetricsroot-list-activeusersbreakdown?view=graph-rest-1.0 """ + warn("The Active Users Breakdown Metric is deprecated and will stop returning data on February 16, 2024. Please use the existing Active Users API. as of 2024-02/Remove_Breakdown_APIs", DeprecationWarning) request_info = self.to_get_request_information( request_configuration ) @@ -70,6 +73,7 @@ def to_get_request_information(self,request_configuration: Optional[RequestConfi param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: RequestInformation """ + warn("The Active Users Breakdown Metric is deprecated and will stop returning data on February 16, 2024. Please use the existing Active Users API. as of 2024-02/Remove_Breakdown_APIs", DeprecationWarning) request_info = RequestInformation(Method.GET, self.url_template, self.path_parameters) request_info.configure(request_configuration) request_info.headers.try_add("Accept", "application/json") @@ -81,6 +85,7 @@ def with_url(self,raw_url: Optional[str] = None) -> ActiveUsersBreakdownRequestB param raw_url: The raw URL to use for the request builder. Returns: ActiveUsersBreakdownRequestBuilder """ + warn("The Active Users Breakdown Metric is deprecated and will stop returning data on February 16, 2024. Please use the existing Active Users API. as of 2024-02/Remove_Breakdown_APIs", DeprecationWarning) if not raw_url: raise TypeError("raw_url cannot be null.") return ActiveUsersBreakdownRequestBuilder(self.request_adapter, raw_url) diff --git a/msgraph_beta/generated/reports/user_insights/monthly/active_users_breakdown/count/count_request_builder.py b/msgraph_beta/generated/reports/user_insights/monthly/active_users_breakdown/count/count_request_builder.py index 53c2db76f66..6d905cfb158 100644 --- a/msgraph_beta/generated/reports/user_insights/monthly/active_users_breakdown/count/count_request_builder.py +++ b/msgraph_beta/generated/reports/user_insights/monthly/active_users_breakdown/count/count_request_builder.py @@ -9,6 +9,7 @@ from kiota_abstractions.request_option import RequestOption from kiota_abstractions.serialization import Parsable, ParsableFactory from typing import Any, Callable, Dict, List, Optional, TYPE_CHECKING, Union +from warnings import warn if TYPE_CHECKING: from ......models.o_data_errors.o_data_error import ODataError @@ -32,6 +33,7 @@ async def get(self,request_configuration: Optional[RequestConfiguration] = None) param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: Optional[int] """ + warn("The Active Users Breakdown Metric is deprecated and will stop returning data on February 16, 2024. Please use the existing Active Users API. as of 2024-02/Remove_Breakdown_APIs", DeprecationWarning) request_info = self.to_get_request_information( request_configuration ) @@ -50,6 +52,7 @@ def to_get_request_information(self,request_configuration: Optional[RequestConfi param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: RequestInformation """ + warn("The Active Users Breakdown Metric is deprecated and will stop returning data on February 16, 2024. Please use the existing Active Users API. as of 2024-02/Remove_Breakdown_APIs", DeprecationWarning) request_info = RequestInformation(Method.GET, self.url_template, self.path_parameters) request_info.configure(request_configuration) request_info.headers.try_add("Accept", "text/plain;q=0.9") @@ -61,6 +64,7 @@ def with_url(self,raw_url: Optional[str] = None) -> CountRequestBuilder: param raw_url: The raw URL to use for the request builder. Returns: CountRequestBuilder """ + warn("The Active Users Breakdown Metric is deprecated and will stop returning data on February 16, 2024. Please use the existing Active Users API. as of 2024-02/Remove_Breakdown_APIs", DeprecationWarning) if not raw_url: raise TypeError("raw_url cannot be null.") return CountRequestBuilder(self.request_adapter, raw_url) diff --git a/msgraph_beta/generated/reports/user_insights/monthly/active_users_breakdown/item/active_users_breakdown_metric_item_request_builder.py b/msgraph_beta/generated/reports/user_insights/monthly/active_users_breakdown/item/active_users_breakdown_metric_item_request_builder.py index c0cd9712e9f..c239197c34d 100644 --- a/msgraph_beta/generated/reports/user_insights/monthly/active_users_breakdown/item/active_users_breakdown_metric_item_request_builder.py +++ b/msgraph_beta/generated/reports/user_insights/monthly/active_users_breakdown/item/active_users_breakdown_metric_item_request_builder.py @@ -9,6 +9,7 @@ from kiota_abstractions.request_option import RequestOption from kiota_abstractions.serialization import Parsable, ParsableFactory from typing import Any, Callable, Dict, List, Optional, TYPE_CHECKING, Union +from warnings import warn if TYPE_CHECKING: from ......models.active_users_breakdown_metric import ActiveUsersBreakdownMetric @@ -29,10 +30,11 @@ def __init__(self,request_adapter: RequestAdapter, path_parameters: Union[str, D async def get(self,request_configuration: Optional[RequestConfiguration] = None) -> Optional[ActiveUsersBreakdownMetric]: """ - Insights for the breakdown of users who were active on apps registered in the tenant for a specified period. + Get activeUsersBreakdown from reports param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: Optional[ActiveUsersBreakdownMetric] """ + warn("The Active Users Breakdown Metric is deprecated and will stop returning data on February 16, 2024. Please use the existing Active Users API. as of 2024-02/Remove_Breakdown_APIs", DeprecationWarning) request_info = self.to_get_request_information( request_configuration ) @@ -49,10 +51,11 @@ async def get(self,request_configuration: Optional[RequestConfiguration] = None) def to_get_request_information(self,request_configuration: Optional[RequestConfiguration] = None) -> RequestInformation: """ - Insights for the breakdown of users who were active on apps registered in the tenant for a specified period. + Get activeUsersBreakdown from reports param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: RequestInformation """ + warn("The Active Users Breakdown Metric is deprecated and will stop returning data on February 16, 2024. Please use the existing Active Users API. as of 2024-02/Remove_Breakdown_APIs", DeprecationWarning) request_info = RequestInformation(Method.GET, self.url_template, self.path_parameters) request_info.configure(request_configuration) request_info.headers.try_add("Accept", "application/json") @@ -64,6 +67,7 @@ def with_url(self,raw_url: Optional[str] = None) -> ActiveUsersBreakdownMetricIt param raw_url: The raw URL to use for the request builder. Returns: ActiveUsersBreakdownMetricItemRequestBuilder """ + warn("The Active Users Breakdown Metric is deprecated and will stop returning data on February 16, 2024. Please use the existing Active Users API. as of 2024-02/Remove_Breakdown_APIs", DeprecationWarning) if not raw_url: raise TypeError("raw_url cannot be null.") return ActiveUsersBreakdownMetricItemRequestBuilder(self.request_adapter, raw_url) @@ -71,7 +75,7 @@ def with_url(self,raw_url: Optional[str] = None) -> ActiveUsersBreakdownMetricIt @dataclass class ActiveUsersBreakdownMetricItemRequestBuilderGetQueryParameters(): """ - Insights for the breakdown of users who were active on apps registered in the tenant for a specified period. + Get activeUsersBreakdown from reports """ def get_query_parameter(self,original_name: Optional[str] = None) -> str: """ diff --git a/msgraph_beta/generated/reports/user_insights/monthly/inactive_users_by_application/count/count_request_builder.py b/msgraph_beta/generated/reports/user_insights/monthly/inactive_users_by_application/count/count_request_builder.py index a6c01387e08..0b6bb79bc32 100644 --- a/msgraph_beta/generated/reports/user_insights/monthly/inactive_users_by_application/count/count_request_builder.py +++ b/msgraph_beta/generated/reports/user_insights/monthly/inactive_users_by_application/count/count_request_builder.py @@ -9,6 +9,7 @@ from kiota_abstractions.request_option import RequestOption from kiota_abstractions.serialization import Parsable, ParsableFactory from typing import Any, Callable, Dict, List, Optional, TYPE_CHECKING, Union +from warnings import warn if TYPE_CHECKING: from ......models.o_data_errors.o_data_error import ODataError @@ -32,6 +33,7 @@ async def get(self,request_configuration: Optional[RequestConfiguration] = None) param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: Optional[int] """ + warn("The Inactive Users By Application Metric is deprecated and will stop returning data on February 16, 2024. Please use the existing Inactive Users API. as of 2024-02/Remove_Breakdown_APIs", DeprecationWarning) request_info = self.to_get_request_information( request_configuration ) @@ -50,6 +52,7 @@ def to_get_request_information(self,request_configuration: Optional[RequestConfi param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: RequestInformation """ + warn("The Inactive Users By Application Metric is deprecated and will stop returning data on February 16, 2024. Please use the existing Inactive Users API. as of 2024-02/Remove_Breakdown_APIs", DeprecationWarning) request_info = RequestInformation(Method.GET, self.url_template, self.path_parameters) request_info.configure(request_configuration) request_info.headers.try_add("Accept", "text/plain;q=0.9") @@ -61,6 +64,7 @@ def with_url(self,raw_url: Optional[str] = None) -> CountRequestBuilder: param raw_url: The raw URL to use for the request builder. Returns: CountRequestBuilder """ + warn("The Inactive Users By Application Metric is deprecated and will stop returning data on February 16, 2024. Please use the existing Inactive Users API. as of 2024-02/Remove_Breakdown_APIs", DeprecationWarning) if not raw_url: raise TypeError("raw_url cannot be null.") return CountRequestBuilder(self.request_adapter, raw_url) diff --git a/msgraph_beta/generated/reports/user_insights/monthly/inactive_users_by_application/inactive_users_by_application_request_builder.py b/msgraph_beta/generated/reports/user_insights/monthly/inactive_users_by_application/inactive_users_by_application_request_builder.py index 6666882c20b..7987e43e27b 100644 --- a/msgraph_beta/generated/reports/user_insights/monthly/inactive_users_by_application/inactive_users_by_application_request_builder.py +++ b/msgraph_beta/generated/reports/user_insights/monthly/inactive_users_by_application/inactive_users_by_application_request_builder.py @@ -9,6 +9,7 @@ from kiota_abstractions.request_option import RequestOption from kiota_abstractions.serialization import Parsable, ParsableFactory from typing import Any, Callable, Dict, List, Optional, TYPE_CHECKING, Union +from warnings import warn if TYPE_CHECKING: from .....models.monthly_inactive_users_by_application_metric_collection_response import MonthlyInactiveUsersByApplicationMetricCollectionResponse @@ -35,6 +36,7 @@ def by_monthly_inactive_users_by_application_metric_id(self,monthly_inactive_use param monthly_inactive_users_by_application_metric_id: The unique identifier of monthlyInactiveUsersByApplicationMetric Returns: MonthlyInactiveUsersByApplicationMetricItemRequestBuilder """ + warn("The Inactive Users By Application Metric is deprecated and will stop returning data on February 16, 2024. Please use the existing Inactive Users API. as of 2024-02/Remove_Breakdown_APIs", DeprecationWarning) if not monthly_inactive_users_by_application_metric_id: raise TypeError("monthly_inactive_users_by_application_metric_id cannot be null.") from .item.monthly_inactive_users_by_application_metric_item_request_builder import MonthlyInactiveUsersByApplicationMetricItemRequestBuilder @@ -49,6 +51,7 @@ async def get(self,request_configuration: Optional[RequestConfiguration] = None) param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: Optional[MonthlyInactiveUsersByApplicationMetricCollectionResponse] """ + warn("The Inactive Users By Application Metric is deprecated and will stop returning data on February 16, 2024. Please use the existing Inactive Users API. as of 2024-02/Remove_Breakdown_APIs", DeprecationWarning) request_info = self.to_get_request_information( request_configuration ) @@ -69,6 +72,7 @@ def to_get_request_information(self,request_configuration: Optional[RequestConfi param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: RequestInformation """ + warn("The Inactive Users By Application Metric is deprecated and will stop returning data on February 16, 2024. Please use the existing Inactive Users API. as of 2024-02/Remove_Breakdown_APIs", DeprecationWarning) request_info = RequestInformation(Method.GET, self.url_template, self.path_parameters) request_info.configure(request_configuration) request_info.headers.try_add("Accept", "application/json") @@ -80,6 +84,7 @@ def with_url(self,raw_url: Optional[str] = None) -> InactiveUsersByApplicationRe param raw_url: The raw URL to use for the request builder. Returns: InactiveUsersByApplicationRequestBuilder """ + warn("The Inactive Users By Application Metric is deprecated and will stop returning data on February 16, 2024. Please use the existing Inactive Users API. as of 2024-02/Remove_Breakdown_APIs", DeprecationWarning) if not raw_url: raise TypeError("raw_url cannot be null.") return InactiveUsersByApplicationRequestBuilder(self.request_adapter, raw_url) diff --git a/msgraph_beta/generated/reports/user_insights/monthly/inactive_users_by_application/item/monthly_inactive_users_by_application_metric_item_request_builder.py b/msgraph_beta/generated/reports/user_insights/monthly/inactive_users_by_application/item/monthly_inactive_users_by_application_metric_item_request_builder.py index 3b476c7b099..006c1fb074f 100644 --- a/msgraph_beta/generated/reports/user_insights/monthly/inactive_users_by_application/item/monthly_inactive_users_by_application_metric_item_request_builder.py +++ b/msgraph_beta/generated/reports/user_insights/monthly/inactive_users_by_application/item/monthly_inactive_users_by_application_metric_item_request_builder.py @@ -9,6 +9,7 @@ from kiota_abstractions.request_option import RequestOption from kiota_abstractions.serialization import Parsable, ParsableFactory from typing import Any, Callable, Dict, List, Optional, TYPE_CHECKING, Union +from warnings import warn if TYPE_CHECKING: from ......models.monthly_inactive_users_by_application_metric import MonthlyInactiveUsersByApplicationMetric @@ -33,6 +34,7 @@ async def get(self,request_configuration: Optional[RequestConfiguration] = None) param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: Optional[MonthlyInactiveUsersByApplicationMetric] """ + warn("The Inactive Users By Application Metric is deprecated and will stop returning data on February 16, 2024. Please use the existing Inactive Users API. as of 2024-02/Remove_Breakdown_APIs", DeprecationWarning) request_info = self.to_get_request_information( request_configuration ) @@ -53,6 +55,7 @@ def to_get_request_information(self,request_configuration: Optional[RequestConfi param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: RequestInformation """ + warn("The Inactive Users By Application Metric is deprecated and will stop returning data on February 16, 2024. Please use the existing Inactive Users API. as of 2024-02/Remove_Breakdown_APIs", DeprecationWarning) request_info = RequestInformation(Method.GET, self.url_template, self.path_parameters) request_info.configure(request_configuration) request_info.headers.try_add("Accept", "application/json") @@ -64,6 +67,7 @@ def with_url(self,raw_url: Optional[str] = None) -> MonthlyInactiveUsersByApplic param raw_url: The raw URL to use for the request builder. Returns: MonthlyInactiveUsersByApplicationMetricItemRequestBuilder """ + warn("The Inactive Users By Application Metric is deprecated and will stop returning data on February 16, 2024. Please use the existing Inactive Users API. as of 2024-02/Remove_Breakdown_APIs", DeprecationWarning) if not raw_url: raise TypeError("raw_url cannot be null.") return MonthlyInactiveUsersByApplicationMetricItemRequestBuilder(self.request_adapter, raw_url) diff --git a/msgraph_beta/generated/risk_detections/risk_detections_request_builder.py b/msgraph_beta/generated/risk_detections/risk_detections_request_builder.py index d4423574515..87c6f383f85 100644 --- a/msgraph_beta/generated/risk_detections/risk_detections_request_builder.py +++ b/msgraph_beta/generated/risk_detections/risk_detections_request_builder.py @@ -45,10 +45,10 @@ def by_risk_detection_id(self,risk_detection_id: str) -> RiskDetectionItemReques async def get(self,request_configuration: Optional[RequestConfiguration] = None) -> Optional[RiskDetectionCollectionResponse]: """ - Retrieve the properties of a riskDetection object. + Retrieve the properties of a collection of riskDetection objects. param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: Optional[RiskDetectionCollectionResponse] - Find more info here: https://learn.microsoft.com/graph/api/riskdetection-get?view=graph-rest-1.0 + Find more info here: https://learn.microsoft.com/graph/api/riskdetection-list?view=graph-rest-1.0 """ request_info = self.to_get_request_information( request_configuration @@ -89,7 +89,7 @@ async def post(self,body: Optional[RiskDetection] = None, request_configuration: def to_get_request_information(self,request_configuration: Optional[RequestConfiguration] = None) -> RequestInformation: """ - Retrieve the properties of a riskDetection object. + Retrieve the properties of a collection of riskDetection objects. param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: RequestInformation """ @@ -126,7 +126,7 @@ def with_url(self,raw_url: Optional[str] = None) -> RiskDetectionsRequestBuilder @dataclass class RiskDetectionsRequestBuilderGetQueryParameters(): """ - Retrieve the properties of a riskDetection object. + Retrieve the properties of a collection of riskDetection objects. """ def get_query_parameter(self,original_name: Optional[str] = None) -> str: """ diff --git a/msgraph_beta/generated/security/audit_log/queries/item/audit_log_query_item_request_builder.py b/msgraph_beta/generated/security/audit_log/queries/item/audit_log_query_item_request_builder.py index 799b3733fb6..73c85ade6ac 100644 --- a/msgraph_beta/generated/security/audit_log/queries/item/audit_log_query_item_request_builder.py +++ b/msgraph_beta/generated/security/audit_log/queries/item/audit_log_query_item_request_builder.py @@ -48,9 +48,10 @@ async def delete(self,request_configuration: Optional[RequestConfiguration] = No async def get(self,request_configuration: Optional[RequestConfiguration] = None) -> Optional[AuditLogQuery]: """ - Get queries from security + Read the properties and relationships of an auditLogQuery object. param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: Optional[AuditLogQuery] + Find more info here: https://learn.microsoft.com/graph/api/security-auditlogquery-get?view=graph-rest-1.0 """ request_info = self.to_get_request_information( request_configuration @@ -102,7 +103,7 @@ def to_delete_request_information(self,request_configuration: Optional[RequestCo def to_get_request_information(self,request_configuration: Optional[RequestConfiguration] = None) -> RequestInformation: """ - Get queries from security + Read the properties and relationships of an auditLogQuery object. param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: RequestInformation """ @@ -148,7 +149,7 @@ def records(self) -> RecordsRequestBuilder: @dataclass class AuditLogQueryItemRequestBuilderGetQueryParameters(): """ - Get queries from security + Read the properties and relationships of an auditLogQuery object. """ def get_query_parameter(self,original_name: Optional[str] = None) -> str: """ diff --git a/msgraph_beta/generated/security/audit_log/queries/item/records/records_request_builder.py b/msgraph_beta/generated/security/audit_log/queries/item/records/records_request_builder.py index d9953717952..bf6f59d9480 100644 --- a/msgraph_beta/generated/security/audit_log/queries/item/records/records_request_builder.py +++ b/msgraph_beta/generated/security/audit_log/queries/item/records/records_request_builder.py @@ -46,9 +46,10 @@ def by_audit_log_record_id(self,audit_log_record_id: str) -> AuditLogRecordItemR async def get(self,request_configuration: Optional[RequestConfiguration] = None) -> Optional[AuditLogRecordCollectionResponse]: """ - An individual audit log record. + Get a list of the auditLogRecord objects and their properties. param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: Optional[AuditLogRecordCollectionResponse] + Find more info here: https://learn.microsoft.com/graph/api/security-auditlogquery-list-records?view=graph-rest-1.0 """ request_info = self.to_get_request_information( request_configuration @@ -89,7 +90,7 @@ async def post(self,body: Optional[AuditLogRecord] = None, request_configuration def to_get_request_information(self,request_configuration: Optional[RequestConfiguration] = None) -> RequestInformation: """ - An individual audit log record. + Get a list of the auditLogRecord objects and their properties. param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: RequestInformation """ @@ -135,7 +136,7 @@ def count(self) -> CountRequestBuilder: @dataclass class RecordsRequestBuilderGetQueryParameters(): """ - An individual audit log record. + Get a list of the auditLogRecord objects and their properties. """ def get_query_parameter(self,original_name: Optional[str] = None) -> str: """ diff --git a/msgraph_beta/generated/security/audit_log/queries/queries_request_builder.py b/msgraph_beta/generated/security/audit_log/queries/queries_request_builder.py index 2b8f2e52f6e..023d9294290 100644 --- a/msgraph_beta/generated/security/audit_log/queries/queries_request_builder.py +++ b/msgraph_beta/generated/security/audit_log/queries/queries_request_builder.py @@ -46,9 +46,10 @@ def by_audit_log_query_id(self,audit_log_query_id: str) -> AuditLogQueryItemRequ async def get(self,request_configuration: Optional[RequestConfiguration] = None) -> Optional[AuditLogQueryCollectionResponse]: """ - Get queries from security + Get a list of auditLogQuery objects and their properties. param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: Optional[AuditLogQueryCollectionResponse] + Find more info here: https://learn.microsoft.com/graph/api/security-auditcoreroot-list-auditlogqueries?view=graph-rest-1.0 """ request_info = self.to_get_request_information( request_configuration @@ -66,10 +67,11 @@ async def get(self,request_configuration: Optional[RequestConfiguration] = None) async def post(self,body: Optional[AuditLogQuery] = None, request_configuration: Optional[RequestConfiguration] = None) -> Optional[AuditLogQuery]: """ - Create new navigation property to queries for security + Create a new auditLogQuery object. param body: The request body param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: Optional[AuditLogQuery] + Find more info here: https://learn.microsoft.com/graph/api/security-auditcoreroot-post-auditlogqueries?view=graph-rest-1.0 """ if not body: raise TypeError("body cannot be null.") @@ -89,7 +91,7 @@ async def post(self,body: Optional[AuditLogQuery] = None, request_configuration: def to_get_request_information(self,request_configuration: Optional[RequestConfiguration] = None) -> RequestInformation: """ - Get queries from security + Get a list of auditLogQuery objects and their properties. param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: RequestInformation """ @@ -100,7 +102,7 @@ def to_get_request_information(self,request_configuration: Optional[RequestConfi def to_post_request_information(self,body: Optional[AuditLogQuery] = None, request_configuration: Optional[RequestConfiguration] = None) -> RequestInformation: """ - Create new navigation property to queries for security + Create a new auditLogQuery object. param body: The request body param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: RequestInformation @@ -135,7 +137,7 @@ def count(self) -> CountRequestBuilder: @dataclass class QueriesRequestBuilderGetQueryParameters(): """ - Get queries from security + Get a list of auditLogQuery objects and their properties. """ def get_query_parameter(self,original_name: Optional[str] = None) -> str: """ diff --git a/msgraph_beta/generated/security/rules/detection_rules/count/count_request_builder.py b/msgraph_beta/generated/security/rules/detection_rules/count/count_request_builder.py new file mode 100644 index 00000000000..756db78a02a --- /dev/null +++ b/msgraph_beta/generated/security/rules/detection_rules/count/count_request_builder.py @@ -0,0 +1,94 @@ +from __future__ import annotations +from dataclasses import dataclass, field +from kiota_abstractions.base_request_builder import BaseRequestBuilder +from kiota_abstractions.base_request_configuration import RequestConfiguration +from kiota_abstractions.get_path_parameters import get_path_parameters +from kiota_abstractions.method import Method +from kiota_abstractions.request_adapter import RequestAdapter +from kiota_abstractions.request_information import RequestInformation +from kiota_abstractions.request_option import RequestOption +from kiota_abstractions.serialization import Parsable, ParsableFactory +from typing import Any, Callable, Dict, List, Optional, TYPE_CHECKING, Union + +if TYPE_CHECKING: + from .....models.o_data_errors.o_data_error import ODataError + +class CountRequestBuilder(BaseRequestBuilder): + """ + Provides operations to count the resources in the collection. + """ + def __init__(self,request_adapter: RequestAdapter, path_parameters: Union[str, Dict[str, Any]]) -> None: + """ + Instantiates a new CountRequestBuilder and sets the default values. + param path_parameters: The raw url or the url-template parameters for the request. + param request_adapter: The request adapter to use to execute the requests. + Returns: None + """ + super().__init__(request_adapter, "{+baseurl}/security/rules/detectionRules/$count{?%24filter,%24search}", path_parameters) + + async def get(self,request_configuration: Optional[RequestConfiguration] = None) -> Optional[int]: + """ + Get the number of the resource + param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. + Returns: Optional[int] + """ + request_info = self.to_get_request_information( + request_configuration + ) + from .....models.o_data_errors.o_data_error import ODataError + + error_mapping: Dict[str, ParsableFactory] = { + "XXX": ODataError, + } + if not self.request_adapter: + raise Exception("Http core is null") + return await self.request_adapter.send_primitive_async(request_info, "int", error_mapping) + + def to_get_request_information(self,request_configuration: Optional[RequestConfiguration] = None) -> RequestInformation: + """ + Get the number of the resource + param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. + Returns: RequestInformation + """ + request_info = RequestInformation(Method.GET, self.url_template, self.path_parameters) + request_info.configure(request_configuration) + request_info.headers.try_add("Accept", "text/plain;q=0.9") + return request_info + + def with_url(self,raw_url: Optional[str] = None) -> CountRequestBuilder: + """ + Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + param raw_url: The raw URL to use for the request builder. + Returns: CountRequestBuilder + """ + if not raw_url: + raise TypeError("raw_url cannot be null.") + return CountRequestBuilder(self.request_adapter, raw_url) + + @dataclass + class CountRequestBuilderGetQueryParameters(): + """ + Get the number of the resource + """ + def get_query_parameter(self,original_name: Optional[str] = None) -> str: + """ + Maps the query parameters names to their encoded names for the URI template parsing. + param original_name: The original query parameter name in the class. + Returns: str + """ + if not original_name: + raise TypeError("original_name cannot be null.") + if original_name == "filter": + return "%24filter" + if original_name == "search": + return "%24search" + return original_name + + # Filter items by property values + filter: Optional[str] = None + + # Search items by search phrases + search: Optional[str] = None + + + diff --git a/msgraph_beta/generated/security/rules/detection_rules/detection_rules_request_builder.py b/msgraph_beta/generated/security/rules/detection_rules/detection_rules_request_builder.py new file mode 100644 index 00000000000..792c66acb60 --- /dev/null +++ b/msgraph_beta/generated/security/rules/detection_rules/detection_rules_request_builder.py @@ -0,0 +1,192 @@ +from __future__ import annotations +from dataclasses import dataclass, field +from kiota_abstractions.base_request_builder import BaseRequestBuilder +from kiota_abstractions.base_request_configuration import RequestConfiguration +from kiota_abstractions.get_path_parameters import get_path_parameters +from kiota_abstractions.method import Method +from kiota_abstractions.request_adapter import RequestAdapter +from kiota_abstractions.request_information import RequestInformation +from kiota_abstractions.request_option import RequestOption +from kiota_abstractions.serialization import Parsable, ParsableFactory +from typing import Any, Callable, Dict, List, Optional, TYPE_CHECKING, Union + +if TYPE_CHECKING: + from ....models.o_data_errors.o_data_error import ODataError + from ....models.security.detection_rule import DetectionRule + from ....models.security.detection_rule_collection_response import DetectionRuleCollectionResponse + from .count.count_request_builder import CountRequestBuilder + from .item.detection_rule_item_request_builder import DetectionRuleItemRequestBuilder + +class DetectionRulesRequestBuilder(BaseRequestBuilder): + """ + Provides operations to manage the detectionRules property of the microsoft.graph.security.rulesRoot entity. + """ + def __init__(self,request_adapter: RequestAdapter, path_parameters: Union[str, Dict[str, Any]]) -> None: + """ + Instantiates a new DetectionRulesRequestBuilder and sets the default values. + param path_parameters: The raw url or the url-template parameters for the request. + param request_adapter: The request adapter to use to execute the requests. + Returns: None + """ + super().__init__(request_adapter, "{+baseurl}/security/rules/detectionRules{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", path_parameters) + + def by_detection_rule_id(self,detection_rule_id: str) -> DetectionRuleItemRequestBuilder: + """ + Provides operations to manage the detectionRules property of the microsoft.graph.security.rulesRoot entity. + param detection_rule_id: The unique identifier of detectionRule + Returns: DetectionRuleItemRequestBuilder + """ + if not detection_rule_id: + raise TypeError("detection_rule_id cannot be null.") + from .item.detection_rule_item_request_builder import DetectionRuleItemRequestBuilder + + url_tpl_params = get_path_parameters(self.path_parameters) + url_tpl_params["detectionRule%2Did"] = detection_rule_id + return DetectionRuleItemRequestBuilder(self.request_adapter, url_tpl_params) + + async def get(self,request_configuration: Optional[RequestConfiguration] = None) -> Optional[DetectionRuleCollectionResponse]: + """ + Get a list of custom detection rules.With custom detections, you can proactively monitor for and respond to various events and system states, including suspected breach activity and misconfigured assets in their organization network.Custom detection rules, which are written in Kusto query language (KQL), automatically trigger alerts and response actions once there are events matching their KQL queries. + param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. + Returns: Optional[DetectionRuleCollectionResponse] + Find more info here: https://learn.microsoft.com/graph/api/security-detectionrule-list?view=graph-rest-1.0 + """ + request_info = self.to_get_request_information( + request_configuration + ) + from ....models.o_data_errors.o_data_error import ODataError + + error_mapping: Dict[str, ParsableFactory] = { + "XXX": ODataError, + } + if not self.request_adapter: + raise Exception("Http core is null") + from ....models.security.detection_rule_collection_response import DetectionRuleCollectionResponse + + return await self.request_adapter.send_async(request_info, DetectionRuleCollectionResponse, error_mapping) + + async def post(self,body: Optional[DetectionRule] = None, request_configuration: Optional[RequestConfiguration] = None) -> Optional[DetectionRule]: + """ + Create new navigation property to detectionRules for security + param body: The request body + param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. + Returns: Optional[DetectionRule] + """ + if not body: + raise TypeError("body cannot be null.") + request_info = self.to_post_request_information( + body, request_configuration + ) + from ....models.o_data_errors.o_data_error import ODataError + + error_mapping: Dict[str, ParsableFactory] = { + "XXX": ODataError, + } + if not self.request_adapter: + raise Exception("Http core is null") + from ....models.security.detection_rule import DetectionRule + + return await self.request_adapter.send_async(request_info, DetectionRule, error_mapping) + + def to_get_request_information(self,request_configuration: Optional[RequestConfiguration] = None) -> RequestInformation: + """ + Get a list of custom detection rules.With custom detections, you can proactively monitor for and respond to various events and system states, including suspected breach activity and misconfigured assets in their organization network.Custom detection rules, which are written in Kusto query language (KQL), automatically trigger alerts and response actions once there are events matching their KQL queries. + param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. + Returns: RequestInformation + """ + request_info = RequestInformation(Method.GET, self.url_template, self.path_parameters) + request_info.configure(request_configuration) + request_info.headers.try_add("Accept", "application/json") + return request_info + + def to_post_request_information(self,body: Optional[DetectionRule] = None, request_configuration: Optional[RequestConfiguration] = None) -> RequestInformation: + """ + Create new navigation property to detectionRules for security + param body: The request body + param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. + Returns: RequestInformation + """ + if not body: + raise TypeError("body cannot be null.") + request_info = RequestInformation(Method.POST, '{+baseurl}/security/rules/detectionRules', self.path_parameters) + request_info.configure(request_configuration) + request_info.headers.try_add("Accept", "application/json") + request_info.set_content_from_parsable(self.request_adapter, "application/json", body) + return request_info + + def with_url(self,raw_url: Optional[str] = None) -> DetectionRulesRequestBuilder: + """ + Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + param raw_url: The raw URL to use for the request builder. + Returns: DetectionRulesRequestBuilder + """ + if not raw_url: + raise TypeError("raw_url cannot be null.") + return DetectionRulesRequestBuilder(self.request_adapter, raw_url) + + @property + def count(self) -> CountRequestBuilder: + """ + Provides operations to count the resources in the collection. + """ + from .count.count_request_builder import CountRequestBuilder + + return CountRequestBuilder(self.request_adapter, self.path_parameters) + + @dataclass + class DetectionRulesRequestBuilderGetQueryParameters(): + """ + Get a list of custom detection rules.With custom detections, you can proactively monitor for and respond to various events and system states, including suspected breach activity and misconfigured assets in their organization network.Custom detection rules, which are written in Kusto query language (KQL), automatically trigger alerts and response actions once there are events matching their KQL queries. + """ + def get_query_parameter(self,original_name: Optional[str] = None) -> str: + """ + Maps the query parameters names to their encoded names for the URI template parsing. + param original_name: The original query parameter name in the class. + Returns: str + """ + if not original_name: + raise TypeError("original_name cannot be null.") + if original_name == "count": + return "%24count" + if original_name == "expand": + return "%24expand" + if original_name == "filter": + return "%24filter" + if original_name == "orderby": + return "%24orderby" + if original_name == "search": + return "%24search" + if original_name == "select": + return "%24select" + if original_name == "skip": + return "%24skip" + if original_name == "top": + return "%24top" + return original_name + + # Include count of items + count: Optional[bool] = None + + # Expand related entities + expand: Optional[List[str]] = None + + # Filter items by property values + filter: Optional[str] = None + + # Order items by property values + orderby: Optional[List[str]] = None + + # Search items by search phrases + search: Optional[str] = None + + # Select properties to be returned + select: Optional[List[str]] = None + + # Skip the first n items + skip: Optional[int] = None + + # Show only the first n items + top: Optional[int] = None + + + diff --git a/msgraph_beta/generated/security/rules/detection_rules/item/detection_rule_item_request_builder.py b/msgraph_beta/generated/security/rules/detection_rules/item/detection_rule_item_request_builder.py new file mode 100644 index 00000000000..bf1baa90007 --- /dev/null +++ b/msgraph_beta/generated/security/rules/detection_rules/item/detection_rule_item_request_builder.py @@ -0,0 +1,164 @@ +from __future__ import annotations +from dataclasses import dataclass, field +from kiota_abstractions.base_request_builder import BaseRequestBuilder +from kiota_abstractions.base_request_configuration import RequestConfiguration +from kiota_abstractions.get_path_parameters import get_path_parameters +from kiota_abstractions.method import Method +from kiota_abstractions.request_adapter import RequestAdapter +from kiota_abstractions.request_information import RequestInformation +from kiota_abstractions.request_option import RequestOption +from kiota_abstractions.serialization import Parsable, ParsableFactory +from typing import Any, Callable, Dict, List, Optional, TYPE_CHECKING, Union + +if TYPE_CHECKING: + from .....models.o_data_errors.o_data_error import ODataError + from .....models.security.detection_rule import DetectionRule + +class DetectionRuleItemRequestBuilder(BaseRequestBuilder): + """ + Provides operations to manage the detectionRules property of the microsoft.graph.security.rulesRoot entity. + """ + def __init__(self,request_adapter: RequestAdapter, path_parameters: Union[str, Dict[str, Any]]) -> None: + """ + Instantiates a new DetectionRuleItemRequestBuilder and sets the default values. + param path_parameters: The raw url or the url-template parameters for the request. + param request_adapter: The request adapter to use to execute the requests. + Returns: None + """ + super().__init__(request_adapter, "{+baseurl}/security/rules/detectionRules/{detectionRule%2Did}{?%24expand,%24select}", path_parameters) + + async def delete(self,request_configuration: Optional[RequestConfiguration] = None) -> None: + """ + Delete navigation property detectionRules for security + param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. + Returns: None + """ + request_info = self.to_delete_request_information( + request_configuration + ) + from .....models.o_data_errors.o_data_error import ODataError + + error_mapping: Dict[str, ParsableFactory] = { + "XXX": ODataError, + } + if not self.request_adapter: + raise Exception("Http core is null") + return await self.request_adapter.send_no_response_content_async(request_info, error_mapping) + + async def get(self,request_configuration: Optional[RequestConfiguration] = None) -> Optional[DetectionRule]: + """ + Get detectionRules from security + param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. + Returns: Optional[DetectionRule] + """ + request_info = self.to_get_request_information( + request_configuration + ) + from .....models.o_data_errors.o_data_error import ODataError + + error_mapping: Dict[str, ParsableFactory] = { + "XXX": ODataError, + } + if not self.request_adapter: + raise Exception("Http core is null") + from .....models.security.detection_rule import DetectionRule + + return await self.request_adapter.send_async(request_info, DetectionRule, error_mapping) + + async def patch(self,body: Optional[DetectionRule] = None, request_configuration: Optional[RequestConfiguration] = None) -> Optional[DetectionRule]: + """ + Update the navigation property detectionRules in security + param body: The request body + param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. + Returns: Optional[DetectionRule] + """ + if not body: + raise TypeError("body cannot be null.") + request_info = self.to_patch_request_information( + body, request_configuration + ) + from .....models.o_data_errors.o_data_error import ODataError + + error_mapping: Dict[str, ParsableFactory] = { + "XXX": ODataError, + } + if not self.request_adapter: + raise Exception("Http core is null") + from .....models.security.detection_rule import DetectionRule + + return await self.request_adapter.send_async(request_info, DetectionRule, error_mapping) + + def to_delete_request_information(self,request_configuration: Optional[RequestConfiguration] = None) -> RequestInformation: + """ + Delete navigation property detectionRules for security + param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. + Returns: RequestInformation + """ + request_info = RequestInformation(Method.DELETE, '{+baseurl}/security/rules/detectionRules/{detectionRule%2Did}', self.path_parameters) + request_info.configure(request_configuration) + request_info.headers.try_add("Accept", "application/json") + return request_info + + def to_get_request_information(self,request_configuration: Optional[RequestConfiguration] = None) -> RequestInformation: + """ + Get detectionRules from security + param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. + Returns: RequestInformation + """ + request_info = RequestInformation(Method.GET, self.url_template, self.path_parameters) + request_info.configure(request_configuration) + request_info.headers.try_add("Accept", "application/json") + return request_info + + def to_patch_request_information(self,body: Optional[DetectionRule] = None, request_configuration: Optional[RequestConfiguration] = None) -> RequestInformation: + """ + Update the navigation property detectionRules in security + param body: The request body + param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. + Returns: RequestInformation + """ + if not body: + raise TypeError("body cannot be null.") + request_info = RequestInformation(Method.PATCH, '{+baseurl}/security/rules/detectionRules/{detectionRule%2Did}', self.path_parameters) + request_info.configure(request_configuration) + request_info.headers.try_add("Accept", "application/json") + request_info.set_content_from_parsable(self.request_adapter, "application/json", body) + return request_info + + def with_url(self,raw_url: Optional[str] = None) -> DetectionRuleItemRequestBuilder: + """ + Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + param raw_url: The raw URL to use for the request builder. + Returns: DetectionRuleItemRequestBuilder + """ + if not raw_url: + raise TypeError("raw_url cannot be null.") + return DetectionRuleItemRequestBuilder(self.request_adapter, raw_url) + + @dataclass + class DetectionRuleItemRequestBuilderGetQueryParameters(): + """ + Get detectionRules from security + """ + def get_query_parameter(self,original_name: Optional[str] = None) -> str: + """ + Maps the query parameters names to their encoded names for the URI template parsing. + param original_name: The original query parameter name in the class. + Returns: str + """ + if not original_name: + raise TypeError("original_name cannot be null.") + if original_name == "expand": + return "%24expand" + if original_name == "select": + return "%24select" + return original_name + + # Expand related entities + expand: Optional[List[str]] = None + + # Select properties to be returned + select: Optional[List[str]] = None + + + diff --git a/msgraph_beta/generated/security/rules/rules_request_builder.py b/msgraph_beta/generated/security/rules/rules_request_builder.py new file mode 100644 index 00000000000..76e7310ac2c --- /dev/null +++ b/msgraph_beta/generated/security/rules/rules_request_builder.py @@ -0,0 +1,174 @@ +from __future__ import annotations +from dataclasses import dataclass, field +from kiota_abstractions.base_request_builder import BaseRequestBuilder +from kiota_abstractions.base_request_configuration import RequestConfiguration +from kiota_abstractions.get_path_parameters import get_path_parameters +from kiota_abstractions.method import Method +from kiota_abstractions.request_adapter import RequestAdapter +from kiota_abstractions.request_information import RequestInformation +from kiota_abstractions.request_option import RequestOption +from kiota_abstractions.serialization import Parsable, ParsableFactory +from typing import Any, Callable, Dict, List, Optional, TYPE_CHECKING, Union + +if TYPE_CHECKING: + from ...models.o_data_errors.o_data_error import ODataError + from ...models.security.rules_root import RulesRoot + from .detection_rules.detection_rules_request_builder import DetectionRulesRequestBuilder + +class RulesRequestBuilder(BaseRequestBuilder): + """ + Provides operations to manage the rules property of the microsoft.graph.security entity. + """ + def __init__(self,request_adapter: RequestAdapter, path_parameters: Union[str, Dict[str, Any]]) -> None: + """ + Instantiates a new RulesRequestBuilder and sets the default values. + param path_parameters: The raw url or the url-template parameters for the request. + param request_adapter: The request adapter to use to execute the requests. + Returns: None + """ + super().__init__(request_adapter, "{+baseurl}/security/rules{?%24expand,%24select}", path_parameters) + + async def delete(self,request_configuration: Optional[RequestConfiguration] = None) -> None: + """ + Delete navigation property rules for security + param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. + Returns: None + """ + request_info = self.to_delete_request_information( + request_configuration + ) + from ...models.o_data_errors.o_data_error import ODataError + + error_mapping: Dict[str, ParsableFactory] = { + "XXX": ODataError, + } + if not self.request_adapter: + raise Exception("Http core is null") + return await self.request_adapter.send_no_response_content_async(request_info, error_mapping) + + async def get(self,request_configuration: Optional[RequestConfiguration] = None) -> Optional[RulesRoot]: + """ + Get rules from security + param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. + Returns: Optional[RulesRoot] + """ + request_info = self.to_get_request_information( + request_configuration + ) + from ...models.o_data_errors.o_data_error import ODataError + + error_mapping: Dict[str, ParsableFactory] = { + "XXX": ODataError, + } + if not self.request_adapter: + raise Exception("Http core is null") + from ...models.security.rules_root import RulesRoot + + return await self.request_adapter.send_async(request_info, RulesRoot, error_mapping) + + async def patch(self,body: Optional[RulesRoot] = None, request_configuration: Optional[RequestConfiguration] = None) -> Optional[RulesRoot]: + """ + Update the navigation property rules in security + param body: The request body + param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. + Returns: Optional[RulesRoot] + """ + if not body: + raise TypeError("body cannot be null.") + request_info = self.to_patch_request_information( + body, request_configuration + ) + from ...models.o_data_errors.o_data_error import ODataError + + error_mapping: Dict[str, ParsableFactory] = { + "XXX": ODataError, + } + if not self.request_adapter: + raise Exception("Http core is null") + from ...models.security.rules_root import RulesRoot + + return await self.request_adapter.send_async(request_info, RulesRoot, error_mapping) + + def to_delete_request_information(self,request_configuration: Optional[RequestConfiguration] = None) -> RequestInformation: + """ + Delete navigation property rules for security + param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. + Returns: RequestInformation + """ + request_info = RequestInformation(Method.DELETE, '{+baseurl}/security/rules', self.path_parameters) + request_info.configure(request_configuration) + request_info.headers.try_add("Accept", "application/json") + return request_info + + def to_get_request_information(self,request_configuration: Optional[RequestConfiguration] = None) -> RequestInformation: + """ + Get rules from security + param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. + Returns: RequestInformation + """ + request_info = RequestInformation(Method.GET, self.url_template, self.path_parameters) + request_info.configure(request_configuration) + request_info.headers.try_add("Accept", "application/json") + return request_info + + def to_patch_request_information(self,body: Optional[RulesRoot] = None, request_configuration: Optional[RequestConfiguration] = None) -> RequestInformation: + """ + Update the navigation property rules in security + param body: The request body + param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. + Returns: RequestInformation + """ + if not body: + raise TypeError("body cannot be null.") + request_info = RequestInformation(Method.PATCH, '{+baseurl}/security/rules', self.path_parameters) + request_info.configure(request_configuration) + request_info.headers.try_add("Accept", "application/json") + request_info.set_content_from_parsable(self.request_adapter, "application/json", body) + return request_info + + def with_url(self,raw_url: Optional[str] = None) -> RulesRequestBuilder: + """ + Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + param raw_url: The raw URL to use for the request builder. + Returns: RulesRequestBuilder + """ + if not raw_url: + raise TypeError("raw_url cannot be null.") + return RulesRequestBuilder(self.request_adapter, raw_url) + + @property + def detection_rules(self) -> DetectionRulesRequestBuilder: + """ + Provides operations to manage the detectionRules property of the microsoft.graph.security.rulesRoot entity. + """ + from .detection_rules.detection_rules_request_builder import DetectionRulesRequestBuilder + + return DetectionRulesRequestBuilder(self.request_adapter, self.path_parameters) + + @dataclass + class RulesRequestBuilderGetQueryParameters(): + """ + Get rules from security + """ + def get_query_parameter(self,original_name: Optional[str] = None) -> str: + """ + Maps the query parameters names to their encoded names for the URI template parsing. + param original_name: The original query parameter name in the class. + Returns: str + """ + if not original_name: + raise TypeError("original_name cannot be null.") + if original_name == "expand": + return "%24expand" + if original_name == "select": + return "%24select" + return original_name + + # Expand related entities + expand: Optional[List[str]] = None + + # Select properties to be returned + select: Optional[List[str]] = None + + + diff --git a/msgraph_beta/generated/security/security_request_builder.py b/msgraph_beta/generated/security/security_request_builder.py index 0a06b6e60c0..681358d8a18 100644 --- a/msgraph_beta/generated/security/security_request_builder.py +++ b/msgraph_beta/generated/security/security_request_builder.py @@ -29,6 +29,7 @@ from .labels.labels_request_builder import LabelsRequestBuilder from .microsoft_graph_security_run_hunting_query.microsoft_graph_security_run_hunting_query_request_builder import MicrosoftGraphSecurityRunHuntingQueryRequestBuilder from .provider_tenant_settings.provider_tenant_settings_request_builder import ProviderTenantSettingsRequestBuilder + from .rules.rules_request_builder import RulesRequestBuilder from .secure_scores.secure_scores_request_builder import SecureScoresRequestBuilder from .secure_score_control_profiles.secure_score_control_profiles_request_builder import SecureScoreControlProfilesRequestBuilder from .security_actions.security_actions_request_builder import SecurityActionsRequestBuilder @@ -276,6 +277,15 @@ def provider_tenant_settings(self) -> ProviderTenantSettingsRequestBuilder: return ProviderTenantSettingsRequestBuilder(self.request_adapter, self.path_parameters) + @property + def rules(self) -> RulesRequestBuilder: + """ + Provides operations to manage the rules property of the microsoft.graph.security entity. + """ + from .rules.rules_request_builder import RulesRequestBuilder + + return RulesRequestBuilder(self.request_adapter, self.path_parameters) + @property def secure_score_control_profiles(self) -> SecureScoreControlProfilesRequestBuilder: """ diff --git a/msgraph_beta/generated/service_principals/item/federated_identity_credentials_with_name/federated_identity_credentials_with_name_request_builder.py b/msgraph_beta/generated/service_principals/item/federated_identity_credentials_with_name/federated_identity_credentials_with_name_request_builder.py new file mode 100644 index 00000000000..d37d25f0614 --- /dev/null +++ b/msgraph_beta/generated/service_principals/item/federated_identity_credentials_with_name/federated_identity_credentials_with_name_request_builder.py @@ -0,0 +1,167 @@ +from __future__ import annotations +from dataclasses import dataclass, field +from kiota_abstractions.base_request_builder import BaseRequestBuilder +from kiota_abstractions.base_request_configuration import RequestConfiguration +from kiota_abstractions.get_path_parameters import get_path_parameters +from kiota_abstractions.method import Method +from kiota_abstractions.request_adapter import RequestAdapter +from kiota_abstractions.request_information import RequestInformation +from kiota_abstractions.request_option import RequestOption +from kiota_abstractions.serialization import Parsable, ParsableFactory +from typing import Any, Callable, Dict, List, Optional, TYPE_CHECKING, Union + +if TYPE_CHECKING: + from ....models.federated_identity_credential import FederatedIdentityCredential + from ....models.o_data_errors.o_data_error import ODataError + +class FederatedIdentityCredentialsWithNameRequestBuilder(BaseRequestBuilder): + """ + Provides operations to manage the federatedIdentityCredentials property of the microsoft.graph.servicePrincipal entity. + """ + def __init__(self,request_adapter: RequestAdapter, path_parameters: Union[str, Dict[str, Any]], name: Optional[str] = None) -> None: + """ + Instantiates a new FederatedIdentityCredentialsWithNameRequestBuilder and sets the default values. + param name: Alternate key of federatedIdentityCredential + param path_parameters: The raw url or the url-template parameters for the request. + param request_adapter: The request adapter to use to execute the requests. + Returns: None + """ + if isinstance(path_parameters, dict): + path_parameters['name'] = str(name) + super().__init__(request_adapter, "{+baseurl}/servicePrincipals/{servicePrincipal%2Did}/federatedIdentityCredentials(name='{name}'){?%24expand,%24select}", path_parameters) + + async def delete(self,request_configuration: Optional[RequestConfiguration] = None) -> None: + """ + Delete navigation property federatedIdentityCredentials for servicePrincipals + param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. + Returns: None + """ + request_info = self.to_delete_request_information( + request_configuration + ) + from ....models.o_data_errors.o_data_error import ODataError + + error_mapping: Dict[str, ParsableFactory] = { + "XXX": ODataError, + } + if not self.request_adapter: + raise Exception("Http core is null") + return await self.request_adapter.send_no_response_content_async(request_info, error_mapping) + + async def get(self,request_configuration: Optional[RequestConfiguration] = None) -> Optional[FederatedIdentityCredential]: + """ + Get federatedIdentityCredentials from servicePrincipals + param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. + Returns: Optional[FederatedIdentityCredential] + """ + request_info = self.to_get_request_information( + request_configuration + ) + from ....models.o_data_errors.o_data_error import ODataError + + error_mapping: Dict[str, ParsableFactory] = { + "XXX": ODataError, + } + if not self.request_adapter: + raise Exception("Http core is null") + from ....models.federated_identity_credential import FederatedIdentityCredential + + return await self.request_adapter.send_async(request_info, FederatedIdentityCredential, error_mapping) + + async def patch(self,body: Optional[FederatedIdentityCredential] = None, request_configuration: Optional[RequestConfiguration] = None) -> Optional[FederatedIdentityCredential]: + """ + Update the navigation property federatedIdentityCredentials in servicePrincipals + param body: The request body + param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. + Returns: Optional[FederatedIdentityCredential] + """ + if not body: + raise TypeError("body cannot be null.") + request_info = self.to_patch_request_information( + body, request_configuration + ) + from ....models.o_data_errors.o_data_error import ODataError + + error_mapping: Dict[str, ParsableFactory] = { + "XXX": ODataError, + } + if not self.request_adapter: + raise Exception("Http core is null") + from ....models.federated_identity_credential import FederatedIdentityCredential + + return await self.request_adapter.send_async(request_info, FederatedIdentityCredential, error_mapping) + + def to_delete_request_information(self,request_configuration: Optional[RequestConfiguration] = None) -> RequestInformation: + """ + Delete navigation property federatedIdentityCredentials for servicePrincipals + param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. + Returns: RequestInformation + """ + request_info = RequestInformation(Method.DELETE, '{+baseurl}/servicePrincipals/{servicePrincipal%2Did}/federatedIdentityCredentials(name='{name}')', self.path_parameters) + request_info.configure(request_configuration) + request_info.headers.try_add("Accept", "application/json") + return request_info + + def to_get_request_information(self,request_configuration: Optional[RequestConfiguration] = None) -> RequestInformation: + """ + Get federatedIdentityCredentials from servicePrincipals + param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. + Returns: RequestInformation + """ + request_info = RequestInformation(Method.GET, self.url_template, self.path_parameters) + request_info.configure(request_configuration) + request_info.headers.try_add("Accept", "application/json") + return request_info + + def to_patch_request_information(self,body: Optional[FederatedIdentityCredential] = None, request_configuration: Optional[RequestConfiguration] = None) -> RequestInformation: + """ + Update the navigation property federatedIdentityCredentials in servicePrincipals + param body: The request body + param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. + Returns: RequestInformation + """ + if not body: + raise TypeError("body cannot be null.") + request_info = RequestInformation(Method.PATCH, '{+baseurl}/servicePrincipals/{servicePrincipal%2Did}/federatedIdentityCredentials(name='{name}')', self.path_parameters) + request_info.configure(request_configuration) + request_info.headers.try_add("Accept", "application/json") + request_info.set_content_from_parsable(self.request_adapter, "application/json", body) + return request_info + + def with_url(self,raw_url: Optional[str] = None) -> FederatedIdentityCredentialsWithNameRequestBuilder: + """ + Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + param raw_url: The raw URL to use for the request builder. + Returns: FederatedIdentityCredentialsWithNameRequestBuilder + """ + if not raw_url: + raise TypeError("raw_url cannot be null.") + return FederatedIdentityCredentialsWithNameRequestBuilder(self.request_adapter, raw_url) + + @dataclass + class FederatedIdentityCredentialsWithNameRequestBuilderGetQueryParameters(): + """ + Get federatedIdentityCredentials from servicePrincipals + """ + def get_query_parameter(self,original_name: Optional[str] = None) -> str: + """ + Maps the query parameters names to their encoded names for the URI template parsing. + param original_name: The original query parameter name in the class. + Returns: str + """ + if not original_name: + raise TypeError("original_name cannot be null.") + if original_name == "expand": + return "%24expand" + if original_name == "select": + return "%24select" + return original_name + + # Expand related entities + expand: Optional[List[str]] = None + + # Select properties to be returned + select: Optional[List[str]] = None + + + diff --git a/msgraph_beta/generated/service_principals/item/service_principal_item_request_builder.py b/msgraph_beta/generated/service_principals/item/service_principal_item_request_builder.py index f593c0b036f..e329d8fb726 100644 --- a/msgraph_beta/generated/service_principals/item/service_principal_item_request_builder.py +++ b/msgraph_beta/generated/service_principals/item/service_principal_item_request_builder.py @@ -26,6 +26,7 @@ from .delete_password_single_sign_on_credentials.delete_password_single_sign_on_credentials_request_builder import DeletePasswordSingleSignOnCredentialsRequestBuilder from .endpoints.endpoints_request_builder import EndpointsRequestBuilder from .federated_identity_credentials.federated_identity_credentials_request_builder import FederatedIdentityCredentialsRequestBuilder + from .federated_identity_credentials_with_name.federated_identity_credentials_with_name_request_builder import FederatedIdentityCredentialsWithNameRequestBuilder from .get_member_groups.get_member_groups_request_builder import GetMemberGroupsRequestBuilder from .get_member_objects.get_member_objects_request_builder import GetMemberObjectsRequestBuilder from .get_password_single_sign_on_credentials.get_password_single_sign_on_credentials_request_builder import GetPasswordSingleSignOnCredentialsRequestBuilder @@ -75,6 +76,18 @@ async def delete(self,request_configuration: Optional[RequestConfiguration] = No raise Exception("Http core is null") return await self.request_adapter.send_no_response_content_async(request_info, error_mapping) + def federated_identity_credentials_with_name(self,name: Optional[str] = None) -> FederatedIdentityCredentialsWithNameRequestBuilder: + """ + Provides operations to manage the federatedIdentityCredentials property of the microsoft.graph.servicePrincipal entity. + param name: Alternate key of federatedIdentityCredential + Returns: FederatedIdentityCredentialsWithNameRequestBuilder + """ + if not name: + raise TypeError("name cannot be null.") + from .federated_identity_credentials_with_name.federated_identity_credentials_with_name_request_builder import FederatedIdentityCredentialsWithNameRequestBuilder + + return FederatedIdentityCredentialsWithNameRequestBuilder(self.request_adapter, self.path_parameters, name) + async def get(self,request_configuration: Optional[RequestConfiguration] = None) -> Optional[ServicePrincipal]: """ Retrieve the properties and relationships of a servicePrincipal object. diff --git a/msgraph_beta/generated/sites/item/lists/item/list_item_request_builder.py b/msgraph_beta/generated/sites/item/lists/item/list_item_request_builder.py index 843de2fbec8..a9cf2762061 100644 --- a/msgraph_beta/generated/sites/item/lists/item/list_item_request_builder.py +++ b/msgraph_beta/generated/sites/item/lists/item/list_item_request_builder.py @@ -56,10 +56,10 @@ async def delete(self,request_configuration: Optional[RequestConfiguration] = No async def get(self,request_configuration: Optional[RequestConfiguration] = None) -> Optional[List_]: """ - Get the list of richLongRunningOperations associated with a list. + Return the metadata for a [list][]. param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: Optional[List_] - Find more info here: https://learn.microsoft.com/graph/api/list-list-operations?view=graph-rest-1.0 + Find more info here: https://learn.microsoft.com/graph/api/list-get?view=graph-rest-1.0 """ request_info = self.to_get_request_information( request_configuration @@ -111,7 +111,7 @@ def to_delete_request_information(self,request_configuration: Optional[RequestCo def to_get_request_information(self,request_configuration: Optional[RequestConfiguration] = None) -> RequestInformation: """ - Get the list of richLongRunningOperations associated with a list. + Return the metadata for a [list][]. param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: RequestInformation """ @@ -229,7 +229,7 @@ def subscriptions(self) -> SubscriptionsRequestBuilder: @dataclass class ListItemRequestBuilderGetQueryParameters(): """ - Get the list of richLongRunningOperations associated with a list. + Return the metadata for a [list][]. """ def get_query_parameter(self,original_name: Optional[str] = None) -> str: """ diff --git a/msgraph_beta/generated/solutions/virtual_events/events/item/presenters/item/profile_photo/profile_photo_request_builder.py b/msgraph_beta/generated/solutions/virtual_events/events/item/presenters/item/profile_photo/profile_photo_request_builder.py deleted file mode 100644 index 895c3c4f903..00000000000 --- a/msgraph_beta/generated/solutions/virtual_events/events/item/presenters/item/profile_photo/profile_photo_request_builder.py +++ /dev/null @@ -1,103 +0,0 @@ -from __future__ import annotations -from kiota_abstractions.base_request_builder import BaseRequestBuilder -from kiota_abstractions.base_request_configuration import RequestConfiguration -from kiota_abstractions.get_path_parameters import get_path_parameters -from kiota_abstractions.method import Method -from kiota_abstractions.request_adapter import RequestAdapter -from kiota_abstractions.request_information import RequestInformation -from kiota_abstractions.request_option import RequestOption -from kiota_abstractions.serialization import Parsable, ParsableFactory -from typing import Any, Callable, Dict, List, Optional, TYPE_CHECKING, Union - -if TYPE_CHECKING: - from ........models.o_data_errors.o_data_error import ODataError - -class ProfilePhotoRequestBuilder(BaseRequestBuilder): - """ - Provides operations to manage the media for the solutionsRoot entity. - """ - def __init__(self,request_adapter: RequestAdapter, path_parameters: Union[str, Dict[str, Any]]) -> None: - """ - Instantiates a new ProfilePhotoRequestBuilder and sets the default values. - param path_parameters: The raw url or the url-template parameters for the request. - param request_adapter: The request adapter to use to execute the requests. - Returns: None - """ - super().__init__(request_adapter, "{+baseurl}/solutions/virtualEvents/events/{virtualEvent%2Did}/presenters/{virtualEventPresenter%2Did}/profilePhoto", path_parameters) - - async def get(self,request_configuration: Optional[RequestConfiguration] = None) -> bytes: - """ - Get profilePhoto for the navigation property presenters from solutions - param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. - Returns: bytes - """ - request_info = self.to_get_request_information( - request_configuration - ) - from ........models.o_data_errors.o_data_error import ODataError - - error_mapping: Dict[str, ParsableFactory] = { - "XXX": ODataError, - } - if not self.request_adapter: - raise Exception("Http core is null") - return await self.request_adapter.send_primitive_async(request_info, "bytes", error_mapping) - - async def put(self,body: bytes, request_configuration: Optional[RequestConfiguration] = None) -> bytes: - """ - Update profilePhoto for the navigation property presenters in solutions - param body: Binary request body - param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. - Returns: bytes - """ - if not body: - raise TypeError("body cannot be null.") - request_info = self.to_put_request_information( - body, request_configuration - ) - from ........models.o_data_errors.o_data_error import ODataError - - error_mapping: Dict[str, ParsableFactory] = { - "XXX": ODataError, - } - if not self.request_adapter: - raise Exception("Http core is null") - return await self.request_adapter.send_primitive_async(request_info, "bytes", error_mapping) - - def to_get_request_information(self,request_configuration: Optional[RequestConfiguration] = None) -> RequestInformation: - """ - Get profilePhoto for the navigation property presenters from solutions - param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. - Returns: RequestInformation - """ - request_info = RequestInformation(Method.GET, self.url_template, self.path_parameters) - request_info.configure(request_configuration) - request_info.headers.try_add("Accept", "application/octet-stream, application/json") - return request_info - - def to_put_request_information(self,body: bytes, request_configuration: Optional[RequestConfiguration] = None) -> RequestInformation: - """ - Update profilePhoto for the navigation property presenters in solutions - param body: Binary request body - param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. - Returns: RequestInformation - """ - if not body: - raise TypeError("body cannot be null.") - request_info = RequestInformation(Method.PUT, self.url_template, self.path_parameters) - request_info.configure(request_configuration) - request_info.headers.try_add("Accept", "application/json") - request_info.set_stream_content(body, "application/octet-stream") - return request_info - - def with_url(self,raw_url: Optional[str] = None) -> ProfilePhotoRequestBuilder: - """ - Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - param raw_url: The raw URL to use for the request builder. - Returns: ProfilePhotoRequestBuilder - """ - if not raw_url: - raise TypeError("raw_url cannot be null.") - return ProfilePhotoRequestBuilder(self.request_adapter, raw_url) - - diff --git a/msgraph_beta/generated/solutions/virtual_events/events/item/presenters/item/virtual_event_presenter_item_request_builder.py b/msgraph_beta/generated/solutions/virtual_events/events/item/presenters/item/virtual_event_presenter_item_request_builder.py index f9c30686893..1e26aa3ba04 100644 --- a/msgraph_beta/generated/solutions/virtual_events/events/item/presenters/item/virtual_event_presenter_item_request_builder.py +++ b/msgraph_beta/generated/solutions/virtual_events/events/item/presenters/item/virtual_event_presenter_item_request_builder.py @@ -13,7 +13,6 @@ if TYPE_CHECKING: from .......models.o_data_errors.o_data_error import ODataError from .......models.virtual_event_presenter import VirtualEventPresenter - from .profile_photo.profile_photo_request_builder import ProfilePhotoRequestBuilder from .sessions.sessions_request_builder import SessionsRequestBuilder from .sessions_with_join_web_url.sessions_with_join_web_url_request_builder import SessionsWithJoinWebUrlRequestBuilder @@ -150,15 +149,6 @@ def with_url(self,raw_url: Optional[str] = None) -> VirtualEventPresenterItemReq raise TypeError("raw_url cannot be null.") return VirtualEventPresenterItemRequestBuilder(self.request_adapter, raw_url) - @property - def profile_photo(self) -> ProfilePhotoRequestBuilder: - """ - Provides operations to manage the media for the solutionsRoot entity. - """ - from .profile_photo.profile_photo_request_builder import ProfilePhotoRequestBuilder - - return ProfilePhotoRequestBuilder(self.request_adapter, self.path_parameters) - @property def sessions(self) -> SessionsRequestBuilder: """ diff --git a/msgraph_beta/generated/solutions/virtual_events/events/item/sessions/item/presenters/item/profile_photo/profile_photo_request_builder.py b/msgraph_beta/generated/solutions/virtual_events/events/item/sessions/item/presenters/item/profile_photo/profile_photo_request_builder.py deleted file mode 100644 index 9fcf7974432..00000000000 --- a/msgraph_beta/generated/solutions/virtual_events/events/item/sessions/item/presenters/item/profile_photo/profile_photo_request_builder.py +++ /dev/null @@ -1,103 +0,0 @@ -from __future__ import annotations -from kiota_abstractions.base_request_builder import BaseRequestBuilder -from kiota_abstractions.base_request_configuration import RequestConfiguration -from kiota_abstractions.get_path_parameters import get_path_parameters -from kiota_abstractions.method import Method -from kiota_abstractions.request_adapter import RequestAdapter -from kiota_abstractions.request_information import RequestInformation -from kiota_abstractions.request_option import RequestOption -from kiota_abstractions.serialization import Parsable, ParsableFactory -from typing import Any, Callable, Dict, List, Optional, TYPE_CHECKING, Union - -if TYPE_CHECKING: - from ..........models.o_data_errors.o_data_error import ODataError - -class ProfilePhotoRequestBuilder(BaseRequestBuilder): - """ - Provides operations to manage the media for the solutionsRoot entity. - """ - def __init__(self,request_adapter: RequestAdapter, path_parameters: Union[str, Dict[str, Any]]) -> None: - """ - Instantiates a new ProfilePhotoRequestBuilder and sets the default values. - param path_parameters: The raw url or the url-template parameters for the request. - param request_adapter: The request adapter to use to execute the requests. - Returns: None - """ - super().__init__(request_adapter, "{+baseurl}/solutions/virtualEvents/events/{virtualEvent%2Did}/sessions/{virtualEventSession%2Did}/presenters/{virtualEventPresenter%2Did}/profilePhoto", path_parameters) - - async def get(self,request_configuration: Optional[RequestConfiguration] = None) -> bytes: - """ - Get profilePhoto for the navigation property presenters from solutions - param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. - Returns: bytes - """ - request_info = self.to_get_request_information( - request_configuration - ) - from ..........models.o_data_errors.o_data_error import ODataError - - error_mapping: Dict[str, ParsableFactory] = { - "XXX": ODataError, - } - if not self.request_adapter: - raise Exception("Http core is null") - return await self.request_adapter.send_primitive_async(request_info, "bytes", error_mapping) - - async def put(self,body: bytes, request_configuration: Optional[RequestConfiguration] = None) -> bytes: - """ - Update profilePhoto for the navigation property presenters in solutions - param body: Binary request body - param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. - Returns: bytes - """ - if not body: - raise TypeError("body cannot be null.") - request_info = self.to_put_request_information( - body, request_configuration - ) - from ..........models.o_data_errors.o_data_error import ODataError - - error_mapping: Dict[str, ParsableFactory] = { - "XXX": ODataError, - } - if not self.request_adapter: - raise Exception("Http core is null") - return await self.request_adapter.send_primitive_async(request_info, "bytes", error_mapping) - - def to_get_request_information(self,request_configuration: Optional[RequestConfiguration] = None) -> RequestInformation: - """ - Get profilePhoto for the navigation property presenters from solutions - param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. - Returns: RequestInformation - """ - request_info = RequestInformation(Method.GET, self.url_template, self.path_parameters) - request_info.configure(request_configuration) - request_info.headers.try_add("Accept", "application/octet-stream, application/json") - return request_info - - def to_put_request_information(self,body: bytes, request_configuration: Optional[RequestConfiguration] = None) -> RequestInformation: - """ - Update profilePhoto for the navigation property presenters in solutions - param body: Binary request body - param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. - Returns: RequestInformation - """ - if not body: - raise TypeError("body cannot be null.") - request_info = RequestInformation(Method.PUT, self.url_template, self.path_parameters) - request_info.configure(request_configuration) - request_info.headers.try_add("Accept", "application/json") - request_info.set_stream_content(body, "application/octet-stream") - return request_info - - def with_url(self,raw_url: Optional[str] = None) -> ProfilePhotoRequestBuilder: - """ - Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - param raw_url: The raw URL to use for the request builder. - Returns: ProfilePhotoRequestBuilder - """ - if not raw_url: - raise TypeError("raw_url cannot be null.") - return ProfilePhotoRequestBuilder(self.request_adapter, raw_url) - - diff --git a/msgraph_beta/generated/solutions/virtual_events/events/item/sessions/item/presenters/item/virtual_event_presenter_item_request_builder.py b/msgraph_beta/generated/solutions/virtual_events/events/item/sessions/item/presenters/item/virtual_event_presenter_item_request_builder.py index 5dec31633f0..bf8c205d3e7 100644 --- a/msgraph_beta/generated/solutions/virtual_events/events/item/sessions/item/presenters/item/virtual_event_presenter_item_request_builder.py +++ b/msgraph_beta/generated/solutions/virtual_events/events/item/sessions/item/presenters/item/virtual_event_presenter_item_request_builder.py @@ -13,7 +13,6 @@ if TYPE_CHECKING: from .........models.o_data_errors.o_data_error import ODataError from .........models.virtual_event_presenter import VirtualEventPresenter - from .profile_photo.profile_photo_request_builder import ProfilePhotoRequestBuilder class VirtualEventPresenterItemRequestBuilder(BaseRequestBuilder): """ @@ -69,15 +68,6 @@ def with_url(self,raw_url: Optional[str] = None) -> VirtualEventPresenterItemReq raise TypeError("raw_url cannot be null.") return VirtualEventPresenterItemRequestBuilder(self.request_adapter, raw_url) - @property - def profile_photo(self) -> ProfilePhotoRequestBuilder: - """ - Provides operations to manage the media for the solutionsRoot entity. - """ - from .profile_photo.profile_photo_request_builder import ProfilePhotoRequestBuilder - - return ProfilePhotoRequestBuilder(self.request_adapter, self.path_parameters) - @dataclass class VirtualEventPresenterItemRequestBuilderGetQueryParameters(): """ diff --git a/msgraph_beta/generated/solutions/virtual_events/townhalls/item/presenters/item/profile_photo/profile_photo_request_builder.py b/msgraph_beta/generated/solutions/virtual_events/townhalls/item/presenters/item/profile_photo/profile_photo_request_builder.py deleted file mode 100644 index 59dfe778ab8..00000000000 --- a/msgraph_beta/generated/solutions/virtual_events/townhalls/item/presenters/item/profile_photo/profile_photo_request_builder.py +++ /dev/null @@ -1,103 +0,0 @@ -from __future__ import annotations -from kiota_abstractions.base_request_builder import BaseRequestBuilder -from kiota_abstractions.base_request_configuration import RequestConfiguration -from kiota_abstractions.get_path_parameters import get_path_parameters -from kiota_abstractions.method import Method -from kiota_abstractions.request_adapter import RequestAdapter -from kiota_abstractions.request_information import RequestInformation -from kiota_abstractions.request_option import RequestOption -from kiota_abstractions.serialization import Parsable, ParsableFactory -from typing import Any, Callable, Dict, List, Optional, TYPE_CHECKING, Union - -if TYPE_CHECKING: - from ........models.o_data_errors.o_data_error import ODataError - -class ProfilePhotoRequestBuilder(BaseRequestBuilder): - """ - Provides operations to manage the media for the solutionsRoot entity. - """ - def __init__(self,request_adapter: RequestAdapter, path_parameters: Union[str, Dict[str, Any]]) -> None: - """ - Instantiates a new ProfilePhotoRequestBuilder and sets the default values. - param path_parameters: The raw url or the url-template parameters for the request. - param request_adapter: The request adapter to use to execute the requests. - Returns: None - """ - super().__init__(request_adapter, "{+baseurl}/solutions/virtualEvents/townhalls/{virtualEventTownhall%2Did}/presenters/{virtualEventPresenter%2Did}/profilePhoto", path_parameters) - - async def get(self,request_configuration: Optional[RequestConfiguration] = None) -> bytes: - """ - Get profilePhoto for the navigation property presenters from solutions - param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. - Returns: bytes - """ - request_info = self.to_get_request_information( - request_configuration - ) - from ........models.o_data_errors.o_data_error import ODataError - - error_mapping: Dict[str, ParsableFactory] = { - "XXX": ODataError, - } - if not self.request_adapter: - raise Exception("Http core is null") - return await self.request_adapter.send_primitive_async(request_info, "bytes", error_mapping) - - async def put(self,body: bytes, request_configuration: Optional[RequestConfiguration] = None) -> bytes: - """ - Update profilePhoto for the navigation property presenters in solutions - param body: Binary request body - param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. - Returns: bytes - """ - if not body: - raise TypeError("body cannot be null.") - request_info = self.to_put_request_information( - body, request_configuration - ) - from ........models.o_data_errors.o_data_error import ODataError - - error_mapping: Dict[str, ParsableFactory] = { - "XXX": ODataError, - } - if not self.request_adapter: - raise Exception("Http core is null") - return await self.request_adapter.send_primitive_async(request_info, "bytes", error_mapping) - - def to_get_request_information(self,request_configuration: Optional[RequestConfiguration] = None) -> RequestInformation: - """ - Get profilePhoto for the navigation property presenters from solutions - param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. - Returns: RequestInformation - """ - request_info = RequestInformation(Method.GET, self.url_template, self.path_parameters) - request_info.configure(request_configuration) - request_info.headers.try_add("Accept", "application/octet-stream, application/json") - return request_info - - def to_put_request_information(self,body: bytes, request_configuration: Optional[RequestConfiguration] = None) -> RequestInformation: - """ - Update profilePhoto for the navigation property presenters in solutions - param body: Binary request body - param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. - Returns: RequestInformation - """ - if not body: - raise TypeError("body cannot be null.") - request_info = RequestInformation(Method.PUT, self.url_template, self.path_parameters) - request_info.configure(request_configuration) - request_info.headers.try_add("Accept", "application/json") - request_info.set_stream_content(body, "application/octet-stream") - return request_info - - def with_url(self,raw_url: Optional[str] = None) -> ProfilePhotoRequestBuilder: - """ - Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - param raw_url: The raw URL to use for the request builder. - Returns: ProfilePhotoRequestBuilder - """ - if not raw_url: - raise TypeError("raw_url cannot be null.") - return ProfilePhotoRequestBuilder(self.request_adapter, raw_url) - - diff --git a/msgraph_beta/generated/solutions/virtual_events/townhalls/item/presenters/item/virtual_event_presenter_item_request_builder.py b/msgraph_beta/generated/solutions/virtual_events/townhalls/item/presenters/item/virtual_event_presenter_item_request_builder.py index c58f11d51c4..d2f75c005ba 100644 --- a/msgraph_beta/generated/solutions/virtual_events/townhalls/item/presenters/item/virtual_event_presenter_item_request_builder.py +++ b/msgraph_beta/generated/solutions/virtual_events/townhalls/item/presenters/item/virtual_event_presenter_item_request_builder.py @@ -13,7 +13,6 @@ if TYPE_CHECKING: from .......models.o_data_errors.o_data_error import ODataError from .......models.virtual_event_presenter import VirtualEventPresenter - from .profile_photo.profile_photo_request_builder import ProfilePhotoRequestBuilder from .sessions.sessions_request_builder import SessionsRequestBuilder from .sessions_with_join_web_url.sessions_with_join_web_url_request_builder import SessionsWithJoinWebUrlRequestBuilder @@ -150,15 +149,6 @@ def with_url(self,raw_url: Optional[str] = None) -> VirtualEventPresenterItemReq raise TypeError("raw_url cannot be null.") return VirtualEventPresenterItemRequestBuilder(self.request_adapter, raw_url) - @property - def profile_photo(self) -> ProfilePhotoRequestBuilder: - """ - Provides operations to manage the media for the solutionsRoot entity. - """ - from .profile_photo.profile_photo_request_builder import ProfilePhotoRequestBuilder - - return ProfilePhotoRequestBuilder(self.request_adapter, self.path_parameters) - @property def sessions(self) -> SessionsRequestBuilder: """ diff --git a/msgraph_beta/generated/solutions/virtual_events/townhalls/item/sessions/item/presenters/item/profile_photo/profile_photo_request_builder.py b/msgraph_beta/generated/solutions/virtual_events/townhalls/item/sessions/item/presenters/item/profile_photo/profile_photo_request_builder.py deleted file mode 100644 index 5ff0c6c7f16..00000000000 --- a/msgraph_beta/generated/solutions/virtual_events/townhalls/item/sessions/item/presenters/item/profile_photo/profile_photo_request_builder.py +++ /dev/null @@ -1,103 +0,0 @@ -from __future__ import annotations -from kiota_abstractions.base_request_builder import BaseRequestBuilder -from kiota_abstractions.base_request_configuration import RequestConfiguration -from kiota_abstractions.get_path_parameters import get_path_parameters -from kiota_abstractions.method import Method -from kiota_abstractions.request_adapter import RequestAdapter -from kiota_abstractions.request_information import RequestInformation -from kiota_abstractions.request_option import RequestOption -from kiota_abstractions.serialization import Parsable, ParsableFactory -from typing import Any, Callable, Dict, List, Optional, TYPE_CHECKING, Union - -if TYPE_CHECKING: - from ..........models.o_data_errors.o_data_error import ODataError - -class ProfilePhotoRequestBuilder(BaseRequestBuilder): - """ - Provides operations to manage the media for the solutionsRoot entity. - """ - def __init__(self,request_adapter: RequestAdapter, path_parameters: Union[str, Dict[str, Any]]) -> None: - """ - Instantiates a new ProfilePhotoRequestBuilder and sets the default values. - param path_parameters: The raw url or the url-template parameters for the request. - param request_adapter: The request adapter to use to execute the requests. - Returns: None - """ - super().__init__(request_adapter, "{+baseurl}/solutions/virtualEvents/townhalls/{virtualEventTownhall%2Did}/sessions/{virtualEventSession%2Did}/presenters/{virtualEventPresenter%2Did}/profilePhoto", path_parameters) - - async def get(self,request_configuration: Optional[RequestConfiguration] = None) -> bytes: - """ - Get profilePhoto for the navigation property presenters from solutions - param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. - Returns: bytes - """ - request_info = self.to_get_request_information( - request_configuration - ) - from ..........models.o_data_errors.o_data_error import ODataError - - error_mapping: Dict[str, ParsableFactory] = { - "XXX": ODataError, - } - if not self.request_adapter: - raise Exception("Http core is null") - return await self.request_adapter.send_primitive_async(request_info, "bytes", error_mapping) - - async def put(self,body: bytes, request_configuration: Optional[RequestConfiguration] = None) -> bytes: - """ - Update profilePhoto for the navigation property presenters in solutions - param body: Binary request body - param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. - Returns: bytes - """ - if not body: - raise TypeError("body cannot be null.") - request_info = self.to_put_request_information( - body, request_configuration - ) - from ..........models.o_data_errors.o_data_error import ODataError - - error_mapping: Dict[str, ParsableFactory] = { - "XXX": ODataError, - } - if not self.request_adapter: - raise Exception("Http core is null") - return await self.request_adapter.send_primitive_async(request_info, "bytes", error_mapping) - - def to_get_request_information(self,request_configuration: Optional[RequestConfiguration] = None) -> RequestInformation: - """ - Get profilePhoto for the navigation property presenters from solutions - param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. - Returns: RequestInformation - """ - request_info = RequestInformation(Method.GET, self.url_template, self.path_parameters) - request_info.configure(request_configuration) - request_info.headers.try_add("Accept", "application/octet-stream, application/json") - return request_info - - def to_put_request_information(self,body: bytes, request_configuration: Optional[RequestConfiguration] = None) -> RequestInformation: - """ - Update profilePhoto for the navigation property presenters in solutions - param body: Binary request body - param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. - Returns: RequestInformation - """ - if not body: - raise TypeError("body cannot be null.") - request_info = RequestInformation(Method.PUT, self.url_template, self.path_parameters) - request_info.configure(request_configuration) - request_info.headers.try_add("Accept", "application/json") - request_info.set_stream_content(body, "application/octet-stream") - return request_info - - def with_url(self,raw_url: Optional[str] = None) -> ProfilePhotoRequestBuilder: - """ - Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - param raw_url: The raw URL to use for the request builder. - Returns: ProfilePhotoRequestBuilder - """ - if not raw_url: - raise TypeError("raw_url cannot be null.") - return ProfilePhotoRequestBuilder(self.request_adapter, raw_url) - - diff --git a/msgraph_beta/generated/solutions/virtual_events/townhalls/item/sessions/item/presenters/item/virtual_event_presenter_item_request_builder.py b/msgraph_beta/generated/solutions/virtual_events/townhalls/item/sessions/item/presenters/item/virtual_event_presenter_item_request_builder.py index a29e08b6c2e..298063d83a2 100644 --- a/msgraph_beta/generated/solutions/virtual_events/townhalls/item/sessions/item/presenters/item/virtual_event_presenter_item_request_builder.py +++ b/msgraph_beta/generated/solutions/virtual_events/townhalls/item/sessions/item/presenters/item/virtual_event_presenter_item_request_builder.py @@ -13,7 +13,6 @@ if TYPE_CHECKING: from .........models.o_data_errors.o_data_error import ODataError from .........models.virtual_event_presenter import VirtualEventPresenter - from .profile_photo.profile_photo_request_builder import ProfilePhotoRequestBuilder class VirtualEventPresenterItemRequestBuilder(BaseRequestBuilder): """ @@ -69,15 +68,6 @@ def with_url(self,raw_url: Optional[str] = None) -> VirtualEventPresenterItemReq raise TypeError("raw_url cannot be null.") return VirtualEventPresenterItemRequestBuilder(self.request_adapter, raw_url) - @property - def profile_photo(self) -> ProfilePhotoRequestBuilder: - """ - Provides operations to manage the media for the solutionsRoot entity. - """ - from .profile_photo.profile_photo_request_builder import ProfilePhotoRequestBuilder - - return ProfilePhotoRequestBuilder(self.request_adapter, self.path_parameters) - @dataclass class VirtualEventPresenterItemRequestBuilderGetQueryParameters(): """ diff --git a/msgraph_beta/generated/solutions/virtual_events/webinars/item/presenters/item/profile_photo/profile_photo_request_builder.py b/msgraph_beta/generated/solutions/virtual_events/webinars/item/presenters/item/profile_photo/profile_photo_request_builder.py deleted file mode 100644 index 2b9bb82383d..00000000000 --- a/msgraph_beta/generated/solutions/virtual_events/webinars/item/presenters/item/profile_photo/profile_photo_request_builder.py +++ /dev/null @@ -1,103 +0,0 @@ -from __future__ import annotations -from kiota_abstractions.base_request_builder import BaseRequestBuilder -from kiota_abstractions.base_request_configuration import RequestConfiguration -from kiota_abstractions.get_path_parameters import get_path_parameters -from kiota_abstractions.method import Method -from kiota_abstractions.request_adapter import RequestAdapter -from kiota_abstractions.request_information import RequestInformation -from kiota_abstractions.request_option import RequestOption -from kiota_abstractions.serialization import Parsable, ParsableFactory -from typing import Any, Callable, Dict, List, Optional, TYPE_CHECKING, Union - -if TYPE_CHECKING: - from ........models.o_data_errors.o_data_error import ODataError - -class ProfilePhotoRequestBuilder(BaseRequestBuilder): - """ - Provides operations to manage the media for the solutionsRoot entity. - """ - def __init__(self,request_adapter: RequestAdapter, path_parameters: Union[str, Dict[str, Any]]) -> None: - """ - Instantiates a new ProfilePhotoRequestBuilder and sets the default values. - param path_parameters: The raw url or the url-template parameters for the request. - param request_adapter: The request adapter to use to execute the requests. - Returns: None - """ - super().__init__(request_adapter, "{+baseurl}/solutions/virtualEvents/webinars/{virtualEventWebinar%2Did}/presenters/{virtualEventPresenter%2Did}/profilePhoto", path_parameters) - - async def get(self,request_configuration: Optional[RequestConfiguration] = None) -> bytes: - """ - Get profilePhoto for the navigation property presenters from solutions - param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. - Returns: bytes - """ - request_info = self.to_get_request_information( - request_configuration - ) - from ........models.o_data_errors.o_data_error import ODataError - - error_mapping: Dict[str, ParsableFactory] = { - "XXX": ODataError, - } - if not self.request_adapter: - raise Exception("Http core is null") - return await self.request_adapter.send_primitive_async(request_info, "bytes", error_mapping) - - async def put(self,body: bytes, request_configuration: Optional[RequestConfiguration] = None) -> bytes: - """ - Update profilePhoto for the navigation property presenters in solutions - param body: Binary request body - param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. - Returns: bytes - """ - if not body: - raise TypeError("body cannot be null.") - request_info = self.to_put_request_information( - body, request_configuration - ) - from ........models.o_data_errors.o_data_error import ODataError - - error_mapping: Dict[str, ParsableFactory] = { - "XXX": ODataError, - } - if not self.request_adapter: - raise Exception("Http core is null") - return await self.request_adapter.send_primitive_async(request_info, "bytes", error_mapping) - - def to_get_request_information(self,request_configuration: Optional[RequestConfiguration] = None) -> RequestInformation: - """ - Get profilePhoto for the navigation property presenters from solutions - param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. - Returns: RequestInformation - """ - request_info = RequestInformation(Method.GET, self.url_template, self.path_parameters) - request_info.configure(request_configuration) - request_info.headers.try_add("Accept", "application/octet-stream, application/json") - return request_info - - def to_put_request_information(self,body: bytes, request_configuration: Optional[RequestConfiguration] = None) -> RequestInformation: - """ - Update profilePhoto for the navigation property presenters in solutions - param body: Binary request body - param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. - Returns: RequestInformation - """ - if not body: - raise TypeError("body cannot be null.") - request_info = RequestInformation(Method.PUT, self.url_template, self.path_parameters) - request_info.configure(request_configuration) - request_info.headers.try_add("Accept", "application/json") - request_info.set_stream_content(body, "application/octet-stream") - return request_info - - def with_url(self,raw_url: Optional[str] = None) -> ProfilePhotoRequestBuilder: - """ - Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - param raw_url: The raw URL to use for the request builder. - Returns: ProfilePhotoRequestBuilder - """ - if not raw_url: - raise TypeError("raw_url cannot be null.") - return ProfilePhotoRequestBuilder(self.request_adapter, raw_url) - - diff --git a/msgraph_beta/generated/solutions/virtual_events/webinars/item/presenters/item/virtual_event_presenter_item_request_builder.py b/msgraph_beta/generated/solutions/virtual_events/webinars/item/presenters/item/virtual_event_presenter_item_request_builder.py index 9e31f46ace2..2401cc65e7f 100644 --- a/msgraph_beta/generated/solutions/virtual_events/webinars/item/presenters/item/virtual_event_presenter_item_request_builder.py +++ b/msgraph_beta/generated/solutions/virtual_events/webinars/item/presenters/item/virtual_event_presenter_item_request_builder.py @@ -13,7 +13,6 @@ if TYPE_CHECKING: from .......models.o_data_errors.o_data_error import ODataError from .......models.virtual_event_presenter import VirtualEventPresenter - from .profile_photo.profile_photo_request_builder import ProfilePhotoRequestBuilder from .sessions.sessions_request_builder import SessionsRequestBuilder from .sessions_with_join_web_url.sessions_with_join_web_url_request_builder import SessionsWithJoinWebUrlRequestBuilder @@ -150,15 +149,6 @@ def with_url(self,raw_url: Optional[str] = None) -> VirtualEventPresenterItemReq raise TypeError("raw_url cannot be null.") return VirtualEventPresenterItemRequestBuilder(self.request_adapter, raw_url) - @property - def profile_photo(self) -> ProfilePhotoRequestBuilder: - """ - Provides operations to manage the media for the solutionsRoot entity. - """ - from .profile_photo.profile_photo_request_builder import ProfilePhotoRequestBuilder - - return ProfilePhotoRequestBuilder(self.request_adapter, self.path_parameters) - @property def sessions(self) -> SessionsRequestBuilder: """ diff --git a/msgraph_beta/generated/solutions/virtual_events/webinars/item/sessions/item/presenters/item/profile_photo/profile_photo_request_builder.py b/msgraph_beta/generated/solutions/virtual_events/webinars/item/sessions/item/presenters/item/profile_photo/profile_photo_request_builder.py deleted file mode 100644 index a6778089eb6..00000000000 --- a/msgraph_beta/generated/solutions/virtual_events/webinars/item/sessions/item/presenters/item/profile_photo/profile_photo_request_builder.py +++ /dev/null @@ -1,103 +0,0 @@ -from __future__ import annotations -from kiota_abstractions.base_request_builder import BaseRequestBuilder -from kiota_abstractions.base_request_configuration import RequestConfiguration -from kiota_abstractions.get_path_parameters import get_path_parameters -from kiota_abstractions.method import Method -from kiota_abstractions.request_adapter import RequestAdapter -from kiota_abstractions.request_information import RequestInformation -from kiota_abstractions.request_option import RequestOption -from kiota_abstractions.serialization import Parsable, ParsableFactory -from typing import Any, Callable, Dict, List, Optional, TYPE_CHECKING, Union - -if TYPE_CHECKING: - from ..........models.o_data_errors.o_data_error import ODataError - -class ProfilePhotoRequestBuilder(BaseRequestBuilder): - """ - Provides operations to manage the media for the solutionsRoot entity. - """ - def __init__(self,request_adapter: RequestAdapter, path_parameters: Union[str, Dict[str, Any]]) -> None: - """ - Instantiates a new ProfilePhotoRequestBuilder and sets the default values. - param path_parameters: The raw url or the url-template parameters for the request. - param request_adapter: The request adapter to use to execute the requests. - Returns: None - """ - super().__init__(request_adapter, "{+baseurl}/solutions/virtualEvents/webinars/{virtualEventWebinar%2Did}/sessions/{virtualEventSession%2Did}/presenters/{virtualEventPresenter%2Did}/profilePhoto", path_parameters) - - async def get(self,request_configuration: Optional[RequestConfiguration] = None) -> bytes: - """ - Get profilePhoto for the navigation property presenters from solutions - param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. - Returns: bytes - """ - request_info = self.to_get_request_information( - request_configuration - ) - from ..........models.o_data_errors.o_data_error import ODataError - - error_mapping: Dict[str, ParsableFactory] = { - "XXX": ODataError, - } - if not self.request_adapter: - raise Exception("Http core is null") - return await self.request_adapter.send_primitive_async(request_info, "bytes", error_mapping) - - async def put(self,body: bytes, request_configuration: Optional[RequestConfiguration] = None) -> bytes: - """ - Update profilePhoto for the navigation property presenters in solutions - param body: Binary request body - param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. - Returns: bytes - """ - if not body: - raise TypeError("body cannot be null.") - request_info = self.to_put_request_information( - body, request_configuration - ) - from ..........models.o_data_errors.o_data_error import ODataError - - error_mapping: Dict[str, ParsableFactory] = { - "XXX": ODataError, - } - if not self.request_adapter: - raise Exception("Http core is null") - return await self.request_adapter.send_primitive_async(request_info, "bytes", error_mapping) - - def to_get_request_information(self,request_configuration: Optional[RequestConfiguration] = None) -> RequestInformation: - """ - Get profilePhoto for the navigation property presenters from solutions - param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. - Returns: RequestInformation - """ - request_info = RequestInformation(Method.GET, self.url_template, self.path_parameters) - request_info.configure(request_configuration) - request_info.headers.try_add("Accept", "application/octet-stream, application/json") - return request_info - - def to_put_request_information(self,body: bytes, request_configuration: Optional[RequestConfiguration] = None) -> RequestInformation: - """ - Update profilePhoto for the navigation property presenters in solutions - param body: Binary request body - param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. - Returns: RequestInformation - """ - if not body: - raise TypeError("body cannot be null.") - request_info = RequestInformation(Method.PUT, self.url_template, self.path_parameters) - request_info.configure(request_configuration) - request_info.headers.try_add("Accept", "application/json") - request_info.set_stream_content(body, "application/octet-stream") - return request_info - - def with_url(self,raw_url: Optional[str] = None) -> ProfilePhotoRequestBuilder: - """ - Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - param raw_url: The raw URL to use for the request builder. - Returns: ProfilePhotoRequestBuilder - """ - if not raw_url: - raise TypeError("raw_url cannot be null.") - return ProfilePhotoRequestBuilder(self.request_adapter, raw_url) - - diff --git a/msgraph_beta/generated/solutions/virtual_events/webinars/item/sessions/item/presenters/item/virtual_event_presenter_item_request_builder.py b/msgraph_beta/generated/solutions/virtual_events/webinars/item/sessions/item/presenters/item/virtual_event_presenter_item_request_builder.py index c6ed2c8807f..cd94d04319d 100644 --- a/msgraph_beta/generated/solutions/virtual_events/webinars/item/sessions/item/presenters/item/virtual_event_presenter_item_request_builder.py +++ b/msgraph_beta/generated/solutions/virtual_events/webinars/item/sessions/item/presenters/item/virtual_event_presenter_item_request_builder.py @@ -13,7 +13,6 @@ if TYPE_CHECKING: from .........models.o_data_errors.o_data_error import ODataError from .........models.virtual_event_presenter import VirtualEventPresenter - from .profile_photo.profile_photo_request_builder import ProfilePhotoRequestBuilder class VirtualEventPresenterItemRequestBuilder(BaseRequestBuilder): """ @@ -69,15 +68,6 @@ def with_url(self,raw_url: Optional[str] = None) -> VirtualEventPresenterItemReq raise TypeError("raw_url cannot be null.") return VirtualEventPresenterItemRequestBuilder(self.request_adapter, raw_url) - @property - def profile_photo(self) -> ProfilePhotoRequestBuilder: - """ - Provides operations to manage the media for the solutionsRoot entity. - """ - from .profile_photo.profile_photo_request_builder import ProfilePhotoRequestBuilder - - return ProfilePhotoRequestBuilder(self.request_adapter, self.path_parameters) - @dataclass class VirtualEventPresenterItemRequestBuilderGetQueryParameters(): """ diff --git a/msgraph_beta/generated/team_template_definition/item/team_definition/channels/item/members/item/conversation_member_item_request_builder.py b/msgraph_beta/generated/team_template_definition/item/team_definition/channels/item/members/item/conversation_member_item_request_builder.py index e130a9fb280..42742ff101c 100644 --- a/msgraph_beta/generated/team_template_definition/item/team_definition/channels/item/members/item/conversation_member_item_request_builder.py +++ b/msgraph_beta/generated/team_template_definition/item/team_definition/channels/item/members/item/conversation_member_item_request_builder.py @@ -69,11 +69,11 @@ async def get(self,request_configuration: Optional[RequestConfiguration] = None) async def patch(self,body: Optional[ConversationMember] = None, request_configuration: Optional[RequestConfiguration] = None) -> Optional[ConversationMember]: """ - Update the role of a conversationMember in a channel. This operation is allowed only for channels with a membershipType value of private or shared. + Update the role of a conversationMember in a team.or channel. param body: The request body param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: Optional[ConversationMember] - Find more info here: https://learn.microsoft.com/graph/api/channel-update-members?view=graph-rest-1.0 + Find more info here: https://learn.microsoft.com/graph/api/conversationmember-update?view=graph-rest-1.0 """ if not body: raise TypeError("body cannot be null.") @@ -115,7 +115,7 @@ def to_get_request_information(self,request_configuration: Optional[RequestConfi def to_patch_request_information(self,body: Optional[ConversationMember] = None, request_configuration: Optional[RequestConfiguration] = None) -> RequestInformation: """ - Update the role of a conversationMember in a channel. This operation is allowed only for channels with a membershipType value of private or shared. + Update the role of a conversationMember in a team.or channel. param body: The request body param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: RequestInformation diff --git a/msgraph_beta/generated/team_template_definition/item/team_definition/channels/item/messages/item/replies/replies_request_builder.py b/msgraph_beta/generated/team_template_definition/item/team_definition/channels/item/messages/item/replies/replies_request_builder.py index 32659b2bab2..4d04b21b716 100644 --- a/msgraph_beta/generated/team_template_definition/item/team_definition/channels/item/messages/item/replies/replies_request_builder.py +++ b/msgraph_beta/generated/team_template_definition/item/team_definition/channels/item/messages/item/replies/replies_request_builder.py @@ -47,7 +47,7 @@ def by_chat_message_id1(self,chat_message_id1: str) -> ChatMessageItemRequestBui async def get(self,request_configuration: Optional[RequestConfiguration] = None) -> Optional[ChatMessageCollectionResponse]: """ - List all the replies to a message in a channel of a team. This method lists only the replies of the specified message, if any. To get the message itself, simply call get channel message. + List all the replies to a message in a channel of a team. This method lists only the replies of the specified message, if any. To get the message itself, call get channel message. param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: Optional[ChatMessageCollectionResponse] Find more info here: https://learn.microsoft.com/graph/api/chatmessage-list-replies?view=graph-rest-1.0 @@ -92,7 +92,7 @@ async def post(self,body: Optional[ChatMessage] = None, request_configuration: O def to_get_request_information(self,request_configuration: Optional[RequestConfiguration] = None) -> RequestInformation: """ - List all the replies to a message in a channel of a team. This method lists only the replies of the specified message, if any. To get the message itself, simply call get channel message. + List all the replies to a message in a channel of a team. This method lists only the replies of the specified message, if any. To get the message itself, call get channel message. param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: RequestInformation """ @@ -147,7 +147,7 @@ def delta(self) -> DeltaRequestBuilder: @dataclass class RepliesRequestBuilderGetQueryParameters(): """ - List all the replies to a message in a channel of a team. This method lists only the replies of the specified message, if any. To get the message itself, simply call get channel message. + List all the replies to a message in a channel of a team. This method lists only the replies of the specified message, if any. To get the message itself, call get channel message. """ def get_query_parameter(self,original_name: Optional[str] = None) -> str: """ diff --git a/msgraph_beta/generated/team_template_definition/item/team_definition/channels/item/messages/messages_request_builder.py b/msgraph_beta/generated/team_template_definition/item/team_definition/channels/item/messages/messages_request_builder.py index 73362419b03..b3e0e1f8fb6 100644 --- a/msgraph_beta/generated/team_template_definition/item/team_definition/channels/item/messages/messages_request_builder.py +++ b/msgraph_beta/generated/team_template_definition/item/team_definition/channels/item/messages/messages_request_builder.py @@ -68,11 +68,11 @@ async def get(self,request_configuration: Optional[RequestConfiguration] = None) async def post(self,body: Optional[ChatMessage] = None, request_configuration: Optional[RequestConfiguration] = None) -> Optional[ChatMessage]: """ - Send a new chatMessage in the specified channel. + Send a new chatMessage in the specified channel or a chat. param body: The request body param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: Optional[ChatMessage] - Find more info here: https://learn.microsoft.com/graph/api/channel-post-messages?view=graph-rest-1.0 + Find more info here: https://learn.microsoft.com/graph/api/chatmessage-post?view=graph-rest-1.0 """ if not body: raise TypeError("body cannot be null.") @@ -103,7 +103,7 @@ def to_get_request_information(self,request_configuration: Optional[RequestConfi def to_post_request_information(self,body: Optional[ChatMessage] = None, request_configuration: Optional[RequestConfiguration] = None) -> RequestInformation: """ - Send a new chatMessage in the specified channel. + Send a new chatMessage in the specified channel or a chat. param body: The request body param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: RequestInformation diff --git a/msgraph_beta/generated/team_template_definition/item/team_definition/primary_channel/members/item/conversation_member_item_request_builder.py b/msgraph_beta/generated/team_template_definition/item/team_definition/primary_channel/members/item/conversation_member_item_request_builder.py index eb486cffd86..cb845f6fd77 100644 --- a/msgraph_beta/generated/team_template_definition/item/team_definition/primary_channel/members/item/conversation_member_item_request_builder.py +++ b/msgraph_beta/generated/team_template_definition/item/team_definition/primary_channel/members/item/conversation_member_item_request_builder.py @@ -69,11 +69,11 @@ async def get(self,request_configuration: Optional[RequestConfiguration] = None) async def patch(self,body: Optional[ConversationMember] = None, request_configuration: Optional[RequestConfiguration] = None) -> Optional[ConversationMember]: """ - Update the role of a conversationMember in a channel. This operation is allowed only for channels with a membershipType value of private or shared. + Update the role of a conversationMember in a team.or channel. param body: The request body param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: Optional[ConversationMember] - Find more info here: https://learn.microsoft.com/graph/api/channel-update-members?view=graph-rest-1.0 + Find more info here: https://learn.microsoft.com/graph/api/conversationmember-update?view=graph-rest-1.0 """ if not body: raise TypeError("body cannot be null.") @@ -115,7 +115,7 @@ def to_get_request_information(self,request_configuration: Optional[RequestConfi def to_patch_request_information(self,body: Optional[ConversationMember] = None, request_configuration: Optional[RequestConfiguration] = None) -> RequestInformation: """ - Update the role of a conversationMember in a channel. This operation is allowed only for channels with a membershipType value of private or shared. + Update the role of a conversationMember in a team.or channel. param body: The request body param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: RequestInformation diff --git a/msgraph_beta/generated/team_template_definition/item/team_definition/primary_channel/messages/item/replies/replies_request_builder.py b/msgraph_beta/generated/team_template_definition/item/team_definition/primary_channel/messages/item/replies/replies_request_builder.py index 3f2f6654bcb..eab0f6b9d41 100644 --- a/msgraph_beta/generated/team_template_definition/item/team_definition/primary_channel/messages/item/replies/replies_request_builder.py +++ b/msgraph_beta/generated/team_template_definition/item/team_definition/primary_channel/messages/item/replies/replies_request_builder.py @@ -47,7 +47,7 @@ def by_chat_message_id1(self,chat_message_id1: str) -> ChatMessageItemRequestBui async def get(self,request_configuration: Optional[RequestConfiguration] = None) -> Optional[ChatMessageCollectionResponse]: """ - List all the replies to a message in a channel of a team. This method lists only the replies of the specified message, if any. To get the message itself, simply call get channel message. + List all the replies to a message in a channel of a team. This method lists only the replies of the specified message, if any. To get the message itself, call get channel message. param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: Optional[ChatMessageCollectionResponse] Find more info here: https://learn.microsoft.com/graph/api/chatmessage-list-replies?view=graph-rest-1.0 @@ -92,7 +92,7 @@ async def post(self,body: Optional[ChatMessage] = None, request_configuration: O def to_get_request_information(self,request_configuration: Optional[RequestConfiguration] = None) -> RequestInformation: """ - List all the replies to a message in a channel of a team. This method lists only the replies of the specified message, if any. To get the message itself, simply call get channel message. + List all the replies to a message in a channel of a team. This method lists only the replies of the specified message, if any. To get the message itself, call get channel message. param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: RequestInformation """ @@ -147,7 +147,7 @@ def delta(self) -> DeltaRequestBuilder: @dataclass class RepliesRequestBuilderGetQueryParameters(): """ - List all the replies to a message in a channel of a team. This method lists only the replies of the specified message, if any. To get the message itself, simply call get channel message. + List all the replies to a message in a channel of a team. This method lists only the replies of the specified message, if any. To get the message itself, call get channel message. """ def get_query_parameter(self,original_name: Optional[str] = None) -> str: """ diff --git a/msgraph_beta/generated/team_template_definition/item/team_definition/primary_channel/messages/messages_request_builder.py b/msgraph_beta/generated/team_template_definition/item/team_definition/primary_channel/messages/messages_request_builder.py index f7d4d0e0714..f3ab1444a19 100644 --- a/msgraph_beta/generated/team_template_definition/item/team_definition/primary_channel/messages/messages_request_builder.py +++ b/msgraph_beta/generated/team_template_definition/item/team_definition/primary_channel/messages/messages_request_builder.py @@ -68,11 +68,11 @@ async def get(self,request_configuration: Optional[RequestConfiguration] = None) async def post(self,body: Optional[ChatMessage] = None, request_configuration: Optional[RequestConfiguration] = None) -> Optional[ChatMessage]: """ - Send a new chatMessage in the specified channel. + Send a new chatMessage in the specified channel or a chat. param body: The request body param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: Optional[ChatMessage] - Find more info here: https://learn.microsoft.com/graph/api/channel-post-messages?view=graph-rest-1.0 + Find more info here: https://learn.microsoft.com/graph/api/chatmessage-post?view=graph-rest-1.0 """ if not body: raise TypeError("body cannot be null.") @@ -103,7 +103,7 @@ def to_get_request_information(self,request_configuration: Optional[RequestConfi def to_post_request_information(self,body: Optional[ChatMessage] = None, request_configuration: Optional[RequestConfiguration] = None) -> RequestInformation: """ - Send a new chatMessage in the specified channel. + Send a new chatMessage in the specified channel or a chat. param body: The request body param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: RequestInformation diff --git a/msgraph_beta/generated/teams/item/channels/item/members/item/conversation_member_item_request_builder.py b/msgraph_beta/generated/teams/item/channels/item/members/item/conversation_member_item_request_builder.py index 69c99d68059..4518cb9127b 100644 --- a/msgraph_beta/generated/teams/item/channels/item/members/item/conversation_member_item_request_builder.py +++ b/msgraph_beta/generated/teams/item/channels/item/members/item/conversation_member_item_request_builder.py @@ -69,11 +69,11 @@ async def get(self,request_configuration: Optional[RequestConfiguration] = None) async def patch(self,body: Optional[ConversationMember] = None, request_configuration: Optional[RequestConfiguration] = None) -> Optional[ConversationMember]: """ - Update the role of a conversationMember in a channel. This operation is allowed only for channels with a membershipType value of private or shared. + Update the role of a conversationMember in a team.or channel. param body: The request body param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: Optional[ConversationMember] - Find more info here: https://learn.microsoft.com/graph/api/channel-update-members?view=graph-rest-1.0 + Find more info here: https://learn.microsoft.com/graph/api/conversationmember-update?view=graph-rest-1.0 """ if not body: raise TypeError("body cannot be null.") @@ -115,7 +115,7 @@ def to_get_request_information(self,request_configuration: Optional[RequestConfi def to_patch_request_information(self,body: Optional[ConversationMember] = None, request_configuration: Optional[RequestConfiguration] = None) -> RequestInformation: """ - Update the role of a conversationMember in a channel. This operation is allowed only for channels with a membershipType value of private or shared. + Update the role of a conversationMember in a team.or channel. param body: The request body param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: RequestInformation diff --git a/msgraph_beta/generated/teams/item/channels/item/messages/item/replies/replies_request_builder.py b/msgraph_beta/generated/teams/item/channels/item/messages/item/replies/replies_request_builder.py index 9ea763d0f8a..5d00c313307 100644 --- a/msgraph_beta/generated/teams/item/channels/item/messages/item/replies/replies_request_builder.py +++ b/msgraph_beta/generated/teams/item/channels/item/messages/item/replies/replies_request_builder.py @@ -47,7 +47,7 @@ def by_chat_message_id1(self,chat_message_id1: str) -> ChatMessageItemRequestBui async def get(self,request_configuration: Optional[RequestConfiguration] = None) -> Optional[ChatMessageCollectionResponse]: """ - List all the replies to a message in a channel of a team. This method lists only the replies of the specified message, if any. To get the message itself, simply call get channel message. + List all the replies to a message in a channel of a team. This method lists only the replies of the specified message, if any. To get the message itself, call get channel message. param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: Optional[ChatMessageCollectionResponse] Find more info here: https://learn.microsoft.com/graph/api/chatmessage-list-replies?view=graph-rest-1.0 @@ -92,7 +92,7 @@ async def post(self,body: Optional[ChatMessage] = None, request_configuration: O def to_get_request_information(self,request_configuration: Optional[RequestConfiguration] = None) -> RequestInformation: """ - List all the replies to a message in a channel of a team. This method lists only the replies of the specified message, if any. To get the message itself, simply call get channel message. + List all the replies to a message in a channel of a team. This method lists only the replies of the specified message, if any. To get the message itself, call get channel message. param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: RequestInformation """ @@ -147,7 +147,7 @@ def delta(self) -> DeltaRequestBuilder: @dataclass class RepliesRequestBuilderGetQueryParameters(): """ - List all the replies to a message in a channel of a team. This method lists only the replies of the specified message, if any. To get the message itself, simply call get channel message. + List all the replies to a message in a channel of a team. This method lists only the replies of the specified message, if any. To get the message itself, call get channel message. """ def get_query_parameter(self,original_name: Optional[str] = None) -> str: """ diff --git a/msgraph_beta/generated/teams/item/channels/item/messages/messages_request_builder.py b/msgraph_beta/generated/teams/item/channels/item/messages/messages_request_builder.py index 08900cf3a34..8b18d649a55 100644 --- a/msgraph_beta/generated/teams/item/channels/item/messages/messages_request_builder.py +++ b/msgraph_beta/generated/teams/item/channels/item/messages/messages_request_builder.py @@ -68,11 +68,11 @@ async def get(self,request_configuration: Optional[RequestConfiguration] = None) async def post(self,body: Optional[ChatMessage] = None, request_configuration: Optional[RequestConfiguration] = None) -> Optional[ChatMessage]: """ - Send a new chatMessage in the specified channel. + Send a new chatMessage in the specified channel or a chat. param body: The request body param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: Optional[ChatMessage] - Find more info here: https://learn.microsoft.com/graph/api/channel-post-messages?view=graph-rest-1.0 + Find more info here: https://learn.microsoft.com/graph/api/chatmessage-post?view=graph-rest-1.0 """ if not body: raise TypeError("body cannot be null.") @@ -103,7 +103,7 @@ def to_get_request_information(self,request_configuration: Optional[RequestConfi def to_post_request_information(self,body: Optional[ChatMessage] = None, request_configuration: Optional[RequestConfiguration] = None) -> RequestInformation: """ - Send a new chatMessage in the specified channel. + Send a new chatMessage in the specified channel or a chat. param body: The request body param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: RequestInformation diff --git a/msgraph_beta/generated/teams/item/primary_channel/members/item/conversation_member_item_request_builder.py b/msgraph_beta/generated/teams/item/primary_channel/members/item/conversation_member_item_request_builder.py index 0f54077ceed..9631ff30dca 100644 --- a/msgraph_beta/generated/teams/item/primary_channel/members/item/conversation_member_item_request_builder.py +++ b/msgraph_beta/generated/teams/item/primary_channel/members/item/conversation_member_item_request_builder.py @@ -69,11 +69,11 @@ async def get(self,request_configuration: Optional[RequestConfiguration] = None) async def patch(self,body: Optional[ConversationMember] = None, request_configuration: Optional[RequestConfiguration] = None) -> Optional[ConversationMember]: """ - Update the role of a conversationMember in a channel. This operation is allowed only for channels with a membershipType value of private or shared. + Update the role of a conversationMember in a team.or channel. param body: The request body param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: Optional[ConversationMember] - Find more info here: https://learn.microsoft.com/graph/api/channel-update-members?view=graph-rest-1.0 + Find more info here: https://learn.microsoft.com/graph/api/conversationmember-update?view=graph-rest-1.0 """ if not body: raise TypeError("body cannot be null.") @@ -115,7 +115,7 @@ def to_get_request_information(self,request_configuration: Optional[RequestConfi def to_patch_request_information(self,body: Optional[ConversationMember] = None, request_configuration: Optional[RequestConfiguration] = None) -> RequestInformation: """ - Update the role of a conversationMember in a channel. This operation is allowed only for channels with a membershipType value of private or shared. + Update the role of a conversationMember in a team.or channel. param body: The request body param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: RequestInformation diff --git a/msgraph_beta/generated/teams/item/primary_channel/messages/item/replies/replies_request_builder.py b/msgraph_beta/generated/teams/item/primary_channel/messages/item/replies/replies_request_builder.py index f27e1f789ab..0141caf365a 100644 --- a/msgraph_beta/generated/teams/item/primary_channel/messages/item/replies/replies_request_builder.py +++ b/msgraph_beta/generated/teams/item/primary_channel/messages/item/replies/replies_request_builder.py @@ -47,7 +47,7 @@ def by_chat_message_id1(self,chat_message_id1: str) -> ChatMessageItemRequestBui async def get(self,request_configuration: Optional[RequestConfiguration] = None) -> Optional[ChatMessageCollectionResponse]: """ - List all the replies to a message in a channel of a team. This method lists only the replies of the specified message, if any. To get the message itself, simply call get channel message. + List all the replies to a message in a channel of a team. This method lists only the replies of the specified message, if any. To get the message itself, call get channel message. param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: Optional[ChatMessageCollectionResponse] Find more info here: https://learn.microsoft.com/graph/api/chatmessage-list-replies?view=graph-rest-1.0 @@ -92,7 +92,7 @@ async def post(self,body: Optional[ChatMessage] = None, request_configuration: O def to_get_request_information(self,request_configuration: Optional[RequestConfiguration] = None) -> RequestInformation: """ - List all the replies to a message in a channel of a team. This method lists only the replies of the specified message, if any. To get the message itself, simply call get channel message. + List all the replies to a message in a channel of a team. This method lists only the replies of the specified message, if any. To get the message itself, call get channel message. param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: RequestInformation """ @@ -147,7 +147,7 @@ def delta(self) -> DeltaRequestBuilder: @dataclass class RepliesRequestBuilderGetQueryParameters(): """ - List all the replies to a message in a channel of a team. This method lists only the replies of the specified message, if any. To get the message itself, simply call get channel message. + List all the replies to a message in a channel of a team. This method lists only the replies of the specified message, if any. To get the message itself, call get channel message. """ def get_query_parameter(self,original_name: Optional[str] = None) -> str: """ diff --git a/msgraph_beta/generated/teams/item/primary_channel/messages/messages_request_builder.py b/msgraph_beta/generated/teams/item/primary_channel/messages/messages_request_builder.py index 66d85370294..2acccf59503 100644 --- a/msgraph_beta/generated/teams/item/primary_channel/messages/messages_request_builder.py +++ b/msgraph_beta/generated/teams/item/primary_channel/messages/messages_request_builder.py @@ -68,11 +68,11 @@ async def get(self,request_configuration: Optional[RequestConfiguration] = None) async def post(self,body: Optional[ChatMessage] = None, request_configuration: Optional[RequestConfiguration] = None) -> Optional[ChatMessage]: """ - Send a new chatMessage in the specified channel. + Send a new chatMessage in the specified channel or a chat. param body: The request body param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: Optional[ChatMessage] - Find more info here: https://learn.microsoft.com/graph/api/channel-post-messages?view=graph-rest-1.0 + Find more info here: https://learn.microsoft.com/graph/api/chatmessage-post?view=graph-rest-1.0 """ if not body: raise TypeError("body cannot be null.") @@ -103,7 +103,7 @@ def to_get_request_information(self,request_configuration: Optional[RequestConfi def to_post_request_information(self,body: Optional[ChatMessage] = None, request_configuration: Optional[RequestConfiguration] = None) -> RequestInformation: """ - Send a new chatMessage in the specified channel. + Send a new chatMessage in the specified channel or a chat. param body: The request body param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: RequestInformation diff --git a/msgraph_beta/generated/teamwork/deleted_teams/item/channels/item/members/item/conversation_member_item_request_builder.py b/msgraph_beta/generated/teamwork/deleted_teams/item/channels/item/members/item/conversation_member_item_request_builder.py index 333394746e8..3f475ea9e7b 100644 --- a/msgraph_beta/generated/teamwork/deleted_teams/item/channels/item/members/item/conversation_member_item_request_builder.py +++ b/msgraph_beta/generated/teamwork/deleted_teams/item/channels/item/members/item/conversation_member_item_request_builder.py @@ -69,11 +69,11 @@ async def get(self,request_configuration: Optional[RequestConfiguration] = None) async def patch(self,body: Optional[ConversationMember] = None, request_configuration: Optional[RequestConfiguration] = None) -> Optional[ConversationMember]: """ - Update the role of a conversationMember in a channel. This operation is allowed only for channels with a membershipType value of private or shared. + Update the role of a conversationMember in a team.or channel. param body: The request body param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: Optional[ConversationMember] - Find more info here: https://learn.microsoft.com/graph/api/channel-update-members?view=graph-rest-1.0 + Find more info here: https://learn.microsoft.com/graph/api/conversationmember-update?view=graph-rest-1.0 """ if not body: raise TypeError("body cannot be null.") @@ -115,7 +115,7 @@ def to_get_request_information(self,request_configuration: Optional[RequestConfi def to_patch_request_information(self,body: Optional[ConversationMember] = None, request_configuration: Optional[RequestConfiguration] = None) -> RequestInformation: """ - Update the role of a conversationMember in a channel. This operation is allowed only for channels with a membershipType value of private or shared. + Update the role of a conversationMember in a team.or channel. param body: The request body param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: RequestInformation diff --git a/msgraph_beta/generated/teamwork/deleted_teams/item/channels/item/messages/item/replies/replies_request_builder.py b/msgraph_beta/generated/teamwork/deleted_teams/item/channels/item/messages/item/replies/replies_request_builder.py index 781425c2a9d..63bd6b1b597 100644 --- a/msgraph_beta/generated/teamwork/deleted_teams/item/channels/item/messages/item/replies/replies_request_builder.py +++ b/msgraph_beta/generated/teamwork/deleted_teams/item/channels/item/messages/item/replies/replies_request_builder.py @@ -47,7 +47,7 @@ def by_chat_message_id1(self,chat_message_id1: str) -> ChatMessageItemRequestBui async def get(self,request_configuration: Optional[RequestConfiguration] = None) -> Optional[ChatMessageCollectionResponse]: """ - List all the replies to a message in a channel of a team. This method lists only the replies of the specified message, if any. To get the message itself, simply call get channel message. + List all the replies to a message in a channel of a team. This method lists only the replies of the specified message, if any. To get the message itself, call get channel message. param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: Optional[ChatMessageCollectionResponse] Find more info here: https://learn.microsoft.com/graph/api/chatmessage-list-replies?view=graph-rest-1.0 @@ -92,7 +92,7 @@ async def post(self,body: Optional[ChatMessage] = None, request_configuration: O def to_get_request_information(self,request_configuration: Optional[RequestConfiguration] = None) -> RequestInformation: """ - List all the replies to a message in a channel of a team. This method lists only the replies of the specified message, if any. To get the message itself, simply call get channel message. + List all the replies to a message in a channel of a team. This method lists only the replies of the specified message, if any. To get the message itself, call get channel message. param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: RequestInformation """ @@ -147,7 +147,7 @@ def delta(self) -> DeltaRequestBuilder: @dataclass class RepliesRequestBuilderGetQueryParameters(): """ - List all the replies to a message in a channel of a team. This method lists only the replies of the specified message, if any. To get the message itself, simply call get channel message. + List all the replies to a message in a channel of a team. This method lists only the replies of the specified message, if any. To get the message itself, call get channel message. """ def get_query_parameter(self,original_name: Optional[str] = None) -> str: """ diff --git a/msgraph_beta/generated/teamwork/deleted_teams/item/channels/item/messages/messages_request_builder.py b/msgraph_beta/generated/teamwork/deleted_teams/item/channels/item/messages/messages_request_builder.py index f3a88cb4d34..1d8a9dc65bc 100644 --- a/msgraph_beta/generated/teamwork/deleted_teams/item/channels/item/messages/messages_request_builder.py +++ b/msgraph_beta/generated/teamwork/deleted_teams/item/channels/item/messages/messages_request_builder.py @@ -68,11 +68,11 @@ async def get(self,request_configuration: Optional[RequestConfiguration] = None) async def post(self,body: Optional[ChatMessage] = None, request_configuration: Optional[RequestConfiguration] = None) -> Optional[ChatMessage]: """ - Send a new chatMessage in the specified channel. + Send a new chatMessage in the specified channel or a chat. param body: The request body param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: Optional[ChatMessage] - Find more info here: https://learn.microsoft.com/graph/api/channel-post-messages?view=graph-rest-1.0 + Find more info here: https://learn.microsoft.com/graph/api/chatmessage-post?view=graph-rest-1.0 """ if not body: raise TypeError("body cannot be null.") @@ -103,7 +103,7 @@ def to_get_request_information(self,request_configuration: Optional[RequestConfi def to_post_request_information(self,body: Optional[ChatMessage] = None, request_configuration: Optional[RequestConfiguration] = None) -> RequestInformation: """ - Send a new chatMessage in the specified channel. + Send a new chatMessage in the specified channel or a chat. param body: The request body param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: RequestInformation diff --git a/msgraph_beta/generated/teamwork/team_templates/item/definitions/item/team_definition/channels/item/members/item/conversation_member_item_request_builder.py b/msgraph_beta/generated/teamwork/team_templates/item/definitions/item/team_definition/channels/item/members/item/conversation_member_item_request_builder.py index c072996dff3..7bd04295816 100644 --- a/msgraph_beta/generated/teamwork/team_templates/item/definitions/item/team_definition/channels/item/members/item/conversation_member_item_request_builder.py +++ b/msgraph_beta/generated/teamwork/team_templates/item/definitions/item/team_definition/channels/item/members/item/conversation_member_item_request_builder.py @@ -69,11 +69,11 @@ async def get(self,request_configuration: Optional[RequestConfiguration] = None) async def patch(self,body: Optional[ConversationMember] = None, request_configuration: Optional[RequestConfiguration] = None) -> Optional[ConversationMember]: """ - Update the role of a conversationMember in a channel. This operation is allowed only for channels with a membershipType value of private or shared. + Update the role of a conversationMember in a team.or channel. param body: The request body param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: Optional[ConversationMember] - Find more info here: https://learn.microsoft.com/graph/api/channel-update-members?view=graph-rest-1.0 + Find more info here: https://learn.microsoft.com/graph/api/conversationmember-update?view=graph-rest-1.0 """ if not body: raise TypeError("body cannot be null.") @@ -115,7 +115,7 @@ def to_get_request_information(self,request_configuration: Optional[RequestConfi def to_patch_request_information(self,body: Optional[ConversationMember] = None, request_configuration: Optional[RequestConfiguration] = None) -> RequestInformation: """ - Update the role of a conversationMember in a channel. This operation is allowed only for channels with a membershipType value of private or shared. + Update the role of a conversationMember in a team.or channel. param body: The request body param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: RequestInformation diff --git a/msgraph_beta/generated/teamwork/team_templates/item/definitions/item/team_definition/channels/item/messages/item/replies/replies_request_builder.py b/msgraph_beta/generated/teamwork/team_templates/item/definitions/item/team_definition/channels/item/messages/item/replies/replies_request_builder.py index ffff24378e0..0dd46a68b01 100644 --- a/msgraph_beta/generated/teamwork/team_templates/item/definitions/item/team_definition/channels/item/messages/item/replies/replies_request_builder.py +++ b/msgraph_beta/generated/teamwork/team_templates/item/definitions/item/team_definition/channels/item/messages/item/replies/replies_request_builder.py @@ -47,7 +47,7 @@ def by_chat_message_id1(self,chat_message_id1: str) -> ChatMessageItemRequestBui async def get(self,request_configuration: Optional[RequestConfiguration] = None) -> Optional[ChatMessageCollectionResponse]: """ - List all the replies to a message in a channel of a team. This method lists only the replies of the specified message, if any. To get the message itself, simply call get channel message. + List all the replies to a message in a channel of a team. This method lists only the replies of the specified message, if any. To get the message itself, call get channel message. param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: Optional[ChatMessageCollectionResponse] Find more info here: https://learn.microsoft.com/graph/api/chatmessage-list-replies?view=graph-rest-1.0 @@ -92,7 +92,7 @@ async def post(self,body: Optional[ChatMessage] = None, request_configuration: O def to_get_request_information(self,request_configuration: Optional[RequestConfiguration] = None) -> RequestInformation: """ - List all the replies to a message in a channel of a team. This method lists only the replies of the specified message, if any. To get the message itself, simply call get channel message. + List all the replies to a message in a channel of a team. This method lists only the replies of the specified message, if any. To get the message itself, call get channel message. param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: RequestInformation """ @@ -147,7 +147,7 @@ def delta(self) -> DeltaRequestBuilder: @dataclass class RepliesRequestBuilderGetQueryParameters(): """ - List all the replies to a message in a channel of a team. This method lists only the replies of the specified message, if any. To get the message itself, simply call get channel message. + List all the replies to a message in a channel of a team. This method lists only the replies of the specified message, if any. To get the message itself, call get channel message. """ def get_query_parameter(self,original_name: Optional[str] = None) -> str: """ diff --git a/msgraph_beta/generated/teamwork/team_templates/item/definitions/item/team_definition/channels/item/messages/messages_request_builder.py b/msgraph_beta/generated/teamwork/team_templates/item/definitions/item/team_definition/channels/item/messages/messages_request_builder.py index 04c819d9bc2..1380c4115d7 100644 --- a/msgraph_beta/generated/teamwork/team_templates/item/definitions/item/team_definition/channels/item/messages/messages_request_builder.py +++ b/msgraph_beta/generated/teamwork/team_templates/item/definitions/item/team_definition/channels/item/messages/messages_request_builder.py @@ -68,11 +68,11 @@ async def get(self,request_configuration: Optional[RequestConfiguration] = None) async def post(self,body: Optional[ChatMessage] = None, request_configuration: Optional[RequestConfiguration] = None) -> Optional[ChatMessage]: """ - Send a new chatMessage in the specified channel. + Send a new chatMessage in the specified channel or a chat. param body: The request body param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: Optional[ChatMessage] - Find more info here: https://learn.microsoft.com/graph/api/channel-post-messages?view=graph-rest-1.0 + Find more info here: https://learn.microsoft.com/graph/api/chatmessage-post?view=graph-rest-1.0 """ if not body: raise TypeError("body cannot be null.") @@ -103,7 +103,7 @@ def to_get_request_information(self,request_configuration: Optional[RequestConfi def to_post_request_information(self,body: Optional[ChatMessage] = None, request_configuration: Optional[RequestConfiguration] = None) -> RequestInformation: """ - Send a new chatMessage in the specified channel. + Send a new chatMessage in the specified channel or a chat. param body: The request body param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: RequestInformation diff --git a/msgraph_beta/generated/teamwork/team_templates/item/definitions/item/team_definition/primary_channel/members/item/conversation_member_item_request_builder.py b/msgraph_beta/generated/teamwork/team_templates/item/definitions/item/team_definition/primary_channel/members/item/conversation_member_item_request_builder.py index 829ea102474..ddcf0eff3f6 100644 --- a/msgraph_beta/generated/teamwork/team_templates/item/definitions/item/team_definition/primary_channel/members/item/conversation_member_item_request_builder.py +++ b/msgraph_beta/generated/teamwork/team_templates/item/definitions/item/team_definition/primary_channel/members/item/conversation_member_item_request_builder.py @@ -69,11 +69,11 @@ async def get(self,request_configuration: Optional[RequestConfiguration] = None) async def patch(self,body: Optional[ConversationMember] = None, request_configuration: Optional[RequestConfiguration] = None) -> Optional[ConversationMember]: """ - Update the role of a conversationMember in a channel. This operation is allowed only for channels with a membershipType value of private or shared. + Update the role of a conversationMember in a team.or channel. param body: The request body param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: Optional[ConversationMember] - Find more info here: https://learn.microsoft.com/graph/api/channel-update-members?view=graph-rest-1.0 + Find more info here: https://learn.microsoft.com/graph/api/conversationmember-update?view=graph-rest-1.0 """ if not body: raise TypeError("body cannot be null.") @@ -115,7 +115,7 @@ def to_get_request_information(self,request_configuration: Optional[RequestConfi def to_patch_request_information(self,body: Optional[ConversationMember] = None, request_configuration: Optional[RequestConfiguration] = None) -> RequestInformation: """ - Update the role of a conversationMember in a channel. This operation is allowed only for channels with a membershipType value of private or shared. + Update the role of a conversationMember in a team.or channel. param body: The request body param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: RequestInformation diff --git a/msgraph_beta/generated/teamwork/team_templates/item/definitions/item/team_definition/primary_channel/messages/item/replies/replies_request_builder.py b/msgraph_beta/generated/teamwork/team_templates/item/definitions/item/team_definition/primary_channel/messages/item/replies/replies_request_builder.py index ef46e4c15ca..b7965b6355e 100644 --- a/msgraph_beta/generated/teamwork/team_templates/item/definitions/item/team_definition/primary_channel/messages/item/replies/replies_request_builder.py +++ b/msgraph_beta/generated/teamwork/team_templates/item/definitions/item/team_definition/primary_channel/messages/item/replies/replies_request_builder.py @@ -47,7 +47,7 @@ def by_chat_message_id1(self,chat_message_id1: str) -> ChatMessageItemRequestBui async def get(self,request_configuration: Optional[RequestConfiguration] = None) -> Optional[ChatMessageCollectionResponse]: """ - List all the replies to a message in a channel of a team. This method lists only the replies of the specified message, if any. To get the message itself, simply call get channel message. + List all the replies to a message in a channel of a team. This method lists only the replies of the specified message, if any. To get the message itself, call get channel message. param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: Optional[ChatMessageCollectionResponse] Find more info here: https://learn.microsoft.com/graph/api/chatmessage-list-replies?view=graph-rest-1.0 @@ -92,7 +92,7 @@ async def post(self,body: Optional[ChatMessage] = None, request_configuration: O def to_get_request_information(self,request_configuration: Optional[RequestConfiguration] = None) -> RequestInformation: """ - List all the replies to a message in a channel of a team. This method lists only the replies of the specified message, if any. To get the message itself, simply call get channel message. + List all the replies to a message in a channel of a team. This method lists only the replies of the specified message, if any. To get the message itself, call get channel message. param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: RequestInformation """ @@ -147,7 +147,7 @@ def delta(self) -> DeltaRequestBuilder: @dataclass class RepliesRequestBuilderGetQueryParameters(): """ - List all the replies to a message in a channel of a team. This method lists only the replies of the specified message, if any. To get the message itself, simply call get channel message. + List all the replies to a message in a channel of a team. This method lists only the replies of the specified message, if any. To get the message itself, call get channel message. """ def get_query_parameter(self,original_name: Optional[str] = None) -> str: """ diff --git a/msgraph_beta/generated/teamwork/team_templates/item/definitions/item/team_definition/primary_channel/messages/messages_request_builder.py b/msgraph_beta/generated/teamwork/team_templates/item/definitions/item/team_definition/primary_channel/messages/messages_request_builder.py index e5607c83989..0d5d2631e0e 100644 --- a/msgraph_beta/generated/teamwork/team_templates/item/definitions/item/team_definition/primary_channel/messages/messages_request_builder.py +++ b/msgraph_beta/generated/teamwork/team_templates/item/definitions/item/team_definition/primary_channel/messages/messages_request_builder.py @@ -68,11 +68,11 @@ async def get(self,request_configuration: Optional[RequestConfiguration] = None) async def post(self,body: Optional[ChatMessage] = None, request_configuration: Optional[RequestConfiguration] = None) -> Optional[ChatMessage]: """ - Send a new chatMessage in the specified channel. + Send a new chatMessage in the specified channel or a chat. param body: The request body param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: Optional[ChatMessage] - Find more info here: https://learn.microsoft.com/graph/api/channel-post-messages?view=graph-rest-1.0 + Find more info here: https://learn.microsoft.com/graph/api/chatmessage-post?view=graph-rest-1.0 """ if not body: raise TypeError("body cannot be null.") @@ -103,7 +103,7 @@ def to_get_request_information(self,request_configuration: Optional[RequestConfi def to_post_request_information(self,body: Optional[ChatMessage] = None, request_configuration: Optional[RequestConfiguration] = None) -> RequestInformation: """ - Send a new chatMessage in the specified channel. + Send a new chatMessage in the specified channel or a chat. param body: The request body param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: RequestInformation diff --git a/msgraph_beta/generated/tenant_relationships/multi_tenant_organization/multi_tenant_organization_request_builder.py b/msgraph_beta/generated/tenant_relationships/multi_tenant_organization/multi_tenant_organization_request_builder.py index 65b4e96c5e1..9f30e63c502 100644 --- a/msgraph_beta/generated/tenant_relationships/multi_tenant_organization/multi_tenant_organization_request_builder.py +++ b/msgraph_beta/generated/tenant_relationships/multi_tenant_organization/multi_tenant_organization_request_builder.py @@ -52,11 +52,11 @@ async def get(self,request_configuration: Optional[RequestConfiguration] = None) async def patch(self,body: Optional[MultiTenantOrganization] = None, request_configuration: Optional[RequestConfiguration] = None) -> Optional[MultiTenantOrganization]: """ - Update the properties of a multi-tenant organization. + Create a new multi-tenant organization. By default, the creator tenant becomes an owner tenant upon successful creation. Only owner tenants can manage a multi-tenant organization. To allow for asynchronous processing, you must wait a minimum of 2 hours between creation and joining a multi-tenant organization. param body: The request body param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: Optional[MultiTenantOrganization] - Find more info here: https://learn.microsoft.com/graph/api/multitenantorganization-update?view=graph-rest-1.0 + Find more info here: https://learn.microsoft.com/graph/api/tenantrelationship-put-multitenantorganization?view=graph-rest-1.0 """ if not body: raise TypeError("body cannot be null.") @@ -87,7 +87,7 @@ def to_get_request_information(self,request_configuration: Optional[RequestConfi def to_patch_request_information(self,body: Optional[MultiTenantOrganization] = None, request_configuration: Optional[RequestConfiguration] = None) -> RequestInformation: """ - Update the properties of a multi-tenant organization. + Create a new multi-tenant organization. By default, the creator tenant becomes an owner tenant upon successful creation. Only owner tenants can manage a multi-tenant organization. To allow for asynchronous processing, you must wait a minimum of 2 hours between creation and joining a multi-tenant organization. param body: The request body param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: RequestInformation diff --git a/msgraph_beta/generated/users/item/authentication/methods/item/reset_password/reset_password_request_builder.py b/msgraph_beta/generated/users/item/authentication/methods/item/reset_password/reset_password_request_builder.py index 90f074f9e80..9bf0b953c4a 100644 --- a/msgraph_beta/generated/users/item/authentication/methods/item/reset_password/reset_password_request_builder.py +++ b/msgraph_beta/generated/users/item/authentication/methods/item/reset_password/reset_password_request_builder.py @@ -29,10 +29,11 @@ def __init__(self,request_adapter: RequestAdapter, path_parameters: Union[str, D async def post(self,body: Optional[ResetPasswordPostRequestBody] = None, request_configuration: Optional[RequestConfiguration] = None) -> Optional[PasswordResetResponse]: """ - Invoke action resetPassword + Initiate a reset for the password associated with a password authentication method object. This can only be done by an administrator with appropriate permissions and can't be performed on a user's own account. This flow writes the new password to Microsoft Entra ID and pushes it to on-premises Active Directory if configured using password writeback. The admin can either provide a new password or have the system generate one. The user is prompted to change their password on their next sign in. This reset is a long-running operation and will return a Location header with a link where the caller can periodically check for the status of the reset operation. param body: The request body param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: Optional[PasswordResetResponse] + Find more info here: https://learn.microsoft.com/graph/api/authenticationmethod-resetpassword?view=graph-rest-1.0 """ if not body: raise TypeError("body cannot be null.") @@ -52,7 +53,7 @@ async def post(self,body: Optional[ResetPasswordPostRequestBody] = None, request def to_post_request_information(self,body: Optional[ResetPasswordPostRequestBody] = None, request_configuration: Optional[RequestConfiguration] = None) -> RequestInformation: """ - Invoke action resetPassword + Initiate a reset for the password associated with a password authentication method object. This can only be done by an administrator with appropriate permissions and can't be performed on a user's own account. This flow writes the new password to Microsoft Entra ID and pushes it to on-premises Active Directory if configured using password writeback. The admin can either provide a new password or have the system generate one. The user is prompted to change their password on their next sign in. This reset is a long-running operation and will return a Location header with a link where the caller can periodically check for the status of the reset operation. param body: The request body param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: RequestInformation diff --git a/msgraph_beta/generated/users/item/calendar/calendar_view/item/attachments/attachments_request_builder.py b/msgraph_beta/generated/users/item/calendar/calendar_view/item/attachments/attachments_request_builder.py index a712dfefa28..53a91f6f5eb 100644 --- a/msgraph_beta/generated/users/item/calendar/calendar_view/item/attachments/attachments_request_builder.py +++ b/msgraph_beta/generated/users/item/calendar/calendar_view/item/attachments/attachments_request_builder.py @@ -68,11 +68,11 @@ async def get(self,request_configuration: Optional[RequestConfiguration] = None) async def post(self,body: Optional[Attachment] = None, request_configuration: Optional[RequestConfiguration] = None) -> Optional[Attachment]: """ - Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. param body: The request body param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: Optional[Attachment] - Find more info here: https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 + Find more info here: https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0 """ if not body: raise TypeError("body cannot be null.") @@ -103,7 +103,7 @@ def to_get_request_information(self,request_configuration: Optional[RequestConfi def to_post_request_information(self,body: Optional[Attachment] = None, request_configuration: Optional[RequestConfiguration] = None) -> RequestInformation: """ - Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. param body: The request body param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: RequestInformation diff --git a/msgraph_beta/generated/users/item/calendar/calendar_view/item/exception_occurrences/item/attachments/attachments_request_builder.py b/msgraph_beta/generated/users/item/calendar/calendar_view/item/exception_occurrences/item/attachments/attachments_request_builder.py index efd00700f53..43b5322b7af 100644 --- a/msgraph_beta/generated/users/item/calendar/calendar_view/item/exception_occurrences/item/attachments/attachments_request_builder.py +++ b/msgraph_beta/generated/users/item/calendar/calendar_view/item/exception_occurrences/item/attachments/attachments_request_builder.py @@ -68,11 +68,11 @@ async def get(self,request_configuration: Optional[RequestConfiguration] = None) async def post(self,body: Optional[Attachment] = None, request_configuration: Optional[RequestConfiguration] = None) -> Optional[Attachment]: """ - Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. param body: The request body param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: Optional[Attachment] - Find more info here: https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 + Find more info here: https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0 """ if not body: raise TypeError("body cannot be null.") @@ -103,7 +103,7 @@ def to_get_request_information(self,request_configuration: Optional[RequestConfi def to_post_request_information(self,body: Optional[Attachment] = None, request_configuration: Optional[RequestConfiguration] = None) -> RequestInformation: """ - Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. param body: The request body param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: RequestInformation diff --git a/msgraph_beta/generated/users/item/calendar/calendar_view/item/exception_occurrences/item/instances/item/attachments/attachments_request_builder.py b/msgraph_beta/generated/users/item/calendar/calendar_view/item/exception_occurrences/item/instances/item/attachments/attachments_request_builder.py index 337ca9cb22a..386c17ff60a 100644 --- a/msgraph_beta/generated/users/item/calendar/calendar_view/item/exception_occurrences/item/instances/item/attachments/attachments_request_builder.py +++ b/msgraph_beta/generated/users/item/calendar/calendar_view/item/exception_occurrences/item/instances/item/attachments/attachments_request_builder.py @@ -68,11 +68,11 @@ async def get(self,request_configuration: Optional[RequestConfiguration] = None) async def post(self,body: Optional[Attachment] = None, request_configuration: Optional[RequestConfiguration] = None) -> Optional[Attachment]: """ - Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. param body: The request body param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: Optional[Attachment] - Find more info here: https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 + Find more info here: https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0 """ if not body: raise TypeError("body cannot be null.") @@ -103,7 +103,7 @@ def to_get_request_information(self,request_configuration: Optional[RequestConfi def to_post_request_information(self,body: Optional[Attachment] = None, request_configuration: Optional[RequestConfiguration] = None) -> RequestInformation: """ - Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. param body: The request body param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: RequestInformation diff --git a/msgraph_beta/generated/users/item/calendar/calendar_view/item/instances/item/attachments/attachments_request_builder.py b/msgraph_beta/generated/users/item/calendar/calendar_view/item/instances/item/attachments/attachments_request_builder.py index c67b868e4c6..ff1d548ce89 100644 --- a/msgraph_beta/generated/users/item/calendar/calendar_view/item/instances/item/attachments/attachments_request_builder.py +++ b/msgraph_beta/generated/users/item/calendar/calendar_view/item/instances/item/attachments/attachments_request_builder.py @@ -68,11 +68,11 @@ async def get(self,request_configuration: Optional[RequestConfiguration] = None) async def post(self,body: Optional[Attachment] = None, request_configuration: Optional[RequestConfiguration] = None) -> Optional[Attachment]: """ - Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. param body: The request body param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: Optional[Attachment] - Find more info here: https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 + Find more info here: https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0 """ if not body: raise TypeError("body cannot be null.") @@ -103,7 +103,7 @@ def to_get_request_information(self,request_configuration: Optional[RequestConfi def to_post_request_information(self,body: Optional[Attachment] = None, request_configuration: Optional[RequestConfiguration] = None) -> RequestInformation: """ - Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. param body: The request body param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: RequestInformation diff --git a/msgraph_beta/generated/users/item/calendar/calendar_view/item/instances/item/exception_occurrences/item/attachments/attachments_request_builder.py b/msgraph_beta/generated/users/item/calendar/calendar_view/item/instances/item/exception_occurrences/item/attachments/attachments_request_builder.py index d01b4d85439..4d5bdd8dfbf 100644 --- a/msgraph_beta/generated/users/item/calendar/calendar_view/item/instances/item/exception_occurrences/item/attachments/attachments_request_builder.py +++ b/msgraph_beta/generated/users/item/calendar/calendar_view/item/instances/item/exception_occurrences/item/attachments/attachments_request_builder.py @@ -68,11 +68,11 @@ async def get(self,request_configuration: Optional[RequestConfiguration] = None) async def post(self,body: Optional[Attachment] = None, request_configuration: Optional[RequestConfiguration] = None) -> Optional[Attachment]: """ - Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. param body: The request body param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: Optional[Attachment] - Find more info here: https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 + Find more info here: https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0 """ if not body: raise TypeError("body cannot be null.") @@ -103,7 +103,7 @@ def to_get_request_information(self,request_configuration: Optional[RequestConfi def to_post_request_information(self,body: Optional[Attachment] = None, request_configuration: Optional[RequestConfiguration] = None) -> RequestInformation: """ - Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. param body: The request body param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: RequestInformation diff --git a/msgraph_beta/generated/users/item/calendar/events/item/attachments/attachments_request_builder.py b/msgraph_beta/generated/users/item/calendar/events/item/attachments/attachments_request_builder.py index 047170948f9..3043b1977bd 100644 --- a/msgraph_beta/generated/users/item/calendar/events/item/attachments/attachments_request_builder.py +++ b/msgraph_beta/generated/users/item/calendar/events/item/attachments/attachments_request_builder.py @@ -68,11 +68,11 @@ async def get(self,request_configuration: Optional[RequestConfiguration] = None) async def post(self,body: Optional[Attachment] = None, request_configuration: Optional[RequestConfiguration] = None) -> Optional[Attachment]: """ - Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. param body: The request body param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: Optional[Attachment] - Find more info here: https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 + Find more info here: https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0 """ if not body: raise TypeError("body cannot be null.") @@ -103,7 +103,7 @@ def to_get_request_information(self,request_configuration: Optional[RequestConfi def to_post_request_information(self,body: Optional[Attachment] = None, request_configuration: Optional[RequestConfiguration] = None) -> RequestInformation: """ - Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. param body: The request body param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: RequestInformation diff --git a/msgraph_beta/generated/users/item/calendar/events/item/exception_occurrences/item/attachments/attachments_request_builder.py b/msgraph_beta/generated/users/item/calendar/events/item/exception_occurrences/item/attachments/attachments_request_builder.py index 99a5993c881..e48ef5bd63e 100644 --- a/msgraph_beta/generated/users/item/calendar/events/item/exception_occurrences/item/attachments/attachments_request_builder.py +++ b/msgraph_beta/generated/users/item/calendar/events/item/exception_occurrences/item/attachments/attachments_request_builder.py @@ -68,11 +68,11 @@ async def get(self,request_configuration: Optional[RequestConfiguration] = None) async def post(self,body: Optional[Attachment] = None, request_configuration: Optional[RequestConfiguration] = None) -> Optional[Attachment]: """ - Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. param body: The request body param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: Optional[Attachment] - Find more info here: https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 + Find more info here: https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0 """ if not body: raise TypeError("body cannot be null.") @@ -103,7 +103,7 @@ def to_get_request_information(self,request_configuration: Optional[RequestConfi def to_post_request_information(self,body: Optional[Attachment] = None, request_configuration: Optional[RequestConfiguration] = None) -> RequestInformation: """ - Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. param body: The request body param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: RequestInformation diff --git a/msgraph_beta/generated/users/item/calendar/events/item/exception_occurrences/item/instances/item/attachments/attachments_request_builder.py b/msgraph_beta/generated/users/item/calendar/events/item/exception_occurrences/item/instances/item/attachments/attachments_request_builder.py index df7b7c26bdd..3703548eee8 100644 --- a/msgraph_beta/generated/users/item/calendar/events/item/exception_occurrences/item/instances/item/attachments/attachments_request_builder.py +++ b/msgraph_beta/generated/users/item/calendar/events/item/exception_occurrences/item/instances/item/attachments/attachments_request_builder.py @@ -68,11 +68,11 @@ async def get(self,request_configuration: Optional[RequestConfiguration] = None) async def post(self,body: Optional[Attachment] = None, request_configuration: Optional[RequestConfiguration] = None) -> Optional[Attachment]: """ - Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. param body: The request body param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: Optional[Attachment] - Find more info here: https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 + Find more info here: https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0 """ if not body: raise TypeError("body cannot be null.") @@ -103,7 +103,7 @@ def to_get_request_information(self,request_configuration: Optional[RequestConfi def to_post_request_information(self,body: Optional[Attachment] = None, request_configuration: Optional[RequestConfiguration] = None) -> RequestInformation: """ - Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. param body: The request body param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: RequestInformation diff --git a/msgraph_beta/generated/users/item/calendar/events/item/instances/item/attachments/attachments_request_builder.py b/msgraph_beta/generated/users/item/calendar/events/item/instances/item/attachments/attachments_request_builder.py index 6a0b9ef94dd..cd4f5e241aa 100644 --- a/msgraph_beta/generated/users/item/calendar/events/item/instances/item/attachments/attachments_request_builder.py +++ b/msgraph_beta/generated/users/item/calendar/events/item/instances/item/attachments/attachments_request_builder.py @@ -68,11 +68,11 @@ async def get(self,request_configuration: Optional[RequestConfiguration] = None) async def post(self,body: Optional[Attachment] = None, request_configuration: Optional[RequestConfiguration] = None) -> Optional[Attachment]: """ - Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. param body: The request body param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: Optional[Attachment] - Find more info here: https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 + Find more info here: https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0 """ if not body: raise TypeError("body cannot be null.") @@ -103,7 +103,7 @@ def to_get_request_information(self,request_configuration: Optional[RequestConfi def to_post_request_information(self,body: Optional[Attachment] = None, request_configuration: Optional[RequestConfiguration] = None) -> RequestInformation: """ - Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. param body: The request body param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: RequestInformation diff --git a/msgraph_beta/generated/users/item/calendar/events/item/instances/item/exception_occurrences/item/attachments/attachments_request_builder.py b/msgraph_beta/generated/users/item/calendar/events/item/instances/item/exception_occurrences/item/attachments/attachments_request_builder.py index f5e092ed05b..fed1d92b985 100644 --- a/msgraph_beta/generated/users/item/calendar/events/item/instances/item/exception_occurrences/item/attachments/attachments_request_builder.py +++ b/msgraph_beta/generated/users/item/calendar/events/item/instances/item/exception_occurrences/item/attachments/attachments_request_builder.py @@ -68,11 +68,11 @@ async def get(self,request_configuration: Optional[RequestConfiguration] = None) async def post(self,body: Optional[Attachment] = None, request_configuration: Optional[RequestConfiguration] = None) -> Optional[Attachment]: """ - Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. param body: The request body param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: Optional[Attachment] - Find more info here: https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 + Find more info here: https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0 """ if not body: raise TypeError("body cannot be null.") @@ -103,7 +103,7 @@ def to_get_request_information(self,request_configuration: Optional[RequestConfi def to_post_request_information(self,body: Optional[Attachment] = None, request_configuration: Optional[RequestConfiguration] = None) -> RequestInformation: """ - Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. param body: The request body param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: RequestInformation diff --git a/msgraph_beta/generated/users/item/calendar_groups/item/calendars/item/calendar_view/item/attachments/attachments_request_builder.py b/msgraph_beta/generated/users/item/calendar_groups/item/calendars/item/calendar_view/item/attachments/attachments_request_builder.py index ef141048d81..ef0ad96fdae 100644 --- a/msgraph_beta/generated/users/item/calendar_groups/item/calendars/item/calendar_view/item/attachments/attachments_request_builder.py +++ b/msgraph_beta/generated/users/item/calendar_groups/item/calendars/item/calendar_view/item/attachments/attachments_request_builder.py @@ -68,11 +68,11 @@ async def get(self,request_configuration: Optional[RequestConfiguration] = None) async def post(self,body: Optional[Attachment] = None, request_configuration: Optional[RequestConfiguration] = None) -> Optional[Attachment]: """ - Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. param body: The request body param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: Optional[Attachment] - Find more info here: https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 + Find more info here: https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0 """ if not body: raise TypeError("body cannot be null.") @@ -103,7 +103,7 @@ def to_get_request_information(self,request_configuration: Optional[RequestConfi def to_post_request_information(self,body: Optional[Attachment] = None, request_configuration: Optional[RequestConfiguration] = None) -> RequestInformation: """ - Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. param body: The request body param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: RequestInformation diff --git a/msgraph_beta/generated/users/item/calendar_groups/item/calendars/item/calendar_view/item/exception_occurrences/item/attachments/attachments_request_builder.py b/msgraph_beta/generated/users/item/calendar_groups/item/calendars/item/calendar_view/item/exception_occurrences/item/attachments/attachments_request_builder.py index 1ef6f47a5ad..c28329a8376 100644 --- a/msgraph_beta/generated/users/item/calendar_groups/item/calendars/item/calendar_view/item/exception_occurrences/item/attachments/attachments_request_builder.py +++ b/msgraph_beta/generated/users/item/calendar_groups/item/calendars/item/calendar_view/item/exception_occurrences/item/attachments/attachments_request_builder.py @@ -68,11 +68,11 @@ async def get(self,request_configuration: Optional[RequestConfiguration] = None) async def post(self,body: Optional[Attachment] = None, request_configuration: Optional[RequestConfiguration] = None) -> Optional[Attachment]: """ - Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. param body: The request body param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: Optional[Attachment] - Find more info here: https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 + Find more info here: https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0 """ if not body: raise TypeError("body cannot be null.") @@ -103,7 +103,7 @@ def to_get_request_information(self,request_configuration: Optional[RequestConfi def to_post_request_information(self,body: Optional[Attachment] = None, request_configuration: Optional[RequestConfiguration] = None) -> RequestInformation: """ - Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. param body: The request body param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: RequestInformation diff --git a/msgraph_beta/generated/users/item/calendar_groups/item/calendars/item/calendar_view/item/exception_occurrences/item/instances/item/attachments/attachments_request_builder.py b/msgraph_beta/generated/users/item/calendar_groups/item/calendars/item/calendar_view/item/exception_occurrences/item/instances/item/attachments/attachments_request_builder.py index 4877272c16e..63c7372dd63 100644 --- a/msgraph_beta/generated/users/item/calendar_groups/item/calendars/item/calendar_view/item/exception_occurrences/item/instances/item/attachments/attachments_request_builder.py +++ b/msgraph_beta/generated/users/item/calendar_groups/item/calendars/item/calendar_view/item/exception_occurrences/item/instances/item/attachments/attachments_request_builder.py @@ -68,11 +68,11 @@ async def get(self,request_configuration: Optional[RequestConfiguration] = None) async def post(self,body: Optional[Attachment] = None, request_configuration: Optional[RequestConfiguration] = None) -> Optional[Attachment]: """ - Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. param body: The request body param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: Optional[Attachment] - Find more info here: https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 + Find more info here: https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0 """ if not body: raise TypeError("body cannot be null.") @@ -103,7 +103,7 @@ def to_get_request_information(self,request_configuration: Optional[RequestConfi def to_post_request_information(self,body: Optional[Attachment] = None, request_configuration: Optional[RequestConfiguration] = None) -> RequestInformation: """ - Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. param body: The request body param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: RequestInformation diff --git a/msgraph_beta/generated/users/item/calendar_groups/item/calendars/item/calendar_view/item/instances/item/attachments/attachments_request_builder.py b/msgraph_beta/generated/users/item/calendar_groups/item/calendars/item/calendar_view/item/instances/item/attachments/attachments_request_builder.py index 2082fe04193..50f19d20baf 100644 --- a/msgraph_beta/generated/users/item/calendar_groups/item/calendars/item/calendar_view/item/instances/item/attachments/attachments_request_builder.py +++ b/msgraph_beta/generated/users/item/calendar_groups/item/calendars/item/calendar_view/item/instances/item/attachments/attachments_request_builder.py @@ -68,11 +68,11 @@ async def get(self,request_configuration: Optional[RequestConfiguration] = None) async def post(self,body: Optional[Attachment] = None, request_configuration: Optional[RequestConfiguration] = None) -> Optional[Attachment]: """ - Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. param body: The request body param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: Optional[Attachment] - Find more info here: https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 + Find more info here: https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0 """ if not body: raise TypeError("body cannot be null.") @@ -103,7 +103,7 @@ def to_get_request_information(self,request_configuration: Optional[RequestConfi def to_post_request_information(self,body: Optional[Attachment] = None, request_configuration: Optional[RequestConfiguration] = None) -> RequestInformation: """ - Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. param body: The request body param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: RequestInformation diff --git a/msgraph_beta/generated/users/item/calendar_groups/item/calendars/item/calendar_view/item/instances/item/exception_occurrences/item/attachments/attachments_request_builder.py b/msgraph_beta/generated/users/item/calendar_groups/item/calendars/item/calendar_view/item/instances/item/exception_occurrences/item/attachments/attachments_request_builder.py index c30eb826f9b..9a1ad722eae 100644 --- a/msgraph_beta/generated/users/item/calendar_groups/item/calendars/item/calendar_view/item/instances/item/exception_occurrences/item/attachments/attachments_request_builder.py +++ b/msgraph_beta/generated/users/item/calendar_groups/item/calendars/item/calendar_view/item/instances/item/exception_occurrences/item/attachments/attachments_request_builder.py @@ -68,11 +68,11 @@ async def get(self,request_configuration: Optional[RequestConfiguration] = None) async def post(self,body: Optional[Attachment] = None, request_configuration: Optional[RequestConfiguration] = None) -> Optional[Attachment]: """ - Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. param body: The request body param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: Optional[Attachment] - Find more info here: https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 + Find more info here: https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0 """ if not body: raise TypeError("body cannot be null.") @@ -103,7 +103,7 @@ def to_get_request_information(self,request_configuration: Optional[RequestConfi def to_post_request_information(self,body: Optional[Attachment] = None, request_configuration: Optional[RequestConfiguration] = None) -> RequestInformation: """ - Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. param body: The request body param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: RequestInformation diff --git a/msgraph_beta/generated/users/item/calendar_groups/item/calendars/item/events/item/attachments/attachments_request_builder.py b/msgraph_beta/generated/users/item/calendar_groups/item/calendars/item/events/item/attachments/attachments_request_builder.py index 745a7575d0f..acd57ffc8fb 100644 --- a/msgraph_beta/generated/users/item/calendar_groups/item/calendars/item/events/item/attachments/attachments_request_builder.py +++ b/msgraph_beta/generated/users/item/calendar_groups/item/calendars/item/events/item/attachments/attachments_request_builder.py @@ -68,11 +68,11 @@ async def get(self,request_configuration: Optional[RequestConfiguration] = None) async def post(self,body: Optional[Attachment] = None, request_configuration: Optional[RequestConfiguration] = None) -> Optional[Attachment]: """ - Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. param body: The request body param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: Optional[Attachment] - Find more info here: https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 + Find more info here: https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0 """ if not body: raise TypeError("body cannot be null.") @@ -103,7 +103,7 @@ def to_get_request_information(self,request_configuration: Optional[RequestConfi def to_post_request_information(self,body: Optional[Attachment] = None, request_configuration: Optional[RequestConfiguration] = None) -> RequestInformation: """ - Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. param body: The request body param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: RequestInformation diff --git a/msgraph_beta/generated/users/item/calendar_groups/item/calendars/item/events/item/exception_occurrences/item/attachments/attachments_request_builder.py b/msgraph_beta/generated/users/item/calendar_groups/item/calendars/item/events/item/exception_occurrences/item/attachments/attachments_request_builder.py index b3de9878dd6..f1a828255d0 100644 --- a/msgraph_beta/generated/users/item/calendar_groups/item/calendars/item/events/item/exception_occurrences/item/attachments/attachments_request_builder.py +++ b/msgraph_beta/generated/users/item/calendar_groups/item/calendars/item/events/item/exception_occurrences/item/attachments/attachments_request_builder.py @@ -68,11 +68,11 @@ async def get(self,request_configuration: Optional[RequestConfiguration] = None) async def post(self,body: Optional[Attachment] = None, request_configuration: Optional[RequestConfiguration] = None) -> Optional[Attachment]: """ - Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. param body: The request body param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: Optional[Attachment] - Find more info here: https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 + Find more info here: https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0 """ if not body: raise TypeError("body cannot be null.") @@ -103,7 +103,7 @@ def to_get_request_information(self,request_configuration: Optional[RequestConfi def to_post_request_information(self,body: Optional[Attachment] = None, request_configuration: Optional[RequestConfiguration] = None) -> RequestInformation: """ - Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. param body: The request body param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: RequestInformation diff --git a/msgraph_beta/generated/users/item/calendar_groups/item/calendars/item/events/item/exception_occurrences/item/instances/item/attachments/attachments_request_builder.py b/msgraph_beta/generated/users/item/calendar_groups/item/calendars/item/events/item/exception_occurrences/item/instances/item/attachments/attachments_request_builder.py index 1aad9150f53..28943d01837 100644 --- a/msgraph_beta/generated/users/item/calendar_groups/item/calendars/item/events/item/exception_occurrences/item/instances/item/attachments/attachments_request_builder.py +++ b/msgraph_beta/generated/users/item/calendar_groups/item/calendars/item/events/item/exception_occurrences/item/instances/item/attachments/attachments_request_builder.py @@ -68,11 +68,11 @@ async def get(self,request_configuration: Optional[RequestConfiguration] = None) async def post(self,body: Optional[Attachment] = None, request_configuration: Optional[RequestConfiguration] = None) -> Optional[Attachment]: """ - Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. param body: The request body param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: Optional[Attachment] - Find more info here: https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 + Find more info here: https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0 """ if not body: raise TypeError("body cannot be null.") @@ -103,7 +103,7 @@ def to_get_request_information(self,request_configuration: Optional[RequestConfi def to_post_request_information(self,body: Optional[Attachment] = None, request_configuration: Optional[RequestConfiguration] = None) -> RequestInformation: """ - Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. param body: The request body param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: RequestInformation diff --git a/msgraph_beta/generated/users/item/calendar_groups/item/calendars/item/events/item/instances/item/attachments/attachments_request_builder.py b/msgraph_beta/generated/users/item/calendar_groups/item/calendars/item/events/item/instances/item/attachments/attachments_request_builder.py index f164e11d611..e2d7ca03381 100644 --- a/msgraph_beta/generated/users/item/calendar_groups/item/calendars/item/events/item/instances/item/attachments/attachments_request_builder.py +++ b/msgraph_beta/generated/users/item/calendar_groups/item/calendars/item/events/item/instances/item/attachments/attachments_request_builder.py @@ -68,11 +68,11 @@ async def get(self,request_configuration: Optional[RequestConfiguration] = None) async def post(self,body: Optional[Attachment] = None, request_configuration: Optional[RequestConfiguration] = None) -> Optional[Attachment]: """ - Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. param body: The request body param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: Optional[Attachment] - Find more info here: https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 + Find more info here: https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0 """ if not body: raise TypeError("body cannot be null.") @@ -103,7 +103,7 @@ def to_get_request_information(self,request_configuration: Optional[RequestConfi def to_post_request_information(self,body: Optional[Attachment] = None, request_configuration: Optional[RequestConfiguration] = None) -> RequestInformation: """ - Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. param body: The request body param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: RequestInformation diff --git a/msgraph_beta/generated/users/item/calendar_groups/item/calendars/item/events/item/instances/item/exception_occurrences/item/attachments/attachments_request_builder.py b/msgraph_beta/generated/users/item/calendar_groups/item/calendars/item/events/item/instances/item/exception_occurrences/item/attachments/attachments_request_builder.py index cd38d96921e..7f286e1bfed 100644 --- a/msgraph_beta/generated/users/item/calendar_groups/item/calendars/item/events/item/instances/item/exception_occurrences/item/attachments/attachments_request_builder.py +++ b/msgraph_beta/generated/users/item/calendar_groups/item/calendars/item/events/item/instances/item/exception_occurrences/item/attachments/attachments_request_builder.py @@ -68,11 +68,11 @@ async def get(self,request_configuration: Optional[RequestConfiguration] = None) async def post(self,body: Optional[Attachment] = None, request_configuration: Optional[RequestConfiguration] = None) -> Optional[Attachment]: """ - Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. param body: The request body param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: Optional[Attachment] - Find more info here: https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 + Find more info here: https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0 """ if not body: raise TypeError("body cannot be null.") @@ -103,7 +103,7 @@ def to_get_request_information(self,request_configuration: Optional[RequestConfi def to_post_request_information(self,body: Optional[Attachment] = None, request_configuration: Optional[RequestConfiguration] = None) -> RequestInformation: """ - Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. param body: The request body param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: RequestInformation diff --git a/msgraph_beta/generated/users/item/calendar_view/item/attachments/attachments_request_builder.py b/msgraph_beta/generated/users/item/calendar_view/item/attachments/attachments_request_builder.py index 995fc132b34..432d6d2589b 100644 --- a/msgraph_beta/generated/users/item/calendar_view/item/attachments/attachments_request_builder.py +++ b/msgraph_beta/generated/users/item/calendar_view/item/attachments/attachments_request_builder.py @@ -68,11 +68,11 @@ async def get(self,request_configuration: Optional[RequestConfiguration] = None) async def post(self,body: Optional[Attachment] = None, request_configuration: Optional[RequestConfiguration] = None) -> Optional[Attachment]: """ - Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. param body: The request body param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: Optional[Attachment] - Find more info here: https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 + Find more info here: https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0 """ if not body: raise TypeError("body cannot be null.") @@ -103,7 +103,7 @@ def to_get_request_information(self,request_configuration: Optional[RequestConfi def to_post_request_information(self,body: Optional[Attachment] = None, request_configuration: Optional[RequestConfiguration] = None) -> RequestInformation: """ - Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. param body: The request body param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: RequestInformation diff --git a/msgraph_beta/generated/users/item/calendar_view/item/exception_occurrences/item/attachments/attachments_request_builder.py b/msgraph_beta/generated/users/item/calendar_view/item/exception_occurrences/item/attachments/attachments_request_builder.py index e01aa904f0b..59791971c47 100644 --- a/msgraph_beta/generated/users/item/calendar_view/item/exception_occurrences/item/attachments/attachments_request_builder.py +++ b/msgraph_beta/generated/users/item/calendar_view/item/exception_occurrences/item/attachments/attachments_request_builder.py @@ -68,11 +68,11 @@ async def get(self,request_configuration: Optional[RequestConfiguration] = None) async def post(self,body: Optional[Attachment] = None, request_configuration: Optional[RequestConfiguration] = None) -> Optional[Attachment]: """ - Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. param body: The request body param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: Optional[Attachment] - Find more info here: https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 + Find more info here: https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0 """ if not body: raise TypeError("body cannot be null.") @@ -103,7 +103,7 @@ def to_get_request_information(self,request_configuration: Optional[RequestConfi def to_post_request_information(self,body: Optional[Attachment] = None, request_configuration: Optional[RequestConfiguration] = None) -> RequestInformation: """ - Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. param body: The request body param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: RequestInformation diff --git a/msgraph_beta/generated/users/item/calendar_view/item/exception_occurrences/item/instances/item/attachments/attachments_request_builder.py b/msgraph_beta/generated/users/item/calendar_view/item/exception_occurrences/item/instances/item/attachments/attachments_request_builder.py index f6c0f715dda..39e7f604901 100644 --- a/msgraph_beta/generated/users/item/calendar_view/item/exception_occurrences/item/instances/item/attachments/attachments_request_builder.py +++ b/msgraph_beta/generated/users/item/calendar_view/item/exception_occurrences/item/instances/item/attachments/attachments_request_builder.py @@ -68,11 +68,11 @@ async def get(self,request_configuration: Optional[RequestConfiguration] = None) async def post(self,body: Optional[Attachment] = None, request_configuration: Optional[RequestConfiguration] = None) -> Optional[Attachment]: """ - Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. param body: The request body param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: Optional[Attachment] - Find more info here: https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 + Find more info here: https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0 """ if not body: raise TypeError("body cannot be null.") @@ -103,7 +103,7 @@ def to_get_request_information(self,request_configuration: Optional[RequestConfi def to_post_request_information(self,body: Optional[Attachment] = None, request_configuration: Optional[RequestConfiguration] = None) -> RequestInformation: """ - Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. param body: The request body param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: RequestInformation diff --git a/msgraph_beta/generated/users/item/calendar_view/item/instances/item/attachments/attachments_request_builder.py b/msgraph_beta/generated/users/item/calendar_view/item/instances/item/attachments/attachments_request_builder.py index 8667d93a1da..c6f6a472f73 100644 --- a/msgraph_beta/generated/users/item/calendar_view/item/instances/item/attachments/attachments_request_builder.py +++ b/msgraph_beta/generated/users/item/calendar_view/item/instances/item/attachments/attachments_request_builder.py @@ -68,11 +68,11 @@ async def get(self,request_configuration: Optional[RequestConfiguration] = None) async def post(self,body: Optional[Attachment] = None, request_configuration: Optional[RequestConfiguration] = None) -> Optional[Attachment]: """ - Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. param body: The request body param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: Optional[Attachment] - Find more info here: https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 + Find more info here: https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0 """ if not body: raise TypeError("body cannot be null.") @@ -103,7 +103,7 @@ def to_get_request_information(self,request_configuration: Optional[RequestConfi def to_post_request_information(self,body: Optional[Attachment] = None, request_configuration: Optional[RequestConfiguration] = None) -> RequestInformation: """ - Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. param body: The request body param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: RequestInformation diff --git a/msgraph_beta/generated/users/item/calendar_view/item/instances/item/exception_occurrences/item/attachments/attachments_request_builder.py b/msgraph_beta/generated/users/item/calendar_view/item/instances/item/exception_occurrences/item/attachments/attachments_request_builder.py index cf4a36448eb..c15103f873c 100644 --- a/msgraph_beta/generated/users/item/calendar_view/item/instances/item/exception_occurrences/item/attachments/attachments_request_builder.py +++ b/msgraph_beta/generated/users/item/calendar_view/item/instances/item/exception_occurrences/item/attachments/attachments_request_builder.py @@ -68,11 +68,11 @@ async def get(self,request_configuration: Optional[RequestConfiguration] = None) async def post(self,body: Optional[Attachment] = None, request_configuration: Optional[RequestConfiguration] = None) -> Optional[Attachment]: """ - Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. param body: The request body param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: Optional[Attachment] - Find more info here: https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 + Find more info here: https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0 """ if not body: raise TypeError("body cannot be null.") @@ -103,7 +103,7 @@ def to_get_request_information(self,request_configuration: Optional[RequestConfi def to_post_request_information(self,body: Optional[Attachment] = None, request_configuration: Optional[RequestConfiguration] = None) -> RequestInformation: """ - Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. param body: The request body param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: RequestInformation diff --git a/msgraph_beta/generated/users/item/calendars/item/calendar_view/item/attachments/attachments_request_builder.py b/msgraph_beta/generated/users/item/calendars/item/calendar_view/item/attachments/attachments_request_builder.py index 67e18ac66d9..ad8f6028209 100644 --- a/msgraph_beta/generated/users/item/calendars/item/calendar_view/item/attachments/attachments_request_builder.py +++ b/msgraph_beta/generated/users/item/calendars/item/calendar_view/item/attachments/attachments_request_builder.py @@ -68,11 +68,11 @@ async def get(self,request_configuration: Optional[RequestConfiguration] = None) async def post(self,body: Optional[Attachment] = None, request_configuration: Optional[RequestConfiguration] = None) -> Optional[Attachment]: """ - Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. param body: The request body param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: Optional[Attachment] - Find more info here: https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 + Find more info here: https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0 """ if not body: raise TypeError("body cannot be null.") @@ -103,7 +103,7 @@ def to_get_request_information(self,request_configuration: Optional[RequestConfi def to_post_request_information(self,body: Optional[Attachment] = None, request_configuration: Optional[RequestConfiguration] = None) -> RequestInformation: """ - Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. param body: The request body param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: RequestInformation diff --git a/msgraph_beta/generated/users/item/calendars/item/calendar_view/item/exception_occurrences/item/attachments/attachments_request_builder.py b/msgraph_beta/generated/users/item/calendars/item/calendar_view/item/exception_occurrences/item/attachments/attachments_request_builder.py index 4cd45b0e65d..81ede37d4d7 100644 --- a/msgraph_beta/generated/users/item/calendars/item/calendar_view/item/exception_occurrences/item/attachments/attachments_request_builder.py +++ b/msgraph_beta/generated/users/item/calendars/item/calendar_view/item/exception_occurrences/item/attachments/attachments_request_builder.py @@ -68,11 +68,11 @@ async def get(self,request_configuration: Optional[RequestConfiguration] = None) async def post(self,body: Optional[Attachment] = None, request_configuration: Optional[RequestConfiguration] = None) -> Optional[Attachment]: """ - Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. param body: The request body param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: Optional[Attachment] - Find more info here: https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 + Find more info here: https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0 """ if not body: raise TypeError("body cannot be null.") @@ -103,7 +103,7 @@ def to_get_request_information(self,request_configuration: Optional[RequestConfi def to_post_request_information(self,body: Optional[Attachment] = None, request_configuration: Optional[RequestConfiguration] = None) -> RequestInformation: """ - Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. param body: The request body param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: RequestInformation diff --git a/msgraph_beta/generated/users/item/calendars/item/calendar_view/item/exception_occurrences/item/instances/item/attachments/attachments_request_builder.py b/msgraph_beta/generated/users/item/calendars/item/calendar_view/item/exception_occurrences/item/instances/item/attachments/attachments_request_builder.py index 3ddbe1954f4..4593a4fe28d 100644 --- a/msgraph_beta/generated/users/item/calendars/item/calendar_view/item/exception_occurrences/item/instances/item/attachments/attachments_request_builder.py +++ b/msgraph_beta/generated/users/item/calendars/item/calendar_view/item/exception_occurrences/item/instances/item/attachments/attachments_request_builder.py @@ -68,11 +68,11 @@ async def get(self,request_configuration: Optional[RequestConfiguration] = None) async def post(self,body: Optional[Attachment] = None, request_configuration: Optional[RequestConfiguration] = None) -> Optional[Attachment]: """ - Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. param body: The request body param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: Optional[Attachment] - Find more info here: https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 + Find more info here: https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0 """ if not body: raise TypeError("body cannot be null.") @@ -103,7 +103,7 @@ def to_get_request_information(self,request_configuration: Optional[RequestConfi def to_post_request_information(self,body: Optional[Attachment] = None, request_configuration: Optional[RequestConfiguration] = None) -> RequestInformation: """ - Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. param body: The request body param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: RequestInformation diff --git a/msgraph_beta/generated/users/item/calendars/item/calendar_view/item/instances/item/attachments/attachments_request_builder.py b/msgraph_beta/generated/users/item/calendars/item/calendar_view/item/instances/item/attachments/attachments_request_builder.py index c66c60f1300..3d7d5170dc0 100644 --- a/msgraph_beta/generated/users/item/calendars/item/calendar_view/item/instances/item/attachments/attachments_request_builder.py +++ b/msgraph_beta/generated/users/item/calendars/item/calendar_view/item/instances/item/attachments/attachments_request_builder.py @@ -68,11 +68,11 @@ async def get(self,request_configuration: Optional[RequestConfiguration] = None) async def post(self,body: Optional[Attachment] = None, request_configuration: Optional[RequestConfiguration] = None) -> Optional[Attachment]: """ - Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. param body: The request body param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: Optional[Attachment] - Find more info here: https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 + Find more info here: https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0 """ if not body: raise TypeError("body cannot be null.") @@ -103,7 +103,7 @@ def to_get_request_information(self,request_configuration: Optional[RequestConfi def to_post_request_information(self,body: Optional[Attachment] = None, request_configuration: Optional[RequestConfiguration] = None) -> RequestInformation: """ - Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. param body: The request body param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: RequestInformation diff --git a/msgraph_beta/generated/users/item/calendars/item/calendar_view/item/instances/item/exception_occurrences/item/attachments/attachments_request_builder.py b/msgraph_beta/generated/users/item/calendars/item/calendar_view/item/instances/item/exception_occurrences/item/attachments/attachments_request_builder.py index 5f9b3bef868..389d8fa5b81 100644 --- a/msgraph_beta/generated/users/item/calendars/item/calendar_view/item/instances/item/exception_occurrences/item/attachments/attachments_request_builder.py +++ b/msgraph_beta/generated/users/item/calendars/item/calendar_view/item/instances/item/exception_occurrences/item/attachments/attachments_request_builder.py @@ -68,11 +68,11 @@ async def get(self,request_configuration: Optional[RequestConfiguration] = None) async def post(self,body: Optional[Attachment] = None, request_configuration: Optional[RequestConfiguration] = None) -> Optional[Attachment]: """ - Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. param body: The request body param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: Optional[Attachment] - Find more info here: https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 + Find more info here: https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0 """ if not body: raise TypeError("body cannot be null.") @@ -103,7 +103,7 @@ def to_get_request_information(self,request_configuration: Optional[RequestConfi def to_post_request_information(self,body: Optional[Attachment] = None, request_configuration: Optional[RequestConfiguration] = None) -> RequestInformation: """ - Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. param body: The request body param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: RequestInformation diff --git a/msgraph_beta/generated/users/item/calendars/item/events/item/attachments/attachments_request_builder.py b/msgraph_beta/generated/users/item/calendars/item/events/item/attachments/attachments_request_builder.py index 28de6fa89bd..7de273b6e7e 100644 --- a/msgraph_beta/generated/users/item/calendars/item/events/item/attachments/attachments_request_builder.py +++ b/msgraph_beta/generated/users/item/calendars/item/events/item/attachments/attachments_request_builder.py @@ -68,11 +68,11 @@ async def get(self,request_configuration: Optional[RequestConfiguration] = None) async def post(self,body: Optional[Attachment] = None, request_configuration: Optional[RequestConfiguration] = None) -> Optional[Attachment]: """ - Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. param body: The request body param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: Optional[Attachment] - Find more info here: https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 + Find more info here: https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0 """ if not body: raise TypeError("body cannot be null.") @@ -103,7 +103,7 @@ def to_get_request_information(self,request_configuration: Optional[RequestConfi def to_post_request_information(self,body: Optional[Attachment] = None, request_configuration: Optional[RequestConfiguration] = None) -> RequestInformation: """ - Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. param body: The request body param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: RequestInformation diff --git a/msgraph_beta/generated/users/item/calendars/item/events/item/exception_occurrences/item/attachments/attachments_request_builder.py b/msgraph_beta/generated/users/item/calendars/item/events/item/exception_occurrences/item/attachments/attachments_request_builder.py index a83ed8d52b8..a76cb7ec47f 100644 --- a/msgraph_beta/generated/users/item/calendars/item/events/item/exception_occurrences/item/attachments/attachments_request_builder.py +++ b/msgraph_beta/generated/users/item/calendars/item/events/item/exception_occurrences/item/attachments/attachments_request_builder.py @@ -68,11 +68,11 @@ async def get(self,request_configuration: Optional[RequestConfiguration] = None) async def post(self,body: Optional[Attachment] = None, request_configuration: Optional[RequestConfiguration] = None) -> Optional[Attachment]: """ - Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. param body: The request body param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: Optional[Attachment] - Find more info here: https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 + Find more info here: https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0 """ if not body: raise TypeError("body cannot be null.") @@ -103,7 +103,7 @@ def to_get_request_information(self,request_configuration: Optional[RequestConfi def to_post_request_information(self,body: Optional[Attachment] = None, request_configuration: Optional[RequestConfiguration] = None) -> RequestInformation: """ - Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. param body: The request body param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: RequestInformation diff --git a/msgraph_beta/generated/users/item/calendars/item/events/item/exception_occurrences/item/instances/item/attachments/attachments_request_builder.py b/msgraph_beta/generated/users/item/calendars/item/events/item/exception_occurrences/item/instances/item/attachments/attachments_request_builder.py index 1ab4a4f02b8..1e38a21b0e9 100644 --- a/msgraph_beta/generated/users/item/calendars/item/events/item/exception_occurrences/item/instances/item/attachments/attachments_request_builder.py +++ b/msgraph_beta/generated/users/item/calendars/item/events/item/exception_occurrences/item/instances/item/attachments/attachments_request_builder.py @@ -68,11 +68,11 @@ async def get(self,request_configuration: Optional[RequestConfiguration] = None) async def post(self,body: Optional[Attachment] = None, request_configuration: Optional[RequestConfiguration] = None) -> Optional[Attachment]: """ - Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. param body: The request body param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: Optional[Attachment] - Find more info here: https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 + Find more info here: https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0 """ if not body: raise TypeError("body cannot be null.") @@ -103,7 +103,7 @@ def to_get_request_information(self,request_configuration: Optional[RequestConfi def to_post_request_information(self,body: Optional[Attachment] = None, request_configuration: Optional[RequestConfiguration] = None) -> RequestInformation: """ - Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. param body: The request body param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: RequestInformation diff --git a/msgraph_beta/generated/users/item/calendars/item/events/item/instances/item/attachments/attachments_request_builder.py b/msgraph_beta/generated/users/item/calendars/item/events/item/instances/item/attachments/attachments_request_builder.py index a5c44663c6b..82d6e1e32e9 100644 --- a/msgraph_beta/generated/users/item/calendars/item/events/item/instances/item/attachments/attachments_request_builder.py +++ b/msgraph_beta/generated/users/item/calendars/item/events/item/instances/item/attachments/attachments_request_builder.py @@ -68,11 +68,11 @@ async def get(self,request_configuration: Optional[RequestConfiguration] = None) async def post(self,body: Optional[Attachment] = None, request_configuration: Optional[RequestConfiguration] = None) -> Optional[Attachment]: """ - Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. param body: The request body param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: Optional[Attachment] - Find more info here: https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 + Find more info here: https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0 """ if not body: raise TypeError("body cannot be null.") @@ -103,7 +103,7 @@ def to_get_request_information(self,request_configuration: Optional[RequestConfi def to_post_request_information(self,body: Optional[Attachment] = None, request_configuration: Optional[RequestConfiguration] = None) -> RequestInformation: """ - Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. param body: The request body param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: RequestInformation diff --git a/msgraph_beta/generated/users/item/calendars/item/events/item/instances/item/exception_occurrences/item/attachments/attachments_request_builder.py b/msgraph_beta/generated/users/item/calendars/item/events/item/instances/item/exception_occurrences/item/attachments/attachments_request_builder.py index 5a0a4f33b1e..4e307a880a9 100644 --- a/msgraph_beta/generated/users/item/calendars/item/events/item/instances/item/exception_occurrences/item/attachments/attachments_request_builder.py +++ b/msgraph_beta/generated/users/item/calendars/item/events/item/instances/item/exception_occurrences/item/attachments/attachments_request_builder.py @@ -68,11 +68,11 @@ async def get(self,request_configuration: Optional[RequestConfiguration] = None) async def post(self,body: Optional[Attachment] = None, request_configuration: Optional[RequestConfiguration] = None) -> Optional[Attachment]: """ - Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. param body: The request body param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: Optional[Attachment] - Find more info here: https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 + Find more info here: https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0 """ if not body: raise TypeError("body cannot be null.") @@ -103,7 +103,7 @@ def to_get_request_information(self,request_configuration: Optional[RequestConfi def to_post_request_information(self,body: Optional[Attachment] = None, request_configuration: Optional[RequestConfiguration] = None) -> RequestInformation: """ - Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. param body: The request body param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: RequestInformation diff --git a/msgraph_beta/generated/users/item/chats/item/messages/item/replies/replies_request_builder.py b/msgraph_beta/generated/users/item/chats/item/messages/item/replies/replies_request_builder.py index 773517ba7e5..8c023af0bf8 100644 --- a/msgraph_beta/generated/users/item/chats/item/messages/item/replies/replies_request_builder.py +++ b/msgraph_beta/generated/users/item/chats/item/messages/item/replies/replies_request_builder.py @@ -47,7 +47,7 @@ def by_chat_message_id1(self,chat_message_id1: str) -> ChatMessageItemRequestBui async def get(self,request_configuration: Optional[RequestConfiguration] = None) -> Optional[ChatMessageCollectionResponse]: """ - List all the replies to a message in a channel of a team. This method lists only the replies of the specified message, if any. To get the message itself, simply call get channel message. + List all the replies to a message in a channel of a team. This method lists only the replies of the specified message, if any. To get the message itself, call get channel message. param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: Optional[ChatMessageCollectionResponse] Find more info here: https://learn.microsoft.com/graph/api/chatmessage-list-replies?view=graph-rest-1.0 @@ -92,7 +92,7 @@ async def post(self,body: Optional[ChatMessage] = None, request_configuration: O def to_get_request_information(self,request_configuration: Optional[RequestConfiguration] = None) -> RequestInformation: """ - List all the replies to a message in a channel of a team. This method lists only the replies of the specified message, if any. To get the message itself, simply call get channel message. + List all the replies to a message in a channel of a team. This method lists only the replies of the specified message, if any. To get the message itself, call get channel message. param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: RequestInformation """ @@ -147,7 +147,7 @@ def delta(self) -> DeltaRequestBuilder: @dataclass class RepliesRequestBuilderGetQueryParameters(): """ - List all the replies to a message in a channel of a team. This method lists only the replies of the specified message, if any. To get the message itself, simply call get channel message. + List all the replies to a message in a channel of a team. This method lists only the replies of the specified message, if any. To get the message itself, call get channel message. """ def get_query_parameter(self,original_name: Optional[str] = None) -> str: """ diff --git a/msgraph_beta/generated/users/item/chats/item/permission_grants/permission_grants_request_builder.py b/msgraph_beta/generated/users/item/chats/item/permission_grants/permission_grants_request_builder.py index f2ad619df2d..a21643daff2 100644 --- a/msgraph_beta/generated/users/item/chats/item/permission_grants/permission_grants_request_builder.py +++ b/msgraph_beta/generated/users/item/chats/item/permission_grants/permission_grants_request_builder.py @@ -46,7 +46,7 @@ def by_resource_specific_permission_grant_id(self,resource_specific_permission_g async def get(self,request_configuration: Optional[RequestConfiguration] = None) -> Optional[ResourceSpecificPermissionGrantCollectionResponse]: """ - List all resource-specific permission grants on the chat. This list specifies the Microsoft Entra apps that have access to the chat, along with the corresponding kind of resource-specific access that each app has. + List all resource-specific permission grants on the chat. This list specifies the Microsoft Entra apps that have access to the chat, along with the corresponding resource-specific access that each app has. param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: Optional[ResourceSpecificPermissionGrantCollectionResponse] Find more info here: https://learn.microsoft.com/graph/api/chat-list-permissiongrants?view=graph-rest-1.0 @@ -90,7 +90,7 @@ async def post(self,body: Optional[ResourceSpecificPermissionGrant] = None, requ def to_get_request_information(self,request_configuration: Optional[RequestConfiguration] = None) -> RequestInformation: """ - List all resource-specific permission grants on the chat. This list specifies the Microsoft Entra apps that have access to the chat, along with the corresponding kind of resource-specific access that each app has. + List all resource-specific permission grants on the chat. This list specifies the Microsoft Entra apps that have access to the chat, along with the corresponding resource-specific access that each app has. param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: RequestInformation """ @@ -136,7 +136,7 @@ def count(self) -> CountRequestBuilder: @dataclass class PermissionGrantsRequestBuilderGetQueryParameters(): """ - List all resource-specific permission grants on the chat. This list specifies the Microsoft Entra apps that have access to the chat, along with the corresponding kind of resource-specific access that each app has. + List all resource-specific permission grants on the chat. This list specifies the Microsoft Entra apps that have access to the chat, along with the corresponding resource-specific access that each app has. """ def get_query_parameter(self,original_name: Optional[str] = None) -> str: """ diff --git a/msgraph_beta/generated/users/item/chats/item/tabs/item/teams_tab_item_request_builder.py b/msgraph_beta/generated/users/item/chats/item/tabs/item/teams_tab_item_request_builder.py index 00c40517ed0..1b1fe5d8488 100644 --- a/msgraph_beta/generated/users/item/chats/item/tabs/item/teams_tab_item_request_builder.py +++ b/msgraph_beta/generated/users/item/chats/item/tabs/item/teams_tab_item_request_builder.py @@ -70,7 +70,7 @@ async def get(self,request_configuration: Optional[RequestConfiguration] = None) async def patch(self,body: Optional[TeamsTab] = None, request_configuration: Optional[RequestConfiguration] = None) -> Optional[TeamsTab]: """ - Update the properties of the specified tab in a chat. This can be used to configure the content of the tab. + Update the properties of the specified tab in a chat. This API can be used to configure the content of the tab. param body: The request body param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: Optional[TeamsTab] @@ -116,7 +116,7 @@ def to_get_request_information(self,request_configuration: Optional[RequestConfi def to_patch_request_information(self,body: Optional[TeamsTab] = None, request_configuration: Optional[RequestConfiguration] = None) -> RequestInformation: """ - Update the properties of the specified tab in a chat. This can be used to configure the content of the tab. + Update the properties of the specified tab in a chat. This API can be used to configure the content of the tab. param body: The request body param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: RequestInformation diff --git a/msgraph_beta/generated/users/item/cloud_clipboard/cloud_clipboard_request_builder.py b/msgraph_beta/generated/users/item/cloud_clipboard/cloud_clipboard_request_builder.py new file mode 100644 index 00000000000..e8778d49aa1 --- /dev/null +++ b/msgraph_beta/generated/users/item/cloud_clipboard/cloud_clipboard_request_builder.py @@ -0,0 +1,174 @@ +from __future__ import annotations +from dataclasses import dataclass, field +from kiota_abstractions.base_request_builder import BaseRequestBuilder +from kiota_abstractions.base_request_configuration import RequestConfiguration +from kiota_abstractions.get_path_parameters import get_path_parameters +from kiota_abstractions.method import Method +from kiota_abstractions.request_adapter import RequestAdapter +from kiota_abstractions.request_information import RequestInformation +from kiota_abstractions.request_option import RequestOption +from kiota_abstractions.serialization import Parsable, ParsableFactory +from typing import Any, Callable, Dict, List, Optional, TYPE_CHECKING, Union + +if TYPE_CHECKING: + from ....models.cloud_clipboard_root import CloudClipboardRoot + from ....models.o_data_errors.o_data_error import ODataError + from .items.items_request_builder import ItemsRequestBuilder + +class CloudClipboardRequestBuilder(BaseRequestBuilder): + """ + Provides operations to manage the cloudClipboard property of the microsoft.graph.user entity. + """ + def __init__(self,request_adapter: RequestAdapter, path_parameters: Union[str, Dict[str, Any]]) -> None: + """ + Instantiates a new CloudClipboardRequestBuilder and sets the default values. + param path_parameters: The raw url or the url-template parameters for the request. + param request_adapter: The request adapter to use to execute the requests. + Returns: None + """ + super().__init__(request_adapter, "{+baseurl}/users/{user%2Did}/cloudClipboard{?%24expand,%24select}", path_parameters) + + async def delete(self,request_configuration: Optional[RequestConfiguration] = None) -> None: + """ + Delete navigation property cloudClipboard for users + param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. + Returns: None + """ + request_info = self.to_delete_request_information( + request_configuration + ) + from ....models.o_data_errors.o_data_error import ODataError + + error_mapping: Dict[str, ParsableFactory] = { + "XXX": ODataError, + } + if not self.request_adapter: + raise Exception("Http core is null") + return await self.request_adapter.send_no_response_content_async(request_info, error_mapping) + + async def get(self,request_configuration: Optional[RequestConfiguration] = None) -> Optional[CloudClipboardRoot]: + """ + Get cloudClipboard from users + param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. + Returns: Optional[CloudClipboardRoot] + """ + request_info = self.to_get_request_information( + request_configuration + ) + from ....models.o_data_errors.o_data_error import ODataError + + error_mapping: Dict[str, ParsableFactory] = { + "XXX": ODataError, + } + if not self.request_adapter: + raise Exception("Http core is null") + from ....models.cloud_clipboard_root import CloudClipboardRoot + + return await self.request_adapter.send_async(request_info, CloudClipboardRoot, error_mapping) + + async def patch(self,body: Optional[CloudClipboardRoot] = None, request_configuration: Optional[RequestConfiguration] = None) -> Optional[CloudClipboardRoot]: + """ + Update the navigation property cloudClipboard in users + param body: The request body + param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. + Returns: Optional[CloudClipboardRoot] + """ + if not body: + raise TypeError("body cannot be null.") + request_info = self.to_patch_request_information( + body, request_configuration + ) + from ....models.o_data_errors.o_data_error import ODataError + + error_mapping: Dict[str, ParsableFactory] = { + "XXX": ODataError, + } + if not self.request_adapter: + raise Exception("Http core is null") + from ....models.cloud_clipboard_root import CloudClipboardRoot + + return await self.request_adapter.send_async(request_info, CloudClipboardRoot, error_mapping) + + def to_delete_request_information(self,request_configuration: Optional[RequestConfiguration] = None) -> RequestInformation: + """ + Delete navigation property cloudClipboard for users + param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. + Returns: RequestInformation + """ + request_info = RequestInformation(Method.DELETE, '{+baseurl}/users/{user%2Did}/cloudClipboard', self.path_parameters) + request_info.configure(request_configuration) + request_info.headers.try_add("Accept", "application/json") + return request_info + + def to_get_request_information(self,request_configuration: Optional[RequestConfiguration] = None) -> RequestInformation: + """ + Get cloudClipboard from users + param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. + Returns: RequestInformation + """ + request_info = RequestInformation(Method.GET, self.url_template, self.path_parameters) + request_info.configure(request_configuration) + request_info.headers.try_add("Accept", "application/json") + return request_info + + def to_patch_request_information(self,body: Optional[CloudClipboardRoot] = None, request_configuration: Optional[RequestConfiguration] = None) -> RequestInformation: + """ + Update the navigation property cloudClipboard in users + param body: The request body + param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. + Returns: RequestInformation + """ + if not body: + raise TypeError("body cannot be null.") + request_info = RequestInformation(Method.PATCH, '{+baseurl}/users/{user%2Did}/cloudClipboard', self.path_parameters) + request_info.configure(request_configuration) + request_info.headers.try_add("Accept", "application/json") + request_info.set_content_from_parsable(self.request_adapter, "application/json", body) + return request_info + + def with_url(self,raw_url: Optional[str] = None) -> CloudClipboardRequestBuilder: + """ + Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + param raw_url: The raw URL to use for the request builder. + Returns: CloudClipboardRequestBuilder + """ + if not raw_url: + raise TypeError("raw_url cannot be null.") + return CloudClipboardRequestBuilder(self.request_adapter, raw_url) + + @property + def items(self) -> ItemsRequestBuilder: + """ + Provides operations to manage the items property of the microsoft.graph.cloudClipboardRoot entity. + """ + from .items.items_request_builder import ItemsRequestBuilder + + return ItemsRequestBuilder(self.request_adapter, self.path_parameters) + + @dataclass + class CloudClipboardRequestBuilderGetQueryParameters(): + """ + Get cloudClipboard from users + """ + def get_query_parameter(self,original_name: Optional[str] = None) -> str: + """ + Maps the query parameters names to their encoded names for the URI template parsing. + param original_name: The original query parameter name in the class. + Returns: str + """ + if not original_name: + raise TypeError("original_name cannot be null.") + if original_name == "expand": + return "%24expand" + if original_name == "select": + return "%24select" + return original_name + + # Expand related entities + expand: Optional[List[str]] = None + + # Select properties to be returned + select: Optional[List[str]] = None + + + diff --git a/msgraph_beta/generated/users/item/cloud_clipboard/items/count/count_request_builder.py b/msgraph_beta/generated/users/item/cloud_clipboard/items/count/count_request_builder.py new file mode 100644 index 00000000000..4f4bf023cea --- /dev/null +++ b/msgraph_beta/generated/users/item/cloud_clipboard/items/count/count_request_builder.py @@ -0,0 +1,94 @@ +from __future__ import annotations +from dataclasses import dataclass, field +from kiota_abstractions.base_request_builder import BaseRequestBuilder +from kiota_abstractions.base_request_configuration import RequestConfiguration +from kiota_abstractions.get_path_parameters import get_path_parameters +from kiota_abstractions.method import Method +from kiota_abstractions.request_adapter import RequestAdapter +from kiota_abstractions.request_information import RequestInformation +from kiota_abstractions.request_option import RequestOption +from kiota_abstractions.serialization import Parsable, ParsableFactory +from typing import Any, Callable, Dict, List, Optional, TYPE_CHECKING, Union + +if TYPE_CHECKING: + from ......models.o_data_errors.o_data_error import ODataError + +class CountRequestBuilder(BaseRequestBuilder): + """ + Provides operations to count the resources in the collection. + """ + def __init__(self,request_adapter: RequestAdapter, path_parameters: Union[str, Dict[str, Any]]) -> None: + """ + Instantiates a new CountRequestBuilder and sets the default values. + param path_parameters: The raw url or the url-template parameters for the request. + param request_adapter: The request adapter to use to execute the requests. + Returns: None + """ + super().__init__(request_adapter, "{+baseurl}/users/{user%2Did}/cloudClipboard/items/$count{?%24filter,%24search}", path_parameters) + + async def get(self,request_configuration: Optional[RequestConfiguration] = None) -> Optional[int]: + """ + Get the number of the resource + param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. + Returns: Optional[int] + """ + request_info = self.to_get_request_information( + request_configuration + ) + from ......models.o_data_errors.o_data_error import ODataError + + error_mapping: Dict[str, ParsableFactory] = { + "XXX": ODataError, + } + if not self.request_adapter: + raise Exception("Http core is null") + return await self.request_adapter.send_primitive_async(request_info, "int", error_mapping) + + def to_get_request_information(self,request_configuration: Optional[RequestConfiguration] = None) -> RequestInformation: + """ + Get the number of the resource + param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. + Returns: RequestInformation + """ + request_info = RequestInformation(Method.GET, self.url_template, self.path_parameters) + request_info.configure(request_configuration) + request_info.headers.try_add("Accept", "text/plain;q=0.9") + return request_info + + def with_url(self,raw_url: Optional[str] = None) -> CountRequestBuilder: + """ + Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + param raw_url: The raw URL to use for the request builder. + Returns: CountRequestBuilder + """ + if not raw_url: + raise TypeError("raw_url cannot be null.") + return CountRequestBuilder(self.request_adapter, raw_url) + + @dataclass + class CountRequestBuilderGetQueryParameters(): + """ + Get the number of the resource + """ + def get_query_parameter(self,original_name: Optional[str] = None) -> str: + """ + Maps the query parameters names to their encoded names for the URI template parsing. + param original_name: The original query parameter name in the class. + Returns: str + """ + if not original_name: + raise TypeError("original_name cannot be null.") + if original_name == "filter": + return "%24filter" + if original_name == "search": + return "%24search" + return original_name + + # Filter items by property values + filter: Optional[str] = None + + # Search items by search phrases + search: Optional[str] = None + + + diff --git a/msgraph_beta/generated/users/item/cloud_clipboard/items/item/cloud_clipboard_item_item_request_builder.py b/msgraph_beta/generated/users/item/cloud_clipboard/items/item/cloud_clipboard_item_item_request_builder.py new file mode 100644 index 00000000000..6102e67a978 --- /dev/null +++ b/msgraph_beta/generated/users/item/cloud_clipboard/items/item/cloud_clipboard_item_item_request_builder.py @@ -0,0 +1,164 @@ +from __future__ import annotations +from dataclasses import dataclass, field +from kiota_abstractions.base_request_builder import BaseRequestBuilder +from kiota_abstractions.base_request_configuration import RequestConfiguration +from kiota_abstractions.get_path_parameters import get_path_parameters +from kiota_abstractions.method import Method +from kiota_abstractions.request_adapter import RequestAdapter +from kiota_abstractions.request_information import RequestInformation +from kiota_abstractions.request_option import RequestOption +from kiota_abstractions.serialization import Parsable, ParsableFactory +from typing import Any, Callable, Dict, List, Optional, TYPE_CHECKING, Union + +if TYPE_CHECKING: + from ......models.cloud_clipboard_item import CloudClipboardItem + from ......models.o_data_errors.o_data_error import ODataError + +class CloudClipboardItemItemRequestBuilder(BaseRequestBuilder): + """ + Provides operations to manage the items property of the microsoft.graph.cloudClipboardRoot entity. + """ + def __init__(self,request_adapter: RequestAdapter, path_parameters: Union[str, Dict[str, Any]]) -> None: + """ + Instantiates a new CloudClipboardItemItemRequestBuilder and sets the default values. + param path_parameters: The raw url or the url-template parameters for the request. + param request_adapter: The request adapter to use to execute the requests. + Returns: None + """ + super().__init__(request_adapter, "{+baseurl}/users/{user%2Did}/cloudClipboard/items/{cloudClipboardItem%2Did}{?%24expand,%24select}", path_parameters) + + async def delete(self,request_configuration: Optional[RequestConfiguration] = None) -> None: + """ + Delete navigation property items for users + param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. + Returns: None + """ + request_info = self.to_delete_request_information( + request_configuration + ) + from ......models.o_data_errors.o_data_error import ODataError + + error_mapping: Dict[str, ParsableFactory] = { + "XXX": ODataError, + } + if not self.request_adapter: + raise Exception("Http core is null") + return await self.request_adapter.send_no_response_content_async(request_info, error_mapping) + + async def get(self,request_configuration: Optional[RequestConfiguration] = None) -> Optional[CloudClipboardItem]: + """ + Get items from users + param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. + Returns: Optional[CloudClipboardItem] + """ + request_info = self.to_get_request_information( + request_configuration + ) + from ......models.o_data_errors.o_data_error import ODataError + + error_mapping: Dict[str, ParsableFactory] = { + "XXX": ODataError, + } + if not self.request_adapter: + raise Exception("Http core is null") + from ......models.cloud_clipboard_item import CloudClipboardItem + + return await self.request_adapter.send_async(request_info, CloudClipboardItem, error_mapping) + + async def patch(self,body: Optional[CloudClipboardItem] = None, request_configuration: Optional[RequestConfiguration] = None) -> Optional[CloudClipboardItem]: + """ + Update the navigation property items in users + param body: The request body + param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. + Returns: Optional[CloudClipboardItem] + """ + if not body: + raise TypeError("body cannot be null.") + request_info = self.to_patch_request_information( + body, request_configuration + ) + from ......models.o_data_errors.o_data_error import ODataError + + error_mapping: Dict[str, ParsableFactory] = { + "XXX": ODataError, + } + if not self.request_adapter: + raise Exception("Http core is null") + from ......models.cloud_clipboard_item import CloudClipboardItem + + return await self.request_adapter.send_async(request_info, CloudClipboardItem, error_mapping) + + def to_delete_request_information(self,request_configuration: Optional[RequestConfiguration] = None) -> RequestInformation: + """ + Delete navigation property items for users + param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. + Returns: RequestInformation + """ + request_info = RequestInformation(Method.DELETE, '{+baseurl}/users/{user%2Did}/cloudClipboard/items/{cloudClipboardItem%2Did}', self.path_parameters) + request_info.configure(request_configuration) + request_info.headers.try_add("Accept", "application/json") + return request_info + + def to_get_request_information(self,request_configuration: Optional[RequestConfiguration] = None) -> RequestInformation: + """ + Get items from users + param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. + Returns: RequestInformation + """ + request_info = RequestInformation(Method.GET, self.url_template, self.path_parameters) + request_info.configure(request_configuration) + request_info.headers.try_add("Accept", "application/json") + return request_info + + def to_patch_request_information(self,body: Optional[CloudClipboardItem] = None, request_configuration: Optional[RequestConfiguration] = None) -> RequestInformation: + """ + Update the navigation property items in users + param body: The request body + param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. + Returns: RequestInformation + """ + if not body: + raise TypeError("body cannot be null.") + request_info = RequestInformation(Method.PATCH, '{+baseurl}/users/{user%2Did}/cloudClipboard/items/{cloudClipboardItem%2Did}', self.path_parameters) + request_info.configure(request_configuration) + request_info.headers.try_add("Accept", "application/json") + request_info.set_content_from_parsable(self.request_adapter, "application/json", body) + return request_info + + def with_url(self,raw_url: Optional[str] = None) -> CloudClipboardItemItemRequestBuilder: + """ + Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + param raw_url: The raw URL to use for the request builder. + Returns: CloudClipboardItemItemRequestBuilder + """ + if not raw_url: + raise TypeError("raw_url cannot be null.") + return CloudClipboardItemItemRequestBuilder(self.request_adapter, raw_url) + + @dataclass + class CloudClipboardItemItemRequestBuilderGetQueryParameters(): + """ + Get items from users + """ + def get_query_parameter(self,original_name: Optional[str] = None) -> str: + """ + Maps the query parameters names to their encoded names for the URI template parsing. + param original_name: The original query parameter name in the class. + Returns: str + """ + if not original_name: + raise TypeError("original_name cannot be null.") + if original_name == "expand": + return "%24expand" + if original_name == "select": + return "%24select" + return original_name + + # Expand related entities + expand: Optional[List[str]] = None + + # Select properties to be returned + select: Optional[List[str]] = None + + + diff --git a/msgraph_beta/generated/users/item/cloud_clipboard/items/items_request_builder.py b/msgraph_beta/generated/users/item/cloud_clipboard/items/items_request_builder.py new file mode 100644 index 00000000000..9f8631bd6a4 --- /dev/null +++ b/msgraph_beta/generated/users/item/cloud_clipboard/items/items_request_builder.py @@ -0,0 +1,191 @@ +from __future__ import annotations +from dataclasses import dataclass, field +from kiota_abstractions.base_request_builder import BaseRequestBuilder +from kiota_abstractions.base_request_configuration import RequestConfiguration +from kiota_abstractions.get_path_parameters import get_path_parameters +from kiota_abstractions.method import Method +from kiota_abstractions.request_adapter import RequestAdapter +from kiota_abstractions.request_information import RequestInformation +from kiota_abstractions.request_option import RequestOption +from kiota_abstractions.serialization import Parsable, ParsableFactory +from typing import Any, Callable, Dict, List, Optional, TYPE_CHECKING, Union + +if TYPE_CHECKING: + from .....models.cloud_clipboard_item import CloudClipboardItem + from .....models.cloud_clipboard_item_collection_response import CloudClipboardItemCollectionResponse + from .....models.o_data_errors.o_data_error import ODataError + from .count.count_request_builder import CountRequestBuilder + from .item.cloud_clipboard_item_item_request_builder import CloudClipboardItemItemRequestBuilder + +class ItemsRequestBuilder(BaseRequestBuilder): + """ + Provides operations to manage the items property of the microsoft.graph.cloudClipboardRoot entity. + """ + def __init__(self,request_adapter: RequestAdapter, path_parameters: Union[str, Dict[str, Any]]) -> None: + """ + Instantiates a new ItemsRequestBuilder and sets the default values. + param path_parameters: The raw url or the url-template parameters for the request. + param request_adapter: The request adapter to use to execute the requests. + Returns: None + """ + super().__init__(request_adapter, "{+baseurl}/users/{user%2Did}/cloudClipboard/items{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", path_parameters) + + def by_cloud_clipboard_item_id(self,cloud_clipboard_item_id: str) -> CloudClipboardItemItemRequestBuilder: + """ + Provides operations to manage the items property of the microsoft.graph.cloudClipboardRoot entity. + param cloud_clipboard_item_id: The unique identifier of cloudClipboardItem + Returns: CloudClipboardItemItemRequestBuilder + """ + if not cloud_clipboard_item_id: + raise TypeError("cloud_clipboard_item_id cannot be null.") + from .item.cloud_clipboard_item_item_request_builder import CloudClipboardItemItemRequestBuilder + + url_tpl_params = get_path_parameters(self.path_parameters) + url_tpl_params["cloudClipboardItem%2Did"] = cloud_clipboard_item_id + return CloudClipboardItemItemRequestBuilder(self.request_adapter, url_tpl_params) + + async def get(self,request_configuration: Optional[RequestConfiguration] = None) -> Optional[CloudClipboardItemCollectionResponse]: + """ + Get items from users + param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. + Returns: Optional[CloudClipboardItemCollectionResponse] + """ + request_info = self.to_get_request_information( + request_configuration + ) + from .....models.o_data_errors.o_data_error import ODataError + + error_mapping: Dict[str, ParsableFactory] = { + "XXX": ODataError, + } + if not self.request_adapter: + raise Exception("Http core is null") + from .....models.cloud_clipboard_item_collection_response import CloudClipboardItemCollectionResponse + + return await self.request_adapter.send_async(request_info, CloudClipboardItemCollectionResponse, error_mapping) + + async def post(self,body: Optional[CloudClipboardItem] = None, request_configuration: Optional[RequestConfiguration] = None) -> Optional[CloudClipboardItem]: + """ + Create new navigation property to items for users + param body: The request body + param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. + Returns: Optional[CloudClipboardItem] + """ + if not body: + raise TypeError("body cannot be null.") + request_info = self.to_post_request_information( + body, request_configuration + ) + from .....models.o_data_errors.o_data_error import ODataError + + error_mapping: Dict[str, ParsableFactory] = { + "XXX": ODataError, + } + if not self.request_adapter: + raise Exception("Http core is null") + from .....models.cloud_clipboard_item import CloudClipboardItem + + return await self.request_adapter.send_async(request_info, CloudClipboardItem, error_mapping) + + def to_get_request_information(self,request_configuration: Optional[RequestConfiguration] = None) -> RequestInformation: + """ + Get items from users + param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. + Returns: RequestInformation + """ + request_info = RequestInformation(Method.GET, self.url_template, self.path_parameters) + request_info.configure(request_configuration) + request_info.headers.try_add("Accept", "application/json") + return request_info + + def to_post_request_information(self,body: Optional[CloudClipboardItem] = None, request_configuration: Optional[RequestConfiguration] = None) -> RequestInformation: + """ + Create new navigation property to items for users + param body: The request body + param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. + Returns: RequestInformation + """ + if not body: + raise TypeError("body cannot be null.") + request_info = RequestInformation(Method.POST, '{+baseurl}/users/{user%2Did}/cloudClipboard/items', self.path_parameters) + request_info.configure(request_configuration) + request_info.headers.try_add("Accept", "application/json") + request_info.set_content_from_parsable(self.request_adapter, "application/json", body) + return request_info + + def with_url(self,raw_url: Optional[str] = None) -> ItemsRequestBuilder: + """ + Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + param raw_url: The raw URL to use for the request builder. + Returns: ItemsRequestBuilder + """ + if not raw_url: + raise TypeError("raw_url cannot be null.") + return ItemsRequestBuilder(self.request_adapter, raw_url) + + @property + def count(self) -> CountRequestBuilder: + """ + Provides operations to count the resources in the collection. + """ + from .count.count_request_builder import CountRequestBuilder + + return CountRequestBuilder(self.request_adapter, self.path_parameters) + + @dataclass + class ItemsRequestBuilderGetQueryParameters(): + """ + Get items from users + """ + def get_query_parameter(self,original_name: Optional[str] = None) -> str: + """ + Maps the query parameters names to their encoded names for the URI template parsing. + param original_name: The original query parameter name in the class. + Returns: str + """ + if not original_name: + raise TypeError("original_name cannot be null.") + if original_name == "count": + return "%24count" + if original_name == "expand": + return "%24expand" + if original_name == "filter": + return "%24filter" + if original_name == "orderby": + return "%24orderby" + if original_name == "search": + return "%24search" + if original_name == "select": + return "%24select" + if original_name == "skip": + return "%24skip" + if original_name == "top": + return "%24top" + return original_name + + # Include count of items + count: Optional[bool] = None + + # Expand related entities + expand: Optional[List[str]] = None + + # Filter items by property values + filter: Optional[str] = None + + # Order items by property values + orderby: Optional[List[str]] = None + + # Search items by search phrases + search: Optional[str] = None + + # Select properties to be returned + select: Optional[List[str]] = None + + # Skip the first n items + skip: Optional[int] = None + + # Show only the first n items + top: Optional[int] = None + + + diff --git a/msgraph_beta/generated/users/item/events/item/attachments/attachments_request_builder.py b/msgraph_beta/generated/users/item/events/item/attachments/attachments_request_builder.py index 937ecfa9a39..8518a480046 100644 --- a/msgraph_beta/generated/users/item/events/item/attachments/attachments_request_builder.py +++ b/msgraph_beta/generated/users/item/events/item/attachments/attachments_request_builder.py @@ -68,11 +68,11 @@ async def get(self,request_configuration: Optional[RequestConfiguration] = None) async def post(self,body: Optional[Attachment] = None, request_configuration: Optional[RequestConfiguration] = None) -> Optional[Attachment]: """ - Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. param body: The request body param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: Optional[Attachment] - Find more info here: https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 + Find more info here: https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0 """ if not body: raise TypeError("body cannot be null.") @@ -103,7 +103,7 @@ def to_get_request_information(self,request_configuration: Optional[RequestConfi def to_post_request_information(self,body: Optional[Attachment] = None, request_configuration: Optional[RequestConfiguration] = None) -> RequestInformation: """ - Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. param body: The request body param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: RequestInformation diff --git a/msgraph_beta/generated/users/item/events/item/exception_occurrences/item/attachments/attachments_request_builder.py b/msgraph_beta/generated/users/item/events/item/exception_occurrences/item/attachments/attachments_request_builder.py index 8ddc4188746..554b86c5ad1 100644 --- a/msgraph_beta/generated/users/item/events/item/exception_occurrences/item/attachments/attachments_request_builder.py +++ b/msgraph_beta/generated/users/item/events/item/exception_occurrences/item/attachments/attachments_request_builder.py @@ -68,11 +68,11 @@ async def get(self,request_configuration: Optional[RequestConfiguration] = None) async def post(self,body: Optional[Attachment] = None, request_configuration: Optional[RequestConfiguration] = None) -> Optional[Attachment]: """ - Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. param body: The request body param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: Optional[Attachment] - Find more info here: https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 + Find more info here: https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0 """ if not body: raise TypeError("body cannot be null.") @@ -103,7 +103,7 @@ def to_get_request_information(self,request_configuration: Optional[RequestConfi def to_post_request_information(self,body: Optional[Attachment] = None, request_configuration: Optional[RequestConfiguration] = None) -> RequestInformation: """ - Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. param body: The request body param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: RequestInformation diff --git a/msgraph_beta/generated/users/item/events/item/exception_occurrences/item/instances/item/attachments/attachments_request_builder.py b/msgraph_beta/generated/users/item/events/item/exception_occurrences/item/instances/item/attachments/attachments_request_builder.py index 9b441684f48..64c3b0fb0fc 100644 --- a/msgraph_beta/generated/users/item/events/item/exception_occurrences/item/instances/item/attachments/attachments_request_builder.py +++ b/msgraph_beta/generated/users/item/events/item/exception_occurrences/item/instances/item/attachments/attachments_request_builder.py @@ -68,11 +68,11 @@ async def get(self,request_configuration: Optional[RequestConfiguration] = None) async def post(self,body: Optional[Attachment] = None, request_configuration: Optional[RequestConfiguration] = None) -> Optional[Attachment]: """ - Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. param body: The request body param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: Optional[Attachment] - Find more info here: https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 + Find more info here: https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0 """ if not body: raise TypeError("body cannot be null.") @@ -103,7 +103,7 @@ def to_get_request_information(self,request_configuration: Optional[RequestConfi def to_post_request_information(self,body: Optional[Attachment] = None, request_configuration: Optional[RequestConfiguration] = None) -> RequestInformation: """ - Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. param body: The request body param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: RequestInformation diff --git a/msgraph_beta/generated/users/item/events/item/instances/item/attachments/attachments_request_builder.py b/msgraph_beta/generated/users/item/events/item/instances/item/attachments/attachments_request_builder.py index 2cc90d7934f..5f2b3380696 100644 --- a/msgraph_beta/generated/users/item/events/item/instances/item/attachments/attachments_request_builder.py +++ b/msgraph_beta/generated/users/item/events/item/instances/item/attachments/attachments_request_builder.py @@ -68,11 +68,11 @@ async def get(self,request_configuration: Optional[RequestConfiguration] = None) async def post(self,body: Optional[Attachment] = None, request_configuration: Optional[RequestConfiguration] = None) -> Optional[Attachment]: """ - Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. param body: The request body param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: Optional[Attachment] - Find more info here: https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 + Find more info here: https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0 """ if not body: raise TypeError("body cannot be null.") @@ -103,7 +103,7 @@ def to_get_request_information(self,request_configuration: Optional[RequestConfi def to_post_request_information(self,body: Optional[Attachment] = None, request_configuration: Optional[RequestConfiguration] = None) -> RequestInformation: """ - Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. param body: The request body param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: RequestInformation diff --git a/msgraph_beta/generated/users/item/events/item/instances/item/exception_occurrences/item/attachments/attachments_request_builder.py b/msgraph_beta/generated/users/item/events/item/instances/item/exception_occurrences/item/attachments/attachments_request_builder.py index 9f6ee958dc1..b9162e0bdc6 100644 --- a/msgraph_beta/generated/users/item/events/item/instances/item/exception_occurrences/item/attachments/attachments_request_builder.py +++ b/msgraph_beta/generated/users/item/events/item/instances/item/exception_occurrences/item/attachments/attachments_request_builder.py @@ -68,11 +68,11 @@ async def get(self,request_configuration: Optional[RequestConfiguration] = None) async def post(self,body: Optional[Attachment] = None, request_configuration: Optional[RequestConfiguration] = None) -> Optional[Attachment]: """ - Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. param body: The request body param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: Optional[Attachment] - Find more info here: https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0 + Find more info here: https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0 """ if not body: raise TypeError("body cannot be null.") @@ -103,7 +103,7 @@ def to_get_request_information(self,request_configuration: Optional[RequestConfi def to_post_request_information(self,body: Optional[Attachment] = None, request_configuration: Optional[RequestConfiguration] = None) -> RequestInformation: """ - Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. param body: The request body param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: RequestInformation diff --git a/msgraph_beta/generated/users/item/mail_folders/item/child_folders/child_folders_request_builder.py b/msgraph_beta/generated/users/item/mail_folders/item/child_folders/child_folders_request_builder.py index d16fff2c0f8..1d226d0a45c 100644 --- a/msgraph_beta/generated/users/item/mail_folders/item/child_folders/child_folders_request_builder.py +++ b/msgraph_beta/generated/users/item/mail_folders/item/child_folders/child_folders_request_builder.py @@ -68,11 +68,11 @@ async def get(self,request_configuration: Optional[RequestConfiguration] = None) async def post(self,body: Optional[MailFolder] = None, request_configuration: Optional[RequestConfiguration] = None) -> Optional[MailFolder]: """ - Use this API to create a new child mailFolder. If you intend a new folder to be hidden, you must set the isHidden property to true on creation. + Create a new mailSearchFolder in the specified user's mailbox. param body: The request body param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: Optional[MailFolder] - Find more info here: https://learn.microsoft.com/graph/api/mailfolder-post-childfolders?view=graph-rest-1.0 + Find more info here: https://learn.microsoft.com/graph/api/mailsearchfolder-post?view=graph-rest-1.0 """ if not body: raise TypeError("body cannot be null.") @@ -103,7 +103,7 @@ def to_get_request_information(self,request_configuration: Optional[RequestConfi def to_post_request_information(self,body: Optional[MailFolder] = None, request_configuration: Optional[RequestConfiguration] = None) -> RequestInformation: """ - Use this API to create a new child mailFolder. If you intend a new folder to be hidden, you must set the isHidden property to true on creation. + Create a new mailSearchFolder in the specified user's mailbox. param body: The request body param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: RequestInformation diff --git a/msgraph_beta/generated/users/item/mail_folders/item/child_folders/item/messages/item/attachments/attachments_request_builder.py b/msgraph_beta/generated/users/item/mail_folders/item/child_folders/item/messages/item/attachments/attachments_request_builder.py index a3324c0c71d..cc9e510a984 100644 --- a/msgraph_beta/generated/users/item/mail_folders/item/child_folders/item/messages/item/attachments/attachments_request_builder.py +++ b/msgraph_beta/generated/users/item/mail_folders/item/child_folders/item/messages/item/attachments/attachments_request_builder.py @@ -47,10 +47,10 @@ def by_attachment_id(self,attachment_id: str) -> AttachmentItemRequestBuilder: async def get(self,request_configuration: Optional[RequestConfiguration] = None) -> Optional[AttachmentCollectionResponse]: """ - Retrieve a list of attachment objects. + Retrieve a list of attachment objects attached to a message. param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: Optional[AttachmentCollectionResponse] - Find more info here: https://learn.microsoft.com/graph/api/eventmessage-list-attachments?view=graph-rest-1.0 + Find more info here: https://learn.microsoft.com/graph/api/message-list-attachments?view=graph-rest-1.0 """ request_info = self.to_get_request_information( request_configuration @@ -92,7 +92,7 @@ async def post(self,body: Optional[Attachment] = None, request_configuration: Op def to_get_request_information(self,request_configuration: Optional[RequestConfiguration] = None) -> RequestInformation: """ - Retrieve a list of attachment objects. + Retrieve a list of attachment objects attached to a message. param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: RequestInformation """ @@ -147,7 +147,7 @@ def create_upload_session(self) -> CreateUploadSessionRequestBuilder: @dataclass class AttachmentsRequestBuilderGetQueryParameters(): """ - Retrieve a list of attachment objects. + Retrieve a list of attachment objects attached to a message. """ def get_query_parameter(self,original_name: Optional[str] = None) -> str: """ diff --git a/msgraph_beta/generated/users/item/mail_folders/item/mail_folder_item_request_builder.py b/msgraph_beta/generated/users/item/mail_folders/item/mail_folder_item_request_builder.py index 4f36894563c..8e5b0e58d4a 100644 --- a/msgraph_beta/generated/users/item/mail_folders/item/mail_folder_item_request_builder.py +++ b/msgraph_beta/generated/users/item/mail_folders/item/mail_folder_item_request_builder.py @@ -75,11 +75,11 @@ async def get(self,request_configuration: Optional[RequestConfiguration] = None) async def patch(self,body: Optional[MailFolder] = None, request_configuration: Optional[RequestConfiguration] = None) -> Optional[MailFolder]: """ - Update the writable properties of a mailSearchFolder object. + Update the properties of mailFolder object. param body: The request body param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: Optional[MailFolder] - Find more info here: https://learn.microsoft.com/graph/api/mailsearchfolder-update?view=graph-rest-1.0 + Find more info here: https://learn.microsoft.com/graph/api/mailfolder-update?view=graph-rest-1.0 """ if not body: raise TypeError("body cannot be null.") @@ -121,7 +121,7 @@ def to_get_request_information(self,request_configuration: Optional[RequestConfi def to_patch_request_information(self,body: Optional[MailFolder] = None, request_configuration: Optional[RequestConfiguration] = None) -> RequestInformation: """ - Update the writable properties of a mailSearchFolder object. + Update the properties of mailFolder object. param body: The request body param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: RequestInformation diff --git a/msgraph_beta/generated/users/item/mail_folders/item/messages/item/attachments/attachments_request_builder.py b/msgraph_beta/generated/users/item/mail_folders/item/messages/item/attachments/attachments_request_builder.py index e3c98b9661b..f401137eb81 100644 --- a/msgraph_beta/generated/users/item/mail_folders/item/messages/item/attachments/attachments_request_builder.py +++ b/msgraph_beta/generated/users/item/mail_folders/item/messages/item/attachments/attachments_request_builder.py @@ -47,10 +47,10 @@ def by_attachment_id(self,attachment_id: str) -> AttachmentItemRequestBuilder: async def get(self,request_configuration: Optional[RequestConfiguration] = None) -> Optional[AttachmentCollectionResponse]: """ - Retrieve a list of attachment objects. + Retrieve a list of attachment objects attached to a message. param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: Optional[AttachmentCollectionResponse] - Find more info here: https://learn.microsoft.com/graph/api/eventmessage-list-attachments?view=graph-rest-1.0 + Find more info here: https://learn.microsoft.com/graph/api/message-list-attachments?view=graph-rest-1.0 """ request_info = self.to_get_request_information( request_configuration @@ -92,7 +92,7 @@ async def post(self,body: Optional[Attachment] = None, request_configuration: Op def to_get_request_information(self,request_configuration: Optional[RequestConfiguration] = None) -> RequestInformation: """ - Retrieve a list of attachment objects. + Retrieve a list of attachment objects attached to a message. param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: RequestInformation """ @@ -147,7 +147,7 @@ def create_upload_session(self) -> CreateUploadSessionRequestBuilder: @dataclass class AttachmentsRequestBuilderGetQueryParameters(): """ - Retrieve a list of attachment objects. + Retrieve a list of attachment objects attached to a message. """ def get_query_parameter(self,original_name: Optional[str] = None) -> str: """ diff --git a/msgraph_beta/generated/users/item/messages/item/attachments/attachments_request_builder.py b/msgraph_beta/generated/users/item/messages/item/attachments/attachments_request_builder.py index c24923d27d1..8efa5059c41 100644 --- a/msgraph_beta/generated/users/item/messages/item/attachments/attachments_request_builder.py +++ b/msgraph_beta/generated/users/item/messages/item/attachments/attachments_request_builder.py @@ -47,10 +47,10 @@ def by_attachment_id(self,attachment_id: str) -> AttachmentItemRequestBuilder: async def get(self,request_configuration: Optional[RequestConfiguration] = None) -> Optional[AttachmentCollectionResponse]: """ - Retrieve a list of attachment objects. + Retrieve a list of attachment objects attached to a message. param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: Optional[AttachmentCollectionResponse] - Find more info here: https://learn.microsoft.com/graph/api/eventmessage-list-attachments?view=graph-rest-1.0 + Find more info here: https://learn.microsoft.com/graph/api/message-list-attachments?view=graph-rest-1.0 """ request_info = self.to_get_request_information( request_configuration @@ -92,7 +92,7 @@ async def post(self,body: Optional[Attachment] = None, request_configuration: Op def to_get_request_information(self,request_configuration: Optional[RequestConfiguration] = None) -> RequestInformation: """ - Retrieve a list of attachment objects. + Retrieve a list of attachment objects attached to a message. param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: RequestInformation """ @@ -147,7 +147,7 @@ def create_upload_session(self) -> CreateUploadSessionRequestBuilder: @dataclass class AttachmentsRequestBuilderGetQueryParameters(): """ - Retrieve a list of attachment objects. + Retrieve a list of attachment objects attached to a message. """ def get_query_parameter(self,original_name: Optional[str] = None) -> str: """ diff --git a/msgraph_beta/generated/users/item/messages/item/message_item_request_builder.py b/msgraph_beta/generated/users/item/messages/item/message_item_request_builder.py index 1e6f105c902..8d39a18e856 100644 --- a/msgraph_beta/generated/users/item/messages/item/message_item_request_builder.py +++ b/msgraph_beta/generated/users/item/messages/item/message_item_request_builder.py @@ -67,7 +67,7 @@ async def get(self,request_configuration: Optional[RequestConfiguration] = None) The messages in a mailbox or folder. Read-only. Nullable. param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: Optional[Message] - Find more info here: https://learn.microsoft.com/graph/api/opentypeextension-get?view=graph-rest-1.0 + Find more info here: https://learn.microsoft.com/graph/api/message-get?view=graph-rest-1.0 """ request_info = self.to_get_request_information( request_configuration diff --git a/msgraph_beta/generated/users/item/online_meetings/item/registration/registration_request_builder.py b/msgraph_beta/generated/users/item/online_meetings/item/registration/registration_request_builder.py index 1783cd832af..45f821dd974 100644 --- a/msgraph_beta/generated/users/item/online_meetings/item/registration/registration_request_builder.py +++ b/msgraph_beta/generated/users/item/online_meetings/item/registration/registration_request_builder.py @@ -31,10 +31,10 @@ def __init__(self,request_adapter: RequestAdapter, path_parameters: Union[str, D async def delete(self,request_configuration: Optional[RequestConfiguration] = None) -> None: """ - Disable and delete the meetingRegistration of an onlineMeeting on behalf of the organizer. + Disable and delete the externalMeetingRegistration of an onlineMeeting. param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: None - Find more info here: https://learn.microsoft.com/graph/api/meetingregistration-delete?view=graph-rest-1.0 + Find more info here: https://learn.microsoft.com/graph/api/externalmeetingregistration-delete?view=graph-rest-1.0 """ request_info = self.to_delete_request_information( request_configuration @@ -95,7 +95,7 @@ async def patch(self,body: Optional[MeetingRegistration] = None, request_configu def to_delete_request_information(self,request_configuration: Optional[RequestConfiguration] = None) -> RequestInformation: """ - Disable and delete the meetingRegistration of an onlineMeeting on behalf of the organizer. + Disable and delete the externalMeetingRegistration of an onlineMeeting. param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: RequestInformation """ diff --git a/msgraph_beta/generated/users/item/settings/settings_request_builder.py b/msgraph_beta/generated/users/item/settings/settings_request_builder.py index 0a114bb0bf2..cd73ea515e7 100644 --- a/msgraph_beta/generated/users/item/settings/settings_request_builder.py +++ b/msgraph_beta/generated/users/item/settings/settings_request_builder.py @@ -17,6 +17,7 @@ from .item_insights.item_insights_request_builder import ItemInsightsRequestBuilder from .regional_and_language_settings.regional_and_language_settings_request_builder import RegionalAndLanguageSettingsRequestBuilder from .shift_preferences.shift_preferences_request_builder import ShiftPreferencesRequestBuilder + from .windows.windows_request_builder import WindowsRequestBuilder class SettingsRequestBuilder(BaseRequestBuilder): """ @@ -175,6 +176,15 @@ def shift_preferences(self) -> ShiftPreferencesRequestBuilder: return ShiftPreferencesRequestBuilder(self.request_adapter, self.path_parameters) + @property + def windows(self) -> WindowsRequestBuilder: + """ + Provides operations to manage the windows property of the microsoft.graph.userSettings entity. + """ + from .windows.windows_request_builder import WindowsRequestBuilder + + return WindowsRequestBuilder(self.request_adapter, self.path_parameters) + @dataclass class SettingsRequestBuilderGetQueryParameters(): """ diff --git a/msgraph_beta/generated/users/item/settings/windows/count/count_request_builder.py b/msgraph_beta/generated/users/item/settings/windows/count/count_request_builder.py new file mode 100644 index 00000000000..a4a5d498623 --- /dev/null +++ b/msgraph_beta/generated/users/item/settings/windows/count/count_request_builder.py @@ -0,0 +1,94 @@ +from __future__ import annotations +from dataclasses import dataclass, field +from kiota_abstractions.base_request_builder import BaseRequestBuilder +from kiota_abstractions.base_request_configuration import RequestConfiguration +from kiota_abstractions.get_path_parameters import get_path_parameters +from kiota_abstractions.method import Method +from kiota_abstractions.request_adapter import RequestAdapter +from kiota_abstractions.request_information import RequestInformation +from kiota_abstractions.request_option import RequestOption +from kiota_abstractions.serialization import Parsable, ParsableFactory +from typing import Any, Callable, Dict, List, Optional, TYPE_CHECKING, Union + +if TYPE_CHECKING: + from ......models.o_data_errors.o_data_error import ODataError + +class CountRequestBuilder(BaseRequestBuilder): + """ + Provides operations to count the resources in the collection. + """ + def __init__(self,request_adapter: RequestAdapter, path_parameters: Union[str, Dict[str, Any]]) -> None: + """ + Instantiates a new CountRequestBuilder and sets the default values. + param path_parameters: The raw url or the url-template parameters for the request. + param request_adapter: The request adapter to use to execute the requests. + Returns: None + """ + super().__init__(request_adapter, "{+baseurl}/users/{user%2Did}/settings/windows/$count{?%24filter,%24search}", path_parameters) + + async def get(self,request_configuration: Optional[RequestConfiguration] = None) -> Optional[int]: + """ + Get the number of the resource + param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. + Returns: Optional[int] + """ + request_info = self.to_get_request_information( + request_configuration + ) + from ......models.o_data_errors.o_data_error import ODataError + + error_mapping: Dict[str, ParsableFactory] = { + "XXX": ODataError, + } + if not self.request_adapter: + raise Exception("Http core is null") + return await self.request_adapter.send_primitive_async(request_info, "int", error_mapping) + + def to_get_request_information(self,request_configuration: Optional[RequestConfiguration] = None) -> RequestInformation: + """ + Get the number of the resource + param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. + Returns: RequestInformation + """ + request_info = RequestInformation(Method.GET, self.url_template, self.path_parameters) + request_info.configure(request_configuration) + request_info.headers.try_add("Accept", "text/plain;q=0.9") + return request_info + + def with_url(self,raw_url: Optional[str] = None) -> CountRequestBuilder: + """ + Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + param raw_url: The raw URL to use for the request builder. + Returns: CountRequestBuilder + """ + if not raw_url: + raise TypeError("raw_url cannot be null.") + return CountRequestBuilder(self.request_adapter, raw_url) + + @dataclass + class CountRequestBuilderGetQueryParameters(): + """ + Get the number of the resource + """ + def get_query_parameter(self,original_name: Optional[str] = None) -> str: + """ + Maps the query parameters names to their encoded names for the URI template parsing. + param original_name: The original query parameter name in the class. + Returns: str + """ + if not original_name: + raise TypeError("original_name cannot be null.") + if original_name == "filter": + return "%24filter" + if original_name == "search": + return "%24search" + return original_name + + # Filter items by property values + filter: Optional[str] = None + + # Search items by search phrases + search: Optional[str] = None + + + diff --git a/msgraph_beta/generated/users/item/settings/windows/item/instances/count/count_request_builder.py b/msgraph_beta/generated/users/item/settings/windows/item/instances/count/count_request_builder.py new file mode 100644 index 00000000000..b09c2541808 --- /dev/null +++ b/msgraph_beta/generated/users/item/settings/windows/item/instances/count/count_request_builder.py @@ -0,0 +1,94 @@ +from __future__ import annotations +from dataclasses import dataclass, field +from kiota_abstractions.base_request_builder import BaseRequestBuilder +from kiota_abstractions.base_request_configuration import RequestConfiguration +from kiota_abstractions.get_path_parameters import get_path_parameters +from kiota_abstractions.method import Method +from kiota_abstractions.request_adapter import RequestAdapter +from kiota_abstractions.request_information import RequestInformation +from kiota_abstractions.request_option import RequestOption +from kiota_abstractions.serialization import Parsable, ParsableFactory +from typing import Any, Callable, Dict, List, Optional, TYPE_CHECKING, Union + +if TYPE_CHECKING: + from ........models.o_data_errors.o_data_error import ODataError + +class CountRequestBuilder(BaseRequestBuilder): + """ + Provides operations to count the resources in the collection. + """ + def __init__(self,request_adapter: RequestAdapter, path_parameters: Union[str, Dict[str, Any]]) -> None: + """ + Instantiates a new CountRequestBuilder and sets the default values. + param path_parameters: The raw url or the url-template parameters for the request. + param request_adapter: The request adapter to use to execute the requests. + Returns: None + """ + super().__init__(request_adapter, "{+baseurl}/users/{user%2Did}/settings/windows/{windowsSetting%2Did}/instances/$count{?%24filter,%24search}", path_parameters) + + async def get(self,request_configuration: Optional[RequestConfiguration] = None) -> Optional[int]: + """ + Get the number of the resource + param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. + Returns: Optional[int] + """ + request_info = self.to_get_request_information( + request_configuration + ) + from ........models.o_data_errors.o_data_error import ODataError + + error_mapping: Dict[str, ParsableFactory] = { + "XXX": ODataError, + } + if not self.request_adapter: + raise Exception("Http core is null") + return await self.request_adapter.send_primitive_async(request_info, "int", error_mapping) + + def to_get_request_information(self,request_configuration: Optional[RequestConfiguration] = None) -> RequestInformation: + """ + Get the number of the resource + param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. + Returns: RequestInformation + """ + request_info = RequestInformation(Method.GET, self.url_template, self.path_parameters) + request_info.configure(request_configuration) + request_info.headers.try_add("Accept", "text/plain;q=0.9") + return request_info + + def with_url(self,raw_url: Optional[str] = None) -> CountRequestBuilder: + """ + Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + param raw_url: The raw URL to use for the request builder. + Returns: CountRequestBuilder + """ + if not raw_url: + raise TypeError("raw_url cannot be null.") + return CountRequestBuilder(self.request_adapter, raw_url) + + @dataclass + class CountRequestBuilderGetQueryParameters(): + """ + Get the number of the resource + """ + def get_query_parameter(self,original_name: Optional[str] = None) -> str: + """ + Maps the query parameters names to their encoded names for the URI template parsing. + param original_name: The original query parameter name in the class. + Returns: str + """ + if not original_name: + raise TypeError("original_name cannot be null.") + if original_name == "filter": + return "%24filter" + if original_name == "search": + return "%24search" + return original_name + + # Filter items by property values + filter: Optional[str] = None + + # Search items by search phrases + search: Optional[str] = None + + + diff --git a/msgraph_beta/generated/users/item/settings/windows/item/instances/instances_request_builder.py b/msgraph_beta/generated/users/item/settings/windows/item/instances/instances_request_builder.py new file mode 100644 index 00000000000..45704841d4d --- /dev/null +++ b/msgraph_beta/generated/users/item/settings/windows/item/instances/instances_request_builder.py @@ -0,0 +1,191 @@ +from __future__ import annotations +from dataclasses import dataclass, field +from kiota_abstractions.base_request_builder import BaseRequestBuilder +from kiota_abstractions.base_request_configuration import RequestConfiguration +from kiota_abstractions.get_path_parameters import get_path_parameters +from kiota_abstractions.method import Method +from kiota_abstractions.request_adapter import RequestAdapter +from kiota_abstractions.request_information import RequestInformation +from kiota_abstractions.request_option import RequestOption +from kiota_abstractions.serialization import Parsable, ParsableFactory +from typing import Any, Callable, Dict, List, Optional, TYPE_CHECKING, Union + +if TYPE_CHECKING: + from .......models.o_data_errors.o_data_error import ODataError + from .......models.windows_setting_instance import WindowsSettingInstance + from .......models.windows_setting_instance_collection_response import WindowsSettingInstanceCollectionResponse + from .count.count_request_builder import CountRequestBuilder + from .item.windows_setting_instance_item_request_builder import WindowsSettingInstanceItemRequestBuilder + +class InstancesRequestBuilder(BaseRequestBuilder): + """ + Provides operations to manage the instances property of the microsoft.graph.windowsSetting entity. + """ + def __init__(self,request_adapter: RequestAdapter, path_parameters: Union[str, Dict[str, Any]]) -> None: + """ + Instantiates a new InstancesRequestBuilder and sets the default values. + param path_parameters: The raw url or the url-template parameters for the request. + param request_adapter: The request adapter to use to execute the requests. + Returns: None + """ + super().__init__(request_adapter, "{+baseurl}/users/{user%2Did}/settings/windows/{windowsSetting%2Did}/instances{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", path_parameters) + + def by_windows_setting_instance_id(self,windows_setting_instance_id: str) -> WindowsSettingInstanceItemRequestBuilder: + """ + Provides operations to manage the instances property of the microsoft.graph.windowsSetting entity. + param windows_setting_instance_id: The unique identifier of windowsSettingInstance + Returns: WindowsSettingInstanceItemRequestBuilder + """ + if not windows_setting_instance_id: + raise TypeError("windows_setting_instance_id cannot be null.") + from .item.windows_setting_instance_item_request_builder import WindowsSettingInstanceItemRequestBuilder + + url_tpl_params = get_path_parameters(self.path_parameters) + url_tpl_params["windowsSettingInstance%2Did"] = windows_setting_instance_id + return WindowsSettingInstanceItemRequestBuilder(self.request_adapter, url_tpl_params) + + async def get(self,request_configuration: Optional[RequestConfiguration] = None) -> Optional[WindowsSettingInstanceCollectionResponse]: + """ + Get instances from users + param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. + Returns: Optional[WindowsSettingInstanceCollectionResponse] + """ + request_info = self.to_get_request_information( + request_configuration + ) + from .......models.o_data_errors.o_data_error import ODataError + + error_mapping: Dict[str, ParsableFactory] = { + "XXX": ODataError, + } + if not self.request_adapter: + raise Exception("Http core is null") + from .......models.windows_setting_instance_collection_response import WindowsSettingInstanceCollectionResponse + + return await self.request_adapter.send_async(request_info, WindowsSettingInstanceCollectionResponse, error_mapping) + + async def post(self,body: Optional[WindowsSettingInstance] = None, request_configuration: Optional[RequestConfiguration] = None) -> Optional[WindowsSettingInstance]: + """ + Create new navigation property to instances for users + param body: The request body + param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. + Returns: Optional[WindowsSettingInstance] + """ + if not body: + raise TypeError("body cannot be null.") + request_info = self.to_post_request_information( + body, request_configuration + ) + from .......models.o_data_errors.o_data_error import ODataError + + error_mapping: Dict[str, ParsableFactory] = { + "XXX": ODataError, + } + if not self.request_adapter: + raise Exception("Http core is null") + from .......models.windows_setting_instance import WindowsSettingInstance + + return await self.request_adapter.send_async(request_info, WindowsSettingInstance, error_mapping) + + def to_get_request_information(self,request_configuration: Optional[RequestConfiguration] = None) -> RequestInformation: + """ + Get instances from users + param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. + Returns: RequestInformation + """ + request_info = RequestInformation(Method.GET, self.url_template, self.path_parameters) + request_info.configure(request_configuration) + request_info.headers.try_add("Accept", "application/json") + return request_info + + def to_post_request_information(self,body: Optional[WindowsSettingInstance] = None, request_configuration: Optional[RequestConfiguration] = None) -> RequestInformation: + """ + Create new navigation property to instances for users + param body: The request body + param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. + Returns: RequestInformation + """ + if not body: + raise TypeError("body cannot be null.") + request_info = RequestInformation(Method.POST, '{+baseurl}/users/{user%2Did}/settings/windows/{windowsSetting%2Did}/instances', self.path_parameters) + request_info.configure(request_configuration) + request_info.headers.try_add("Accept", "application/json") + request_info.set_content_from_parsable(self.request_adapter, "application/json", body) + return request_info + + def with_url(self,raw_url: Optional[str] = None) -> InstancesRequestBuilder: + """ + Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + param raw_url: The raw URL to use for the request builder. + Returns: InstancesRequestBuilder + """ + if not raw_url: + raise TypeError("raw_url cannot be null.") + return InstancesRequestBuilder(self.request_adapter, raw_url) + + @property + def count(self) -> CountRequestBuilder: + """ + Provides operations to count the resources in the collection. + """ + from .count.count_request_builder import CountRequestBuilder + + return CountRequestBuilder(self.request_adapter, self.path_parameters) + + @dataclass + class InstancesRequestBuilderGetQueryParameters(): + """ + Get instances from users + """ + def get_query_parameter(self,original_name: Optional[str] = None) -> str: + """ + Maps the query parameters names to their encoded names for the URI template parsing. + param original_name: The original query parameter name in the class. + Returns: str + """ + if not original_name: + raise TypeError("original_name cannot be null.") + if original_name == "count": + return "%24count" + if original_name == "expand": + return "%24expand" + if original_name == "filter": + return "%24filter" + if original_name == "orderby": + return "%24orderby" + if original_name == "search": + return "%24search" + if original_name == "select": + return "%24select" + if original_name == "skip": + return "%24skip" + if original_name == "top": + return "%24top" + return original_name + + # Include count of items + count: Optional[bool] = None + + # Expand related entities + expand: Optional[List[str]] = None + + # Filter items by property values + filter: Optional[str] = None + + # Order items by property values + orderby: Optional[List[str]] = None + + # Search items by search phrases + search: Optional[str] = None + + # Select properties to be returned + select: Optional[List[str]] = None + + # Skip the first n items + skip: Optional[int] = None + + # Show only the first n items + top: Optional[int] = None + + + diff --git a/msgraph_beta/generated/users/item/settings/windows/item/instances/item/windows_setting_instance_item_request_builder.py b/msgraph_beta/generated/users/item/settings/windows/item/instances/item/windows_setting_instance_item_request_builder.py new file mode 100644 index 00000000000..0aa6fa254d7 --- /dev/null +++ b/msgraph_beta/generated/users/item/settings/windows/item/instances/item/windows_setting_instance_item_request_builder.py @@ -0,0 +1,164 @@ +from __future__ import annotations +from dataclasses import dataclass, field +from kiota_abstractions.base_request_builder import BaseRequestBuilder +from kiota_abstractions.base_request_configuration import RequestConfiguration +from kiota_abstractions.get_path_parameters import get_path_parameters +from kiota_abstractions.method import Method +from kiota_abstractions.request_adapter import RequestAdapter +from kiota_abstractions.request_information import RequestInformation +from kiota_abstractions.request_option import RequestOption +from kiota_abstractions.serialization import Parsable, ParsableFactory +from typing import Any, Callable, Dict, List, Optional, TYPE_CHECKING, Union + +if TYPE_CHECKING: + from ........models.o_data_errors.o_data_error import ODataError + from ........models.windows_setting_instance import WindowsSettingInstance + +class WindowsSettingInstanceItemRequestBuilder(BaseRequestBuilder): + """ + Provides operations to manage the instances property of the microsoft.graph.windowsSetting entity. + """ + def __init__(self,request_adapter: RequestAdapter, path_parameters: Union[str, Dict[str, Any]]) -> None: + """ + Instantiates a new WindowsSettingInstanceItemRequestBuilder and sets the default values. + param path_parameters: The raw url or the url-template parameters for the request. + param request_adapter: The request adapter to use to execute the requests. + Returns: None + """ + super().__init__(request_adapter, "{+baseurl}/users/{user%2Did}/settings/windows/{windowsSetting%2Did}/instances/{windowsSettingInstance%2Did}{?%24expand,%24select}", path_parameters) + + async def delete(self,request_configuration: Optional[RequestConfiguration] = None) -> None: + """ + Delete navigation property instances for users + param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. + Returns: None + """ + request_info = self.to_delete_request_information( + request_configuration + ) + from ........models.o_data_errors.o_data_error import ODataError + + error_mapping: Dict[str, ParsableFactory] = { + "XXX": ODataError, + } + if not self.request_adapter: + raise Exception("Http core is null") + return await self.request_adapter.send_no_response_content_async(request_info, error_mapping) + + async def get(self,request_configuration: Optional[RequestConfiguration] = None) -> Optional[WindowsSettingInstance]: + """ + Get instances from users + param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. + Returns: Optional[WindowsSettingInstance] + """ + request_info = self.to_get_request_information( + request_configuration + ) + from ........models.o_data_errors.o_data_error import ODataError + + error_mapping: Dict[str, ParsableFactory] = { + "XXX": ODataError, + } + if not self.request_adapter: + raise Exception("Http core is null") + from ........models.windows_setting_instance import WindowsSettingInstance + + return await self.request_adapter.send_async(request_info, WindowsSettingInstance, error_mapping) + + async def patch(self,body: Optional[WindowsSettingInstance] = None, request_configuration: Optional[RequestConfiguration] = None) -> Optional[WindowsSettingInstance]: + """ + Update the navigation property instances in users + param body: The request body + param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. + Returns: Optional[WindowsSettingInstance] + """ + if not body: + raise TypeError("body cannot be null.") + request_info = self.to_patch_request_information( + body, request_configuration + ) + from ........models.o_data_errors.o_data_error import ODataError + + error_mapping: Dict[str, ParsableFactory] = { + "XXX": ODataError, + } + if not self.request_adapter: + raise Exception("Http core is null") + from ........models.windows_setting_instance import WindowsSettingInstance + + return await self.request_adapter.send_async(request_info, WindowsSettingInstance, error_mapping) + + def to_delete_request_information(self,request_configuration: Optional[RequestConfiguration] = None) -> RequestInformation: + """ + Delete navigation property instances for users + param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. + Returns: RequestInformation + """ + request_info = RequestInformation(Method.DELETE, '{+baseurl}/users/{user%2Did}/settings/windows/{windowsSetting%2Did}/instances/{windowsSettingInstance%2Did}', self.path_parameters) + request_info.configure(request_configuration) + request_info.headers.try_add("Accept", "application/json") + return request_info + + def to_get_request_information(self,request_configuration: Optional[RequestConfiguration] = None) -> RequestInformation: + """ + Get instances from users + param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. + Returns: RequestInformation + """ + request_info = RequestInformation(Method.GET, self.url_template, self.path_parameters) + request_info.configure(request_configuration) + request_info.headers.try_add("Accept", "application/json") + return request_info + + def to_patch_request_information(self,body: Optional[WindowsSettingInstance] = None, request_configuration: Optional[RequestConfiguration] = None) -> RequestInformation: + """ + Update the navigation property instances in users + param body: The request body + param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. + Returns: RequestInformation + """ + if not body: + raise TypeError("body cannot be null.") + request_info = RequestInformation(Method.PATCH, '{+baseurl}/users/{user%2Did}/settings/windows/{windowsSetting%2Did}/instances/{windowsSettingInstance%2Did}', self.path_parameters) + request_info.configure(request_configuration) + request_info.headers.try_add("Accept", "application/json") + request_info.set_content_from_parsable(self.request_adapter, "application/json", body) + return request_info + + def with_url(self,raw_url: Optional[str] = None) -> WindowsSettingInstanceItemRequestBuilder: + """ + Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + param raw_url: The raw URL to use for the request builder. + Returns: WindowsSettingInstanceItemRequestBuilder + """ + if not raw_url: + raise TypeError("raw_url cannot be null.") + return WindowsSettingInstanceItemRequestBuilder(self.request_adapter, raw_url) + + @dataclass + class WindowsSettingInstanceItemRequestBuilderGetQueryParameters(): + """ + Get instances from users + """ + def get_query_parameter(self,original_name: Optional[str] = None) -> str: + """ + Maps the query parameters names to their encoded names for the URI template parsing. + param original_name: The original query parameter name in the class. + Returns: str + """ + if not original_name: + raise TypeError("original_name cannot be null.") + if original_name == "expand": + return "%24expand" + if original_name == "select": + return "%24select" + return original_name + + # Expand related entities + expand: Optional[List[str]] = None + + # Select properties to be returned + select: Optional[List[str]] = None + + + diff --git a/msgraph_beta/generated/users/item/settings/windows/item/windows_setting_item_request_builder.py b/msgraph_beta/generated/users/item/settings/windows/item/windows_setting_item_request_builder.py new file mode 100644 index 00000000000..d9cf2abcc70 --- /dev/null +++ b/msgraph_beta/generated/users/item/settings/windows/item/windows_setting_item_request_builder.py @@ -0,0 +1,174 @@ +from __future__ import annotations +from dataclasses import dataclass, field +from kiota_abstractions.base_request_builder import BaseRequestBuilder +from kiota_abstractions.base_request_configuration import RequestConfiguration +from kiota_abstractions.get_path_parameters import get_path_parameters +from kiota_abstractions.method import Method +from kiota_abstractions.request_adapter import RequestAdapter +from kiota_abstractions.request_information import RequestInformation +from kiota_abstractions.request_option import RequestOption +from kiota_abstractions.serialization import Parsable, ParsableFactory +from typing import Any, Callable, Dict, List, Optional, TYPE_CHECKING, Union + +if TYPE_CHECKING: + from ......models.o_data_errors.o_data_error import ODataError + from ......models.windows_setting import WindowsSetting + from .instances.instances_request_builder import InstancesRequestBuilder + +class WindowsSettingItemRequestBuilder(BaseRequestBuilder): + """ + Provides operations to manage the windows property of the microsoft.graph.userSettings entity. + """ + def __init__(self,request_adapter: RequestAdapter, path_parameters: Union[str, Dict[str, Any]]) -> None: + """ + Instantiates a new WindowsSettingItemRequestBuilder and sets the default values. + param path_parameters: The raw url or the url-template parameters for the request. + param request_adapter: The request adapter to use to execute the requests. + Returns: None + """ + super().__init__(request_adapter, "{+baseurl}/users/{user%2Did}/settings/windows/{windowsSetting%2Did}{?%24expand,%24select}", path_parameters) + + async def delete(self,request_configuration: Optional[RequestConfiguration] = None) -> None: + """ + Delete navigation property windows for users + param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. + Returns: None + """ + request_info = self.to_delete_request_information( + request_configuration + ) + from ......models.o_data_errors.o_data_error import ODataError + + error_mapping: Dict[str, ParsableFactory] = { + "XXX": ODataError, + } + if not self.request_adapter: + raise Exception("Http core is null") + return await self.request_adapter.send_no_response_content_async(request_info, error_mapping) + + async def get(self,request_configuration: Optional[RequestConfiguration] = None) -> Optional[WindowsSetting]: + """ + Get windows from users + param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. + Returns: Optional[WindowsSetting] + """ + request_info = self.to_get_request_information( + request_configuration + ) + from ......models.o_data_errors.o_data_error import ODataError + + error_mapping: Dict[str, ParsableFactory] = { + "XXX": ODataError, + } + if not self.request_adapter: + raise Exception("Http core is null") + from ......models.windows_setting import WindowsSetting + + return await self.request_adapter.send_async(request_info, WindowsSetting, error_mapping) + + async def patch(self,body: Optional[WindowsSetting] = None, request_configuration: Optional[RequestConfiguration] = None) -> Optional[WindowsSetting]: + """ + Update the navigation property windows in users + param body: The request body + param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. + Returns: Optional[WindowsSetting] + """ + if not body: + raise TypeError("body cannot be null.") + request_info = self.to_patch_request_information( + body, request_configuration + ) + from ......models.o_data_errors.o_data_error import ODataError + + error_mapping: Dict[str, ParsableFactory] = { + "XXX": ODataError, + } + if not self.request_adapter: + raise Exception("Http core is null") + from ......models.windows_setting import WindowsSetting + + return await self.request_adapter.send_async(request_info, WindowsSetting, error_mapping) + + def to_delete_request_information(self,request_configuration: Optional[RequestConfiguration] = None) -> RequestInformation: + """ + Delete navigation property windows for users + param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. + Returns: RequestInformation + """ + request_info = RequestInformation(Method.DELETE, '{+baseurl}/users/{user%2Did}/settings/windows/{windowsSetting%2Did}', self.path_parameters) + request_info.configure(request_configuration) + request_info.headers.try_add("Accept", "application/json") + return request_info + + def to_get_request_information(self,request_configuration: Optional[RequestConfiguration] = None) -> RequestInformation: + """ + Get windows from users + param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. + Returns: RequestInformation + """ + request_info = RequestInformation(Method.GET, self.url_template, self.path_parameters) + request_info.configure(request_configuration) + request_info.headers.try_add("Accept", "application/json") + return request_info + + def to_patch_request_information(self,body: Optional[WindowsSetting] = None, request_configuration: Optional[RequestConfiguration] = None) -> RequestInformation: + """ + Update the navigation property windows in users + param body: The request body + param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. + Returns: RequestInformation + """ + if not body: + raise TypeError("body cannot be null.") + request_info = RequestInformation(Method.PATCH, '{+baseurl}/users/{user%2Did}/settings/windows/{windowsSetting%2Did}', self.path_parameters) + request_info.configure(request_configuration) + request_info.headers.try_add("Accept", "application/json") + request_info.set_content_from_parsable(self.request_adapter, "application/json", body) + return request_info + + def with_url(self,raw_url: Optional[str] = None) -> WindowsSettingItemRequestBuilder: + """ + Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + param raw_url: The raw URL to use for the request builder. + Returns: WindowsSettingItemRequestBuilder + """ + if not raw_url: + raise TypeError("raw_url cannot be null.") + return WindowsSettingItemRequestBuilder(self.request_adapter, raw_url) + + @property + def instances(self) -> InstancesRequestBuilder: + """ + Provides operations to manage the instances property of the microsoft.graph.windowsSetting entity. + """ + from .instances.instances_request_builder import InstancesRequestBuilder + + return InstancesRequestBuilder(self.request_adapter, self.path_parameters) + + @dataclass + class WindowsSettingItemRequestBuilderGetQueryParameters(): + """ + Get windows from users + """ + def get_query_parameter(self,original_name: Optional[str] = None) -> str: + """ + Maps the query parameters names to their encoded names for the URI template parsing. + param original_name: The original query parameter name in the class. + Returns: str + """ + if not original_name: + raise TypeError("original_name cannot be null.") + if original_name == "expand": + return "%24expand" + if original_name == "select": + return "%24select" + return original_name + + # Expand related entities + expand: Optional[List[str]] = None + + # Select properties to be returned + select: Optional[List[str]] = None + + + diff --git a/msgraph_beta/generated/users/item/settings/windows/windows_request_builder.py b/msgraph_beta/generated/users/item/settings/windows/windows_request_builder.py new file mode 100644 index 00000000000..1d236a0d603 --- /dev/null +++ b/msgraph_beta/generated/users/item/settings/windows/windows_request_builder.py @@ -0,0 +1,191 @@ +from __future__ import annotations +from dataclasses import dataclass, field +from kiota_abstractions.base_request_builder import BaseRequestBuilder +from kiota_abstractions.base_request_configuration import RequestConfiguration +from kiota_abstractions.get_path_parameters import get_path_parameters +from kiota_abstractions.method import Method +from kiota_abstractions.request_adapter import RequestAdapter +from kiota_abstractions.request_information import RequestInformation +from kiota_abstractions.request_option import RequestOption +from kiota_abstractions.serialization import Parsable, ParsableFactory +from typing import Any, Callable, Dict, List, Optional, TYPE_CHECKING, Union + +if TYPE_CHECKING: + from .....models.o_data_errors.o_data_error import ODataError + from .....models.windows_setting import WindowsSetting + from .....models.windows_setting_collection_response import WindowsSettingCollectionResponse + from .count.count_request_builder import CountRequestBuilder + from .item.windows_setting_item_request_builder import WindowsSettingItemRequestBuilder + +class WindowsRequestBuilder(BaseRequestBuilder): + """ + Provides operations to manage the windows property of the microsoft.graph.userSettings entity. + """ + def __init__(self,request_adapter: RequestAdapter, path_parameters: Union[str, Dict[str, Any]]) -> None: + """ + Instantiates a new WindowsRequestBuilder and sets the default values. + param path_parameters: The raw url or the url-template parameters for the request. + param request_adapter: The request adapter to use to execute the requests. + Returns: None + """ + super().__init__(request_adapter, "{+baseurl}/users/{user%2Did}/settings/windows{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", path_parameters) + + def by_windows_setting_id(self,windows_setting_id: str) -> WindowsSettingItemRequestBuilder: + """ + Provides operations to manage the windows property of the microsoft.graph.userSettings entity. + param windows_setting_id: The unique identifier of windowsSetting + Returns: WindowsSettingItemRequestBuilder + """ + if not windows_setting_id: + raise TypeError("windows_setting_id cannot be null.") + from .item.windows_setting_item_request_builder import WindowsSettingItemRequestBuilder + + url_tpl_params = get_path_parameters(self.path_parameters) + url_tpl_params["windowsSetting%2Did"] = windows_setting_id + return WindowsSettingItemRequestBuilder(self.request_adapter, url_tpl_params) + + async def get(self,request_configuration: Optional[RequestConfiguration] = None) -> Optional[WindowsSettingCollectionResponse]: + """ + Get windows from users + param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. + Returns: Optional[WindowsSettingCollectionResponse] + """ + request_info = self.to_get_request_information( + request_configuration + ) + from .....models.o_data_errors.o_data_error import ODataError + + error_mapping: Dict[str, ParsableFactory] = { + "XXX": ODataError, + } + if not self.request_adapter: + raise Exception("Http core is null") + from .....models.windows_setting_collection_response import WindowsSettingCollectionResponse + + return await self.request_adapter.send_async(request_info, WindowsSettingCollectionResponse, error_mapping) + + async def post(self,body: Optional[WindowsSetting] = None, request_configuration: Optional[RequestConfiguration] = None) -> Optional[WindowsSetting]: + """ + Create new navigation property to windows for users + param body: The request body + param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. + Returns: Optional[WindowsSetting] + """ + if not body: + raise TypeError("body cannot be null.") + request_info = self.to_post_request_information( + body, request_configuration + ) + from .....models.o_data_errors.o_data_error import ODataError + + error_mapping: Dict[str, ParsableFactory] = { + "XXX": ODataError, + } + if not self.request_adapter: + raise Exception("Http core is null") + from .....models.windows_setting import WindowsSetting + + return await self.request_adapter.send_async(request_info, WindowsSetting, error_mapping) + + def to_get_request_information(self,request_configuration: Optional[RequestConfiguration] = None) -> RequestInformation: + """ + Get windows from users + param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. + Returns: RequestInformation + """ + request_info = RequestInformation(Method.GET, self.url_template, self.path_parameters) + request_info.configure(request_configuration) + request_info.headers.try_add("Accept", "application/json") + return request_info + + def to_post_request_information(self,body: Optional[WindowsSetting] = None, request_configuration: Optional[RequestConfiguration] = None) -> RequestInformation: + """ + Create new navigation property to windows for users + param body: The request body + param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. + Returns: RequestInformation + """ + if not body: + raise TypeError("body cannot be null.") + request_info = RequestInformation(Method.POST, '{+baseurl}/users/{user%2Did}/settings/windows', self.path_parameters) + request_info.configure(request_configuration) + request_info.headers.try_add("Accept", "application/json") + request_info.set_content_from_parsable(self.request_adapter, "application/json", body) + return request_info + + def with_url(self,raw_url: Optional[str] = None) -> WindowsRequestBuilder: + """ + Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + param raw_url: The raw URL to use for the request builder. + Returns: WindowsRequestBuilder + """ + if not raw_url: + raise TypeError("raw_url cannot be null.") + return WindowsRequestBuilder(self.request_adapter, raw_url) + + @property + def count(self) -> CountRequestBuilder: + """ + Provides operations to count the resources in the collection. + """ + from .count.count_request_builder import CountRequestBuilder + + return CountRequestBuilder(self.request_adapter, self.path_parameters) + + @dataclass + class WindowsRequestBuilderGetQueryParameters(): + """ + Get windows from users + """ + def get_query_parameter(self,original_name: Optional[str] = None) -> str: + """ + Maps the query parameters names to their encoded names for the URI template parsing. + param original_name: The original query parameter name in the class. + Returns: str + """ + if not original_name: + raise TypeError("original_name cannot be null.") + if original_name == "count": + return "%24count" + if original_name == "expand": + return "%24expand" + if original_name == "filter": + return "%24filter" + if original_name == "orderby": + return "%24orderby" + if original_name == "search": + return "%24search" + if original_name == "select": + return "%24select" + if original_name == "skip": + return "%24skip" + if original_name == "top": + return "%24top" + return original_name + + # Include count of items + count: Optional[bool] = None + + # Expand related entities + expand: Optional[List[str]] = None + + # Filter items by property values + filter: Optional[str] = None + + # Order items by property values + orderby: Optional[List[str]] = None + + # Search items by search phrases + search: Optional[str] = None + + # Select properties to be returned + select: Optional[List[str]] = None + + # Skip the first n items + skip: Optional[int] = None + + # Show only the first n items + top: Optional[int] = None + + + diff --git a/msgraph_beta/generated/users/item/user_item_request_builder.py b/msgraph_beta/generated/users/item/user_item_request_builder.py index daae41b083a..6a40c448686 100644 --- a/msgraph_beta/generated/users/item/user_item_request_builder.py +++ b/msgraph_beta/generated/users/item/user_item_request_builder.py @@ -31,6 +31,7 @@ from .chats.chats_request_builder import ChatsRequestBuilder from .check_member_groups.check_member_groups_request_builder import CheckMemberGroupsRequestBuilder from .check_member_objects.check_member_objects_request_builder import CheckMemberObjectsRequestBuilder + from .cloud_clipboard.cloud_clipboard_request_builder import CloudClipboardRequestBuilder from .cloud_p_cs.cloud_p_cs_request_builder import CloudPCsRequestBuilder from .contacts.contacts_request_builder import ContactsRequestBuilder from .contact_folders.contact_folders_request_builder import ContactFoldersRequestBuilder @@ -479,6 +480,15 @@ def check_member_objects(self) -> CheckMemberObjectsRequestBuilder: return CheckMemberObjectsRequestBuilder(self.request_adapter, self.path_parameters) + @property + def cloud_clipboard(self) -> CloudClipboardRequestBuilder: + """ + Provides operations to manage the cloudClipboard property of the microsoft.graph.user entity. + """ + from .cloud_clipboard.cloud_clipboard_request_builder import CloudClipboardRequestBuilder + + return CloudClipboardRequestBuilder(self.request_adapter, self.path_parameters) + @property def cloud_p_cs(self) -> CloudPCsRequestBuilder: """