Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions src/Generated/Admin/AdminRequestBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
use Microsoft\Graph\Beta\Generated\Admin\Dynamics\DynamicsRequestBuilder;
use Microsoft\Graph\Beta\Generated\Admin\Edge\EdgeRequestBuilder;
use Microsoft\Graph\Beta\Generated\Admin\Entra\EntraRequestBuilder;
use Microsoft\Graph\Beta\Generated\Admin\Exchange\ExchangeRequestBuilder;
use Microsoft\Graph\Beta\Generated\Admin\Forms\FormsRequestBuilder;
use Microsoft\Graph\Beta\Generated\Admin\Microsoft365Apps\Microsoft365AppsRequestBuilder;
use Microsoft\Graph\Beta\Generated\Admin\People\PeopleRequestBuilder;
Expand Down Expand Up @@ -56,6 +57,13 @@ public function entra(): EntraRequestBuilder {
return new EntraRequestBuilder($this->pathParameters, $this->requestAdapter);
}

/**
* Provides operations to manage the exchange property of the microsoft.graph.admin entity.
*/
public function exchange(): ExchangeRequestBuilder {
return new ExchangeRequestBuilder($this->pathParameters, $this->requestAdapter);
}

/**
* Provides operations to manage the forms property of the microsoft.graph.admin entity.
*/
Expand Down
Original file line number Diff line number Diff line change
@@ -1,28 +1,44 @@
<?php

namespace Microsoft\Graph\Beta\Generated\Education\SynchronizationProfiles\Item\Errors\Item;
namespace Microsoft\Graph\Beta\Generated\Admin\Exchange;

use Exception;
use Http\Promise\Promise;
use Microsoft\Graph\Beta\Generated\Models\EducationSynchronizationError;
use Microsoft\Graph\Beta\Generated\Admin\Exchange\Mailboxes\MailboxesRequestBuilder;
use Microsoft\Graph\Beta\Generated\Admin\Exchange\MessageTraces\MessageTracesRequestBuilder;
use Microsoft\Graph\Beta\Generated\Models\ExchangeAdmin;
use Microsoft\Graph\Beta\Generated\Models\ODataErrors\ODataError;
use Microsoft\Kiota\Abstractions\BaseRequestBuilder;
use Microsoft\Kiota\Abstractions\HttpMethod;
use Microsoft\Kiota\Abstractions\RequestAdapter;
use Microsoft\Kiota\Abstractions\RequestInformation;

