Skip to content

Commit 81423f6

Browse files
authored
Merge pull request #355 from microsoftgraph/kiota/beta/pipelinebuild/177586
Generated beta models and request builders
2 parents b4a0be4 + c388421 commit 81423f6

File tree

281 files changed

+4034
-645
lines changed

Some content is hidden

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

281 files changed

+4034
-645
lines changed

src/Generated/Admin/Windows/Updates/ResourceConnections/Item/ResourceConnectionItemRequestBuilder.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,11 @@ public function delete(?ResourceConnectionItemRequestBuilderDeleteRequestConfigu
4646
}
4747

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

9696
/**
97-
* Read the properties and relationships of a resourceConnection object.
97+
* Read the properties and relationships of an operationalInsightsConnection object.
9898
* @param ResourceConnectionItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
9999
* @return RequestInformation
100100
*/

src/Generated/Admin/Windows/Updates/ResourceConnections/Item/ResourceConnectionItemRequestBuilderGetQueryParameters.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
use Microsoft\Kiota\Abstractions\QueryParameter;
66

77
/**
8-
* Read the properties and relationships of a resourceConnection object.
8+
* Read the properties and relationships of an operationalInsightsConnection object.
99
*/
1010
class ResourceConnectionItemRequestBuilderGetQueryParameters
1111
{

src/Generated/Admin/Windows/Updates/UpdatePolicies/Item/ComplianceChanges/Item/ComplianceChangeItemRequestBuilder.php

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,11 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap
3939
}
4040

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

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

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

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

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

126126
/**
127-
* Update the properties of a contentApproval object.
127+
* Update the properties of a complianceChange object.
128128
* @param ComplianceChange $body The request body
129129
* @param ComplianceChangeItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
130130
* @return RequestInformation

src/Generated/Admin/Windows/Updates/UpdatePolicies/Item/ComplianceChanges/Item/ComplianceChangeItemRequestBuilderGetQueryParameters.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
use Microsoft\Kiota\Abstractions\QueryParameter;
66

77
/**
8-
* Read the properties and relationships of a contentApproval object.
8+
* Read the properties and relationships of a complianceChange object.
99
*/
1010
class ComplianceChangeItemRequestBuilderGetQueryParameters
1111
{

src/Generated/App/Calls/Item/CallItemRequestBuilder.php

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@
2020
use Microsoft\Graph\Beta\Generated\App\Calls\Item\Redirect\RedirectRequestBuilder;
2121
use Microsoft\Graph\Beta\Generated\App\Calls\Item\Reject\RejectRequestBuilder;
2222
use Microsoft\Graph\Beta\Generated\App\Calls\Item\SendDtmfTones\SendDtmfTonesRequestBuilder;
23+
use Microsoft\Graph\Beta\Generated\App\Calls\Item\StartRecording\StartRecordingRequestBuilder;
24+
use Microsoft\Graph\Beta\Generated\App\Calls\Item\StartTranscription\StartTranscriptionRequestBuilder;
25+
use Microsoft\Graph\Beta\Generated\App\Calls\Item\StopRecording\StopRecordingRequestBuilder;
26+
use Microsoft\Graph\Beta\Generated\App\Calls\Item\StopTranscription\StopTranscriptionRequestBuilder;
2327
use Microsoft\Graph\Beta\Generated\App\Calls\Item\SubscribeToTone\SubscribeToToneRequestBuilder;
2428
use Microsoft\Graph\Beta\Generated\App\Calls\Item\Transfer\TransferRequestBuilder;
2529
use Microsoft\Graph\Beta\Generated\App\Calls\Item\Unmute\UnmuteRequestBuilder;
@@ -148,6 +152,34 @@ public function sendDtmfTones(): SendDtmfTonesRequestBuilder {
148152
return new SendDtmfTonesRequestBuilder($this->pathParameters, $this->requestAdapter);
149153
}
150154

155+
/**
156+
* Provides operations to call the startRecording method.
157+
*/
158+
public function startRecording(): StartRecordingRequestBuilder {
159+
return new StartRecordingRequestBuilder($this->pathParameters, $this->requestAdapter);
160+
}
161+
162+
/**
163+
* Provides operations to call the startTranscription method.
164+
*/
165+
public function startTranscription(): StartTranscriptionRequestBuilder {
166+
return new StartTranscriptionRequestBuilder($this->pathParameters, $this->requestAdapter);
167+
}
168+
169+
/**
170+
* Provides operations to call the stopRecording method.
171+
*/
172+
public function stopRecording(): StopRecordingRequestBuilder {
173+
return new StopRecordingRequestBuilder($this->pathParameters, $this->requestAdapter);
174+
}
175+
176+
/**
177+
* Provides operations to call the stopTranscription method.
178+
*/
179+
public function stopTranscription(): StopTranscriptionRequestBuilder {
180+
return new StopTranscriptionRequestBuilder($this->pathParameters, $this->requestAdapter);
181+
}
182+
151183
/**
152184
* Provides operations to call the subscribeToTone method.
153185
*/

src/Generated/App/Calls/Item/Participants/Invite/InviteRequestBuilder.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,12 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap
3131
}
3232

