Skip to content

Commit 14fb3aa

Browse files
Microsoft Graph DevX ToolingMicrosoft Graph DevX Tooling
authored andcommitted
feat(generation): update request builders and models
Update generated files with build 207061
1 parent d4fbae8 commit 14fb3aa

File tree

220 files changed

+13047
-146
lines changed

Some content is hidden

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

220 files changed

+13047
-146
lines changed

src/Generated/AccessReviews/Item/AccessReviewItemRequestBuilder.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ public function get(?AccessReviewItemRequestBuilderGetRequestConfiguration $requ
125125
}
126126

127127
/**
128-
* In the Microsoft Entra access reviews feature, update an existing accessReview object to change one or more of its properties. This API is not intended to change the reviewers or decisions of a review. To change the reviewers, use the addReviewer or removeReviewer APIs. To stop an already-started one-time review, or an already-started instance of a recurring review, early, use the stop API. To apply the decisions to the target group or app access rights, use the apply API.
128+
* In the Microsoft Entra access reviews feature, update an existing accessReview object to change one or more of its properties. This API is not intended to change the reviewers or decisions of a review. To change the reviewers, use the addReviewer or removeReviewer APIs. To stop an already-started one-time review, or an already-started instance of a recurring review, early, use the stop API. To apply the decisions to the target group or app access rights, use the apply API.
129129
* @param AccessReview $body The request body
130130
* @param AccessReviewItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
131131
* @return Promise<AccessReview|null>
@@ -180,7 +180,7 @@ public function toGetRequestInformation(?AccessReviewItemRequestBuilderGetReques
180180
}
181181

182182
/**
183-
* In the Microsoft Entra access reviews feature, update an existing accessReview object to change one or more of its properties. This API is not intended to change the reviewers or decisions of a review. To change the reviewers, use the addReviewer or removeReviewer APIs. To stop an already-started one-time review, or an already-started instance of a recurring review, early, use the stop API. To apply the decisions to the target group or app access rights, use the apply API.
183+
* In the Microsoft Entra access reviews feature, update an existing accessReview object to change one or more of its properties. This API is not intended to change the reviewers or decisions of a review. To change the reviewers, use the addReviewer or removeReviewer APIs. To stop an already-started one-time review, or an already-started instance of a recurring review, early, use the stop API. To apply the decisions to the target group or app access rights, use the apply API.
184184
* @param AccessReview $body The request body
185185
* @param AccessReviewItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
186186
* @return RequestInformation

src/Generated/Admin/Exchange/ExchangeRequestBuilder.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
use Http\Promise\Promise;
77
use Microsoft\Graph\Beta\Generated\Admin\Exchange\Mailboxes\MailboxesRequestBuilder;
88
use Microsoft\Graph\Beta\Generated\Admin\Exchange\MessageTraces\MessageTracesRequestBuilder;
9+
use Microsoft\Graph\Beta\Generated\Admin\Exchange\Tracing\TracingRequestBuilder;
910
use Microsoft\Graph\Beta\Generated\Models\ExchangeAdmin;
1011
use Microsoft\Graph\Beta\Generated\Models\ODataErrors\ODataError;
1112
use Microsoft\Kiota\Abstractions\BaseRequestBuilder;
@@ -32,6 +33,13 @@ public function messageTraces(): MessageTracesRequestBuilder {
3233
return new MessageTracesRequestBuilder($this->pathParameters, $this->requestAdapter);
3334
}
3435

36+
/**
37+
* Provides operations to manage the tracing property of the microsoft.graph.exchangeAdmin entity.
38+
*/
39+
public function tracing(): TracingRequestBuilder {
40+
return new TracingRequestBuilder($this->pathParameters, $this->requestAdapter);
41+
}
42+
3543
/**
3644
* Instantiates a new ExchangeRequestBuilder and sets the default values.
3745
* @param array<string, mixed>|string $pathParametersOrRawUrl Path parameters for the request or a String representing the raw URL.
Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
<?php
2+
3+
namespace Microsoft\Graph\Beta\Generated\Admin\Exchange\Tracing\MessageTraces\Count;
4+
5+
use Exception;
6+
use Http\Promise\Promise;
7+
use Microsoft\Graph\Beta\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 count the resources in the collection.
15+
*/
16+
class CountRequestBuilder extends BaseRequestBuilder
17+
{
18+
/**
19+
* Instantiates a new CountRequestBuilder 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}/admin/exchange/tracing/messageTraces/$count{?%24filter,%24search}');
25+
if (is_array($pathParametersOrRawUrl)) {
26+
$this->pathParameters = $pathParametersOrRawUrl;
27+
} else {
28+
$this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl];
29+
}
30+
}
31+
32+
/**
33+
* Get the number of the resource
34+
* @param CountRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
35+
* @return Promise<int|null>
36+
* @throws Exception
37+
*/
38+
public function get(?CountRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise {
39+
$requestInfo = $this->toGetRequestInformation($requestConfiguration);
40+
$errorMappings = [
41+
'XXX' => [ODataError::class, 'createFromDiscriminatorValue'],
42+
];
43+
/** @var Promise<int|null> $result */
44+
$result = $this->requestAdapter->sendPrimitiveAsync($requestInfo, 'int', $errorMappings);
45+
return $result;
46+
}
47+
48+
/**
49+
* Get the number of the resource
50+
* @param CountRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
51+
* @return RequestInformation
52+
*/
53+
public function toGetRequestInformation(?CountRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation {
54+
$requestInfo = new RequestInformation();
55+
$requestInfo->urlTemplate = $this->urlTemplate;
56+
$requestInfo->pathParameters = $this->pathParameters;
57+
$requestInfo->httpMethod = HttpMethod::GET;
58+
if ($requestConfiguration !== null) {
59+
$requestInfo->addHeaders($requestConfiguration->headers);
60+
if ($requestConfiguration->queryParameters !== null) {
61+
$requestInfo->setQueryParameters($requestConfiguration->queryParameters);
62+
}
63+
$requestInfo->addRequestOptions(...$requestConfiguration->options);
64+
}
65+
$requestInfo->tryAddHeader('Accept', "text/plain;q=0.9");
66+
return $requestInfo;
67+
}
68+
69+
/**
70+
* Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
71+
* @param string $rawUrl The raw URL to use for the request builder.
72+
* @return CountRequestBuilder
73+
*/
74+
public function withUrl(string $rawUrl): CountRequestBuilder {
75+
return new CountRequestBuilder($rawUrl, $this->requestAdapter);
76+
}
77+
78+
}
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
<?php
2+
3+
namespace Microsoft\Graph\Beta\Generated\Admin\Exchange\Tracing\MessageTraces\Count;
4+
5+
use Microsoft\Kiota\Abstractions\QueryParameter;
6+
7+
/**
8+
* Get the number of the resource
9+
*/
10+
class CountRequestBuilderGetQueryParameters
11+
{
12+
/**
13+
* @QueryParameter("%24filter")
14+
* @var string|null $filter Filter items by property values
15+
*/
16+
public ?string $filter = null;
17+
18+
/**
19+
* @QueryParameter("%24search")
20+
* @var string|null $search Search items by search phrases
21+
*/
22+
public ?string $search = null;
23+
24+
/**
25+
* Instantiates a new CountRequestBuilderGetQueryParameters and sets the default values.
26+
* @param string|null $filter Filter items by property values
27+
* @param string|null $search Search items by search phrases
28+
*/
29+
public function __construct(?string $filter = null, ?string $search = null) {
30+
$this->filter = $filter;
31+
$this->search = $search;
32+
}
33+
34+
}
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
<?php
2+
3+
namespace Microsoft\Graph\Beta\Generated\Admin\Exchange\Tracing\MessageTraces\Count;
4+
5+
use Microsoft\Kiota\Abstractions\BaseRequestConfiguration;
6+
use Microsoft\Kiota\Abstractions\RequestOption;
7+
8+
/**
9+
* Configuration for the request such as headers, query parameters, and middleware options.
10+
*/
11+
class CountRequestBuilderGetRequestConfiguration extends BaseRequestConfiguration
12+
{
13+
/**
14+
* @var CountRequestBuilderGetQueryParameters|null $queryParameters Request query parameters
15+
*/
16+
public ?CountRequestBuilderGetQueryParameters $queryParameters = null;
17+
18+
/**
19+
* Instantiates a new CountRequestBuilderGetRequestConfiguration and sets the default values.
20+
* @param array<string, array<string>|string>|null $headers Request headers
21+
* @param array<RequestOption>|null $options Request options
22+
* @param CountRequestBuilderGetQueryParameters|null $queryParameters Request query parameters
23+
*/
24+
public function __construct(?array $headers = null, ?array $options = null, ?CountRequestBuilderGetQueryParameters $queryParameters = null) {
25+
parent::__construct($headers ?? [], $options ?? []);
26+
$this->queryParameters = $queryParameters;
27+
}
28+
29+
/**
30+
* Instantiates a new CountRequestBuilderGetQueryParameters.
31+
* @param string|null $filter Filter items by property values
32+
* @param string|null $search Search items by search phrases
33+
* @return CountRequestBuilderGetQueryParameters
34+
*/
35+
public static function createQueryParameters(?string $filter = null, ?string $search = null): CountRequestBuilderGetQueryParameters {
36+
return new CountRequestBuilderGetQueryParameters($filter, $search);
37+
}
38+
39+
}
Lines changed: 154 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,154 @@
1+
<?php
2+
3+
namespace Microsoft\Graph\Beta\Generated\Admin\Exchange\Tracing\MessageTraces\Item;
4+
5+
use Exception;
6+
use Http\Promise\Promise;
7+
use Microsoft\Graph\Beta\Generated\Admin\Exchange\Tracing\MessageTraces\Item\GetDetailsByRecipientWithRecipientAddress\GetDetailsByRecipientWithRecipientAddressRequestBuilder;
8+
use Microsoft\Graph\Beta\Generated\Models\ExchangeMessageTrace;
9+
use Microsoft\Graph\Beta\Generated\Models\ODataErrors\ODataError;
10+
use Microsoft\Kiota\Abstractions\BaseRequestBuilder;
11+
use Microsoft\Kiota\Abstractions\HttpMethod;
12+
use Microsoft\Kiota\Abstractions\RequestAdapter;
13+
use Microsoft\Kiota\Abstractions\RequestInformation;
14+
15+
/**
16+
* Provides operations to manage the messageTraces property of the microsoft.graph.messageTracingRoot entity.
17+
*/
18+
class ExchangeMessageTraceItemRequestBuilder extends BaseRequestBuilder
19+
{
20+
/**
21+
* Instantiates a new ExchangeMessageTraceItemRequestBuilder and sets the default values.
22+
* @param array<string, mixed>|string $pathParametersOrRawUrl Path parameters for the request or a String representing the raw URL.
23+
* @param RequestAdapter $requestAdapter The request adapter to use to execute the requests.
24+
*/
25+
public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdapter) {
26+
parent::__construct($requestAdapter, [], '{+baseurl}/admin/exchange/tracing/messageTraces/{exchangeMessageTrace%2Did}{?%24expand,%24select}');
27+
if (is_array($pathParametersOrRawUrl)) {
28+
$this->pathParameters = $pathParametersOrRawUrl;
29+
} else {
30+
$this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl];
31+
}
32+
}
33+
34+
/**
35+
* Delete navigation property messageTraces for admin
36+
* @param ExchangeMessageTraceItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
37+
* @return Promise<void|null>
38+
* @throws Exception
39+
*/
40+
public function delete(?ExchangeMessageTraceItemRequestBuilderDeleteRequestConfiguration $requestConfiguration = null): Promise {
41+
$requestInfo = $this->toDeleteRequestInformation($requestConfiguration);
42+
$errorMappings = [
43+
'XXX' => [ODataError::class, 'createFromDiscriminatorValue'],
44+
];
45+
return $this->requestAdapter->sendNoContentAsync($requestInfo, $errorMappings);
46+
}
47+
48+
/**
49+
* Get messageTraces from admin
50+
* @param ExchangeMessageTraceItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
51+
* @return Promise<ExchangeMessageTrace|null>
52+
* @throws Exception
53+
*/
54+
public function get(?ExchangeMessageTraceItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise {
55+
$requestInfo = $this->toGetRequestInformation($requestConfiguration);
56+
$errorMappings = [
57+
'XXX' => [ODataError::class, 'createFromDiscriminatorValue'],
58+
];
59+
return $this->requestAdapter->sendAsync($requestInfo, [ExchangeMessageTrace::class, 'createFromDiscriminatorValue'], $errorMappings);
60+
}
61+
62+
/**
63+
* Provides operations to call the getDetailsByRecipient method.
64+
* @param string $recipientAddress Usage: recipientAddress='{recipientAddress}'
65+
* @return GetDetailsByRecipientWithRecipientAddressRequestBuilder
66+
*/
67+
public function getDetailsByRecipientWithRecipientAddress(string $recipientAddress): GetDetailsByRecipientWithRecipientAddressRequestBuilder {
68+
return new GetDetailsByRecipientWithRecipientAddressRequestBuilder($this->pathParameters, $this->requestAdapter, $recipientAddress);
69+
}
70+
71+
/**
72+
* Update the navigation property messageTraces in admin
73+
* @param ExchangeMessageTrace $body The request body
74+
* @param ExchangeMessageTraceItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
75+
* @return Promise<ExchangeMessageTrace|null>
76+
* @throws Exception
77+
*/
78+
public function patch(ExchangeMessageTrace $body, ?ExchangeMessageTraceItemRequestBuilderPatchRequestConfiguration $requestConfiguration = null): Promise {
79+
$requestInfo = $this->toPatchRequestInformation($body, $requestConfiguration);
80+
$errorMappings = [
81+
'XXX' => [ODataError::class, 'createFromDiscriminatorValue'],
82+
];
83+
return $this->requestAdapter->sendAsync($requestInfo, [ExchangeMessageTrace::class, 'createFromDiscriminatorValue'], $errorMappings);
84+
}
85+
86+
/**
87+
* Delete navigation property messageTraces for admin
88+
* @param ExchangeMessageTraceItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
89+
* @return RequestInformation
90+
*/
91+
public function toDeleteRequestInformation(?ExchangeMessageTraceItemRequestBuilderDeleteRequestConfiguration $requestConfiguration = null): RequestInformation {
92+
$requestInfo = new RequestInformation();
93+
$requestInfo->urlTemplate = $this->urlTemplate;
94+
$requestInfo->pathParameters = $this->pathParameters;
95+
$requestInfo->httpMethod = HttpMethod::DELETE;
96+
if ($requestConfiguration !== null) {
97+
$requestInfo->addHeaders($requestConfiguration->headers);
98+
$requestInfo->addRequestOptions(...$requestConfiguration->options);
99+
}
100+
$requestInfo->tryAddHeader('Accept', "application/json");
101+
return $requestInfo;
102+
}
103+
104+
/**
105+
* Get messageTraces from admin
106+
* @param ExchangeMessageTraceItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
107+
* @return RequestInformation
108+
*/
109+
public function toGetRequestInformation(?ExchangeMessageTraceItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation {
110+
$requestInfo = new RequestInformation();
111+
$requestInfo->urlTemplate = $this->urlTemplate;
112+
$requestInfo->pathParameters = $this->pathParameters;
113+
$requestInfo->httpMethod = HttpMethod::GET;
114+
if ($requestConfiguration !== null) {
115+
$requestInfo->addHeaders($requestConfiguration->headers);
116+
if ($requestConfiguration->queryParameters !== null) {
117+
$requestInfo->setQueryParameters($requestConfiguration->queryParameters);
118+
}
119+
$requestInfo->addRequestOptions(...$requestConfiguration->options);
120+
}
121+
$requestInfo->tryAddHeader('Accept', "application/json");
122+
return $requestInfo;
123+
}
124+
125+
/**
126+
* Update the navigation property messageTraces in admin
127+
* @param ExchangeMessageTrace $body The request body
128+
* @param ExchangeMessageTraceItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
129+
* @return RequestInformation
130+
*/
131+
public function toPatchRequestInformation(ExchangeMessageTrace $body, ?ExchangeMessageTraceItemRequestBuilderPatchRequestConfiguration $requestConfiguration = null): RequestInformation {
132+
$requestInfo = new RequestInformation();
133+
$requestInfo->urlTemplate = $this->urlTemplate;
134+
$requestInfo->pathParameters = $this->pathParameters;
135+
$requestInfo->httpMethod = HttpMethod::PATCH;
136+
if ($requestConfiguration !== null) {
137+
$requestInfo->addHeaders($requestConfiguration->headers);
138+
$requestInfo->addRequestOptions(...$requestConfiguration->options);
139+
}
140+
$requestInfo->tryAddHeader('Accept', "application/json");
141+
$requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body);
142+
return $requestInfo;
143+
}
144+
145+
/**
146+
* Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
147+
* @param string $rawUrl The raw URL to use for the request builder.
148+
* @return ExchangeMessageTraceItemRequestBuilder
149+
*/
150+
public function withUrl(string $rawUrl): ExchangeMessageTraceItemRequestBuilder {
151+
return new ExchangeMessageTraceItemRequestBuilder($rawUrl, $this->requestAdapter);
152+
}
153+
154+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<?php
2+
3+
namespace Microsoft\Graph\Beta\Generated\Admin\Exchange\Tracing\MessageTraces\Item;
4+
5+
use Microsoft\Kiota\Abstractions\BaseRequestConfiguration;
6+
use Microsoft\Kiota\Abstractions\RequestOption;
7+
8+
/**
9+
* Configuration for the request such as headers, query parameters, and middleware options.
10+
*/
11+
class ExchangeMessageTraceItemRequestBuilderDeleteRequestConfiguration extends BaseRequestConfiguration
12+
{
13+
/**
14+
* Instantiates a new ExchangeMessageTraceItemRequestBuilderDeleteRequestConfiguration and sets the default values.
15+
* @param array<string, array<string>|string>|null $headers Request headers
16+
* @param array<RequestOption>|null $options Request options
17+
*/
18+
public function __construct(?array $headers = null, ?array $options = null) {
19+
parent::__construct($headers ?? [], $options ?? []);
20+
}
21+
22+
}

0 commit comments

Comments
 (0)