Skip to content

Commit 3bcee8d

Browse files
authored
Merge pull request #316 from microsoftgraph/beta/pipelinebuild/132033
Generated beta models and request builders
2 parents d051208 + 382f4a3 commit 3bcee8d

File tree

614 files changed

+46053
-672
lines changed

Some content is hidden

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

614 files changed

+46053
-672
lines changed

CHANGELOG.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8-
## [1.1.0] - 2024-01-18
8+
## [1.1.0] - 2024-01-24
99

1010
### Added
1111

1212
### Changed
13-
- Latest metadata updates from 16th January 2024.
13+
- Latest metadata updates from 23rd January 2024.
1414

1515
## [1.0.0] - 2023-10-31
1616

msgraph_beta/generated/admin/windows/updates/resource_connections/item/resource_connection_item_request_builder.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,10 @@ async def delete(self,request_configuration: Optional[ResourceConnectionItemRequ
4848

4949
async def get(self,request_configuration: Optional[ResourceConnectionItemRequestBuilderGetRequestConfiguration] = None) -> Optional[ResourceConnection]:
5050
"""
51-
Read the properties and relationships of a resourceConnection object.
51+
Read the properties and relationships of an operationalInsightsConnection object.
5252
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
5353
Returns: Optional[ResourceConnection]
54-
Find more info here: https://learn.microsoft.com/graph/api/windowsupdates-resourceconnection-get?view=graph-rest-1.0
54+
Find more info here: https://learn.microsoft.com/graph/api/windowsupdates-operationalinsightsconnection-get?view=graph-rest-1.0
5555
"""
5656
request_info = self.to_get_request_information(
5757
request_configuration
@@ -110,7 +110,7 @@ def to_delete_request_information(self,request_configuration: Optional[ResourceC
110110

111111
def to_get_request_information(self,request_configuration: Optional[ResourceConnectionItemRequestBuilderGetRequestConfiguration] = None) -> RequestInformation:
112112
"""
113-
Read the properties and relationships of a resourceConnection object.
113+
Read the properties and relationships of an operationalInsightsConnection object.
114114
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
115115
Returns: RequestInformation
116116
"""
@@ -168,7 +168,7 @@ class ResourceConnectionItemRequestBuilderDeleteRequestConfiguration(BaseRequest
168168
@dataclass
169169
class ResourceConnectionItemRequestBuilderGetQueryParameters():
170170
"""
171-
Read the properties and relationships of a resourceConnection object.
171+
Read the properties and relationships of an operationalInsightsConnection object.
172172
"""
173173
def get_query_parameter(self,original_name: Optional[str] = None) -> str:
174174
"""

msgraph_beta/generated/admin/windows/updates/update_policies/item/compliance_changes/item/compliance_change_item_request_builder.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,11 +71,11 @@ async def get(self,request_configuration: Optional[ComplianceChangeItemRequestBu
7171

7272
async def patch(self,body: Optional[ComplianceChange] = None, request_configuration: Optional[ComplianceChangeItemRequestBuilderPatchRequestConfiguration] = None) -> Optional[ComplianceChange]:
7373
"""
74-
Update the properties of a complianceChange object.
74+
Update the properties of a contentApproval object.
7575
param body: The request body
7676
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
7777
Returns: Optional[ComplianceChange]
78-
Find more info here: https://learn.microsoft.com/graph/api/windowsupdates-compliancechange-update?view=graph-rest-1.0
78+
Find more info here: https://learn.microsoft.com/graph/api/windowsupdates-contentapproval-update?view=graph-rest-1.0
7979
"""
8080
if not body:
8181
raise TypeError("body cannot be null.")
@@ -129,7 +129,7 @@ def to_get_request_information(self,request_configuration: Optional[ComplianceCh
129129

130130
def to_patch_request_information(self,body: Optional[ComplianceChange] = None, request_configuration: Optional[ComplianceChangeItemRequestBuilderPatchRequestConfiguration] = None) -> RequestInformation:
131131
"""
132-
Update the properties of a complianceChange object.
132+
Update the properties of a contentApproval object.
133133
param body: The request body
134134
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
135135
Returns: RequestInformation

msgraph_beta/generated/app/app_request_builder.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
from ..models.o_data_errors.o_data_error import ODataError
1515
from .calls.calls_request_builder import CallsRequestBuilder
1616
from .online_meetings.online_meetings_request_builder import OnlineMeetingsRequestBuilder
17+
from .online_meetings_with_join_web_url.online_meetings_with_join_web_url_request_builder import OnlineMeetingsWithJoinWebUrlRequestBuilder
1718

1819
class AppRequestBuilder(BaseRequestBuilder):
1920
"""
@@ -49,6 +50,18 @@ async def get(self,request_configuration: Optional[AppRequestBuilderGetRequestCo
4950

5051
return await self.request_adapter.send_async(request_info, CommsApplication, error_mapping)
5152

53+
def online_meetings_with_join_web_url(self,join_web_url: Optional[str] = None) -> OnlineMeetingsWithJoinWebUrlRequestBuilder:
54+
"""
55+
Provides operations to manage the onlineMeetings property of the microsoft.graph.commsApplication entity.
56+
param join_web_url: Alternate key of onlineMeeting
57+
Returns: OnlineMeetingsWithJoinWebUrlRequestBuilder
58+
"""
59+
if not join_web_url:
60+
raise TypeError("join_web_url cannot be null.")
61+
from .online_meetings_with_join_web_url.online_meetings_with_join_web_url_request_builder import OnlineMeetingsWithJoinWebUrlRequestBuilder
62+
63+
return OnlineMeetingsWithJoinWebUrlRequestBuilder(self.request_adapter, self.path_parameters, join_web_url)
64+
5265
async def patch(self,body: Optional[CommsApplication] = None, request_configuration: Optional[AppRequestBuilderPatchRequestConfiguration] = None) -> Optional[CommsApplication]:
5366
"""
5467
Update app

msgraph_beta/generated/app/online_meetings/item/registration/registration_request_builder.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,10 @@ def __init__(self,request_adapter: RequestAdapter, path_parameters: Optional[Uni
3030

3131
async def delete(self,request_configuration: Optional[RegistrationRequestBuilderDeleteRequestConfiguration] = None) -> None:
3232
"""
33-
Disable and delete the externalMeetingRegistration of an onlineMeeting.
33+
Disable and delete the meetingRegistration of an onlineMeeting on behalf of the organizer.
3434
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
3535
Returns: None
36-
Find more info here: https://learn.microsoft.com/graph/api/externalmeetingregistration-delete?view=graph-rest-1.0
36+
Find more info here: https://learn.microsoft.com/graph/api/meetingregistration-delete?view=graph-rest-1.0
3737
"""
3838
request_info = self.to_delete_request_information(
3939
request_configuration
@@ -97,7 +97,7 @@ async def patch(self,body: Optional[MeetingRegistration] = None, request_configu
9797

9898
def to_delete_request_information(self,request_configuration: Optional[RegistrationRequestBuilderDeleteRequestConfiguration] = None) -> RequestInformation:
9999
"""
100-
Disable and delete the externalMeetingRegistration of an onlineMeeting.
100+
Disable and delete the meetingRegistration of an onlineMeeting on behalf of the organizer.
101101
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
102102
Returns: RequestInformation
103103
"""
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
from __future__ import annotations
2+
from dataclasses import dataclass, field
3+
from kiota_abstractions.serialization import AdditionalDataHolder, Parsable, ParseNode, SerializationWriter
4+
from kiota_abstractions.store import BackedModel, BackingStore, BackingStoreFactorySingleton
5+
from typing import Any, Callable, Dict, List, Optional, TYPE_CHECKING, Union
6+
7+
@dataclass
8+
class GetVirtualAppointmentJoinWebUrlGetResponse(AdditionalDataHolder, BackedModel, Parsable):
9+
# Stores model information.
10+
backing_store: BackingStore = field(default_factory=BackingStoreFactorySingleton(backing_store_factory=None).backing_store_factory.create_backing_store, repr=False)
11+
12+
# Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
13+
additional_data: Dict[str, Any] = field(default_factory=dict)
14+
# The value property
15+
value: Optional[str] = None
16+
17+
@staticmethod
18+
def create_from_discriminator_value(parse_node: Optional[ParseNode] = None) -> GetVirtualAppointmentJoinWebUrlGetResponse:
19+
"""
20+
Creates a new instance of the appropriate class based on discriminator value
21+
param parse_node: The parse node to use to read the discriminator value and create the object
22+
Returns: GetVirtualAppointmentJoinWebUrlGetResponse
23+
"""
24+
if not parse_node:
25+
raise TypeError("parse_node cannot be null.")
26+
return GetVirtualAppointmentJoinWebUrlGetResponse()
27+
28+
def get_field_deserializers(self,) -> Dict[str, Callable[[ParseNode], None]]:
29+
"""
30+
The deserialization information for the current model
31+
Returns: Dict[str, Callable[[ParseNode], None]]
32+
"""
33+
fields: Dict[str, Callable[[Any], None]] = {
34+
"value": lambda n : setattr(self, 'value', n.get_str_value()),
35+
}
36+
return fields
37+
38+
def serialize(self,writer: SerializationWriter) -> None:
39+
"""
40+
Serializes information the current object
41+
param writer: Serialization writer to use to serialize this model
42+
Returns: None
43+
"""
44+
if not writer:
45+
raise TypeError("writer cannot be null.")
46+
writer.write_str_value("value", self.value)
47+
writer.write_additional_data_value(self.additional_data)
48+
49+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
1+
from __future__ import annotations
2+
from dataclasses import dataclass, field
3+
from kiota_abstractions.base_request_builder import BaseRequestBuilder
4+
from kiota_abstractions.get_path_parameters import get_path_parameters
5+
from kiota_abstractions.method import Method
6+
from kiota_abstractions.request_adapter import RequestAdapter
7+
from kiota_abstractions.request_information import RequestInformation
8+
from kiota_abstractions.request_option import RequestOption
9+
from kiota_abstractions.serialization import Parsable, ParsableFactory
10+
from typing import Any, Callable, Dict, List, Optional, TYPE_CHECKING, Union
11+
12+
if TYPE_CHECKING:
13+
from ....models.o_data_errors.o_data_error import ODataError
14+
from .get_virtual_appointment_join_web_url_get_response import GetVirtualAppointmentJoinWebUrlGetResponse
15+
16+
class GetVirtualAppointmentJoinWebUrlRequestBuilder(BaseRequestBuilder):
17+
"""
18+
Provides operations to call the getVirtualAppointmentJoinWebUrl method.
19+
"""
20+
def __init__(self,request_adapter: RequestAdapter, path_parameters: Optional[Union[Dict[str, Any], str]] = None) -> None:
21+
"""
22+
Instantiates a new GetVirtualAppointmentJoinWebUrlRequestBuilder and sets the default values.
23+
param path_parameters: The raw url or the Url template parameters for the request.
24+
param request_adapter: The request adapter to use to execute the requests.
25+
Returns: None
26+
"""
27+
super().__init__(request_adapter, "{+baseurl}/app/onlineMeetings(joinWebUrl='{joinWebUrl}')/getVirtualAppointmentJoinWebUrl()", path_parameters)
28+
29+
async def get(self,request_configuration: Optional[GetVirtualAppointmentJoinWebUrlRequestBuilderGetRequestConfiguration] = None) -> Optional[GetVirtualAppointmentJoinWebUrlGetResponse]:
30+
"""
31+
Invoke function getVirtualAppointmentJoinWebUrl
32+
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
33+
Returns: Optional[GetVirtualAppointmentJoinWebUrlGetResponse]
34+
"""
35+
request_info = self.to_get_request_information(
36+
request_configuration
37+
)
38+
from ....models.o_data_errors.o_data_error import ODataError
39+
40+
error_mapping: Dict[str, ParsableFactory] = {
41+
"4XX": ODataError,
42+
"5XX": ODataError,
43+
}
44+
if not self.request_adapter:
45+
raise Exception("Http core is null")
46+
from .get_virtual_appointment_join_web_url_get_response import GetVirtualAppointmentJoinWebUrlGetResponse
47+
48+
return await self.request_adapter.send_async(request_info, GetVirtualAppointmentJoinWebUrlGetResponse, error_mapping)
49+
50+
def to_get_request_information(self,request_configuration: Optional[GetVirtualAppointmentJoinWebUrlRequestBuilderGetRequestConfiguration] = None) -> RequestInformation:
51+
"""
52+
Invoke function getVirtualAppointmentJoinWebUrl
53+
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
54+
Returns: RequestInformation
55+
"""
56+
request_info = RequestInformation()
57+
if request_configuration:
58+
request_info.headers.add_all(request_configuration.headers)
59+
request_info.add_request_options(request_configuration.options)
60+
request_info.url_template = self.url_template
61+
request_info.path_parameters = self.path_parameters
62+
request_info.http_method = Method.GET
63+
request_info.headers.try_add("Accept", "application/json")
64+
return request_info
65+
66+
def with_url(self,raw_url: Optional[str] = None) -> GetVirtualAppointmentJoinWebUrlRequestBuilder:
67+
"""
68+
Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
69+
param raw_url: The raw URL to use for the request builder.
70+
Returns: GetVirtualAppointmentJoinWebUrlRequestBuilder
71+
"""
72+
if not raw_url:
73+
raise TypeError("raw_url cannot be null.")
74+
return GetVirtualAppointmentJoinWebUrlRequestBuilder(self.request_adapter, raw_url)
75+
76+
from kiota_abstractions.base_request_configuration import BaseRequestConfiguration
77+
78+
@dataclass
79+
class GetVirtualAppointmentJoinWebUrlRequestBuilderGetRequestConfiguration(BaseRequestConfiguration):
80+
from kiota_abstractions.base_request_configuration import BaseRequestConfiguration
81+
82+
"""
83+
Configuration for the request such as headers, query parameters, and middleware options.
84+
"""
85+
86+

0 commit comments

Comments
 (0)