Skip to content

Commit e079bec

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

File tree

259 files changed

+7666
-4612
lines changed

Some content is hidden

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

259 files changed

+7666
-4612
lines changed

src/Generated/Admin/AdminRequestBuilder.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
use Microsoft\Graph\Beta\Generated\Admin\Dynamics\DynamicsRequestBuilder;
99
use Microsoft\Graph\Beta\Generated\Admin\Edge\EdgeRequestBuilder;
1010
use Microsoft\Graph\Beta\Generated\Admin\Entra\EntraRequestBuilder;
11+
use Microsoft\Graph\Beta\Generated\Admin\Exchange\ExchangeRequestBuilder;
1112
use Microsoft\Graph\Beta\Generated\Admin\Forms\FormsRequestBuilder;
1213
use Microsoft\Graph\Beta\Generated\Admin\Microsoft365Apps\Microsoft365AppsRequestBuilder;
1314
use Microsoft\Graph\Beta\Generated\Admin\People\PeopleRequestBuilder;
@@ -56,6 +57,13 @@ public function entra(): EntraRequestBuilder {
5657
return new EntraRequestBuilder($this->pathParameters, $this->requestAdapter);
5758
}
5859

60+
/**
61+
* Provides operations to manage the exchange property of the microsoft.graph.admin entity.
62+
*/
63+
public function exchange(): ExchangeRequestBuilder {
64+
return new ExchangeRequestBuilder($this->pathParameters, $this->requestAdapter);
65+
}
66+
5967
/**
6068
* Provides operations to manage the forms property of the microsoft.graph.admin entity.
6169
*/

src/Generated/Education/SynchronizationProfiles/Item/Errors/Item/EducationSynchronizationErrorItemRequestBuilder.php renamed to src/Generated/Admin/Exchange/ExchangeRequestBuilder.php

Lines changed: 49 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,44 @@
11
<?php
22

3-
namespace Microsoft\Graph\Beta\Generated\Education\SynchronizationProfiles\Item\Errors\Item;
3+
namespace Microsoft\Graph\Beta\Generated\Admin\Exchange;
44

55
use Exception;
66
use Http\Promise\Promise;
7-
use Microsoft\Graph\Beta\Generated\Models\EducationSynchronizationError;
7+
use Microsoft\Graph\Beta\Generated\Admin\Exchange\Mailboxes\MailboxesRequestBuilder;
8+
use Microsoft\Graph\Beta\Generated\Admin\Exchange\MessageTraces\MessageTracesRequestBuilder;
9+
use Microsoft\Graph\Beta\Generated\Models\ExchangeAdmin;
810
use Microsoft\Graph\Beta\Generated\Models\ODataErrors\ODataError;
911
use Microsoft\Kiota\Abstractions\BaseRequestBuilder;
1012
use Microsoft\Kiota\Abstractions\HttpMethod;
1113
use Microsoft\Kiota\Abstractions\RequestAdapter;
1214
use Microsoft\Kiota\Abstractions\RequestInformation;
1315