3333
/**
34-
* 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.
34+
* Invite participants to the active call. For more information about how to handle operations, see commsOperation.
3535
* @param InvitePostRequestBody $body The request body
3636
* @param InviteRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
3737
* @return Promise<InviteParticipantsOperation|null>
3838
* @throws Exception
39-
* @link https://learn.microsoft.com/graph/api/participant-delete?view=graph-rest-beta Find more info here
39+
* @link https://learn.microsoft.com/graph/api/participant-invite?view=graph-rest-beta Find more info here
4040
*/
4141
public function post(InvitePostRequestBody $body, ?InviteRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise {
4242
$requestInfo = $this->toPostRequestInformation($body, $requestConfiguration);
@@ -47,7 +47,7 @@ public function post(InvitePostRequestBody $body, ?InviteRequestBuilderPostReque
4747
}
4848

4949
/**
50-
* 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.
50+
* Invite participants to the active call. For more information about how to handle operations, see commsOperation.
5151
* @param InvitePostRequestBody $body The request body
5252
* @param InviteRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
5353
* @return RequestInformation

src/Generated/Models/WindowsUpdates/UpdatableAssetEnrollment.php renamed to src/Generated/App/Calls/Item/StartRecording/StartRecordingPostRequestBody.php

Lines changed: 24 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace Microsoft\Graph\Beta\Generated\Models\WindowsUpdates;
3+
namespace Microsoft\Graph\Beta\Generated\App\Calls\Item\StartRecording;
44

55
use Microsoft\Kiota\Abstractions\Serialization\AdditionalDataHolder;
66
use Microsoft\Kiota\Abstractions\Serialization\Parsable;
@@ -10,15 +10,15 @@
1010
use Microsoft\Kiota\Abstractions\Store\BackingStore;
1111
use Microsoft\Kiota\Abstractions\Store\BackingStoreFactorySingleton;
1212

13-
class UpdatableAssetEnrollment implements AdditionalDataHolder, BackedModel, Parsable
13+
class StartRecordingPostRequestBody implements AdditionalDataHolder, BackedModel, Parsable
1414
{
1515
/**
1616
* @var BackingStore $backingStore Stores model information.
1717
*/
1818
private BackingStore $backingStore;
1919

2020
/**
21-
* Instantiates a new UpdatableAssetEnrollment and sets the default values.
21+
* Instantiates a new StartRecordingPostRequestBody and sets the default values.
2222
*/
2323
public function __construct() {
2424
$this->backingStore = BackingStoreFactorySingleton::getInstance()->createBackingStore();
@@ -28,17 +28,10 @@ public function __construct() {
2828
/**
2929
* Creates a new instance of the appropriate class based on discriminator value
3030
* @param ParseNode $parseNode The parse node to use to read the discriminator value and create the object
31-
* @return UpdatableAssetEnrollment
31+
* @return StartRecordingPostRequestBody
3232
*/
33-
public static function createFromDiscriminatorValue(ParseNode $parseNode): UpdatableAssetEnrollment {
34-
$mappingValueNode = $parseNode->getChildNode("@odata.type");
35-
if ($mappingValueNode !== null) {
36-
$mappingValue = $mappingValueNode->getStringValue();
37-
switch ($mappingValue) {
38-
case '#microsoft.graph.windowsUpdates.updateManagementEnrollment': return new UpdateManagementEnrollment();
39-
}
40-
}
41-
return new UpdatableAssetEnrollment();
33+
public static function createFromDiscriminatorValue(ParseNode $parseNode): StartRecordingPostRequestBody {
34+
return new StartRecordingPostRequestBody();
4235
}
4336

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

58+
/**
59+
* Gets the clientContext property value. The clientContext property
60+
* @return string|null
61+
*/
62+
public function getClientContext(): ?string {
63+
$val = $this->getBackingStore()->get('clientContext');
64+
if (is_null($val) || is_string($val)) {
65+
return $val;
66+
}
67+
throw new \UnexpectedValueException("Invalid type found in backing store for 'clientContext'");
68+
}
69+
6570
/**
6671
* The deserialization information for the current model
6772
* @return array<string, callable(ParseNode): void>
6873
*/
6974
public function getFieldDeserializers(): array {
7075
$o = $this;
7176
return [
72-
'@odata.type' => fn(ParseNode $n) => $o->setOdataType($n->getStringValue()),
77+
'clientContext' => fn(ParseNode $n) => $o->setClientContext($n->getStringValue()),
7378
];
7479
}
7580

76-
/**
77-
* Gets the @odata.type property value. The OdataType property
78-
* @return string|null
79-
*/
80-
public function getOdataType(): ?string {
81-
$val = $this->getBackingStore()->get('odataType');
82-
if (is_null($val) || is_string($val)) {
83-
return $val;
84-
}
85-
throw new \UnexpectedValueException("Invalid type found in backing store for 'odataType'");
86-
}
87-
8881
/**
8982
* Serializes information the current object
9083
* @param SerializationWriter $writer Serialization writer to use to serialize this model
9184
*/
9285
public function serialize(SerializationWriter $writer): void {
93-
$writer->writeStringValue('@odata.type', $this->getOdataType());
86+
$writer->writeStringValue('clientContext', $this->getClientContext());
9487
$writer->writeAdditionalData($this->getAdditionalData());
9588
}
9689

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

113106
/**
114-
* Sets the @odata.type property value. The OdataType property
115-
* @param string|null $value Value to set for the @odata.type property.
107+
* Sets the clientContext property value. The clientContext property
108+
* @param string|null $value Value to set for the clientContext property.
116109
*/
117-
public function setOdataType(?string $value): void {
118-
$this->getBackingStore()->set('odataType', $value);
110+
public function setClientContext(?string $value): void {
111+
$this->getBackingStore()->set('clientContext', $value);
119112
}
120113

121114
}
Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
<?php
2+
3+
namespace Microsoft\Graph\Beta\Generated\App\Calls\Item\StartRecording;
4+
5+
use Exception;
6+
use Http\Promise\Promise;
7+
use Microsoft\Graph\Beta\Generated\Models\ODataErrors\ODataError;
8+
use Microsoft\Graph\Beta\Generated\Models\StartRecordingOperation;
9+
use Microsoft\Kiota\Abstractions\BaseRequestBuilder;
10+
use Microsoft\Kiota\Abstractions\HttpMethod;
11+
use Microsoft\Kiota\Abstractions\RequestAdapter;
12+
use Microsoft\Kiota\Abstractions\RequestInformation;
13+
14+
/**
15+
* Provides operations to call the startRecording method.
16+
*/
17+
class StartRecordingRequestBuilder extends BaseRequestBuilder
18+
{
19+
/**
20+
* Instantiates a new StartRecordingRequestBuilder and sets the default values.
21+
* @param array<string, mixed>|string $pathParametersOrRawUrl Path parameters for the request or a String representing the raw URL.
22+
* @param RequestAdapter $requestAdapter The request adapter to use to execute the requests.
23+
*/
24+
public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdapter) {
25+
parent::__construct($requestAdapter, [], '{+baseurl}/app/calls/{call%2Did}/startRecording');
26+
if (is_array($pathParametersOrRawUrl)) {
27+
$this->pathParameters = $pathParametersOrRawUrl;
28+
} else {
29+
$this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl];
30+
}
31+
}
32+
33+
/**
34+
* Invoke action startRecording
35+
* @param StartRecordingPostRequestBody $body The request body
36+
* @param StartRecordingRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
37+
* @return Promise<StartRecordingOperation|null>
38+
* @throws Exception
39+
*/
40+
public function post(StartRecordingPostRequestBody $body, ?StartRecordingRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise {
41+
$requestInfo = $this->toPostRequestInformation($body, $requestConfiguration);
42+
$errorMappings = [
43+
'XXX' => [ODataError::class, 'createFromDiscriminatorValue'],
44+
];
45+
return $this->requestAdapter->sendAsync($requestInfo, [StartRecordingOperation::class, 'createFromDiscriminatorValue'], $errorMappings);
46+
}
47+
48+
/**
49+
* Invoke action startRecording
50+
* @param StartRecordingPostRequestBody $body The request body
51+
* @param StartRecordingRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
52+
* @return RequestInformation
53+
*/
54+
public function toPostRequestInformation(StartRecordingPostRequestBody $body, ?StartRecordingRequestBuilderPostRequestConfiguration $requestConfiguration = null): RequestInformation {
55+
$requestInfo = new RequestInformation();
56+
$requestInfo->urlTemplate = $this->urlTemplate;
57+
$requestInfo->pathParameters = $this->pathParameters;
58+
$requestInfo->httpMethod = HttpMethod::POST;
59+
if ($requestConfiguration !== null) {
60+
$requestInfo->addHeaders($requestConfiguration->headers);
61+
$requestInfo->addRequestOptions(...$requestConfiguration->options);
62+
}
63+
$requestInfo->tryAddHeader('Accept', "application/json");
64+
$requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body);
65+
return $requestInfo;
66+
}
67+
68+
/**
69+
* Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
70+
* @param string $rawUrl The raw URL to use for the request builder.
71+
* @return StartRecordingRequestBuilder
72+
*/
73+
public function withUrl(string $rawUrl): StartRecordingRequestBuilder {
74+
return new StartRecordingRequestBuilder($rawUrl, $this->requestAdapter);
75+
}
76+
77+
}

0 commit comments

Comments
 (0)