msgraph-sdk 1.17.0__py3-none-any.whl → 1.18.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (91) hide show
  1. msgraph/_version.py +1 -1
  2. msgraph/generated/chats/item/messages/messages_request_builder.py +3 -3
  3. msgraph/generated/device_app_management/device_app_management_request_builder.py +2 -2
  4. msgraph/generated/device_app_management/managed_app_policies/item/managed_app_policy_item_request_builder.py +4 -4
  5. msgraph/generated/device_app_management/managed_app_policies/item/target_apps/target_apps_request_builder.py +1 -1
  6. msgraph/generated/device_app_management/managed_app_registrations/item/applied_policies/item/target_apps/target_apps_request_builder.py +1 -1
  7. msgraph/generated/device_app_management/managed_app_registrations/item/intended_policies/item/target_apps/target_apps_request_builder.py +1 -1
  8. msgraph/generated/device_app_management/managed_app_registrations/item/managed_app_registration_item_request_builder.py +4 -4
  9. msgraph/generated/device_app_management/managed_app_registrations/managed_app_registrations_request_builder.py +4 -4
  10. msgraph/generated/device_app_management/managed_app_statuses/item/managed_app_status_item_request_builder.py +4 -4
  11. msgraph/generated/device_app_management/managed_e_books/item/assignments/item/managed_e_book_assignment_item_request_builder.py +3 -3
  12. msgraph/generated/device_app_management/managed_e_books/managed_e_books_request_builder.py +4 -4
  13. msgraph/generated/device_app_management/mobile_apps/item/mobile_app_item_request_builder.py +10 -10
  14. msgraph/generated/device_app_management/mobile_apps/mobile_apps_request_builder.py +3 -3
  15. msgraph/generated/device_management/device_compliance_policies/device_compliance_policies_request_builder.py +4 -4
  16. msgraph/generated/device_management/device_compliance_policies/item/device_compliance_policy_item_request_builder.py +3 -3
  17. msgraph/generated/device_management/device_configurations/device_configurations_request_builder.py +7 -7
  18. msgraph/generated/device_management/device_configurations/item/device_configuration_item_request_builder.py +3 -3
  19. msgraph/generated/device_management/device_enrollment_configurations/device_enrollment_configurations_request_builder.py +7 -7
  20. msgraph/generated/device_management/device_enrollment_configurations/item/device_enrollment_configuration_item_request_builder.py +10 -10
  21. msgraph/generated/device_management/device_management_request_builder.py +2 -2
  22. msgraph/generated/device_management/role_definitions/item/role_definition_item_request_builder.py +3 -3
  23. msgraph/generated/device_management/role_definitions/role_definitions_request_builder.py +4 -4
  24. msgraph/generated/external/connections/item/items/item/external_item_item_request_builder.py +3 -3
  25. msgraph/generated/groups/groups_request_builder.py +3 -3
  26. msgraph/generated/groups/item/conversations/conversations_request_builder.py +3 -3
  27. msgraph/generated/groups/item/conversations/item/conversation_item_request_builder.py +1 -1
  28. msgraph/generated/groups/item/threads/item/conversation_thread_item_request_builder.py +4 -4
  29. msgraph/generated/groups/item/threads/item/posts/posts_request_builder.py +4 -4
  30. msgraph/generated/identity/conditional_access/named_locations/item/named_location_item_request_builder.py +4 -4
  31. msgraph/generated/identity_governance/entitlement_management/access_packages/item/access_package_item_request_builder.py +4 -4
  32. msgraph/generated/identity_governance/entitlement_management/catalogs/item/custom_workflow_extensions/item/custom_callout_extension_item_request_builder.py +3 -3
  33. msgraph/generated/kiota-dom-export.txt +126 -0
  34. msgraph/generated/kiota-lock.json +1 -1
  35. msgraph/generated/models/applied_conditional_access_policy.py +1 -1
  36. msgraph/generated/models/channel.py +1 -1
  37. msgraph/generated/models/chat.py +4 -0
  38. msgraph/generated/models/chat_message.py +1 -1
  39. msgraph/generated/models/chat_message_attachment.py +2 -2
  40. msgraph/generated/models/chat_message_mention.py +1 -1
  41. msgraph/generated/models/chat_message_mentioned_identity_set.py +1 -1
  42. msgraph/generated/models/chat_restrictions.py +54 -0
  43. msgraph/generated/models/cloud_pc_device_image.py +1 -1
  44. msgraph/generated/models/cloud_pc_domain_join_configuration.py +1 -1
  45. msgraph/generated/models/education_assignment.py +2 -2
  46. msgraph/generated/models/education_assignment_defaults.py +1 -1
  47. msgraph/generated/models/education_submission.py +1 -1
  48. msgraph/generated/models/external_connectors/property_.py +1 -1
  49. msgraph/generated/models/invited_user_message_info.py +1 -1
  50. msgraph/generated/models/online_meeting.py +4 -0
  51. msgraph/generated/models/online_meeting_base.py +15 -0
  52. msgraph/generated/models/payload.py +1 -1
  53. msgraph/generated/models/planner_plan_container.py +1 -1
  54. msgraph/generated/models/restore_session_base.py +1 -1
  55. msgraph/generated/models/risk_detection.py +1 -1
  56. msgraph/generated/models/risk_service_principal_activity.py +1 -1
  57. msgraph/generated/models/risky_service_principal.py +1 -1
  58. msgraph/generated/models/risky_user.py +1 -1
  59. msgraph/generated/models/search_request.py +1 -1
  60. msgraph/generated/models/security/alert.py +1 -1
  61. msgraph/generated/models/security/case_operation.py +1 -1
  62. msgraph/generated/models/service_principal_risk_detection.py +2 -2
  63. msgraph/generated/models/sign_in.py +1 -1
  64. msgraph/generated/models/simulation.py +1 -1
  65. msgraph/generated/models/subject_rights_request_history.py +1 -1
  66. msgraph/generated/models/subject_rights_request_stage_detail.py +1 -1
  67. msgraph/generated/models/virtual_event.py +7 -0
  68. msgraph/generated/models/virtual_event_external_information.py +58 -0
  69. msgraph/generated/models/virtual_event_external_registration_information.py +58 -0
  70. msgraph/generated/models/virtual_event_registration.py +7 -0
  71. msgraph/generated/models/workforce_integration.py +2 -2
  72. msgraph/generated/policies/cross_tenant_access_policy/partners/item/identity_synchronization/identity_synchronization_request_builder.py +3 -3
  73. msgraph/generated/sites/item/lists/item/list_item_request_builder.py +4 -4
  74. msgraph/generated/solutions/virtual_events/events/item/set_external_event_information/set_external_event_information_post_request_body.py +50 -0
  75. msgraph/generated/solutions/virtual_events/events/item/set_external_event_information/set_external_event_information_request_builder.py +86 -0
  76. msgraph/generated/solutions/virtual_events/events/item/virtual_event_item_request_builder.py +10 -0
  77. msgraph/generated/solutions/virtual_events/townhalls/get_by_user_id_and_role_with_user_id_with_role/get_by_user_id_and_role_with_user_id_with_role_get_response.py +58 -0
  78. msgraph/generated/solutions/virtual_events/townhalls/get_by_user_id_and_role_with_user_id_with_role/get_by_user_id_and_role_with_user_id_with_role_request_builder.py +143 -0
  79. msgraph/generated/solutions/virtual_events/townhalls/get_by_user_role_with_role/get_by_user_role_with_role_get_response.py +58 -0
  80. msgraph/generated/solutions/virtual_events/townhalls/get_by_user_role_with_role/get_by_user_role_with_role_request_builder.py +141 -0
  81. msgraph/generated/solutions/virtual_events/townhalls/townhalls_request_builder.py +29 -0
  82. msgraph/generated/teams/item/channels/item/members/members_request_builder.py +3 -3
  83. msgraph/generated/teams/item/channels/item/messages/messages_request_builder.py +3 -3
  84. msgraph/generated/tenant_relationships/multi_tenant_organization/multi_tenant_organization_request_builder.py +3 -3
  85. msgraph/generated/users/item/user_item_request_builder.py +8 -8
  86. msgraph/generated/users/users_request_builder.py +4 -4
  87. msgraph/generated/users_with_user_principal_name/users_with_user_principal_name_request_builder.py +8 -8
  88. {msgraph_sdk-1.17.0.dist-info → msgraph_sdk-1.18.0.dist-info}/METADATA +1 -1
  89. {msgraph_sdk-1.17.0.dist-info → msgraph_sdk-1.18.0.dist-info}/RECORD +91 -82
  90. {msgraph_sdk-1.17.0.dist-info → msgraph_sdk-1.18.0.dist-info}/LICENSE +0 -0
  91. {msgraph_sdk-1.17.0.dist-info → msgraph_sdk-1.18.0.dist-info}/WHEEL +0 -0
