Skip to content

Commit bb6fcf0

Browse files
Microsoft Graph DevX ToolingMicrosoft Graph DevX Tooling
authored andcommitted
Update generated files with build 102225
1 parent c7e4daa commit bb6fcf0

72 files changed

Lines changed: 1421 additions & 179 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

msgraph/generated/chats/item/messages/messages_request_builder.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ async def get(self,request_configuration: Optional[MessagesRequestBuilderGetRequ
7373

7474
async def post(self,body: Optional[chat_message.ChatMessage] = None, request_configuration: Optional[MessagesRequestBuilderPostRequestConfiguration] = None, response_handler: Optional[ResponseHandler] = None) -> Optional[chat_message.ChatMessage]:
7575
"""
76-
Send a new chatMessage in the specified channel or a chat.
76+
Send a new chatMessage in the specified chat. This API can't create a new chat; you must use the list chats method to retrieve the ID of an existing chat before you can create a chat message.
7777
Args:
7878
body: The request body
7979
requestConfiguration: Configuration for the request such as headers, query parameters, and middleware options.
@@ -113,7 +113,7 @@ def to_get_request_information(self,request_configuration: Optional[MessagesRequ
113113

114114
def to_post_request_information(self,body: Optional[chat_message.ChatMessage] = None, request_configuration: Optional[MessagesRequestBuilderPostRequestConfiguration] = None) -> RequestInformation:
115115
"""
116-
Send a new chatMessage in the specified channel or a chat.
116+
Send a new chatMessage in the specified chat. This API can't create a new chat; you must use the list chats method to retrieve the ID of an existing chat before you can create a chat message.
117117
Args:
118118
body: The request body
119119
requestConfiguration: Configuration for the request such as headers, query parameters, and middleware options.

msgraph/generated/communications/calls/item/participants/invite/invite_request_builder.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def __init__(self,request_adapter: RequestAdapter, path_parameters: Optional[Uni
3838

3939
async def post(self,body: Optional[invite_post_request_body.InvitePostRequestBody] = None, request_configuration: Optional[InviteRequestBuilderPostRequestConfiguration] = None, response_handler: Optional[ResponseHandler] = None) -> Optional[invite_participants_operation.InviteParticipantsOperation]:
4040
"""
41-
Invite participants to the active call. For more information about how to handle operations, see commsOperation.
41+
Delete a specific participant in a call. In some situations, it is appropriate for an application to remove a participant from an active call. This action can be done before or after the participant answers the call. When an active caller is removed, they are immediately dropped from the call with no pre- or post-removal notification. When an invited participant is removed, any outstanding add participant request is canceled.
4242
Args:
4343
body: The request body
4444
requestConfiguration: Configuration for the request such as headers, query parameters, and middleware options.
@@ -60,7 +60,7 @@ async def post(self,body: Optional[invite_post_request_body.InvitePostRequestBod
6060

6161
def to_post_request_information(self,body: Optional[invite_post_request_body.InvitePostRequestBody] = None, request_configuration: Optional[InviteRequestBuilderPostRequestConfiguration] = None) -> RequestInformation:
6262
"""
63-
Invite participants to the active call. For more information about how to handle operations, see commsOperation.
63+
Delete a specific participant in a call. In some situations, it is appropriate for an application to remove a participant from an active call. This action can be done before or after the participant answers the call. When an active caller is removed, they are immediately dropped from the call with no pre- or post-removal notification. When an invited participant is removed, any outstanding add participant request is canceled.
6464
Args:
6565
body: The request body
6666
requestConfiguration: Configuration for the request such as headers, query parameters, and middleware options.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,252 @@
1+
from __future__ import annotations
2+
from kiota_abstractions.serialization import AdditionalDataHolder, Parsable, ParseNode, SerializationWriter
3+
from kiota_abstractions.utils import lazy_import
4+
from typing import Any, Callable, Dict, List, Optional, Union
5+
6+
class GetDevicesWithoutCompliancePolicyReportPostRequestBody(AdditionalDataHolder, Parsable):
7+
@property
8+
def additional_data(self,) -> Dict[str, Any]:
9+
"""
10+
Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
11+
Returns: Dict[str, Any]
12+
"""
13+
return self._additional_data
14+
15+
@additional_data.setter
16+
def additional_data(self,value: Dict[str, Any]) -> None:
17+
"""
18+
Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
19+
Args:
20+
value: Value to set for the AdditionalData property.
21+
"""
22+
self._additional_data = value
23+
24+
def __init__(self,) -> None:
25+
"""
26+
Instantiates a new getDevicesWithoutCompliancePolicyReportPostRequestBody and sets the default values.
27+
"""
28+
# Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
29+
self._additional_data: Dict[str, Any] = {}
30+
31+
# The filter property
32+
self._filter: Optional[str] = None
33+
# The groupBy property
34+
self._group_by: Optional[List[str]] = None
35+
# The name property
36+
self._name: Optional[str] = None
37+
# The orderBy property
38+
self._order_by: Optional[List[str]] = None
39+
# The search property
40+
self._search: Optional[str] = None
41+
# The select property
42+
self._select: Optional[List[str]] = None
43+
# The sessionId property
44+
self._session_id: Optional[str] = None
45+
# The skip property
46+
self._skip: Optional[int] = None
47+
# The top property
48+
self._top: Optional[int] = None
49+
50+
@staticmethod
51+
def create_from_discriminator_value(parse_node: Optional[ParseNode] = None) -> GetDevicesWithoutCompliancePolicyReportPostRequestBody:
52+
"""
53+
Creates a new instance of the appropriate class based on discriminator value
54+
Args:
55+
parseNode: The parse node to use to read the discriminator value and create the object
56+
Returns: GetDevicesWithoutCompliancePolicyReportPostRequestBody
57+
"""
58+
if parse_node is None:
59+
raise Exception("parse_node cannot be undefined")
60+
return GetDevicesWithoutCompliancePolicyReportPostRequestBody()
61+
62+
@property
63+
def filter(self,) -> Optional[str]:
64+
"""
65+
Gets the filter property value. The filter property
66+
Returns: Optional[str]
67+
"""
68+
return self._filter
69+
70+
@filter.setter
71+
def filter(self,value: Optional[str] = None) -> None:
72+
"""
73+
Sets the filter property value. The filter property
74+
Args:
75+
value: Value to set for the filter property.
76+
"""
77+
self._filter = value
78+
79+
def get_field_deserializers(self,) -> Dict[str, Callable[[ParseNode], None]]:
80+
"""
81+
The deserialization information for the current model
82+
Returns: Dict[str, Callable[[ParseNode], None]]
83+
"""
84+
fields = {
85+
"filter": lambda n : setattr(self, 'filter', n.get_str_value()),
86+
"group_by": lambda n : setattr(self, 'group_by', n.get_collection_of_primitive_values(str)),
87+
"name": lambda n : setattr(self, 'name', n.get_str_value()),
88+
"order_by": lambda n : setattr(self, 'order_by', n.get_collection_of_primitive_values(str)),
89+
"search": lambda n : setattr(self, 'search', n.get_str_value()),
90+
"select": lambda n : setattr(self, 'select', n.get_collection_of_primitive_values(str)),
91+
"session_id": lambda n : setattr(self, 'session_id', n.get_str_value()),
92+
"skip": lambda n : setattr(self, 'skip', n.get_int_value()),
93+
"top": lambda n : setattr(self, 'top', n.get_int_value()),
94+
}
95+
return fields
96+
97+
@property
98+
def group_by(self,) -> Optional[List[str]]:
99+
"""
100+
Gets the groupBy property value. The groupBy property
101+
Returns: Optional[List[str]]
102+
"""
103+
return self._group_by
104+
105+
@group_by.setter
106+
def group_by(self,value: Optional[List[str]] = None) -> None:
107+
"""
108+
Sets the groupBy property value. The groupBy property
109+
Args:
110+
value: Value to set for the groupBy property.
111+
"""
112+
self._group_by = value
113+
114+
@property
115+
def name(self,) -> Optional[str]:
116+
"""
117+
Gets the name property value. The name property
118+
Returns: Optional[str]
119+
"""
120+
return self._name
121+
122+
@name.setter
123+
def name(self,value: Optional[str] = None) -> None:
124+
"""
125+
Sets the name property value. The name property
126+
Args:
127+
value: Value to set for the name property.
128+
"""
129+
self._name = value
130+
131+
@property
132+
def order_by(self,) -> Optional[List[str]]:
133+
"""
134+
Gets the orderBy property value. The orderBy property
135+
Returns: Optional[List[str]]
136+
"""
137+
return self._order_by
138+
139+
@order_by.setter
140+
def order_by(self,value: Optional[List[str]] = None) -> None:
141+
"""
142+
Sets the orderBy property value. The orderBy property
143+
Args:
144+
value: Value to set for the orderBy property.
145+
"""
146+
self._order_by = value
147+
148+
@property
149+
def search(self,) -> Optional[str]:
150+
"""
151+
Gets the search property value. The search property
152+
Returns: Optional[str]
153+
"""
154+
return self._search
155+
156+
@search.setter
157+
def search(self,value: Optional[str] = None) -> None:
158+
"""
159+
Sets the search property value. The search property
160+
Args:
161+
value: Value to set for the search property.
162+
"""
163+
self._search = value
164+
165+
@property
166+
def select(self,) -> Optional[List[str]]:
167+
"""
168+
Gets the select property value. The select property
169+
Returns: Optional[List[str]]
170+
"""
171+
return self._select
172+
173+
@select.setter
174+
def select(self,value: Optional[List[str]] = None) -> None:
175+
"""
176+
Sets the select property value. The select property
177+
Args:
178+
value: Value to set for the select property.
179+
"""
180+
self._select = value
181+
182+
def serialize(self,writer: SerializationWriter) -> None:
183+
"""
184+
Serializes information the current object
185+
Args:
186+
writer: Serialization writer to use to serialize this model
187+
"""
188+
if writer is None:
189+
raise Exception("writer cannot be undefined")
190+
writer.write_str_value("filter", self.filter)
191+
writer.write_collection_of_primitive_values("groupBy", self.group_by)
192+
writer.write_str_value("name", self.name)
193+
writer.write_collection_of_primitive_values("orderBy", self.order_by)
194+
writer.write_str_value("search", self.search)
195+
writer.write_collection_of_primitive_values("select", self.select)
196+
writer.write_str_value("sessionId", self.session_id)
197+
writer.write_int_value("skip", self.skip)
198+
writer.write_int_value("top", self.top)
199+
writer.write_additional_data_value(self.additional_data)
200+
201+
@property
202+
def session_id(self,) -> Optional[str]:
203+
"""
204+
Gets the sessionId property value. The sessionId property
205+
Returns: Optional[str]
206+
"""
207+
return self._session_id
208+
209+
@session_id.setter
210+
def session_id(self,value: Optional[str] = None) -> None:
211+
"""
212+
Sets the sessionId property value. The sessionId property
213+
Args:
214+
value: Value to set for the sessionId property.
215+
"""
216+
self._session_id = value
217+
218+
@property
219+
def skip(self,) -> Optional[int]:
220+
"""
221+
Gets the skip property value. The skip property
222+
Returns: Optional[int]
223+
"""
224+
return self._skip
225+
226+
@skip.setter
227+
def skip(self,value: Optional[int] = None) -> None:
228+
"""
229+
Sets the skip property value. The skip property
230+
Args:
231+
value: Value to set for the skip property.
232+
"""
233+
self._skip = value
234+
235+
@property
236+
def top(self,) -> Optional[int]:
237+
"""
238+
Gets the top property value. The top property
239+
Returns: Optional[int]
240+
"""
241+
return self._top
242+
243+
@top.setter
244+
def top(self,value: Optional[int] = None) -> None:
245+
"""
246+
Sets the top property value. The top property
247+
Args:
248+
value: Value to set for the top property.
249+
"""
250+
self._top = value
251+
252+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,92 @@
1+
from __future__ import annotations
2+
from dataclasses import dataclass
3+
from kiota_abstractions.get_path_parameters import get_path_parameters
4+
from kiota_abstractions.method import Method
5+
from kiota_abstractions.request_adapter import RequestAdapter
6+
from kiota_abstractions.request_information import RequestInformation
7+
from kiota_abstractions.request_option import RequestOption
8+
from kiota_abstractions.response_handler import ResponseHandler
9+
from kiota_abstractions.serialization import Parsable, ParsableFactory
10+
from kiota_abstractions.utils import lazy_import
11+
from typing import Any, Callable, Dict, List, Optional, Union
12+
13+
get_devices_without_compliance_policy_report_post_request_body = lazy_import('msgraph.generated.device_management.reports.get_devices_without_compliance_policy_report.get_devices_without_compliance_policy_report_post_request_body')
14+
o_data_error = lazy_import('msgraph.generated.models.o_data_errors.o_data_error')
15+
16+
class GetDevicesWithoutCompliancePolicyReportRequestBuilder():
17+
"""
18+
Provides operations to call the getDevicesWithoutCompliancePolicyReport method.
19+
"""
20+
def __init__(self,request_adapter: RequestAdapter, path_parameters: Optional[Union[Dict[str, Any], str]] = None) -> None:
21+
"""
22+
Instantiates a new GetDevicesWithoutCompliancePolicyReportRequestBuilder and sets the default values.
23+
Args:
24+
pathParameters: The raw url or the Url template parameters for the request.
25+
requestAdapter: The request adapter to use to execute the requests.
26+
"""
27+
if path_parameters is None:
28+
raise Exception("path_parameters cannot be undefined")
29+
if request_adapter is None:
30+
raise Exception("request_adapter cannot be undefined")
31+
# Url template to use to build the URL for the current request builder
32+
self.url_template: str = "{+baseurl}/deviceManagement/reports/microsoft.graph.getDevicesWithoutCompliancePolicyReport"
33+
34+
url_tpl_params = get_path_parameters(path_parameters)
35+
self.path_parameters = url_tpl_params
36+
self.request_adapter = request_adapter
37+
38+
async def post(self,body: Optional[get_devices_without_compliance_policy_report_post_request_body.GetDevicesWithoutCompliancePolicyReportPostRequestBody] = None, request_configuration: Optional[GetDevicesWithoutCompliancePolicyReportRequestBuilderPostRequestConfiguration] = None, response_handler: Optional[ResponseHandler] = None) -> bytes:
39+
"""
40+
Invoke action getDevicesWithoutCompliancePolicyReport
41+
Args:
42+
body: The request body
43+
requestConfiguration: Configuration for the request such as headers, query parameters, and middleware options.
44+
responseHandler: Response handler to use in place of the default response handling provided by the core service
45+
Returns: bytes
46+
"""
47+
if body is None:
48+
raise Exception("body cannot be undefined")
49+
request_info = self.to_post_request_information(
50+
body, request_configuration
51+
)
52+
error_mapping: Dict[str, ParsableFactory] = {
53+
"4XX": o_data_error.ODataError,
54+
"5XX": o_data_error.ODataError,
55+
}
56+
if not self.request_adapter:
57+
raise Exception("Http core is null")
58+
return await self.request_adapter.send_primitive_async(request_info, "bytes", response_handler, error_mapping)
59+
60+
def to_post_request_information(self,body: Optional[get_devices_without_compliance_policy_report_post_request_body.GetDevicesWithoutCompliancePolicyReportPostRequestBody] = None, request_configuration: Optional[GetDevicesWithoutCompliancePolicyReportRequestBuilderPostRequestConfiguration] = None) -> RequestInformation:
61+
"""
62+
Invoke action getDevicesWithoutCompliancePolicyReport
63+
Args:
64+
body: The request body
65+
requestConfiguration: Configuration for the request such as headers, query parameters, and middleware options.
66+
Returns: RequestInformation
67+
"""
68+
if body is None:
69+
raise Exception("body cannot be undefined")
70+
request_info = RequestInformation()
71+
request_info.url_template = self.url_template
72+
request_info.path_parameters = self.path_parameters
73+
request_info.http_method = Method.POST
74+
if request_configuration:
75+
request_info.add_request_headers(request_configuration.headers)
76+
request_info.add_request_options(request_configuration.options)
77+
request_info.set_content_from_parsable(self.request_adapter, "application/json", body)
78+
return request_info
79+
80+
@dataclass
81+
class GetDevicesWithoutCompliancePolicyReportRequestBuilderPostRequestConfiguration():
82+
"""
83+
Configuration for the request such as headers, query parameters, and middleware options.
84+
"""
85+
# Request headers
86+
headers: Optional[Dict[str, str]] = None
87+
88+
# Request options
89+
options: Optional[List[RequestOption]] = None
90+
91+
92+

0 commit comments

Comments
 (0)