1416
/**
15-
* Provides operations to manage the errors property of the microsoft.graph.educationSynchronizationProfile entity.
17+
* Provides operations to manage the exchange property of the microsoft.graph.admin entity.
1618
*/
17-
class EducationSynchronizationErrorItemRequestBuilder extends BaseRequestBuilder
19+
class ExchangeRequestBuilder extends BaseRequestBuilder
1820
{
1921
/**
20-
* Instantiates a new EducationSynchronizationErrorItemRequestBuilder and sets the default values.
22+
* Provides operations to manage the mailboxes property of the microsoft.graph.exchangeAdmin entity.
23+
*/
24+
public function mailboxes(): MailboxesRequestBuilder {
25+
return new MailboxesRequestBuilder($this->pathParameters, $this->requestAdapter);
26+
}
27+
28+
/**
29+
* Provides operations to manage the messageTraces property of the microsoft.graph.exchangeAdmin entity.
30+
*/
31+
public function messageTraces(): MessageTracesRequestBuilder {
32+
return new MessageTracesRequestBuilder($this->pathParameters, $this->requestAdapter);
33+
}
34+
35+
/**
36+
* Instantiates a new ExchangeRequestBuilder and sets the default values.
2137
* @param array<string, mixed>|string $pathParametersOrRawUrl Path parameters for the request or a String representing the raw URL.
2238
* @param RequestAdapter $requestAdapter The request adapter to use to execute the requests.
2339
*/
2440
public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdapter) {
25-
parent::__construct($requestAdapter, [], '{+baseurl}/education/synchronizationProfiles/{educationSynchronizationProfile%2Did}/errors/{educationSynchronizationError%2Did}{?%24expand,%24select}');
41+
parent::__construct($requestAdapter, [], '{+baseurl}/admin/exchange{?%24expand,%24select}');
2642
if (is_array($pathParametersOrRawUrl)) {
2743
$this->pathParameters = $pathParametersOrRawUrl;
2844
} else {
@@ -31,12 +47,12 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap
3147
}
3248

3349
/**
34-
* Delete navigation property errors for education
35-
* @param EducationSynchronizationErrorItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
50+
* Delete navigation property exchange for admin
51+
* @param ExchangeRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
3652
* @return Promise<void|null>
3753
* @throws Exception
3854
*/
39-
public function delete(?EducationSynchronizationErrorItemRequestBuilderDeleteRequestConfiguration $requestConfiguration = null): Promise {
55+
public function delete(?ExchangeRequestBuilderDeleteRequestConfiguration $requestConfiguration = null): Promise {
4056
$requestInfo = $this->toDeleteRequestInformation($requestConfiguration);
4157
$errorMappings = [
4258
'XXX' => [ODataError::class, 'createFromDiscriminatorValue'],
@@ -45,40 +61,40 @@ public function delete(?EducationSynchronizationErrorItemRequestBuilderDeleteReq
4561
}
4662

4763
/**
48-
* Get errors from education
49-
* @param EducationSynchronizationErrorItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
50-
* @return Promise<EducationSynchronizationError|null>
64+
* A container for the Exchange admin functionality. Read-only.
65+
* @param ExchangeRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
66+
* @return Promise<ExchangeAdmin|null>
5167
* @throws Exception
5268
*/
53-
public function get(?EducationSynchronizationErrorItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise {
69+
public function get(?ExchangeRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise {
5470
$requestInfo = $this->toGetRequestInformation($requestConfiguration);
5571
$errorMappings = [
5672
'XXX' => [ODataError::class, 'createFromDiscriminatorValue'],
5773
];
58-
return $this->requestAdapter->sendAsync($requestInfo, [EducationSynchronizationError::class, 'createFromDiscriminatorValue'], $errorMappings);
74+
return $this->requestAdapter->sendAsync($requestInfo, [ExchangeAdmin::class, 'createFromDiscriminatorValue'], $errorMappings);
5975
}
6076

6177
/**
62-
* Update the navigation property errors in education
63-
* @param EducationSynchronizationError $body The request body
64-
* @param EducationSynchronizationErrorItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
65-
* @return Promise<EducationSynchronizationError|null>
78+
* Update the navigation property exchange in admin
79+
* @param ExchangeAdmin $body The request body
80+
* @param ExchangeRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
81+
* @return Promise<ExchangeAdmin|null>
6682
* @throws Exception
6783
*/
68-
public function patch(EducationSynchronizationError $body, ?EducationSynchronizationErrorItemRequestBuilderPatchRequestConfiguration $requestConfiguration = null): Promise {
84+
public function patch(ExchangeAdmin $body, ?ExchangeRequestBuilderPatchRequestConfiguration $requestConfiguration = null): Promise {
6985
$requestInfo = $this->toPatchRequestInformation($body, $requestConfiguration);
7086
$errorMappings = [
7187
'XXX' => [ODataError::class, 'createFromDiscriminatorValue'],
7288
];
73-
return $this->requestAdapter->sendAsync($requestInfo, [EducationSynchronizationError::class, 'createFromDiscriminatorValue'], $errorMappings);
89+
return $this->requestAdapter->sendAsync($requestInfo, [ExchangeAdmin::class, 'createFromDiscriminatorValue'], $errorMappings);
7490
}
7591

7692
/**
77-
* Delete navigation property errors for education
78-
* @param EducationSynchronizationErrorItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
93+
* Delete navigation property exchange for admin
94+
* @param ExchangeRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
7995
* @return RequestInformation
8096
*/
81-
public function toDeleteRequestInformation(?EducationSynchronizationErrorItemRequestBuilderDeleteRequestConfiguration $requestConfiguration = null): RequestInformation {
97+
public function toDeleteRequestInformation(?ExchangeRequestBuilderDeleteRequestConfiguration $requestConfiguration = null): RequestInformation {
8298
$requestInfo = new RequestInformation();
8399
$requestInfo->urlTemplate = $this->urlTemplate;
84100
$requestInfo->pathParameters = $this->pathParameters;
@@ -92,11 +108,11 @@ public function toDeleteRequestInformation(?EducationSynchronizationErrorItemReq
92108
}
93109

94110
/**
95-
* Get errors from education
96-
* @param EducationSynchronizationErrorItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
111+
* A container for the Exchange admin functionality. Read-only.
112+
* @param ExchangeRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
97113
* @return RequestInformation
98114
*/
99-
public function toGetRequestInformation(?EducationSynchronizationErrorItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation {
115+
public function toGetRequestInformation(?ExchangeRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation {
100116
$requestInfo = new RequestInformation();
101117
$requestInfo->urlTemplate = $this->urlTemplate;
102118
$requestInfo->pathParameters = $this->pathParameters;
@@ -113,12 +129,12 @@ public function toGetRequestInformation(?EducationSynchronizationErrorItemReques
113129
}
114130

115131
/**
116-
* Update the navigation property errors in education
117-
* @param EducationSynchronizationError $body The request body
118-
* @param EducationSynchronizationErrorItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
132+
* Update the navigation property exchange in admin
133+
* @param ExchangeAdmin $body The request body
134+
* @param ExchangeRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
119135
* @return RequestInformation
120136
*/
121-
public function toPatchRequestInformation(EducationSynchronizationError $body, ?EducationSynchronizationErrorItemRequestBuilderPatchRequestConfiguration $requestConfiguration = null): RequestInformation {
137+
public function toPatchRequestInformation(ExchangeAdmin $body, ?ExchangeRequestBuilderPatchRequestConfiguration $requestConfiguration = null): RequestInformation {
122138
$requestInfo = new RequestInformation();
123139
$requestInfo->urlTemplate = $this->urlTemplate;
124140
$requestInfo->pathParameters = $this->pathParameters;
@@ -135,10 +151,10 @@ public function toPatchRequestInformation(EducationSynchronizationError $body, ?
135151
/**
136152
* Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
137153
* @param string $rawUrl The raw URL to use for the request builder.
138-
* @return EducationSynchronizationErrorItemRequestBuilder
154+
* @return ExchangeRequestBuilder
139155
*/
140-
public function withUrl(string $rawUrl): EducationSynchronizationErrorItemRequestBuilder {
141-
return new EducationSynchronizationErrorItemRequestBuilder($rawUrl, $this->requestAdapter);
156+
public function withUrl(string $rawUrl): ExchangeRequestBuilder {
157+
return new ExchangeRequestBuilder($rawUrl, $this->requestAdapter);
142158
}
143159

144160
}

src/Generated/Education/SynchronizationProfiles/Item/Reset/ResetRequestBuilderPostRequestConfiguration.php renamed to src/Generated/Admin/Exchange/ExchangeRequestBuilderDeleteRequestConfiguration.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
<?php
22

3-
namespace Microsoft\Graph\Beta\Generated\Education\SynchronizationProfiles\Item\Reset;
3+
namespace Microsoft\Graph\Beta\Generated\Admin\Exchange;
44

55
use Microsoft\Kiota\Abstractions\BaseRequestConfiguration;
66
use Microsoft\Kiota\Abstractions\RequestOption;
77

88
/**
99
* Configuration for the request such as headers, query parameters, and middleware options.
1010
*/
11-
class ResetRequestBuilderPostRequestConfiguration extends BaseRequestConfiguration
11+
class ExchangeRequestBuilderDeleteRequestConfiguration extends BaseRequestConfiguration
1212
{
1313
/**
14-
* Instantiates a new ResetRequestBuilderPostRequestConfiguration and sets the default values.
14+
* Instantiates a new ExchangeRequestBuilderDeleteRequestConfiguration and sets the default values.
1515
* @param array<string, array<string>|string>|null $headers Request headers
1616
* @param array<RequestOption>|null $options Request options
1717
*/

src/Generated/Education/SynchronizationProfiles/Item/ProfileStatus/ProfileStatusRequestBuilderGetQueryParameters.php renamed to src/Generated/Admin/Exchange/ExchangeRequestBuilderGetQueryParameters.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
<?php
22

3-
namespace Microsoft\Graph\Beta\Generated\Education\SynchronizationProfiles\Item\ProfileStatus;
3+
namespace Microsoft\Graph\Beta\Generated\Admin\Exchange;
44

55
use Microsoft\Kiota\Abstractions\QueryParameter;
66

77
/**
8-
* Get profileStatus from education
8+
* A container for the Exchange admin functionality. Read-only.
99
*/
10-
class ProfileStatusRequestBuilderGetQueryParameters
10+
class ExchangeRequestBuilderGetQueryParameters
1111
{
1212
/**
1313
* @QueryParameter("%24expand")
@@ -22,7 +22,7 @@ class ProfileStatusRequestBuilderGetQueryParameters
2222
public ?array $select = null;
2323

2424
/**
25-
* Instantiates a new ProfileStatusRequestBuilderGetQueryParameters and sets the default values.
25+
* Instantiates a new ExchangeRequestBuilderGetQueryParameters and sets the default values.
2626
* @param array<string>|null $expand Expand related entities
2727
* @param array<string>|null $select Select properties to be returned
2828
*/
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;
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 ExchangeRequestBuilderGetRequestConfiguration extends BaseRequestConfiguration
12+
{
13+
/**
14+
* @var ExchangeRequestBuilderGetQueryParameters|null $queryParameters Request query parameters
15+
*/
16+
public ?ExchangeRequestBuilderGetQueryParameters $queryParameters = null;
17+
18+
/**
19+
* Instantiates a new ExchangeRequestBuilderGetRequestConfiguration 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 ExchangeRequestBuilderGetQueryParameters|null $queryParameters Request query parameters
23+
*/
24+
public function __construct(?array $headers = null, ?array $options = null, ?ExchangeRequestBuilderGetQueryParameters $queryParameters = null) {
25+
parent::__construct($headers ?? [], $options ?? []);
26+
$this->queryParameters = $queryParameters;
27+
}
28+
29+
/**
30+
* Instantiates a new ExchangeRequestBuilderGetQueryParameters.
31+
* @param array<string>|null $expand Expand related entities
32+
* @param array<string>|null $select Select properties to be returned
33+
* @return ExchangeRequestBuilderGetQueryParameters
34+
*/
35+
public static function createQueryParameters(?array $expand = null, ?array $select = null): ExchangeRequestBuilderGetQueryParameters {
36+
return new ExchangeRequestBuilderGetQueryParameters($expand, $select);
37+
}
38+
39+
}

src/Generated/Education/SynchronizationProfiles/Item/Pause/PauseRequestBuilderPostRequestConfiguration.php renamed to src/Generated/Admin/Exchange/ExchangeRequestBuilderPatchRequestConfiguration.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
<?php
22

3-
namespace Microsoft\Graph\Beta\Generated\Education\SynchronizationProfiles\Item\Pause;
3+
namespace Microsoft\Graph\Beta\Generated\Admin\Exchange;
44

55
use Microsoft\Kiota\Abstractions\BaseRequestConfiguration;
66
use Microsoft\Kiota\Abstractions\RequestOption;
77

88
/**
99
* Configuration for the request such as headers, query parameters, and middleware options.
1010
*/
11-
class PauseRequestBuilderPostRequestConfiguration extends BaseRequestConfiguration
11+
class ExchangeRequestBuilderPatchRequestConfiguration extends BaseRequestConfiguration
1212
{
1313
/**
14-
* Instantiates a new PauseRequestBuilderPostRequestConfiguration and sets the default values.
14+
* Instantiates a new ExchangeRequestBuilderPatchRequestConfiguration and sets the default values.
1515
* @param array<string, array<string>|string>|null $headers Request headers
1616
* @param array<RequestOption>|null $options Request options
1717
*/

src/Generated/Education/SynchronizationProfiles/Count/CountRequestBuilder.php renamed to src/Generated/Admin/Exchange/Mailboxes/Count/CountRequestBuilder.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace Microsoft\Graph\Beta\Generated\Education\SynchronizationProfiles\Count;
3+
namespace Microsoft\Graph\Beta\Generated\Admin\Exchange\Mailboxes\Count;
44

55
use Exception;
66
use Http\Promise\Promise;
@@ -21,7 +21,7 @@ class CountRequestBuilder extends BaseRequestBuilder
2121
* @param RequestAdapter $requestAdapter The request adapter to use to execute the requests.
2222
*/
2323
public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdapter) {
24-
parent::__construct($requestAdapter, [], '{+baseurl}/education/synchronizationProfiles/$count{?%24filter,%24search}');
24+
parent::__construct($requestAdapter, [], '{+baseurl}/admin/exchange/mailboxes/$count{?%24filter,%24search}');
2525
if (is_array($pathParametersOrRawUrl)) {
2626
$this->pathParameters = $pathParametersOrRawUrl;
2727
} else {

src/Generated/Education/SynchronizationProfiles/Count/CountRequestBuilderGetQueryParameters.php renamed to src/Generated/Admin/Exchange/Mailboxes/Count/CountRequestBuilderGetQueryParameters.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace Microsoft\Graph\Beta\Generated\Education\SynchronizationProfiles\Count;
3+
namespace Microsoft\Graph\Beta\Generated\Admin\Exchange\Mailboxes\Count;
44

55
use Microsoft\Kiota\Abstractions\QueryParameter;
66

src/Generated/Education/SynchronizationProfiles/Count/CountRequestBuilderGetRequestConfiguration.php renamed to src/Generated/Admin/Exchange/Mailboxes/Count/CountRequestBuilderGetRequestConfiguration.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace Microsoft\Graph\Beta\Generated\Education\SynchronizationProfiles\Count;
3+
namespace Microsoft\Graph\Beta\Generated\Admin\Exchange\Mailboxes\Count;
44

55
use Microsoft\Kiota\Abstractions\BaseRequestConfiguration;
66
use Microsoft\Kiota\Abstractions\RequestOption;

0 commit comments

Comments
 (0)