Skip to content

Commit 2fe960c

Browse files
Microsoft Graph DevX ToolingMicrosoft Graph DevX Tooling
Microsoft Graph DevX Tooling
authored and
Microsoft Graph DevX Tooling
committed
feat(generation): update request builders and models
Update generated files with build 175190
1 parent e0cdb0d commit 2fe960c

File tree

482 files changed

+8935
-2758
lines changed

Some content is hidden

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

482 files changed

+8935
-2758
lines changed

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

+3-3
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 an operationalInsightsConnection object.
49+
* Read the properties and relationships of a resourceConnection 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-operationalinsightsconnection-get?view=graph-rest-beta Find more info here
53+
* @link https://learn.microsoft.com/graph/api/windowsupdates-resourceconnection-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 an operationalInsightsConnection object.
97+
* Read the properties and relationships of a resourceConnection 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

+1-1
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 an operationalInsightsConnection object.
8+
* Read the properties and relationships of a resourceConnection object.
99
*/
1010
class ResourceConnectionItemRequestBuilderGetQueryParameters
1111
{

src/Generated/Admin/Windows/Updates/UpdatableAssets/Item/UpdatableAssetItemRequestBuilder.php

+6-6
Original file line numberDiff line numberDiff line change
@@ -63,11 +63,11 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap
6363
}
6464

