Skip to content

Commit b65d471

Browse files
Microsoft Graph DevX ToolingMicrosoft Graph DevX Tooling
authored andcommitted
feat(generation): update request builders and models
Update generated files with build 163754
1 parent b3d466e commit b65d471

129 files changed

Lines changed: 2541 additions & 377 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 114 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,114 @@
1+
<?php
2+
3+
namespace Microsoft\Graph\Generated\Applications\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 autoReconcileProxyConflict property value. The autoReconcileProxyConflict property
52+
* @return bool|null
53+
*/
54+
public function getAutoReconcileProxyConflict(): ?bool {
55+
$val = $this->getBackingStore()->get('autoReconcileProxyConflict');
56+
if (is_null($val) || is_bool($val)) {
57+
return $val;
58+
}
59+
throw new \UnexpectedValueException("Invalid type found in backing store for 'autoReconcileProxyConflict'");
60+
}
61+
62+
/**
63+
* Gets the BackingStore property value. Stores model information.
64+
* @return BackingStore
65+
*/
66+
public function getBackingStore(): BackingStore {
67+
return $this->backingStore;
68+
}
69+
70+
/**
71+
* The deserialization information for the current model
72+
* @return array<string, callable(ParseNode): void>
73+
*/
74+
public function getFieldDeserializers(): array {
75+
$o = $this;
76+
return [
77+
'autoReconcileProxyConflict' => fn(ParseNode $n) => $o->setAutoReconcileProxyConflict($n->getBooleanValue()),
78+
];
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->writeBooleanValue('autoReconcileProxyConflict', $this->getAutoReconcileProxyConflict());
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 autoReconcileProxyConflict property value. The autoReconcileProxyConflict property
100+
* @param bool|null $value Value to set for the autoReconcileProxyConflict property.
101+
*/
102+
public function setAutoReconcileProxyConflict(?bool $value): void {
103+
$this->getBackingStore()->set('autoReconcileProxyConflict', $value);
104+
}
105+
106+
/**
107+
* Sets the BackingStore property value. Stores model information.
108+
* @param BackingStore $value Value to set for the BackingStore property.
109+
*/
110+
public function setBackingStore(BackingStore $value): void {
111+
$this->backingStore = $value;
112+
}
113+
114+
}

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

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

