Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,10 @@ async def delete(self,request_configuration: Optional[RequestConfiguration[Query

async def get(self,request_configuration: Optional[RequestConfiguration[ResourceConnectionItemRequestBuilderGetQueryParameters]] = 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-beta
Find more info here: https://learn.microsoft.com/graph/api/windowsupdates-operationalinsightsconnection-get?view=graph-rest-beta
"""
request_info = self.to_get_request_information(
request_configuration
Expand Down Expand Up @@ -106,7 +106,7 @@ def to_delete_request_information(self,request_configuration: Optional[RequestCo

def to_get_request_information(self,request_configuration: Optional[RequestConfiguration[ResourceConnectionItemRequestBuilderGetQueryParameters]] = 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 @@ -150,7 +150,7 @@ class ResourceConnectionItemRequestBuilderDeleteRequestConfiguration(RequestConf
@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: str) -> str:
"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,10 @@ def __init__(self,request_adapter: RequestAdapter, path_parameters: Union[str, d

async def delete(self,request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> None:
"""
Delete a contentApproval object.
Delete a complianceChange object.
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/windowsupdates-contentapproval-delete?view=graph-rest-beta
Find more info here: https://learn.microsoft.com/graph/api/windowsupdates-compliancechange-delete?view=graph-rest-beta
"""
request_info = self.to_delete_request_information(
request_configuration
Expand All @@ -52,10 +52,10 @@ async def delete(self,request_configuration: Optional[RequestConfiguration[Query

async def get(self,request_configuration: Optional[RequestConfiguration[ComplianceChangeItemRequestBuilderGetQueryParameters]] = None) -> Optional[ComplianceChange]:
"""
Read the properties and relationships of a contentApproval object.
Read the properties and relationships of a complianceChange object.
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-contentapproval-get?view=graph-rest-beta
Find more info here: https://learn.microsoft.com/graph/api/windowsupdates-compliancechange-get?view=graph-rest-beta
"""
request_info = self.to_get_request_information(
request_configuration
Expand All @@ -73,11 +73,11 @@ async def get(self,request_configuration: Optional[RequestConfiguration[Complian

async def patch(self,body: ComplianceChange, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> Optional[ComplianceChange]:
"""
Update the properties of a contentApproval object.
Update the properties of a complianceChange 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-contentapproval-update?view=graph-rest-beta
Find more info here: https://learn.microsoft.com/graph/api/windowsupdates-compliancechange-update?view=graph-rest-beta
"""
if body is None:
raise TypeError("body cannot be null.")
Expand All @@ -97,7 +97,7 @@ async def patch(self,body: ComplianceChange, request_configuration: Optional[Req

def to_delete_request_information(self,request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> RequestInformation:
"""
Delete a contentApproval object.
Delete a complianceChange object.
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
Returns: RequestInformation
"""
Expand All @@ -108,7 +108,7 @@ def to_delete_request_information(self,request_configuration: Optional[RequestCo

def to_get_request_information(self,request_configuration: Optional[RequestConfiguration[ComplianceChangeItemRequestBuilderGetQueryParameters]] = None) -> RequestInformation:
"""
Read the properties and relationships of a contentApproval object.
Read the properties and relationships of a complianceChange object.
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
Returns: RequestInformation
"""
Expand All @@ -119,7 +119,7 @@ def to_get_request_information(self,request_configuration: Optional[RequestConfi

def to_patch_request_information(self,body: ComplianceChange, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> RequestInformation:
"""
Update the properties of a contentApproval object.
Update the properties of a complianceChange 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 Expand Up @@ -161,7 +161,7 @@ class ComplianceChangeItemRequestBuilderDeleteRequestConfiguration(RequestConfig
@dataclass
class ComplianceChangeItemRequestBuilderGetQueryParameters():
"""
Read the properties and relationships of a contentApproval object.
Read the properties and relationships of a complianceChange object.
"""
def get_query_parameter(self,original_name: str) -> str:
"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@
from .redirect.redirect_request_builder import RedirectRequestBuilder
from .reject.reject_request_builder import RejectRequestBuilder
from .send_dtmf_tones.send_dtmf_tones_request_builder import SendDtmfTonesRequestBuilder
from .start_recording.start_recording_request_builder import StartRecordingRequestBuilder
from .start_transcription.start_transcription_request_builder import StartTranscriptionRequestBuilder
from .stop_recording.stop_recording_request_builder import StopRecordingRequestBuilder
from .stop_transcription.stop_transcription_request_builder import StopTranscriptionRequestBuilder
from .subscribe_to_tone.subscribe_to_tone_request_builder import SubscribeToToneRequestBuilder
from .transfer.transfer_request_builder import TransferRequestBuilder
from .unmute.unmute_request_builder import UnmuteRequestBuilder
Expand Down Expand Up @@ -302,6 +306,42 @@ def send_dtmf_tones(self) -> SendDtmfTonesRequestBuilder:

return SendDtmfTonesRequestBuilder(self.request_adapter, self.path_parameters)

@property
def start_recording(self) -> StartRecordingRequestBuilder:
"""
Provides operations to call the startRecording method.
"""
from .start_recording.start_recording_request_builder import StartRecordingRequestBuilder

return StartRecordingRequestBuilder(self.request_adapter, self.path_parameters)

@property
def start_transcription(self) -> StartTranscriptionRequestBuilder:
"""
Provides operations to call the startTranscription method.
"""
from .start_transcription.start_transcription_request_builder import StartTranscriptionRequestBuilder

return StartTranscriptionRequestBuilder(self.request_adapter, self.path_parameters)

@property
def stop_recording(self) -> StopRecordingRequestBuilder:
"""
Provides operations to call the stopRecording method.
"""
from .stop_recording.stop_recording_request_builder import StopRecordingRequestBuilder

return StopRecordingRequestBuilder(self.request_adapter, self.path_parameters)

@property
def stop_transcription(self) -> StopTranscriptionRequestBuilder:
"""
Provides operations to call the stopTranscription method.
"""
from .stop_transcription.stop_transcription_request_builder import StopTranscriptionRequestBuilder

return StopTranscriptionRequestBuilder(self.request_adapter, self.path_parameters)

@property
def subscribe_to_tone(self) -> SubscribeToToneRequestBuilder:
"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,11 @@ def __init__(self,request_adapter: RequestAdapter, path_parameters: Union[str, d

async def post(self,body: InvitePostRequestBody, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> Optional[InviteParticipantsOperation]:
"""
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.
Invite participants to the active call. For more information about how to handle operations, see commsOperation.
param body: The request body
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
Returns: Optional[InviteParticipantsOperation]
Find more info here: https://learn.microsoft.com/graph/api/participant-delete?view=graph-rest-beta
Find more info here: https://learn.microsoft.com/graph/api/participant-invite?view=graph-rest-beta
"""
if body is None:
raise TypeError("body cannot be null.")
Expand All @@ -57,7 +57,7 @@ async def post(self,body: InvitePostRequestBody, request_configuration: Optional

def to_post_request_information(self,body: InvitePostRequestBody, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> RequestInformation:
"""
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.
Invite participants to the active call. For more information about how to handle operations, see commsOperation.
param body: The request body
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,50 @@
from __future__ import annotations
from collections.abc import Callable
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, Optional, TYPE_CHECKING, Union

@dataclass
class StartRecordingPostRequestBody(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 clientContext property
client_context: Optional[str] = None

@staticmethod
def create_from_discriminator_value(parse_node: ParseNode) -> StartRecordingPostRequestBody:
"""
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: StartRecordingPostRequestBody
"""
if parse_node is None:
raise TypeError("parse_node cannot be null.")
return StartRecordingPostRequestBody()

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]] = {
"clientContext": lambda n : setattr(self, 'client_context', 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 writer is None:
raise TypeError("writer cannot be null.")
writer.write_str_value("clientContext", self.client_context)
writer.write_additional_data_value(self.additional_data)


Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
from __future__ import annotations
from collections.abc import Callable
from dataclasses import dataclass, field
from kiota_abstractions.base_request_builder import BaseRequestBuilder
from kiota_abstractions.base_request_configuration import RequestConfiguration
from kiota_abstractions.default_query_parameters import QueryParameters
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, Optional, TYPE_CHECKING, Union
from warnings import warn

if TYPE_CHECKING:
from .....models.o_data_errors.o_data_error import ODataError
from .....models.start_recording_operation import StartRecordingOperation
from .start_recording_post_request_body import StartRecordingPostRequestBody

class StartRecordingRequestBuilder(BaseRequestBuilder):
"""
Provides operations to call the startRecording method.
"""
def __init__(self,request_adapter: RequestAdapter, path_parameters: Union[str, dict[str, Any]]) -> None:
"""
Instantiates a new StartRecordingRequestBuilder 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/calls/{call%2Did}/startRecording", path_parameters)

async def post(self,body: StartRecordingPostRequestBody, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> Optional[StartRecordingOperation]:
"""
Invoke action startRecording
param body: The request body
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
Returns: Optional[StartRecordingOperation]
"""
if body is None:
raise TypeError("body cannot be null.")
request_info = self.to_post_request_information(
body, request_configuration
)
from .....models.o_data_errors.o_data_error import ODataError

error_mapping: dict[str, type[ParsableFactory]] = {
"XXX": ODataError,
}
if not self.request_adapter:
raise Exception("Http core is null")
from .....models.start_recording_operation import StartRecordingOperation

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

def to_post_request_information(self,body: StartRecordingPostRequestBody, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> RequestInformation:
"""
Invoke action startRecording
param body: The request body
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
Returns: RequestInformation
"""
if body is None:
raise TypeError("body cannot be null.")
request_info = RequestInformation(Method.POST, self.url_template, self.path_parameters)
request_info.configure(request_configuration)
request_info.headers.try_add("Accept", "application/json")
request_info.set_content_from_parsable(self.request_adapter, "application/json", body)
return request_info

def with_url(self,raw_url: str) -> StartRecordingRequestBuilder:
"""
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: StartRecordingRequestBuilder
"""
if raw_url is None:
raise TypeError("raw_url cannot be null.")
return StartRecordingRequestBuilder(self.request_adapter, raw_url)

@dataclass
class StartRecordingRequestBuilderPostRequestConfiguration(RequestConfiguration[QueryParameters]):
"""
Configuration for the request such as headers, query parameters, and middleware options.
"""
warn("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.", DeprecationWarning)


Loading
Loading