-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update generated files with build 132033
- Loading branch information
Microsoft Graph DevX Tooling
authored and
Microsoft Graph DevX Tooling
committed
Jan 23, 2024
1 parent
551eda1
commit c6b964c
Showing
612 changed files
with
46,047 additions
and
667 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
49 changes: 49 additions & 0 deletions
49
...get_virtual_appointment_join_web_url/get_virtual_appointment_join_web_url_get_response.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) | ||
|
||
|
86 changes: 86 additions & 0 deletions
86
..._virtual_appointment_join_web_url/get_virtual_appointment_join_web_url_request_builder.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. | ||
""" | ||
|
||
|
Oops, something went wrong.