From 175924141fc97ace02fbe0abb44591944e46f4bb Mon Sep 17 00:00:00 2001 From: Microsoft Graph DevX Tooling Date: Tue, 28 Jan 2025 11:29:33 +0000 Subject: [PATCH] feat(generation): update request builders and models Update generated files with build 178264 --- .../app_role_assignments_request_builder.py | 248 +++++++++++++++ .../count/count_request_builder.py | 104 ++++++ .../delta/delta_get_response.py | 58 ++++ .../delta/delta_request_builder.py | 138 ++++++++ ..._extension_properties_post_request_body.py | 50 +++ ...able_extension_properties_post_response.py | 58 ++++ ...le_extension_properties_request_builder.py | 90 ++++++ .../get_by_ids_post_request_body.py | 54 ++++ .../get_by_ids/get_by_ids_post_response.py | 58 ++++ .../get_by_ids/get_by_ids_request_builder.py | 90 ++++++ ...pp_role_assignment_item_request_builder.py | 238 ++++++++++++++ .../check_member_groups_post_request_body.py | 50 +++ .../check_member_groups_post_response.py | 55 ++++ .../check_member_groups_request_builder.py | 90 ++++++ .../check_member_objects_post_request_body.py | 50 +++ .../check_member_objects_post_response.py | 55 ++++ .../check_member_objects_request_builder.py | 89 ++++++ .../get_member_groups_post_request_body.py | 50 +++ .../get_member_groups_post_response.py | 55 ++++ .../get_member_groups_request_builder.py | 90 ++++++ .../get_member_objects_post_request_body.py | 50 +++ .../get_member_objects_post_response.py | 55 ++++ .../get_member_objects_request_builder.py | 90 ++++++ .../item/restore/restore_request_builder.py | 82 +++++ .../validate_properties_post_request_body.py | 63 ++++ .../validate_properties_request_builder.py | 87 ++++++ .../check_member_groups_request_builder.py | 4 +- .../get_member_objects_request_builder.py | 4 +- .../generated/base_graph_service_client.py | 10 + .../item/messages/messages_request_builder.py | 6 +- .../check_member_groups_request_builder.py | 4 +- .../get_member_objects_request_builder.py | 4 +- .../check_member_groups_request_builder.py | 4 +- .../get_member_objects_request_builder.py | 4 +- .../device_app_management_request_builder.py | 2 +- ...managed_app_policy_item_request_builder.py | 8 +- .../target_apps_request_builder.py | 2 +- .../managed_app_policies_request_builder.py | 8 +- .../target_apps_request_builder.py | 2 +- .../target_apps_request_builder.py | 2 +- ...d_app_registration_item_request_builder.py | 8 +- ...naged_app_registrations_request_builder.py | 8 +- ...managed_app_status_item_request_builder.py | 8 +- .../managed_e_book_item_request_builder.py | 8 +- .../managed_e_books_request_builder.py | 8 +- .../item/mobile_app_item_request_builder.py | 20 +- .../mobile_apps_request_builder.py | 8 +- ...ice_compliance_policies_request_builder.py | 14 +- ..._compliance_policy_item_request_builder.py | 20 +- .../device_configurations_request_builder.py | 14 +- ...vice_configuration_item_request_builder.py | 14 +- ...rollment_configurations_request_builder.py | 6 +- ...ment_configuration_item_request_builder.py | 6 +- .../device_management_request_builder.py | 2 +- .../role_definition_item_request_builder.py | 14 +- .../role_definitions_request_builder.py | 6 +- .../check_member_groups_request_builder.py | 4 +- .../get_member_objects_request_builder.py | 4 +- .../check_member_groups_request_builder.py | 4 +- .../get_member_objects_request_builder.py | 4 +- .../check_member_groups_request_builder.py | 4 +- .../get_member_objects_request_builder.py | 4 +- .../check_member_groups_request_builder.py | 4 +- .../get_member_objects_request_builder.py | 4 +- .../check_member_groups_request_builder.py | 4 +- .../get_member_objects_request_builder.py | 4 +- .../retention_label_request_builder.py | 6 +- .../tables/add/add_request_builder.py | 6 +- .../item/tables/add/add_request_builder.py | 6 +- .../check_member_groups_request_builder.py | 4 +- .../get_member_objects_request_builder.py | 4 +- .../check_member_groups_request_builder.py | 4 +- .../item/conversation_item_request_builder.py | 8 +- .../get_member_objects_request_builder.py | 4 +- .../item/posts/posts_request_builder.py | 8 +- .../named_location_item_request_builder.py | 14 +- ..._callout_extension_item_request_builder.py | 20 +- .../item/agreement_item_request_builder.py | 8 +- msgraph/generated/kiota-dom-export.txt | 295 ++++++++++++++++++ msgraph/generated/kiota-lock.json | 2 +- msgraph/generated/models/chat_restrictions.py | 2 +- .../models/cloud_pc_provisioning_policy.py | 7 + .../cloud_pc_provisioning_policy_autopatch.py | 54 ++++ .../device_configuration_device_status.py | 3 + .../models/device_configuration_state.py | 2 +- ...ent_platform_restrictions_configuration.py | 2 +- .../models/device_enrollment_type.py | 10 +- msgraph/generated/models/device_management.py | 3 - .../models/managed_device_owner_type.py | 8 +- .../generated/models/online_meeting_base.py | 2 +- .../banner_logo_request_builder.py | 6 +- .../check_member_groups_request_builder.py | 4 +- .../get_member_objects_request_builder.py | 4 +- .../check_member_groups_request_builder.py | 4 +- .../get_member_objects_request_builder.py | 4 +- .../check_member_groups_request_builder.py | 4 +- .../get_member_objects_request_builder.py | 4 +- .../lists/item/list_item_request_builder.py | 8 +- .../generated/sites/sites_request_builder.py | 8 +- ...onversation_member_item_request_builder.py | 12 +- .../item/members/members_request_builder.py | 6 +- .../check_member_groups_request_builder.py | 4 +- .../get_member_objects_request_builder.py | 4 +- .../users/item/user_item_request_builder.py | 16 +- .../generated/users/users_request_builder.py | 6 +- ...ith_user_principal_name_request_builder.py | 16 +- 106 files changed, 2811 insertions(+), 246 deletions(-) create mode 100644 msgraph/generated/app_role_assignments/app_role_assignments_request_builder.py create mode 100644 msgraph/generated/app_role_assignments/count/count_request_builder.py create mode 100644 msgraph/generated/app_role_assignments/delta/delta_get_response.py create mode 100644 msgraph/generated/app_role_assignments/delta/delta_request_builder.py create mode 100644 msgraph/generated/app_role_assignments/get_available_extension_properties/get_available_extension_properties_post_request_body.py create mode 100644 msgraph/generated/app_role_assignments/get_available_extension_properties/get_available_extension_properties_post_response.py create mode 100644 msgraph/generated/app_role_assignments/get_available_extension_properties/get_available_extension_properties_request_builder.py create mode 100644 msgraph/generated/app_role_assignments/get_by_ids/get_by_ids_post_request_body.py create mode 100644 msgraph/generated/app_role_assignments/get_by_ids/get_by_ids_post_response.py create mode 100644 msgraph/generated/app_role_assignments/get_by_ids/get_by_ids_request_builder.py create mode 100644 msgraph/generated/app_role_assignments/item/app_role_assignment_item_request_builder.py create mode 100644 msgraph/generated/app_role_assignments/item/check_member_groups/check_member_groups_post_request_body.py create mode 100644 msgraph/generated/app_role_assignments/item/check_member_groups/check_member_groups_post_response.py create mode 100644 msgraph/generated/app_role_assignments/item/check_member_groups/check_member_groups_request_builder.py create mode 100644 msgraph/generated/app_role_assignments/item/check_member_objects/check_member_objects_post_request_body.py create mode 100644 msgraph/generated/app_role_assignments/item/check_member_objects/check_member_objects_post_response.py create mode 100644 msgraph/generated/app_role_assignments/item/check_member_objects/check_member_objects_request_builder.py create mode 100644 msgraph/generated/app_role_assignments/item/get_member_groups/get_member_groups_post_request_body.py create mode 100644 msgraph/generated/app_role_assignments/item/get_member_groups/get_member_groups_post_response.py create mode 100644 msgraph/generated/app_role_assignments/item/get_member_groups/get_member_groups_request_builder.py create mode 100644 msgraph/generated/app_role_assignments/item/get_member_objects/get_member_objects_post_request_body.py create mode 100644 msgraph/generated/app_role_assignments/item/get_member_objects/get_member_objects_post_response.py create mode 100644 msgraph/generated/app_role_assignments/item/get_member_objects/get_member_objects_request_builder.py create mode 100644 msgraph/generated/app_role_assignments/item/restore/restore_request_builder.py create mode 100644 msgraph/generated/app_role_assignments/validate_properties/validate_properties_post_request_body.py create mode 100644 msgraph/generated/app_role_assignments/validate_properties/validate_properties_request_builder.py create mode 100644 msgraph/generated/models/cloud_pc_provisioning_policy_autopatch.py diff --git a/msgraph/generated/app_role_assignments/app_role_assignments_request_builder.py b/msgraph/generated/app_role_assignments/app_role_assignments_request_builder.py new file mode 100644 index 00000000000..c58e1b98afe --- /dev/null +++ b/msgraph/generated/app_role_assignments/app_role_assignments_request_builder.py @@ -0,0 +1,248 @@ +from __future__ import annotations +from collections.abc import Callable +from dataclasses import dataclass, field +from kiota_abstractions.base_request_builder import BaseRequestBuilder +from kiota_abstractions.base_request_configuration import RequestConfiguration +from kiota_abstractions.default_query_parameters import QueryParameters +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, Optional, TYPE_CHECKING, Union +from warnings import warn + +if TYPE_CHECKING: + from ..models.app_role_assignment import AppRoleAssignment + from ..models.app_role_assignment_collection_response import AppRoleAssignmentCollectionResponse + from ..models.o_data_errors.o_data_error import ODataError + from .count.count_request_builder import CountRequestBuilder + from .delta.delta_request_builder import DeltaRequestBuilder + from .get_available_extension_properties.get_available_extension_properties_request_builder import GetAvailableExtensionPropertiesRequestBuilder + from .get_by_ids.get_by_ids_request_builder import GetByIdsRequestBuilder + from .item.app_role_assignment_item_request_builder import AppRoleAssignmentItemRequestBuilder + from .validate_properties.validate_properties_request_builder import ValidatePropertiesRequestBuilder + +class AppRoleAssignmentsRequestBuilder(BaseRequestBuilder): + """ + Provides operations to manage the collection of appRoleAssignment entities. + """ + def __init__(self,request_adapter: RequestAdapter, path_parameters: Union[str, dict[str, Any]]) -> None: + """ + Instantiates a new AppRoleAssignmentsRequestBuilder 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}/appRoleAssignments{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", path_parameters) + + def by_app_role_assignment_id(self,app_role_assignment_id: str) -> AppRoleAssignmentItemRequestBuilder: + """ + Provides operations to manage the collection of appRoleAssignment entities. + param app_role_assignment_id: The unique identifier of appRoleAssignment + Returns: AppRoleAssignmentItemRequestBuilder + """ + if app_role_assignment_id is None: + raise TypeError("app_role_assignment_id cannot be null.") + from .item.app_role_assignment_item_request_builder import AppRoleAssignmentItemRequestBuilder + + url_tpl_params = get_path_parameters(self.path_parameters) + url_tpl_params["appRoleAssignment%2Did"] = app_role_assignment_id + return AppRoleAssignmentItemRequestBuilder(self.request_adapter, url_tpl_params) + + async def get(self,request_configuration: Optional[RequestConfiguration[AppRoleAssignmentsRequestBuilderGetQueryParameters]] = None) -> Optional[AppRoleAssignmentCollectionResponse]: + """ + Get entities from appRoleAssignments + param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. + Returns: Optional[AppRoleAssignmentCollectionResponse] + """ + request_info = self.to_get_request_information( + request_configuration + ) + from ..models.o_data_errors.o_data_error import ODataError + + error_mapping: dict[str, type[ParsableFactory]] = { + "XXX": ODataError, + } + if not self.request_adapter: + raise Exception("Http core is null") + from ..models.app_role_assignment_collection_response import AppRoleAssignmentCollectionResponse + + return await self.request_adapter.send_async(request_info, AppRoleAssignmentCollectionResponse, error_mapping) + + async def post(self,body: AppRoleAssignment, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> Optional[AppRoleAssignment]: + """ + Add new entity to appRoleAssignments + param body: The request body + param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. + Returns: Optional[AppRoleAssignment] + """ + if body is None: + 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, type[ParsableFactory]] = { + "XXX": ODataError, + } + if not self.request_adapter: + raise Exception("Http core is null") + from ..models.app_role_assignment import AppRoleAssignment + + return await self.request_adapter.send_async(request_info, AppRoleAssignment, error_mapping) + + def to_get_request_information(self,request_configuration: Optional[RequestConfiguration[AppRoleAssignmentsRequestBuilderGetQueryParameters]] = None) -> RequestInformation: + """ + Get entities from appRoleAssignments + 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: AppRoleAssignment, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> RequestInformation: + """ + Add new entity to appRoleAssignments + param body: The request body + param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. + Returns: RequestInformation + """ + if body is None: + 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: str) -> AppRoleAssignmentsRequestBuilder: + """ + 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: AppRoleAssignmentsRequestBuilder + """ + if raw_url is None: + raise TypeError("raw_url cannot be null.") + return AppRoleAssignmentsRequestBuilder(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) + + @property + def delta(self) -> DeltaRequestBuilder: + """ + Provides operations to call the delta method. + """ + from .delta.delta_request_builder import DeltaRequestBuilder + + return DeltaRequestBuilder(self.request_adapter, self.path_parameters) + + @property + def get_available_extension_properties(self) -> GetAvailableExtensionPropertiesRequestBuilder: + """ + Provides operations to call the getAvailableExtensionProperties method. + """ + from .get_available_extension_properties.get_available_extension_properties_request_builder import GetAvailableExtensionPropertiesRequestBuilder + + return GetAvailableExtensionPropertiesRequestBuilder(self.request_adapter, self.path_parameters) + + @property + def get_by_ids(self) -> GetByIdsRequestBuilder: + """ + Provides operations to call the getByIds method. + """ + from .get_by_ids.get_by_ids_request_builder import GetByIdsRequestBuilder + + return GetByIdsRequestBuilder(self.request_adapter, self.path_parameters) + + @property + def validate_properties(self) -> ValidatePropertiesRequestBuilder: + """ + Provides operations to call the validateProperties method. + """ + from .validate_properties.validate_properties_request_builder import ValidatePropertiesRequestBuilder + + return ValidatePropertiesRequestBuilder(self.request_adapter, self.path_parameters) + + @dataclass + class AppRoleAssignmentsRequestBuilderGetQueryParameters(): + """ + Get entities from appRoleAssignments + """ + def get_query_parameter(self,original_name: str) -> 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 original_name is None: + 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 + + + @dataclass + class AppRoleAssignmentsRequestBuilderGetRequestConfiguration(RequestConfiguration[AppRoleAssignmentsRequestBuilderGetQueryParameters]): + """ + Configuration for the request such as headers, query parameters, and middleware options. + """ + warn("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.", DeprecationWarning) + + @dataclass + class AppRoleAssignmentsRequestBuilderPostRequestConfiguration(RequestConfiguration[QueryParameters]): + """ + Configuration for the request such as headers, query parameters, and middleware options. + """ + warn("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.", DeprecationWarning) + + diff --git a/msgraph/generated/app_role_assignments/count/count_request_builder.py b/msgraph/generated/app_role_assignments/count/count_request_builder.py new file mode 100644 index 00000000000..7286c03c5d2 --- /dev/null +++ b/msgraph/generated/app_role_assignments/count/count_request_builder.py @@ -0,0 +1,104 @@ +from __future__ import annotations +from collections.abc import Callable +from dataclasses import dataclass, field +from kiota_abstractions.base_request_builder import BaseRequestBuilder +from kiota_abstractions.base_request_configuration import RequestConfiguration +from kiota_abstractions.default_query_parameters import QueryParameters +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, Optional, TYPE_CHECKING, Union +from warnings import warn + +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}/appRoleAssignments/$count{?%24filter,%24search}", path_parameters) + + async def get(self,request_configuration: Optional[RequestConfiguration[CountRequestBuilderGetQueryParameters]] = 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, type[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[CountRequestBuilderGetQueryParameters]] = 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: str) -> 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 raw_url is None: + 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: str) -> 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 original_name is None: + 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 + + + @dataclass + class CountRequestBuilderGetRequestConfiguration(RequestConfiguration[CountRequestBuilderGetQueryParameters]): + """ + Configuration for the request such as headers, query parameters, and middleware options. + """ + warn("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.", DeprecationWarning) + + diff --git a/msgraph/generated/app_role_assignments/delta/delta_get_response.py b/msgraph/generated/app_role_assignments/delta/delta_get_response.py new file mode 100644 index 00000000000..b9905e63c80 --- /dev/null +++ b/msgraph/generated/app_role_assignments/delta/delta_get_response.py @@ -0,0 +1,58 @@ +from __future__ import annotations +from collections.abc import Callable +from dataclasses import dataclass, field +from kiota_abstractions.serialization import Parsable, ParseNode, SerializationWriter +from typing import Any, Optional, TYPE_CHECKING, Union + +if TYPE_CHECKING: + from ...models.base_delta_function_response import BaseDeltaFunctionResponse + from ...models.directory_object import DirectoryObject + +from ...models.base_delta_function_response import BaseDeltaFunctionResponse + +@dataclass +class DeltaGetResponse(BaseDeltaFunctionResponse, Parsable): + # The value property + value: Optional[list[DirectoryObject]] = None + + @staticmethod + def create_from_discriminator_value(parse_node: ParseNode) -> DeltaGetResponse: + """ + 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: DeltaGetResponse + """ + if parse_node is None: + raise TypeError("parse_node cannot be null.") + return DeltaGetResponse() + + 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.base_delta_function_response import BaseDeltaFunctionResponse + from ...models.directory_object import DirectoryObject + + from ...models.base_delta_function_response import BaseDeltaFunctionResponse + from ...models.directory_object import DirectoryObject + + fields: dict[str, Callable[[Any], None]] = { + "value": lambda n : setattr(self, 'value', n.get_collection_of_object_values(DirectoryObject)), + } + 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 writer is None: + raise TypeError("writer cannot be null.") + super().serialize(writer) + writer.write_collection_of_object_values("value", self.value) + + diff --git a/msgraph/generated/app_role_assignments/delta/delta_request_builder.py b/msgraph/generated/app_role_assignments/delta/delta_request_builder.py new file mode 100644 index 00000000000..dded93531f0 --- /dev/null +++ b/msgraph/generated/app_role_assignments/delta/delta_request_builder.py @@ -0,0 +1,138 @@ +from __future__ import annotations +from collections.abc import Callable +from dataclasses import dataclass, field +from kiota_abstractions.base_request_builder import BaseRequestBuilder +from kiota_abstractions.base_request_configuration import RequestConfiguration +from kiota_abstractions.default_query_parameters import QueryParameters +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, Optional, TYPE_CHECKING, Union +from warnings import warn + +if TYPE_CHECKING: + from ...models.o_data_errors.o_data_error import ODataError + from .delta_get_response import DeltaGetResponse + +class DeltaRequestBuilder(BaseRequestBuilder): + """ + Provides operations to call the delta method. + """ + def __init__(self,request_adapter: RequestAdapter, path_parameters: Union[str, dict[str, Any]]) -> None: + """ + Instantiates a new DeltaRequestBuilder 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}/appRoleAssignments/delta(){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", path_parameters) + + async def get(self,request_configuration: Optional[RequestConfiguration[DeltaRequestBuilderGetQueryParameters]] = None) -> Optional[DeltaGetResponse]: + """ + Get newly created, updated, or deleted directory objects without performing a full read of the entire directoryObject collection. For more information, see Use delta query to track changes in Microsoft Graph data for details. + param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. + Returns: Optional[DeltaGetResponse] + Find more info here: https://learn.microsoft.com/graph/api/directoryobject-delta?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, type[ParsableFactory]] = { + "XXX": ODataError, + } + if not self.request_adapter: + raise Exception("Http core is null") + from .delta_get_response import DeltaGetResponse + + return await self.request_adapter.send_async(request_info, DeltaGetResponse, error_mapping) + + def to_get_request_information(self,request_configuration: Optional[RequestConfiguration[DeltaRequestBuilderGetQueryParameters]] = None) -> RequestInformation: + """ + Get newly created, updated, or deleted directory objects without performing a full read of the entire directoryObject collection. For more information, see Use delta query to track changes in Microsoft Graph data for details. + 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: str) -> DeltaRequestBuilder: + """ + 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: DeltaRequestBuilder + """ + if raw_url is None: + raise TypeError("raw_url cannot be null.") + return DeltaRequestBuilder(self.request_adapter, raw_url) + + @dataclass + class DeltaRequestBuilderGetQueryParameters(): + """ + Get newly created, updated, or deleted directory objects without performing a full read of the entire directoryObject collection. For more information, see Use delta query to track changes in Microsoft Graph data for details. + """ + def get_query_parameter(self,original_name: str) -> 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 original_name is None: + 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 + + + @dataclass + class DeltaRequestBuilderGetRequestConfiguration(RequestConfiguration[DeltaRequestBuilderGetQueryParameters]): + """ + Configuration for the request such as headers, query parameters, and middleware options. + """ + warn("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.", DeprecationWarning) + + diff --git a/msgraph/generated/app_role_assignments/get_available_extension_properties/get_available_extension_properties_post_request_body.py b/msgraph/generated/app_role_assignments/get_available_extension_properties/get_available_extension_properties_post_request_body.py new file mode 100644 index 00000000000..63d2bef3fff --- /dev/null +++ b/msgraph/generated/app_role_assignments/get_available_extension_properties/get_available_extension_properties_post_request_body.py @@ -0,0 +1,50 @@ +from __future__ import annotations +from collections.abc import Callable +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, Optional, TYPE_CHECKING, Union + +@dataclass +class GetAvailableExtensionPropertiesPostRequestBody(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 isSyncedFromOnPremises property + is_synced_from_on_premises: Optional[bool] = None + + @staticmethod + def create_from_discriminator_value(parse_node: ParseNode) -> GetAvailableExtensionPropertiesPostRequestBody: + """ + 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: GetAvailableExtensionPropertiesPostRequestBody + """ + if parse_node is None: + raise TypeError("parse_node cannot be null.") + return GetAvailableExtensionPropertiesPostRequestBody() + + 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]] = { + "isSyncedFromOnPremises": lambda n : setattr(self, 'is_synced_from_on_premises', n.get_bool_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 writer is None: + raise TypeError("writer cannot be null.") + writer.write_bool_value("isSyncedFromOnPremises", self.is_synced_from_on_premises) + writer.write_additional_data_value(self.additional_data) + + diff --git a/msgraph/generated/app_role_assignments/get_available_extension_properties/get_available_extension_properties_post_response.py b/msgraph/generated/app_role_assignments/get_available_extension_properties/get_available_extension_properties_post_response.py new file mode 100644 index 00000000000..52518629ac0 --- /dev/null +++ b/msgraph/generated/app_role_assignments/get_available_extension_properties/get_available_extension_properties_post_response.py @@ -0,0 +1,58 @@ +from __future__ import annotations +from collections.abc import Callable +from dataclasses import dataclass, field +from kiota_abstractions.serialization import Parsable, ParseNode, SerializationWriter +from typing import Any, Optional, TYPE_CHECKING, Union + +if TYPE_CHECKING: + from ...models.base_collection_pagination_count_response import BaseCollectionPaginationCountResponse + from ...models.extension_property import ExtensionProperty + +from ...models.base_collection_pagination_count_response import BaseCollectionPaginationCountResponse + +@dataclass +class GetAvailableExtensionPropertiesPostResponse(BaseCollectionPaginationCountResponse, Parsable): + # The value property + value: Optional[list[ExtensionProperty]] = None + + @staticmethod + def create_from_discriminator_value(parse_node: ParseNode) -> GetAvailableExtensionPropertiesPostResponse: + """ + 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: GetAvailableExtensionPropertiesPostResponse + """ + if parse_node is None: + raise TypeError("parse_node cannot be null.") + return GetAvailableExtensionPropertiesPostResponse() + + 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.base_collection_pagination_count_response import BaseCollectionPaginationCountResponse + from ...models.extension_property import ExtensionProperty + + from ...models.base_collection_pagination_count_response import BaseCollectionPaginationCountResponse + from ...models.extension_property import ExtensionProperty + + fields: dict[str, Callable[[Any], None]] = { + "value": lambda n : setattr(self, 'value', n.get_collection_of_object_values(ExtensionProperty)), + } + 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 writer is None: + raise TypeError("writer cannot be null.") + super().serialize(writer) + writer.write_collection_of_object_values("value", self.value) + + diff --git a/msgraph/generated/app_role_assignments/get_available_extension_properties/get_available_extension_properties_request_builder.py b/msgraph/generated/app_role_assignments/get_available_extension_properties/get_available_extension_properties_request_builder.py new file mode 100644 index 00000000000..3de58c099bc --- /dev/null +++ b/msgraph/generated/app_role_assignments/get_available_extension_properties/get_available_extension_properties_request_builder.py @@ -0,0 +1,90 @@ +from __future__ import annotations +from collections.abc import Callable +from dataclasses import dataclass, field +from kiota_abstractions.base_request_builder import BaseRequestBuilder +from kiota_abstractions.base_request_configuration import RequestConfiguration +from kiota_abstractions.default_query_parameters import QueryParameters +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, Optional, TYPE_CHECKING, Union +from warnings import warn + +if TYPE_CHECKING: + from ...models.o_data_errors.o_data_error import ODataError + from .get_available_extension_properties_post_request_body import GetAvailableExtensionPropertiesPostRequestBody + from .get_available_extension_properties_post_response import GetAvailableExtensionPropertiesPostResponse + +class GetAvailableExtensionPropertiesRequestBuilder(BaseRequestBuilder): + """ + Provides operations to call the getAvailableExtensionProperties method. + """ + def __init__(self,request_adapter: RequestAdapter, path_parameters: Union[str, dict[str, Any]]) -> None: + """ + Instantiates a new GetAvailableExtensionPropertiesRequestBuilder 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}/appRoleAssignments/getAvailableExtensionProperties", path_parameters) + + async def post(self,body: GetAvailableExtensionPropertiesPostRequestBody, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> Optional[GetAvailableExtensionPropertiesPostResponse]: + """ + Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties: + param body: The request body + param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. + Returns: Optional[GetAvailableExtensionPropertiesPostResponse] + Find more info here: https://learn.microsoft.com/graph/api/directoryobject-getavailableextensionproperties?view=graph-rest-1.0 + """ + if body is None: + 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, type[ParsableFactory]] = { + "XXX": ODataError, + } + if not self.request_adapter: + raise Exception("Http core is null") + from .get_available_extension_properties_post_response import GetAvailableExtensionPropertiesPostResponse + + return await self.request_adapter.send_async(request_info, GetAvailableExtensionPropertiesPostResponse, error_mapping) + + def to_post_request_information(self,body: GetAvailableExtensionPropertiesPostRequestBody, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> RequestInformation: + """ + Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties: + param body: The request body + param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. + Returns: RequestInformation + """ + if body is None: + 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: str) -> GetAvailableExtensionPropertiesRequestBuilder: + """ + 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: GetAvailableExtensionPropertiesRequestBuilder + """ + if raw_url is None: + raise TypeError("raw_url cannot be null.") + return GetAvailableExtensionPropertiesRequestBuilder(self.request_adapter, raw_url) + + @dataclass + class GetAvailableExtensionPropertiesRequestBuilderPostRequestConfiguration(RequestConfiguration[QueryParameters]): + """ + Configuration for the request such as headers, query parameters, and middleware options. + """ + warn("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.", DeprecationWarning) + + diff --git a/msgraph/generated/app_role_assignments/get_by_ids/get_by_ids_post_request_body.py b/msgraph/generated/app_role_assignments/get_by_ids/get_by_ids_post_request_body.py new file mode 100644 index 00000000000..88e18e37c7a --- /dev/null +++ b/msgraph/generated/app_role_assignments/get_by_ids/get_by_ids_post_request_body.py @@ -0,0 +1,54 @@ +from __future__ import annotations +from collections.abc import Callable +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, Optional, TYPE_CHECKING, Union + +@dataclass +class GetByIdsPostRequestBody(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 ids property + ids: Optional[list[str]] = None + # The types property + types: Optional[list[str]] = None + + @staticmethod + def create_from_discriminator_value(parse_node: ParseNode) -> GetByIdsPostRequestBody: + """ + 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: GetByIdsPostRequestBody + """ + if parse_node is None: + raise TypeError("parse_node cannot be null.") + return GetByIdsPostRequestBody() + + 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]] = { + "ids": lambda n : setattr(self, 'ids', n.get_collection_of_primitive_values(str)), + "types": lambda n : setattr(self, 'types', n.get_collection_of_primitive_values(str)), + } + 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 writer is None: + raise TypeError("writer cannot be null.") + writer.write_collection_of_primitive_values("ids", self.ids) + writer.write_collection_of_primitive_values("types", self.types) + writer.write_additional_data_value(self.additional_data) + + diff --git a/msgraph/generated/app_role_assignments/get_by_ids/get_by_ids_post_response.py b/msgraph/generated/app_role_assignments/get_by_ids/get_by_ids_post_response.py new file mode 100644 index 00000000000..adc802dc2b2 --- /dev/null +++ b/msgraph/generated/app_role_assignments/get_by_ids/get_by_ids_post_response.py @@ -0,0 +1,58 @@ +from __future__ import annotations +from collections.abc import Callable +from dataclasses import dataclass, field +from kiota_abstractions.serialization import Parsable, ParseNode, SerializationWriter +from typing import Any, Optional, TYPE_CHECKING, Union + +if TYPE_CHECKING: + from ...models.base_collection_pagination_count_response import BaseCollectionPaginationCountResponse + from ...models.directory_object import DirectoryObject + +from ...models.base_collection_pagination_count_response import BaseCollectionPaginationCountResponse + +@dataclass +class GetByIdsPostResponse(BaseCollectionPaginationCountResponse, Parsable): + # The value property + value: Optional[list[DirectoryObject]] = None + + @staticmethod + def create_from_discriminator_value(parse_node: ParseNode) -> GetByIdsPostResponse: + """ + 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: GetByIdsPostResponse + """ + if parse_node is None: + raise TypeError("parse_node cannot be null.") + return GetByIdsPostResponse() + + 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.base_collection_pagination_count_response import BaseCollectionPaginationCountResponse + from ...models.directory_object import DirectoryObject + + from ...models.base_collection_pagination_count_response import BaseCollectionPaginationCountResponse + from ...models.directory_object import DirectoryObject + + fields: dict[str, Callable[[Any], None]] = { + "value": lambda n : setattr(self, 'value', n.get_collection_of_object_values(DirectoryObject)), + } + 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 writer is None: + raise TypeError("writer cannot be null.") + super().serialize(writer) + writer.write_collection_of_object_values("value", self.value) + + diff --git a/msgraph/generated/app_role_assignments/get_by_ids/get_by_ids_request_builder.py b/msgraph/generated/app_role_assignments/get_by_ids/get_by_ids_request_builder.py new file mode 100644 index 00000000000..154232619c8 --- /dev/null +++ b/msgraph/generated/app_role_assignments/get_by_ids/get_by_ids_request_builder.py @@ -0,0 +1,90 @@ +from __future__ import annotations +from collections.abc import Callable +from dataclasses import dataclass, field +from kiota_abstractions.base_request_builder import BaseRequestBuilder +from kiota_abstractions.base_request_configuration import RequestConfiguration +from kiota_abstractions.default_query_parameters import QueryParameters +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, Optional, TYPE_CHECKING, Union +from warnings import warn + +if TYPE_CHECKING: + from ...models.o_data_errors.o_data_error import ODataError + from .get_by_ids_post_request_body import GetByIdsPostRequestBody + from .get_by_ids_post_response import GetByIdsPostResponse + +class GetByIdsRequestBuilder(BaseRequestBuilder): + """ + Provides operations to call the getByIds method. + """ + def __init__(self,request_adapter: RequestAdapter, path_parameters: Union[str, dict[str, Any]]) -> None: + """ + Instantiates a new GetByIdsRequestBuilder 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}/appRoleAssignments/getByIds", path_parameters) + + async def post(self,body: GetByIdsPostRequestBody, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> Optional[GetByIdsPostResponse]: + """ + Return the directory objects specified in a list of IDs. Only a subset of user properties are returned by default in v1.0. Some common uses for this function are to: + param body: The request body + param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. + Returns: Optional[GetByIdsPostResponse] + Find more info here: https://learn.microsoft.com/graph/api/directoryobject-getbyids?view=graph-rest-1.0 + """ + if body is None: + 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, type[ParsableFactory]] = { + "XXX": ODataError, + } + if not self.request_adapter: + raise Exception("Http core is null") + from .get_by_ids_post_response import GetByIdsPostResponse + + return await self.request_adapter.send_async(request_info, GetByIdsPostResponse, error_mapping) + + def to_post_request_information(self,body: GetByIdsPostRequestBody, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> RequestInformation: + """ + Return the directory objects specified in a list of IDs. Only a subset of user properties are returned by default in v1.0. Some common uses for this function are to: + param body: The request body + param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. + Returns: RequestInformation + """ + if body is None: + 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: str) -> GetByIdsRequestBuilder: + """ + 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: GetByIdsRequestBuilder + """ + if raw_url is None: + raise TypeError("raw_url cannot be null.") + return GetByIdsRequestBuilder(self.request_adapter, raw_url) + + @dataclass + class GetByIdsRequestBuilderPostRequestConfiguration(RequestConfiguration[QueryParameters]): + """ + Configuration for the request such as headers, query parameters, and middleware options. + """ + warn("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.", DeprecationWarning) + + diff --git a/msgraph/generated/app_role_assignments/item/app_role_assignment_item_request_builder.py b/msgraph/generated/app_role_assignments/item/app_role_assignment_item_request_builder.py new file mode 100644 index 00000000000..d4329c2d5e9 --- /dev/null +++ b/msgraph/generated/app_role_assignments/item/app_role_assignment_item_request_builder.py @@ -0,0 +1,238 @@ +from __future__ import annotations +from collections.abc import Callable +from dataclasses import dataclass, field +from kiota_abstractions.base_request_builder import BaseRequestBuilder +from kiota_abstractions.base_request_configuration import RequestConfiguration +from kiota_abstractions.default_query_parameters import QueryParameters +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, Optional, TYPE_CHECKING, Union +from warnings import warn + +if TYPE_CHECKING: + from ...models.app_role_assignment import AppRoleAssignment + from ...models.o_data_errors.o_data_error import ODataError + from .check_member_groups.check_member_groups_request_builder import CheckMemberGroupsRequestBuilder + from .check_member_objects.check_member_objects_request_builder import CheckMemberObjectsRequestBuilder + from .get_member_groups.get_member_groups_request_builder import GetMemberGroupsRequestBuilder + from .get_member_objects.get_member_objects_request_builder import GetMemberObjectsRequestBuilder + from .restore.restore_request_builder import RestoreRequestBuilder + +class AppRoleAssignmentItemRequestBuilder(BaseRequestBuilder): + """ + Provides operations to manage the collection of appRoleAssignment entities. + """ + def __init__(self,request_adapter: RequestAdapter, path_parameters: Union[str, dict[str, Any]]) -> None: + """ + Instantiates a new AppRoleAssignmentItemRequestBuilder 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}/appRoleAssignments/{appRoleAssignment%2Did}{?%24expand,%24select}", path_parameters) + + async def delete(self,request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> None: + """ + Delete entity from appRoleAssignments + 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, type[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[AppRoleAssignmentItemRequestBuilderGetQueryParameters]] = None) -> Optional[AppRoleAssignment]: + """ + Get entity from appRoleAssignments by key + param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. + Returns: Optional[AppRoleAssignment] + """ + request_info = self.to_get_request_information( + request_configuration + ) + from ...models.o_data_errors.o_data_error import ODataError + + error_mapping: dict[str, type[ParsableFactory]] = { + "XXX": ODataError, + } + if not self.request_adapter: + raise Exception("Http core is null") + from ...models.app_role_assignment import AppRoleAssignment + + return await self.request_adapter.send_async(request_info, AppRoleAssignment, error_mapping) + + async def patch(self,body: AppRoleAssignment, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> Optional[AppRoleAssignment]: + """ + Update entity in appRoleAssignments + param body: The request body + param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. + Returns: Optional[AppRoleAssignment] + """ + if body is None: + 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, type[ParsableFactory]] = { + "XXX": ODataError, + } + if not self.request_adapter: + raise Exception("Http core is null") + from ...models.app_role_assignment import AppRoleAssignment + + return await self.request_adapter.send_async(request_info, AppRoleAssignment, error_mapping) + + def to_delete_request_information(self,request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> RequestInformation: + """ + Delete entity from appRoleAssignments + 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_get_request_information(self,request_configuration: Optional[RequestConfiguration[AppRoleAssignmentItemRequestBuilderGetQueryParameters]] = None) -> RequestInformation: + """ + Get entity from appRoleAssignments by key + 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: AppRoleAssignment, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> RequestInformation: + """ + Update entity in appRoleAssignments + param body: The request body + param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. + Returns: RequestInformation + """ + if body is None: + 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: str) -> AppRoleAssignmentItemRequestBuilder: + """ + 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: AppRoleAssignmentItemRequestBuilder + """ + if raw_url is None: + raise TypeError("raw_url cannot be null.") + return AppRoleAssignmentItemRequestBuilder(self.request_adapter, raw_url) + + @property + def check_member_groups(self) -> CheckMemberGroupsRequestBuilder: + """ + Provides operations to call the checkMemberGroups method. + """ + from .check_member_groups.check_member_groups_request_builder import CheckMemberGroupsRequestBuilder + + return CheckMemberGroupsRequestBuilder(self.request_adapter, self.path_parameters) + + @property + def check_member_objects(self) -> CheckMemberObjectsRequestBuilder: + """ + Provides operations to call the checkMemberObjects method. + """ + from .check_member_objects.check_member_objects_request_builder import CheckMemberObjectsRequestBuilder + + return CheckMemberObjectsRequestBuilder(self.request_adapter, self.path_parameters) + + @property + def get_member_groups(self) -> GetMemberGroupsRequestBuilder: + """ + Provides operations to call the getMemberGroups method. + """ + from .get_member_groups.get_member_groups_request_builder import GetMemberGroupsRequestBuilder + + return GetMemberGroupsRequestBuilder(self.request_adapter, self.path_parameters) + + @property + def get_member_objects(self) -> GetMemberObjectsRequestBuilder: + """ + Provides operations to call the getMemberObjects method. + """ + from .get_member_objects.get_member_objects_request_builder import GetMemberObjectsRequestBuilder + + return GetMemberObjectsRequestBuilder(self.request_adapter, self.path_parameters) + + @property + def restore(self) -> RestoreRequestBuilder: + """ + Provides operations to call the restore method. + """ + from .restore.restore_request_builder import RestoreRequestBuilder + + return RestoreRequestBuilder(self.request_adapter, self.path_parameters) + + @dataclass + class AppRoleAssignmentItemRequestBuilderDeleteRequestConfiguration(RequestConfiguration[QueryParameters]): + """ + Configuration for the request such as headers, query parameters, and middleware options. + """ + warn("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.", DeprecationWarning) + + @dataclass + class AppRoleAssignmentItemRequestBuilderGetQueryParameters(): + """ + Get entity from appRoleAssignments by key + """ + def get_query_parameter(self,original_name: str) -> 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 original_name is None: + 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 + + + @dataclass + class AppRoleAssignmentItemRequestBuilderGetRequestConfiguration(RequestConfiguration[AppRoleAssignmentItemRequestBuilderGetQueryParameters]): + """ + Configuration for the request such as headers, query parameters, and middleware options. + """ + warn("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.", DeprecationWarning) + + @dataclass + class AppRoleAssignmentItemRequestBuilderPatchRequestConfiguration(RequestConfiguration[QueryParameters]): + """ + Configuration for the request such as headers, query parameters, and middleware options. + """ + warn("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.", DeprecationWarning) + + diff --git a/msgraph/generated/app_role_assignments/item/check_member_groups/check_member_groups_post_request_body.py b/msgraph/generated/app_role_assignments/item/check_member_groups/check_member_groups_post_request_body.py new file mode 100644 index 00000000000..54f94994bb6 --- /dev/null +++ b/msgraph/generated/app_role_assignments/item/check_member_groups/check_member_groups_post_request_body.py @@ -0,0 +1,50 @@ +from __future__ import annotations +from collections.abc import Callable +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, Optional, TYPE_CHECKING, Union + +@dataclass +class CheckMemberGroupsPostRequestBody(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 groupIds property + group_ids: Optional[list[str]] = None + + @staticmethod + def create_from_discriminator_value(parse_node: ParseNode) -> CheckMemberGroupsPostRequestBody: + """ + 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: CheckMemberGroupsPostRequestBody + """ + if parse_node is None: + raise TypeError("parse_node cannot be null.") + return CheckMemberGroupsPostRequestBody() + + 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]] = { + "groupIds": lambda n : setattr(self, 'group_ids', n.get_collection_of_primitive_values(str)), + } + 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 writer is None: + raise TypeError("writer cannot be null.") + writer.write_collection_of_primitive_values("groupIds", self.group_ids) + writer.write_additional_data_value(self.additional_data) + + diff --git a/msgraph/generated/app_role_assignments/item/check_member_groups/check_member_groups_post_response.py b/msgraph/generated/app_role_assignments/item/check_member_groups/check_member_groups_post_response.py new file mode 100644 index 00000000000..5d67fd64bf3 --- /dev/null +++ b/msgraph/generated/app_role_assignments/item/check_member_groups/check_member_groups_post_response.py @@ -0,0 +1,55 @@ +from __future__ import annotations +from collections.abc import Callable +from dataclasses import dataclass, field +from kiota_abstractions.serialization import Parsable, ParseNode, SerializationWriter +from typing import Any, Optional, TYPE_CHECKING, Union + +if TYPE_CHECKING: + from ....models.base_collection_pagination_count_response import BaseCollectionPaginationCountResponse + +from ....models.base_collection_pagination_count_response import BaseCollectionPaginationCountResponse + +@dataclass +class CheckMemberGroupsPostResponse(BaseCollectionPaginationCountResponse, Parsable): + # The value property + value: Optional[list[str]] = None + + @staticmethod + def create_from_discriminator_value(parse_node: ParseNode) -> CheckMemberGroupsPostResponse: + """ + 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: CheckMemberGroupsPostResponse + """ + if parse_node is None: + raise TypeError("parse_node cannot be null.") + return CheckMemberGroupsPostResponse() + + 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.base_collection_pagination_count_response import BaseCollectionPaginationCountResponse + + from ....models.base_collection_pagination_count_response import BaseCollectionPaginationCountResponse + + fields: dict[str, Callable[[Any], None]] = { + "value": lambda n : setattr(self, 'value', n.get_collection_of_primitive_values(str)), + } + 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 writer is None: + raise TypeError("writer cannot be null.") + super().serialize(writer) + writer.write_collection_of_primitive_values("value", self.value) + + diff --git a/msgraph/generated/app_role_assignments/item/check_member_groups/check_member_groups_request_builder.py b/msgraph/generated/app_role_assignments/item/check_member_groups/check_member_groups_request_builder.py new file mode 100644 index 00000000000..15b9d3bd365 --- /dev/null +++ b/msgraph/generated/app_role_assignments/item/check_member_groups/check_member_groups_request_builder.py @@ -0,0 +1,90 @@ +from __future__ import annotations +from collections.abc import Callable +from dataclasses import dataclass, field +from kiota_abstractions.base_request_builder import BaseRequestBuilder +from kiota_abstractions.base_request_configuration import RequestConfiguration +from kiota_abstractions.default_query_parameters import QueryParameters +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, Optional, TYPE_CHECKING, Union +from warnings import warn + +if TYPE_CHECKING: + from ....models.o_data_errors.o_data_error import ODataError + from .check_member_groups_post_request_body import CheckMemberGroupsPostRequestBody + from .check_member_groups_post_response import CheckMemberGroupsPostResponse + +class CheckMemberGroupsRequestBuilder(BaseRequestBuilder): + """ + Provides operations to call the checkMemberGroups method. + """ + def __init__(self,request_adapter: RequestAdapter, path_parameters: Union[str, dict[str, Any]]) -> None: + """ + Instantiates a new CheckMemberGroupsRequestBuilder 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}/appRoleAssignments/{appRoleAssignment%2Did}/checkMemberGroups", path_parameters) + + async def post(self,body: CheckMemberGroupsPostRequestBody, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> Optional[CheckMemberGroupsPostResponse]: + """ + Check for membership in a specified list of group IDs, and return from that list the IDs of groups where a specified object is a member. The specified object can be of one of the following types:- user- group- service principal- organizational contact- device- directory object This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Microsoft Entra ID. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. + param body: The request body + param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. + Returns: Optional[CheckMemberGroupsPostResponse] + Find more info here: https://learn.microsoft.com/graph/api/directoryobject-checkmembergroups?view=graph-rest-1.0 + """ + if body is None: + 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, type[ParsableFactory]] = { + "XXX": ODataError, + } + if not self.request_adapter: + raise Exception("Http core is null") + from .check_member_groups_post_response import CheckMemberGroupsPostResponse + + return await self.request_adapter.send_async(request_info, CheckMemberGroupsPostResponse, error_mapping) + + def to_post_request_information(self,body: CheckMemberGroupsPostRequestBody, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> RequestInformation: + """ + Check for membership in a specified list of group IDs, and return from that list the IDs of groups where a specified object is a member. The specified object can be of one of the following types:- user- group- service principal- organizational contact- device- directory object This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Microsoft Entra ID. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. + param body: The request body + param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. + Returns: RequestInformation + """ + if body is None: + 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: str) -> CheckMemberGroupsRequestBuilder: + """ + 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: CheckMemberGroupsRequestBuilder + """ + if raw_url is None: + raise TypeError("raw_url cannot be null.") + return CheckMemberGroupsRequestBuilder(self.request_adapter, raw_url) + + @dataclass + class CheckMemberGroupsRequestBuilderPostRequestConfiguration(RequestConfiguration[QueryParameters]): + """ + Configuration for the request such as headers, query parameters, and middleware options. + """ + warn("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.", DeprecationWarning) + + diff --git a/msgraph/generated/app_role_assignments/item/check_member_objects/check_member_objects_post_request_body.py b/msgraph/generated/app_role_assignments/item/check_member_objects/check_member_objects_post_request_body.py new file mode 100644 index 00000000000..7083db5b373 --- /dev/null +++ b/msgraph/generated/app_role_assignments/item/check_member_objects/check_member_objects_post_request_body.py @@ -0,0 +1,50 @@ +from __future__ import annotations +from collections.abc import Callable +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, Optional, TYPE_CHECKING, Union + +@dataclass +class CheckMemberObjectsPostRequestBody(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 ids property + ids: Optional[list[str]] = None + + @staticmethod + def create_from_discriminator_value(parse_node: ParseNode) -> CheckMemberObjectsPostRequestBody: + """ + 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: CheckMemberObjectsPostRequestBody + """ + if parse_node is None: + raise TypeError("parse_node cannot be null.") + return CheckMemberObjectsPostRequestBody() + + 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]] = { + "ids": lambda n : setattr(self, 'ids', n.get_collection_of_primitive_values(str)), + } + 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 writer is None: + raise TypeError("writer cannot be null.") + writer.write_collection_of_primitive_values("ids", self.ids) + writer.write_additional_data_value(self.additional_data) + + diff --git a/msgraph/generated/app_role_assignments/item/check_member_objects/check_member_objects_post_response.py b/msgraph/generated/app_role_assignments/item/check_member_objects/check_member_objects_post_response.py new file mode 100644 index 00000000000..de14157d270 --- /dev/null +++ b/msgraph/generated/app_role_assignments/item/check_member_objects/check_member_objects_post_response.py @@ -0,0 +1,55 @@ +from __future__ import annotations +from collections.abc import Callable +from dataclasses import dataclass, field +from kiota_abstractions.serialization import Parsable, ParseNode, SerializationWriter +from typing import Any, Optional, TYPE_CHECKING, Union + +if TYPE_CHECKING: + from ....models.base_collection_pagination_count_response import BaseCollectionPaginationCountResponse + +from ....models.base_collection_pagination_count_response import BaseCollectionPaginationCountResponse + +@dataclass +class CheckMemberObjectsPostResponse(BaseCollectionPaginationCountResponse, Parsable): + # The value property + value: Optional[list[str]] = None + + @staticmethod + def create_from_discriminator_value(parse_node: ParseNode) -> CheckMemberObjectsPostResponse: + """ + 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: CheckMemberObjectsPostResponse + """ + if parse_node is None: + raise TypeError("parse_node cannot be null.") + return CheckMemberObjectsPostResponse() + + 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.base_collection_pagination_count_response import BaseCollectionPaginationCountResponse + + from ....models.base_collection_pagination_count_response import BaseCollectionPaginationCountResponse + + fields: dict[str, Callable[[Any], None]] = { + "value": lambda n : setattr(self, 'value', n.get_collection_of_primitive_values(str)), + } + 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 writer is None: + raise TypeError("writer cannot be null.") + super().serialize(writer) + writer.write_collection_of_primitive_values("value", self.value) + + diff --git a/msgraph/generated/app_role_assignments/item/check_member_objects/check_member_objects_request_builder.py b/msgraph/generated/app_role_assignments/item/check_member_objects/check_member_objects_request_builder.py new file mode 100644 index 00000000000..e2c7e2b47dc --- /dev/null +++ b/msgraph/generated/app_role_assignments/item/check_member_objects/check_member_objects_request_builder.py @@ -0,0 +1,89 @@ +from __future__ import annotations +from collections.abc import Callable +from dataclasses import dataclass, field +from kiota_abstractions.base_request_builder import BaseRequestBuilder +from kiota_abstractions.base_request_configuration import RequestConfiguration +from kiota_abstractions.default_query_parameters import QueryParameters +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, Optional, TYPE_CHECKING, Union +from warnings import warn + +if TYPE_CHECKING: + from ....models.o_data_errors.o_data_error import ODataError + from .check_member_objects_post_request_body import CheckMemberObjectsPostRequestBody + from .check_member_objects_post_response import CheckMemberObjectsPostResponse + +class CheckMemberObjectsRequestBuilder(BaseRequestBuilder): + """ + Provides operations to call the checkMemberObjects method. + """ + def __init__(self,request_adapter: RequestAdapter, path_parameters: Union[str, dict[str, Any]]) -> None: + """ + Instantiates a new CheckMemberObjectsRequestBuilder 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}/appRoleAssignments/{appRoleAssignment%2Did}/checkMemberObjects", path_parameters) + + async def post(self,body: CheckMemberObjectsPostRequestBody, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> Optional[CheckMemberObjectsPostResponse]: + """ + Invoke action checkMemberObjects + param body: The request body + param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. + Returns: Optional[CheckMemberObjectsPostResponse] + """ + if body is None: + 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, type[ParsableFactory]] = { + "XXX": ODataError, + } + if not self.request_adapter: + raise Exception("Http core is null") + from .check_member_objects_post_response import CheckMemberObjectsPostResponse + + return await self.request_adapter.send_async(request_info, CheckMemberObjectsPostResponse, error_mapping) + + def to_post_request_information(self,body: CheckMemberObjectsPostRequestBody, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> RequestInformation: + """ + Invoke action checkMemberObjects + param body: The request body + param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. + Returns: RequestInformation + """ + if body is None: + 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: str) -> CheckMemberObjectsRequestBuilder: + """ + 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: CheckMemberObjectsRequestBuilder + """ + if raw_url is None: + raise TypeError("raw_url cannot be null.") + return CheckMemberObjectsRequestBuilder(self.request_adapter, raw_url) + + @dataclass + class CheckMemberObjectsRequestBuilderPostRequestConfiguration(RequestConfiguration[QueryParameters]): + """ + Configuration for the request such as headers, query parameters, and middleware options. + """ + warn("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.", DeprecationWarning) + + diff --git a/msgraph/generated/app_role_assignments/item/get_member_groups/get_member_groups_post_request_body.py b/msgraph/generated/app_role_assignments/item/get_member_groups/get_member_groups_post_request_body.py new file mode 100644 index 00000000000..c00f72b817c --- /dev/null +++ b/msgraph/generated/app_role_assignments/item/get_member_groups/get_member_groups_post_request_body.py @@ -0,0 +1,50 @@ +from __future__ import annotations +from collections.abc import Callable +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, Optional, TYPE_CHECKING, Union + +@dataclass +class GetMemberGroupsPostRequestBody(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 securityEnabledOnly property + security_enabled_only: Optional[bool] = None + + @staticmethod + def create_from_discriminator_value(parse_node: ParseNode) -> GetMemberGroupsPostRequestBody: + """ + 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: GetMemberGroupsPostRequestBody + """ + if parse_node is None: + raise TypeError("parse_node cannot be null.") + return GetMemberGroupsPostRequestBody() + + 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]] = { + "securityEnabledOnly": lambda n : setattr(self, 'security_enabled_only', n.get_bool_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 writer is None: + raise TypeError("writer cannot be null.") + writer.write_bool_value("securityEnabledOnly", self.security_enabled_only) + writer.write_additional_data_value(self.additional_data) + + diff --git a/msgraph/generated/app_role_assignments/item/get_member_groups/get_member_groups_post_response.py b/msgraph/generated/app_role_assignments/item/get_member_groups/get_member_groups_post_response.py new file mode 100644 index 00000000000..ef10de4e0f9 --- /dev/null +++ b/msgraph/generated/app_role_assignments/item/get_member_groups/get_member_groups_post_response.py @@ -0,0 +1,55 @@ +from __future__ import annotations +from collections.abc import Callable +from dataclasses import dataclass, field +from kiota_abstractions.serialization import Parsable, ParseNode, SerializationWriter +from typing import Any, Optional, TYPE_CHECKING, Union + +if TYPE_CHECKING: + from ....models.base_collection_pagination_count_response import BaseCollectionPaginationCountResponse + +from ....models.base_collection_pagination_count_response import BaseCollectionPaginationCountResponse + +@dataclass +class GetMemberGroupsPostResponse(BaseCollectionPaginationCountResponse, Parsable): + # The value property + value: Optional[list[str]] = None + + @staticmethod + def create_from_discriminator_value(parse_node: ParseNode) -> GetMemberGroupsPostResponse: + """ + 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: GetMemberGroupsPostResponse + """ + if parse_node is None: + raise TypeError("parse_node cannot be null.") + return GetMemberGroupsPostResponse() + + 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.base_collection_pagination_count_response import BaseCollectionPaginationCountResponse + + from ....models.base_collection_pagination_count_response import BaseCollectionPaginationCountResponse + + fields: dict[str, Callable[[Any], None]] = { + "value": lambda n : setattr(self, 'value', n.get_collection_of_primitive_values(str)), + } + 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 writer is None: + raise TypeError("writer cannot be null.") + super().serialize(writer) + writer.write_collection_of_primitive_values("value", self.value) + + diff --git a/msgraph/generated/app_role_assignments/item/get_member_groups/get_member_groups_request_builder.py b/msgraph/generated/app_role_assignments/item/get_member_groups/get_member_groups_request_builder.py new file mode 100644 index 00000000000..7b052553fec --- /dev/null +++ b/msgraph/generated/app_role_assignments/item/get_member_groups/get_member_groups_request_builder.py @@ -0,0 +1,90 @@ +from __future__ import annotations +from collections.abc import Callable +from dataclasses import dataclass, field +from kiota_abstractions.base_request_builder import BaseRequestBuilder +from kiota_abstractions.base_request_configuration import RequestConfiguration +from kiota_abstractions.default_query_parameters import QueryParameters +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, Optional, TYPE_CHECKING, Union +from warnings import warn + +if TYPE_CHECKING: + from ....models.o_data_errors.o_data_error import ODataError + from .get_member_groups_post_request_body import GetMemberGroupsPostRequestBody + from .get_member_groups_post_response import GetMemberGroupsPostResponse + +class GetMemberGroupsRequestBuilder(BaseRequestBuilder): + """ + Provides operations to call the getMemberGroups method. + """ + def __init__(self,request_adapter: RequestAdapter, path_parameters: Union[str, dict[str, Any]]) -> None: + """ + Instantiates a new GetMemberGroupsRequestBuilder 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}/appRoleAssignments/{appRoleAssignment%2Did}/getMemberGroups", path_parameters) + + async def post(self,body: GetMemberGroupsPostRequestBody, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> Optional[GetMemberGroupsPostResponse]: + """ + Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead. + param body: The request body + param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. + Returns: Optional[GetMemberGroupsPostResponse] + Find more info here: https://learn.microsoft.com/graph/api/directoryobject-getmembergroups?view=graph-rest-1.0 + """ + if body is None: + 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, type[ParsableFactory]] = { + "XXX": ODataError, + } + if not self.request_adapter: + raise Exception("Http core is null") + from .get_member_groups_post_response import GetMemberGroupsPostResponse + + return await self.request_adapter.send_async(request_info, GetMemberGroupsPostResponse, error_mapping) + + def to_post_request_information(self,body: GetMemberGroupsPostRequestBody, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> RequestInformation: + """ + Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead. + param body: The request body + param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. + Returns: RequestInformation + """ + if body is None: + 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: str) -> GetMemberGroupsRequestBuilder: + """ + 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: GetMemberGroupsRequestBuilder + """ + if raw_url is None: + raise TypeError("raw_url cannot be null.") + return GetMemberGroupsRequestBuilder(self.request_adapter, raw_url) + + @dataclass + class GetMemberGroupsRequestBuilderPostRequestConfiguration(RequestConfiguration[QueryParameters]): + """ + Configuration for the request such as headers, query parameters, and middleware options. + """ + warn("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.", DeprecationWarning) + + diff --git a/msgraph/generated/app_role_assignments/item/get_member_objects/get_member_objects_post_request_body.py b/msgraph/generated/app_role_assignments/item/get_member_objects/get_member_objects_post_request_body.py new file mode 100644 index 00000000000..07b489d3958 --- /dev/null +++ b/msgraph/generated/app_role_assignments/item/get_member_objects/get_member_objects_post_request_body.py @@ -0,0 +1,50 @@ +from __future__ import annotations +from collections.abc import Callable +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, Optional, TYPE_CHECKING, Union + +@dataclass +class GetMemberObjectsPostRequestBody(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 securityEnabledOnly property + security_enabled_only: Optional[bool] = None + + @staticmethod + def create_from_discriminator_value(parse_node: ParseNode) -> GetMemberObjectsPostRequestBody: + """ + 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: GetMemberObjectsPostRequestBody + """ + if parse_node is None: + raise TypeError("parse_node cannot be null.") + return GetMemberObjectsPostRequestBody() + + 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]] = { + "securityEnabledOnly": lambda n : setattr(self, 'security_enabled_only', n.get_bool_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 writer is None: + raise TypeError("writer cannot be null.") + writer.write_bool_value("securityEnabledOnly", self.security_enabled_only) + writer.write_additional_data_value(self.additional_data) + + diff --git a/msgraph/generated/app_role_assignments/item/get_member_objects/get_member_objects_post_response.py b/msgraph/generated/app_role_assignments/item/get_member_objects/get_member_objects_post_response.py new file mode 100644 index 00000000000..6b931e066ab --- /dev/null +++ b/msgraph/generated/app_role_assignments/item/get_member_objects/get_member_objects_post_response.py @@ -0,0 +1,55 @@ +from __future__ import annotations +from collections.abc import Callable +from dataclasses import dataclass, field +from kiota_abstractions.serialization import Parsable, ParseNode, SerializationWriter +from typing import Any, Optional, TYPE_CHECKING, Union + +if TYPE_CHECKING: + from ....models.base_collection_pagination_count_response import BaseCollectionPaginationCountResponse + +from ....models.base_collection_pagination_count_response import BaseCollectionPaginationCountResponse + +@dataclass +class GetMemberObjectsPostResponse(BaseCollectionPaginationCountResponse, Parsable): + # The value property + value: Optional[list[str]] = None + + @staticmethod + def create_from_discriminator_value(parse_node: ParseNode) -> GetMemberObjectsPostResponse: + """ + 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: GetMemberObjectsPostResponse + """ + if parse_node is None: + raise TypeError("parse_node cannot be null.") + return GetMemberObjectsPostResponse() + + 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.base_collection_pagination_count_response import BaseCollectionPaginationCountResponse + + from ....models.base_collection_pagination_count_response import BaseCollectionPaginationCountResponse + + fields: dict[str, Callable[[Any], None]] = { + "value": lambda n : setattr(self, 'value', n.get_collection_of_primitive_values(str)), + } + 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 writer is None: + raise TypeError("writer cannot be null.") + super().serialize(writer) + writer.write_collection_of_primitive_values("value", self.value) + + diff --git a/msgraph/generated/app_role_assignments/item/get_member_objects/get_member_objects_request_builder.py b/msgraph/generated/app_role_assignments/item/get_member_objects/get_member_objects_request_builder.py new file mode 100644 index 00000000000..0f261e7fdd5 --- /dev/null +++ b/msgraph/generated/app_role_assignments/item/get_member_objects/get_member_objects_request_builder.py @@ -0,0 +1,90 @@ +from __future__ import annotations +from collections.abc import Callable +from dataclasses import dataclass, field +from kiota_abstractions.base_request_builder import BaseRequestBuilder +from kiota_abstractions.base_request_configuration import RequestConfiguration +from kiota_abstractions.default_query_parameters import QueryParameters +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, Optional, TYPE_CHECKING, Union +from warnings import warn + +if TYPE_CHECKING: + from ....models.o_data_errors.o_data_error import ODataError + from .get_member_objects_post_request_body import GetMemberObjectsPostRequestBody + from .get_member_objects_post_response import GetMemberObjectsPostResponse + +class GetMemberObjectsRequestBuilder(BaseRequestBuilder): + """ + Provides operations to call the getMemberObjects method. + """ + def __init__(self,request_adapter: RequestAdapter, path_parameters: Union[str, dict[str, Any]]) -> None: + """ + Instantiates a new GetMemberObjectsRequestBuilder 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}/appRoleAssignments/{appRoleAssignment%2Did}/getMemberObjects", path_parameters) + + async def post(self,body: GetMemberObjectsPostRequestBody, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> Optional[GetMemberObjectsPostResponse]: + """ + Return all IDs for the groups, administrative units, and directory roles that an object of one of the following types is a member of:- user- group- service principal- organizational contact- device- directory object This function is transitive. Only users and role-enabled groups can be members of directory roles. + param body: The request body + param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. + Returns: Optional[GetMemberObjectsPostResponse] + Find more info here: https://learn.microsoft.com/graph/api/directoryobject-getmemberobjects?view=graph-rest-1.0 + """ + if body is None: + 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, type[ParsableFactory]] = { + "XXX": ODataError, + } + if not self.request_adapter: + raise Exception("Http core is null") + from .get_member_objects_post_response import GetMemberObjectsPostResponse + + return await self.request_adapter.send_async(request_info, GetMemberObjectsPostResponse, error_mapping) + + def to_post_request_information(self,body: GetMemberObjectsPostRequestBody, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> RequestInformation: + """ + Return all IDs for the groups, administrative units, and directory roles that an object of one of the following types is a member of:- user- group- service principal- organizational contact- device- directory object This function is transitive. Only users and role-enabled groups can be members of directory roles. + param body: The request body + param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. + Returns: RequestInformation + """ + if body is None: + 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: str) -> GetMemberObjectsRequestBuilder: + """ + 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: GetMemberObjectsRequestBuilder + """ + if raw_url is None: + raise TypeError("raw_url cannot be null.") + return GetMemberObjectsRequestBuilder(self.request_adapter, raw_url) + + @dataclass + class GetMemberObjectsRequestBuilderPostRequestConfiguration(RequestConfiguration[QueryParameters]): + """ + Configuration for the request such as headers, query parameters, and middleware options. + """ + warn("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.", DeprecationWarning) + + diff --git a/msgraph/generated/app_role_assignments/item/restore/restore_request_builder.py b/msgraph/generated/app_role_assignments/item/restore/restore_request_builder.py new file mode 100644 index 00000000000..7a8cce394b5 --- /dev/null +++ b/msgraph/generated/app_role_assignments/item/restore/restore_request_builder.py @@ -0,0 +1,82 @@ +from __future__ import annotations +from collections.abc import Callable +from dataclasses import dataclass, field +from kiota_abstractions.base_request_builder import BaseRequestBuilder +from kiota_abstractions.base_request_configuration import RequestConfiguration +from kiota_abstractions.default_query_parameters import QueryParameters +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, Optional, TYPE_CHECKING, Union +from warnings import warn + +if TYPE_CHECKING: + from ....models.directory_object import DirectoryObject + from ....models.o_data_errors.o_data_error import ODataError + +class RestoreRequestBuilder(BaseRequestBuilder): + """ + Provides operations to call the restore method. + """ + def __init__(self,request_adapter: RequestAdapter, path_parameters: Union[str, dict[str, Any]]) -> None: + """ + Instantiates a new RestoreRequestBuilder 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}/appRoleAssignments/{appRoleAssignment%2Did}/restore", path_parameters) + + async def post(self,request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> Optional[DirectoryObject]: + """ + Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. However, security groups can't be restored. Also, restoring an application doesn't restore the associated service principal automatically. You must call this API to explicitly restore the deleted service principal. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted. + param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. + Returns: Optional[DirectoryObject] + Find more info here: https://learn.microsoft.com/graph/api/directory-deleteditems-restore?view=graph-rest-1.0 + """ + request_info = self.to_post_request_information( + request_configuration + ) + from ....models.o_data_errors.o_data_error import ODataError + + error_mapping: dict[str, type[ParsableFactory]] = { + "XXX": ODataError, + } + if not self.request_adapter: + raise Exception("Http core is null") + from ....models.directory_object import DirectoryObject + + return await self.request_adapter.send_async(request_info, DirectoryObject, error_mapping) + + def to_post_request_information(self,request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> RequestInformation: + """ + Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. However, security groups can't be restored. Also, restoring an application doesn't restore the associated service principal automatically. You must call this API to explicitly restore the deleted service principal. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted. + param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. + Returns: RequestInformation + """ + request_info = RequestInformation(Method.POST, 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: str) -> RestoreRequestBuilder: + """ + 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: RestoreRequestBuilder + """ + if raw_url is None: + raise TypeError("raw_url cannot be null.") + return RestoreRequestBuilder(self.request_adapter, raw_url) + + @dataclass + class RestoreRequestBuilderPostRequestConfiguration(RequestConfiguration[QueryParameters]): + """ + Configuration for the request such as headers, query parameters, and middleware options. + """ + warn("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.", DeprecationWarning) + + diff --git a/msgraph/generated/app_role_assignments/validate_properties/validate_properties_post_request_body.py b/msgraph/generated/app_role_assignments/validate_properties/validate_properties_post_request_body.py new file mode 100644 index 00000000000..97b2532729e --- /dev/null +++ b/msgraph/generated/app_role_assignments/validate_properties/validate_properties_post_request_body.py @@ -0,0 +1,63 @@ +from __future__ import annotations +from collections.abc import Callable +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, Optional, TYPE_CHECKING, Union +from uuid import UUID + +@dataclass +class ValidatePropertiesPostRequestBody(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 displayName property + display_name: Optional[str] = None + # The entityType property + entity_type: Optional[str] = None + # The mailNickname property + mail_nickname: Optional[str] = None + # The onBehalfOfUserId property + on_behalf_of_user_id: Optional[UUID] = None + + @staticmethod + def create_from_discriminator_value(parse_node: ParseNode) -> ValidatePropertiesPostRequestBody: + """ + 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: ValidatePropertiesPostRequestBody + """ + if parse_node is None: + raise TypeError("parse_node cannot be null.") + return ValidatePropertiesPostRequestBody() + + 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]] = { + "displayName": lambda n : setattr(self, 'display_name', n.get_str_value()), + "entityType": lambda n : setattr(self, 'entity_type', n.get_str_value()), + "mailNickname": lambda n : setattr(self, 'mail_nickname', n.get_str_value()), + "onBehalfOfUserId": lambda n : setattr(self, 'on_behalf_of_user_id', n.get_uuid_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 writer is None: + raise TypeError("writer cannot be null.") + writer.write_str_value("displayName", self.display_name) + writer.write_str_value("entityType", self.entity_type) + writer.write_str_value("mailNickname", self.mail_nickname) + writer.write_uuid_value("onBehalfOfUserId", self.on_behalf_of_user_id) + writer.write_additional_data_value(self.additional_data) + + diff --git a/msgraph/generated/app_role_assignments/validate_properties/validate_properties_request_builder.py b/msgraph/generated/app_role_assignments/validate_properties/validate_properties_request_builder.py new file mode 100644 index 00000000000..3a794888e77 --- /dev/null +++ b/msgraph/generated/app_role_assignments/validate_properties/validate_properties_request_builder.py @@ -0,0 +1,87 @@ +from __future__ import annotations +from collections.abc import Callable +from dataclasses import dataclass, field +from kiota_abstractions.base_request_builder import BaseRequestBuilder +from kiota_abstractions.base_request_configuration import RequestConfiguration +from kiota_abstractions.default_query_parameters import QueryParameters +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, Optional, TYPE_CHECKING, Union +from warnings import warn + +if TYPE_CHECKING: + from ...models.o_data_errors.o_data_error import ODataError + from .validate_properties_post_request_body import ValidatePropertiesPostRequestBody + +class ValidatePropertiesRequestBuilder(BaseRequestBuilder): + """ + Provides operations to call the validateProperties method. + """ + def __init__(self,request_adapter: RequestAdapter, path_parameters: Union[str, dict[str, Any]]) -> None: + """ + Instantiates a new ValidatePropertiesRequestBuilder 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}/appRoleAssignments/validateProperties", path_parameters) + + async def post(self,body: ValidatePropertiesPostRequestBody, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> None: + """ + Validate that a Microsoft 365 group's display name or mail nickname complies with naming policies. Clients can use this API to determine whether a display name or mail nickname is valid before trying to create a Microsoft 365 group. To validate the properties of an existing group, use the group: validateProperties function. The following policy validations are performed for the display name and mail nickname properties:1. Validate the prefix and suffix naming policy2. Validate the custom banned words policy3. Validate that the mail nickname is unique This API only returns the first validation failure that is encountered. If the properties fail multiple validations, only the first validation failure is returned. However, you can validate both the mail nickname and the display name and receive a collection of validation errors if you are only validating the prefix and suffix naming policy. To learn more about configuring naming policies, see Configure naming policy. + 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/directoryobject-validateproperties?view=graph-rest-1.0 + """ + if body is None: + 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, type[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) + + def to_post_request_information(self,body: ValidatePropertiesPostRequestBody, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> RequestInformation: + """ + Validate that a Microsoft 365 group's display name or mail nickname complies with naming policies. Clients can use this API to determine whether a display name or mail nickname is valid before trying to create a Microsoft 365 group. To validate the properties of an existing group, use the group: validateProperties function. The following policy validations are performed for the display name and mail nickname properties:1. Validate the prefix and suffix naming policy2. Validate the custom banned words policy3. Validate that the mail nickname is unique This API only returns the first validation failure that is encountered. If the properties fail multiple validations, only the first validation failure is returned. However, you can validate both the mail nickname and the display name and receive a collection of validation errors if you are only validating the prefix and suffix naming policy. To learn more about configuring naming policies, see Configure naming policy. + param body: The request body + param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. + Returns: RequestInformation + """ + if body is None: + 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: str) -> ValidatePropertiesRequestBuilder: + """ + 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: ValidatePropertiesRequestBuilder + """ + if raw_url is None: + raise TypeError("raw_url cannot be null.") + return ValidatePropertiesRequestBuilder(self.request_adapter, raw_url) + + @dataclass + class ValidatePropertiesRequestBuilderPostRequestConfiguration(RequestConfiguration[QueryParameters]): + """ + Configuration for the request such as headers, query parameters, and middleware options. + """ + warn("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.", DeprecationWarning) + + diff --git a/msgraph/generated/applications/item/check_member_groups/check_member_groups_request_builder.py b/msgraph/generated/applications/item/check_member_groups/check_member_groups_request_builder.py index 079a3f379af..9f2ecabeb64 100644 --- a/msgraph/generated/applications/item/check_member_groups/check_member_groups_request_builder.py +++ b/msgraph/generated/applications/item/check_member_groups/check_member_groups_request_builder.py @@ -33,7 +33,7 @@ def __init__(self,request_adapter: RequestAdapter, path_parameters: Union[str, d async def post(self,body: CheckMemberGroupsPostRequestBody, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> Optional[CheckMemberGroupsPostResponse]: """ - Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Microsoft Entra ID. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. + Check for membership in a specified list of group IDs, and return from that list the IDs of groups where a specified object is a member. The specified object can be of one of the following types:- user- group- service principal- organizational contact- device- directory object This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Microsoft Entra ID. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. param body: The request body param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: Optional[CheckMemberGroupsPostResponse] @@ -57,7 +57,7 @@ async def post(self,body: CheckMemberGroupsPostRequestBody, request_configuratio def to_post_request_information(self,body: CheckMemberGroupsPostRequestBody, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> RequestInformation: """ - Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Microsoft Entra ID. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. + Check for membership in a specified list of group IDs, and return from that list the IDs of groups where a specified object is a member. The specified object can be of one of the following types:- user- group- service principal- organizational contact- device- directory object This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Microsoft Entra ID. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. 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/generated/applications/item/get_member_objects/get_member_objects_request_builder.py b/msgraph/generated/applications/item/get_member_objects/get_member_objects_request_builder.py index 7c109cf8e02..6afb01dfec8 100644 --- a/msgraph/generated/applications/item/get_member_objects/get_member_objects_request_builder.py +++ b/msgraph/generated/applications/item/get_member_objects/get_member_objects_request_builder.py @@ -33,7 +33,7 @@ def __init__(self,request_adapter: RequestAdapter, path_parameters: Union[str, d async def post(self,body: GetMemberObjectsPostRequestBody, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> Optional[GetMemberObjectsPostResponse]: """ - Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. + Return all IDs for the groups, administrative units, and directory roles that an object of one of the following types is a member of:- user- group- service principal- organizational contact- device- directory object This function is transitive. Only users and role-enabled groups can be members of directory roles. param body: The request body param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: Optional[GetMemberObjectsPostResponse] @@ -57,7 +57,7 @@ async def post(self,body: GetMemberObjectsPostRequestBody, request_configuration def to_post_request_information(self,body: GetMemberObjectsPostRequestBody, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> RequestInformation: """ - Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. + Return all IDs for the groups, administrative units, and directory roles that an object of one of the following types is a member of:- user- group- service principal- organizational contact- device- directory object This function is transitive. Only users and role-enabled groups can be members of directory roles. 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/generated/base_graph_service_client.py b/msgraph/generated/base_graph_service_client.py index 5776ca98610..195ce348472 100644 --- a/msgraph/generated/base_graph_service_client.py +++ b/msgraph/generated/base_graph_service_client.py @@ -24,6 +24,7 @@ from .applications_with_unique_name.applications_with_unique_name_request_builder import ApplicationsWithUniqueNameRequestBuilder from .application_templates.application_templates_request_builder import ApplicationTemplatesRequestBuilder from .app_catalogs.app_catalogs_request_builder import AppCatalogsRequestBuilder + from .app_role_assignments.app_role_assignments_request_builder import AppRoleAssignmentsRequestBuilder from .audit_logs.audit_logs_request_builder import AuditLogsRequestBuilder from .authentication_methods_policy.authentication_methods_policy_request_builder import AuthenticationMethodsPolicyRequestBuilder from .authentication_method_configurations.authentication_method_configurations_request_builder import AuthenticationMethodConfigurationsRequestBuilder @@ -238,6 +239,15 @@ def app_catalogs(self) -> AppCatalogsRequestBuilder: return AppCatalogsRequestBuilder(self.request_adapter, self.path_parameters) + @property + def app_role_assignments(self) -> AppRoleAssignmentsRequestBuilder: + """ + Provides operations to manage the collection of appRoleAssignment entities. + """ + from .app_role_assignments.app_role_assignments_request_builder import AppRoleAssignmentsRequestBuilder + + return AppRoleAssignmentsRequestBuilder(self.request_adapter, self.path_parameters) + @property def application_templates(self) -> ApplicationTemplatesRequestBuilder: """ diff --git a/msgraph/generated/chats/item/messages/messages_request_builder.py b/msgraph/generated/chats/item/messages/messages_request_builder.py index 82250e729ae..d911248dd7b 100644 --- a/msgraph/generated/chats/item/messages/messages_request_builder.py +++ b/msgraph/generated/chats/item/messages/messages_request_builder.py @@ -71,11 +71,11 @@ async def get(self,request_configuration: Optional[RequestConfiguration[Messages async def post(self,body: ChatMessage, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> Optional[ChatMessage]: """ - Send a new chatMessage in the specified chat. This API can't create a new chat; you must use the list chats method to retrieve the ID of an existing chat before you can create a chat message. + 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/chat-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 body is None: raise TypeError("body cannot be null.") @@ -106,7 +106,7 @@ def to_get_request_information(self,request_configuration: Optional[RequestConfi def to_post_request_information(self,body: ChatMessage, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> RequestInformation: """ - Send a new chatMessage in the specified chat. This API can't create a new chat; you must use the list chats method to retrieve the ID of an existing chat before you can create a chat message. + 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/generated/contacts/item/check_member_groups/check_member_groups_request_builder.py b/msgraph/generated/contacts/item/check_member_groups/check_member_groups_request_builder.py index 9c9cfb278ef..e2dfca92412 100644 --- a/msgraph/generated/contacts/item/check_member_groups/check_member_groups_request_builder.py +++ b/msgraph/generated/contacts/item/check_member_groups/check_member_groups_request_builder.py @@ -33,7 +33,7 @@ def __init__(self,request_adapter: RequestAdapter, path_parameters: Union[str, d async def post(self,body: CheckMemberGroupsPostRequestBody, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> Optional[CheckMemberGroupsPostResponse]: """ - Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Microsoft Entra ID. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. + Check for membership in a specified list of group IDs, and return from that list the IDs of groups where a specified object is a member. The specified object can be of one of the following types:- user- group- service principal- organizational contact- device- directory object This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Microsoft Entra ID. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. param body: The request body param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: Optional[CheckMemberGroupsPostResponse] @@ -57,7 +57,7 @@ async def post(self,body: CheckMemberGroupsPostRequestBody, request_configuratio def to_post_request_information(self,body: CheckMemberGroupsPostRequestBody, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> RequestInformation: """ - Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Microsoft Entra ID. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. + Check for membership in a specified list of group IDs, and return from that list the IDs of groups where a specified object is a member. The specified object can be of one of the following types:- user- group- service principal- organizational contact- device- directory object This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Microsoft Entra ID. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. 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/generated/contacts/item/get_member_objects/get_member_objects_request_builder.py b/msgraph/generated/contacts/item/get_member_objects/get_member_objects_request_builder.py index 29650569294..9d44f271d8e 100644 --- a/msgraph/generated/contacts/item/get_member_objects/get_member_objects_request_builder.py +++ b/msgraph/generated/contacts/item/get_member_objects/get_member_objects_request_builder.py @@ -33,7 +33,7 @@ def __init__(self,request_adapter: RequestAdapter, path_parameters: Union[str, d async def post(self,body: GetMemberObjectsPostRequestBody, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> Optional[GetMemberObjectsPostResponse]: """ - Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. + Return all IDs for the groups, administrative units, and directory roles that an object of one of the following types is a member of:- user- group- service principal- organizational contact- device- directory object This function is transitive. Only users and role-enabled groups can be members of directory roles. param body: The request body param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: Optional[GetMemberObjectsPostResponse] @@ -57,7 +57,7 @@ async def post(self,body: GetMemberObjectsPostRequestBody, request_configuration def to_post_request_information(self,body: GetMemberObjectsPostRequestBody, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> RequestInformation: """ - Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. + Return all IDs for the groups, administrative units, and directory roles that an object of one of the following types is a member of:- user- group- service principal- organizational contact- device- directory object This function is transitive. Only users and role-enabled groups can be members of directory roles. 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/generated/contracts/item/check_member_groups/check_member_groups_request_builder.py b/msgraph/generated/contracts/item/check_member_groups/check_member_groups_request_builder.py index 498083a18a2..b6c576c4fce 100644 --- a/msgraph/generated/contracts/item/check_member_groups/check_member_groups_request_builder.py +++ b/msgraph/generated/contracts/item/check_member_groups/check_member_groups_request_builder.py @@ -33,7 +33,7 @@ def __init__(self,request_adapter: RequestAdapter, path_parameters: Union[str, d async def post(self,body: CheckMemberGroupsPostRequestBody, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> Optional[CheckMemberGroupsPostResponse]: """ - Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Microsoft Entra ID. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. + Check for membership in a specified list of group IDs, and return from that list the IDs of groups where a specified object is a member. The specified object can be of one of the following types:- user- group- service principal- organizational contact- device- directory object This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Microsoft Entra ID. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. param body: The request body param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: Optional[CheckMemberGroupsPostResponse] @@ -57,7 +57,7 @@ async def post(self,body: CheckMemberGroupsPostRequestBody, request_configuratio def to_post_request_information(self,body: CheckMemberGroupsPostRequestBody, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> RequestInformation: """ - Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Microsoft Entra ID. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. + Check for membership in a specified list of group IDs, and return from that list the IDs of groups where a specified object is a member. The specified object can be of one of the following types:- user- group- service principal- organizational contact- device- directory object This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Microsoft Entra ID. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. 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/generated/contracts/item/get_member_objects/get_member_objects_request_builder.py b/msgraph/generated/contracts/item/get_member_objects/get_member_objects_request_builder.py index 5b871a33a73..034221a2b12 100644 --- a/msgraph/generated/contracts/item/get_member_objects/get_member_objects_request_builder.py +++ b/msgraph/generated/contracts/item/get_member_objects/get_member_objects_request_builder.py @@ -33,7 +33,7 @@ def __init__(self,request_adapter: RequestAdapter, path_parameters: Union[str, d async def post(self,body: GetMemberObjectsPostRequestBody, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> Optional[GetMemberObjectsPostResponse]: """ - Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. + Return all IDs for the groups, administrative units, and directory roles that an object of one of the following types is a member of:- user- group- service principal- organizational contact- device- directory object This function is transitive. Only users and role-enabled groups can be members of directory roles. param body: The request body param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: Optional[GetMemberObjectsPostResponse] @@ -57,7 +57,7 @@ async def post(self,body: GetMemberObjectsPostRequestBody, request_configuration def to_post_request_information(self,body: GetMemberObjectsPostRequestBody, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> RequestInformation: """ - Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. + Return all IDs for the groups, administrative units, and directory roles that an object of one of the following types is a member of:- user- group- service principal- organizational contact- device- directory object This function is transitive. Only users and role-enabled groups can be members of directory roles. 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/generated/device_app_management/device_app_management_request_builder.py b/msgraph/generated/device_app_management/device_app_management_request_builder.py index 87e7c940a85..86f8c1ed2fe 100644 --- a/msgraph/generated/device_app_management/device_app_management_request_builder.py +++ b/msgraph/generated/device_app_management/device_app_management_request_builder.py @@ -50,7 +50,7 @@ async def get(self,request_configuration: Optional[RequestConfiguration[DeviceAp Read properties and relationships of the deviceAppManagement object. param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: Optional[DeviceAppManagement] - Find more info here: https://learn.microsoft.com/graph/api/intune-onboarding-deviceappmanagement-get?view=graph-rest-1.0 + Find more info here: https://learn.microsoft.com/graph/api/intune-books-deviceappmanagement-get?view=graph-rest-1.0 """ request_info = self.to_get_request_information( request_configuration diff --git a/msgraph/generated/device_app_management/managed_app_policies/item/managed_app_policy_item_request_builder.py b/msgraph/generated/device_app_management/managed_app_policies/item/managed_app_policy_item_request_builder.py index 199aca9678f..360da8cece5 100644 --- a/msgraph/generated/device_app_management/managed_app_policies/item/managed_app_policy_item_request_builder.py +++ b/msgraph/generated/device_app_management/managed_app_policies/item/managed_app_policy_item_request_builder.py @@ -51,10 +51,10 @@ async def delete(self,request_configuration: Optional[RequestConfiguration[Query async def get(self,request_configuration: Optional[RequestConfiguration[ManagedAppPolicyItemRequestBuilderGetQueryParameters]] = None) -> Optional[ManagedAppPolicy]: """ - Read properties and relationships of the windowsInformationProtection object. + Read properties and relationships of the managedAppProtection object. param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: Optional[ManagedAppPolicy] - Find more info here: https://learn.microsoft.com/graph/api/intune-mam-windowsinformationprotection-get?view=graph-rest-1.0 + Find more info here: https://learn.microsoft.com/graph/api/intune-mam-managedappprotection-get?view=graph-rest-1.0 """ request_info = self.to_get_request_information( request_configuration @@ -106,7 +106,7 @@ def to_delete_request_information(self,request_configuration: Optional[RequestCo def to_get_request_information(self,request_configuration: Optional[RequestConfiguration[ManagedAppPolicyItemRequestBuilderGetQueryParameters]] = None) -> RequestInformation: """ - Read properties and relationships of the windowsInformationProtection object. + Read properties and relationships of the managedAppProtection object. param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: RequestInformation """ @@ -159,7 +159,7 @@ class ManagedAppPolicyItemRequestBuilderDeleteRequestConfiguration(RequestConfig @dataclass class ManagedAppPolicyItemRequestBuilderGetQueryParameters(): """ - Read properties and relationships of the windowsInformationProtection object. + Read properties and relationships of the managedAppProtection object. """ def get_query_parameter(self,original_name: str) -> str: """ diff --git a/msgraph/generated/device_app_management/managed_app_policies/item/target_apps/target_apps_request_builder.py b/msgraph/generated/device_app_management/managed_app_policies/item/target_apps/target_apps_request_builder.py index e08dd659657..af58826db23 100644 --- a/msgraph/generated/device_app_management/managed_app_policies/item/target_apps/target_apps_request_builder.py +++ b/msgraph/generated/device_app_management/managed_app_policies/item/target_apps/target_apps_request_builder.py @@ -36,7 +36,7 @@ async def post(self,body: TargetAppsPostRequestBody, request_configuration: Opti 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/intune-mam-managedappprotection-targetapps?view=graph-rest-1.0 + Find more info here: https://learn.microsoft.com/graph/api/intune-mam-managedapppolicy-targetapps?view=graph-rest-1.0 """ if body is None: raise TypeError("body cannot be null.") diff --git a/msgraph/generated/device_app_management/managed_app_policies/managed_app_policies_request_builder.py b/msgraph/generated/device_app_management/managed_app_policies/managed_app_policies_request_builder.py index 24c752b3dee..600c6b108c0 100644 --- a/msgraph/generated/device_app_management/managed_app_policies/managed_app_policies_request_builder.py +++ b/msgraph/generated/device_app_management/managed_app_policies/managed_app_policies_request_builder.py @@ -49,10 +49,10 @@ def by_managed_app_policy_id(self,managed_app_policy_id: str) -> ManagedAppPolic async def get(self,request_configuration: Optional[RequestConfiguration[ManagedAppPoliciesRequestBuilderGetQueryParameters]] = None) -> Optional[ManagedAppPolicyCollectionResponse]: """ - List properties and relationships of the managedAppPolicy objects. + List properties and relationships of the windowsInformationProtection objects. param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: Optional[ManagedAppPolicyCollectionResponse] - Find more info here: https://learn.microsoft.com/graph/api/intune-mam-managedapppolicy-list?view=graph-rest-1.0 + Find more info here: https://learn.microsoft.com/graph/api/intune-mam-windowsinformationprotection-list?view=graph-rest-1.0 """ request_info = self.to_get_request_information( request_configuration @@ -93,7 +93,7 @@ async def post(self,body: ManagedAppPolicy, request_configuration: Optional[Requ def to_get_request_information(self,request_configuration: Optional[RequestConfiguration[ManagedAppPoliciesRequestBuilderGetQueryParameters]] = None) -> RequestInformation: """ - List properties and relationships of the managedAppPolicy objects. + List properties and relationships of the windowsInformationProtection objects. param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: RequestInformation """ @@ -139,7 +139,7 @@ def count(self) -> CountRequestBuilder: @dataclass class ManagedAppPoliciesRequestBuilderGetQueryParameters(): """ - List properties and relationships of the managedAppPolicy objects. + List properties and relationships of the windowsInformationProtection objects. """ def get_query_parameter(self,original_name: str) -> str: """ diff --git a/msgraph/generated/device_app_management/managed_app_registrations/item/applied_policies/item/target_apps/target_apps_request_builder.py b/msgraph/generated/device_app_management/managed_app_registrations/item/applied_policies/item/target_apps/target_apps_request_builder.py index 4d5dcbe97ad..81be8129c8e 100644 --- a/msgraph/generated/device_app_management/managed_app_registrations/item/applied_policies/item/target_apps/target_apps_request_builder.py +++ b/msgraph/generated/device_app_management/managed_app_registrations/item/applied_policies/item/target_apps/target_apps_request_builder.py @@ -36,7 +36,7 @@ async def post(self,body: TargetAppsPostRequestBody, request_configuration: Opti 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/intune-mam-managedappprotection-targetapps?view=graph-rest-1.0 + Find more info here: https://learn.microsoft.com/graph/api/intune-mam-managedapppolicy-targetapps?view=graph-rest-1.0 """ if body is None: raise TypeError("body cannot be null.") diff --git a/msgraph/generated/device_app_management/managed_app_registrations/item/intended_policies/item/target_apps/target_apps_request_builder.py b/msgraph/generated/device_app_management/managed_app_registrations/item/intended_policies/item/target_apps/target_apps_request_builder.py index 4980fb98081..4bb2e293a8d 100644 --- a/msgraph/generated/device_app_management/managed_app_registrations/item/intended_policies/item/target_apps/target_apps_request_builder.py +++ b/msgraph/generated/device_app_management/managed_app_registrations/item/intended_policies/item/target_apps/target_apps_request_builder.py @@ -36,7 +36,7 @@ async def post(self,body: TargetAppsPostRequestBody, request_configuration: Opti 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/intune-mam-managedappprotection-targetapps?view=graph-rest-1.0 + Find more info here: https://learn.microsoft.com/graph/api/intune-mam-managedapppolicy-targetapps?view=graph-rest-1.0 """ if body is None: raise TypeError("body cannot be null.") diff --git a/msgraph/generated/device_app_management/managed_app_registrations/item/managed_app_registration_item_request_builder.py b/msgraph/generated/device_app_management/managed_app_registrations/item/managed_app_registration_item_request_builder.py index 12f7d9bb872..6f1fecc7940 100644 --- a/msgraph/generated/device_app_management/managed_app_registrations/item/managed_app_registration_item_request_builder.py +++ b/msgraph/generated/device_app_management/managed_app_registrations/item/managed_app_registration_item_request_builder.py @@ -53,10 +53,10 @@ async def delete(self,request_configuration: Optional[RequestConfiguration[Query async def get(self,request_configuration: Optional[RequestConfiguration[ManagedAppRegistrationItemRequestBuilderGetQueryParameters]] = None) -> Optional[ManagedAppRegistration]: """ - Read properties and relationships of the managedAppRegistration object. + Read properties and relationships of the androidManagedAppRegistration object. param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: Optional[ManagedAppRegistration] - Find more info here: https://learn.microsoft.com/graph/api/intune-mam-managedappregistration-get?view=graph-rest-1.0 + Find more info here: https://learn.microsoft.com/graph/api/intune-mam-androidmanagedappregistration-get?view=graph-rest-1.0 """ request_info = self.to_get_request_information( request_configuration @@ -108,7 +108,7 @@ def to_delete_request_information(self,request_configuration: Optional[RequestCo def to_get_request_information(self,request_configuration: Optional[RequestConfiguration[ManagedAppRegistrationItemRequestBuilderGetQueryParameters]] = None) -> RequestInformation: """ - Read properties and relationships of the managedAppRegistration object. + Read properties and relationships of the androidManagedAppRegistration object. param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: RequestInformation """ @@ -179,7 +179,7 @@ class ManagedAppRegistrationItemRequestBuilderDeleteRequestConfiguration(Request @dataclass class ManagedAppRegistrationItemRequestBuilderGetQueryParameters(): """ - Read properties and relationships of the managedAppRegistration object. + Read properties and relationships of the androidManagedAppRegistration object. """ def get_query_parameter(self,original_name: str) -> str: """ diff --git a/msgraph/generated/device_app_management/managed_app_registrations/managed_app_registrations_request_builder.py b/msgraph/generated/device_app_management/managed_app_registrations/managed_app_registrations_request_builder.py index 03744166002..7674a249ed2 100644 --- a/msgraph/generated/device_app_management/managed_app_registrations/managed_app_registrations_request_builder.py +++ b/msgraph/generated/device_app_management/managed_app_registrations/managed_app_registrations_request_builder.py @@ -50,10 +50,10 @@ def by_managed_app_registration_id(self,managed_app_registration_id: str) -> Man async def get(self,request_configuration: Optional[RequestConfiguration[ManagedAppRegistrationsRequestBuilderGetQueryParameters]] = None) -> Optional[ManagedAppRegistrationCollectionResponse]: """ - List properties and relationships of the iosManagedAppRegistration objects. + List properties and relationships of the managedAppRegistration objects. param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: Optional[ManagedAppRegistrationCollectionResponse] - Find more info here: https://learn.microsoft.com/graph/api/intune-mam-iosmanagedappregistration-list?view=graph-rest-1.0 + Find more info here: https://learn.microsoft.com/graph/api/intune-mam-managedappregistration-list?view=graph-rest-1.0 """ request_info = self.to_get_request_information( request_configuration @@ -95,7 +95,7 @@ async def post(self,body: ManagedAppRegistration, request_configuration: Optiona def to_get_request_information(self,request_configuration: Optional[RequestConfiguration[ManagedAppRegistrationsRequestBuilderGetQueryParameters]] = None) -> RequestInformation: """ - List properties and relationships of the iosManagedAppRegistration objects. + List properties and relationships of the managedAppRegistration objects. param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: RequestInformation """ @@ -150,7 +150,7 @@ def get_user_ids_with_flagged_app_registration(self) -> GetUserIdsWithFlaggedApp @dataclass class ManagedAppRegistrationsRequestBuilderGetQueryParameters(): """ - List properties and relationships of the iosManagedAppRegistration objects. + List properties and relationships of the managedAppRegistration objects. """ def get_query_parameter(self,original_name: str) -> str: """ diff --git a/msgraph/generated/device_app_management/managed_app_statuses/item/managed_app_status_item_request_builder.py b/msgraph/generated/device_app_management/managed_app_statuses/item/managed_app_status_item_request_builder.py index 46420cdf85f..68c41edf0d6 100644 --- a/msgraph/generated/device_app_management/managed_app_statuses/item/managed_app_status_item_request_builder.py +++ b/msgraph/generated/device_app_management/managed_app_statuses/item/managed_app_status_item_request_builder.py @@ -50,10 +50,10 @@ async def delete(self,request_configuration: Optional[RequestConfiguration[Query async def get(self,request_configuration: Optional[RequestConfiguration[ManagedAppStatusItemRequestBuilderGetQueryParameters]] = None) -> Optional[ManagedAppStatus]: """ - Read properties and relationships of the managedAppStatus object. + Read properties and relationships of the managedAppStatusRaw object. param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: Optional[ManagedAppStatus] - Find more info here: https://learn.microsoft.com/graph/api/intune-mam-managedappstatus-get?view=graph-rest-1.0 + Find more info here: https://learn.microsoft.com/graph/api/intune-mam-managedappstatusraw-get?view=graph-rest-1.0 """ request_info = self.to_get_request_information( request_configuration @@ -105,7 +105,7 @@ def to_delete_request_information(self,request_configuration: Optional[RequestCo def to_get_request_information(self,request_configuration: Optional[RequestConfiguration[ManagedAppStatusItemRequestBuilderGetQueryParameters]] = None) -> RequestInformation: """ - Read properties and relationships of the managedAppStatus object. + Read properties and relationships of the managedAppStatusRaw object. param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: RequestInformation """ @@ -149,7 +149,7 @@ class ManagedAppStatusItemRequestBuilderDeleteRequestConfiguration(RequestConfig @dataclass class ManagedAppStatusItemRequestBuilderGetQueryParameters(): """ - Read properties and relationships of the managedAppStatus object. + Read properties and relationships of the managedAppStatusRaw object. """ def get_query_parameter(self,original_name: str) -> str: """ diff --git a/msgraph/generated/device_app_management/managed_e_books/item/managed_e_book_item_request_builder.py b/msgraph/generated/device_app_management/managed_e_books/item/managed_e_book_item_request_builder.py index 67931bfed61..21344a1e6dd 100644 --- a/msgraph/generated/device_app_management/managed_e_books/item/managed_e_book_item_request_builder.py +++ b/msgraph/generated/device_app_management/managed_e_books/item/managed_e_book_item_request_builder.py @@ -56,10 +56,10 @@ async def delete(self,request_configuration: Optional[RequestConfiguration[Query async def get(self,request_configuration: Optional[RequestConfiguration[ManagedEBookItemRequestBuilderGetQueryParameters]] = None) -> Optional[ManagedEBook]: """ - Read properties and relationships of the managedEBook object. + Read properties and relationships of the iosVppEBook object. param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: Optional[ManagedEBook] - Find more info here: https://learn.microsoft.com/graph/api/intune-books-managedebook-get?view=graph-rest-1.0 + Find more info here: https://learn.microsoft.com/graph/api/intune-books-iosvppebook-get?view=graph-rest-1.0 """ request_info = self.to_get_request_information( request_configuration @@ -112,7 +112,7 @@ def to_delete_request_information(self,request_configuration: Optional[RequestCo def to_get_request_information(self,request_configuration: Optional[RequestConfiguration[ManagedEBookItemRequestBuilderGetQueryParameters]] = None) -> RequestInformation: """ - Read properties and relationships of the managedEBook object. + Read properties and relationships of the iosVppEBook object. param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: RequestInformation """ @@ -201,7 +201,7 @@ class ManagedEBookItemRequestBuilderDeleteRequestConfiguration(RequestConfigurat @dataclass class ManagedEBookItemRequestBuilderGetQueryParameters(): """ - Read properties and relationships of the managedEBook object. + Read properties and relationships of the iosVppEBook object. """ def get_query_parameter(self,original_name: str) -> str: """ diff --git a/msgraph/generated/device_app_management/managed_e_books/managed_e_books_request_builder.py b/msgraph/generated/device_app_management/managed_e_books/managed_e_books_request_builder.py index b3b82e60b4f..f994aa37717 100644 --- a/msgraph/generated/device_app_management/managed_e_books/managed_e_books_request_builder.py +++ b/msgraph/generated/device_app_management/managed_e_books/managed_e_books_request_builder.py @@ -49,10 +49,10 @@ def by_managed_e_book_id(self,managed_e_book_id: str) -> ManagedEBookItemRequest async def get(self,request_configuration: Optional[RequestConfiguration[ManagedEBooksRequestBuilderGetQueryParameters]] = None) -> Optional[ManagedEBookCollectionResponse]: """ - List properties and relationships of the managedEBook objects. + List properties and relationships of the iosVppEBook objects. param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: Optional[ManagedEBookCollectionResponse] - Find more info here: https://learn.microsoft.com/graph/api/intune-books-managedebook-list?view=graph-rest-1.0 + Find more info here: https://learn.microsoft.com/graph/api/intune-books-iosvppebook-list?view=graph-rest-1.0 """ request_info = self.to_get_request_information( request_configuration @@ -94,7 +94,7 @@ async def post(self,body: ManagedEBook, request_configuration: Optional[RequestC def to_get_request_information(self,request_configuration: Optional[RequestConfiguration[ManagedEBooksRequestBuilderGetQueryParameters]] = None) -> RequestInformation: """ - List properties and relationships of the managedEBook objects. + List properties and relationships of the iosVppEBook objects. param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: RequestInformation """ @@ -140,7 +140,7 @@ def count(self) -> CountRequestBuilder: @dataclass class ManagedEBooksRequestBuilderGetQueryParameters(): """ - List properties and relationships of the managedEBook objects. + List properties and relationships of the iosVppEBook objects. """ def get_query_parameter(self,original_name: str) -> str: """ diff --git a/msgraph/generated/device_app_management/mobile_apps/item/mobile_app_item_request_builder.py b/msgraph/generated/device_app_management/mobile_apps/item/mobile_app_item_request_builder.py index a36d6452dd5..eaaba96e667 100644 --- a/msgraph/generated/device_app_management/mobile_apps/item/mobile_app_item_request_builder.py +++ b/msgraph/generated/device_app_management/mobile_apps/item/mobile_app_item_request_builder.py @@ -51,10 +51,10 @@ def __init__(self,request_adapter: RequestAdapter, path_parameters: Union[str, d async def delete(self,request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> None: """ - Deletes a microsoftStoreForBusinessApp. + Deletes a managedAndroidStoreApp. 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/intune-apps-microsoftstoreforbusinessapp-delete?view=graph-rest-1.0 + Find more info here: https://learn.microsoft.com/graph/api/intune-apps-managedandroidstoreapp-delete?view=graph-rest-1.0 """ request_info = self.to_delete_request_information( request_configuration @@ -70,10 +70,10 @@ async def delete(self,request_configuration: Optional[RequestConfiguration[Query async def get(self,request_configuration: Optional[RequestConfiguration[MobileAppItemRequestBuilderGetQueryParameters]] = None) -> Optional[MobileApp]: """ - Read properties and relationships of the windowsMicrosoftEdgeApp object. + Read properties and relationships of the windowsAppX object. param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: Optional[MobileApp] - Find more info here: https://learn.microsoft.com/graph/api/intune-apps-windowsmicrosoftedgeapp-get?view=graph-rest-1.0 + Find more info here: https://learn.microsoft.com/graph/api/intune-apps-windowsappx-get?view=graph-rest-1.0 """ request_info = self.to_get_request_information( request_configuration @@ -91,11 +91,11 @@ async def get(self,request_configuration: Optional[RequestConfiguration[MobileAp async def patch(self,body: MobileApp, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> Optional[MobileApp]: """ - Update the properties of a windowsMicrosoftEdgeApp object. + Update the properties of a androidLobApp object. param body: The request body param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: Optional[MobileApp] - Find more info here: https://learn.microsoft.com/graph/api/intune-apps-windowsmicrosoftedgeapp-update?view=graph-rest-1.0 + Find more info here: https://learn.microsoft.com/graph/api/intune-apps-androidlobapp-update?view=graph-rest-1.0 """ if body is None: raise TypeError("body cannot be null.") @@ -115,7 +115,7 @@ async def patch(self,body: MobileApp, request_configuration: Optional[RequestCon def to_delete_request_information(self,request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> RequestInformation: """ - Deletes a microsoftStoreForBusinessApp. + Deletes a managedAndroidStoreApp. param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: RequestInformation """ @@ -126,7 +126,7 @@ def to_delete_request_information(self,request_configuration: Optional[RequestCo def to_get_request_information(self,request_configuration: Optional[RequestConfiguration[MobileAppItemRequestBuilderGetQueryParameters]] = None) -> RequestInformation: """ - Read properties and relationships of the windowsMicrosoftEdgeApp object. + Read properties and relationships of the windowsAppX object. param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: RequestInformation """ @@ -137,7 +137,7 @@ def to_get_request_information(self,request_configuration: Optional[RequestConfi def to_patch_request_information(self,body: MobileApp, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> RequestInformation: """ - Update the properties of a windowsMicrosoftEdgeApp object. + Update the properties of a androidLobApp object. param body: The request body param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: RequestInformation @@ -341,7 +341,7 @@ class MobileAppItemRequestBuilderDeleteRequestConfiguration(RequestConfiguration @dataclass class MobileAppItemRequestBuilderGetQueryParameters(): """ - Read properties and relationships of the windowsMicrosoftEdgeApp object. + Read properties and relationships of the windowsAppX object. """ def get_query_parameter(self,original_name: str) -> str: """ diff --git a/msgraph/generated/device_app_management/mobile_apps/mobile_apps_request_builder.py b/msgraph/generated/device_app_management/mobile_apps/mobile_apps_request_builder.py index 5ebca7b5603..68d9c20e1d9 100644 --- a/msgraph/generated/device_app_management/mobile_apps/mobile_apps_request_builder.py +++ b/msgraph/generated/device_app_management/mobile_apps/mobile_apps_request_builder.py @@ -65,10 +65,10 @@ def by_mobile_app_id(self,mobile_app_id: str) -> MobileAppItemRequestBuilder: async def get(self,request_configuration: Optional[RequestConfiguration[MobileAppsRequestBuilderGetQueryParameters]] = None) -> Optional[MobileAppCollectionResponse]: """ - List properties and relationships of the mobileLobApp objects. + List properties and relationships of the macOSLobApp objects. param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: Optional[MobileAppCollectionResponse] - Find more info here: https://learn.microsoft.com/graph/api/intune-apps-mobilelobapp-list?view=graph-rest-1.0 + Find more info here: https://learn.microsoft.com/graph/api/intune-apps-macoslobapp-list?view=graph-rest-1.0 """ request_info = self.to_get_request_information( request_configuration @@ -110,7 +110,7 @@ async def post(self,body: MobileApp, request_configuration: Optional[RequestConf def to_get_request_information(self,request_configuration: Optional[RequestConfiguration[MobileAppsRequestBuilderGetQueryParameters]] = None) -> RequestInformation: """ - List properties and relationships of the mobileLobApp objects. + List properties and relationships of the macOSLobApp objects. param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: RequestInformation """ @@ -300,7 +300,7 @@ def graph_windows_web_app(self) -> GraphWindowsWebAppRequestBuilder: @dataclass class MobileAppsRequestBuilderGetQueryParameters(): """ - List properties and relationships of the mobileLobApp objects. + List properties and relationships of the macOSLobApp objects. """ def get_query_parameter(self,original_name: str) -> str: """ diff --git a/msgraph/generated/device_management/device_compliance_policies/device_compliance_policies_request_builder.py b/msgraph/generated/device_management/device_compliance_policies/device_compliance_policies_request_builder.py index 087ee689785..6896329dd34 100644 --- a/msgraph/generated/device_management/device_compliance_policies/device_compliance_policies_request_builder.py +++ b/msgraph/generated/device_management/device_compliance_policies/device_compliance_policies_request_builder.py @@ -49,10 +49,10 @@ def by_device_compliance_policy_id(self,device_compliance_policy_id: str) -> Dev async def get(self,request_configuration: Optional[RequestConfiguration[DeviceCompliancePoliciesRequestBuilderGetQueryParameters]] = None) -> Optional[DeviceCompliancePolicyCollectionResponse]: """ - List properties and relationships of the windows81CompliancePolicy objects. + List properties and relationships of the macOSCompliancePolicy objects. param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: Optional[DeviceCompliancePolicyCollectionResponse] - Find more info here: https://learn.microsoft.com/graph/api/intune-deviceconfig-windows81compliancepolicy-list?view=graph-rest-1.0 + Find more info here: https://learn.microsoft.com/graph/api/intune-deviceconfig-macoscompliancepolicy-list?view=graph-rest-1.0 """ request_info = self.to_get_request_information( request_configuration @@ -70,11 +70,11 @@ async def get(self,request_configuration: Optional[RequestConfiguration[DeviceCo async def post(self,body: DeviceCompliancePolicy, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> Optional[DeviceCompliancePolicy]: """ - Create a new windows81CompliancePolicy object. + Create a new macOSCompliancePolicy object. param body: The request body param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: Optional[DeviceCompliancePolicy] - Find more info here: https://learn.microsoft.com/graph/api/intune-deviceconfig-windows81compliancepolicy-create?view=graph-rest-1.0 + Find more info here: https://learn.microsoft.com/graph/api/intune-deviceconfig-macoscompliancepolicy-create?view=graph-rest-1.0 """ if body is None: raise TypeError("body cannot be null.") @@ -94,7 +94,7 @@ async def post(self,body: DeviceCompliancePolicy, request_configuration: Optiona def to_get_request_information(self,request_configuration: Optional[RequestConfiguration[DeviceCompliancePoliciesRequestBuilderGetQueryParameters]] = None) -> RequestInformation: """ - List properties and relationships of the windows81CompliancePolicy objects. + List properties and relationships of the macOSCompliancePolicy objects. param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: RequestInformation """ @@ -105,7 +105,7 @@ def to_get_request_information(self,request_configuration: Optional[RequestConfi def to_post_request_information(self,body: DeviceCompliancePolicy, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> RequestInformation: """ - Create a new windows81CompliancePolicy object. + Create a new macOSCompliancePolicy object. param body: The request body param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: RequestInformation @@ -140,7 +140,7 @@ def count(self) -> CountRequestBuilder: @dataclass class DeviceCompliancePoliciesRequestBuilderGetQueryParameters(): """ - List properties and relationships of the windows81CompliancePolicy objects. + List properties and relationships of the macOSCompliancePolicy objects. """ def get_query_parameter(self,original_name: str) -> str: """ diff --git a/msgraph/generated/device_management/device_compliance_policies/item/device_compliance_policy_item_request_builder.py b/msgraph/generated/device_management/device_compliance_policies/item/device_compliance_policy_item_request_builder.py index c01651cf690..3e3d7a014b1 100644 --- a/msgraph/generated/device_management/device_compliance_policies/item/device_compliance_policy_item_request_builder.py +++ b/msgraph/generated/device_management/device_compliance_policies/item/device_compliance_policy_item_request_builder.py @@ -41,10 +41,10 @@ def __init__(self,request_adapter: RequestAdapter, path_parameters: Union[str, d async def delete(self,request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> None: """ - Deletes a windowsPhone81CompliancePolicy. + Deletes a androidCompliancePolicy. 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/intune-deviceconfig-windowsphone81compliancepolicy-delete?view=graph-rest-1.0 + Find more info here: https://learn.microsoft.com/graph/api/intune-deviceconfig-androidcompliancepolicy-delete?view=graph-rest-1.0 """ request_info = self.to_delete_request_information( request_configuration @@ -60,10 +60,10 @@ async def delete(self,request_configuration: Optional[RequestConfiguration[Query async def get(self,request_configuration: Optional[RequestConfiguration[DeviceCompliancePolicyItemRequestBuilderGetQueryParameters]] = None) -> Optional[DeviceCompliancePolicy]: """ - Read properties and relationships of the iosCompliancePolicy object. + Read properties and relationships of the androidWorkProfileCompliancePolicy object. param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: Optional[DeviceCompliancePolicy] - Find more info here: https://learn.microsoft.com/graph/api/intune-deviceconfig-ioscompliancepolicy-get?view=graph-rest-1.0 + Find more info here: https://learn.microsoft.com/graph/api/intune-deviceconfig-androidworkprofilecompliancepolicy-get?view=graph-rest-1.0 """ request_info = self.to_get_request_information( request_configuration @@ -81,11 +81,11 @@ async def get(self,request_configuration: Optional[RequestConfiguration[DeviceCo async def patch(self,body: DeviceCompliancePolicy, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> Optional[DeviceCompliancePolicy]: """ - Update the properties of a windowsPhone81CompliancePolicy object. + Update the properties of a androidWorkProfileCompliancePolicy object. param body: The request body param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: Optional[DeviceCompliancePolicy] - Find more info here: https://learn.microsoft.com/graph/api/intune-deviceconfig-windowsphone81compliancepolicy-update?view=graph-rest-1.0 + Find more info here: https://learn.microsoft.com/graph/api/intune-deviceconfig-androidworkprofilecompliancepolicy-update?view=graph-rest-1.0 """ if body is None: raise TypeError("body cannot be null.") @@ -105,7 +105,7 @@ async def patch(self,body: DeviceCompliancePolicy, request_configuration: Option def to_delete_request_information(self,request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> RequestInformation: """ - Deletes a windowsPhone81CompliancePolicy. + Deletes a androidCompliancePolicy. param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: RequestInformation """ @@ -116,7 +116,7 @@ def to_delete_request_information(self,request_configuration: Optional[RequestCo def to_get_request_information(self,request_configuration: Optional[RequestConfiguration[DeviceCompliancePolicyItemRequestBuilderGetQueryParameters]] = None) -> RequestInformation: """ - Read properties and relationships of the iosCompliancePolicy object. + Read properties and relationships of the androidWorkProfileCompliancePolicy object. param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: RequestInformation """ @@ -127,7 +127,7 @@ def to_get_request_information(self,request_configuration: Optional[RequestConfi def to_patch_request_information(self,body: DeviceCompliancePolicy, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> RequestInformation: """ - Update the properties of a windowsPhone81CompliancePolicy object. + Update the properties of a androidWorkProfileCompliancePolicy object. param body: The request body param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: RequestInformation @@ -241,7 +241,7 @@ class DeviceCompliancePolicyItemRequestBuilderDeleteRequestConfiguration(Request @dataclass class DeviceCompliancePolicyItemRequestBuilderGetQueryParameters(): """ - Read properties and relationships of the iosCompliancePolicy object. + Read properties and relationships of the androidWorkProfileCompliancePolicy object. """ def get_query_parameter(self,original_name: str) -> str: """ diff --git a/msgraph/generated/device_management/device_configurations/device_configurations_request_builder.py b/msgraph/generated/device_management/device_configurations/device_configurations_request_builder.py index ed39abdffa8..4635cc8e821 100644 --- a/msgraph/generated/device_management/device_configurations/device_configurations_request_builder.py +++ b/msgraph/generated/device_management/device_configurations/device_configurations_request_builder.py @@ -49,10 +49,10 @@ def by_device_configuration_id(self,device_configuration_id: str) -> DeviceConfi async def get(self,request_configuration: Optional[RequestConfiguration[DeviceConfigurationsRequestBuilderGetQueryParameters]] = None) -> Optional[DeviceConfigurationCollectionResponse]: """ - List properties and relationships of the deviceConfiguration objects. + List properties and relationships of the iosGeneralDeviceConfiguration objects. param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: Optional[DeviceConfigurationCollectionResponse] - Find more info here: https://learn.microsoft.com/graph/api/intune-deviceconfig-deviceconfiguration-list?view=graph-rest-1.0 + Find more info here: https://learn.microsoft.com/graph/api/intune-deviceconfig-iosgeneraldeviceconfiguration-list?view=graph-rest-1.0 """ request_info = self.to_get_request_information( request_configuration @@ -70,11 +70,11 @@ async def get(self,request_configuration: Optional[RequestConfiguration[DeviceCo async def post(self,body: DeviceConfiguration, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> Optional[DeviceConfiguration]: """ - Create a new macOSDeviceFeaturesConfiguration object. + Create a new windowsPhone81CustomConfiguration object. param body: The request body param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: Optional[DeviceConfiguration] - Find more info here: https://learn.microsoft.com/graph/api/intune-deviceconfig-macosdevicefeaturesconfiguration-create?view=graph-rest-1.0 + Find more info here: https://learn.microsoft.com/graph/api/intune-deviceconfig-windowsphone81customconfiguration-create?view=graph-rest-1.0 """ if body is None: raise TypeError("body cannot be null.") @@ -94,7 +94,7 @@ async def post(self,body: DeviceConfiguration, request_configuration: Optional[R def to_get_request_information(self,request_configuration: Optional[RequestConfiguration[DeviceConfigurationsRequestBuilderGetQueryParameters]] = None) -> RequestInformation: """ - List properties and relationships of the deviceConfiguration objects. + List properties and relationships of the iosGeneralDeviceConfiguration objects. param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: RequestInformation """ @@ -105,7 +105,7 @@ def to_get_request_information(self,request_configuration: Optional[RequestConfi def to_post_request_information(self,body: DeviceConfiguration, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> RequestInformation: """ - Create a new macOSDeviceFeaturesConfiguration object. + Create a new windowsPhone81CustomConfiguration object. param body: The request body param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: RequestInformation @@ -140,7 +140,7 @@ def count(self) -> CountRequestBuilder: @dataclass class DeviceConfigurationsRequestBuilderGetQueryParameters(): """ - List properties and relationships of the deviceConfiguration objects. + List properties and relationships of the iosGeneralDeviceConfiguration objects. """ def get_query_parameter(self,original_name: str) -> str: """ diff --git a/msgraph/generated/device_management/device_configurations/item/device_configuration_item_request_builder.py b/msgraph/generated/device_management/device_configurations/item/device_configuration_item_request_builder.py index 061890fedc1..3273e2bee3c 100644 --- a/msgraph/generated/device_management/device_configurations/item/device_configuration_item_request_builder.py +++ b/msgraph/generated/device_management/device_configurations/item/device_configuration_item_request_builder.py @@ -40,10 +40,10 @@ def __init__(self,request_adapter: RequestAdapter, path_parameters: Union[str, d async def delete(self,request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> None: """ - Deletes a iosDeviceFeaturesConfiguration. + Deletes a macOSDeviceFeaturesConfiguration. 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/intune-deviceconfig-iosdevicefeaturesconfiguration-delete?view=graph-rest-1.0 + Find more info here: https://learn.microsoft.com/graph/api/intune-deviceconfig-macosdevicefeaturesconfiguration-delete?view=graph-rest-1.0 """ request_info = self.to_delete_request_information( request_configuration @@ -59,10 +59,10 @@ async def delete(self,request_configuration: Optional[RequestConfiguration[Query async def get(self,request_configuration: Optional[RequestConfiguration[DeviceConfigurationItemRequestBuilderGetQueryParameters]] = None) -> Optional[DeviceConfiguration]: """ - Read properties and relationships of the androidWorkProfileCustomConfiguration object. + Read properties and relationships of the iosDeviceFeaturesConfiguration object. param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: Optional[DeviceConfiguration] - Find more info here: https://learn.microsoft.com/graph/api/intune-deviceconfig-androidworkprofilecustomconfiguration-get?view=graph-rest-1.0 + Find more info here: https://learn.microsoft.com/graph/api/intune-deviceconfig-iosdevicefeaturesconfiguration-get?view=graph-rest-1.0 """ request_info = self.to_get_request_information( request_configuration @@ -116,7 +116,7 @@ async def patch(self,body: DeviceConfiguration, request_configuration: Optional[ def to_delete_request_information(self,request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> RequestInformation: """ - Deletes a iosDeviceFeaturesConfiguration. + Deletes a macOSDeviceFeaturesConfiguration. param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: RequestInformation """ @@ -127,7 +127,7 @@ def to_delete_request_information(self,request_configuration: Optional[RequestCo def to_get_request_information(self,request_configuration: Optional[RequestConfiguration[DeviceConfigurationItemRequestBuilderGetQueryParameters]] = None) -> RequestInformation: """ - Read properties and relationships of the androidWorkProfileCustomConfiguration object. + Read properties and relationships of the iosDeviceFeaturesConfiguration object. param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: RequestInformation """ @@ -234,7 +234,7 @@ class DeviceConfigurationItemRequestBuilderDeleteRequestConfiguration(RequestCon @dataclass class DeviceConfigurationItemRequestBuilderGetQueryParameters(): """ - Read properties and relationships of the androidWorkProfileCustomConfiguration object. + Read properties and relationships of the iosDeviceFeaturesConfiguration object. """ def get_query_parameter(self,original_name: str) -> str: """ diff --git a/msgraph/generated/device_management/device_enrollment_configurations/device_enrollment_configurations_request_builder.py b/msgraph/generated/device_management/device_enrollment_configurations/device_enrollment_configurations_request_builder.py index 73001d0fcde..002ebc1ed05 100644 --- a/msgraph/generated/device_management/device_enrollment_configurations/device_enrollment_configurations_request_builder.py +++ b/msgraph/generated/device_management/device_enrollment_configurations/device_enrollment_configurations_request_builder.py @@ -70,11 +70,11 @@ async def get(self,request_configuration: Optional[RequestConfiguration[DeviceEn async def post(self,body: DeviceEnrollmentConfiguration, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> Optional[DeviceEnrollmentConfiguration]: """ - Create a new deviceEnrollmentPlatformRestrictionsConfiguration object. + Create a new deviceEnrollmentWindowsHelloForBusinessConfiguration object. param body: The request body param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: Optional[DeviceEnrollmentConfiguration] - Find more info here: https://learn.microsoft.com/graph/api/intune-onboarding-deviceenrollmentplatformrestrictionsconfiguration-create?view=graph-rest-1.0 + Find more info here: https://learn.microsoft.com/graph/api/intune-onboarding-deviceenrollmentwindowshelloforbusinessconfiguration-create?view=graph-rest-1.0 """ if body is None: raise TypeError("body cannot be null.") @@ -105,7 +105,7 @@ def to_get_request_information(self,request_configuration: Optional[RequestConfi def to_post_request_information(self,body: DeviceEnrollmentConfiguration, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> RequestInformation: """ - Create a new deviceEnrollmentPlatformRestrictionsConfiguration object. + Create a new deviceEnrollmentWindowsHelloForBusinessConfiguration 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/generated/device_management/device_enrollment_configurations/item/device_enrollment_configuration_item_request_builder.py b/msgraph/generated/device_management/device_enrollment_configurations/item/device_enrollment_configuration_item_request_builder.py index adf220227ef..6b9a807e15c 100644 --- a/msgraph/generated/device_management/device_enrollment_configurations/item/device_enrollment_configuration_item_request_builder.py +++ b/msgraph/generated/device_management/device_enrollment_configurations/item/device_enrollment_configuration_item_request_builder.py @@ -35,10 +35,10 @@ def __init__(self,request_adapter: RequestAdapter, path_parameters: Union[str, d async def delete(self,request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> None: """ - Deletes a deviceEnrollmentWindowsHelloForBusinessConfiguration. + Deletes a deviceEnrollmentPlatformRestrictionsConfiguration. 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/intune-onboarding-deviceenrollmentwindowshelloforbusinessconfiguration-delete?view=graph-rest-1.0 + Find more info here: https://learn.microsoft.com/graph/api/intune-onboarding-deviceenrollmentplatformrestrictionsconfiguration-delete?view=graph-rest-1.0 """ request_info = self.to_delete_request_information( request_configuration @@ -99,7 +99,7 @@ async def patch(self,body: DeviceEnrollmentConfiguration, request_configuration: def to_delete_request_information(self,request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> RequestInformation: """ - Deletes a deviceEnrollmentWindowsHelloForBusinessConfiguration. + Deletes a deviceEnrollmentPlatformRestrictionsConfiguration. param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: RequestInformation """ diff --git a/msgraph/generated/device_management/device_management_request_builder.py b/msgraph/generated/device_management/device_management_request_builder.py index 14ef23300d5..29a77cf05ed 100644 --- a/msgraph/generated/device_management/device_management_request_builder.py +++ b/msgraph/generated/device_management/device_management_request_builder.py @@ -96,7 +96,7 @@ async def get(self,request_configuration: Optional[RequestConfiguration[DeviceMa Read properties and relationships of the deviceManagement object. param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: Optional[DeviceManagement] - Find more info here: https://learn.microsoft.com/graph/api/intune-deviceconfig-devicemanagement-get?view=graph-rest-1.0 + Find more info here: https://learn.microsoft.com/graph/api/intune-enrollment-devicemanagement-get?view=graph-rest-1.0 """ request_info = self.to_get_request_information( request_configuration diff --git a/msgraph/generated/device_management/role_definitions/item/role_definition_item_request_builder.py b/msgraph/generated/device_management/role_definitions/item/role_definition_item_request_builder.py index 367c6d10a92..a502793aff7 100644 --- a/msgraph/generated/device_management/role_definitions/item/role_definition_item_request_builder.py +++ b/msgraph/generated/device_management/role_definitions/item/role_definition_item_request_builder.py @@ -52,10 +52,10 @@ async def delete(self,request_configuration: Optional[RequestConfiguration[Query async def get(self,request_configuration: Optional[RequestConfiguration[RoleDefinitionItemRequestBuilderGetQueryParameters]] = None) -> Optional[RoleDefinition]: """ - Read properties and relationships of the roleDefinition object. + Read properties and relationships of the deviceAndAppManagementRoleDefinition object. param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: Optional[RoleDefinition] - Find more info here: https://learn.microsoft.com/graph/api/intune-rbac-roledefinition-get?view=graph-rest-1.0 + Find more info here: https://learn.microsoft.com/graph/api/intune-rbac-deviceandappmanagementroledefinition-get?view=graph-rest-1.0 """ request_info = self.to_get_request_information( request_configuration @@ -73,11 +73,11 @@ async def get(self,request_configuration: Optional[RequestConfiguration[RoleDefi async def patch(self,body: RoleDefinition, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> Optional[RoleDefinition]: """ - Update the properties of a roleDefinition object. + Update the properties of a deviceAndAppManagementRoleDefinition object. param body: The request body param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: Optional[RoleDefinition] - Find more info here: https://learn.microsoft.com/graph/api/intune-rbac-roledefinition-update?view=graph-rest-1.0 + Find more info here: https://learn.microsoft.com/graph/api/intune-rbac-deviceandappmanagementroledefinition-update?view=graph-rest-1.0 """ if body is None: raise TypeError("body cannot be null.") @@ -108,7 +108,7 @@ def to_delete_request_information(self,request_configuration: Optional[RequestCo def to_get_request_information(self,request_configuration: Optional[RequestConfiguration[RoleDefinitionItemRequestBuilderGetQueryParameters]] = None) -> RequestInformation: """ - Read properties and relationships of the roleDefinition object. + Read properties and relationships of the deviceAndAppManagementRoleDefinition object. param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: RequestInformation """ @@ -119,7 +119,7 @@ def to_get_request_information(self,request_configuration: Optional[RequestConfi def to_patch_request_information(self,body: RoleDefinition, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> RequestInformation: """ - Update the properties of a roleDefinition object. + Update the properties of a deviceAndAppManagementRoleDefinition object. param body: The request body param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: RequestInformation @@ -161,7 +161,7 @@ class RoleDefinitionItemRequestBuilderDeleteRequestConfiguration(RequestConfigur @dataclass class RoleDefinitionItemRequestBuilderGetQueryParameters(): """ - Read properties and relationships of the roleDefinition object. + Read properties and relationships of the deviceAndAppManagementRoleDefinition object. """ def get_query_parameter(self,original_name: str) -> str: """ diff --git a/msgraph/generated/device_management/role_definitions/role_definitions_request_builder.py b/msgraph/generated/device_management/role_definitions/role_definitions_request_builder.py index e6c26c2d35c..89515b7d492 100644 --- a/msgraph/generated/device_management/role_definitions/role_definitions_request_builder.py +++ b/msgraph/generated/device_management/role_definitions/role_definitions_request_builder.py @@ -70,11 +70,11 @@ async def get(self,request_configuration: Optional[RequestConfiguration[RoleDefi async def post(self,body: RoleDefinition, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> Optional[RoleDefinition]: """ - Create a new roleDefinition object. + Create a new deviceAndAppManagementRoleDefinition object. param body: The request body param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: Optional[RoleDefinition] - Find more info here: https://learn.microsoft.com/graph/api/intune-rbac-roledefinition-create?view=graph-rest-1.0 + Find more info here: https://learn.microsoft.com/graph/api/intune-rbac-deviceandappmanagementroledefinition-create?view=graph-rest-1.0 """ if body is None: raise TypeError("body cannot be null.") @@ -105,7 +105,7 @@ def to_get_request_information(self,request_configuration: Optional[RequestConfi def to_post_request_information(self,body: RoleDefinition, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> RequestInformation: """ - Create a new roleDefinition object. + Create a new deviceAndAppManagementRoleDefinition 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/generated/devices/item/check_member_groups/check_member_groups_request_builder.py b/msgraph/generated/devices/item/check_member_groups/check_member_groups_request_builder.py index ee8c50387b3..9ffb4828659 100644 --- a/msgraph/generated/devices/item/check_member_groups/check_member_groups_request_builder.py +++ b/msgraph/generated/devices/item/check_member_groups/check_member_groups_request_builder.py @@ -33,7 +33,7 @@ def __init__(self,request_adapter: RequestAdapter, path_parameters: Union[str, d async def post(self,body: CheckMemberGroupsPostRequestBody, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> Optional[CheckMemberGroupsPostResponse]: """ - Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Microsoft Entra ID. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. + Check for membership in a specified list of group IDs, and return from that list the IDs of groups where a specified object is a member. The specified object can be of one of the following types:- user- group- service principal- organizational contact- device- directory object This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Microsoft Entra ID. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. param body: The request body param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: Optional[CheckMemberGroupsPostResponse] @@ -57,7 +57,7 @@ async def post(self,body: CheckMemberGroupsPostRequestBody, request_configuratio def to_post_request_information(self,body: CheckMemberGroupsPostRequestBody, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> RequestInformation: """ - Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Microsoft Entra ID. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. + Check for membership in a specified list of group IDs, and return from that list the IDs of groups where a specified object is a member. The specified object can be of one of the following types:- user- group- service principal- organizational contact- device- directory object This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Microsoft Entra ID. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. 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/generated/devices/item/get_member_objects/get_member_objects_request_builder.py b/msgraph/generated/devices/item/get_member_objects/get_member_objects_request_builder.py index d5c1b57f54b..3e7b733ab55 100644 --- a/msgraph/generated/devices/item/get_member_objects/get_member_objects_request_builder.py +++ b/msgraph/generated/devices/item/get_member_objects/get_member_objects_request_builder.py @@ -33,7 +33,7 @@ def __init__(self,request_adapter: RequestAdapter, path_parameters: Union[str, d async def post(self,body: GetMemberObjectsPostRequestBody, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> Optional[GetMemberObjectsPostResponse]: """ - Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. + Return all IDs for the groups, administrative units, and directory roles that an object of one of the following types is a member of:- user- group- service principal- organizational contact- device- directory object This function is transitive. Only users and role-enabled groups can be members of directory roles. param body: The request body param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: Optional[GetMemberObjectsPostResponse] @@ -57,7 +57,7 @@ async def post(self,body: GetMemberObjectsPostRequestBody, request_configuration def to_post_request_information(self,body: GetMemberObjectsPostRequestBody, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> RequestInformation: """ - Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. + Return all IDs for the groups, administrative units, and directory roles that an object of one of the following types is a member of:- user- group- service principal- organizational contact- device- directory object This function is transitive. Only users and role-enabled groups can be members of directory roles. 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/generated/directory/deleted_items/item/check_member_groups/check_member_groups_request_builder.py b/msgraph/generated/directory/deleted_items/item/check_member_groups/check_member_groups_request_builder.py index 8add7af7eb7..ee2c5fe7f2e 100644 --- a/msgraph/generated/directory/deleted_items/item/check_member_groups/check_member_groups_request_builder.py +++ b/msgraph/generated/directory/deleted_items/item/check_member_groups/check_member_groups_request_builder.py @@ -33,7 +33,7 @@ def __init__(self,request_adapter: RequestAdapter, path_parameters: Union[str, d async def post(self,body: CheckMemberGroupsPostRequestBody, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> Optional[CheckMemberGroupsPostResponse]: """ - Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Microsoft Entra ID. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. + Check for membership in a specified list of group IDs, and return from that list the IDs of groups where a specified object is a member. The specified object can be of one of the following types:- user- group- service principal- organizational contact- device- directory object This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Microsoft Entra ID. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. param body: The request body param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: Optional[CheckMemberGroupsPostResponse] @@ -57,7 +57,7 @@ async def post(self,body: CheckMemberGroupsPostRequestBody, request_configuratio def to_post_request_information(self,body: CheckMemberGroupsPostRequestBody, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> RequestInformation: """ - Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Microsoft Entra ID. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. + Check for membership in a specified list of group IDs, and return from that list the IDs of groups where a specified object is a member. The specified object can be of one of the following types:- user- group- service principal- organizational contact- device- directory object This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Microsoft Entra ID. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. 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/generated/directory/deleted_items/item/get_member_objects/get_member_objects_request_builder.py b/msgraph/generated/directory/deleted_items/item/get_member_objects/get_member_objects_request_builder.py index a4a6a25ba13..584cbf15e90 100644 --- a/msgraph/generated/directory/deleted_items/item/get_member_objects/get_member_objects_request_builder.py +++ b/msgraph/generated/directory/deleted_items/item/get_member_objects/get_member_objects_request_builder.py @@ -33,7 +33,7 @@ def __init__(self,request_adapter: RequestAdapter, path_parameters: Union[str, d async def post(self,body: GetMemberObjectsPostRequestBody, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> Optional[GetMemberObjectsPostResponse]: """ - Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. + Return all IDs for the groups, administrative units, and directory roles that an object of one of the following types is a member of:- user- group- service principal- organizational contact- device- directory object This function is transitive. Only users and role-enabled groups can be members of directory roles. param body: The request body param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: Optional[GetMemberObjectsPostResponse] @@ -57,7 +57,7 @@ async def post(self,body: GetMemberObjectsPostRequestBody, request_configuration def to_post_request_information(self,body: GetMemberObjectsPostRequestBody, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> RequestInformation: """ - Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. + Return all IDs for the groups, administrative units, and directory roles that an object of one of the following types is a member of:- user- group- service principal- organizational contact- device- directory object This function is transitive. Only users and role-enabled groups can be members of directory roles. 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/generated/directory_objects/item/check_member_groups/check_member_groups_request_builder.py b/msgraph/generated/directory_objects/item/check_member_groups/check_member_groups_request_builder.py index 27fa7f6cc59..fc84cd8ae56 100644 --- a/msgraph/generated/directory_objects/item/check_member_groups/check_member_groups_request_builder.py +++ b/msgraph/generated/directory_objects/item/check_member_groups/check_member_groups_request_builder.py @@ -33,7 +33,7 @@ def __init__(self,request_adapter: RequestAdapter, path_parameters: Union[str, d async def post(self,body: CheckMemberGroupsPostRequestBody, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> Optional[CheckMemberGroupsPostResponse]: """ - Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Microsoft Entra ID. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. + Check for membership in a specified list of group IDs, and return from that list the IDs of groups where a specified object is a member. The specified object can be of one of the following types:- user- group- service principal- organizational contact- device- directory object This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Microsoft Entra ID. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. param body: The request body param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: Optional[CheckMemberGroupsPostResponse] @@ -57,7 +57,7 @@ async def post(self,body: CheckMemberGroupsPostRequestBody, request_configuratio def to_post_request_information(self,body: CheckMemberGroupsPostRequestBody, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> RequestInformation: """ - Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Microsoft Entra ID. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. + Check for membership in a specified list of group IDs, and return from that list the IDs of groups where a specified object is a member. The specified object can be of one of the following types:- user- group- service principal- organizational contact- device- directory object This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Microsoft Entra ID. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. 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/generated/directory_objects/item/get_member_objects/get_member_objects_request_builder.py b/msgraph/generated/directory_objects/item/get_member_objects/get_member_objects_request_builder.py index 8592d640dd2..c7ae42c1bb6 100644 --- a/msgraph/generated/directory_objects/item/get_member_objects/get_member_objects_request_builder.py +++ b/msgraph/generated/directory_objects/item/get_member_objects/get_member_objects_request_builder.py @@ -33,7 +33,7 @@ def __init__(self,request_adapter: RequestAdapter, path_parameters: Union[str, d async def post(self,body: GetMemberObjectsPostRequestBody, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> Optional[GetMemberObjectsPostResponse]: """ - Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. + Return all IDs for the groups, administrative units, and directory roles that an object of one of the following types is a member of:- user- group- service principal- organizational contact- device- directory object This function is transitive. Only users and role-enabled groups can be members of directory roles. param body: The request body param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: Optional[GetMemberObjectsPostResponse] @@ -57,7 +57,7 @@ async def post(self,body: GetMemberObjectsPostRequestBody, request_configuration def to_post_request_information(self,body: GetMemberObjectsPostRequestBody, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> RequestInformation: """ - Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. + Return all IDs for the groups, administrative units, and directory roles that an object of one of the following types is a member of:- user- group- service principal- organizational contact- device- directory object This function is transitive. Only users and role-enabled groups can be members of directory roles. 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/generated/directory_role_templates/item/check_member_groups/check_member_groups_request_builder.py b/msgraph/generated/directory_role_templates/item/check_member_groups/check_member_groups_request_builder.py index ecfdfa35ac0..d631465f5f3 100644 --- a/msgraph/generated/directory_role_templates/item/check_member_groups/check_member_groups_request_builder.py +++ b/msgraph/generated/directory_role_templates/item/check_member_groups/check_member_groups_request_builder.py @@ -33,7 +33,7 @@ def __init__(self,request_adapter: RequestAdapter, path_parameters: Union[str, d async def post(self,body: CheckMemberGroupsPostRequestBody, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> Optional[CheckMemberGroupsPostResponse]: """ - Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Microsoft Entra ID. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. + Check for membership in a specified list of group IDs, and return from that list the IDs of groups where a specified object is a member. The specified object can be of one of the following types:- user- group- service principal- organizational contact- device- directory object This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Microsoft Entra ID. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. param body: The request body param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: Optional[CheckMemberGroupsPostResponse] @@ -57,7 +57,7 @@ async def post(self,body: CheckMemberGroupsPostRequestBody, request_configuratio def to_post_request_information(self,body: CheckMemberGroupsPostRequestBody, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> RequestInformation: """ - Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Microsoft Entra ID. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. + Check for membership in a specified list of group IDs, and return from that list the IDs of groups where a specified object is a member. The specified object can be of one of the following types:- user- group- service principal- organizational contact- device- directory object This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Microsoft Entra ID. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. 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/generated/directory_role_templates/item/get_member_objects/get_member_objects_request_builder.py b/msgraph/generated/directory_role_templates/item/get_member_objects/get_member_objects_request_builder.py index eb9be1ec3a8..275b6b15140 100644 --- a/msgraph/generated/directory_role_templates/item/get_member_objects/get_member_objects_request_builder.py +++ b/msgraph/generated/directory_role_templates/item/get_member_objects/get_member_objects_request_builder.py @@ -33,7 +33,7 @@ def __init__(self,request_adapter: RequestAdapter, path_parameters: Union[str, d async def post(self,body: GetMemberObjectsPostRequestBody, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> Optional[GetMemberObjectsPostResponse]: """ - Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. + Return all IDs for the groups, administrative units, and directory roles that an object of one of the following types is a member of:- user- group- service principal- organizational contact- device- directory object This function is transitive. Only users and role-enabled groups can be members of directory roles. param body: The request body param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: Optional[GetMemberObjectsPostResponse] @@ -57,7 +57,7 @@ async def post(self,body: GetMemberObjectsPostRequestBody, request_configuration def to_post_request_information(self,body: GetMemberObjectsPostRequestBody, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> RequestInformation: """ - Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. + Return all IDs for the groups, administrative units, and directory roles that an object of one of the following types is a member of:- user- group- service principal- organizational contact- device- directory object This function is transitive. Only users and role-enabled groups can be members of directory roles. 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/generated/directory_roles/item/check_member_groups/check_member_groups_request_builder.py b/msgraph/generated/directory_roles/item/check_member_groups/check_member_groups_request_builder.py index 07ccd4e4e2a..a1872c8d196 100644 --- a/msgraph/generated/directory_roles/item/check_member_groups/check_member_groups_request_builder.py +++ b/msgraph/generated/directory_roles/item/check_member_groups/check_member_groups_request_builder.py @@ -33,7 +33,7 @@ def __init__(self,request_adapter: RequestAdapter, path_parameters: Union[str, d async def post(self,body: CheckMemberGroupsPostRequestBody, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> Optional[CheckMemberGroupsPostResponse]: """ - Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Microsoft Entra ID. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. + Check for membership in a specified list of group IDs, and return from that list the IDs of groups where a specified object is a member. The specified object can be of one of the following types:- user- group- service principal- organizational contact- device- directory object This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Microsoft Entra ID. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. param body: The request body param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: Optional[CheckMemberGroupsPostResponse] @@ -57,7 +57,7 @@ async def post(self,body: CheckMemberGroupsPostRequestBody, request_configuratio def to_post_request_information(self,body: CheckMemberGroupsPostRequestBody, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> RequestInformation: """ - Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Microsoft Entra ID. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. + Check for membership in a specified list of group IDs, and return from that list the IDs of groups where a specified object is a member. The specified object can be of one of the following types:- user- group- service principal- organizational contact- device- directory object This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Microsoft Entra ID. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. 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/generated/directory_roles/item/get_member_objects/get_member_objects_request_builder.py b/msgraph/generated/directory_roles/item/get_member_objects/get_member_objects_request_builder.py index d84eb1bd46f..161585290bd 100644 --- a/msgraph/generated/directory_roles/item/get_member_objects/get_member_objects_request_builder.py +++ b/msgraph/generated/directory_roles/item/get_member_objects/get_member_objects_request_builder.py @@ -33,7 +33,7 @@ def __init__(self,request_adapter: RequestAdapter, path_parameters: Union[str, d async def post(self,body: GetMemberObjectsPostRequestBody, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> Optional[GetMemberObjectsPostResponse]: """ - Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. + Return all IDs for the groups, administrative units, and directory roles that an object of one of the following types is a member of:- user- group- service principal- organizational contact- device- directory object This function is transitive. Only users and role-enabled groups can be members of directory roles. param body: The request body param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: Optional[GetMemberObjectsPostResponse] @@ -57,7 +57,7 @@ async def post(self,body: GetMemberObjectsPostRequestBody, request_configuration def to_post_request_information(self,body: GetMemberObjectsPostRequestBody, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> RequestInformation: """ - Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. + Return all IDs for the groups, administrative units, and directory roles that an object of one of the following types is a member of:- user- group- service principal- organizational contact- device- directory object This function is transitive. Only users and role-enabled groups can be members of directory roles. 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/generated/drives/item/items/item/retention_label/retention_label_request_builder.py b/msgraph/generated/drives/item/items/item/retention_label/retention_label_request_builder.py index bcd7c063109..0a12979814a 100644 --- a/msgraph/generated/drives/item/items/item/retention_label/retention_label_request_builder.py +++ b/msgraph/generated/drives/item/items/item/retention_label/retention_label_request_builder.py @@ -71,11 +71,11 @@ async def get(self,request_configuration: Optional[RequestConfiguration[Retentio async def patch(self,body: ItemRetentionLabel, request_configuration: Optional[RequestConfiguration[QueryParameters]] = 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 body is None: raise TypeError("body cannot be null.") @@ -117,7 +117,7 @@ def to_get_request_information(self,request_configuration: Optional[RequestConfi def to_patch_request_information(self,body: ItemRetentionLabel, request_configuration: Optional[RequestConfiguration[QueryParameters]] = 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/generated/drives/item/items/item/workbook/tables/add/add_request_builder.py b/msgraph/generated/drives/item/items/item/workbook/tables/add/add_request_builder.py index 42d91256220..5ecb31973c8 100644 --- a/msgraph/generated/drives/item/items/item/workbook/tables/add/add_request_builder.py +++ b/msgraph/generated/drives/item/items/item/workbook/tables/add/add_request_builder.py @@ -33,11 +33,11 @@ def __init__(self,request_adapter: RequestAdapter, path_parameters: Union[str, d async def post(self,body: AddPostRequestBody, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> Optional[WorkbookTable]: """ - Create a new table. The range source address determines the worksheet under which the table will be added. If the table can't be added (for example, because the address is invalid, or the table would overlap with another table), an error is generated. + Use this API to create a new Table. param body: The request body param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: Optional[WorkbookTable] - Find more info here: https://learn.microsoft.com/graph/api/tablecollection-add?view=graph-rest-1.0 + Find more info here: https://learn.microsoft.com/graph/api/workbook-post-tables?view=graph-rest-1.0 """ if body is None: raise TypeError("body cannot be null.") @@ -57,7 +57,7 @@ async def post(self,body: AddPostRequestBody, request_configuration: Optional[Re def to_post_request_information(self,body: AddPostRequestBody, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> RequestInformation: """ - Create a new table. The range source address determines the worksheet under which the table will be added. If the table can't be added (for example, because the address is invalid, or the table would overlap with another table), an error is generated. + Use this API to create a new Table. 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/generated/drives/item/items/item/workbook/worksheets/item/tables/add/add_request_builder.py b/msgraph/generated/drives/item/items/item/workbook/worksheets/item/tables/add/add_request_builder.py index 693d34dca1f..88b3efd1b51 100644 --- a/msgraph/generated/drives/item/items/item/workbook/worksheets/item/tables/add/add_request_builder.py +++ b/msgraph/generated/drives/item/items/item/workbook/worksheets/item/tables/add/add_request_builder.py @@ -33,11 +33,11 @@ def __init__(self,request_adapter: RequestAdapter, path_parameters: Union[str, d async def post(self,body: AddPostRequestBody, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> Optional[WorkbookTable]: """ - Create a new table. The range source address determines the worksheet under which the table will be added. If the table can't be added (for example, because the address is invalid, or the table would overlap with another table), an error is generated. + Use this API to create a new Table. param body: The request body param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: Optional[WorkbookTable] - Find more info here: https://learn.microsoft.com/graph/api/tablecollection-add?view=graph-rest-1.0 + Find more info here: https://learn.microsoft.com/graph/api/workbook-post-tables?view=graph-rest-1.0 """ if body is None: raise TypeError("body cannot be null.") @@ -57,7 +57,7 @@ async def post(self,body: AddPostRequestBody, request_configuration: Optional[Re def to_post_request_information(self,body: AddPostRequestBody, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> RequestInformation: """ - Create a new table. The range source address determines the worksheet under which the table will be added. If the table can't be added (for example, because the address is invalid, or the table would overlap with another table), an error is generated. + Use this API to create a new Table. 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/generated/group_setting_templates/item/check_member_groups/check_member_groups_request_builder.py b/msgraph/generated/group_setting_templates/item/check_member_groups/check_member_groups_request_builder.py index e26283ef285..60ad9ac8da6 100644 --- a/msgraph/generated/group_setting_templates/item/check_member_groups/check_member_groups_request_builder.py +++ b/msgraph/generated/group_setting_templates/item/check_member_groups/check_member_groups_request_builder.py @@ -33,7 +33,7 @@ def __init__(self,request_adapter: RequestAdapter, path_parameters: Union[str, d async def post(self,body: CheckMemberGroupsPostRequestBody, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> Optional[CheckMemberGroupsPostResponse]: """ - Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Microsoft Entra ID. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. + Check for membership in a specified list of group IDs, and return from that list the IDs of groups where a specified object is a member. The specified object can be of one of the following types:- user- group- service principal- organizational contact- device- directory object This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Microsoft Entra ID. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. param body: The request body param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: Optional[CheckMemberGroupsPostResponse] @@ -57,7 +57,7 @@ async def post(self,body: CheckMemberGroupsPostRequestBody, request_configuratio def to_post_request_information(self,body: CheckMemberGroupsPostRequestBody, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> RequestInformation: """ - Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Microsoft Entra ID. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. + Check for membership in a specified list of group IDs, and return from that list the IDs of groups where a specified object is a member. The specified object can be of one of the following types:- user- group- service principal- organizational contact- device- directory object This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Microsoft Entra ID. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. 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/generated/group_setting_templates/item/get_member_objects/get_member_objects_request_builder.py b/msgraph/generated/group_setting_templates/item/get_member_objects/get_member_objects_request_builder.py index 748156b2736..4cd1026a80d 100644 --- a/msgraph/generated/group_setting_templates/item/get_member_objects/get_member_objects_request_builder.py +++ b/msgraph/generated/group_setting_templates/item/get_member_objects/get_member_objects_request_builder.py @@ -33,7 +33,7 @@ def __init__(self,request_adapter: RequestAdapter, path_parameters: Union[str, d async def post(self,body: GetMemberObjectsPostRequestBody, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> Optional[GetMemberObjectsPostResponse]: """ - Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. + Return all IDs for the groups, administrative units, and directory roles that an object of one of the following types is a member of:- user- group- service principal- organizational contact- device- directory object This function is transitive. Only users and role-enabled groups can be members of directory roles. param body: The request body param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: Optional[GetMemberObjectsPostResponse] @@ -57,7 +57,7 @@ async def post(self,body: GetMemberObjectsPostRequestBody, request_configuration def to_post_request_information(self,body: GetMemberObjectsPostRequestBody, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> RequestInformation: """ - Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. + Return all IDs for the groups, administrative units, and directory roles that an object of one of the following types is a member of:- user- group- service principal- organizational contact- device- directory object This function is transitive. Only users and role-enabled groups can be members of directory roles. 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/generated/groups/item/check_member_groups/check_member_groups_request_builder.py b/msgraph/generated/groups/item/check_member_groups/check_member_groups_request_builder.py index 0cfa663e875..b887e5d8d5f 100644 --- a/msgraph/generated/groups/item/check_member_groups/check_member_groups_request_builder.py +++ b/msgraph/generated/groups/item/check_member_groups/check_member_groups_request_builder.py @@ -33,7 +33,7 @@ def __init__(self,request_adapter: RequestAdapter, path_parameters: Union[str, d async def post(self,body: CheckMemberGroupsPostRequestBody, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> Optional[CheckMemberGroupsPostResponse]: """ - Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Microsoft Entra ID. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. + Check for membership in a specified list of group IDs, and return from that list the IDs of groups where a specified object is a member. The specified object can be of one of the following types:- user- group- service principal- organizational contact- device- directory object This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Microsoft Entra ID. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. param body: The request body param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: Optional[CheckMemberGroupsPostResponse] @@ -57,7 +57,7 @@ async def post(self,body: CheckMemberGroupsPostRequestBody, request_configuratio def to_post_request_information(self,body: CheckMemberGroupsPostRequestBody, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> RequestInformation: """ - Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Microsoft Entra ID. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. + Check for membership in a specified list of group IDs, and return from that list the IDs of groups where a specified object is a member. The specified object can be of one of the following types:- user- group- service principal- organizational contact- device- directory object This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Microsoft Entra ID. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. 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/generated/groups/item/conversations/item/conversation_item_request_builder.py b/msgraph/generated/groups/item/conversations/item/conversation_item_request_builder.py index 1a9dc0b9816..a64aba6f531 100644 --- a/msgraph/generated/groups/item/conversations/item/conversation_item_request_builder.py +++ b/msgraph/generated/groups/item/conversations/item/conversation_item_request_builder.py @@ -52,10 +52,10 @@ async def delete(self,request_configuration: Optional[RequestConfiguration[Query async def get(self,request_configuration: Optional[RequestConfiguration[ConversationItemRequestBuilderGetQueryParameters]] = None) -> Optional[Conversation]: """ - The group's conversations. + 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 @@ -84,7 +84,7 @@ def to_delete_request_information(self,request_configuration: Optional[RequestCo def to_get_request_information(self,request_configuration: Optional[RequestConfiguration[ConversationItemRequestBuilderGetQueryParameters]] = None) -> RequestInformation: """ - The group's conversations. + 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 """ @@ -122,7 +122,7 @@ class ConversationItemRequestBuilderDeleteRequestConfiguration(RequestConfigurat @dataclass class ConversationItemRequestBuilderGetQueryParameters(): """ - The group's conversations. + Retrieve the properties and relationships of conversation object. """ def get_query_parameter(self,original_name: str) -> str: """ diff --git a/msgraph/generated/groups/item/get_member_objects/get_member_objects_request_builder.py b/msgraph/generated/groups/item/get_member_objects/get_member_objects_request_builder.py index b1a3f892bf6..26483962e71 100644 --- a/msgraph/generated/groups/item/get_member_objects/get_member_objects_request_builder.py +++ b/msgraph/generated/groups/item/get_member_objects/get_member_objects_request_builder.py @@ -33,7 +33,7 @@ def __init__(self,request_adapter: RequestAdapter, path_parameters: Union[str, d async def post(self,body: GetMemberObjectsPostRequestBody, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> Optional[GetMemberObjectsPostResponse]: """ - Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. + Return all IDs for the groups, administrative units, and directory roles that an object of one of the following types is a member of:- user- group- service principal- organizational contact- device- directory object This function is transitive. Only users and role-enabled groups can be members of directory roles. param body: The request body param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: Optional[GetMemberObjectsPostResponse] @@ -57,7 +57,7 @@ async def post(self,body: GetMemberObjectsPostRequestBody, request_configuration def to_post_request_information(self,body: GetMemberObjectsPostRequestBody, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> RequestInformation: """ - Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. + Return all IDs for the groups, administrative units, and directory roles that an object of one of the following types is a member of:- user- group- service principal- organizational contact- device- directory object This function is transitive. Only users and role-enabled groups can be members of directory roles. 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/generated/groups/item/threads/item/posts/posts_request_builder.py b/msgraph/generated/groups/item/threads/item/posts/posts_request_builder.py index 132fb64d858..3350700aed4 100644 --- a/msgraph/generated/groups/item/threads/item/posts/posts_request_builder.py +++ b/msgraph/generated/groups/item/threads/item/posts/posts_request_builder.py @@ -48,10 +48,10 @@ def by_post_id(self,post_id: str) -> PostItemRequestBuilder: async def get(self,request_configuration: Optional[RequestConfiguration[PostsRequestBuilderGetQueryParameters]] = None) -> Optional[PostCollectionResponse]: """ - Get the properties and relationships of a post in a specified thread. You can specify both the parent conversation and the thread, or, you can specify the thread without referencing the parent conversation. Since the post resource supports extensions, you can also use the GET operation to get custom properties and extension data in a post instance. + Get the posts of the specified thread. 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[PostCollectionResponse] - Find more info here: https://learn.microsoft.com/graph/api/post-get?view=graph-rest-1.0 + Find more info here: https://learn.microsoft.com/graph/api/conversationthread-list-posts?view=graph-rest-1.0 """ request_info = self.to_get_request_information( request_configuration @@ -69,7 +69,7 @@ async def get(self,request_configuration: Optional[RequestConfiguration[PostsReq def to_get_request_information(self,request_configuration: Optional[RequestConfiguration[PostsRequestBuilderGetQueryParameters]] = None) -> RequestInformation: """ - Get the properties and relationships of a post in a specified thread. You can specify both the parent conversation and the thread, or, you can specify the thread without referencing the parent conversation. Since the post resource supports extensions, you can also use the GET operation to get custom properties and extension data in a post instance. + Get the posts of the specified thread. 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 """ @@ -100,7 +100,7 @@ def count(self) -> CountRequestBuilder: @dataclass class PostsRequestBuilderGetQueryParameters(): """ - Get the properties and relationships of a post in a specified thread. You can specify both the parent conversation and the thread, or, you can specify the thread without referencing the parent conversation. Since the post resource supports extensions, you can also use the GET operation to get custom properties and extension data in a post instance. + Get the posts of the specified thread. 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: str) -> str: """ diff --git a/msgraph/generated/identity/conditional_access/named_locations/item/named_location_item_request_builder.py b/msgraph/generated/identity/conditional_access/named_locations/item/named_location_item_request_builder.py index 59183b3c763..cb024f7cb29 100644 --- a/msgraph/generated/identity/conditional_access/named_locations/item/named_location_item_request_builder.py +++ b/msgraph/generated/identity/conditional_access/named_locations/item/named_location_item_request_builder.py @@ -51,10 +51,10 @@ async def delete(self,request_configuration: Optional[RequestConfiguration[Query async def get(self,request_configuration: Optional[RequestConfiguration[NamedLocationItemRequestBuilderGetQueryParameters]] = None) -> Optional[NamedLocation]: """ - Retrieve the properties and relationships of an ipNamedLocation object. + Retrieve the properties and relationships of a namedLocation object. param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: Optional[NamedLocation] - Find more info here: https://learn.microsoft.com/graph/api/ipnamedlocation-get?view=graph-rest-1.0 + Find more info here: https://learn.microsoft.com/graph/api/namedlocation-get?view=graph-rest-1.0 """ request_info = self.to_get_request_information( request_configuration @@ -72,11 +72,11 @@ async def get(self,request_configuration: Optional[RequestConfiguration[NamedLoc async def patch(self,body: NamedLocation, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> Optional[NamedLocation]: """ - Update the properties of an ipNamedLocation object. + Update the properties of a countryNamedLocation object. param body: The request body param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: Optional[NamedLocation] - Find more info here: https://learn.microsoft.com/graph/api/ipnamedlocation-update?view=graph-rest-1.0 + Find more info here: https://learn.microsoft.com/graph/api/countrynamedlocation-update?view=graph-rest-1.0 """ if body is None: raise TypeError("body cannot be null.") @@ -107,7 +107,7 @@ def to_delete_request_information(self,request_configuration: Optional[RequestCo def to_get_request_information(self,request_configuration: Optional[RequestConfiguration[NamedLocationItemRequestBuilderGetQueryParameters]] = None) -> RequestInformation: """ - Retrieve the properties and relationships of an ipNamedLocation object. + Retrieve the properties and relationships of a namedLocation object. param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: RequestInformation """ @@ -118,7 +118,7 @@ def to_get_request_information(self,request_configuration: Optional[RequestConfi def to_patch_request_information(self,body: NamedLocation, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> RequestInformation: """ - Update the properties of an ipNamedLocation object. + Update the properties of a countryNamedLocation object. param body: The request body param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: RequestInformation @@ -151,7 +151,7 @@ class NamedLocationItemRequestBuilderDeleteRequestConfiguration(RequestConfigura @dataclass class NamedLocationItemRequestBuilderGetQueryParameters(): """ - Retrieve the properties and relationships of an ipNamedLocation object. + Retrieve the properties and relationships of a namedLocation object. """ def get_query_parameter(self,original_name: str) -> str: """ diff --git a/msgraph/generated/identity_governance/entitlement_management/catalogs/item/custom_workflow_extensions/item/custom_callout_extension_item_request_builder.py b/msgraph/generated/identity_governance/entitlement_management/catalogs/item/custom_workflow_extensions/item/custom_callout_extension_item_request_builder.py index c7f8627e738..79b7a7eeb30 100644 --- a/msgraph/generated/identity_governance/entitlement_management/catalogs/item/custom_workflow_extensions/item/custom_callout_extension_item_request_builder.py +++ b/msgraph/generated/identity_governance/entitlement_management/catalogs/item/custom_workflow_extensions/item/custom_callout_extension_item_request_builder.py @@ -32,10 +32,10 @@ def __init__(self,request_adapter: RequestAdapter, path_parameters: Union[str, d async def delete(self,request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> None: """ - Delete an accessPackageAssignmentRequestWorkflowExtension object. The custom workflow extension must first be removed from any associated policies before it can be deleted. Follow these steps to remove the custom workflow extension from any associated policies: + Delete an accessPackageAssignmentWorkflowExtension object. The custom workflow extension must first be removed from any associated policies before it can be deleted. Follow these steps to remove the custom workflow extension from any associated policies: 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/accesspackageassignmentrequestworkflowextension-delete?view=graph-rest-1.0 + Find more info here: https://learn.microsoft.com/graph/api/accesspackageassignmentworkflowextension-delete?view=graph-rest-1.0 """ request_info = self.to_delete_request_information( request_configuration @@ -51,10 +51,10 @@ async def delete(self,request_configuration: Optional[RequestConfiguration[Query async def get(self,request_configuration: Optional[RequestConfiguration[CustomCalloutExtensionItemRequestBuilderGetQueryParameters]] = None) -> Optional[CustomCalloutExtension]: """ - Read the properties and relationships of an accessPackageAssignmentRequestWorkflowExtension object. + Read the properties and relationships of an accessPackageAssignmentWorkflowExtension 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/accesspackageassignmentrequestworkflowextension-get?view=graph-rest-1.0 + Find more info here: https://learn.microsoft.com/graph/api/accesspackageassignmentworkflowextension-get?view=graph-rest-1.0 """ request_info = self.to_get_request_information( request_configuration @@ -72,11 +72,11 @@ async def get(self,request_configuration: Optional[RequestConfiguration[CustomCa async def patch(self,body: CustomCalloutExtension, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> Optional[CustomCalloutExtension]: """ - Update the properties of an accessPackageAssignmentWorkflowExtension object. + Update the properties of an accessPackageAssignmentRequestWorkflowExtension object. param body: The request body 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-update?view=graph-rest-1.0 + Find more info here: https://learn.microsoft.com/graph/api/accesspackageassignmentrequestworkflowextension-update?view=graph-rest-1.0 """ if body is None: raise TypeError("body cannot be null.") @@ -96,7 +96,7 @@ async def patch(self,body: CustomCalloutExtension, request_configuration: Option def to_delete_request_information(self,request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> RequestInformation: """ - Delete an accessPackageAssignmentRequestWorkflowExtension object. The custom workflow extension must first be removed from any associated policies before it can be deleted. Follow these steps to remove the custom workflow extension from any associated policies: + Delete an accessPackageAssignmentWorkflowExtension object. The custom workflow extension must first be removed from any associated policies before it can be deleted. Follow these steps to remove the custom workflow extension from any associated policies: param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: RequestInformation """ @@ -107,7 +107,7 @@ def to_delete_request_information(self,request_configuration: Optional[RequestCo def to_get_request_information(self,request_configuration: Optional[RequestConfiguration[CustomCalloutExtensionItemRequestBuilderGetQueryParameters]] = None) -> RequestInformation: """ - Read the properties and relationships of an accessPackageAssignmentRequestWorkflowExtension object. + Read the properties and relationships of an accessPackageAssignmentWorkflowExtension object. param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: RequestInformation """ @@ -118,7 +118,7 @@ def to_get_request_information(self,request_configuration: Optional[RequestConfi def to_patch_request_information(self,body: CustomCalloutExtension, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> RequestInformation: """ - Update the properties of an accessPackageAssignmentWorkflowExtension object. + Update the properties of an accessPackageAssignmentRequestWorkflowExtension object. param body: The request body param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: RequestInformation @@ -151,7 +151,7 @@ class CustomCalloutExtensionItemRequestBuilderDeleteRequestConfiguration(Request @dataclass class CustomCalloutExtensionItemRequestBuilderGetQueryParameters(): """ - Read the properties and relationships of an accessPackageAssignmentRequestWorkflowExtension object. + Read the properties and relationships of an accessPackageAssignmentWorkflowExtension object. """ def get_query_parameter(self,original_name: str) -> str: """ diff --git a/msgraph/generated/identity_governance/terms_of_use/agreements/item/agreement_item_request_builder.py b/msgraph/generated/identity_governance/terms_of_use/agreements/item/agreement_item_request_builder.py index 4808377e432..ca37652e538 100644 --- a/msgraph/generated/identity_governance/terms_of_use/agreements/item/agreement_item_request_builder.py +++ b/msgraph/generated/identity_governance/terms_of_use/agreements/item/agreement_item_request_builder.py @@ -54,10 +54,10 @@ async def delete(self,request_configuration: Optional[RequestConfiguration[Query async def get(self,request_configuration: Optional[RequestConfiguration[AgreementItemRequestBuilderGetQueryParameters]] = None) -> Optional[Agreement]: """ - Retrieve all files related to an agreement. This includes the default file and all localized files. + Retrieve the properties and relationships of an agreement object. param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: Optional[Agreement] - Find more info here: https://learn.microsoft.com/graph/api/agreement-list-files?view=graph-rest-1.0 + Find more info here: https://learn.microsoft.com/graph/api/agreement-get?view=graph-rest-1.0 """ request_info = self.to_get_request_information( request_configuration @@ -110,7 +110,7 @@ def to_delete_request_information(self,request_configuration: Optional[RequestCo def to_get_request_information(self,request_configuration: Optional[RequestConfiguration[AgreementItemRequestBuilderGetQueryParameters]] = None) -> RequestInformation: """ - Retrieve all files related to an agreement. This includes the default file and all localized files. + Retrieve the properties and relationships of an agreement object. param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: RequestInformation """ @@ -181,7 +181,7 @@ class AgreementItemRequestBuilderDeleteRequestConfiguration(RequestConfiguration @dataclass class AgreementItemRequestBuilderGetQueryParameters(): """ - Retrieve all files related to an agreement. This includes the default file and all localized files. + Retrieve the properties and relationships of an agreement object. """ def get_query_parameter(self,original_name: str) -> str: """ diff --git a/msgraph/generated/kiota-dom-export.txt b/msgraph/generated/kiota-dom-export.txt index f8237199de6..8c911466648 100644 --- a/msgraph/generated/kiota-dom-export.txt +++ b/msgraph/generated/kiota-dom-export.txt @@ -3289,6 +3289,285 @@ msgraph.generated.applicationTemplates.item.instantiate.InstantiateRequestBuilde msgraph.generated.applicationTemplates.item.instantiate.InstantiateRequestBuilder::|public|to_post_request_information(body:InstantiatePostRequestBody; request_configuration?:RequestConfiguration[QueryParameters]):RequestInformation msgraph.generated.applicationTemplates.item.instantiate.InstantiateRequestBuilder::|public|url_template:str msgraph.generated.applicationTemplates.item.instantiate.InstantiateRequestBuilder::|public|with_url(raw_url:str):InstantiateRequestBuilder +msgraph.generated.appRoleAssignments.AppRoleAssignmentsRequestBuilder-->BaseRequestBuilder +msgraph.generated.appRoleAssignments.AppRoleAssignmentsRequestBuilder.AppRoleAssignmentsRequestBuilderGetQueryParameters::|public|count:bool +msgraph.generated.appRoleAssignments.AppRoleAssignmentsRequestBuilder.AppRoleAssignmentsRequestBuilderGetQueryParameters::|public|expand:list[str] +msgraph.generated.appRoleAssignments.AppRoleAssignmentsRequestBuilder.AppRoleAssignmentsRequestBuilderGetQueryParameters::|public|filter:str +msgraph.generated.appRoleAssignments.AppRoleAssignmentsRequestBuilder.AppRoleAssignmentsRequestBuilderGetQueryParameters::|public|get_query_parameter(original_name:str):str +msgraph.generated.appRoleAssignments.AppRoleAssignmentsRequestBuilder.AppRoleAssignmentsRequestBuilderGetQueryParameters::|public|orderby:list[str] +msgraph.generated.appRoleAssignments.AppRoleAssignmentsRequestBuilder.AppRoleAssignmentsRequestBuilderGetQueryParameters::|public|search:str +msgraph.generated.appRoleAssignments.AppRoleAssignmentsRequestBuilder.AppRoleAssignmentsRequestBuilderGetQueryParameters::|public|select:list[str] +msgraph.generated.appRoleAssignments.AppRoleAssignmentsRequestBuilder.AppRoleAssignmentsRequestBuilderGetQueryParameters::|public|skip:int +msgraph.generated.appRoleAssignments.AppRoleAssignmentsRequestBuilder.AppRoleAssignmentsRequestBuilderGetQueryParameters::|public|top:int +msgraph.generated.appRoleAssignments.AppRoleAssignmentsRequestBuilder.AppRoleAssignmentsRequestBuilderGetRequestConfiguration-->RequestConfiguration[AppRoleAssignmentsRequestBuilderGetQueryParameters] +msgraph.generated.appRoleAssignments.AppRoleAssignmentsRequestBuilder.AppRoleAssignmentsRequestBuilderPostRequestConfiguration-->RequestConfiguration[QueryParameters] +msgraph.generated.appRoleAssignments.AppRoleAssignmentsRequestBuilder::|public|by_app_role_assignment_id(app_role_assignment_id:str):AppRoleAssignmentItemRequestBuilder +msgraph.generated.appRoleAssignments.AppRoleAssignmentsRequestBuilder::|public|constructor(path_parameters:Union[str, dict[str, Any]]; request_adapter:RequestAdapter):None +msgraph.generated.appRoleAssignments.AppRoleAssignmentsRequestBuilder::|public|count:CountRequestBuilder +msgraph.generated.appRoleAssignments.AppRoleAssignmentsRequestBuilder::|public|delta:DeltaRequestBuilder +msgraph.generated.appRoleAssignments.AppRoleAssignmentsRequestBuilder::|public|get(request_configuration?:RequestConfiguration[AppRoleAssignmentsRequestBuilderGetQueryParameters]):AppRoleAssignmentCollectionResponse +msgraph.generated.appRoleAssignments.AppRoleAssignmentsRequestBuilder::|public|get_available_extension_properties:GetAvailableExtensionPropertiesRequestBuilder +msgraph.generated.appRoleAssignments.AppRoleAssignmentsRequestBuilder::|public|get_by_ids:GetByIdsRequestBuilder +msgraph.generated.appRoleAssignments.AppRoleAssignmentsRequestBuilder::|public|path_parameters:Union[str, dict[str, Any]] +msgraph.generated.appRoleAssignments.AppRoleAssignmentsRequestBuilder::|public|post(body:AppRoleAssignment; request_configuration?:RequestConfiguration[QueryParameters]):AppRoleAssignment +msgraph.generated.appRoleAssignments.AppRoleAssignmentsRequestBuilder::|public|request_adapter:RequestAdapter +msgraph.generated.appRoleAssignments.AppRoleAssignmentsRequestBuilder::|public|to_get_request_information(request_configuration?:RequestConfiguration[AppRoleAssignmentsRequestBuilderGetQueryParameters]):RequestInformation +msgraph.generated.appRoleAssignments.AppRoleAssignmentsRequestBuilder::|public|to_post_request_information(body:AppRoleAssignment; request_configuration?:RequestConfiguration[QueryParameters]):RequestInformation +msgraph.generated.appRoleAssignments.AppRoleAssignmentsRequestBuilder::|public|url_template:str +msgraph.generated.appRoleAssignments.AppRoleAssignmentsRequestBuilder::|public|validate_properties:ValidatePropertiesRequestBuilder +msgraph.generated.appRoleAssignments.AppRoleAssignmentsRequestBuilder::|public|with_url(raw_url:str):AppRoleAssignmentsRequestBuilder +msgraph.generated.appRoleAssignments.count.CountRequestBuilder-->BaseRequestBuilder +msgraph.generated.appRoleAssignments.count.CountRequestBuilder.CountRequestBuilderGetQueryParameters::|public|filter:str +msgraph.generated.appRoleAssignments.count.CountRequestBuilder.CountRequestBuilderGetQueryParameters::|public|get_query_parameter(original_name:str):str +msgraph.generated.appRoleAssignments.count.CountRequestBuilder.CountRequestBuilderGetQueryParameters::|public|search:str +msgraph.generated.appRoleAssignments.count.CountRequestBuilder.CountRequestBuilderGetRequestConfiguration-->RequestConfiguration[CountRequestBuilderGetQueryParameters] +msgraph.generated.appRoleAssignments.count.CountRequestBuilder::|public|constructor(path_parameters:Union[str, dict[str, Any]]; request_adapter:RequestAdapter):None +msgraph.generated.appRoleAssignments.count.CountRequestBuilder::|public|get(request_configuration?:RequestConfiguration[CountRequestBuilderGetQueryParameters]):int +msgraph.generated.appRoleAssignments.count.CountRequestBuilder::|public|path_parameters:Union[str, dict[str, Any]] +msgraph.generated.appRoleAssignments.count.CountRequestBuilder::|public|request_adapter:RequestAdapter +msgraph.generated.appRoleAssignments.count.CountRequestBuilder::|public|to_get_request_information(request_configuration?:RequestConfiguration[CountRequestBuilderGetQueryParameters]):RequestInformation +msgraph.generated.appRoleAssignments.count.CountRequestBuilder::|public|url_template:str +msgraph.generated.appRoleAssignments.count.CountRequestBuilder::|public|with_url(raw_url:str):CountRequestBuilder +msgraph.generated.appRoleAssignments.delta.DeltaGetResponse-->BaseDeltaFunctionResponse +msgraph.generated.appRoleAssignments.delta.DeltaGetResponse::|public|constructor():None +msgraph.generated.appRoleAssignments.delta.DeltaGetResponse::|public|get_field_deserializers():dict[str, Callable[[ParseNode], None]] +msgraph.generated.appRoleAssignments.delta.DeltaGetResponse::|public|serialize(writer:SerializationWriter):None +msgraph.generated.appRoleAssignments.delta.DeltaGetResponse::|public|value():list[DirectoryObject] +msgraph.generated.appRoleAssignments.delta.DeltaGetResponse::|public|value(value:list[DirectoryObject]):None +msgraph.generated.appRoleAssignments.delta.DeltaGetResponse::|static|public|create_from_discriminator_value(parse_node:ParseNode):DeltaGetResponse +msgraph.generated.appRoleAssignments.delta.DeltaRequestBuilder-->BaseRequestBuilder +msgraph.generated.appRoleAssignments.delta.DeltaRequestBuilder.DeltaRequestBuilderGetQueryParameters::|public|count:bool +msgraph.generated.appRoleAssignments.delta.DeltaRequestBuilder.DeltaRequestBuilderGetQueryParameters::|public|expand:list[str] +msgraph.generated.appRoleAssignments.delta.DeltaRequestBuilder.DeltaRequestBuilderGetQueryParameters::|public|filter:str +msgraph.generated.appRoleAssignments.delta.DeltaRequestBuilder.DeltaRequestBuilderGetQueryParameters::|public|get_query_parameter(original_name:str):str +msgraph.generated.appRoleAssignments.delta.DeltaRequestBuilder.DeltaRequestBuilderGetQueryParameters::|public|orderby:list[str] +msgraph.generated.appRoleAssignments.delta.DeltaRequestBuilder.DeltaRequestBuilderGetQueryParameters::|public|search:str +msgraph.generated.appRoleAssignments.delta.DeltaRequestBuilder.DeltaRequestBuilderGetQueryParameters::|public|select:list[str] +msgraph.generated.appRoleAssignments.delta.DeltaRequestBuilder.DeltaRequestBuilderGetQueryParameters::|public|skip:int +msgraph.generated.appRoleAssignments.delta.DeltaRequestBuilder.DeltaRequestBuilderGetQueryParameters::|public|top:int +msgraph.generated.appRoleAssignments.delta.DeltaRequestBuilder.DeltaRequestBuilderGetRequestConfiguration-->RequestConfiguration[DeltaRequestBuilderGetQueryParameters] +msgraph.generated.appRoleAssignments.delta.DeltaRequestBuilder::|public|constructor(path_parameters:Union[str, dict[str, Any]]; request_adapter:RequestAdapter):None +msgraph.generated.appRoleAssignments.delta.DeltaRequestBuilder::|public|get(request_configuration?:RequestConfiguration[DeltaRequestBuilderGetQueryParameters]):DeltaGetResponse +msgraph.generated.appRoleAssignments.delta.DeltaRequestBuilder::|public|path_parameters:Union[str, dict[str, Any]] +msgraph.generated.appRoleAssignments.delta.DeltaRequestBuilder::|public|request_adapter:RequestAdapter +msgraph.generated.appRoleAssignments.delta.DeltaRequestBuilder::|public|to_get_request_information(request_configuration?:RequestConfiguration[DeltaRequestBuilderGetQueryParameters]):RequestInformation +msgraph.generated.appRoleAssignments.delta.DeltaRequestBuilder::|public|url_template:str +msgraph.generated.appRoleAssignments.delta.DeltaRequestBuilder::|public|with_url(raw_url:str):DeltaRequestBuilder +msgraph.generated.appRoleAssignments.getAvailableExtensionProperties.GetAvailableExtensionPropertiesPostRequestBody::|public|additional_data():dict[str, Any] +msgraph.generated.appRoleAssignments.getAvailableExtensionProperties.GetAvailableExtensionPropertiesPostRequestBody::|public|additional_data(value:dict[str, Any]):None +msgraph.generated.appRoleAssignments.getAvailableExtensionProperties.GetAvailableExtensionPropertiesPostRequestBody::|public|backing_store:BackingStore +msgraph.generated.appRoleAssignments.getAvailableExtensionProperties.GetAvailableExtensionPropertiesPostRequestBody::|public|constructor():None +msgraph.generated.appRoleAssignments.getAvailableExtensionProperties.GetAvailableExtensionPropertiesPostRequestBody::|public|get_field_deserializers():dict[str, Callable[[ParseNode], None]] +msgraph.generated.appRoleAssignments.getAvailableExtensionProperties.GetAvailableExtensionPropertiesPostRequestBody::|public|is_synced_from_on_premises():bool +msgraph.generated.appRoleAssignments.getAvailableExtensionProperties.GetAvailableExtensionPropertiesPostRequestBody::|public|is_synced_from_on_premises(value:bool):None +msgraph.generated.appRoleAssignments.getAvailableExtensionProperties.GetAvailableExtensionPropertiesPostRequestBody::|public|serialize(writer:SerializationWriter):None +msgraph.generated.appRoleAssignments.getAvailableExtensionProperties.GetAvailableExtensionPropertiesPostRequestBody::|static|public|create_from_discriminator_value(parse_node:ParseNode):GetAvailableExtensionPropertiesPostRequestBody +msgraph.generated.appRoleAssignments.getAvailableExtensionProperties.GetAvailableExtensionPropertiesPostRequestBody~~>AdditionalDataHolder; BackedModel; Parsable +msgraph.generated.appRoleAssignments.getAvailableExtensionProperties.GetAvailableExtensionPropertiesPostResponse-->BaseCollectionPaginationCountResponse +msgraph.generated.appRoleAssignments.getAvailableExtensionProperties.GetAvailableExtensionPropertiesPostResponse::|public|constructor():None +msgraph.generated.appRoleAssignments.getAvailableExtensionProperties.GetAvailableExtensionPropertiesPostResponse::|public|get_field_deserializers():dict[str, Callable[[ParseNode], None]] +msgraph.generated.appRoleAssignments.getAvailableExtensionProperties.GetAvailableExtensionPropertiesPostResponse::|public|serialize(writer:SerializationWriter):None +msgraph.generated.appRoleAssignments.getAvailableExtensionProperties.GetAvailableExtensionPropertiesPostResponse::|public|value():list[ExtensionProperty] +msgraph.generated.appRoleAssignments.getAvailableExtensionProperties.GetAvailableExtensionPropertiesPostResponse::|public|value(value:list[ExtensionProperty]):None +msgraph.generated.appRoleAssignments.getAvailableExtensionProperties.GetAvailableExtensionPropertiesPostResponse::|static|public|create_from_discriminator_value(parse_node:ParseNode):GetAvailableExtensionPropertiesPostResponse +msgraph.generated.appRoleAssignments.getAvailableExtensionProperties.GetAvailableExtensionPropertiesRequestBuilder-->BaseRequestBuilder +msgraph.generated.appRoleAssignments.getAvailableExtensionProperties.GetAvailableExtensionPropertiesRequestBuilder.GetAvailableExtensionPropertiesRequestBuilderPostRequestConfiguration-->RequestConfiguration[QueryParameters] +msgraph.generated.appRoleAssignments.getAvailableExtensionProperties.GetAvailableExtensionPropertiesRequestBuilder::|public|constructor(path_parameters:Union[str, dict[str, Any]]; request_adapter:RequestAdapter):None +msgraph.generated.appRoleAssignments.getAvailableExtensionProperties.GetAvailableExtensionPropertiesRequestBuilder::|public|path_parameters:Union[str, dict[str, Any]] +msgraph.generated.appRoleAssignments.getAvailableExtensionProperties.GetAvailableExtensionPropertiesRequestBuilder::|public|post(body:GetAvailableExtensionPropertiesPostRequestBody; request_configuration?:RequestConfiguration[QueryParameters]):GetAvailableExtensionPropertiesPostResponse +msgraph.generated.appRoleAssignments.getAvailableExtensionProperties.GetAvailableExtensionPropertiesRequestBuilder::|public|request_adapter:RequestAdapter +msgraph.generated.appRoleAssignments.getAvailableExtensionProperties.GetAvailableExtensionPropertiesRequestBuilder::|public|to_post_request_information(body:GetAvailableExtensionPropertiesPostRequestBody; request_configuration?:RequestConfiguration[QueryParameters]):RequestInformation +msgraph.generated.appRoleAssignments.getAvailableExtensionProperties.GetAvailableExtensionPropertiesRequestBuilder::|public|url_template:str +msgraph.generated.appRoleAssignments.getAvailableExtensionProperties.GetAvailableExtensionPropertiesRequestBuilder::|public|with_url(raw_url:str):GetAvailableExtensionPropertiesRequestBuilder +msgraph.generated.appRoleAssignments.getByIds.GetByIdsPostRequestBody::|public|additional_data():dict[str, Any] +msgraph.generated.appRoleAssignments.getByIds.GetByIdsPostRequestBody::|public|additional_data(value:dict[str, Any]):None +msgraph.generated.appRoleAssignments.getByIds.GetByIdsPostRequestBody::|public|backing_store:BackingStore +msgraph.generated.appRoleAssignments.getByIds.GetByIdsPostRequestBody::|public|constructor():None +msgraph.generated.appRoleAssignments.getByIds.GetByIdsPostRequestBody::|public|get_field_deserializers():dict[str, Callable[[ParseNode], None]] +msgraph.generated.appRoleAssignments.getByIds.GetByIdsPostRequestBody::|public|ids():list[str] +msgraph.generated.appRoleAssignments.getByIds.GetByIdsPostRequestBody::|public|ids(value:list[str]):None +msgraph.generated.appRoleAssignments.getByIds.GetByIdsPostRequestBody::|public|serialize(writer:SerializationWriter):None +msgraph.generated.appRoleAssignments.getByIds.GetByIdsPostRequestBody::|public|types():list[str] +msgraph.generated.appRoleAssignments.getByIds.GetByIdsPostRequestBody::|public|types(value:list[str]):None +msgraph.generated.appRoleAssignments.getByIds.GetByIdsPostRequestBody::|static|public|create_from_discriminator_value(parse_node:ParseNode):GetByIdsPostRequestBody +msgraph.generated.appRoleAssignments.getByIds.GetByIdsPostRequestBody~~>AdditionalDataHolder; BackedModel; Parsable +msgraph.generated.appRoleAssignments.getByIds.GetByIdsPostResponse-->BaseCollectionPaginationCountResponse +msgraph.generated.appRoleAssignments.getByIds.GetByIdsPostResponse::|public|constructor():None +msgraph.generated.appRoleAssignments.getByIds.GetByIdsPostResponse::|public|get_field_deserializers():dict[str, Callable[[ParseNode], None]] +msgraph.generated.appRoleAssignments.getByIds.GetByIdsPostResponse::|public|serialize(writer:SerializationWriter):None +msgraph.generated.appRoleAssignments.getByIds.GetByIdsPostResponse::|public|value():list[DirectoryObject] +msgraph.generated.appRoleAssignments.getByIds.GetByIdsPostResponse::|public|value(value:list[DirectoryObject]):None +msgraph.generated.appRoleAssignments.getByIds.GetByIdsPostResponse::|static|public|create_from_discriminator_value(parse_node:ParseNode):GetByIdsPostResponse +msgraph.generated.appRoleAssignments.getByIds.GetByIdsRequestBuilder-->BaseRequestBuilder +msgraph.generated.appRoleAssignments.getByIds.GetByIdsRequestBuilder.GetByIdsRequestBuilderPostRequestConfiguration-->RequestConfiguration[QueryParameters] +msgraph.generated.appRoleAssignments.getByIds.GetByIdsRequestBuilder::|public|constructor(path_parameters:Union[str, dict[str, Any]]; request_adapter:RequestAdapter):None +msgraph.generated.appRoleAssignments.getByIds.GetByIdsRequestBuilder::|public|path_parameters:Union[str, dict[str, Any]] +msgraph.generated.appRoleAssignments.getByIds.GetByIdsRequestBuilder::|public|post(body:GetByIdsPostRequestBody; request_configuration?:RequestConfiguration[QueryParameters]):GetByIdsPostResponse +msgraph.generated.appRoleAssignments.getByIds.GetByIdsRequestBuilder::|public|request_adapter:RequestAdapter +msgraph.generated.appRoleAssignments.getByIds.GetByIdsRequestBuilder::|public|to_post_request_information(body:GetByIdsPostRequestBody; request_configuration?:RequestConfiguration[QueryParameters]):RequestInformation +msgraph.generated.appRoleAssignments.getByIds.GetByIdsRequestBuilder::|public|url_template:str +msgraph.generated.appRoleAssignments.getByIds.GetByIdsRequestBuilder::|public|with_url(raw_url:str):GetByIdsRequestBuilder +msgraph.generated.appRoleAssignments.item.AppRoleAssignmentItemRequestBuilder-->BaseRequestBuilder +msgraph.generated.appRoleAssignments.item.AppRoleAssignmentItemRequestBuilder.AppRoleAssignmentItemRequestBuilderDeleteRequestConfiguration-->RequestConfiguration[QueryParameters] +msgraph.generated.appRoleAssignments.item.AppRoleAssignmentItemRequestBuilder.AppRoleAssignmentItemRequestBuilderGetQueryParameters::|public|expand:list[str] +msgraph.generated.appRoleAssignments.item.AppRoleAssignmentItemRequestBuilder.AppRoleAssignmentItemRequestBuilderGetQueryParameters::|public|get_query_parameter(original_name:str):str +msgraph.generated.appRoleAssignments.item.AppRoleAssignmentItemRequestBuilder.AppRoleAssignmentItemRequestBuilderGetQueryParameters::|public|select:list[str] +msgraph.generated.appRoleAssignments.item.AppRoleAssignmentItemRequestBuilder.AppRoleAssignmentItemRequestBuilderGetRequestConfiguration-->RequestConfiguration[AppRoleAssignmentItemRequestBuilderGetQueryParameters] +msgraph.generated.appRoleAssignments.item.AppRoleAssignmentItemRequestBuilder.AppRoleAssignmentItemRequestBuilderPatchRequestConfiguration-->RequestConfiguration[QueryParameters] +msgraph.generated.appRoleAssignments.item.AppRoleAssignmentItemRequestBuilder::|public|check_member_groups:CheckMemberGroupsRequestBuilder +msgraph.generated.appRoleAssignments.item.AppRoleAssignmentItemRequestBuilder::|public|check_member_objects:CheckMemberObjectsRequestBuilder +msgraph.generated.appRoleAssignments.item.AppRoleAssignmentItemRequestBuilder::|public|constructor(path_parameters:Union[str, dict[str, Any]]; request_adapter:RequestAdapter):None +msgraph.generated.appRoleAssignments.item.AppRoleAssignmentItemRequestBuilder::|public|delete(request_configuration?:RequestConfiguration[QueryParameters]):None +msgraph.generated.appRoleAssignments.item.AppRoleAssignmentItemRequestBuilder::|public|get(request_configuration?:RequestConfiguration[AppRoleAssignmentItemRequestBuilderGetQueryParameters]):AppRoleAssignment +msgraph.generated.appRoleAssignments.item.AppRoleAssignmentItemRequestBuilder::|public|get_member_groups:GetMemberGroupsRequestBuilder +msgraph.generated.appRoleAssignments.item.AppRoleAssignmentItemRequestBuilder::|public|get_member_objects:GetMemberObjectsRequestBuilder +msgraph.generated.appRoleAssignments.item.AppRoleAssignmentItemRequestBuilder::|public|patch(body:AppRoleAssignment; request_configuration?:RequestConfiguration[QueryParameters]):AppRoleAssignment +msgraph.generated.appRoleAssignments.item.AppRoleAssignmentItemRequestBuilder::|public|path_parameters:Union[str, dict[str, Any]] +msgraph.generated.appRoleAssignments.item.AppRoleAssignmentItemRequestBuilder::|public|request_adapter:RequestAdapter +msgraph.generated.appRoleAssignments.item.AppRoleAssignmentItemRequestBuilder::|public|restore:RestoreRequestBuilder +msgraph.generated.appRoleAssignments.item.AppRoleAssignmentItemRequestBuilder::|public|to_delete_request_information(request_configuration?:RequestConfiguration[QueryParameters]):RequestInformation +msgraph.generated.appRoleAssignments.item.AppRoleAssignmentItemRequestBuilder::|public|to_get_request_information(request_configuration?:RequestConfiguration[AppRoleAssignmentItemRequestBuilderGetQueryParameters]):RequestInformation +msgraph.generated.appRoleAssignments.item.AppRoleAssignmentItemRequestBuilder::|public|to_patch_request_information(body:AppRoleAssignment; request_configuration?:RequestConfiguration[QueryParameters]):RequestInformation +msgraph.generated.appRoleAssignments.item.AppRoleAssignmentItemRequestBuilder::|public|url_template:str +msgraph.generated.appRoleAssignments.item.AppRoleAssignmentItemRequestBuilder::|public|with_url(raw_url:str):AppRoleAssignmentItemRequestBuilder +msgraph.generated.appRoleAssignments.item.checkMemberGroups.CheckMemberGroupsPostRequestBody::|public|additional_data():dict[str, Any] +msgraph.generated.appRoleAssignments.item.checkMemberGroups.CheckMemberGroupsPostRequestBody::|public|additional_data(value:dict[str, Any]):None +msgraph.generated.appRoleAssignments.item.checkMemberGroups.CheckMemberGroupsPostRequestBody::|public|backing_store:BackingStore +msgraph.generated.appRoleAssignments.item.checkMemberGroups.CheckMemberGroupsPostRequestBody::|public|constructor():None +msgraph.generated.appRoleAssignments.item.checkMemberGroups.CheckMemberGroupsPostRequestBody::|public|get_field_deserializers():dict[str, Callable[[ParseNode], None]] +msgraph.generated.appRoleAssignments.item.checkMemberGroups.CheckMemberGroupsPostRequestBody::|public|group_ids():list[str] +msgraph.generated.appRoleAssignments.item.checkMemberGroups.CheckMemberGroupsPostRequestBody::|public|group_ids(value:list[str]):None +msgraph.generated.appRoleAssignments.item.checkMemberGroups.CheckMemberGroupsPostRequestBody::|public|serialize(writer:SerializationWriter):None +msgraph.generated.appRoleAssignments.item.checkMemberGroups.CheckMemberGroupsPostRequestBody::|static|public|create_from_discriminator_value(parse_node:ParseNode):CheckMemberGroupsPostRequestBody +msgraph.generated.appRoleAssignments.item.checkMemberGroups.CheckMemberGroupsPostRequestBody~~>AdditionalDataHolder; BackedModel; Parsable +msgraph.generated.appRoleAssignments.item.checkMemberGroups.CheckMemberGroupsPostResponse-->BaseCollectionPaginationCountResponse +msgraph.generated.appRoleAssignments.item.checkMemberGroups.CheckMemberGroupsPostResponse::|public|constructor():None +msgraph.generated.appRoleAssignments.item.checkMemberGroups.CheckMemberGroupsPostResponse::|public|get_field_deserializers():dict[str, Callable[[ParseNode], None]] +msgraph.generated.appRoleAssignments.item.checkMemberGroups.CheckMemberGroupsPostResponse::|public|serialize(writer:SerializationWriter):None +msgraph.generated.appRoleAssignments.item.checkMemberGroups.CheckMemberGroupsPostResponse::|public|value():list[str] +msgraph.generated.appRoleAssignments.item.checkMemberGroups.CheckMemberGroupsPostResponse::|public|value(value:list[str]):None +msgraph.generated.appRoleAssignments.item.checkMemberGroups.CheckMemberGroupsPostResponse::|static|public|create_from_discriminator_value(parse_node:ParseNode):CheckMemberGroupsPostResponse +msgraph.generated.appRoleAssignments.item.checkMemberGroups.CheckMemberGroupsRequestBuilder-->BaseRequestBuilder +msgraph.generated.appRoleAssignments.item.checkMemberGroups.CheckMemberGroupsRequestBuilder.CheckMemberGroupsRequestBuilderPostRequestConfiguration-->RequestConfiguration[QueryParameters] +msgraph.generated.appRoleAssignments.item.checkMemberGroups.CheckMemberGroupsRequestBuilder::|public|constructor(path_parameters:Union[str, dict[str, Any]]; request_adapter:RequestAdapter):None +msgraph.generated.appRoleAssignments.item.checkMemberGroups.CheckMemberGroupsRequestBuilder::|public|path_parameters:Union[str, dict[str, Any]] +msgraph.generated.appRoleAssignments.item.checkMemberGroups.CheckMemberGroupsRequestBuilder::|public|post(body:CheckMemberGroupsPostRequestBody; request_configuration?:RequestConfiguration[QueryParameters]):CheckMemberGroupsPostResponse +msgraph.generated.appRoleAssignments.item.checkMemberGroups.CheckMemberGroupsRequestBuilder::|public|request_adapter:RequestAdapter +msgraph.generated.appRoleAssignments.item.checkMemberGroups.CheckMemberGroupsRequestBuilder::|public|to_post_request_information(body:CheckMemberGroupsPostRequestBody; request_configuration?:RequestConfiguration[QueryParameters]):RequestInformation +msgraph.generated.appRoleAssignments.item.checkMemberGroups.CheckMemberGroupsRequestBuilder::|public|url_template:str +msgraph.generated.appRoleAssignments.item.checkMemberGroups.CheckMemberGroupsRequestBuilder::|public|with_url(raw_url:str):CheckMemberGroupsRequestBuilder +msgraph.generated.appRoleAssignments.item.checkMemberObjects.CheckMemberObjectsPostRequestBody::|public|additional_data():dict[str, Any] +msgraph.generated.appRoleAssignments.item.checkMemberObjects.CheckMemberObjectsPostRequestBody::|public|additional_data(value:dict[str, Any]):None +msgraph.generated.appRoleAssignments.item.checkMemberObjects.CheckMemberObjectsPostRequestBody::|public|backing_store:BackingStore +msgraph.generated.appRoleAssignments.item.checkMemberObjects.CheckMemberObjectsPostRequestBody::|public|constructor():None +msgraph.generated.appRoleAssignments.item.checkMemberObjects.CheckMemberObjectsPostRequestBody::|public|get_field_deserializers():dict[str, Callable[[ParseNode], None]] +msgraph.generated.appRoleAssignments.item.checkMemberObjects.CheckMemberObjectsPostRequestBody::|public|ids():list[str] +msgraph.generated.appRoleAssignments.item.checkMemberObjects.CheckMemberObjectsPostRequestBody::|public|ids(value:list[str]):None +msgraph.generated.appRoleAssignments.item.checkMemberObjects.CheckMemberObjectsPostRequestBody::|public|serialize(writer:SerializationWriter):None +msgraph.generated.appRoleAssignments.item.checkMemberObjects.CheckMemberObjectsPostRequestBody::|static|public|create_from_discriminator_value(parse_node:ParseNode):CheckMemberObjectsPostRequestBody +msgraph.generated.appRoleAssignments.item.checkMemberObjects.CheckMemberObjectsPostRequestBody~~>AdditionalDataHolder; BackedModel; Parsable +msgraph.generated.appRoleAssignments.item.checkMemberObjects.CheckMemberObjectsPostResponse-->BaseCollectionPaginationCountResponse +msgraph.generated.appRoleAssignments.item.checkMemberObjects.CheckMemberObjectsPostResponse::|public|constructor():None +msgraph.generated.appRoleAssignments.item.checkMemberObjects.CheckMemberObjectsPostResponse::|public|get_field_deserializers():dict[str, Callable[[ParseNode], None]] +msgraph.generated.appRoleAssignments.item.checkMemberObjects.CheckMemberObjectsPostResponse::|public|serialize(writer:SerializationWriter):None +msgraph.generated.appRoleAssignments.item.checkMemberObjects.CheckMemberObjectsPostResponse::|public|value():list[str] +msgraph.generated.appRoleAssignments.item.checkMemberObjects.CheckMemberObjectsPostResponse::|public|value(value:list[str]):None +msgraph.generated.appRoleAssignments.item.checkMemberObjects.CheckMemberObjectsPostResponse::|static|public|create_from_discriminator_value(parse_node:ParseNode):CheckMemberObjectsPostResponse +msgraph.generated.appRoleAssignments.item.checkMemberObjects.CheckMemberObjectsRequestBuilder-->BaseRequestBuilder +msgraph.generated.appRoleAssignments.item.checkMemberObjects.CheckMemberObjectsRequestBuilder.CheckMemberObjectsRequestBuilderPostRequestConfiguration-->RequestConfiguration[QueryParameters] +msgraph.generated.appRoleAssignments.item.checkMemberObjects.CheckMemberObjectsRequestBuilder::|public|constructor(path_parameters:Union[str, dict[str, Any]]; request_adapter:RequestAdapter):None +msgraph.generated.appRoleAssignments.item.checkMemberObjects.CheckMemberObjectsRequestBuilder::|public|path_parameters:Union[str, dict[str, Any]] +msgraph.generated.appRoleAssignments.item.checkMemberObjects.CheckMemberObjectsRequestBuilder::|public|post(body:CheckMemberObjectsPostRequestBody; request_configuration?:RequestConfiguration[QueryParameters]):CheckMemberObjectsPostResponse +msgraph.generated.appRoleAssignments.item.checkMemberObjects.CheckMemberObjectsRequestBuilder::|public|request_adapter:RequestAdapter +msgraph.generated.appRoleAssignments.item.checkMemberObjects.CheckMemberObjectsRequestBuilder::|public|to_post_request_information(body:CheckMemberObjectsPostRequestBody; request_configuration?:RequestConfiguration[QueryParameters]):RequestInformation +msgraph.generated.appRoleAssignments.item.checkMemberObjects.CheckMemberObjectsRequestBuilder::|public|url_template:str +msgraph.generated.appRoleAssignments.item.checkMemberObjects.CheckMemberObjectsRequestBuilder::|public|with_url(raw_url:str):CheckMemberObjectsRequestBuilder +msgraph.generated.appRoleAssignments.item.getMemberGroups.GetMemberGroupsPostRequestBody::|public|additional_data():dict[str, Any] +msgraph.generated.appRoleAssignments.item.getMemberGroups.GetMemberGroupsPostRequestBody::|public|additional_data(value:dict[str, Any]):None +msgraph.generated.appRoleAssignments.item.getMemberGroups.GetMemberGroupsPostRequestBody::|public|backing_store:BackingStore +msgraph.generated.appRoleAssignments.item.getMemberGroups.GetMemberGroupsPostRequestBody::|public|constructor():None +msgraph.generated.appRoleAssignments.item.getMemberGroups.GetMemberGroupsPostRequestBody::|public|get_field_deserializers():dict[str, Callable[[ParseNode], None]] +msgraph.generated.appRoleAssignments.item.getMemberGroups.GetMemberGroupsPostRequestBody::|public|security_enabled_only():bool +msgraph.generated.appRoleAssignments.item.getMemberGroups.GetMemberGroupsPostRequestBody::|public|security_enabled_only(value:bool):None +msgraph.generated.appRoleAssignments.item.getMemberGroups.GetMemberGroupsPostRequestBody::|public|serialize(writer:SerializationWriter):None +msgraph.generated.appRoleAssignments.item.getMemberGroups.GetMemberGroupsPostRequestBody::|static|public|create_from_discriminator_value(parse_node:ParseNode):GetMemberGroupsPostRequestBody +msgraph.generated.appRoleAssignments.item.getMemberGroups.GetMemberGroupsPostRequestBody~~>AdditionalDataHolder; BackedModel; Parsable +msgraph.generated.appRoleAssignments.item.getMemberGroups.GetMemberGroupsPostResponse-->BaseCollectionPaginationCountResponse +msgraph.generated.appRoleAssignments.item.getMemberGroups.GetMemberGroupsPostResponse::|public|constructor():None +msgraph.generated.appRoleAssignments.item.getMemberGroups.GetMemberGroupsPostResponse::|public|get_field_deserializers():dict[str, Callable[[ParseNode], None]] +msgraph.generated.appRoleAssignments.item.getMemberGroups.GetMemberGroupsPostResponse::|public|serialize(writer:SerializationWriter):None +msgraph.generated.appRoleAssignments.item.getMemberGroups.GetMemberGroupsPostResponse::|public|value():list[str] +msgraph.generated.appRoleAssignments.item.getMemberGroups.GetMemberGroupsPostResponse::|public|value(value:list[str]):None +msgraph.generated.appRoleAssignments.item.getMemberGroups.GetMemberGroupsPostResponse::|static|public|create_from_discriminator_value(parse_node:ParseNode):GetMemberGroupsPostResponse +msgraph.generated.appRoleAssignments.item.getMemberGroups.GetMemberGroupsRequestBuilder-->BaseRequestBuilder +msgraph.generated.appRoleAssignments.item.getMemberGroups.GetMemberGroupsRequestBuilder.GetMemberGroupsRequestBuilderPostRequestConfiguration-->RequestConfiguration[QueryParameters] +msgraph.generated.appRoleAssignments.item.getMemberGroups.GetMemberGroupsRequestBuilder::|public|constructor(path_parameters:Union[str, dict[str, Any]]; request_adapter:RequestAdapter):None +msgraph.generated.appRoleAssignments.item.getMemberGroups.GetMemberGroupsRequestBuilder::|public|path_parameters:Union[str, dict[str, Any]] +msgraph.generated.appRoleAssignments.item.getMemberGroups.GetMemberGroupsRequestBuilder::|public|post(body:GetMemberGroupsPostRequestBody; request_configuration?:RequestConfiguration[QueryParameters]):GetMemberGroupsPostResponse +msgraph.generated.appRoleAssignments.item.getMemberGroups.GetMemberGroupsRequestBuilder::|public|request_adapter:RequestAdapter +msgraph.generated.appRoleAssignments.item.getMemberGroups.GetMemberGroupsRequestBuilder::|public|to_post_request_information(body:GetMemberGroupsPostRequestBody; request_configuration?:RequestConfiguration[QueryParameters]):RequestInformation +msgraph.generated.appRoleAssignments.item.getMemberGroups.GetMemberGroupsRequestBuilder::|public|url_template:str +msgraph.generated.appRoleAssignments.item.getMemberGroups.GetMemberGroupsRequestBuilder::|public|with_url(raw_url:str):GetMemberGroupsRequestBuilder +msgraph.generated.appRoleAssignments.item.getMemberObjects.GetMemberObjectsPostRequestBody::|public|additional_data():dict[str, Any] +msgraph.generated.appRoleAssignments.item.getMemberObjects.GetMemberObjectsPostRequestBody::|public|additional_data(value:dict[str, Any]):None +msgraph.generated.appRoleAssignments.item.getMemberObjects.GetMemberObjectsPostRequestBody::|public|backing_store:BackingStore +msgraph.generated.appRoleAssignments.item.getMemberObjects.GetMemberObjectsPostRequestBody::|public|constructor():None +msgraph.generated.appRoleAssignments.item.getMemberObjects.GetMemberObjectsPostRequestBody::|public|get_field_deserializers():dict[str, Callable[[ParseNode], None]] +msgraph.generated.appRoleAssignments.item.getMemberObjects.GetMemberObjectsPostRequestBody::|public|security_enabled_only():bool +msgraph.generated.appRoleAssignments.item.getMemberObjects.GetMemberObjectsPostRequestBody::|public|security_enabled_only(value:bool):None +msgraph.generated.appRoleAssignments.item.getMemberObjects.GetMemberObjectsPostRequestBody::|public|serialize(writer:SerializationWriter):None +msgraph.generated.appRoleAssignments.item.getMemberObjects.GetMemberObjectsPostRequestBody::|static|public|create_from_discriminator_value(parse_node:ParseNode):GetMemberObjectsPostRequestBody +msgraph.generated.appRoleAssignments.item.getMemberObjects.GetMemberObjectsPostRequestBody~~>AdditionalDataHolder; BackedModel; Parsable +msgraph.generated.appRoleAssignments.item.getMemberObjects.GetMemberObjectsPostResponse-->BaseCollectionPaginationCountResponse +msgraph.generated.appRoleAssignments.item.getMemberObjects.GetMemberObjectsPostResponse::|public|constructor():None +msgraph.generated.appRoleAssignments.item.getMemberObjects.GetMemberObjectsPostResponse::|public|get_field_deserializers():dict[str, Callable[[ParseNode], None]] +msgraph.generated.appRoleAssignments.item.getMemberObjects.GetMemberObjectsPostResponse::|public|serialize(writer:SerializationWriter):None +msgraph.generated.appRoleAssignments.item.getMemberObjects.GetMemberObjectsPostResponse::|public|value():list[str] +msgraph.generated.appRoleAssignments.item.getMemberObjects.GetMemberObjectsPostResponse::|public|value(value:list[str]):None +msgraph.generated.appRoleAssignments.item.getMemberObjects.GetMemberObjectsPostResponse::|static|public|create_from_discriminator_value(parse_node:ParseNode):GetMemberObjectsPostResponse +msgraph.generated.appRoleAssignments.item.getMemberObjects.GetMemberObjectsRequestBuilder-->BaseRequestBuilder +msgraph.generated.appRoleAssignments.item.getMemberObjects.GetMemberObjectsRequestBuilder.GetMemberObjectsRequestBuilderPostRequestConfiguration-->RequestConfiguration[QueryParameters] +msgraph.generated.appRoleAssignments.item.getMemberObjects.GetMemberObjectsRequestBuilder::|public|constructor(path_parameters:Union[str, dict[str, Any]]; request_adapter:RequestAdapter):None +msgraph.generated.appRoleAssignments.item.getMemberObjects.GetMemberObjectsRequestBuilder::|public|path_parameters:Union[str, dict[str, Any]] +msgraph.generated.appRoleAssignments.item.getMemberObjects.GetMemberObjectsRequestBuilder::|public|post(body:GetMemberObjectsPostRequestBody; request_configuration?:RequestConfiguration[QueryParameters]):GetMemberObjectsPostResponse +msgraph.generated.appRoleAssignments.item.getMemberObjects.GetMemberObjectsRequestBuilder::|public|request_adapter:RequestAdapter +msgraph.generated.appRoleAssignments.item.getMemberObjects.GetMemberObjectsRequestBuilder::|public|to_post_request_information(body:GetMemberObjectsPostRequestBody; request_configuration?:RequestConfiguration[QueryParameters]):RequestInformation +msgraph.generated.appRoleAssignments.item.getMemberObjects.GetMemberObjectsRequestBuilder::|public|url_template:str +msgraph.generated.appRoleAssignments.item.getMemberObjects.GetMemberObjectsRequestBuilder::|public|with_url(raw_url:str):GetMemberObjectsRequestBuilder +msgraph.generated.appRoleAssignments.item.restore.RestoreRequestBuilder-->BaseRequestBuilder +msgraph.generated.appRoleAssignments.item.restore.RestoreRequestBuilder.RestoreRequestBuilderPostRequestConfiguration-->RequestConfiguration[QueryParameters] +msgraph.generated.appRoleAssignments.item.restore.RestoreRequestBuilder::|public|constructor(path_parameters:Union[str, dict[str, Any]]; request_adapter:RequestAdapter):None +msgraph.generated.appRoleAssignments.item.restore.RestoreRequestBuilder::|public|path_parameters:Union[str, dict[str, Any]] +msgraph.generated.appRoleAssignments.item.restore.RestoreRequestBuilder::|public|post(request_configuration?:RequestConfiguration[QueryParameters]):DirectoryObject +msgraph.generated.appRoleAssignments.item.restore.RestoreRequestBuilder::|public|request_adapter:RequestAdapter +msgraph.generated.appRoleAssignments.item.restore.RestoreRequestBuilder::|public|to_post_request_information(request_configuration?:RequestConfiguration[QueryParameters]):RequestInformation +msgraph.generated.appRoleAssignments.item.restore.RestoreRequestBuilder::|public|url_template:str +msgraph.generated.appRoleAssignments.item.restore.RestoreRequestBuilder::|public|with_url(raw_url:str):RestoreRequestBuilder +msgraph.generated.appRoleAssignments.validateProperties.ValidatePropertiesPostRequestBody::|public|additional_data():dict[str, Any] +msgraph.generated.appRoleAssignments.validateProperties.ValidatePropertiesPostRequestBody::|public|additional_data(value:dict[str, Any]):None +msgraph.generated.appRoleAssignments.validateProperties.ValidatePropertiesPostRequestBody::|public|backing_store:BackingStore +msgraph.generated.appRoleAssignments.validateProperties.ValidatePropertiesPostRequestBody::|public|constructor():None +msgraph.generated.appRoleAssignments.validateProperties.ValidatePropertiesPostRequestBody::|public|display_name():str +msgraph.generated.appRoleAssignments.validateProperties.ValidatePropertiesPostRequestBody::|public|display_name(value:str):None +msgraph.generated.appRoleAssignments.validateProperties.ValidatePropertiesPostRequestBody::|public|entity_type():str +msgraph.generated.appRoleAssignments.validateProperties.ValidatePropertiesPostRequestBody::|public|entity_type(value:str):None +msgraph.generated.appRoleAssignments.validateProperties.ValidatePropertiesPostRequestBody::|public|get_field_deserializers():dict[str, Callable[[ParseNode], None]] +msgraph.generated.appRoleAssignments.validateProperties.ValidatePropertiesPostRequestBody::|public|mail_nickname():str +msgraph.generated.appRoleAssignments.validateProperties.ValidatePropertiesPostRequestBody::|public|mail_nickname(value:str):None +msgraph.generated.appRoleAssignments.validateProperties.ValidatePropertiesPostRequestBody::|public|on_behalf_of_user_id():UUID +msgraph.generated.appRoleAssignments.validateProperties.ValidatePropertiesPostRequestBody::|public|on_behalf_of_user_id(value:UUID):None +msgraph.generated.appRoleAssignments.validateProperties.ValidatePropertiesPostRequestBody::|public|serialize(writer:SerializationWriter):None +msgraph.generated.appRoleAssignments.validateProperties.ValidatePropertiesPostRequestBody::|static|public|create_from_discriminator_value(parse_node:ParseNode):ValidatePropertiesPostRequestBody +msgraph.generated.appRoleAssignments.validateProperties.ValidatePropertiesPostRequestBody~~>AdditionalDataHolder; BackedModel; Parsable +msgraph.generated.appRoleAssignments.validateProperties.ValidatePropertiesRequestBuilder-->BaseRequestBuilder +msgraph.generated.appRoleAssignments.validateProperties.ValidatePropertiesRequestBuilder.ValidatePropertiesRequestBuilderPostRequestConfiguration-->RequestConfiguration[QueryParameters] +msgraph.generated.appRoleAssignments.validateProperties.ValidatePropertiesRequestBuilder::|public|constructor(path_parameters:Union[str, dict[str, Any]]; request_adapter:RequestAdapter):None +msgraph.generated.appRoleAssignments.validateProperties.ValidatePropertiesRequestBuilder::|public|path_parameters:Union[str, dict[str, Any]] +msgraph.generated.appRoleAssignments.validateProperties.ValidatePropertiesRequestBuilder::|public|post(body:ValidatePropertiesPostRequestBody; request_configuration?:RequestConfiguration[QueryParameters]):None +msgraph.generated.appRoleAssignments.validateProperties.ValidatePropertiesRequestBuilder::|public|request_adapter:RequestAdapter +msgraph.generated.appRoleAssignments.validateProperties.ValidatePropertiesRequestBuilder::|public|to_post_request_information(body:ValidatePropertiesPostRequestBody; request_configuration?:RequestConfiguration[QueryParameters]):RequestInformation +msgraph.generated.appRoleAssignments.validateProperties.ValidatePropertiesRequestBuilder::|public|url_template:str +msgraph.generated.appRoleAssignments.validateProperties.ValidatePropertiesRequestBuilder::|public|with_url(raw_url:str):ValidatePropertiesRequestBuilder msgraph.generated.auditLogs.AuditLogsRequestBuilder-->BaseRequestBuilder msgraph.generated.auditLogs.AuditLogsRequestBuilder.AuditLogsRequestBuilderGetQueryParameters::|public|expand:list[str] msgraph.generated.auditLogs.AuditLogsRequestBuilder.AuditLogsRequestBuilderGetQueryParameters::|public|get_query_parameter(original_name:str):str @@ -3597,6 +3876,7 @@ msgraph.generated.BaseGraphServiceClient::|public|applications_with_app_id(app_i msgraph.generated.BaseGraphServiceClient::|public|applications_with_unique_name(unique_name:str):ApplicationsWithUniqueNameRequestBuilder msgraph.generated.BaseGraphServiceClient::|public|application_templates:ApplicationTemplatesRequestBuilder msgraph.generated.BaseGraphServiceClient::|public|app_catalogs:AppCatalogsRequestBuilder +msgraph.generated.BaseGraphServiceClient::|public|app_role_assignments:AppRoleAssignmentsRequestBuilder msgraph.generated.BaseGraphServiceClient::|public|audit_logs:AuditLogsRequestBuilder msgraph.generated.BaseGraphServiceClient::|public|authentication_methods_policy:AuthenticationMethodsPolicyRequestBuilder msgraph.generated.BaseGraphServiceClient::|public|authentication_method_configurations:AuthenticationMethodConfigurationsRequestBuilder @@ -100143,6 +100423,8 @@ msgraph.generated.models.CloudPcProvisioningPolicy::|public|alternate_resource_u msgraph.generated.models.CloudPcProvisioningPolicy::|public|alternate_resource_url(value:str):None msgraph.generated.models.CloudPcProvisioningPolicy::|public|assignments():list[CloudPcProvisioningPolicyAssignment] msgraph.generated.models.CloudPcProvisioningPolicy::|public|assignments(value:list[CloudPcProvisioningPolicyAssignment]):None +msgraph.generated.models.CloudPcProvisioningPolicy::|public|autopatch():CloudPcProvisioningPolicyAutopatch +msgraph.generated.models.CloudPcProvisioningPolicy::|public|autopatch(value:CloudPcProvisioningPolicyAutopatch):None msgraph.generated.models.CloudPcProvisioningPolicy::|public|cloud_pc_group_display_name():str msgraph.generated.models.CloudPcProvisioningPolicy::|public|cloud_pc_group_display_name(value:str):None msgraph.generated.models.CloudPcProvisioningPolicy::|public|cloud_pc_naming_template():str @@ -100193,6 +100475,18 @@ msgraph.generated.models.CloudPcProvisioningPolicyAssignmentCollectionResponse:: msgraph.generated.models.CloudPcProvisioningPolicyAssignmentCollectionResponse::|public|value():list[CloudPcProvisioningPolicyAssignment] msgraph.generated.models.CloudPcProvisioningPolicyAssignmentCollectionResponse::|public|value(value:list[CloudPcProvisioningPolicyAssignment]):None msgraph.generated.models.CloudPcProvisioningPolicyAssignmentCollectionResponse::|static|public|create_from_discriminator_value(parse_node:ParseNode):CloudPcProvisioningPolicyAssignmentCollectionResponse +msgraph.generated.models.CloudPcProvisioningPolicyAutopatch::|public|additional_data():dict[str, Any] +msgraph.generated.models.CloudPcProvisioningPolicyAutopatch::|public|additional_data(value:dict[str, Any]):None +msgraph.generated.models.CloudPcProvisioningPolicyAutopatch::|public|autopatch_group_id():str +msgraph.generated.models.CloudPcProvisioningPolicyAutopatch::|public|autopatch_group_id(value:str):None +msgraph.generated.models.CloudPcProvisioningPolicyAutopatch::|public|backing_store:BackingStore +msgraph.generated.models.CloudPcProvisioningPolicyAutopatch::|public|constructor():None +msgraph.generated.models.CloudPcProvisioningPolicyAutopatch::|public|get_field_deserializers():dict[str, Callable[[ParseNode], None]] +msgraph.generated.models.CloudPcProvisioningPolicyAutopatch::|public|odata_type():str +msgraph.generated.models.CloudPcProvisioningPolicyAutopatch::|public|odata_type(value:str):None +msgraph.generated.models.CloudPcProvisioningPolicyAutopatch::|public|serialize(writer:SerializationWriter):None +msgraph.generated.models.CloudPcProvisioningPolicyAutopatch::|static|public|create_from_discriminator_value(parse_node:ParseNode):CloudPcProvisioningPolicyAutopatch +msgraph.generated.models.CloudPcProvisioningPolicyAutopatch~~>AdditionalDataHolder; BackedModel; Parsable msgraph.generated.models.CloudPcProvisioningPolicyCollectionResponse-->BaseCollectionPaginationCountResponse msgraph.generated.models.CloudPcProvisioningPolicyCollectionResponse::|public|constructor():None msgraph.generated.models.CloudPcProvisioningPolicyCollectionResponse::|public|get_field_deserializers():dict[str, Callable[[ParseNode], None]] @@ -112424,6 +112718,7 @@ msgraph.generated.models.ManagedDeviceOverview::|static|public|create_from_discr msgraph.generated.models.ManagedDeviceOwnerType::0000-Unknown msgraph.generated.models.ManagedDeviceOwnerType::0001-Company msgraph.generated.models.ManagedDeviceOwnerType::0002-Personal +msgraph.generated.models.ManagedDeviceOwnerType::0003-UnknownFutureValue msgraph.generated.models.ManagedDevicePartnerReportedHealthState::0000-Unknown msgraph.generated.models.ManagedDevicePartnerReportedHealthState::0001-Activated msgraph.generated.models.ManagedDevicePartnerReportedHealthState::0002-Deactivated diff --git a/msgraph/generated/kiota-lock.json b/msgraph/generated/kiota-lock.json index 98740773243..192a25dab18 100644 --- a/msgraph/generated/kiota-lock.json +++ b/msgraph/generated/kiota-lock.json @@ -1,5 +1,5 @@ { - "descriptionHash": "2A266C83E5128F78435232C790DE0C41B134CF323FA2D5EB704DAAC3C39EEA634205F3ED6EC8DE64297752B981917408558A02E7A673FE2E0AB8C6AD140E860D", + "descriptionHash": "B5D54EAACDD9562C48BCBFAB2B7961931456002FC2A40307CC8B3C5DD8E0B11A8F3C5EF035DC1C95D79572A6477A1DFBA63F9B739C939F885E4AF6ED4F7896B9", "descriptionLocation": "../../msgraph-metadata/clean_v10_openapi/openapi.yaml", "lockFileVersion": "1.0.0", "kiotaVersion": "1.23.0", diff --git a/msgraph/generated/models/chat_restrictions.py b/msgraph/generated/models/chat_restrictions.py index a3ee3f4ba25..2f90d623444 100644 --- a/msgraph/generated/models/chat_restrictions.py +++ b/msgraph/generated/models/chat_restrictions.py @@ -12,7 +12,7 @@ class ChatRestrictions(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 allowTextOnly property + # Indicates whether only text is allowed in the meeting chat. Optional. allow_text_only: Optional[bool] = None # The OdataType property odata_type: Optional[str] = None diff --git a/msgraph/generated/models/cloud_pc_provisioning_policy.py b/msgraph/generated/models/cloud_pc_provisioning_policy.py index 9cd84a9af2b..a4932502b32 100644 --- a/msgraph/generated/models/cloud_pc_provisioning_policy.py +++ b/msgraph/generated/models/cloud_pc_provisioning_policy.py @@ -7,6 +7,7 @@ if TYPE_CHECKING: from .cloud_pc_domain_join_configuration import CloudPcDomainJoinConfiguration from .cloud_pc_provisioning_policy_assignment import CloudPcProvisioningPolicyAssignment + from .cloud_pc_provisioning_policy_autopatch import CloudPcProvisioningPolicyAutopatch from .cloud_pc_provisioning_policy_image_type import CloudPcProvisioningPolicyImageType from .cloud_pc_provisioning_type import CloudPcProvisioningType from .cloud_pc_windows_setting import CloudPcWindowsSetting @@ -21,6 +22,8 @@ class CloudPcProvisioningPolicy(Entity, Parsable): alternate_resource_url: Optional[str] = None # A defined collection of provisioning policy assignments. Represents the set of Microsoft 365 groups and security groups in Microsoft Entra ID that have provisioning policy assigned. Returned only on $expand. For an example about how to get the assignments relationship, see Get cloudPcProvisioningPolicy. assignments: Optional[list[CloudPcProvisioningPolicyAssignment]] = None + # The autopatch property + autopatch: Optional[CloudPcProvisioningPolicyAutopatch] = None # The display name of the Cloud PC group that the Cloud PCs reside in. Read-only. cloud_pc_group_display_name: Optional[str] = None # The template used to name Cloud PCs provisioned using this policy. The template can contain custom text and replacement tokens, including %USERNAME:x% and %RAND:x%, which represent the user's name and a randomly generated number, respectively. For example, CPC-%USERNAME:4%-%RAND:5% means that the name of the Cloud PC starts with CPC-, followed by a four-character username, a - character, and then five random characters. The total length of the text generated by the template can't exceed 15 characters. Supports $filter, $select, and $orderby. @@ -70,6 +73,7 @@ def get_field_deserializers(self,) -> dict[str, Callable[[ParseNode], None]]: """ from .cloud_pc_domain_join_configuration import CloudPcDomainJoinConfiguration from .cloud_pc_provisioning_policy_assignment import CloudPcProvisioningPolicyAssignment + from .cloud_pc_provisioning_policy_autopatch import CloudPcProvisioningPolicyAutopatch from .cloud_pc_provisioning_policy_image_type import CloudPcProvisioningPolicyImageType from .cloud_pc_provisioning_type import CloudPcProvisioningType from .cloud_pc_windows_setting import CloudPcWindowsSetting @@ -78,6 +82,7 @@ def get_field_deserializers(self,) -> dict[str, Callable[[ParseNode], None]]: from .cloud_pc_domain_join_configuration import CloudPcDomainJoinConfiguration from .cloud_pc_provisioning_policy_assignment import CloudPcProvisioningPolicyAssignment + from .cloud_pc_provisioning_policy_autopatch import CloudPcProvisioningPolicyAutopatch from .cloud_pc_provisioning_policy_image_type import CloudPcProvisioningPolicyImageType from .cloud_pc_provisioning_type import CloudPcProvisioningType from .cloud_pc_windows_setting import CloudPcWindowsSetting @@ -87,6 +92,7 @@ def get_field_deserializers(self,) -> dict[str, Callable[[ParseNode], None]]: fields: dict[str, Callable[[Any], None]] = { "alternateResourceUrl": lambda n : setattr(self, 'alternate_resource_url', n.get_str_value()), "assignments": lambda n : setattr(self, 'assignments', n.get_collection_of_object_values(CloudPcProvisioningPolicyAssignment)), + "autopatch": lambda n : setattr(self, 'autopatch', n.get_object_value(CloudPcProvisioningPolicyAutopatch)), "cloudPcGroupDisplayName": lambda n : setattr(self, 'cloud_pc_group_display_name', n.get_str_value()), "cloudPcNamingTemplate": lambda n : setattr(self, 'cloud_pc_naming_template', n.get_str_value()), "description": lambda n : setattr(self, 'description', n.get_str_value()), @@ -117,6 +123,7 @@ def serialize(self,writer: SerializationWriter) -> None: super().serialize(writer) writer.write_str_value("alternateResourceUrl", self.alternate_resource_url) writer.write_collection_of_object_values("assignments", self.assignments) + writer.write_object_value("autopatch", self.autopatch) writer.write_str_value("cloudPcGroupDisplayName", self.cloud_pc_group_display_name) writer.write_str_value("cloudPcNamingTemplate", self.cloud_pc_naming_template) writer.write_str_value("description", self.description) diff --git a/msgraph/generated/models/cloud_pc_provisioning_policy_autopatch.py b/msgraph/generated/models/cloud_pc_provisioning_policy_autopatch.py new file mode 100644 index 00000000000..36d44656b57 --- /dev/null +++ b/msgraph/generated/models/cloud_pc_provisioning_policy_autopatch.py @@ -0,0 +1,54 @@ +from __future__ import annotations +from collections.abc import Callable +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, Optional, TYPE_CHECKING, Union + +@dataclass +class CloudPcProvisioningPolicyAutopatch(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 autopatchGroupId property + autopatch_group_id: Optional[str] = None + # The OdataType property + odata_type: Optional[str] = None + + @staticmethod + def create_from_discriminator_value(parse_node: ParseNode) -> CloudPcProvisioningPolicyAutopatch: + """ + 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: CloudPcProvisioningPolicyAutopatch + """ + if parse_node is None: + raise TypeError("parse_node cannot be null.") + return CloudPcProvisioningPolicyAutopatch() + + 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]] = { + "autopatchGroupId": lambda n : setattr(self, 'autopatch_group_id', 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 writer is None: + raise TypeError("writer cannot be null.") + writer.write_str_value("autopatchGroupId", self.autopatch_group_id) + writer.write_str_value("@odata.type", self.odata_type) + writer.write_additional_data_value(self.additional_data) + + diff --git a/msgraph/generated/models/device_configuration_device_status.py b/msgraph/generated/models/device_configuration_device_status.py index 5e9683612d7..963123b81d2 100644 --- a/msgraph/generated/models/device_configuration_device_status.py +++ b/msgraph/generated/models/device_configuration_device_status.py @@ -13,6 +13,9 @@ @dataclass class DeviceConfigurationDeviceStatus(Entity, Parsable): + """ + Support for this Entity is being deprecated starting May 2026 & will no longer be supported. + """ # The DateTime when device compliance grace period expires compliance_grace_period_expiration_date_time: Optional[datetime.datetime] = None # Device name of the DevicePolicyStatus. diff --git a/msgraph/generated/models/device_configuration_state.py b/msgraph/generated/models/device_configuration_state.py index da4fbbac658..44cc69d9ba5 100644 --- a/msgraph/generated/models/device_configuration_state.py +++ b/msgraph/generated/models/device_configuration_state.py @@ -15,7 +15,7 @@ @dataclass class DeviceConfigurationState(Entity, Parsable): """ - Device Configuration State for a given device. + Support for this Entity is being deprecated starting May 2026 & will no longer be supported. """ # The name of the policy for this policyBase display_name: Optional[str] = None diff --git a/msgraph/generated/models/device_enrollment_platform_restrictions_configuration.py b/msgraph/generated/models/device_enrollment_platform_restrictions_configuration.py index 63d7af1224c..b0ccd8f505a 100644 --- a/msgraph/generated/models/device_enrollment_platform_restrictions_configuration.py +++ b/msgraph/generated/models/device_enrollment_platform_restrictions_configuration.py @@ -13,7 +13,7 @@ @dataclass class DeviceEnrollmentPlatformRestrictionsConfiguration(DeviceEnrollmentConfiguration, Parsable): """ - Device Enrollment Configuration that restricts the types of devices a user can enroll + Default Device Enrollment Platform Restrictions Configuration that restricts the types of devices a user can enroll """ # The OdataType property odata_type: Optional[str] = "#microsoft.graph.deviceEnrollmentPlatformRestrictionsConfiguration" diff --git a/msgraph/generated/models/device_enrollment_type.py b/msgraph/generated/models/device_enrollment_type.py index 4510aacafc9..e261a95ce13 100644 --- a/msgraph/generated/models/device_enrollment_type.py +++ b/msgraph/generated/models/device_enrollment_type.py @@ -11,20 +11,20 @@ class DeviceEnrollmentType(str, Enum): AppleBulkWithUser = "appleBulkWithUser", # Apple bulk enrollment without user challenge. (DEP, Apple Configurator, Mobile Config) AppleBulkWithoutUser = "appleBulkWithoutUser", - # Windows 10 Azure AD Join. + # Windows 10 Entra ID (Azure AD) Join. WindowsAzureADJoin = "windowsAzureADJoin", # Windows 10 Bulk enrollment through ICD with certificate. WindowsBulkUserless = "windowsBulkUserless", # Windows 10 automatic enrollment. (Add work account) WindowsAutoEnrollment = "windowsAutoEnrollment", - # Windows 10 bulk Azure AD Join. + # Windows 10 bulk Entra ID (Azure AD) Join. WindowsBulkAzureDomainJoin = "windowsBulkAzureDomainJoin", # Windows 10 Co-Management triggered by AutoPilot or Group Policy. WindowsCoManagement = "windowsCoManagement", - # Windows 10 Azure AD Join using Device Auth. + # Windows 10 Entra ID (Azure AD) Join using Device Auth. WindowsAzureADJoinUsingDeviceAuth = "windowsAzureADJoinUsingDeviceAuth", - # Device managed by Apple user enrollment + # Indicates the device is enrolled via Apple User Enrollment with Company Portal. It results in an enrollment with a new partition for managed apps and data and which supports a limited set of management capabilities AppleUserEnrollment = "appleUserEnrollment", - # Device managed by Apple user enrollment with service account + # Indicates the device is enrolled via Apple User Enrollment with Company Portal using a device enrollment manager user. It results in an enrollment with a new partition for managed apps and data and which supports a limited set of management capabilities AppleUserEnrollmentWithServiceAccount = "appleUserEnrollmentWithServiceAccount", diff --git a/msgraph/generated/models/device_management.py b/msgraph/generated/models/device_management.py index fe18337bab3..e27a73255d0 100644 --- a/msgraph/generated/models/device_management.py +++ b/msgraph/generated/models/device_management.py @@ -75,9 +75,6 @@ @dataclass class DeviceManagement(Entity, Parsable): - """ - Singleton entity that acts as a container for all device management functionality. - """ # Apple push notification certificate. apple_push_notification_certificate: Optional[ApplePushNotificationCertificate] = None # The Audit Events diff --git a/msgraph/generated/models/managed_device_owner_type.py b/msgraph/generated/models/managed_device_owner_type.py index cdad5637e4a..44024a0ed73 100644 --- a/msgraph/generated/models/managed_device_owner_type.py +++ b/msgraph/generated/models/managed_device_owner_type.py @@ -1,10 +1,12 @@ from enum import Enum class ManagedDeviceOwnerType(str, Enum): - # Unknown. + # Unknown device owner type. Unknown = "unknown", - # Owned by company. + # Corporate device owner type. Company = "company", - # Owned by person. + # Personal device owner type. Personal = "personal", + # Evolvable enumeration sentinel value. Do not use. + UnknownFutureValue = "unknownFutureValue", diff --git a/msgraph/generated/models/online_meeting_base.py b/msgraph/generated/models/online_meeting_base.py index 3e768178ea7..914e52140ec 100644 --- a/msgraph/generated/models/online_meeting_base.py +++ b/msgraph/generated/models/online_meeting_base.py @@ -46,7 +46,7 @@ class OnlineMeetingBase(Entity, Parsable): audio_conferencing: Optional[AudioConferencing] = None # The chat information associated with this online meeting. chat_info: Optional[ChatInfo] = None - # The chatRestrictions property + # Specifies the configuration settings for meeting chat restrictions. chat_restrictions: Optional[ChatRestrictions] = None # Indicates whether to announce when callers join or leave. is_entry_exit_announced: Optional[bool] = None diff --git a/msgraph/generated/organization/item/branding/localizations/item/banner_logo/banner_logo_request_builder.py b/msgraph/generated/organization/item/branding/localizations/item/banner_logo/banner_logo_request_builder.py index ca0d753e775..e4b35183510 100644 --- a/msgraph/generated/organization/item/branding/localizations/item/banner_logo/banner_logo_request_builder.py +++ b/msgraph/generated/organization/item/branding/localizations/item/banner_logo/banner_logo_request_builder.py @@ -49,10 +49,10 @@ async def delete(self,request_configuration: Optional[RequestConfiguration[Query async def get(self,request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> Optional[bytes]: """ - Retrieve the default organizational branding object, if the Accept-Language header is set to 0 or default. If no default organizational branding object exists, this method returns a 404 Not Found error. If the Accept-Language header is set to an existing locale identified by the value of its id, this method retrieves the branding for the specified locale. This method retrieves only non-Stream properties, for example, usernameHintText and signInPageText. To retrieve Stream types of the default branding, for example, bannerLogo and backgroundImage, use the GET organizationalBrandingLocalization method. + Read the properties and relationships of an organizationalBrandingLocalization object. To retrieve a localization branding object, specify the value of id in the URL. param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: bytes - Find more info here: https://learn.microsoft.com/graph/api/organizationalbranding-get?view=graph-rest-1.0 + Find more info here: https://learn.microsoft.com/graph/api/organizationalbrandinglocalization-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[QueryParameters]] = None) -> RequestInformation: """ - Retrieve the default organizational branding object, if the Accept-Language header is set to 0 or default. If no default organizational branding object exists, this method returns a 404 Not Found error. If the Accept-Language header is set to an existing locale identified by the value of its id, this method retrieves the branding for the specified locale. This method retrieves only non-Stream properties, for example, usernameHintText and signInPageText. To retrieve Stream types of the default branding, for example, bannerLogo and backgroundImage, use the GET organizationalBrandingLocalization method. + Read the properties and relationships of an organizationalBrandingLocalization object. To retrieve a localization branding object, specify the value of id in the URL. param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: RequestInformation """ diff --git a/msgraph/generated/organization/item/check_member_groups/check_member_groups_request_builder.py b/msgraph/generated/organization/item/check_member_groups/check_member_groups_request_builder.py index 16afbecefc2..a61086ac48d 100644 --- a/msgraph/generated/organization/item/check_member_groups/check_member_groups_request_builder.py +++ b/msgraph/generated/organization/item/check_member_groups/check_member_groups_request_builder.py @@ -33,7 +33,7 @@ def __init__(self,request_adapter: RequestAdapter, path_parameters: Union[str, d async def post(self,body: CheckMemberGroupsPostRequestBody, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> Optional[CheckMemberGroupsPostResponse]: """ - Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Microsoft Entra ID. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. + Check for membership in a specified list of group IDs, and return from that list the IDs of groups where a specified object is a member. The specified object can be of one of the following types:- user- group- service principal- organizational contact- device- directory object This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Microsoft Entra ID. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. param body: The request body param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: Optional[CheckMemberGroupsPostResponse] @@ -57,7 +57,7 @@ async def post(self,body: CheckMemberGroupsPostRequestBody, request_configuratio def to_post_request_information(self,body: CheckMemberGroupsPostRequestBody, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> RequestInformation: """ - Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Microsoft Entra ID. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. + Check for membership in a specified list of group IDs, and return from that list the IDs of groups where a specified object is a member. The specified object can be of one of the following types:- user- group- service principal- organizational contact- device- directory object This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Microsoft Entra ID. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. 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/generated/organization/item/get_member_objects/get_member_objects_request_builder.py b/msgraph/generated/organization/item/get_member_objects/get_member_objects_request_builder.py index 015f2c9b619..ec90c5e84b7 100644 --- a/msgraph/generated/organization/item/get_member_objects/get_member_objects_request_builder.py +++ b/msgraph/generated/organization/item/get_member_objects/get_member_objects_request_builder.py @@ -33,7 +33,7 @@ def __init__(self,request_adapter: RequestAdapter, path_parameters: Union[str, d async def post(self,body: GetMemberObjectsPostRequestBody, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> Optional[GetMemberObjectsPostResponse]: """ - Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. + Return all IDs for the groups, administrative units, and directory roles that an object of one of the following types is a member of:- user- group- service principal- organizational contact- device- directory object This function is transitive. Only users and role-enabled groups can be members of directory roles. param body: The request body param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: Optional[GetMemberObjectsPostResponse] @@ -57,7 +57,7 @@ async def post(self,body: GetMemberObjectsPostRequestBody, request_configuration def to_post_request_information(self,body: GetMemberObjectsPostRequestBody, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> RequestInformation: """ - Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. + Return all IDs for the groups, administrative units, and directory roles that an object of one of the following types is a member of:- user- group- service principal- organizational contact- device- directory object This function is transitive. Only users and role-enabled groups can be members of directory roles. 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/generated/permission_grants/item/check_member_groups/check_member_groups_request_builder.py b/msgraph/generated/permission_grants/item/check_member_groups/check_member_groups_request_builder.py index 63420139d18..ffe9321b868 100644 --- a/msgraph/generated/permission_grants/item/check_member_groups/check_member_groups_request_builder.py +++ b/msgraph/generated/permission_grants/item/check_member_groups/check_member_groups_request_builder.py @@ -33,7 +33,7 @@ def __init__(self,request_adapter: RequestAdapter, path_parameters: Union[str, d async def post(self,body: CheckMemberGroupsPostRequestBody, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> Optional[CheckMemberGroupsPostResponse]: """ - Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Microsoft Entra ID. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. + Check for membership in a specified list of group IDs, and return from that list the IDs of groups where a specified object is a member. The specified object can be of one of the following types:- user- group- service principal- organizational contact- device- directory object This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Microsoft Entra ID. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. param body: The request body param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: Optional[CheckMemberGroupsPostResponse] @@ -57,7 +57,7 @@ async def post(self,body: CheckMemberGroupsPostRequestBody, request_configuratio def to_post_request_information(self,body: CheckMemberGroupsPostRequestBody, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> RequestInformation: """ - Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Microsoft Entra ID. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. + Check for membership in a specified list of group IDs, and return from that list the IDs of groups where a specified object is a member. The specified object can be of one of the following types:- user- group- service principal- organizational contact- device- directory object This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Microsoft Entra ID. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. 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/generated/permission_grants/item/get_member_objects/get_member_objects_request_builder.py b/msgraph/generated/permission_grants/item/get_member_objects/get_member_objects_request_builder.py index 2f9d355b606..a39eb75e291 100644 --- a/msgraph/generated/permission_grants/item/get_member_objects/get_member_objects_request_builder.py +++ b/msgraph/generated/permission_grants/item/get_member_objects/get_member_objects_request_builder.py @@ -33,7 +33,7 @@ def __init__(self,request_adapter: RequestAdapter, path_parameters: Union[str, d async def post(self,body: GetMemberObjectsPostRequestBody, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> Optional[GetMemberObjectsPostResponse]: """ - Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. + Return all IDs for the groups, administrative units, and directory roles that an object of one of the following types is a member of:- user- group- service principal- organizational contact- device- directory object This function is transitive. Only users and role-enabled groups can be members of directory roles. param body: The request body param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: Optional[GetMemberObjectsPostResponse] @@ -57,7 +57,7 @@ async def post(self,body: GetMemberObjectsPostRequestBody, request_configuration def to_post_request_information(self,body: GetMemberObjectsPostRequestBody, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> RequestInformation: """ - Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. + Return all IDs for the groups, administrative units, and directory roles that an object of one of the following types is a member of:- user- group- service principal- organizational contact- device- directory object This function is transitive. Only users and role-enabled groups can be members of directory roles. 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/generated/service_principals/item/check_member_groups/check_member_groups_request_builder.py b/msgraph/generated/service_principals/item/check_member_groups/check_member_groups_request_builder.py index 13cd052facb..713643f9cb7 100644 --- a/msgraph/generated/service_principals/item/check_member_groups/check_member_groups_request_builder.py +++ b/msgraph/generated/service_principals/item/check_member_groups/check_member_groups_request_builder.py @@ -33,7 +33,7 @@ def __init__(self,request_adapter: RequestAdapter, path_parameters: Union[str, d async def post(self,body: CheckMemberGroupsPostRequestBody, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> Optional[CheckMemberGroupsPostResponse]: """ - Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Microsoft Entra ID. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. + Check for membership in a specified list of group IDs, and return from that list the IDs of groups where a specified object is a member. The specified object can be of one of the following types:- user- group- service principal- organizational contact- device- directory object This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Microsoft Entra ID. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. param body: The request body param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: Optional[CheckMemberGroupsPostResponse] @@ -57,7 +57,7 @@ async def post(self,body: CheckMemberGroupsPostRequestBody, request_configuratio def to_post_request_information(self,body: CheckMemberGroupsPostRequestBody, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> RequestInformation: """ - Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Microsoft Entra ID. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. + Check for membership in a specified list of group IDs, and return from that list the IDs of groups where a specified object is a member. The specified object can be of one of the following types:- user- group- service principal- organizational contact- device- directory object This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Microsoft Entra ID. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. 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/generated/service_principals/item/get_member_objects/get_member_objects_request_builder.py b/msgraph/generated/service_principals/item/get_member_objects/get_member_objects_request_builder.py index 8e033eaa2da..4398ac400af 100644 --- a/msgraph/generated/service_principals/item/get_member_objects/get_member_objects_request_builder.py +++ b/msgraph/generated/service_principals/item/get_member_objects/get_member_objects_request_builder.py @@ -33,7 +33,7 @@ def __init__(self,request_adapter: RequestAdapter, path_parameters: Union[str, d async def post(self,body: GetMemberObjectsPostRequestBody, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> Optional[GetMemberObjectsPostResponse]: """ - Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. + Return all IDs for the groups, administrative units, and directory roles that an object of one of the following types is a member of:- user- group- service principal- organizational contact- device- directory object This function is transitive. Only users and role-enabled groups can be members of directory roles. param body: The request body param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: Optional[GetMemberObjectsPostResponse] @@ -57,7 +57,7 @@ async def post(self,body: GetMemberObjectsPostRequestBody, request_configuration def to_post_request_information(self,body: GetMemberObjectsPostRequestBody, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> RequestInformation: """ - Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. + Return all IDs for the groups, administrative units, and directory roles that an object of one of the following types is a member of:- user- group- service principal- organizational contact- device- directory object This function is transitive. Only users and role-enabled groups can be members of directory roles. 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/generated/sites/item/lists/item/list_item_request_builder.py b/msgraph/generated/sites/item/lists/item/list_item_request_builder.py index 5ee3c5973e7..c4878267e2e 100644 --- a/msgraph/generated/sites/item/lists/item/list_item_request_builder.py +++ b/msgraph/generated/sites/item/lists/item/list_item_request_builder.py @@ -58,10 +58,10 @@ async def delete(self,request_configuration: Optional[RequestConfiguration[Query async def get(self,request_configuration: Optional[RequestConfiguration[ListItemRequestBuilderGetQueryParameters]] = None) -> Optional[List_]: """ - Get a list of rich long-running operations associated with a list. + Returns 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 @@ -113,7 +113,7 @@ def to_delete_request_information(self,request_configuration: Optional[RequestCo def to_get_request_information(self,request_configuration: Optional[RequestConfiguration[ListItemRequestBuilderGetQueryParameters]] = None) -> RequestInformation: """ - Get a list of rich long-running operations associated with a list. + Returns 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 @@ class ListItemRequestBuilderDeleteRequestConfiguration(RequestConfiguration[Quer @dataclass class ListItemRequestBuilderGetQueryParameters(): """ - Get a list of rich long-running operations associated with a list. + Returns the metadata for a list. """ def get_query_parameter(self,original_name: str) -> str: """ diff --git a/msgraph/generated/sites/sites_request_builder.py b/msgraph/generated/sites/sites_request_builder.py index ca5975e1d69..6679ea6d6cd 100644 --- a/msgraph/generated/sites/sites_request_builder.py +++ b/msgraph/generated/sites/sites_request_builder.py @@ -52,10 +52,10 @@ def by_site_id(self,site_id: str) -> SiteItemRequestBuilder: async def get(self,request_configuration: Optional[RequestConfiguration[SitesRequestBuilderGetQueryParameters]] = None) -> Optional[SiteCollectionResponse]: """ - Search across a SharePoint tenant for sites that match keywords provided. The only property that works for sorting is createdDateTime. The search filter is a free text search that uses multiple properties when retrieving the search results. + List all available sites in an organization. Specific filter criteria and query options are also supported and described below: In addition, you can use a $search query against the /sites collection to find sites matching given keywords.If you want to list all sites across all geographies, refer to getAllSites. For more guidance about building applications that use site discovery for scanning purposes, see Best practices for discovering files and detecting changes at scale. param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: Optional[SiteCollectionResponse] - Find more info here: https://learn.microsoft.com/graph/api/site-search?view=graph-rest-1.0 + Find more info here: https://learn.microsoft.com/graph/api/site-list?view=graph-rest-1.0 """ request_info = self.to_get_request_information( request_configuration @@ -73,7 +73,7 @@ async def get(self,request_configuration: Optional[RequestConfiguration[SitesReq def to_get_request_information(self,request_configuration: Optional[RequestConfiguration[SitesRequestBuilderGetQueryParameters]] = None) -> RequestInformation: """ - Search across a SharePoint tenant for sites that match keywords provided. The only property that works for sorting is createdDateTime. The search filter is a free text search that uses multiple properties when retrieving the search results. + List all available sites in an organization. Specific filter criteria and query options are also supported and described below: In addition, you can use a $search query against the /sites collection to find sites matching given keywords.If you want to list all sites across all geographies, refer to getAllSites. For more guidance about building applications that use site discovery for scanning purposes, see Best practices for discovering files and detecting changes at scale. param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: RequestInformation """ @@ -140,7 +140,7 @@ def remove(self) -> RemoveRequestBuilder: @dataclass class SitesRequestBuilderGetQueryParameters(): """ - Search across a SharePoint tenant for sites that match keywords provided. The only property that works for sorting is createdDateTime. The search filter is a free text search that uses multiple properties when retrieving the search results. + List all available sites in an organization. Specific filter criteria and query options are also supported and described below: In addition, you can use a $search query against the /sites collection to find sites matching given keywords.If you want to list all sites across all geographies, refer to getAllSites. For more guidance about building applications that use site discovery for scanning purposes, see Best practices for discovering files and detecting changes at scale. """ def get_query_parameter(self,original_name: str) -> str: """ diff --git a/msgraph/generated/teams/item/channels/item/members/item/conversation_member_item_request_builder.py b/msgraph/generated/teams/item/channels/item/members/item/conversation_member_item_request_builder.py index be3502ce166..96b6a9710bd 100644 --- a/msgraph/generated/teams/item/channels/item/members/item/conversation_member_item_request_builder.py +++ b/msgraph/generated/teams/item/channels/item/members/item/conversation_member_item_request_builder.py @@ -32,10 +32,10 @@ def __init__(self,request_adapter: RequestAdapter, path_parameters: Union[str, d async def delete(self,request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> None: """ - Delete a conversationMember from a channel. + Delete a conversationMember from a channel. This operation is allowed only for channels with a membershipType value of private or shared. 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/conversationmember-delete?view=graph-rest-1.0 + Find more info here: https://learn.microsoft.com/graph/api/channel-delete-members?view=graph-rest-1.0 """ request_info = self.to_delete_request_information( request_configuration @@ -72,11 +72,11 @@ async def get(self,request_configuration: Optional[RequestConfiguration[Conversa async def patch(self,body: ConversationMember, request_configuration: Optional[RequestConfiguration[QueryParameters]] = 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 body is None: raise TypeError("body cannot be null.") @@ -96,7 +96,7 @@ async def patch(self,body: ConversationMember, request_configuration: Optional[R def to_delete_request_information(self,request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> RequestInformation: """ - Delete a conversationMember from a channel. + Delete a conversationMember from a channel. This operation is allowed only for channels with a membershipType value of private or shared. param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: RequestInformation """ @@ -118,7 +118,7 @@ def to_get_request_information(self,request_configuration: Optional[RequestConfi def to_patch_request_information(self,body: ConversationMember, request_configuration: Optional[RequestConfiguration[QueryParameters]] = 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/generated/teams/item/channels/item/members/members_request_builder.py b/msgraph/generated/teams/item/channels/item/members/members_request_builder.py index a7c95ccd2eb..94557c919d0 100644 --- a/msgraph/generated/teams/item/channels/item/members/members_request_builder.py +++ b/msgraph/generated/teams/item/channels/item/members/members_request_builder.py @@ -72,11 +72,11 @@ async def get(self,request_configuration: Optional[RequestConfiguration[MembersR async def post(self,body: ConversationMember, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> Optional[ConversationMember]: """ - Add a conversationMember to a channel. + Add a conversationMember to a channel. This operation is allowed only for channels with a membershipType value of private or shared. 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/conversationmember-add?view=graph-rest-1.0 + Find more info here: https://learn.microsoft.com/graph/api/channel-post-members?view=graph-rest-1.0 """ if body is None: raise TypeError("body cannot be null.") @@ -107,7 +107,7 @@ def to_get_request_information(self,request_configuration: Optional[RequestConfi def to_post_request_information(self,body: ConversationMember, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> RequestInformation: """ - Add a conversationMember to a channel. + Add a conversationMember to a channel. This operation is allowed only for channels with a membershipType value of private or shared. 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/generated/users/item/check_member_groups/check_member_groups_request_builder.py b/msgraph/generated/users/item/check_member_groups/check_member_groups_request_builder.py index 51270439290..3487a6306fe 100644 --- a/msgraph/generated/users/item/check_member_groups/check_member_groups_request_builder.py +++ b/msgraph/generated/users/item/check_member_groups/check_member_groups_request_builder.py @@ -33,7 +33,7 @@ def __init__(self,request_adapter: RequestAdapter, path_parameters: Union[str, d async def post(self,body: CheckMemberGroupsPostRequestBody, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> Optional[CheckMemberGroupsPostResponse]: """ - Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Microsoft Entra ID. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. + Check for membership in a specified list of group IDs, and return from that list the IDs of groups where a specified object is a member. The specified object can be of one of the following types:- user- group- service principal- organizational contact- device- directory object This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Microsoft Entra ID. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. param body: The request body param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: Optional[CheckMemberGroupsPostResponse] @@ -57,7 +57,7 @@ async def post(self,body: CheckMemberGroupsPostRequestBody, request_configuratio def to_post_request_information(self,body: CheckMemberGroupsPostRequestBody, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> RequestInformation: """ - Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Microsoft Entra ID. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. + Check for membership in a specified list of group IDs, and return from that list the IDs of groups where a specified object is a member. The specified object can be of one of the following types:- user- group- service principal- organizational contact- device- directory object This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Microsoft Entra ID. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. 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/generated/users/item/get_member_objects/get_member_objects_request_builder.py b/msgraph/generated/users/item/get_member_objects/get_member_objects_request_builder.py index 5a6eab0629b..e1efe74deb3 100644 --- a/msgraph/generated/users/item/get_member_objects/get_member_objects_request_builder.py +++ b/msgraph/generated/users/item/get_member_objects/get_member_objects_request_builder.py @@ -33,7 +33,7 @@ def __init__(self,request_adapter: RequestAdapter, path_parameters: Union[str, d async def post(self,body: GetMemberObjectsPostRequestBody, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> Optional[GetMemberObjectsPostResponse]: """ - Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. + Return all IDs for the groups, administrative units, and directory roles that an object of one of the following types is a member of:- user- group- service principal- organizational contact- device- directory object This function is transitive. Only users and role-enabled groups can be members of directory roles. param body: The request body param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: Optional[GetMemberObjectsPostResponse] @@ -57,7 +57,7 @@ async def post(self,body: GetMemberObjectsPostRequestBody, request_configuration def to_post_request_information(self,body: GetMemberObjectsPostRequestBody, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> RequestInformation: """ - Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles. + Return all IDs for the groups, administrative units, and directory roles that an object of one of the following types is a member of:- user- group- service principal- organizational contact- device- directory object This function is transitive. Only users and role-enabled groups can be members of directory roles. 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/generated/users/item/user_item_request_builder.py b/msgraph/generated/users/item/user_item_request_builder.py index cde917837fa..e305b4f7cb9 100644 --- a/msgraph/generated/users/item/user_item_request_builder.py +++ b/msgraph/generated/users/item/user_item_request_builder.py @@ -108,10 +108,10 @@ def __init__(self,request_adapter: RequestAdapter, path_parameters: Union[str, d async def delete(self,request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> None: """ - Delete a user object. When deleted, user resources, including their mailbox and license assignments, are moved to a temporary container and if the user is restored within 30 days, these objects are restored to them. The user is also restored to any groups they were a member of. After 30 days and if not restored, the user object is permanently deleted and their assigned resources freed. To manage the deleted user object, see deletedItems. + Deletes a user. 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/user-delete?view=graph-rest-1.0 + Find more info here: https://learn.microsoft.com/graph/api/intune-onboarding-user-delete?view=graph-rest-1.0 """ request_info = self.to_delete_request_information( request_configuration @@ -142,10 +142,10 @@ def export_device_and_app_management_data_with_skip_with_top(self,skip: int, top async def get(self,request_configuration: Optional[RequestConfiguration[UserItemRequestBuilderGetQueryParameters]] = None) -> Optional[User]: """ - Retrieve the properties and relationships of user object. This operation returns by default only a subset of the more commonly used properties for each user. These default properties are noted in the Properties section. To get properties that are not returned by default, do a GET operation for the user and specify the properties in a $select OData query option. Because the user resource supports extensions, you can also use the GET operation to get custom properties and extension data in a user instance. Customers through Microsoft Entra ID for customers can also use this API operation to retrieve their details. + Read properties and relationships of the user object. param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: Optional[User] - Find more info here: https://learn.microsoft.com/graph/api/user-get?view=graph-rest-1.0 + Find more info here: https://learn.microsoft.com/graph/api/intune-onboarding-user-get?view=graph-rest-1.0 """ request_info = self.to_get_request_information( request_configuration @@ -167,7 +167,7 @@ async def patch(self,body: User, request_configuration: Optional[RequestConfigur param body: The request body param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: Optional[User] - Find more info here: https://learn.microsoft.com/graph/api/intune-mam-user-update?view=graph-rest-1.0 + Find more info here: https://learn.microsoft.com/graph/api/user-update?view=graph-rest-1.0 """ if body is None: raise TypeError("body cannot be null.") @@ -202,7 +202,7 @@ def reminder_view_with_start_date_time_with_end_date_time(self,end_date_time: st def to_delete_request_information(self,request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> RequestInformation: """ - Delete a user object. When deleted, user resources, including their mailbox and license assignments, are moved to a temporary container and if the user is restored within 30 days, these objects are restored to them. The user is also restored to any groups they were a member of. After 30 days and if not restored, the user object is permanently deleted and their assigned resources freed. To manage the deleted user object, see deletedItems. + Deletes a user. param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: RequestInformation """ @@ -213,7 +213,7 @@ def to_delete_request_information(self,request_configuration: Optional[RequestCo def to_get_request_information(self,request_configuration: Optional[RequestConfiguration[UserItemRequestBuilderGetQueryParameters]] = None) -> RequestInformation: """ - Retrieve the properties and relationships of user object. This operation returns by default only a subset of the more commonly used properties for each user. These default properties are noted in the Properties section. To get properties that are not returned by default, do a GET operation for the user and specify the properties in a $select OData query option. Because the user resource supports extensions, you can also use the GET operation to get custom properties and extension data in a user instance. Customers through Microsoft Entra ID for customers can also use this API operation to retrieve their details. + Read properties and relationships of the user object. param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: RequestInformation """ @@ -923,7 +923,7 @@ class UserItemRequestBuilderDeleteRequestConfiguration(RequestConfiguration[Quer @dataclass class UserItemRequestBuilderGetQueryParameters(): """ - Retrieve the properties and relationships of user object. This operation returns by default only a subset of the more commonly used properties for each user. These default properties are noted in the Properties section. To get properties that are not returned by default, do a GET operation for the user and specify the properties in a $select OData query option. Because the user resource supports extensions, you can also use the GET operation to get custom properties and extension data in a user instance. Customers through Microsoft Entra ID for customers can also use this API operation to retrieve their details. + Read properties and relationships of the user object. """ def get_query_parameter(self,original_name: str) -> str: """ diff --git a/msgraph/generated/users/users_request_builder.py b/msgraph/generated/users/users_request_builder.py index b49452ca308..b06a3358f1e 100644 --- a/msgraph/generated/users/users_request_builder.py +++ b/msgraph/generated/users/users_request_builder.py @@ -74,11 +74,11 @@ async def get(self,request_configuration: Optional[RequestConfiguration[UsersReq async def post(self,body: User, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> Optional[User]: """ - Create a new user object. + Create a new user.The request body contains the user to create. At a minimum, you must specify the required properties for the user. You can optionally specify any other writable properties. param body: The request body param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: Optional[User] - Find more info here: https://learn.microsoft.com/graph/api/intune-onboarding-user-create?view=graph-rest-1.0 + Find more info here: https://learn.microsoft.com/graph/api/user-post-users?view=graph-rest-1.0 """ if body is None: raise TypeError("body cannot be null.") @@ -109,7 +109,7 @@ def to_get_request_information(self,request_configuration: Optional[RequestConfi def to_post_request_information(self,body: User, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> RequestInformation: """ - Create a new user object. + Create a new user.The request body contains the user to create. At a minimum, you must specify the required properties for the user. You can optionally specify any other writable properties. 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/generated/users_with_user_principal_name/users_with_user_principal_name_request_builder.py b/msgraph/generated/users_with_user_principal_name/users_with_user_principal_name_request_builder.py index 75cf2d72789..b0d97bb1f61 100644 --- a/msgraph/generated/users_with_user_principal_name/users_with_user_principal_name_request_builder.py +++ b/msgraph/generated/users_with_user_principal_name/users_with_user_principal_name_request_builder.py @@ -35,10 +35,10 @@ def __init__(self,request_adapter: RequestAdapter, path_parameters: Union[str, d async def delete(self,request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> None: """ - Delete a user object. When deleted, user resources, including their mailbox and license assignments, are moved to a temporary container and if the user is restored within 30 days, these objects are restored to them. The user is also restored to any groups they were a member of. After 30 days and if not restored, the user object is permanently deleted and their assigned resources freed. To manage the deleted user object, see deletedItems. + Deletes a user. 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/user-delete?view=graph-rest-1.0 + Find more info here: https://learn.microsoft.com/graph/api/intune-onboarding-user-delete?view=graph-rest-1.0 """ request_info = self.to_delete_request_information( request_configuration @@ -54,10 +54,10 @@ async def delete(self,request_configuration: Optional[RequestConfiguration[Query async def get(self,request_configuration: Optional[RequestConfiguration[UsersWithUserPrincipalNameRequestBuilderGetQueryParameters]] = None) -> Optional[User]: """ - Retrieve the properties and relationships of user object. This operation returns by default only a subset of the more commonly used properties for each user. These default properties are noted in the Properties section. To get properties that are not returned by default, do a GET operation for the user and specify the properties in a $select OData query option. Because the user resource supports extensions, you can also use the GET operation to get custom properties and extension data in a user instance. Customers through Microsoft Entra ID for customers can also use this API operation to retrieve their details. + Read properties and relationships of the user object. param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: Optional[User] - Find more info here: https://learn.microsoft.com/graph/api/user-get?view=graph-rest-1.0 + Find more info here: https://learn.microsoft.com/graph/api/intune-onboarding-user-get?view=graph-rest-1.0 """ request_info = self.to_get_request_information( request_configuration @@ -79,7 +79,7 @@ async def patch(self,body: User, request_configuration: Optional[RequestConfigur param body: The request body param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: Optional[User] - Find more info here: https://learn.microsoft.com/graph/api/intune-mam-user-update?view=graph-rest-1.0 + Find more info here: https://learn.microsoft.com/graph/api/user-update?view=graph-rest-1.0 """ if body is None: raise TypeError("body cannot be null.") @@ -99,7 +99,7 @@ async def patch(self,body: User, request_configuration: Optional[RequestConfigur def to_delete_request_information(self,request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> RequestInformation: """ - Delete a user object. When deleted, user resources, including their mailbox and license assignments, are moved to a temporary container and if the user is restored within 30 days, these objects are restored to them. The user is also restored to any groups they were a member of. After 30 days and if not restored, the user object is permanently deleted and their assigned resources freed. To manage the deleted user object, see deletedItems. + Deletes a user. param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: RequestInformation """ @@ -110,7 +110,7 @@ def to_delete_request_information(self,request_configuration: Optional[RequestCo def to_get_request_information(self,request_configuration: Optional[RequestConfiguration[UsersWithUserPrincipalNameRequestBuilderGetQueryParameters]] = None) -> RequestInformation: """ - Retrieve the properties and relationships of user object. This operation returns by default only a subset of the more commonly used properties for each user. These default properties are noted in the Properties section. To get properties that are not returned by default, do a GET operation for the user and specify the properties in a $select OData query option. Because the user resource supports extensions, you can also use the GET operation to get custom properties and extension data in a user instance. Customers through Microsoft Entra ID for customers can also use this API operation to retrieve their details. + Read properties and relationships of the user object. param request_configuration: Configuration for the request such as headers, query parameters, and middleware options. Returns: RequestInformation """ @@ -154,7 +154,7 @@ class UsersWithUserPrincipalNameRequestBuilderDeleteRequestConfiguration(Request @dataclass class UsersWithUserPrincipalNameRequestBuilderGetQueryParameters(): """ - Retrieve the properties and relationships of user object. This operation returns by default only a subset of the more commonly used properties for each user. These default properties are noted in the Properties section. To get properties that are not returned by default, do a GET operation for the user and specify the properties in a $select OData query option. Because the user resource supports extensions, you can also use the GET operation to get custom properties and extension data in a user instance. Customers through Microsoft Entra ID for customers can also use this API operation to retrieve their details. + Read properties and relationships of the user object. """ def get_query_parameter(self,original_name: str) -> str: """