Skip to content

Commit 9cc56db

Browse files
Microsoft Graph DevX ToolingMicrosoft Graph DevX Tooling
authored andcommitted
feat(generation): update request builders and models
Update generated files with build 203454
1 parent acceb46 commit 9cc56db

File tree

1,299 files changed

+47980
-2778
lines changed

Some content is hidden

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

1,299 files changed

+47980
-2778
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ 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. Restore a recently deleted directory object from deleted items. The following types are supported:- administrativeUnit- application- certificateBasedAuthPki- certificateAuthorityDetail- group- servicePrincipal
34+
* Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. Restore a recently deleted directory object from deleted items. The following types are supported:- administrativeUnit- application- certificateBasedAuthPki- certificateAuthorityDetail- group- servicePrincipal- user If an item is accidentally deleted, you can fully restore the item. Additionally, restoring an application doesn't automatically 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.
3535
* @param RestoreRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
3636
* @return Promise<DirectoryObject|null>
3737
* @throws Exception
@@ -46,7 +46,7 @@ public function post(?RestoreRequestBuilderPostRequestConfiguration $requestConf
4646
}
4747

4848
/**
49-
* Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. Restore a recently deleted directory object from deleted items. The following types are supported:- administrativeUnit- application- certificateBasedAuthPki- certificateAuthorityDetail- group- servicePrincipal
49+
* Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. Restore a recently deleted directory object from deleted items. The following types are supported:- administrativeUnit- application- certificateBasedAuthPki- certificateAuthorityDetail- group- servicePrincipal- user If an item is accidentally deleted, you can fully restore the item. Additionally, restoring an application doesn't automatically 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.
5050
* @param RestoreRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
5151
* @return RequestInformation
5252
*/

src/Generated/BaseGraphClient.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -418,7 +418,7 @@ public function permissionGrants(): PermissionGrantsRequestBuilder {
418418
}
419419