3333
/**
34-
* Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. However, security groups cannot be restored. 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.
34+
* Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. However, security groups can't be restored. 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-1.0 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
];
4546
return $this->requestAdapter->sendAsync($requestInfo, [DirectoryObject::class, 'createFromDiscriminatorValue'], $errorMappings);
4647
}
4748

4849
/**
49-
* Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. However, security groups cannot be restored. 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.
50+
* Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. However, security groups can't be restored. 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/Chats/Item/Members/Item/ConversationMemberItemRequestBuilder.php

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

4848
/**
49-
* Retrieve a conversationMember from a chat or channel.
49+
* Retrieve a conversationMember from a chat.
5050
* @param ConversationMemberItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
5151
* @return Promise<ConversationMember|null>
5252
* @throws Exception
53-
* @link https://learn.microsoft.com/graph/api/conversationmember-get?view=graph-rest-1.0 Find more info here
53+
* @link https://learn.microsoft.com/graph/api/chat-get-members?view=graph-rest-1.0 Find more info here
5454
*/
5555
public function get(?ConversationMemberItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise {
5656
$requestInfo = $this->toGetRequestInformation($requestConfiguration);
@@ -94,7 +94,7 @@ public function toDeleteRequestInformation(?ConversationMemberItemRequestBuilder
9494
}
9595

9696
/**
97-
* Retrieve a conversationMember from a chat or channel.
97+
* Retrieve a conversationMember from a chat.
9898
* @param ConversationMemberItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
9999
* @return RequestInformation
100100
*/

src/Generated/Chats/Item/Members/Item/ConversationMemberItemRequestBuilderGetQueryParameters.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-
* Retrieve a conversationMember from a chat or channel.
8+
* Retrieve a conversationMember from a chat.
99
*/
1010
class ConversationMemberItemRequestBuilderGetQueryParameters
1111
{

src/Generated/Chats/Item/Messages/MessagesRequestBuilder.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,12 +75,12 @@ public function get(?MessagesRequestBuilderGetRequestConfiguration $requestConfi
7575
}
7676

7777
/**
78-
* Send a new chatMessage in the specified channel or a chat.
78+
* Send a new chatMessage in the specified chat. This API can't create a new chat; you must use the list chats method to retrieve the ID of an existing chat before you can create a chat message.
7979
* @param ChatMessage $body The request body
8080
* @param MessagesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
8181
* @return Promise<ChatMessage|null>
8282
* @throws Exception
83-
* @link https://learn.microsoft.com/graph/api/chatmessage-post?view=graph-rest-1.0 Find more info here
83+
* @link https://learn.microsoft.com/graph/api/chat-post-messages?view=graph-rest-1.0 Find more info here
8484
*/
8585
public function post(ChatMessage $body, ?MessagesRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise {
8686
$requestInfo = $this->toPostRequestInformation($body, $requestConfiguration);
@@ -112,7 +112,7 @@ public function toGetRequestInformation(?MessagesRequestBuilderGetRequestConfigu
112112
}
113113

114114
/**
115-
* Send a new chatMessage in the specified channel or a chat.
115+
* Send a new chatMessage in the specified chat. This API can't create a new chat; you must use the list chats method to retrieve the ID of an existing chat before you can create a chat message.
116116
* @param ChatMessage $body The request body
117117
* @param MessagesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
118118
* @return RequestInformation

src/Generated/Communications/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-1.0 Find more info here
39+
* @link https://learn.microsoft.com/graph/api/participant-invite?view=graph-rest-1.0 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
Lines changed: 114 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,114 @@
1+
<?php
2+
3+
namespace Microsoft\Graph\Generated\Contacts\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 autoReconcileProxyConflict property value. The autoReconcileProxyConflict property
52+
* @return bool|null
53+
*/
54+
public function getAutoReconcileProxyConflict(): ?bool {
55+
$val = $this->getBackingStore()->get('autoReconcileProxyConflict');
56+
if (is_null($val) || is_bool($val)) {
57+
return $val;
58+
}
59+
throw new \UnexpectedValueException("Invalid type found in backing store for 'autoReconcileProxyConflict'");
60+
}
61+
62+
/**
63+
* Gets the BackingStore property value. Stores model information.
64+
* @return BackingStore
65+
*/
66+
public function getBackingStore(): BackingStore {
67+
return $this->backingStore;
68+
}
69+
70+
/**
71+
* The deserialization information for the current model
72+
* @return array<string, callable(ParseNode): void>
73+
*/
74+
public function getFieldDeserializers(): array {
75+
$o = $this;
76+
return [
77+
'autoReconcileProxyConflict' => fn(ParseNode $n) => $o->setAutoReconcileProxyConflict($n->getBooleanValue()),
78+
];
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->writeBooleanValue('autoReconcileProxyConflict', $this->getAutoReconcileProxyConflict());
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 autoReconcileProxyConflict property value. The autoReconcileProxyConflict property
100+
* @param bool|null $value Value to set for the autoReconcileProxyConflict property.
101+
*/
102+
public function setAutoReconcileProxyConflict(?bool $value): void {
103+
$this->getBackingStore()->set('autoReconcileProxyConflict', $value);
104+
}
105+
106+
/**
107+
* Sets the BackingStore property value. Stores model information.
108+
* @param BackingStore $value Value to set for the BackingStore property.
109+
*/
110+
public function setBackingStore(BackingStore $value): void {
111+
$this->backingStore = $value;
112+
}
113+
114+
}

0 commit comments

Comments
 (0)