Skip to content

Commit 42ad605

Browse files
authored
Merge pull request #1590 from microsoftgraph/kiota/v1.0/pipelinebuild/165500
Generated models and request builders
2 parents 91b1db6 + bd75765 commit 42ad605

File tree

146 files changed

+1481
-2097
lines changed

Some content is hidden

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

146 files changed

+1481
-2097
lines changed

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

Lines changed: 0 additions & 114 deletions
This file was deleted.

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

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,13 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap
3232

3333
/**
3434
* 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
3635
* @param RestoreRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
3736
* @return Promise<DirectoryObject|null>
3837
* @throws Exception
3938
* @link https://learn.microsoft.com/graph/api/directory-deleteditems-restore?view=graph-rest-1.0 Find more info here
4039
*/
41-
public function post(RestorePostRequestBody $body, ?RestoreRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise {
42-
$requestInfo = $this->toPostRequestInformation($body, $requestConfiguration);
40+
public function post(?RestoreRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise {
41+
$requestInfo = $this->toPostRequestInformation($requestConfiguration);
4342
$errorMappings = [
4443
'XXX' => [ODataError::class, 'createFromDiscriminatorValue'],
4544
];
@@ -48,11 +47,10 @@ public function post(RestorePostRequestBody $body, ?RestoreRequestBuilderPostReq
4847

4948
/**
5049
* 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
5250
* @param RestoreRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
5351
* @return RequestInformation
5452
*/
55-
public function toPostRequestInformation(RestorePostRequestBody $body, ?RestoreRequestBuilderPostRequestConfiguration $requestConfiguration = null): RequestInformation {
53+
public function toPostRequestInformation(?RestoreRequestBuilderPostRequestConfiguration $requestConfiguration = null): RequestInformation {
5654
$requestInfo = new RequestInformation();
5755
$requestInfo->urlTemplate = $this->urlTemplate;
5856
$requestInfo->pathParameters = $this->pathParameters;
@@ -62,7 +60,6 @@ public function toPostRequestInformation(RestorePostRequestBody $body, ?RestoreR
6260
$requestInfo->addRequestOptions(...$requestConfiguration->options);
6361
}
6462
$requestInfo->tryAddHeader('Accept', "application/json");
65-
$requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body);
6663
return $requestInfo;
6764
}
6865

src/Generated/Chats/GetAllRetainedMessages/GetAllRetainedMessagesRequestBuilder.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,11 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap
3030
}
3131

3232
/**
33-
* Invoke function getAllRetainedMessages
33+
* Get all retained messages from all chats that a user is a participant in, including one-on-one chats, group chats, and meeting chats. To learn more about how to use the Microsoft Teams export APIs to export content, see Export content with the Microsoft Teams export APIs.
3434
* @param GetAllRetainedMessagesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
3535
* @return Promise<GetAllRetainedMessagesGetResponse|null>
3636
* @throws Exception
37+
* @link https://learn.microsoft.com/graph/api/chat-getallretainedmessages?view=graph-rest-1.0 Find more info here
3738
*/
3839
public function get(?GetAllRetainedMessagesRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise {
3940
$requestInfo = $this->toGetRequestInformation($requestConfiguration);
@@ -44,7 +45,7 @@ public function get(?GetAllRetainedMessagesRequestBuilderGetRequestConfiguration
4445
}
4546

4647
/**
47-
* Invoke function getAllRetainedMessages
48+
* Get all retained messages from all chats that a user is a participant in, including one-on-one chats, group chats, and meeting chats. To learn more about how to use the Microsoft Teams export APIs to export content, see Export content with the Microsoft Teams export APIs.
4849
* @param GetAllRetainedMessagesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
4950
* @return RequestInformation
5051
*/

src/Generated/Chats/GetAllRetainedMessages/GetAllRetainedMessagesRequestBuilderGetQueryParameters.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-
* Invoke function getAllRetainedMessages
8+
* Get all retained messages from all chats that a user is a participant in, including one-on-one chats, group chats, and meeting chats. To learn more about how to use the Microsoft Teams export APIs to export content, see Export content with the Microsoft Teams export APIs.
99
*/
1010
class GetAllRetainedMessagesRequestBuilderGetQueryParameters
1111
{

src/Generated/Contacts/Item/Restore/RestorePostRequestBody.php

Lines changed: 0 additions & 114 deletions
This file was deleted.

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

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,13 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap
3232

3333
/**
3434
* 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
3635
* @param RestoreRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
3736
* @return Promise<DirectoryObject|null>
3837
* @throws Exception
3938
* @link https://learn.microsoft.com/graph/api/directory-deleteditems-restore?view=graph-rest-1.0 Find more info here
4039
*/
41-
public function post(RestorePostRequestBody $body, ?RestoreRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise {
42-
$requestInfo = $this->toPostRequestInformation($body, $requestConfiguration);
40+
public function post(?RestoreRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise {
41+
$requestInfo = $this->toPostRequestInformation($requestConfiguration);
4342
$errorMappings = [
4443
'XXX' => [ODataError::class, 'createFromDiscriminatorValue'],
4544
];
@@ -48,11 +47,10 @@ public function post(RestorePostRequestBody $body, ?RestoreRequestBuilderPostReq
4847

4948
/**
5049
* 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
5250
* @param RestoreRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
5351
* @return RequestInformation
5452
*/
55-
public function toPostRequestInformation(RestorePostRequestBody $body, ?RestoreRequestBuilderPostRequestConfiguration $requestConfiguration = null): RequestInformation {
53+
public function toPostRequestInformation(?RestoreRequestBuilderPostRequestConfiguration $requestConfiguration = null): RequestInformation {
5654
$requestInfo = new RequestInformation();
5755
$requestInfo->urlTemplate = $this->urlTemplate;
5856
$requestInfo->pathParameters = $this->pathParameters;
@@ -62,7 +60,6 @@ public function toPostRequestInformation(RestorePostRequestBody $body, ?RestoreR
6260
$requestInfo->addRequestOptions(...$requestConfiguration->options);
6361
}
6462
$requestInfo->tryAddHeader('Accept', "application/json");
65-
$requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body);
6663
return $requestInfo;
6764
}
6865

0 commit comments

Comments
 (0)