@@ -0,0 +1,58 @@
1
+ from __future__ import annotations
2
+ from collections.abc import Callable
3
+ from dataclasses import dataclass, field
4
+ from kiota_abstractions.serialization import Parsable, ParseNode, SerializationWriter
5
+ from typing import Any, Optional, TYPE_CHECKING, Union
6
+
7
+ if TYPE_CHECKING:
8
+ from .....models.base_collection_pagination_count_response import BaseCollectionPaginationCountResponse
9
+ from .....models.virtual_event_townhall import VirtualEventTownhall
10
+
11
+ from .....models.base_collection_pagination_count_response import BaseCollectionPaginationCountResponse
12
+
13
+ @dataclass
14
+ class GetByUserIdAndRoleWithUserIdWithRoleGetResponse(BaseCollectionPaginationCountResponse, Parsable):
15
+ # The value property
16
+ value: Optional[list[VirtualEventTownhall]] = None
17
+
18
+ @staticmethod
19
+ def create_from_discriminator_value(parse_node: ParseNode) -> GetByUserIdAndRoleWithUserIdWithRoleGetResponse:
20
+ """
21
+ Creates a new instance of the appropriate class based on discriminator value
22
+ param parse_node: The parse node to use to read the discriminator value and create the object
23
+ Returns: GetByUserIdAndRoleWithUserIdWithRoleGetResponse
24
+ """
25
+ if parse_node is None:
26
+ raise TypeError("parse_node cannot be null.")
27
+ return GetByUserIdAndRoleWithUserIdWithRoleGetResponse()
28
+
29
+ def get_field_deserializers(self,) -> dict[str, Callable[[ParseNode], None]]:
30
+ """
31
+ The deserialization information for the current model
32
+ Returns: dict[str, Callable[[ParseNode], None]]
33
+ """
34
+ from .....models.base_collection_pagination_count_response import BaseCollectionPaginationCountResponse
35
+ from .....models.virtual_event_townhall import VirtualEventTownhall
36
+
37
+ from .....models.base_collection_pagination_count_response import BaseCollectionPaginationCountResponse
38
+ from .....models.virtual_event_townhall import VirtualEventTownhall
39
+
40
+ fields: dict[str, Callable[[Any], None]] = {
41
+ "value": lambda n : setattr(self, 'value', n.get_collection_of_object_values(VirtualEventTownhall)),
42
+ }
43
+ super_fields = super().get_field_deserializers()
44
+ fields.update(super_fields)
45
+ return fields
46
+
47
+ def serialize(self,writer: SerializationWriter) -> None:
48
+ """
49
+ Serializes information the current object
50
+ param writer: Serialization writer to use to serialize this model
51
+ Returns: None
52
+ """
53
+ if writer is None:
54
+ raise TypeError("writer cannot be null.")
55
+ super().serialize(writer)
56
+ writer.write_collection_of_object_values("value", self.value)
57
+
58
+
@@ -0,0 +1,143 @@
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_by_user_id_and_role_with_user_id_with_role_get_response import GetByUserIdAndRoleWithUserIdWithRoleGetResponse
19
+
20
+ class GetByUserIdAndRoleWithUserIdWithRoleRequestBuilder(BaseRequestBuilder):
21
+ """
22
+ Provides operations to call the getByUserIdAndRole method.
23
+ """
24
+ def __init__(self,request_adapter: RequestAdapter, path_parameters: Union[str, dict[str, Any]], role: Optional[str] = None, user_id: Optional[str] = None) -> None:
25
+ """
26
+ Instantiates a new GetByUserIdAndRoleWithUserIdWithRoleRequestBuilder 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
+ param role: Usage: role='{role}'
30
+ param user_id: Usage: userId='{userId}'
31
+ Returns: None
32
+ """
33
+ if isinstance(path_parameters, dict):
34
+ path_parameters['role'] = role
35
+ path_parameters['userId'] = user_id
36
+ super().__init__(request_adapter, "{+baseurl}/solutions/virtualEvents/townhalls/getByUserIdAndRole(userId='{userId}',role='{role}'){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", path_parameters)
37
+
38
+ async def get(self,request_configuration: Optional[RequestConfiguration[GetByUserIdAndRoleWithUserIdWithRoleRequestBuilderGetQueryParameters]] = None) -> Optional[GetByUserIdAndRoleWithUserIdWithRoleGetResponse]:
39
+ """
40
+ Get a list of virtualEventTownhall objects where the specified user is either the organizer or a coorganizer.
41
+ param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
42
+ Returns: Optional[GetByUserIdAndRoleWithUserIdWithRoleGetResponse]
43
+ Find more info here: https://learn.microsoft.com/graph/api/virtualeventtownhall-getbyuseridandrole?view=graph-rest-1.0
44
+ """
45
+ request_info = self.to_get_request_information(
46
+ request_configuration
47
+ )
48
+ from .....models.o_data_errors.o_data_error import ODataError
49
+
50
+ error_mapping: dict[str, type[ParsableFactory]] = {
51
+ "XXX": ODataError,
52
+ }
53
+ if not self.request_adapter:
54
+ raise Exception("Http core is null")
55
+ from .get_by_user_id_and_role_with_user_id_with_role_get_response import GetByUserIdAndRoleWithUserIdWithRoleGetResponse
56
+
57
+ return await self.request_adapter.send_async(request_info, GetByUserIdAndRoleWithUserIdWithRoleGetResponse, error_mapping)
58
+
59
+ def to_get_request_information(self,request_configuration: Optional[RequestConfiguration[GetByUserIdAndRoleWithUserIdWithRoleRequestBuilderGetQueryParameters]] = None) -> RequestInformation:
60
+ """
61
+ Get a list of virtualEventTownhall objects where the specified user is either the organizer or a coorganizer.
62
+ param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
63
+ Returns: RequestInformation
64
+ """
65
+ request_info = RequestInformation(Method.GET, self.url_template, self.path_parameters)
66
+ request_info.configure(request_configuration)
67
+ request_info.headers.try_add("Accept", "application/json")
68
+ return request_info
69
+
70
+ def with_url(self,raw_url: str) -> GetByUserIdAndRoleWithUserIdWithRoleRequestBuilder:
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: GetByUserIdAndRoleWithUserIdWithRoleRequestBuilder
75
+ """
76
+ if raw_url is None:
77
+ raise TypeError("raw_url cannot be null.")
78
+ return GetByUserIdAndRoleWithUserIdWithRoleRequestBuilder(self.request_adapter, raw_url)
79
+
80
+ @dataclass
81
+ class GetByUserIdAndRoleWithUserIdWithRoleRequestBuilderGetQueryParameters():
82
+ """
83
+ Get a list of virtualEventTownhall objects where the specified user is either the organizer or a coorganizer.
84
+ """
85
+ def get_query_parameter(self,original_name: str) -> str:
86
+ """
87
+ Maps the query parameters names to their encoded names for the URI template parsing.
88
+ param original_name: The original query parameter name in the class.
89
+ Returns: str
90
+ """
91
+ if original_name is None:
92
+ raise TypeError("original_name cannot be null.")
93
+ if original_name == "count":
94
+ return "%24count"
95
+ if original_name == "expand":
96
+ return "%24expand"
97
+ if original_name == "filter":
98
+ return "%24filter"
99
+ if original_name == "orderby":
100
+ return "%24orderby"
101
+ if original_name == "search":
102
+ return "%24search"
103
+ if original_name == "select":
104
+ return "%24select"
105
+ if original_name == "skip":
106
+ return "%24skip"
107
+ if original_name == "top":
108
+ return "%24top"
109
+ return original_name
110
+
111
+ # Include count of items
112
+ count: Optional[bool] = None
113
+
114
+ # Expand related entities
115
+ expand: Optional[list[str]] = None
116
+
117
+ # Filter items by property values
118
+ filter: Optional[str] = None
119
+
120
+ # Order items by property values
121
+ orderby: Optional[list[str]] = None
122
+
123
+ # Search items by search phrases
124
+ search: Optional[str] = None
125
+
126
+ # Select properties to be returned
127
+ select: Optional[list[str]] = None
128
+
129
+ # Skip the first n items
130
+ skip: Optional[int] = None
131
+
132
+ # Show only the first n items
133
+ top: Optional[int] = None
134
+
135
+
136
+ @dataclass
137
+ class GetByUserIdAndRoleWithUserIdWithRoleRequestBuilderGetRequestConfiguration(RequestConfiguration[GetByUserIdAndRoleWithUserIdWithRoleRequestBuilderGetQueryParameters]):
138
+ """
139
+ Configuration for the request such as headers, query parameters, and middleware options.
140
+ """
141
+ warn("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.", DeprecationWarning)
142
+
143
+
@@ -0,0 +1,58 @@
1
+ from __future__ import annotations
2
+ from collections.abc import Callable
3
+ from dataclasses import dataclass, field
4
+ from kiota_abstractions.serialization import Parsable, ParseNode, SerializationWriter
5
+ from typing import Any, Optional, TYPE_CHECKING, Union
6
+
7
+ if TYPE_CHECKING:
8
+ from .....models.base_collection_pagination_count_response import BaseCollectionPaginationCountResponse
9
+ from .....models.virtual_event_townhall import VirtualEventTownhall
10
+
11
+ from .....models.base_collection_pagination_count_response import BaseCollectionPaginationCountResponse
12
+
13
+ @dataclass
14
+ class GetByUserRoleWithRoleGetResponse(BaseCollectionPaginationCountResponse, Parsable):
15
+ # The value property
16
+ value: Optional[list[VirtualEventTownhall]] = None
17
+
18
+ @staticmethod
19
+ def create_from_discriminator_value(parse_node: ParseNode) -> GetByUserRoleWithRoleGetResponse:
20
+ """
21
+ Creates a new instance of the appropriate class based on discriminator value
22
+ param parse_node: The parse node to use to read the discriminator value and create the object
23
+ Returns: GetByUserRoleWithRoleGetResponse
24
+ """
25
+ if parse_node is None:
26
+ raise TypeError("parse_node cannot be null.")
27
+ return GetByUserRoleWithRoleGetResponse()
28
+
29
+ def get_field_deserializers(self,) -> dict[str, Callable[[ParseNode], None]]:
30
+ """
31
+ The deserialization information for the current model
32
+ Returns: dict[str, Callable[[ParseNode], None]]
33
+ """
34
+ from .....models.base_collection_pagination_count_response import BaseCollectionPaginationCountResponse
35
+ from .....models.virtual_event_townhall import VirtualEventTownhall
36
+
37
+ from .....models.base_collection_pagination_count_response import BaseCollectionPaginationCountResponse
38
+ from .....models.virtual_event_townhall import VirtualEventTownhall
39
+
40
+ fields: dict[str, Callable[[Any], None]] = {
41
+ "value": lambda n : setattr(self, 'value', n.get_collection_of_object_values(VirtualEventTownhall)),
42
+ }
43
+ super_fields = super().get_field_deserializers()
44
+ fields.update(super_fields)
45
+ return fields
46
+
47
+ def serialize(self,writer: SerializationWriter) -> None:
48
+ """
49
+ Serializes information the current object
50
+ param writer: Serialization writer to use to serialize this model
51
+ Returns: None
52
+ """
53
+ if writer is None:
54
+ raise TypeError("writer cannot be null.")
55
+ super().serialize(writer)
56
+ writer.write_collection_of_object_values("value", self.value)
57
+
58
+
@@ -0,0 +1,141 @@
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_by_user_role_with_role_get_response import GetByUserRoleWithRoleGetResponse
19
+
20
+ class GetByUserRoleWithRoleRequestBuilder(BaseRequestBuilder):
21
+ """
22
+ Provides operations to call the getByUserRole method.
23
+ """
24
+ def __init__(self,request_adapter: RequestAdapter, path_parameters: Union[str, dict[str, Any]], role: Optional[str] = None) -> None:
25
+ """
26
+ Instantiates a new GetByUserRoleWithRoleRequestBuilder 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
+ param role: Usage: role='{role}'
30
+ Returns: None
31
+ """
32
+ if isinstance(path_parameters, dict):
33
+ path_parameters['role'] = role
34
+ super().__init__(request_adapter, "{+baseurl}/solutions/virtualEvents/townhalls/getByUserRole(role='{role}'){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", path_parameters)
35
+
36
+ async def get(self,request_configuration: Optional[RequestConfiguration[GetByUserRoleWithRoleRequestBuilderGetQueryParameters]] = None) -> Optional[GetByUserRoleWithRoleGetResponse]:
37
+ """
38
+ Get a list of virtualEventTownhall objects where the signed-in user is either the organizer or a coorganizer.
39
+ param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
40
+ Returns: Optional[GetByUserRoleWithRoleGetResponse]
41
+ Find more info here: https://learn.microsoft.com/graph/api/virtualeventtownhall-getbyuserrole?view=graph-rest-1.0
42
+ """
43
+ request_info = self.to_get_request_information(
44
+ 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
+ from .get_by_user_role_with_role_get_response import GetByUserRoleWithRoleGetResponse
54
+
55
+ return await self.request_adapter.send_async(request_info, GetByUserRoleWithRoleGetResponse, error_mapping)
56
+
57
+ def to_get_request_information(self,request_configuration: Optional[RequestConfiguration[GetByUserRoleWithRoleRequestBuilderGetQueryParameters]] = None) -> RequestInformation:
58
+ """
59
+ Get a list of virtualEventTownhall objects where the signed-in user is either the organizer or a coorganizer.
60
+ param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
61
+ Returns: RequestInformation
62
+ """
63
+ request_info = RequestInformation(Method.GET, self.url_template, self.path_parameters)
64
+ request_info.configure(request_configuration)
65
+ request_info.headers.try_add("Accept", "application/json")
66
+ return request_info
67
+
68
+ def with_url(self,raw_url: str) -> GetByUserRoleWithRoleRequestBuilder:
69
+ """
70
+ Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
71
+ param raw_url: The raw URL to use for the request builder.
72
+ Returns: GetByUserRoleWithRoleRequestBuilder
73
+ """
74
+ if raw_url is None:
75
+ raise TypeError("raw_url cannot be null.")
76
+ return GetByUserRoleWithRoleRequestBuilder(self.request_adapter, raw_url)
77
+
78
+ @dataclass
79
+ class GetByUserRoleWithRoleRequestBuilderGetQueryParameters():
80
+ """
81
+ Get a list of virtualEventTownhall objects where the signed-in user is either the organizer or a coorganizer.
82
+ """
83
+ def get_query_parameter(self,original_name: str) -> str:
84
+ """
85
+ Maps the query parameters names to their encoded names for the URI template parsing.
86
+ param original_name: The original query parameter name in the class.
87
+ Returns: str
88
+ """
89
+ if original_name is None:
90
+ raise TypeError("original_name cannot be null.")
91
+ if original_name == "count":
92
+ return "%24count"
93
+ if original_name == "expand":
94
+ return "%24expand"
95
+ if original_name == "filter":
96
+ return "%24filter"
97
+ if original_name == "orderby":
98
+ return "%24orderby"
99
+ if original_name == "search":
100
+ return "%24search"
101
+ if original_name == "select":
102
+ return "%24select"
103
+ if original_name == "skip":
104
+ return "%24skip"
105
+ if original_name == "top":
106
+ return "%24top"
107
+ return original_name
108
+
109
+ # Include count of items
110
+ count: Optional[bool] = None
111
+
112
+ # Expand related entities
113
+ expand: Optional[list[str]] = None
114
+
115
+ # Filter items by property values
116
+ filter: Optional[str] = None
117
+
118
+ # Order items by property values
119
+ orderby: Optional[list[str]] = None
120
+
121
+ # Search items by search phrases
122
+ search: Optional[str] = None
123
+
124
+ # Select properties to be returned
125
+ select: Optional[list[str]] = None
126
+
127
+ # Skip the first n items
128
+ skip: Optional[int] = None
129
+
130
+ # Show only the first n items
131
+ top: Optional[int] = None
132
+
133
+
134
+ @dataclass
135
+ class GetByUserRoleWithRoleRequestBuilderGetRequestConfiguration(RequestConfiguration[GetByUserRoleWithRoleRequestBuilderGetQueryParameters]):
136
+ """
137
+ Configuration for the request such as headers, query parameters, and middleware options.
138
+ """
139
+ warn("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.", DeprecationWarning)
140
+
141
+
@@ -18,6 +18,8 @@ if TYPE_CHECKING:
18
18
  from ....models.virtual_event_townhall import VirtualEventTownhall
19
19
  from ....models.virtual_event_townhall_collection_response import VirtualEventTownhallCollectionResponse
20
20
  from .count.count_request_builder import CountRequestBuilder
21
+ from .get_by_user_id_and_role_with_user_id_with_role.get_by_user_id_and_role_with_user_id_with_role_request_builder import GetByUserIdAndRoleWithUserIdWithRoleRequestBuilder
22
+ from .get_by_user_role_with_role.get_by_user_role_with_role_request_builder import GetByUserRoleWithRoleRequestBuilder
21
23
  from .item.virtual_event_townhall_item_request_builder import VirtualEventTownhallItemRequestBuilder
22
24
 
23
25
  class TownhallsRequestBuilder(BaseRequestBuilder):
@@ -67,6 +69,33 @@ class TownhallsRequestBuilder(BaseRequestBuilder):
67
69
 
68
70
  return await self.request_adapter.send_async(request_info, VirtualEventTownhallCollectionResponse, error_mapping)
69
71
 
72
+ def get_by_user_id_and_role_with_user_id_with_role(self,role: str, user_id: str) -> GetByUserIdAndRoleWithUserIdWithRoleRequestBuilder:
73
+ """
74
+ Provides operations to call the getByUserIdAndRole method.
75
+ param role: Usage: role='{role}'
76
+ param user_id: Usage: userId='{userId}'
77
+ Returns: GetByUserIdAndRoleWithUserIdWithRoleRequestBuilder
78
+ """
79
+ if role is None:
80
+ raise TypeError("role cannot be null.")
81
+ if user_id is None:
82
+ raise TypeError("user_id cannot be null.")
83
+ from .get_by_user_id_and_role_with_user_id_with_role.get_by_user_id_and_role_with_user_id_with_role_request_builder import GetByUserIdAndRoleWithUserIdWithRoleRequestBuilder
84
+
85
+ return GetByUserIdAndRoleWithUserIdWithRoleRequestBuilder(self.request_adapter, self.path_parameters, role, user_id)
86
+
87
+ def get_by_user_role_with_role(self,role: str) -> GetByUserRoleWithRoleRequestBuilder:
88
+ """
89
+ Provides operations to call the getByUserRole method.
90
+ param role: Usage: role='{role}'
91
+ Returns: GetByUserRoleWithRoleRequestBuilder
92
+ """
93
+ if role is None:
94
+ raise TypeError("role cannot be null.")
95
+ from .get_by_user_role_with_role.get_by_user_role_with_role_request_builder import GetByUserRoleWithRoleRequestBuilder
96
+
97
+ return GetByUserRoleWithRoleRequestBuilder(self.request_adapter, self.path_parameters, role)
98
+
70
99
  async def post(self,body: VirtualEventTownhall, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> Optional[VirtualEventTownhall]:
71
100
  """