6565
/**
66-
* Delete an updatableAsset object.
66+
* Delete an azureADDevice object. When a Microsoft Entra device is deleted, it is unregistered and automatically unenrolled from management for all update categories, as well as removed from every deploymentAudience and updatableAssetGroup.
6767
* @param UpdatableAssetItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
6868
* @return Promise<void|null>
6969
* @throws Exception
70-
* @link https://learn.microsoft.com/graph/api/windowsupdates-updatableasset-delete?view=graph-rest-beta Find more info here
70+
* @link https://learn.microsoft.com/graph/api/windowsupdates-azureaddevice-delete?view=graph-rest-beta Find more info here
7171
*/
7272
public function delete(?UpdatableAssetItemRequestBuilderDeleteRequestConfiguration $requestConfiguration = null): Promise {
7373
$requestInfo = $this->toDeleteRequestInformation($requestConfiguration);
@@ -78,11 +78,11 @@ public function delete(?UpdatableAssetItemRequestBuilderDeleteRequestConfigurati
7878
}
7979

8080
/**
81-
* Read the properties and relationships of an updatableAsset object.
81+
* Read the properties and relationships of an updatableAssetGroup object.
8282
* @param UpdatableAssetItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
8383
* @return Promise<UpdatableAsset|null>
8484
* @throws Exception
85-
* @link https://learn.microsoft.com/graph/api/windowsupdates-updatableasset-get?view=graph-rest-beta Find more info here
85+
* @link https://learn.microsoft.com/graph/api/windowsupdates-updatableassetgroup-get?view=graph-rest-beta Find more info here
8686
*/
8787
public function get(?UpdatableAssetItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise {
8888
$requestInfo = $this->toGetRequestInformation($requestConfiguration);
@@ -108,7 +108,7 @@ public function patch(UpdatableAsset $body, ?UpdatableAssetItemRequestBuilderPat
108108
}
109109

110110
/**
111-
* Delete an updatableAsset object.
111+
* Delete an azureADDevice object. When a Microsoft Entra device is deleted, it is unregistered and automatically unenrolled from management for all update categories, as well as removed from every deploymentAudience and updatableAssetGroup.
112112
* @param UpdatableAssetItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
113113
* @return RequestInformation
114114
*/
@@ -126,7 +126,7 @@ public function toDeleteRequestInformation(?UpdatableAssetItemRequestBuilderDele
126126
}
127127

128128
/**
129-
* Read the properties and relationships of an updatableAsset object.
129+
* Read the properties and relationships of an updatableAssetGroup object.
130130
* @param UpdatableAssetItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
131131
* @return RequestInformation
132132
*/

src/Generated/Admin/Windows/Updates/UpdatableAssets/Item/UpdatableAssetItemRequestBuilderGetQueryParameters.php

+1-1
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 an updatableAsset object.
8+
* Read the properties and relationships of an updatableAssetGroup object.
99
*/
1010
class UpdatableAssetItemRequestBuilderGetQueryParameters
1111
{
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,114 @@
1+
<?php
2+
3+
namespace Microsoft\Graph\Beta\Generated\AdministrativeUnits\Item\Restore;
4+
5+
use Microsoft\Kiota\Abstractions\Serialization\AdditionalDataHolder;
6+
use Microsoft\Kiota\Abstractions\Serialization\Parsable;
7+
use Microsoft\Kiota\Abstractions\Serialization\ParseNode;
8+
use Microsoft\Kiota\Abstractions\Serialization\SerializationWriter;
9+
use Microsoft\Kiota\Abstractions\Store\BackedModel;
10+
use Microsoft\Kiota\Abstractions\Store\BackingStore;
11+
use Microsoft\Kiota\Abstractions\Store\BackingStoreFactorySingleton;
12+
13+
class RestorePostRequestBody implements AdditionalDataHolder, BackedModel, Parsable
14+
{
15+
/**
16+
* @var BackingStore $backingStore Stores model information.
17+
*/
18+
private BackingStore $backingStore;
19+
20+
/**
21+
* Instantiates a new RestorePostRequestBody and sets the default values.
22+
*/
23+
public function __construct() {
24+
$this->backingStore = BackingStoreFactorySingleton::getInstance()->createBackingStore();
25+
$this->setAdditionalData([]);
26+
}
27+
28+
/**
29+
* Creates a new instance of the appropriate class based on discriminator value
30+
* @param ParseNode $parseNode The parse node to use to read the discriminator value and create the object
31+
* @return RestorePostRequestBody
32+
*/
33+
public static function createFromDiscriminatorValue(ParseNode $parseNode): RestorePostRequestBody {
34+
return new RestorePostRequestBody();
35+
}
36+
37+
/**
38+
* Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
39+
* @return array<string, mixed>|null
40+
*/
41+
public function getAdditionalData(): ?array {
42+
$val = $this->getBackingStore()->get('additionalData');
43+
if (is_null($val) || is_array($val)) {
44+
/** @var array<string, mixed>|null $val */
45+
return $val;
46+
}
47+
throw new \UnexpectedValueException("Invalid type found in backing store for 'additionalData'");
48+
}
49+
50+
/**
51+
* Gets the BackingStore property value. Stores model information.
52+
* @return BackingStore
53+
*/
54+
public function getBackingStore(): BackingStore {
55+
return $this->backingStore;
56+
}
57+
58+
/**
59+
* The deserialization information for the current model
60+
* @return array<string, callable(ParseNode): void>
61+
*/
62+
public function getFieldDeserializers(): array {
63+
$o = $this;
64+
return [
65+
'newUserPrincipalName' => fn(ParseNode $n) => $o->setNewUserPrincipalName($n->getStringValue()),
66+
];
67+
}
68+
69+
/**
70+
* Gets the newUserPrincipalName property value. The newUserPrincipalName property
71+
* @return string|null
72+
*/
73+
public function getNewUserPrincipalName(): ?string {
74+
$val = $this->getBackingStore()->get('newUserPrincipalName');
75+
if (is_null($val) || is_string($val)) {
76+
return $val;
77+
}
78+
throw new \UnexpectedValueException("Invalid type found in backing store for 'newUserPrincipalName'");
79+
}
80+
81+
/**
82+
* Serializes information the current object
83+
* @param SerializationWriter $writer Serialization writer to use to serialize this model
84+
*/
85+
public function serialize(SerializationWriter $writer): void {
86+
$writer->writeStringValue('newUserPrincipalName', $this->getNewUserPrincipalName());
87+
$writer->writeAdditionalData($this->getAdditionalData());
88+
}
89+
90+
/**
91+
* Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
92+
* @param array<string,mixed> $value Value to set for the AdditionalData property.
93+
*/
94+
public function setAdditionalData(?array $value): void {
95+
$this->getBackingStore()->set('additionalData', $value);
96+
}
97+
98+
/**
99+
* Sets the BackingStore property value. Stores model information.
100+
* @param BackingStore $value Value to set for the BackingStore property.
101+
*/
102+
public function setBackingStore(BackingStore $value): void {
103+
$this->backingStore = $value;
104+
}
105+
106+
/**
107+
* Sets the newUserPrincipalName property value. The newUserPrincipalName property
108+
* @param string|null $value Value to set for the newUserPrincipalName property.
109+
*/
110+
public function setNewUserPrincipalName(?string $value): void {
111+
$this->getBackingStore()->set('newUserPrincipalName', $value);
112+
}
113+
114+
}

src/Generated/AdministrativeUnits/Item/Restore/RestoreRequestBuilder.php

+6-3
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,14 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap
3232

3333
/**
3434
* Restore a recently deleted directory object from deleted items. The following types are supported:- administrativeUnit- application- certificateBasedAuthPki- [certificateAuthorityDetail](../resources/certificateauthoritydetail.md- externalUserProfile- group- pendingExternalUserProfile- servicePrincipal- user If an item was accidentally deleted, you can fully restore the item. This isn't applicable to security groups, which are deleted permanently. Also, restoring an application doesn't restore the associated service principal automatically. You must call this API to explicitly restore the deleted service principal. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted.
35+
* @param RestorePostRequestBody $body The request body
3536
* @param RestoreRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
3637
* @return Promise<DirectoryObject|null>
3738
* @throws Exception
3839
* @link https://learn.microsoft.com/graph/api/directory-deleteditems-restore?view=graph-rest-beta Find more info here
3940
*/
40-
public function post(?RestoreRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise {
41-
$requestInfo = $this->toPostRequestInformation($requestConfiguration);
41+
public function post(RestorePostRequestBody $body, ?RestoreRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise {
42+
$requestInfo = $this->toPostRequestInformation($body, $requestConfiguration);
4243
$errorMappings = [
4344
'XXX' => [ODataError::class, 'createFromDiscriminatorValue'],
4445
];
@@ -47,10 +48,11 @@ public function post(?RestoreRequestBuilderPostRequestConfiguration $requestConf
4748

4849
/**
4950
* Restore a recently deleted directory object from deleted items. The following types are supported:- administrativeUnit- application- certificateBasedAuthPki- [certificateAuthorityDetail](../resources/certificateauthoritydetail.md- externalUserProfile- group- pendingExternalUserProfile- servicePrincipal- user If an item was accidentally deleted, you can fully restore the item. This isn't applicable to security groups, which are deleted permanently. Also, restoring an application doesn't restore the associated service principal automatically. You must call this API to explicitly restore the deleted service principal. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted.
51+
* @param RestorePostRequestBody $body The request body
5052
* @param RestoreRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
5153
* @return RequestInformation
5254
*/
53-
public function toPostRequestInformation(?RestoreRequestBuilderPostRequestConfiguration $requestConfiguration = null): RequestInformation {
55+
public function toPostRequestInformation(RestorePostRequestBody $body, ?RestoreRequestBuilderPostRequestConfiguration $requestConfiguration = null): RequestInformation {
5456
$requestInfo = new RequestInformation();
5557
$requestInfo->urlTemplate = $this->urlTemplate;
5658
$requestInfo->pathParameters = $this->pathParameters;
@@ -60,6 +62,7 @@ public function toPostRequestInformation(?RestoreRequestBuilderPostRequestConfig
6062
$requestInfo->addRequestOptions(...$requestConfiguration->options);
6163
}
6264
$requestInfo->tryAddHeader('Accept', "application/json");
65+
$requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body);
6366
return $requestInfo;
6467
}
6568

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

+3-3
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,12 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap
3131
}
3232

3333
/**
34-
* Invite participants to the active call. For more information about how to handle operations, see commsOperation.
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.
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-invite?view=graph-rest-beta Find more info here
39+
* @link https://learn.microsoft.com/graph/api/participant-delete?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-
* Invite participants to the active call. For more information about how to handle operations, see commsOperation.
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.
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

0 commit comments

Comments
 (0)