Skip to content

Commit

Permalink
Update generated files with build 132033
Browse files Browse the repository at this point in the history
  • Loading branch information
Microsoft Graph DevX Tooling authored and Microsoft Graph DevX Tooling committed Jan 23, 2024
1 parent 551eda1 commit c6b964c
Show file tree
Hide file tree
Showing 612 changed files with 46,047 additions and 667 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,10 @@ async def delete(self,request_configuration: Optional[ResourceConnectionItemRequ

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

def to_get_request_information(self,request_configuration: Optional[ResourceConnectionItemRequestBuilderGetRequestConfiguration] = None) -> RequestInformation:
"""
Read the properties and relationships of a resourceConnection object.
Read the properties and relationships of an operationalInsightsConnection object.
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
Returns: RequestInformation
"""
Expand Down Expand Up @@ -168,7 +168,7 @@ class ResourceConnectionItemRequestBuilderDeleteRequestConfiguration(BaseRequest
@dataclass
class ResourceConnectionItemRequestBuilderGetQueryParameters():
"""
Read the properties and relationships of a resourceConnection object.
Read the properties and relationships of an operationalInsightsConnection object.
"""
def get_query_parameter(self,original_name: Optional[str] = None) -> str:
"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,11 +71,11 @@ async def get(self,request_configuration: Optional[ComplianceChangeItemRequestBu

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

def to_patch_request_information(self,body: Optional[ComplianceChange] = None, request_configuration: Optional[ComplianceChangeItemRequestBuilderPatchRequestConfiguration] = None) -> RequestInformation:
"""
Update the properties of a complianceChange object.
Update the properties of a contentApproval object.
param body: The request body
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
Returns: RequestInformation
Expand Down
13 changes: 13 additions & 0 deletions msgraph_beta/generated/app/app_request_builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
from ..models.o_data_errors.o_data_error import ODataError
from .calls.calls_request_builder import CallsRequestBuilder
from .online_meetings.online_meetings_request_builder import OnlineMeetingsRequestBuilder
from .online_meetings_with_join_web_url.online_meetings_with_join_web_url_request_builder import OnlineMeetingsWithJoinWebUrlRequestBuilder

class AppRequestBuilder(BaseRequestBuilder):
"""
Expand Down Expand Up @@ -49,6 +50,18 @@ async def get(self,request_configuration: Optional[AppRequestBuilderGetRequestCo

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

def online_meetings_with_join_web_url(self,join_web_url: Optional[str] = None) -> OnlineMeetingsWithJoinWebUrlRequestBuilder:
"""
Provides operations to manage the onlineMeetings property of the microsoft.graph.commsApplication entity.
param join_web_url: Alternate key of onlineMeeting
Returns: OnlineMeetingsWithJoinWebUrlRequestBuilder
"""
if not join_web_url:
raise TypeError("join_web_url cannot be null.")
from .online_meetings_with_join_web_url.online_meetings_with_join_web_url_request_builder import OnlineMeetingsWithJoinWebUrlRequestBuilder

return OnlineMeetingsWithJoinWebUrlRequestBuilder(self.request_adapter, self.path_parameters, join_web_url)

async def patch(self,body: Optional[CommsApplication] = None, request_configuration: Optional[AppRequestBuilderPatchRequestConfiguration] = None) -> Optional[CommsApplication]:
"""
Update app
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@ def __init__(self,request_adapter: RequestAdapter, path_parameters: Optional[Uni

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

def to_delete_request_information(self,request_configuration: Optional[RegistrationRequestBuilderDeleteRequestConfiguration] = None) -> RequestInformation:
"""
Disable and delete the externalMeetingRegistration of an onlineMeeting.
Disable and delete the meetingRegistration of an onlineMeeting on behalf of the organizer.
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
Returns: RequestInformation
"""
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
from __future__ import annotations
from dataclasses import dataclass, field
from kiota_abstractions.serialization import AdditionalDataHolder, Parsable, ParseNode, SerializationWriter
from kiota_abstractions.store import BackedModel, BackingStore, BackingStoreFactorySingleton
from typing import Any, Callable, Dict, List, Optional, TYPE_CHECKING, Union

@dataclass
class GetVirtualAppointmentJoinWebUrlGetResponse(AdditionalDataHolder, BackedModel, Parsable):
# Stores model information.
backing_store: BackingStore = field(default_factory=BackingStoreFactorySingleton(backing_store_factory=None).backing_store_factory.create_backing_store, repr=False)

# Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
additional_data: Dict[str, Any] = field(default_factory=dict)
# The value property
value: Optional[str] = None

@staticmethod
def create_from_discriminator_value(parse_node: Optional[ParseNode] = None) -> GetVirtualAppointmentJoinWebUrlGetResponse:
"""
Creates a new instance of the appropriate class based on discriminator value
param parse_node: The parse node to use to read the discriminator value and create the object
Returns: GetVirtualAppointmentJoinWebUrlGetResponse
"""
if not parse_node:
raise TypeError("parse_node cannot be null.")
return GetVirtualAppointmentJoinWebUrlGetResponse()

def get_field_deserializers(self,) -> Dict[str, Callable[[ParseNode], None]]:
"""
The deserialization information for the current model
Returns: Dict[str, Callable[[ParseNode], None]]
"""
fields: Dict[str, Callable[[Any], None]] = {
"value": lambda n : setattr(self, 'value', n.get_str_value()),
}
return fields

def serialize(self,writer: SerializationWriter) -> None:
"""
Serializes information the current object
param writer: Serialization writer to use to serialize this model
Returns: None
"""
if not writer:
raise TypeError("writer cannot be null.")
writer.write_str_value("value", self.value)
writer.write_additional_data_value(self.additional_data)


Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
from __future__ import annotations
from dataclasses import dataclass, field
from kiota_abstractions.base_request_builder import BaseRequestBuilder
from kiota_abstractions.get_path_parameters import get_path_parameters
from kiota_abstractions.method import Method
from kiota_abstractions.request_adapter import RequestAdapter
from kiota_abstractions.request_information import RequestInformation
from kiota_abstractions.request_option import RequestOption
from kiota_abstractions.serialization import Parsable, ParsableFactory
from typing import Any, Callable, Dict, List, Optional, TYPE_CHECKING, Union

if TYPE_CHECKING:
from ....models.o_data_errors.o_data_error import ODataError
from .get_virtual_appointment_join_web_url_get_response import GetVirtualAppointmentJoinWebUrlGetResponse

class GetVirtualAppointmentJoinWebUrlRequestBuilder(BaseRequestBuilder):
"""
Provides operations to call the getVirtualAppointmentJoinWebUrl method.
"""
def __init__(self,request_adapter: RequestAdapter, path_parameters: Optional[Union[Dict[str, Any], str]] = None) -> None:
"""
Instantiates a new GetVirtualAppointmentJoinWebUrlRequestBuilder and sets the default values.
param path_parameters: The raw url or the Url template parameters for the request.
param request_adapter: The request adapter to use to execute the requests.
Returns: None
"""
super().__init__(request_adapter, "{+baseurl}/app/onlineMeetings(joinWebUrl='{joinWebUrl}')/getVirtualAppointmentJoinWebUrl()", path_parameters)

async def get(self,request_configuration: Optional[GetVirtualAppointmentJoinWebUrlRequestBuilderGetRequestConfiguration] = None) -> Optional[GetVirtualAppointmentJoinWebUrlGetResponse]:
"""
Invoke function getVirtualAppointmentJoinWebUrl
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
Returns: Optional[GetVirtualAppointmentJoinWebUrlGetResponse]
"""
request_info = self.to_get_request_information(
request_configuration
)
from ....models.o_data_errors.o_data_error import ODataError

error_mapping: Dict[str, ParsableFactory] = {
"4XX": ODataError,
"5XX": ODataError,
}
if not self.request_adapter:
raise Exception("Http core is null")
from .get_virtual_appointment_join_web_url_get_response import GetVirtualAppointmentJoinWebUrlGetResponse

return await self.request_adapter.send_async(request_info, GetVirtualAppointmentJoinWebUrlGetResponse, error_mapping)

def to_get_request_information(self,request_configuration: Optional[GetVirtualAppointmentJoinWebUrlRequestBuilderGetRequestConfiguration] = None) -> RequestInformation:
"""
Invoke function getVirtualAppointmentJoinWebUrl
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
Returns: RequestInformation
"""
request_info = RequestInformation()
if request_configuration:
request_info.headers.add_all(request_configuration.headers)
request_info.add_request_options(request_configuration.options)
request_info.url_template = self.url_template
request_info.path_parameters = self.path_parameters
request_info.http_method = Method.GET
request_info.headers.try_add("Accept", "application/json")
return request_info

def with_url(self,raw_url: Optional[str] = None) -> GetVirtualAppointmentJoinWebUrlRequestBuilder:
"""
Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
param raw_url: The raw URL to use for the request builder.
Returns: GetVirtualAppointmentJoinWebUrlRequestBuilder
"""
if not raw_url:
raise TypeError("raw_url cannot be null.")
return GetVirtualAppointmentJoinWebUrlRequestBuilder(self.request_adapter, raw_url)

from kiota_abstractions.base_request_configuration import BaseRequestConfiguration

@dataclass
class GetVirtualAppointmentJoinWebUrlRequestBuilderGetRequestConfiguration(BaseRequestConfiguration):
from kiota_abstractions.base_request_configuration import BaseRequestConfiguration

"""
Configuration for the request such as headers, query parameters, and middleware options.
"""


Loading

0 comments on commit c6b964c

Please sign in to comment.