72
101
  Create a new virtualEventTownhall object in draft mode.
@@ -72,11 +72,11 @@ class MembersRequestBuilder(BaseRequestBuilder):
72
72
 
73
73
  async def post(self,body: ConversationMember, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> Optional[ConversationMember]:
74
74
  """
75
- Add a conversationMember to a channel. This operation is allowed only for channels with a membershipType value of private or shared.
75
+ Add a conversationMember to a channel.
76
76
  param body: The request body
77
77
  param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
78
78
  Returns: Optional[ConversationMember]
79
- Find more info here: https://learn.microsoft.com/graph/api/channel-post-members?view=graph-rest-1.0
79
+ Find more info here: https://learn.microsoft.com/graph/api/conversationmember-add?view=graph-rest-1.0
80
80
  """
81
81
  if body is None:
82
82
  raise TypeError("body cannot be null.")
@@ -107,7 +107,7 @@ class MembersRequestBuilder(BaseRequestBuilder):
107
107
 
108
108
  def to_post_request_information(self,body: ConversationMember, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> RequestInformation:
109
109
  """
110
- Add a conversationMember to a channel. This operation is allowed only for channels with a membershipType value of private or shared.
110
+ Add a conversationMember to a channel.
111
111
  param body: The request body
112
112
  param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
113
113
  Returns: RequestInformation
@@ -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 channel or a chat.
74
+ Send a new chatMessage in the specified channel.
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/chatmessage-post?view=graph-rest-1.0
78
+ Find more info here: https://learn.microsoft.com/graph/api/channel-post-messages?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 channel or a chat.
109
+ Send a new chatMessage in the specified channel.
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
@@ -55,11 +55,11 @@ class MultiTenantOrganizationRequestBuilder(BaseRequestBuilder):
55
55
 
56
56
  async def patch(self,body: MultiTenantOrganization, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> Optional[MultiTenantOrganization]:
57
57
  """
58
- Update the properties of a multitenant organization.
58
+ Create a new multitenant organization. By default, the creator tenant becomes an owner tenant upon successful creation. Only owner tenants can manage a multitenant organization.
59
59
  param body: The request body
60
60
  param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
61
61
  Returns: Optional[MultiTenantOrganization]
62
- Find more info here: https://learn.microsoft.com/graph/api/multitenantorganization-update?view=graph-rest-1.0
62
+ Find more info here: https://learn.microsoft.com/graph/api/tenantrelationship-put-multitenantorganization?view=graph-rest-1.0
63
63
  """
64
64
  if body is None:
65
65
  raise TypeError("body cannot be null.")
@@ -90,7 +90,7 @@ class MultiTenantOrganizationRequestBuilder(BaseRequestBuilder):
90
90
 
91
91
  def to_patch_request_information(self,body: MultiTenantOrganization, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> RequestInformation:
92
92
  """
93
- Update the properties of a multitenant organization.
93
+ Create a new multitenant organization. By default, the creator tenant becomes an owner tenant upon successful creation. Only owner tenants can manage a multitenant organization.
94
94
  param body: The request body
95
95
  param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
96
96
  Returns: RequestInformation
@@ -108,10 +108,10 @@ class UserItemRequestBuilder(BaseRequestBuilder):
108
108
 
109
109
  async def delete(self,request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> None:
110
110
  """
111
- Deletes a user.
111
+ 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.
112
112
  param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
113
113
  Returns: None
114
- Find more info here: https://learn.microsoft.com/graph/api/intune-onboarding-user-delete?view=graph-rest-1.0
114
+ Find more info here: https://learn.microsoft.com/graph/api/user-delete?view=graph-rest-1.0
115
115
  """
116
116
  request_info = self.to_delete_request_information(
117
117
  request_configuration
@@ -142,10 +142,10 @@ class UserItemRequestBuilder(BaseRequestBuilder):
142
142
 
143
143
  async def get(self,request_configuration: Optional[RequestConfiguration[UserItemRequestBuilderGetQueryParameters]] = None) -> Optional[User]:
144
144
  """
145
- Read properties and relationships of the user object.
145
+ 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.
146
146
  param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
147
147
  Returns: Optional[User]
148
- Find more info here: https://learn.microsoft.com/graph/api/intune-onboarding-user-get?view=graph-rest-1.0
148
+ Find more info here: https://learn.microsoft.com/graph/api/user-get?view=graph-rest-1.0
149
149
  """
150
150
  request_info = self.to_get_request_information(
151
151
  request_configuration
@@ -167,7 +167,7 @@ class UserItemRequestBuilder(BaseRequestBuilder):
167
167
  param body: The request body
168
168
  param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
169
169
  Returns: Optional[User]
170
- Find more info here: https://learn.microsoft.com/graph/api/user-update?view=graph-rest-1.0
170
+ Find more info here: https://learn.microsoft.com/graph/api/intune-mam-user-update?view=graph-rest-1.0
171
171
  """
172
172
  if body is None:
173
173
  raise TypeError("body cannot be null.")
@@ -202,7 +202,7 @@ class UserItemRequestBuilder(BaseRequestBuilder):
202
202
 
203
203
  def to_delete_request_information(self,request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> RequestInformation:
204
204
  """
205
- Deletes a user.
205
+ 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.
206
206
  param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
207
207
  Returns: RequestInformation
208
208
  """
@@ -213,7 +213,7 @@ class UserItemRequestBuilder(BaseRequestBuilder):
213
213
 
214
214
  def to_get_request_information(self,request_configuration: Optional[RequestConfiguration[UserItemRequestBuilderGetQueryParameters]] = None) -> RequestInformation:
215
215
  """
216
- Read properties and relationships of the user object.
216
+ 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.
217
217
  param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
218
218
  Returns: RequestInformation
219
219
  """
@@ -923,7 +923,7 @@ class UserItemRequestBuilder(BaseRequestBuilder):
923
923
  @dataclass
924
924
  class UserItemRequestBuilderGetQueryParameters():
925
925
  """
926
- Read properties and relationships of the user object.
926
+ 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.
927
927
  """
928
928
  def get_query_parameter(self,original_name: str) -> str:
929
929
  """
@@ -53,10 +53,10 @@ class UsersRequestBuilder(BaseRequestBuilder):
53
53
 
54
54
  async def get(self,request_configuration: Optional[RequestConfiguration[UsersRequestBuilderGetQueryParameters]] = None) -> Optional[UserCollectionResponse]:
55
55
  """
56
- List properties and relationships of the user objects.
56
+ Retrieve a list of user objects.
57
57
  param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
58
58
  Returns: Optional[UserCollectionResponse]
59
- Find more info here: https://learn.microsoft.com/graph/api/intune-mam-user-list?view=graph-rest-1.0
59
+ Find more info here: https://learn.microsoft.com/graph/api/user-list?view=graph-rest-1.0
60
60
  """
61
61
  request_info = self.to_get_request_information(
62
62
  request_configuration
@@ -98,7 +98,7 @@ class UsersRequestBuilder(BaseRequestBuilder):
98
98
 
99
99
  def to_get_request_information(self,request_configuration: Optional[RequestConfiguration[UsersRequestBuilderGetQueryParameters]] = None) -> RequestInformation:
100
100
  """
101
- List properties and relationships of the user objects.
101
+ Retrieve a list of user objects.
102
102
  param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
103
103
  Returns: RequestInformation
104
104
  """
@@ -180,7 +180,7 @@ class UsersRequestBuilder(BaseRequestBuilder):
180
180
  @dataclass
181
181
  class UsersRequestBuilderGetQueryParameters():
182
182
  """
183
- List properties and relationships of the user objects.
183
+ Retrieve a list of user objects.
184
184
  """
185
185
  def get_query_parameter(self,original_name: str) -> str:
186
186
  """