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 @@ -46,11 +46,11 @@ public function delete(?ResourceConnectionItemRequestBuilderDeleteRequestConfigu
}

/**
* Read the properties and relationships of a resourceConnection object.
* Read the properties and relationships of an operationalInsightsConnection object.
* @param ResourceConnectionItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @return Promise<ResourceConnection|null>
* @throws Exception
* @link https://learn.microsoft.com/graph/api/windowsupdates-resourceconnection-get?view=graph-rest-beta Find more info here
* @link https://learn.microsoft.com/graph/api/windowsupdates-operationalinsightsconnection-get?view=graph-rest-beta Find more info here
*/
public function get(?ResourceConnectionItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise {
$requestInfo = $this->toGetRequestInformation($requestConfiguration);
Expand Down Expand Up @@ -94,7 +94,7 @@ public function toDeleteRequestInformation(?ResourceConnectionItemRequestBuilder
}

/**
* Read the properties and relationships of a resourceConnection object.
* Read the properties and relationships of an operationalInsightsConnection object.
* @param ResourceConnectionItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @return RequestInformation
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
use Microsoft\Kiota\Abstractions\QueryParameter;

/**
* Read the properties and relationships of a resourceConnection object.
* Read the properties and relationships of an operationalInsightsConnection object.
*/
class ResourceConnectionItemRequestBuilderGetQueryParameters
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,11 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap
}

/**
* Delete a contentApproval object.
* Delete a complianceChange object.
* @param ComplianceChangeItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @return Promise<void|null>
* @throws Exception
* @link https://learn.microsoft.com/graph/api/windowsupdates-contentapproval-delete?view=graph-rest-beta Find more info here
* @link https://learn.microsoft.com/graph/api/windowsupdates-compliancechange-delete?view=graph-rest-beta Find more info here
*/
public function delete(?ComplianceChangeItemRequestBuilderDeleteRequestConfiguration $requestConfiguration = null): Promise {
$requestInfo = $this->toDeleteRequestInformation($requestConfiguration);
Expand All @@ -54,11 +54,11 @@ public function delete(?ComplianceChangeItemRequestBuilderDeleteRequestConfigura
}

/**
* Read the properties and relationships of a contentApproval object.
* Read the properties and relationships of a complianceChange object.
* @param ComplianceChangeItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @return Promise<ComplianceChange|null>
* @throws Exception
* @link https://learn.microsoft.com/graph/api/windowsupdates-contentapproval-get?view=graph-rest-beta Find more info here
* @link https://learn.microsoft.com/graph/api/windowsupdates-compliancechange-get?view=graph-rest-beta Find more info here
*/
public function get(?ComplianceChangeItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise {
$requestInfo = $this->toGetRequestInformation($requestConfiguration);
Expand All @@ -69,12 +69,12 @@ public function get(?ComplianceChangeItemRequestBuilderGetRequestConfiguration $
}

/**
* Update the properties of a contentApproval object.
* Update the properties of a complianceChange object.
* @param ComplianceChange $body The request body
* @param ComplianceChangeItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @return Promise<ComplianceChange|null>
* @throws Exception
* @link https://learn.microsoft.com/graph/api/windowsupdates-contentapproval-update?view=graph-rest-beta Find more info here
* @link https://learn.microsoft.com/graph/api/windowsupdates-compliancechange-update?view=graph-rest-beta Find more info here
*/
public function patch(ComplianceChange $body, ?ComplianceChangeItemRequestBuilderPatchRequestConfiguration $requestConfiguration = null): Promise {
$requestInfo = $this->toPatchRequestInformation($body, $requestConfiguration);
Expand All @@ -85,7 +85,7 @@ public function patch(ComplianceChange $body, ?ComplianceChangeItemRequestBuilde
}

/**
* Delete a contentApproval object.
* Delete a complianceChange object.
* @param ComplianceChangeItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @return RequestInformation
*/
Expand All @@ -103,7 +103,7 @@ public function toDeleteRequestInformation(?ComplianceChangeItemRequestBuilderDe
}

/**
* Read the properties and relationships of a contentApproval object.
* Read the properties and relationships of a complianceChange object.
* @param ComplianceChangeItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @return RequestInformation
*/
Expand All @@ -124,7 +124,7 @@ public function toGetRequestInformation(?ComplianceChangeItemRequestBuilderGetRe
}

/**
* Update the properties of a contentApproval object.
* Update the properties of a complianceChange object.
* @param ComplianceChange $body The request body
* @param ComplianceChangeItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @return RequestInformation
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
use Microsoft\Kiota\Abstractions\QueryParameter;

/**
* Read the properties and relationships of a contentApproval object.
* Read the properties and relationships of a complianceChange object.
*/
class ComplianceChangeItemRequestBuilderGetQueryParameters
{
Expand Down
32 changes: 32 additions & 0 deletions src/Generated/App/Calls/Item/CallItemRequestBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@
use Microsoft\Graph\Beta\Generated\App\Calls\Item\Redirect\RedirectRequestBuilder;
use Microsoft\Graph\Beta\Generated\App\Calls\Item\Reject\RejectRequestBuilder;
use Microsoft\Graph\Beta\Generated\App\Calls\Item\SendDtmfTones\SendDtmfTonesRequestBuilder;
use Microsoft\Graph\Beta\Generated\App\Calls\Item\StartRecording\StartRecordingRequestBuilder;
use Microsoft\Graph\Beta\Generated\App\Calls\Item\StartTranscription\StartTranscriptionRequestBuilder;
use Microsoft\Graph\Beta\Generated\App\Calls\Item\StopRecording\StopRecordingRequestBuilder;
use Microsoft\Graph\Beta\Generated\App\Calls\Item\StopTranscription\StopTranscriptionRequestBuilder;
use Microsoft\Graph\Beta\Generated\App\Calls\Item\SubscribeToTone\SubscribeToToneRequestBuilder;
use Microsoft\Graph\Beta\Generated\App\Calls\Item\Transfer\TransferRequestBuilder;
use Microsoft\Graph\Beta\Generated\App\Calls\Item\Unmute\UnmuteRequestBuilder;
Expand Down Expand Up @@ -148,6 +152,34 @@ public function sendDtmfTones(): SendDtmfTonesRequestBuilder {
return new SendDtmfTonesRequestBuilder($this->pathParameters, $this->requestAdapter);
}

/**
* Provides operations to call the startRecording method.
*/
public function startRecording(): StartRecordingRequestBuilder {
return new StartRecordingRequestBuilder($this->pathParameters, $this->requestAdapter);
}

/**
* Provides operations to call the startTranscription method.
*/
public function startTranscription(): StartTranscriptionRequestBuilder {
return new StartTranscriptionRequestBuilder($this->pathParameters, $this->requestAdapter);
}

/**
* Provides operations to call the stopRecording method.
*/
public function stopRecording(): StopRecordingRequestBuilder {
return new StopRecordingRequestBuilder($this->pathParameters, $this->requestAdapter);
}

/**
* Provides operations to call the stopTranscription method.
*/
public function stopTranscription(): StopTranscriptionRequestBuilder {
return new StopTranscriptionRequestBuilder($this->pathParameters, $this->requestAdapter);
}

/**
* Provides operations to call the subscribeToTone method.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,12 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap
}

/**
* 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 InvitePostRequestBody $body The request body
* @param InviteRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @return Promise<InviteParticipantsOperation|null>
* @throws Exception
* @link https://learn.microsoft.com/graph/api/participant-delete?view=graph-rest-beta Find more info here
* @link https://learn.microsoft.com/graph/api/participant-invite?view=graph-rest-beta Find more info here
*/
public function post(InvitePostRequestBody $body, ?InviteRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise {
$requestInfo = $this->toPostRequestInformation($body, $requestConfiguration);
Expand All @@ -47,7 +47,7 @@ public function post(InvitePostRequestBody $body, ?InviteRequestBuilderPostReque
}

/**
* 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 InvitePostRequestBody $body The request body
* @param InviteRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @return RequestInformation
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Microsoft\Graph\Beta\Generated\Models\WindowsUpdates;
namespace Microsoft\Graph\Beta\Generated\App\Calls\Item\StartRecording;

use Microsoft\Kiota\Abstractions\Serialization\AdditionalDataHolder;
use Microsoft\Kiota\Abstractions\Serialization\Parsable;
Expand All @@ -10,15 +10,15 @@
use Microsoft\Kiota\Abstractions\Store\BackingStore;
use Microsoft\Kiota\Abstractions\Store\BackingStoreFactorySingleton;

class UpdatableAssetEnrollment implements AdditionalDataHolder, BackedModel, Parsable
class StartRecordingPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable
{
/**
* @var BackingStore $backingStore Stores model information.
*/
private BackingStore $backingStore;

/**
* Instantiates a new UpdatableAssetEnrollment and sets the default values.
* Instantiates a new StartRecordingPostRequestBody and sets the default values.
*/
public function __construct() {
$this->backingStore = BackingStoreFactorySingleton::getInstance()->createBackingStore();
Expand All @@ -28,17 +28,10 @@ public function __construct() {
/**
* Creates a new instance of the appropriate class based on discriminator value
* @param ParseNode $parseNode The parse node to use to read the discriminator value and create the object
* @return UpdatableAssetEnrollment
* @return StartRecordingPostRequestBody
*/
public static function createFromDiscriminatorValue(ParseNode $parseNode): UpdatableAssetEnrollment {
$mappingValueNode = $parseNode->getChildNode("@odata.type");
if ($mappingValueNode !== null) {
$mappingValue = $mappingValueNode->getStringValue();
switch ($mappingValue) {
case '#microsoft.graph.windowsUpdates.updateManagementEnrollment': return new UpdateManagementEnrollment();
}
}
return new UpdatableAssetEnrollment();
public static function createFromDiscriminatorValue(ParseNode $parseNode): StartRecordingPostRequestBody {
return new StartRecordingPostRequestBody();
}

/**
Expand All @@ -62,35 +55,35 @@ public function getBackingStore(): BackingStore {
return $this->backingStore;
}

/**
* Gets the clientContext property value. The clientContext property
* @return string|null
*/
public function getClientContext(): ?string {
$val = $this->getBackingStore()->get('clientContext');
if (is_null($val) || is_string($val)) {
return $val;
}
throw new \UnexpectedValueException("Invalid type found in backing store for 'clientContext'");
}

/**
* The deserialization information for the current model
* @return array<string, callable(ParseNode): void>
*/
public function getFieldDeserializers(): array {
$o = $this;
return [
'@odata.type' => fn(ParseNode $n) => $o->setOdataType($n->getStringValue()),
'clientContext' => fn(ParseNode $n) => $o->setClientContext($n->getStringValue()),
];
}

/**
* Gets the @odata.type property value. The OdataType property
* @return string|null
*/
public function getOdataType(): ?string {
$val = $this->getBackingStore()->get('odataType');
if (is_null($val) || is_string($val)) {
return $val;
}
throw new \UnexpectedValueException("Invalid type found in backing store for 'odataType'");
}

/**
* Serializes information the current object
* @param SerializationWriter $writer Serialization writer to use to serialize this model
*/
public function serialize(SerializationWriter $writer): void {
$writer->writeStringValue('@odata.type', $this->getOdataType());
$writer->writeStringValue('clientContext', $this->getClientContext());
$writer->writeAdditionalData($this->getAdditionalData());
}

Expand All @@ -111,11 +104,11 @@ public function setBackingStore(BackingStore $value): void {
}

/**
* Sets the @odata.type property value. The OdataType property
* @param string|null $value Value to set for the @odata.type property.
* Sets the clientContext property value. The clientContext property
* @param string|null $value Value to set for the clientContext property.
*/
public function setOdataType(?string $value): void {
$this->getBackingStore()->set('odataType', $value);
public function setClientContext(?string $value): void {
$this->getBackingStore()->set('clientContext', $value);
}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
<?php

namespace Microsoft\Graph\Beta\Generated\App\Calls\Item\StartRecording;

use Exception;
use Http\Promise\Promise;
use Microsoft\Graph\Beta\Generated\Models\ODataErrors\ODataError;
use Microsoft\Graph\Beta\Generated\Models\StartRecordingOperation;
use Microsoft\Kiota\Abstractions\BaseRequestBuilder;
use Microsoft\Kiota\Abstractions\HttpMethod;
use Microsoft\Kiota\Abstractions\RequestAdapter;
use Microsoft\Kiota\Abstractions\RequestInformation;

/**
* Provides operations to call the startRecording method.
*/
class StartRecordingRequestBuilder extends BaseRequestBuilder
{
/**
* Instantiates a new StartRecordingRequestBuilder and sets the default values.
* @param array<string, mixed>|string $pathParametersOrRawUrl Path parameters for the request or a String representing the raw URL.
* @param RequestAdapter $requestAdapter The request adapter to use to execute the requests.
*/
public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdapter) {
parent::__construct($requestAdapter, [], '{+baseurl}/app/calls/{call%2Did}/startRecording');
if (is_array($pathParametersOrRawUrl)) {
$this->pathParameters = $pathParametersOrRawUrl;
} else {
$this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl];
}
}

/**
* Invoke action startRecording
* @param StartRecordingPostRequestBody $body The request body
* @param StartRecordingRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @return Promise<StartRecordingOperation|null>
* @throws Exception
*/
public function post(StartRecordingPostRequestBody $body, ?StartRecordingRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise {
$requestInfo = $this->toPostRequestInformation($body, $requestConfiguration);
$errorMappings = [
'XXX' => [ODataError::class, 'createFromDiscriminatorValue'],
];
return $this->requestAdapter->sendAsync($requestInfo, [StartRecordingOperation::class, 'createFromDiscriminatorValue'], $errorMappings);
}

/**
* Invoke action startRecording
* @param StartRecordingPostRequestBody $body The request body
* @param StartRecordingRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @return RequestInformation
*/
public function toPostRequestInformation(StartRecordingPostRequestBody $body, ?StartRecordingRequestBuilderPostRequestConfiguration $requestConfiguration = null): RequestInformation {
$requestInfo = new RequestInformation();
$requestInfo->urlTemplate = $this->urlTemplate;
$requestInfo->pathParameters = $this->pathParameters;
$requestInfo->httpMethod = HttpMethod::POST;
if ($requestConfiguration !== null) {
$requestInfo->addHeaders($requestConfiguration->headers);
$requestInfo->addRequestOptions(...$requestConfiguration->options);
}
$requestInfo->tryAddHeader('Accept', "application/json");
$requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body);
return $requestInfo;
}

/**
* Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
* @param string $rawUrl The raw URL to use for the request builder.
* @return StartRecordingRequestBuilder
*/
public function withUrl(string $rawUrl): StartRecordingRequestBuilder {
return new StartRecordingRequestBuilder($rawUrl, $this->requestAdapter);
}

}
Loading
Loading