/**
* Provides operations to manage the errors property of the microsoft.graph.educationSynchronizationProfile entity.
* Provides operations to manage the exchange property of the microsoft.graph.admin entity.
*/
class EducationSynchronizationErrorItemRequestBuilder extends BaseRequestBuilder
class ExchangeRequestBuilder extends BaseRequestBuilder
{
/**
* Instantiates a new EducationSynchronizationErrorItemRequestBuilder and sets the default values.
* Provides operations to manage the mailboxes property of the microsoft.graph.exchangeAdmin entity.
*/
public function mailboxes(): MailboxesRequestBuilder {
return new MailboxesRequestBuilder($this->pathParameters, $this->requestAdapter);
}

/**
* Provides operations to manage the messageTraces property of the microsoft.graph.exchangeAdmin entity.
*/
public function messageTraces(): MessageTracesRequestBuilder {
return new MessageTracesRequestBuilder($this->pathParameters, $this->requestAdapter);
}

/**
* Instantiates a new ExchangeRequestBuilder and sets the default values.
* @param array<string, mixed>|string $pathParametersOrRawUrl Path parameters for the request or a String representing the raw URL.
* @param RequestAdapter $requestAdapter The request adapter to use to execute the requests.
*/
public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdapter) {
parent::__construct($requestAdapter, [], '{+baseurl}/education/synchronizationProfiles/{educationSynchronizationProfile%2Did}/errors/{educationSynchronizationError%2Did}{?%24expand,%24select}');
parent::__construct($requestAdapter, [], '{+baseurl}/admin/exchange{?%24expand,%24select}');
if (is_array($pathParametersOrRawUrl)) {
$this->pathParameters = $pathParametersOrRawUrl;
} else {
Expand All @@ -31,12 +47,12 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap
}

/**
* Delete navigation property errors for education
* @param EducationSynchronizationErrorItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* Delete navigation property exchange for admin
* @param ExchangeRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @return Promise<void|null>
* @throws Exception
*/
public function delete(?EducationSynchronizationErrorItemRequestBuilderDeleteRequestConfiguration $requestConfiguration = null): Promise {
public function delete(?ExchangeRequestBuilderDeleteRequestConfiguration $requestConfiguration = null): Promise {
$requestInfo = $this->toDeleteRequestInformation($requestConfiguration);
$errorMappings = [
'XXX' => [ODataError::class, 'createFromDiscriminatorValue'],
Expand All @@ -45,40 +61,40 @@ public function delete(?EducationSynchronizationErrorItemRequestBuilderDeleteReq
}

/**
* Get errors from education
* @param EducationSynchronizationErrorItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @return Promise<EducationSynchronizationError|null>
* A container for the Exchange admin functionality. Read-only.
* @param ExchangeRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @return Promise<ExchangeAdmin|null>
* @throws Exception
*/
public function get(?EducationSynchronizationErrorItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise {
public function get(?ExchangeRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise {
$requestInfo = $this->toGetRequestInformation($requestConfiguration);
$errorMappings = [
'XXX' => [ODataError::class, 'createFromDiscriminatorValue'],
];
return $this->requestAdapter->sendAsync($requestInfo, [EducationSynchronizationError::class, 'createFromDiscriminatorValue'], $errorMappings);
return $this->requestAdapter->sendAsync($requestInfo, [ExchangeAdmin::class, 'createFromDiscriminatorValue'], $errorMappings);
}

/**
* Update the navigation property errors in education
* @param EducationSynchronizationError $body The request body
* @param EducationSynchronizationErrorItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @return Promise<EducationSynchronizationError|null>
* Update the navigation property exchange in admin
* @param ExchangeAdmin $body The request body
* @param ExchangeRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @return Promise<ExchangeAdmin|null>
* @throws Exception
*/
public function patch(EducationSynchronizationError $body, ?EducationSynchronizationErrorItemRequestBuilderPatchRequestConfiguration $requestConfiguration = null): Promise {
public function patch(ExchangeAdmin $body, ?ExchangeRequestBuilderPatchRequestConfiguration $requestConfiguration = null): Promise {
$requestInfo = $this->toPatchRequestInformation($body, $requestConfiguration);
$errorMappings = [
'XXX' => [ODataError::class, 'createFromDiscriminatorValue'],
];
return $this->requestAdapter->sendAsync($requestInfo, [EducationSynchronizationError::class, 'createFromDiscriminatorValue'], $errorMappings);
return $this->requestAdapter->sendAsync($requestInfo, [ExchangeAdmin::class, 'createFromDiscriminatorValue'], $errorMappings);
}

/**
* Delete navigation property errors for education
* @param EducationSynchronizationErrorItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* Delete navigation property exchange for admin
* @param ExchangeRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @return RequestInformation
*/
public function toDeleteRequestInformation(?EducationSynchronizationErrorItemRequestBuilderDeleteRequestConfiguration $requestConfiguration = null): RequestInformation {
public function toDeleteRequestInformation(?ExchangeRequestBuilderDeleteRequestConfiguration $requestConfiguration = null): RequestInformation {
$requestInfo = new RequestInformation();
$requestInfo->urlTemplate = $this->urlTemplate;
$requestInfo->pathParameters = $this->pathParameters;
Expand All @@ -92,11 +108,11 @@ public function toDeleteRequestInformation(?EducationSynchronizationErrorItemReq
}

/**
* Get errors from education
* @param EducationSynchronizationErrorItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* A container for the Exchange admin functionality. Read-only.
* @param ExchangeRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @return RequestInformation
*/
public function toGetRequestInformation(?EducationSynchronizationErrorItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation {
public function toGetRequestInformation(?ExchangeRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation {
$requestInfo = new RequestInformation();
$requestInfo->urlTemplate = $this->urlTemplate;
$requestInfo->pathParameters = $this->pathParameters;
Expand All @@ -113,12 +129,12 @@ public function toGetRequestInformation(?EducationSynchronizationErrorItemReques
}

/**
* Update the navigation property errors in education
* @param EducationSynchronizationError $body The request body
* @param EducationSynchronizationErrorItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* Update the navigation property exchange in admin
* @param ExchangeAdmin $body The request body
* @param ExchangeRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @return RequestInformation
*/
public function toPatchRequestInformation(EducationSynchronizationError $body, ?EducationSynchronizationErrorItemRequestBuilderPatchRequestConfiguration $requestConfiguration = null): RequestInformation {
public function toPatchRequestInformation(ExchangeAdmin $body, ?ExchangeRequestBuilderPatchRequestConfiguration $requestConfiguration = null): RequestInformation {
$requestInfo = new RequestInformation();
$requestInfo->urlTemplate = $this->urlTemplate;
$requestInfo->pathParameters = $this->pathParameters;
Expand All @@ -135,10 +151,10 @@ public function toPatchRequestInformation(EducationSynchronizationError $body, ?
/**
* Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
* @param string $rawUrl The raw URL to use for the request builder.
* @return EducationSynchronizationErrorItemRequestBuilder
* @return ExchangeRequestBuilder
*/
public function withUrl(string $rawUrl): EducationSynchronizationErrorItemRequestBuilder {
return new EducationSynchronizationErrorItemRequestBuilder($rawUrl, $this->requestAdapter);
public function withUrl(string $rawUrl): ExchangeRequestBuilder {
return new ExchangeRequestBuilder($rawUrl, $this->requestAdapter);
}

}
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
<?php

namespace Microsoft\Graph\Beta\Generated\Education\SynchronizationProfiles\Item\Reset;
namespace Microsoft\Graph\Beta\Generated\Admin\Exchange;

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

/**
* Configuration for the request such as headers, query parameters, and middleware options.
*/
class ResetRequestBuilderPostRequestConfiguration extends BaseRequestConfiguration
class ExchangeRequestBuilderDeleteRequestConfiguration extends BaseRequestConfiguration
{
/**
* Instantiates a new ResetRequestBuilderPostRequestConfiguration and sets the default values.
* Instantiates a new ExchangeRequestBuilderDeleteRequestConfiguration and sets the default values.
* @param array<string, array<string>|string>|null $headers Request headers
* @param array<RequestOption>|null $options Request options
*/
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<?php

namespace Microsoft\Graph\Beta\Generated\Education\SynchronizationProfiles\Item\ProfileStatus;
namespace Microsoft\Graph\Beta\Generated\Admin\Exchange;

use Microsoft\Kiota\Abstractions\QueryParameter;

/**
* Get profileStatus from education
* A container for the Exchange admin functionality. Read-only.
*/
class ProfileStatusRequestBuilderGetQueryParameters
class ExchangeRequestBuilderGetQueryParameters
{
/**
* @QueryParameter("%24expand")
Expand All @@ -22,7 +22,7 @@ class ProfileStatusRequestBuilderGetQueryParameters
public ?array $select = null;

/**
* Instantiates a new ProfileStatusRequestBuilderGetQueryParameters and sets the default values.
* Instantiates a new ExchangeRequestBuilderGetQueryParameters and sets the default values.
* @param array<string>|null $expand Expand related entities
* @param array<string>|null $select Select properties to be returned
*/
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
<?php

namespace Microsoft\Graph\Beta\Generated\Admin\Exchange;

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

/**
* Configuration for the request such as headers, query parameters, and middleware options.
*/
class ExchangeRequestBuilderGetRequestConfiguration extends BaseRequestConfiguration
{
/**
* @var ExchangeRequestBuilderGetQueryParameters|null $queryParameters Request query parameters
*/
public ?ExchangeRequestBuilderGetQueryParameters $queryParameters = null;

/**
* Instantiates a new ExchangeRequestBuilderGetRequestConfiguration and sets the default values.
* @param array<string, array<string>|string>|null $headers Request headers
* @param array<RequestOption>|null $options Request options
* @param ExchangeRequestBuilderGetQueryParameters|null $queryParameters Request query parameters
*/
public function __construct(?array $headers = null, ?array $options = null, ?ExchangeRequestBuilderGetQueryParameters $queryParameters = null) {
parent::__construct($headers ?? [], $options ?? []);
$this->queryParameters = $queryParameters;
}

/**
* Instantiates a new ExchangeRequestBuilderGetQueryParameters.
* @param array<string>|null $expand Expand related entities
* @param array<string>|null $select Select properties to be returned
* @return ExchangeRequestBuilderGetQueryParameters
*/
public static function createQueryParameters(?array $expand = null, ?array $select = null): ExchangeRequestBuilderGetQueryParameters {
return new ExchangeRequestBuilderGetQueryParameters($expand, $select);
}

}
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
<?php

namespace Microsoft\Graph\Beta\Generated\Education\SynchronizationProfiles\Item\Pause;
namespace Microsoft\Graph\Beta\Generated\Admin\Exchange;

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

/**
* Configuration for the request such as headers, query parameters, and middleware options.
*/
class PauseRequestBuilderPostRequestConfiguration extends BaseRequestConfiguration
class ExchangeRequestBuilderPatchRequestConfiguration extends BaseRequestConfiguration
{
/**
* Instantiates a new PauseRequestBuilderPostRequestConfiguration and sets the default values.
* Instantiates a new ExchangeRequestBuilderPatchRequestConfiguration and sets the default values.
* @param array<string, array<string>|string>|null $headers Request headers
* @param array<RequestOption>|null $options Request options
*/
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Microsoft\Graph\Beta\Generated\Education\SynchronizationProfiles\Count;
namespace Microsoft\Graph\Beta\Generated\Admin\Exchange\Mailboxes\Count;

use Exception;
use Http\Promise\Promise;
Expand All @@ -21,7 +21,7 @@ class CountRequestBuilder extends BaseRequestBuilder
* @param RequestAdapter $requestAdapter The request adapter to use to execute the requests.
*/
public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdapter) {
parent::__construct($requestAdapter, [], '{+baseurl}/education/synchronizationProfiles/$count{?%24filter,%24search}');
parent::__construct($requestAdapter, [], '{+baseurl}/admin/exchange/mailboxes/$count{?%24filter,%24search}');
if (is_array($pathParametersOrRawUrl)) {
$this->pathParameters = $pathParametersOrRawUrl;
} else {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Microsoft\Graph\Beta\Generated\Education\SynchronizationProfiles\Count;
namespace Microsoft\Graph\Beta\Generated\Admin\Exchange\Mailboxes\Count;

use Microsoft\Kiota\Abstractions\QueryParameter;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Microsoft\Graph\Beta\Generated\Education\SynchronizationProfiles\Count;
namespace Microsoft\Graph\Beta\Generated\Admin\Exchange\Mailboxes\Count;

use Microsoft\Kiota\Abstractions\BaseRequestConfiguration;
use Microsoft\Kiota\Abstractions\RequestOption;
Expand Down
Loading