420420
/**
421-
* The places property
421+
* Provides operations to manage the collection of place entities.
422422
*/
423423
public function places(): PlacesRequestBuilder {
424424
return new PlacesRequestBuilder($this->pathParameters, $this->requestAdapter);

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/CommunicationsRequestBuilder.php

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@
66
use Http\Promise\Promise;
77
use Microsoft\Graph\Generated\Communications\CallRecords\CallRecordsRequestBuilder;
88
use Microsoft\Graph\Generated\Communications\Calls\CallsRequestBuilder;
9+
use Microsoft\Graph\Generated\Communications\GetAllOnlineMeetingMessages\GetAllOnlineMeetingMessagesRequestBuilder;
910
use Microsoft\Graph\Generated\Communications\GetPresencesByUserId\GetPresencesByUserIdRequestBuilder;
11+
use Microsoft\Graph\Generated\Communications\OnlineMeetingConversations\OnlineMeetingConversationsRequestBuilder;
1012
use Microsoft\Graph\Generated\Communications\OnlineMeetings\OnlineMeetingsRequestBuilder;
1113
use Microsoft\Graph\Generated\Communications\Presences\PresencesRequestBuilder;
1214
use Microsoft\Graph\Generated\Models\CloudCommunications;
@@ -35,13 +37,27 @@ public function calls(): CallsRequestBuilder {
3537
return new CallsRequestBuilder($this->pathParameters, $this->requestAdapter);
3638
}
3739

40+
/**
41+
* Provides operations to call the getAllOnlineMeetingMessages method.
42+
*/
43+
public function getAllOnlineMeetingMessages(): GetAllOnlineMeetingMessagesRequestBuilder {
44+
return new GetAllOnlineMeetingMessagesRequestBuilder($this->pathParameters, $this->requestAdapter);
45+
}
46+
3847
/**
3948
* Provides operations to call the getPresencesByUserId method.
4049
*/
4150
public function getPresencesByUserId(): GetPresencesByUserIdRequestBuilder {
4251
return new GetPresencesByUserIdRequestBuilder($this->pathParameters, $this->requestAdapter);
4352
}
4453

54+
/**
55+
* Provides operations to manage the onlineMeetingConversations property of the microsoft.graph.cloudCommunications entity.
56+
*/
57+
public function onlineMeetingConversations(): OnlineMeetingConversationsRequestBuilder {
58+
return new OnlineMeetingConversationsRequestBuilder($this->pathParameters, $this->requestAdapter);
59+
}
60+
4561
/**
4662
* Provides operations to manage the onlineMeetings property of the microsoft.graph.cloudCommunications entity.
4763
*/
@@ -86,7 +102,7 @@ public function get(?CommunicationsRequestBuilderGetRequestConfiguration $reques
86102

87103
/**
88104
* Update communications
89-
* @param CloudCommunications $body The request body
105+
* @param CloudCommunications $body Represents a container that exposes navigation properties for cloud communications resources.
90106
* @param CommunicationsRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
91107
* @return Promise<CloudCommunications|null>
92108
* @throws Exception
@@ -122,7 +138,7 @@ public function toGetRequestInformation(?CommunicationsRequestBuilderGetRequestC
122138

123139
/**
124140
* Update communications
125-
* @param CloudCommunications $body The request body
141+
* @param CloudCommunications $body Represents a container that exposes navigation properties for cloud communications resources.
126142
* @param CommunicationsRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
127143
* @return RequestInformation
128144
*/
Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
<?php
2+
3+
namespace Microsoft\Graph\Generated\Communications\GetAllOnlineMeetingMessages;
4+
5+
use Microsoft\Graph\Generated\Models\BaseCollectionPaginationCountResponse;
6+
use Microsoft\Graph\Generated\Models\EngagementConversationMessage;
7+
use Microsoft\Kiota\Abstractions\Serialization\Parsable;
8+
use Microsoft\Kiota\Abstractions\Serialization\ParseNode;
9+
use Microsoft\Kiota\Abstractions\Serialization\SerializationWriter;
10+
use Microsoft\Kiota\Abstractions\Types\TypeUtils;
11+
12+
class GetAllOnlineMeetingMessagesGetResponse extends BaseCollectionPaginationCountResponse implements Parsable
13+
{
14+
/**
15+
* Instantiates a new GetAllOnlineMeetingMessagesGetResponse and sets the default values.
16+
*/
17+
public function __construct() {
18+
parent::__construct();
19+
}
20+
21+
/**
22+
* Creates a new instance of the appropriate class based on discriminator value
23+
* @param ParseNode $parseNode The parse node to use to read the discriminator value and create the object
24+
* @return GetAllOnlineMeetingMessagesGetResponse
25+
*/
26+
public static function createFromDiscriminatorValue(ParseNode $parseNode): GetAllOnlineMeetingMessagesGetResponse {
27+
return new GetAllOnlineMeetingMessagesGetResponse();
28+
}
29+
30+
/**
31+
* The deserialization information for the current model
32+
* @return array<string, callable(ParseNode): void>
33+
*/
34+
public function getFieldDeserializers(): array {
35+
$o = $this;
36+
return array_merge(parent::getFieldDeserializers(), [
37+
'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([EngagementConversationMessage::class, 'createFromDiscriminatorValue'])),
38+
]);
39+
}
40+
41+
/**
42+
* Gets the value property value. The value property
43+
* @return array<EngagementConversationMessage>|null
44+
*/
45+
public function getValue(): ?array {
46+
$val = $this->getBackingStore()->get('value');
47+
if (is_array($val) || is_null($val)) {
48+
TypeUtils::validateCollectionValues($val, EngagementConversationMessage::class);
49+
/** @var array<EngagementConversationMessage>|null $val */
50+
return $val;
51+
}
52+
throw new \UnexpectedValueException("Invalid type found in backing store for 'value'");
53+
}
54+
55+
/**
56+
* Serializes information the current object
57+
* @param SerializationWriter $writer Serialization writer to use to serialize this model
58+
*/
59+
public function serialize(SerializationWriter $writer): void {
60+
parent::serialize($writer);
61+
$writer->writeCollectionOfObjectValues('value', $this->getValue());
62+
}
63+
64+
/**
65+
* Sets the value property value. The value property
66+
* @param array<EngagementConversationMessage>|null $value Value to set for the value property.
67+
*/
68+
public function setValue(?array $value): void {
69+
$this->getBackingStore()->set('value', $value);
70+
}
71+
72+
}
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\Generated\Communications\GetAllOnlineMeetingMessages;
4+
5+
use Exception;
6+
use Http\Promise\Promise;
7+
use Microsoft\Graph\Generated\Models\ODataErrors\ODataError;
8+
use Microsoft\Kiota\Abstractions\BaseRequestBuilder;
9+
use Microsoft\Kiota\Abstractions\HttpMethod;
10+
use Microsoft\Kiota\Abstractions\RequestAdapter;
11+
use Microsoft\Kiota\Abstractions\RequestInformation;
12+
13+
/**
14+
* Provides operations to call the getAllOnlineMeetingMessages method.
15+
*/
16+
class GetAllOnlineMeetingMessagesRequestBuilder extends BaseRequestBuilder
17+
{
18+
/**
19+
* Instantiates a new GetAllOnlineMeetingMessagesRequestBuilder and sets the default values.
20+
* @param array<string, mixed>|string $pathParametersOrRawUrl Path parameters for the request or a String representing the raw URL.
21+
* @param RequestAdapter $requestAdapter The request adapter to use to execute the requests.
22+
*/
23+
public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdapter) {
24+
parent::__construct($requestAdapter, [], '{+baseurl}/communications/getAllOnlineMeetingMessages(){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}');
25+
if (is_array($pathParametersOrRawUrl)) {
26+
$this->pathParameters = $pathParametersOrRawUrl;
27+
} else {
28+
$this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl];
29+
}
30+
}
31+
32+
/**
33+
* Get all Teams question and answer (Q&A) conversation messages in a tenant. This function returns a snapshot of all Q&A activity in JSON format. The export includes:- The original question or discussion text- The user who posted the message- All replies and responders- Vote counts- Moderation status (pending or dismissed)- Private replies- The meeting ID and organizer ID that are used for mapping to meeting metadata.
34+
* @param GetAllOnlineMeetingMessagesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
35+
* @return Promise<GetAllOnlineMeetingMessagesGetResponse|null>
36+
* @throws Exception
37+
* @link https://learn.microsoft.com/graph/api/cloudcommunications-getallonlinemeetingmessages?view=graph-rest-1.0 Find more info here
38+
*/
39+
public function get(?GetAllOnlineMeetingMessagesRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise {
40+
$requestInfo = $this->toGetRequestInformation($requestConfiguration);
41+
$errorMappings = [
42+
'XXX' => [ODataError::class, 'createFromDiscriminatorValue'],
43+
];
44+
return $this->requestAdapter->sendAsync($requestInfo, [GetAllOnlineMeetingMessagesGetResponse::class, 'createFromDiscriminatorValue'], $errorMappings);
45+
}
46+
47+
/**
48+
* Get all Teams question and answer (Q&A) conversation messages in a tenant. This function returns a snapshot of all Q&A activity in JSON format. The export includes:- The original question or discussion text- The user who posted the message- All replies and responders- Vote counts- Moderation status (pending or dismissed)- Private replies- The meeting ID and organizer ID that are used for mapping to meeting metadata.
49+
* @param GetAllOnlineMeetingMessagesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
50+
* @return RequestInformation
51+
*/
52+
public function toGetRequestInformation(?GetAllOnlineMeetingMessagesRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation {
53+
$requestInfo = new RequestInformation();
54+
$requestInfo->urlTemplate = $this->urlTemplate;
55+
$requestInfo->pathParameters = $this->pathParameters;
56+
$requestInfo->httpMethod = HttpMethod::GET;
57+
if ($requestConfiguration !== null) {
58+
$requestInfo->addHeaders($requestConfiguration->headers);
59+
if ($requestConfiguration->queryParameters !== null) {
60+
$requestInfo->setQueryParameters($requestConfiguration->queryParameters);
61+
}
62+
$requestInfo->addRequestOptions(...$requestConfiguration->options);
63+
}
64+
$requestInfo->tryAddHeader('Accept', "application/json");
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 GetAllOnlineMeetingMessagesRequestBuilder
72+
*/
73+
public function withUrl(string $rawUrl): GetAllOnlineMeetingMessagesRequestBuilder {
74+
return new GetAllOnlineMeetingMessagesRequestBuilder($rawUrl, $this->requestAdapter);
75+
}
76+
77+
}
Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
1+
<?php
2+
3+
namespace Microsoft\Graph\Generated\Communications\GetAllOnlineMeetingMessages;
4+
5+
use Microsoft\Kiota\Abstractions\QueryParameter;
6+
7+
/**
8+
* Get all Teams question and answer (Q&A) conversation messages in a tenant. This function returns a snapshot of all Q&A activity in JSON format. The export includes:- The original question or discussion text- The user who posted the message- All replies and responders- Vote counts- Moderation status (pending or dismissed)- Private replies- The meeting ID and organizer ID that are used for mapping to meeting metadata.
9+
*/
10+
class GetAllOnlineMeetingMessagesRequestBuilderGetQueryParameters
11+
{
12+
/**
13+
* @QueryParameter("%24count")
14+
* @var bool|null $count Include count of items
15+
*/
16+
public ?bool $count = null;
17+
18+
/**
19+
* @QueryParameter("%24expand")
20+
* @var array<string>|null $expand Expand related entities
21+
*/
22+
public ?array $expand = null;
23+
24+
/**
25+
* @QueryParameter("%24filter")
26+
* @var string|null $filter Filter items by property values
27+
*/
28+
public ?string $filter = null;
29+
30+
/**
31+
* @QueryParameter("%24orderby")
32+
* @var array<string>|null $orderby Order items by property values
33+
*/
34+
public ?array $orderby = null;
35+
36+
/**
37+
* @QueryParameter("%24search")
38+
* @var string|null $search Search items by search phrases
39+
*/
40+
public ?string $search = null;
41+
42+
/**
43+
* @QueryParameter("%24select")
44+
* @var array<string>|null $select Select properties to be returned
45+
*/
46+
public ?array $select = null;
47+
48+
/**
49+
* @QueryParameter("%24skip")
50+
* @var int|null $skip Skip the first n items
51+
*/
52+
public ?int $skip = null;
53+
54+
/**
55+
* @QueryParameter("%24top")
56+
* @var int|null $top Show only the first n items
57+
*/
58+
public ?int $top = null;
59+
60+
/**
61+
* Instantiates a new GetAllOnlineMeetingMessagesRequestBuilderGetQueryParameters and sets the default values.
62+
* @param bool|null $count Include count of items
63+
* @param array<string>|null $expand Expand related entities
64+
* @param string|null $filter Filter items by property values
65+
* @param array<string>|null $orderby Order items by property values
66+
* @param string|null $search Search items by search phrases
67+
* @param array<string>|null $select Select properties to be returned
68+
* @param int|null $skip Skip the first n items
69+
* @param int|null $top Show only the first n items
70+
*/
71+
public function __construct(?bool $count = null, ?array $expand = null, ?string $filter = null, ?array $orderby = null, ?string $search = null, ?array $select = null, ?int $skip = null, ?int $top = null) {
72+
$this->count = $count;
73+
$this->expand = $expand;
74+
$this->filter = $filter;
75+
$this->orderby = $orderby;
76+
$this->search = $search;
77+
$this->select = $select;
78+
$this->skip = $skip;
79+
$this->top = $top;
80+
}
81+
82+
}

0 commit comments

Comments
 (0)