msgraph-sdk 1.18.0__py3-none-any.whl → 1.20.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- msgraph/_version.py +1 -1
- msgraph/generated/app_role_assignments/app_role_assignments_request_builder.py +248 -0
- msgraph/generated/app_role_assignments/count/count_request_builder.py +104 -0
- msgraph/generated/app_role_assignments/delta/delta_get_response.py +58 -0
- msgraph/generated/app_role_assignments/delta/delta_request_builder.py +138 -0
- msgraph/generated/app_role_assignments/get_available_extension_properties/get_available_extension_properties_post_request_body.py +50 -0
- msgraph/generated/app_role_assignments/get_available_extension_properties/get_available_extension_properties_post_response.py +58 -0
- msgraph/generated/app_role_assignments/get_available_extension_properties/get_available_extension_properties_request_builder.py +90 -0
- msgraph/generated/app_role_assignments/get_by_ids/get_by_ids_post_request_body.py +54 -0
- msgraph/generated/app_role_assignments/get_by_ids/get_by_ids_post_response.py +58 -0
- msgraph/generated/app_role_assignments/get_by_ids/get_by_ids_request_builder.py +90 -0
- msgraph/generated/app_role_assignments/item/app_role_assignment_item_request_builder.py +238 -0
- msgraph/generated/app_role_assignments/item/check_member_groups/check_member_groups_post_request_body.py +50 -0
- msgraph/generated/app_role_assignments/item/check_member_groups/check_member_groups_post_response.py +55 -0
- msgraph/generated/app_role_assignments/item/check_member_groups/check_member_groups_request_builder.py +90 -0
- msgraph/generated/app_role_assignments/item/check_member_objects/check_member_objects_post_request_body.py +50 -0
- msgraph/generated/app_role_assignments/item/check_member_objects/check_member_objects_post_response.py +55 -0
- msgraph/generated/app_role_assignments/item/check_member_objects/check_member_objects_request_builder.py +89 -0
- msgraph/generated/app_role_assignments/item/get_member_groups/get_member_groups_post_request_body.py +50 -0
- msgraph/generated/app_role_assignments/item/get_member_groups/get_member_groups_post_response.py +55 -0
- msgraph/generated/app_role_assignments/item/get_member_groups/get_member_groups_request_builder.py +90 -0
- msgraph/generated/app_role_assignments/item/get_member_objects/get_member_objects_post_request_body.py +50 -0
- msgraph/generated/app_role_assignments/item/get_member_objects/get_member_objects_post_response.py +55 -0
- msgraph/generated/app_role_assignments/item/get_member_objects/get_member_objects_request_builder.py +90 -0
- msgraph/generated/app_role_assignments/item/restore/restore_request_builder.py +82 -0
- msgraph/generated/app_role_assignments/validate_properties/validate_properties_post_request_body.py +63 -0
- msgraph/generated/app_role_assignments/validate_properties/validate_properties_request_builder.py +87 -0
- msgraph/generated/applications/item/check_member_groups/check_member_groups_request_builder.py +2 -2
- msgraph/generated/applications/item/get_member_objects/get_member_objects_request_builder.py +2 -2
- msgraph/generated/base_graph_service_client.py +10 -0
- msgraph/generated/chats/item/messages/messages_request_builder.py +3 -3
- msgraph/generated/contacts/item/check_member_groups/check_member_groups_request_builder.py +2 -2
- msgraph/generated/contacts/item/get_member_objects/get_member_objects_request_builder.py +2 -2
- msgraph/generated/contracts/item/check_member_groups/check_member_groups_request_builder.py +2 -2
- msgraph/generated/contracts/item/get_member_objects/get_member_objects_request_builder.py +2 -2
- msgraph/generated/device_app_management/device_app_management_request_builder.py +2 -2
- msgraph/generated/device_app_management/managed_app_policies/item/managed_app_policy_item_request_builder.py +4 -4
- msgraph/generated/device_app_management/managed_app_policies/item/target_apps/target_apps_request_builder.py +1 -1
- msgraph/generated/device_app_management/managed_app_policies/managed_app_policies_request_builder.py +4 -4
- msgraph/generated/device_app_management/managed_app_registrations/item/applied_policies/item/target_apps/target_apps_request_builder.py +1 -1
- msgraph/generated/device_app_management/managed_app_registrations/item/intended_policies/item/target_apps/target_apps_request_builder.py +1 -1
- msgraph/generated/device_app_management/managed_app_registrations/managed_app_registrations_request_builder.py +4 -4
- msgraph/generated/device_app_management/managed_app_statuses/item/managed_app_status_item_request_builder.py +4 -4
- msgraph/generated/device_app_management/managed_app_statuses/managed_app_statuses_request_builder.py +4 -4
- msgraph/generated/device_app_management/managed_e_books/item/assignments/item/managed_e_book_assignment_item_request_builder.py +4 -4
- msgraph/generated/device_app_management/managed_e_books/managed_e_books_request_builder.py +4 -4
- msgraph/generated/device_app_management/mobile_apps/item/mobile_app_item_request_builder.py +10 -10
- msgraph/generated/device_app_management/mobile_apps/mobile_apps_request_builder.py +3 -3
- msgraph/generated/device_management/device_compliance_policies/device_compliance_policies_request_builder.py +7 -7
- msgraph/generated/device_management/device_compliance_policies/item/device_compliance_policy_item_request_builder.py +10 -10
- msgraph/generated/device_management/device_configurations/device_configurations_request_builder.py +7 -7
- msgraph/generated/device_management/device_configurations/item/device_configuration_item_request_builder.py +10 -10
- msgraph/generated/device_management/device_enrollment_configurations/device_enrollment_configurations_request_builder.py +7 -7
- msgraph/generated/device_management/device_enrollment_configurations/item/device_enrollment_configuration_item_request_builder.py +3 -3
- msgraph/generated/device_management/device_management_request_builder.py +2 -2
- msgraph/generated/device_management/role_definitions/item/role_definition_item_request_builder.py +7 -7
- msgraph/generated/device_management/role_definitions/role_definitions_request_builder.py +7 -7
- msgraph/generated/devices/item/check_member_groups/check_member_groups_request_builder.py +2 -2
- msgraph/generated/devices/item/get_member_objects/get_member_objects_request_builder.py +2 -2
- msgraph/generated/directory/deleted_items/item/check_member_groups/check_member_groups_request_builder.py +2 -2
- msgraph/generated/directory/deleted_items/item/get_member_objects/get_member_objects_request_builder.py +2 -2
- msgraph/generated/directory_objects/item/check_member_groups/check_member_groups_request_builder.py +2 -2
- msgraph/generated/directory_objects/item/get_member_objects/get_member_objects_request_builder.py +2 -2
- msgraph/generated/directory_role_templates/item/check_member_groups/check_member_groups_request_builder.py +2 -2
- msgraph/generated/directory_role_templates/item/get_member_objects/get_member_objects_request_builder.py +2 -2
- msgraph/generated/directory_roles/item/check_member_groups/check_member_groups_request_builder.py +2 -2
- msgraph/generated/directory_roles/item/get_member_objects/get_member_objects_request_builder.py +2 -2
- msgraph/generated/drives/item/items/item/retention_label/retention_label_request_builder.py +3 -3
- msgraph/generated/drives/item/items/item/workbook/names/item/range/range_request_builder.py +3 -3
- msgraph/generated/drives/item/items/item/workbook/tables/add/add_request_builder.py +3 -3
- msgraph/generated/drives/item/items/item/workbook/worksheets/item/names/item/range/range_request_builder.py +3 -3
- msgraph/generated/drives/item/items/item/workbook/worksheets/item/tables/add/add_request_builder.py +3 -3
- msgraph/generated/group_setting_templates/item/check_member_groups/check_member_groups_request_builder.py +2 -2
- msgraph/generated/group_setting_templates/item/get_member_objects/get_member_objects_request_builder.py +2 -2
- msgraph/generated/groups/item/check_member_groups/check_member_groups_request_builder.py +2 -2
- msgraph/generated/groups/item/conversations/conversations_request_builder.py +3 -3
- msgraph/generated/groups/item/conversations/item/conversation_item_request_builder.py +5 -5
- msgraph/generated/groups/item/conversations/item/threads/item/reply/reply_request_builder.py +3 -3
- msgraph/generated/groups/item/get_member_objects/get_member_objects_request_builder.py +2 -2
- msgraph/generated/groups/item/threads/item/conversation_thread_item_request_builder.py +4 -4
- msgraph/generated/groups/item/threads/item/posts/posts_request_builder.py +4 -4
- msgraph/generated/groups/item/threads/item/reply/reply_request_builder.py +3 -3
- msgraph/generated/identity/conditional_access/named_locations/item/named_location_item_request_builder.py +10 -10
- msgraph/generated/identity_governance/entitlement_management/catalogs/item/custom_workflow_extensions/item/custom_callout_extension_item_request_builder.py +3 -3
- msgraph/generated/identity_governance/terms_of_use/agreements/item/agreement_item_request_builder.py +4 -4
- msgraph/generated/kiota-dom-export.txt +295 -0
- msgraph/generated/kiota-lock.json +1 -1
- msgraph/generated/models/certification.py +1 -1
- msgraph/generated/models/chat_restrictions.py +1 -1
- msgraph/generated/models/cloud_pc_provisioning_policy.py +7 -0
- msgraph/generated/models/cloud_pc_provisioning_policy_autopatch.py +54 -0
- msgraph/generated/models/device_configuration_device_status.py +3 -0
- msgraph/generated/models/device_configuration_state.py +1 -1
- msgraph/generated/models/device_enrollment_platform_restrictions_configuration.py +1 -1
- msgraph/generated/models/device_enrollment_type.py +5 -5
- msgraph/generated/models/device_management.py +0 -3
- msgraph/generated/models/managed_device_owner_type.py +5 -3
- msgraph/generated/models/online_meeting_base.py +1 -1
- msgraph/generated/models/schedule.py +1 -1
- msgraph/generated/models/shift.py +1 -1
- msgraph/generated/models/user.py +1 -1
- msgraph/generated/models/user_teamwork.py +1 -1
- msgraph/generated/models/workforce_integration.py +2 -2
- msgraph/generated/organization/item/branding/localizations/item/banner_logo/banner_logo_request_builder.py +3 -3
- msgraph/generated/organization/item/check_member_groups/check_member_groups_request_builder.py +2 -2
- msgraph/generated/organization/item/get_member_objects/get_member_objects_request_builder.py +2 -2
- msgraph/generated/organization/item/organization_item_request_builder.py +3 -3
- msgraph/generated/organization/organization_request_builder.py +4 -4
- msgraph/generated/permission_grants/item/check_member_groups/check_member_groups_request_builder.py +2 -2
- msgraph/generated/permission_grants/item/get_member_objects/get_member_objects_request_builder.py +2 -2
- msgraph/generated/security/cases/ediscovery_cases/item/tags/item/child_tags/child_tags_request_builder.py +4 -3
- msgraph/generated/service_principals/item/check_member_groups/check_member_groups_request_builder.py +2 -2
- msgraph/generated/service_principals/item/get_member_objects/get_member_objects_request_builder.py +2 -2
- msgraph/generated/sites/item/lists/item/list_item_request_builder.py +4 -4
- msgraph/generated/teams/item/channels/item/members/item/conversation_member_item_request_builder.py +3 -3
- msgraph/generated/teams/item/channels/item/members/members_request_builder.py +3 -3
- msgraph/generated/teamwork/workforce_integrations/workforce_integrations_request_builder.py +2 -2
- msgraph/generated/tenant_relationships/multi_tenant_organization/multi_tenant_organization_request_builder.py +3 -3
- msgraph/generated/users/item/check_member_groups/check_member_groups_request_builder.py +2 -2
- msgraph/generated/users/item/get_member_objects/get_member_objects_request_builder.py +2 -2
- msgraph/generated/users/item/presence/presence_request_builder.py +4 -4
- msgraph/generated/users/item/user_item_request_builder.py +7 -7
- msgraph/generated/users/users_request_builder.py +4 -4
- msgraph/generated/users_with_user_principal_name/users_with_user_principal_name_request_builder.py +7 -7
- {msgraph_sdk-1.18.0.dist-info → msgraph_sdk-1.20.0.dist-info}/METADATA +7 -9
- {msgraph_sdk-1.18.0.dist-info → msgraph_sdk-1.20.0.dist-info}/RECORD +128 -101
- {msgraph_sdk-1.18.0.dist-info → msgraph_sdk-1.20.0.dist-info}/LICENSE +0 -0
- {msgraph_sdk-1.18.0.dist-info → msgraph_sdk-1.20.0.dist-info}/WHEEL +0 -0
msgraph/generated/app_role_assignments/item/get_member_objects/get_member_objects_request_builder.py
ADDED
@@ -0,0 +1,90 @@
|
|
1
|
+
from __future__ import annotations
|
2
|
+
from collections.abc import Callable
|
3
|
+
from dataclasses import dataclass, field
|
4
|
+
from kiota_abstractions.base_request_builder import BaseRequestBuilder
|
5
|
+
from kiota_abstractions.base_request_configuration import RequestConfiguration
|
6
|
+
from kiota_abstractions.default_query_parameters import QueryParameters
|
7
|
+
from kiota_abstractions.get_path_parameters import get_path_parameters
|
8
|
+
from kiota_abstractions.method import Method
|
9
|
+
from kiota_abstractions.request_adapter import RequestAdapter
|
10
|
+
from kiota_abstractions.request_information import RequestInformation
|
11
|
+
from kiota_abstractions.request_option import RequestOption
|
12
|
+
from kiota_abstractions.serialization import Parsable, ParsableFactory
|
13
|
+
from typing import Any, Optional, TYPE_CHECKING, Union
|
14
|
+
from warnings import warn
|
15
|
+
|
16
|
+
if TYPE_CHECKING:
|
17
|
+
from ....models.o_data_errors.o_data_error import ODataError
|
18
|
+
from .get_member_objects_post_request_body import GetMemberObjectsPostRequestBody
|
19
|
+
from .get_member_objects_post_response import GetMemberObjectsPostResponse
|
20
|
+
|
21
|
+
class GetMemberObjectsRequestBuilder(BaseRequestBuilder):
|
22
|
+
"""
|
23
|
+
Provides operations to call the getMemberObjects method.
|
24
|
+
"""
|
25
|
+
def __init__(self,request_adapter: RequestAdapter, path_parameters: Union[str, dict[str, Any]]) -> None:
|
26
|
+
"""
|
27
|
+
Instantiates a new GetMemberObjectsRequestBuilder and sets the default values.
|
28
|
+
param path_parameters: The raw url or the url-template parameters for the request.
|
29
|
+
param request_adapter: The request adapter to use to execute the requests.
|
30
|
+
Returns: None
|
31
|
+
"""
|
32
|
+
super().__init__(request_adapter, "{+baseurl}/appRoleAssignments/{appRoleAssignment%2Did}/getMemberObjects", path_parameters)
|
33
|
+
|
34
|
+
async def post(self,body: GetMemberObjectsPostRequestBody, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> Optional[GetMemberObjectsPostResponse]:
|
35
|
+
"""
|
36
|
+
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.
|
37
|
+
param body: The request body
|
38
|
+
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
|
39
|
+
Returns: Optional[GetMemberObjectsPostResponse]
|
40
|
+
Find more info here: https://learn.microsoft.com/graph/api/directoryobject-getmemberobjects?view=graph-rest-1.0
|
41
|
+
"""
|
42
|
+
if body is None:
|
43
|
+
raise TypeError("body cannot be null.")
|
44
|
+
request_info = self.to_post_request_information(
|
45
|
+
body, request_configuration
|
46
|
+
)
|
47
|
+
from ....models.o_data_errors.o_data_error import ODataError
|
48
|
+
|
49
|
+
error_mapping: dict[str, type[ParsableFactory]] = {
|
50
|
+
"XXX": ODataError,
|
51
|
+
}
|
52
|
+
if not self.request_adapter:
|
53
|
+
raise Exception("Http core is null")
|
54
|
+
from .get_member_objects_post_response import GetMemberObjectsPostResponse
|
55
|
+
|
56
|
+
return await self.request_adapter.send_async(request_info, GetMemberObjectsPostResponse, error_mapping)
|
57
|
+
|
58
|
+
def to_post_request_information(self,body: GetMemberObjectsPostRequestBody, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> RequestInformation:
|
59
|
+
"""
|
60
|
+
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.
|
61
|
+
param body: The request body
|
62
|
+
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
|
63
|
+
Returns: RequestInformation
|
64
|
+
"""
|
65
|
+
if body is None:
|
66
|
+
raise TypeError("body cannot be null.")
|
67
|
+
request_info = RequestInformation(Method.POST, self.url_template, self.path_parameters)
|
68
|
+
request_info.configure(request_configuration)
|
69
|
+
request_info.headers.try_add("Accept", "application/json")
|
70
|
+
request_info.set_content_from_parsable(self.request_adapter, "application/json", body)
|
71
|
+
return request_info
|
72
|
+
|
73
|
+
def with_url(self,raw_url: str) -> GetMemberObjectsRequestBuilder:
|
74
|
+
"""
|
75
|
+
Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
|
76
|
+
param raw_url: The raw URL to use for the request builder.
|
77
|
+
Returns: GetMemberObjectsRequestBuilder
|
78
|
+
"""
|
79
|
+
if raw_url is None:
|
80
|
+
raise TypeError("raw_url cannot be null.")
|
81
|
+
return GetMemberObjectsRequestBuilder(self.request_adapter, raw_url)
|
82
|
+
|
83
|
+
@dataclass
|
84
|
+
class GetMemberObjectsRequestBuilderPostRequestConfiguration(RequestConfiguration[QueryParameters]):
|
85
|
+
"""
|
86
|
+
Configuration for the request such as headers, query parameters, and middleware options.
|
87
|
+
"""
|
88
|
+
warn("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.", DeprecationWarning)
|
89
|
+
|
90
|
+
|
@@ -0,0 +1,82 @@
|
|
1
|
+
from __future__ import annotations
|
2
|
+
from collections.abc import Callable
|
3
|
+
from dataclasses import dataclass, field
|
4
|
+
from kiota_abstractions.base_request_builder import BaseRequestBuilder
|
5
|
+
from kiota_abstractions.base_request_configuration import RequestConfiguration
|
6
|
+
from kiota_abstractions.default_query_parameters import QueryParameters
|
7
|
+
from kiota_abstractions.get_path_parameters import get_path_parameters
|
8
|
+
from kiota_abstractions.method import Method
|
9
|
+
from kiota_abstractions.request_adapter import RequestAdapter
|
10
|
+
from kiota_abstractions.request_information import RequestInformation
|
11
|
+
from kiota_abstractions.request_option import RequestOption
|
12
|
+
from kiota_abstractions.serialization import Parsable, ParsableFactory
|
13
|
+
from typing import Any, Optional, TYPE_CHECKING, Union
|
14
|
+
from warnings import warn
|
15
|
+
|
16
|
+
if TYPE_CHECKING:
|
17
|
+
from ....models.directory_object import DirectoryObject
|
18
|
+
from ....models.o_data_errors.o_data_error import ODataError
|
19
|
+
|
20
|
+
class RestoreRequestBuilder(BaseRequestBuilder):
|
21
|
+
"""
|
22
|
+
Provides operations to call the restore method.
|
23
|
+
"""
|
24
|
+
def __init__(self,request_adapter: RequestAdapter, path_parameters: Union[str, dict[str, Any]]) -> None:
|
25
|
+
"""
|
26
|
+
Instantiates a new RestoreRequestBuilder and sets the default values.
|
27
|
+
param path_parameters: The raw url or the url-template parameters for the request.
|
28
|
+
param request_adapter: The request adapter to use to execute the requests.
|
29
|
+
Returns: None
|
30
|
+
"""
|
31
|
+
super().__init__(request_adapter, "{+baseurl}/appRoleAssignments/{appRoleAssignment%2Did}/restore", path_parameters)
|
32
|
+
|
33
|
+
async def post(self,request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> Optional[DirectoryObject]:
|
34
|
+
"""
|
35
|
+
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.
|
36
|
+
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
|
37
|
+
Returns: Optional[DirectoryObject]
|
38
|
+
Find more info here: https://learn.microsoft.com/graph/api/directory-deleteditems-restore?view=graph-rest-1.0
|
39
|
+
"""
|
40
|
+
request_info = self.to_post_request_information(
|
41
|
+
request_configuration
|
42
|
+
)
|
43
|
+
from ....models.o_data_errors.o_data_error import ODataError
|
44
|
+
|
45
|
+
error_mapping: dict[str, type[ParsableFactory]] = {
|
46
|
+
"XXX": ODataError,
|
47
|
+
}
|
48
|
+
if not self.request_adapter:
|
49
|
+
raise Exception("Http core is null")
|
50
|
+
from ....models.directory_object import DirectoryObject
|
51
|
+
|
52
|
+
return await self.request_adapter.send_async(request_info, DirectoryObject, error_mapping)
|
53
|
+
|
54
|
+
def to_post_request_information(self,request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> RequestInformation:
|
55
|
+
"""
|
56
|
+
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.
|
57
|
+
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
|
58
|
+
Returns: RequestInformation
|
59
|
+
"""
|
60
|
+
request_info = RequestInformation(Method.POST, self.url_template, self.path_parameters)
|
61
|
+
request_info.configure(request_configuration)
|
62
|
+
request_info.headers.try_add("Accept", "application/json")
|
63
|
+
return request_info
|
64
|
+
|
65
|
+
def with_url(self,raw_url: str) -> RestoreRequestBuilder:
|
66
|
+
"""
|
67
|
+
Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
|
68
|
+
param raw_url: The raw URL to use for the request builder.
|
69
|
+
Returns: RestoreRequestBuilder
|
70
|
+
"""
|
71
|
+
if raw_url is None:
|
72
|
+
raise TypeError("raw_url cannot be null.")
|
73
|
+
return RestoreRequestBuilder(self.request_adapter, raw_url)
|
74
|
+
|
75
|
+
@dataclass
|
76
|
+
class RestoreRequestBuilderPostRequestConfiguration(RequestConfiguration[QueryParameters]):
|
77
|
+
"""
|
78
|
+
Configuration for the request such as headers, query parameters, and middleware options.
|
79
|
+
"""
|
80
|
+
warn("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.", DeprecationWarning)
|
81
|
+
|
82
|
+
|
msgraph/generated/app_role_assignments/validate_properties/validate_properties_post_request_body.py
ADDED
@@ -0,0 +1,63 @@
|
|
1
|
+
from __future__ import annotations
|
2
|
+
from collections.abc import Callable
|
3
|
+
from dataclasses import dataclass, field
|
4
|
+
from kiota_abstractions.serialization import AdditionalDataHolder, Parsable, ParseNode, SerializationWriter
|
5
|
+
from kiota_abstractions.store import BackedModel, BackingStore, BackingStoreFactorySingleton
|
6
|
+
from typing import Any, Optional, TYPE_CHECKING, Union
|
7
|
+
from uuid import UUID
|
8
|
+
|
9
|
+
@dataclass
|
10
|
+
class ValidatePropertiesPostRequestBody(AdditionalDataHolder, BackedModel, Parsable):
|
11
|
+
# Stores model information.
|
12
|
+
backing_store: BackingStore = field(default_factory=BackingStoreFactorySingleton(backing_store_factory=None).backing_store_factory.create_backing_store, repr=False)
|
13
|
+
|
14
|
+
# Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
15
|
+
additional_data: dict[str, Any] = field(default_factory=dict)
|
16
|
+
# The displayName property
|
17
|
+
display_name: Optional[str] = None
|
18
|
+
# The entityType property
|
19
|
+
entity_type: Optional[str] = None
|
20
|
+
# The mailNickname property
|
21
|
+
mail_nickname: Optional[str] = None
|
22
|
+
# The onBehalfOfUserId property
|
23
|
+
on_behalf_of_user_id: Optional[UUID] = None
|
24
|
+
|
25
|
+
@staticmethod
|
26
|
+
def create_from_discriminator_value(parse_node: ParseNode) -> ValidatePropertiesPostRequestBody:
|
27
|
+
"""
|
28
|
+
Creates a new instance of the appropriate class based on discriminator value
|
29
|
+
param parse_node: The parse node to use to read the discriminator value and create the object
|
30
|
+
Returns: ValidatePropertiesPostRequestBody
|
31
|
+
"""
|
32
|
+
if parse_node is None:
|
33
|
+
raise TypeError("parse_node cannot be null.")
|
34
|
+
return ValidatePropertiesPostRequestBody()
|
35
|
+
|
36
|
+
def get_field_deserializers(self,) -> dict[str, Callable[[ParseNode], None]]:
|
37
|
+
"""
|
38
|
+
The deserialization information for the current model
|
39
|
+
Returns: dict[str, Callable[[ParseNode], None]]
|
40
|
+
"""
|
41
|
+
fields: dict[str, Callable[[Any], None]] = {
|
42
|
+
"displayName": lambda n : setattr(self, 'display_name', n.get_str_value()),
|
43
|
+
"entityType": lambda n : setattr(self, 'entity_type', n.get_str_value()),
|
44
|
+
"mailNickname": lambda n : setattr(self, 'mail_nickname', n.get_str_value()),
|
45
|
+
"onBehalfOfUserId": lambda n : setattr(self, 'on_behalf_of_user_id', n.get_uuid_value()),
|
46
|
+
}
|
47
|
+
return fields
|
48
|
+
|
49
|
+
def serialize(self,writer: SerializationWriter) -> None:
|
50
|
+
"""
|
51
|
+
Serializes information the current object
|
52
|
+
param writer: Serialization writer to use to serialize this model
|
53
|
+
Returns: None
|
54
|
+
"""
|
55
|
+
if writer is None:
|
56
|
+
raise TypeError("writer cannot be null.")
|
57
|
+
writer.write_str_value("displayName", self.display_name)
|
58
|
+
writer.write_str_value("entityType", self.entity_type)
|
59
|
+
writer.write_str_value("mailNickname", self.mail_nickname)
|
60
|
+
writer.write_uuid_value("onBehalfOfUserId", self.on_behalf_of_user_id)
|
61
|
+
writer.write_additional_data_value(self.additional_data)
|
62
|
+
|
63
|
+
|
msgraph/generated/app_role_assignments/validate_properties/validate_properties_request_builder.py
ADDED
@@ -0,0 +1,87 @@
|
|
1
|
+
from __future__ import annotations
|
2
|
+
from collections.abc import Callable
|
3
|
+
from dataclasses import dataclass, field
|
4
|
+
from kiota_abstractions.base_request_builder import BaseRequestBuilder
|
5
|
+
from kiota_abstractions.base_request_configuration import RequestConfiguration
|
6
|
+
from kiota_abstractions.default_query_parameters import QueryParameters
|
7
|
+
from kiota_abstractions.get_path_parameters import get_path_parameters
|
8
|
+
from kiota_abstractions.method import Method
|
9
|
+
from kiota_abstractions.request_adapter import RequestAdapter
|
10
|
+
from kiota_abstractions.request_information import RequestInformation
|
11
|
+
from kiota_abstractions.request_option import RequestOption
|
12
|
+
from kiota_abstractions.serialization import Parsable, ParsableFactory
|
13
|
+
from typing import Any, Optional, TYPE_CHECKING, Union
|
14
|
+
from warnings import warn
|
15
|
+
|
16
|
+
if TYPE_CHECKING:
|
17
|
+
from ...models.o_data_errors.o_data_error import ODataError
|
18
|
+
from .validate_properties_post_request_body import ValidatePropertiesPostRequestBody
|
19
|
+
|
20
|
+
class ValidatePropertiesRequestBuilder(BaseRequestBuilder):
|
21
|
+
"""
|
22
|
+
Provides operations to call the validateProperties method.
|
23
|
+
"""
|
24
|
+
def __init__(self,request_adapter: RequestAdapter, path_parameters: Union[str, dict[str, Any]]) -> None:
|
25
|
+
"""
|
26
|
+
Instantiates a new ValidatePropertiesRequestBuilder and sets the default values.
|
27
|
+
param path_parameters: The raw url or the url-template parameters for the request.
|
28
|
+
param request_adapter: The request adapter to use to execute the requests.
|
29
|
+
Returns: None
|
30
|
+
"""
|
31
|
+
super().__init__(request_adapter, "{+baseurl}/appRoleAssignments/validateProperties", path_parameters)
|
32
|
+
|
33
|
+
async def post(self,body: ValidatePropertiesPostRequestBody, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> None:
|
34
|
+
"""
|
35
|
+
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.
|
36
|
+
param body: The request body
|
37
|
+
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
|
38
|
+
Returns: None
|
39
|
+
Find more info here: https://learn.microsoft.com/graph/api/directoryobject-validateproperties?view=graph-rest-1.0
|
40
|
+
"""
|
41
|
+
if body is None:
|
42
|
+
raise TypeError("body cannot be null.")
|
43
|
+
request_info = self.to_post_request_information(
|
44
|
+
body, request_configuration
|
45
|
+
)
|
46
|
+
from ...models.o_data_errors.o_data_error import ODataError
|
47
|
+
|
48
|
+
error_mapping: dict[str, type[ParsableFactory]] = {
|
49
|
+
"XXX": ODataError,
|
50
|
+
}
|
51
|
+
if not self.request_adapter:
|
52
|
+
raise Exception("Http core is null")
|
53
|
+
return await self.request_adapter.send_no_response_content_async(request_info, error_mapping)
|
54
|
+
|
55
|
+
def to_post_request_information(self,body: ValidatePropertiesPostRequestBody, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> RequestInformation:
|
56
|
+
"""
|
57
|
+
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.
|
58
|
+
param body: The request body
|
59
|
+
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
|
60
|
+
Returns: RequestInformation
|
61
|
+
"""
|
62
|
+
if body is None:
|
63
|
+
raise TypeError("body cannot be null.")
|
64
|
+
request_info = RequestInformation(Method.POST, self.url_template, self.path_parameters)
|
65
|
+
request_info.configure(request_configuration)
|
66
|
+
request_info.headers.try_add("Accept", "application/json")
|
67
|
+
request_info.set_content_from_parsable(self.request_adapter, "application/json", body)
|
68
|
+
return request_info
|
69
|
+
|
70
|
+
def with_url(self,raw_url: str) -> ValidatePropertiesRequestBuilder:
|
71
|
+
"""
|
72
|
+
Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
|
73
|
+
param raw_url: The raw URL to use for the request builder.
|
74
|
+
Returns: ValidatePropertiesRequestBuilder
|
75
|
+
"""
|
76
|
+
if raw_url is None:
|
77
|
+
raise TypeError("raw_url cannot be null.")
|
78
|
+
return ValidatePropertiesRequestBuilder(self.request_adapter, raw_url)
|
79
|
+
|
80
|
+
@dataclass
|
81
|
+
class ValidatePropertiesRequestBuilderPostRequestConfiguration(RequestConfiguration[QueryParameters]):
|
82
|
+
"""
|
83
|
+
Configuration for the request such as headers, query parameters, and middleware options.
|
84
|
+
"""
|
85
|
+
warn("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.", DeprecationWarning)
|
86
|
+
|
87
|
+
|
msgraph/generated/applications/item/check_member_groups/check_member_groups_request_builder.py
CHANGED
@@ -33,7 +33,7 @@ class CheckMemberGroupsRequestBuilder(BaseRequestBuilder):
|
|
33
33
|
|
34
34
|
async def post(self,body: CheckMemberGroupsPostRequestBody, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> Optional[CheckMemberGroupsPostResponse]:
|
35
35
|
"""
|
36
|
-
Check for membership in a specified list of group IDs, and return from that list
|
36
|
+
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.
|
37
37
|
param body: The request body
|
38
38
|
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
|
39
39
|
Returns: Optional[CheckMemberGroupsPostResponse]
|
@@ -57,7 +57,7 @@ class CheckMemberGroupsRequestBuilder(BaseRequestBuilder):
|
|
57
57
|
|
58
58
|
def to_post_request_information(self,body: CheckMemberGroupsPostRequestBody, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> RequestInformation:
|
59
59
|
"""
|
60
|
-
Check for membership in a specified list of group IDs, and return from that list
|
60
|
+
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.
|
61
61
|
param body: The request body
|
62
62
|
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
|
63
63
|
Returns: RequestInformation
|
msgraph/generated/applications/item/get_member_objects/get_member_objects_request_builder.py
CHANGED
@@ -33,7 +33,7 @@ class GetMemberObjectsRequestBuilder(BaseRequestBuilder):
|
|
33
33
|
|
34
34
|
async def post(self,body: GetMemberObjectsPostRequestBody, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> Optional[GetMemberObjectsPostResponse]:
|
35
35
|
"""
|
36
|
-
Return all IDs for the groups, administrative units, and directory roles that a user
|
36
|
+
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.
|
37
37
|
param body: The request body
|
38
38
|
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
|
39
39
|
Returns: Optional[GetMemberObjectsPostResponse]
|
@@ -57,7 +57,7 @@ class GetMemberObjectsRequestBuilder(BaseRequestBuilder):
|
|
57
57
|
|
58
58
|
def to_post_request_information(self,body: GetMemberObjectsPostRequestBody, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> RequestInformation:
|
59
59
|
"""
|
60
|
-
Return all IDs for the groups, administrative units, and directory roles that a user
|
60
|
+
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.
|
61
61
|
param body: The request body
|
62
62
|
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
|
63
63
|
Returns: RequestInformation
|
@@ -24,6 +24,7 @@ if TYPE_CHECKING:
|
|
24
24
|
from .applications_with_unique_name.applications_with_unique_name_request_builder import ApplicationsWithUniqueNameRequestBuilder
|
25
25
|
from .application_templates.application_templates_request_builder import ApplicationTemplatesRequestBuilder
|
26
26
|
from .app_catalogs.app_catalogs_request_builder import AppCatalogsRequestBuilder
|
27
|
+
from .app_role_assignments.app_role_assignments_request_builder import AppRoleAssignmentsRequestBuilder
|
27
28
|
from .audit_logs.audit_logs_request_builder import AuditLogsRequestBuilder
|
28
29
|
from .authentication_methods_policy.authentication_methods_policy_request_builder import AuthenticationMethodsPolicyRequestBuilder
|
29
30
|
from .authentication_method_configurations.authentication_method_configurations_request_builder import AuthenticationMethodConfigurationsRequestBuilder
|
@@ -238,6 +239,15 @@ class BaseGraphServiceClient(BaseRequestBuilder):
|
|
238
239
|
|
239
240
|
return AppCatalogsRequestBuilder(self.request_adapter, self.path_parameters)
|
240
241
|
|
242
|
+
@property
|
243
|
+
def app_role_assignments(self) -> AppRoleAssignmentsRequestBuilder:
|
244
|
+
"""
|
245
|
+
Provides operations to manage the collection of appRoleAssignment entities.
|
246
|
+
"""
|
247
|
+
from .app_role_assignments.app_role_assignments_request_builder import AppRoleAssignmentsRequestBuilder
|
248
|
+
|
249
|
+
return AppRoleAssignmentsRequestBuilder(self.request_adapter, self.path_parameters)
|
250
|
+
|
241
251
|
@property
|
242
252
|
def application_templates(self) -> ApplicationTemplatesRequestBuilder:
|
243
253
|
"""
|
@@ -71,11 +71,11 @@ class MessagesRequestBuilder(BaseRequestBuilder):
|
|
71
71
|
|
72
72
|
async def post(self,body: ChatMessage, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> Optional[ChatMessage]:
|
73
73
|
"""
|
74
|
-
Send a new chatMessage in the specified
|
74
|
+
Send a new chatMessage in the specified channel or a chat.
|
75
75
|
param body: The request body
|
76
76
|
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
|
77
77
|
Returns: Optional[ChatMessage]
|
78
|
-
Find more info here: https://learn.microsoft.com/graph/api/
|
78
|
+
Find more info here: https://learn.microsoft.com/graph/api/chatmessage-post?view=graph-rest-1.0
|
79
79
|
"""
|
80
80
|
if body is None:
|
81
81
|
raise TypeError("body cannot be null.")
|
@@ -106,7 +106,7 @@ class MessagesRequestBuilder(BaseRequestBuilder):
|
|
106
106
|
|
107
107
|
def to_post_request_information(self,body: ChatMessage, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> RequestInformation:
|
108
108
|
"""
|
109
|
-
Send a new chatMessage in the specified
|
109
|
+
Send a new chatMessage in the specified channel or a chat.
|
110
110
|
param body: The request body
|
111
111
|
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
|
112
112
|
Returns: RequestInformation
|
@@ -33,7 +33,7 @@ class CheckMemberGroupsRequestBuilder(BaseRequestBuilder):
|
|
33
33
|
|
34
34
|
async def post(self,body: CheckMemberGroupsPostRequestBody, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> Optional[CheckMemberGroupsPostResponse]:
|
35
35
|
"""
|
36
|
-
Check for membership in a specified list of group IDs, and return from that list
|
36
|
+
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.
|
37
37
|
param body: The request body
|
38
38
|
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
|
39
39
|
Returns: Optional[CheckMemberGroupsPostResponse]
|
@@ -57,7 +57,7 @@ class CheckMemberGroupsRequestBuilder(BaseRequestBuilder):
|
|
57
57
|
|
58
58
|
def to_post_request_information(self,body: CheckMemberGroupsPostRequestBody, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> RequestInformation:
|
59
59
|
"""
|
60
|
-
Check for membership in a specified list of group IDs, and return from that list
|
60
|
+
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.
|
61
61
|
param body: The request body
|
62
62
|
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
|
63
63
|
Returns: RequestInformation
|
@@ -33,7 +33,7 @@ class GetMemberObjectsRequestBuilder(BaseRequestBuilder):
|
|
33
33
|
|
34
34
|
async def post(self,body: GetMemberObjectsPostRequestBody, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> Optional[GetMemberObjectsPostResponse]:
|
35
35
|
"""
|
36
|
-
Return all IDs for the groups, administrative units, and directory roles that a user
|
36
|
+
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.
|
37
37
|
param body: The request body
|
38
38
|
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
|
39
39
|
Returns: Optional[GetMemberObjectsPostResponse]
|
@@ -57,7 +57,7 @@ class GetMemberObjectsRequestBuilder(BaseRequestBuilder):
|
|
57
57
|
|
58
58
|
def to_post_request_information(self,body: GetMemberObjectsPostRequestBody, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> RequestInformation:
|
59
59
|
"""
|
60
|
-
Return all IDs for the groups, administrative units, and directory roles that a user
|
60
|
+
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.
|
61
61
|
param body: The request body
|
62
62
|
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
|
63
63
|
Returns: RequestInformation
|
@@ -33,7 +33,7 @@ class CheckMemberGroupsRequestBuilder(BaseRequestBuilder):
|
|
33
33
|
|
34
34
|
async def post(self,body: CheckMemberGroupsPostRequestBody, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> Optional[CheckMemberGroupsPostResponse]:
|
35
35
|
"""
|
36
|
-
Check for membership in a specified list of group IDs, and return from that list
|
36
|
+
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.
|
37
37
|
param body: The request body
|
38
38
|
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
|
39
39
|
Returns: Optional[CheckMemberGroupsPostResponse]
|
@@ -57,7 +57,7 @@ class CheckMemberGroupsRequestBuilder(BaseRequestBuilder):
|
|
57
57
|
|
58
58
|
def to_post_request_information(self,body: CheckMemberGroupsPostRequestBody, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> RequestInformation:
|
59
59
|
"""
|
60
|
-
Check for membership in a specified list of group IDs, and return from that list
|
60
|
+
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.
|
61
61
|
param body: The request body
|
62
62
|
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
|
63
63
|
Returns: RequestInformation
|
@@ -33,7 +33,7 @@ class GetMemberObjectsRequestBuilder(BaseRequestBuilder):
|
|
33
33
|
|
34
34
|
async def post(self,body: GetMemberObjectsPostRequestBody, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> Optional[GetMemberObjectsPostResponse]:
|
35
35
|
"""
|
36
|
-
Return all IDs for the groups, administrative units, and directory roles that a user
|
36
|
+
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.
|
37
37
|
param body: The request body
|
38
38
|
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
|
39
39
|
Returns: Optional[GetMemberObjectsPostResponse]
|
@@ -57,7 +57,7 @@ class GetMemberObjectsRequestBuilder(BaseRequestBuilder):
|
|
57
57
|
|
58
58
|
def to_post_request_information(self,body: GetMemberObjectsPostRequestBody, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> RequestInformation:
|
59
59
|
"""
|
60
|
-
Return all IDs for the groups, administrative units, and directory roles that a user
|
60
|
+
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.
|
61
61
|
param body: The request body
|
62
62
|
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
|
63
63
|
Returns: RequestInformation
|
@@ -50,7 +50,7 @@ class DeviceAppManagementRequestBuilder(BaseRequestBuilder):
|
|
50
50
|
Read properties and relationships of the deviceAppManagement object.
|
51
51
|
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
|
52
52
|
Returns: Optional[DeviceAppManagement]
|
53
|
-
Find more info here: https://learn.microsoft.com/graph/api/intune-
|
53
|
+
Find more info here: https://learn.microsoft.com/graph/api/intune-partnerintegration-deviceappmanagement-get?view=graph-rest-1.0
|
54
54
|
"""
|
55
55
|
request_info = self.to_get_request_information(
|
56
56
|
request_configuration
|
@@ -72,7 +72,7 @@ class DeviceAppManagementRequestBuilder(BaseRequestBuilder):
|
|
72
72
|
param body: The request body
|
73
73
|
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
|
74
74
|
Returns: Optional[DeviceAppManagement]
|
75
|
-
Find more info here: https://learn.microsoft.com/graph/api/intune-
|
75
|
+
Find more info here: https://learn.microsoft.com/graph/api/intune-policyset-deviceappmanagement-update?view=graph-rest-1.0
|
76
76
|
"""
|
77
77
|
if body is None:
|
78
78
|
raise TypeError("body cannot be null.")
|
@@ -51,10 +51,10 @@ class ManagedAppPolicyItemRequestBuilder(BaseRequestBuilder):
|
|
51
51
|
|
52
52
|
async def get(self,request_configuration: Optional[RequestConfiguration[ManagedAppPolicyItemRequestBuilderGetQueryParameters]] = None) -> Optional[ManagedAppPolicy]:
|
53
53
|
"""
|
54
|
-
Read properties and relationships of the
|
54
|
+
Read properties and relationships of the managedAppConfiguration object.
|
55
55
|
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
|
56
56
|
Returns: Optional[ManagedAppPolicy]
|
57
|
-
Find more info here: https://learn.microsoft.com/graph/api/intune-mam-
|
57
|
+
Find more info here: https://learn.microsoft.com/graph/api/intune-mam-managedappconfiguration-get?view=graph-rest-1.0
|
58
58
|
"""
|
59
59
|
request_info = self.to_get_request_information(
|
60
60
|
request_configuration
|
@@ -106,7 +106,7 @@ class ManagedAppPolicyItemRequestBuilder(BaseRequestBuilder):
|
|
106
106
|
|
107
107
|
def to_get_request_information(self,request_configuration: Optional[RequestConfiguration[ManagedAppPolicyItemRequestBuilderGetQueryParameters]] = None) -> RequestInformation:
|
108
108
|
"""
|
109
|
-
Read properties and relationships of the
|
109
|
+
Read properties and relationships of the managedAppConfiguration object.
|
110
110
|
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
|
111
111
|
Returns: RequestInformation
|
112
112
|
"""
|
@@ -159,7 +159,7 @@ class ManagedAppPolicyItemRequestBuilder(BaseRequestBuilder):
|
|
159
159
|
@dataclass
|
160
160
|
class ManagedAppPolicyItemRequestBuilderGetQueryParameters():
|
161
161
|
"""
|
162
|
-
Read properties and relationships of the
|
162
|
+
Read properties and relationships of the managedAppConfiguration object.
|
163
163
|
"""
|
164
164
|
def get_query_parameter(self,original_name: str) -> str:
|
165
165
|
"""
|
@@ -36,7 +36,7 @@ class TargetAppsRequestBuilder(BaseRequestBuilder):
|
|
36
36
|
param body: The request body
|
37
37
|
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
|
38
38
|
Returns: None
|
39
|
-
Find more info here: https://learn.microsoft.com/graph/api/intune-mam-
|
39
|
+
Find more info here: https://learn.microsoft.com/graph/api/intune-mam-managedapppolicy-targetapps?view=graph-rest-1.0
|
40
40
|
"""
|
41
41
|
if body is None:
|
42
42
|
raise TypeError("body cannot be null.")
|
msgraph/generated/device_app_management/managed_app_policies/managed_app_policies_request_builder.py
CHANGED
@@ -49,10 +49,10 @@ class ManagedAppPoliciesRequestBuilder(BaseRequestBuilder):
|
|
49
49
|
|
50
50
|
async def get(self,request_configuration: Optional[RequestConfiguration[ManagedAppPoliciesRequestBuilderGetQueryParameters]] = None) -> Optional[ManagedAppPolicyCollectionResponse]:
|
51
51
|
"""
|
52
|
-
List properties and relationships of the
|
52
|
+
List properties and relationships of the managedAppConfiguration objects.
|
53
53
|
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
|
54
54
|
Returns: Optional[ManagedAppPolicyCollectionResponse]
|
55
|
-
Find more info here: https://learn.microsoft.com/graph/api/intune-mam-
|
55
|
+
Find more info here: https://learn.microsoft.com/graph/api/intune-mam-managedappconfiguration-list?view=graph-rest-1.0
|
56
56
|
"""
|
57
57
|
request_info = self.to_get_request_information(
|
58
58
|
request_configuration
|
@@ -93,7 +93,7 @@ class ManagedAppPoliciesRequestBuilder(BaseRequestBuilder):
|
|
93
93
|
|
94
94
|
def to_get_request_information(self,request_configuration: Optional[RequestConfiguration[ManagedAppPoliciesRequestBuilderGetQueryParameters]] = None) -> RequestInformation:
|
95
95
|
"""
|
96
|
-
List properties and relationships of the
|
96
|
+
List properties and relationships of the managedAppConfiguration objects.
|
97
97
|
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
|
98
98
|
Returns: RequestInformation
|
99
99
|
"""
|
@@ -139,7 +139,7 @@ class ManagedAppPoliciesRequestBuilder(BaseRequestBuilder):
|
|
139
139
|
@dataclass
|
140
140
|
class ManagedAppPoliciesRequestBuilderGetQueryParameters():
|
141
141
|
"""
|
142
|
-
List properties and relationships of the
|
142
|
+
List properties and relationships of the managedAppConfiguration objects.
|
143
143
|
"""
|
144
144
|
def get_query_parameter(self,original_name: str) -> str:
|
145
145
|
"""
|
@@ -36,7 +36,7 @@ class TargetAppsRequestBuilder(BaseRequestBuilder):
|
|
36
36
|
param body: The request body
|
37
37
|
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
|
38
38
|
Returns: None
|
39
|
-
Find more info here: https://learn.microsoft.com/graph/api/intune-mam-
|
39
|
+
Find more info here: https://learn.microsoft.com/graph/api/intune-mam-managedapppolicy-targetapps?view=graph-rest-1.0
|
40
40
|
"""
|
41
41
|
if body is None:
|
42
42
|
raise TypeError("body cannot be null.")
|
@@ -36,7 +36,7 @@ class TargetAppsRequestBuilder(BaseRequestBuilder):
|
|
36
36
|
param body: The request body
|
37
37
|
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
|
38
38
|
Returns: None
|
39
|
-
Find more info here: https://learn.microsoft.com/graph/api/intune-mam-
|
39
|
+
Find more info here: https://learn.microsoft.com/graph/api/intune-mam-managedapppolicy-targetapps?view=graph-rest-1.0
|
40
40
|
"""
|
41
41
|
if body is None:
|
42
42
|
raise TypeError("body cannot be null.")
|