diff --git a/src/Generated/Admin/AdminRequestBuilder.php b/src/Generated/Admin/AdminRequestBuilder.php index 8aa80ea9135..a99e183879b 100644 --- a/src/Generated/Admin/AdminRequestBuilder.php +++ b/src/Generated/Admin/AdminRequestBuilder.php @@ -4,6 +4,7 @@ use Exception; use Http\Promise\Promise; +use Microsoft\Graph\Generated\Admin\ConfigurationManagement\ConfigurationManagementRequestBuilder; use Microsoft\Graph\Generated\Admin\Edge\EdgeRequestBuilder; use Microsoft\Graph\Generated\Admin\Exchange\ExchangeRequestBuilder; use Microsoft\Graph\Generated\Admin\Microsoft365Apps\Microsoft365AppsRequestBuilder; @@ -24,6 +25,13 @@ */ class AdminRequestBuilder extends BaseRequestBuilder { + /** + * Provides operations to manage the configurationManagement property of the microsoft.graph.admin entity. + */ + public function configurationManagement(): ConfigurationManagementRequestBuilder { + return new ConfigurationManagementRequestBuilder($this->pathParameters, $this->requestAdapter); + } + /** * Provides operations to manage the edge property of the microsoft.graph.admin entity. */ diff --git a/src/Generated/Admin/ConfigurationManagement/ConfigurationDrifts/ConfigurationDriftsRequestBuilder.php b/src/Generated/Admin/ConfigurationManagement/ConfigurationDrifts/ConfigurationDriftsRequestBuilder.php new file mode 100644 index 00000000000..cee967c1ac4 --- /dev/null +++ b/src/Generated/Admin/ConfigurationManagement/ConfigurationDrifts/ConfigurationDriftsRequestBuilder.php @@ -0,0 +1,134 @@ +pathParameters, $this->requestAdapter); + } + + /** + * Provides operations to manage the configurationDrifts property of the microsoft.graph.configurationManagement entity. + * @param string $configurationDriftId The unique identifier of configurationDrift + * @return ConfigurationDriftItemRequestBuilder + */ + public function byConfigurationDriftId(string $configurationDriftId): ConfigurationDriftItemRequestBuilder { + $urlTplParams = $this->pathParameters; + $urlTplParams['configurationDrift%2Did'] = $configurationDriftId; + return new ConfigurationDriftItemRequestBuilder($urlTplParams, $this->requestAdapter); + } + + /** + * Instantiates a new ConfigurationDriftsRequestBuilder and sets the default values. + * @param array|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}/admin/configurationManagement/configurationDrifts{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Get a list of the configurationDrift objects and their properties. + * @param ConfigurationDriftsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + * @link https://learn.microsoft.com/graph/api/configurationmanagement-list-configurationdrifts?view=graph-rest-1.0 Find more info here + */ + public function get(?ConfigurationDriftsRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [ConfigurationDriftCollectionResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + } + + /** + * Create new navigation property to configurationDrifts for admin + * @param ConfigurationDrift $body The request body + * @param ConfigurationDriftsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + */ + public function post(ConfigurationDrift $body, ?ConfigurationDriftsRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [ConfigurationDrift::class, 'createFromDiscriminatorValue'], $errorMappings); + } + + /** + * Get a list of the configurationDrift objects and their properties. + * @param ConfigurationDriftsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?ConfigurationDriftsRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->tryAddHeader('Accept', "application/json"); + return $requestInfo; + } + + /** + * Create new navigation property to configurationDrifts for admin + * @param ConfigurationDrift $body The request body + * @param ConfigurationDriftsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPostRequestInformation(ConfigurationDrift $body, ?ConfigurationDriftsRequestBuilderPostRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::POST; + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->tryAddHeader('Accept', "application/json"); + $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); + return $requestInfo; + } + + /** + * 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 ConfigurationDriftsRequestBuilder + */ + public function withUrl(string $rawUrl): ConfigurationDriftsRequestBuilder { + return new ConfigurationDriftsRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/Admin/ConfigurationManagement/ConfigurationDrifts/ConfigurationDriftsRequestBuilderGetQueryParameters.php b/src/Generated/Admin/ConfigurationManagement/ConfigurationDrifts/ConfigurationDriftsRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..ce81f5b4e9b --- /dev/null +++ b/src/Generated/Admin/ConfigurationManagement/ConfigurationDrifts/ConfigurationDriftsRequestBuilderGetQueryParameters.php @@ -0,0 +1,82 @@ +|null $expand Expand related entities + */ + public ?array $expand = null; + + /** + * @QueryParameter("%24filter") + * @var string|null $filter Filter items by property values + */ + public ?string $filter = null; + + /** + * @QueryParameter("%24orderby") + * @var array|null $orderby Order items by property values + */ + public ?array $orderby = null; + + /** + * @QueryParameter("%24search") + * @var string|null $search Search items by search phrases + */ + public ?string $search = null; + + /** + * @QueryParameter("%24select") + * @var array|null $select Select properties to be returned + */ + public ?array $select = null; + + /** + * @QueryParameter("%24skip") + * @var int|null $skip Skip the first n items + */ + public ?int $skip = null; + + /** + * @QueryParameter("%24top") + * @var int|null $top Show only the first n items + */ + public ?int $top = null; + + /** + * Instantiates a new ConfigurationDriftsRequestBuilderGetQueryParameters and sets the default values. + * @param bool|null $count Include count of items + * @param array|null $expand Expand related entities + * @param string|null $filter Filter items by property values + * @param array|null $orderby Order items by property values + * @param string|null $search Search items by search phrases + * @param array|null $select Select properties to be returned + * @param int|null $skip Skip the first n items + * @param int|null $top Show only the first n items + */ + 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) { + $this->count = $count; + $this->expand = $expand; + $this->filter = $filter; + $this->orderby = $orderby; + $this->search = $search; + $this->select = $select; + $this->skip = $skip; + $this->top = $top; + } + +} diff --git a/src/Generated/Admin/ConfigurationManagement/ConfigurationDrifts/ConfigurationDriftsRequestBuilderGetRequestConfiguration.php b/src/Generated/Admin/ConfigurationManagement/ConfigurationDrifts/ConfigurationDriftsRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..4bf23323f3e --- /dev/null +++ b/src/Generated/Admin/ConfigurationManagement/ConfigurationDrifts/ConfigurationDriftsRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,45 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param ConfigurationDriftsRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?ConfigurationDriftsRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new ConfigurationDriftsRequestBuilderGetQueryParameters. + * @param bool|null $count Include count of items + * @param array|null $expand Expand related entities + * @param string|null $filter Filter items by property values + * @param array|null $orderby Order items by property values + * @param string|null $search Search items by search phrases + * @param array|null $select Select properties to be returned + * @param int|null $skip Skip the first n items + * @param int|null $top Show only the first n items + * @return ConfigurationDriftsRequestBuilderGetQueryParameters + */ + public static function createQueryParameters(?bool $count = null, ?array $expand = null, ?string $filter = null, ?array $orderby = null, ?string $search = null, ?array $select = null, ?int $skip = null, ?int $top = null): ConfigurationDriftsRequestBuilderGetQueryParameters { + return new ConfigurationDriftsRequestBuilderGetQueryParameters($count, $expand, $filter, $orderby, $search, $select, $skip, $top); + } + +} diff --git a/src/Generated/Admin/ConfigurationManagement/ConfigurationDrifts/ConfigurationDriftsRequestBuilderPostRequestConfiguration.php b/src/Generated/Admin/ConfigurationManagement/ConfigurationDrifts/ConfigurationDriftsRequestBuilderPostRequestConfiguration.php new file mode 100644 index 00000000000..17bf9936e3e --- /dev/null +++ b/src/Generated/Admin/ConfigurationManagement/ConfigurationDrifts/ConfigurationDriftsRequestBuilderPostRequestConfiguration.php @@ -0,0 +1,22 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + */ + public function __construct(?array $headers = null, ?array $options = null) { + parent::__construct($headers ?? [], $options ?? []); + } + +} diff --git a/src/Generated/Admin/ConfigurationManagement/ConfigurationDrifts/Count/CountRequestBuilder.php b/src/Generated/Admin/ConfigurationManagement/ConfigurationDrifts/Count/CountRequestBuilder.php new file mode 100644 index 00000000000..711b2d05c4c --- /dev/null +++ b/src/Generated/Admin/ConfigurationManagement/ConfigurationDrifts/Count/CountRequestBuilder.php @@ -0,0 +1,78 @@ +|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}/admin/configurationManagement/configurationDrifts/$count{?%24filter,%24search}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Get the number of the resource + * @param CountRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + */ + public function get(?CountRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + /** @var Promise $result */ + $result = $this->requestAdapter->sendPrimitiveAsync($requestInfo, 'int', $errorMappings); + return $result; + } + + /** + * Get the number of the resource + * @param CountRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?CountRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); + return $requestInfo; + } + + /** + * 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 CountRequestBuilder + */ + public function withUrl(string $rawUrl): CountRequestBuilder { + return new CountRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/Admin/ConfigurationManagement/ConfigurationDrifts/Count/CountRequestBuilderGetQueryParameters.php b/src/Generated/Admin/ConfigurationManagement/ConfigurationDrifts/Count/CountRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..24ec7939907 --- /dev/null +++ b/src/Generated/Admin/ConfigurationManagement/ConfigurationDrifts/Count/CountRequestBuilderGetQueryParameters.php @@ -0,0 +1,34 @@ +filter = $filter; + $this->search = $search; + } + +} diff --git a/src/Generated/Admin/ConfigurationManagement/ConfigurationDrifts/Count/CountRequestBuilderGetRequestConfiguration.php b/src/Generated/Admin/ConfigurationManagement/ConfigurationDrifts/Count/CountRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..2558e846bf3 --- /dev/null +++ b/src/Generated/Admin/ConfigurationManagement/ConfigurationDrifts/Count/CountRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,39 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param CountRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?CountRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new CountRequestBuilderGetQueryParameters. + * @param string|null $filter Filter items by property values + * @param string|null $search Search items by search phrases + * @return CountRequestBuilderGetQueryParameters + */ + public static function createQueryParameters(?string $filter = null, ?string $search = null): CountRequestBuilderGetQueryParameters { + return new CountRequestBuilderGetQueryParameters($filter, $search); + } + +} diff --git a/src/Generated/Admin/ConfigurationManagement/ConfigurationDrifts/Item/ConfigurationDriftItemRequestBuilder.php b/src/Generated/Admin/ConfigurationManagement/ConfigurationDrifts/Item/ConfigurationDriftItemRequestBuilder.php new file mode 100644 index 00000000000..1e588aae31e --- /dev/null +++ b/src/Generated/Admin/ConfigurationManagement/ConfigurationDrifts/Item/ConfigurationDriftItemRequestBuilder.php @@ -0,0 +1,145 @@ +|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}/admin/configurationManagement/configurationDrifts/{configurationDrift%2Did}{?%24expand,%24select}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Delete navigation property configurationDrifts for admin + * @param ConfigurationDriftItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + */ + public function delete(?ConfigurationDriftItemRequestBuilderDeleteRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toDeleteRequestInformation($requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendNoContentAsync($requestInfo, $errorMappings); + } + + /** + * Get the properties and relationships of a configurationDrift object. + * @param ConfigurationDriftItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + * @link https://learn.microsoft.com/graph/api/configurationdrift-get?view=graph-rest-1.0 Find more info here + */ + public function get(?ConfigurationDriftItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [ConfigurationDrift::class, 'createFromDiscriminatorValue'], $errorMappings); + } + + /** + * Update the navigation property configurationDrifts in admin + * @param ConfigurationDrift $body The request body + * @param ConfigurationDriftItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + */ + public function patch(ConfigurationDrift $body, ?ConfigurationDriftItemRequestBuilderPatchRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPatchRequestInformation($body, $requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [ConfigurationDrift::class, 'createFromDiscriminatorValue'], $errorMappings); + } + + /** + * Delete navigation property configurationDrifts for admin + * @param ConfigurationDriftItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toDeleteRequestInformation(?ConfigurationDriftItemRequestBuilderDeleteRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::DELETE; + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->tryAddHeader('Accept', "application/json"); + return $requestInfo; + } + + /** + * Get the properties and relationships of a configurationDrift object. + * @param ConfigurationDriftItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?ConfigurationDriftItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->tryAddHeader('Accept', "application/json"); + return $requestInfo; + } + + /** + * Update the navigation property configurationDrifts in admin + * @param ConfigurationDrift $body The request body + * @param ConfigurationDriftItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPatchRequestInformation(ConfigurationDrift $body, ?ConfigurationDriftItemRequestBuilderPatchRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::PATCH; + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->tryAddHeader('Accept', "application/json"); + $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); + return $requestInfo; + } + + /** + * 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 ConfigurationDriftItemRequestBuilder + */ + public function withUrl(string $rawUrl): ConfigurationDriftItemRequestBuilder { + return new ConfigurationDriftItemRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/Admin/ConfigurationManagement/ConfigurationDrifts/Item/ConfigurationDriftItemRequestBuilderDeleteRequestConfiguration.php b/src/Generated/Admin/ConfigurationManagement/ConfigurationDrifts/Item/ConfigurationDriftItemRequestBuilderDeleteRequestConfiguration.php new file mode 100644 index 00000000000..ad87bc94880 --- /dev/null +++ b/src/Generated/Admin/ConfigurationManagement/ConfigurationDrifts/Item/ConfigurationDriftItemRequestBuilderDeleteRequestConfiguration.php @@ -0,0 +1,22 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + */ + public function __construct(?array $headers = null, ?array $options = null) { + parent::__construct($headers ?? [], $options ?? []); + } + +} diff --git a/src/Generated/Admin/ConfigurationManagement/ConfigurationDrifts/Item/ConfigurationDriftItemRequestBuilderGetQueryParameters.php b/src/Generated/Admin/ConfigurationManagement/ConfigurationDrifts/Item/ConfigurationDriftItemRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..c150fa84664 --- /dev/null +++ b/src/Generated/Admin/ConfigurationManagement/ConfigurationDrifts/Item/ConfigurationDriftItemRequestBuilderGetQueryParameters.php @@ -0,0 +1,34 @@ +|null $expand Expand related entities + */ + public ?array $expand = null; + + /** + * @QueryParameter("%24select") + * @var array|null $select Select properties to be returned + */ + public ?array $select = null; + + /** + * Instantiates a new ConfigurationDriftItemRequestBuilderGetQueryParameters and sets the default values. + * @param array|null $expand Expand related entities + * @param array|null $select Select properties to be returned + */ + public function __construct(?array $expand = null, ?array $select = null) { + $this->expand = $expand; + $this->select = $select; + } + +} diff --git a/src/Generated/Admin/ConfigurationManagement/ConfigurationDrifts/Item/ConfigurationDriftItemRequestBuilderGetRequestConfiguration.php b/src/Generated/Admin/ConfigurationManagement/ConfigurationDrifts/Item/ConfigurationDriftItemRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..32ef897c7d3 --- /dev/null +++ b/src/Generated/Admin/ConfigurationManagement/ConfigurationDrifts/Item/ConfigurationDriftItemRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,39 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param ConfigurationDriftItemRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?ConfigurationDriftItemRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new ConfigurationDriftItemRequestBuilderGetQueryParameters. + * @param array|null $expand Expand related entities + * @param array|null $select Select properties to be returned + * @return ConfigurationDriftItemRequestBuilderGetQueryParameters + */ + public static function createQueryParameters(?array $expand = null, ?array $select = null): ConfigurationDriftItemRequestBuilderGetQueryParameters { + return new ConfigurationDriftItemRequestBuilderGetQueryParameters($expand, $select); + } + +} diff --git a/src/Generated/Admin/ConfigurationManagement/ConfigurationDrifts/Item/ConfigurationDriftItemRequestBuilderPatchRequestConfiguration.php b/src/Generated/Admin/ConfigurationManagement/ConfigurationDrifts/Item/ConfigurationDriftItemRequestBuilderPatchRequestConfiguration.php new file mode 100644 index 00000000000..5a7046dbdc9 --- /dev/null +++ b/src/Generated/Admin/ConfigurationManagement/ConfigurationDrifts/Item/ConfigurationDriftItemRequestBuilderPatchRequestConfiguration.php @@ -0,0 +1,22 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + */ + public function __construct(?array $headers = null, ?array $options = null) { + parent::__construct($headers ?? [], $options ?? []); + } + +} diff --git a/src/Generated/Admin/ConfigurationManagement/ConfigurationManagementRequestBuilder.php b/src/Generated/Admin/ConfigurationManagement/ConfigurationManagementRequestBuilder.php new file mode 100644 index 00000000000..66c09aa5c61 --- /dev/null +++ b/src/Generated/Admin/ConfigurationManagement/ConfigurationManagementRequestBuilder.php @@ -0,0 +1,184 @@ +pathParameters, $this->requestAdapter); + } + + /** + * Provides operations to manage the configurationMonitoringResults property of the microsoft.graph.configurationManagement entity. + */ + public function configurationMonitoringResults(): ConfigurationMonitoringResultsRequestBuilder { + return new ConfigurationMonitoringResultsRequestBuilder($this->pathParameters, $this->requestAdapter); + } + + /** + * Provides operations to manage the configurationMonitors property of the microsoft.graph.configurationManagement entity. + */ + public function configurationMonitors(): ConfigurationMonitorsRequestBuilder { + return new ConfigurationMonitorsRequestBuilder($this->pathParameters, $this->requestAdapter); + } + + /** + * Provides operations to manage the configurationSnapshotJobs property of the microsoft.graph.configurationManagement entity. + */ + public function configurationSnapshotJobs(): ConfigurationSnapshotJobsRequestBuilder { + return new ConfigurationSnapshotJobsRequestBuilder($this->pathParameters, $this->requestAdapter); + } + + /** + * Provides operations to manage the configurationSnapshots property of the microsoft.graph.configurationManagement entity. + */ + public function configurationSnapshots(): ConfigurationSnapshotsRequestBuilder { + return new ConfigurationSnapshotsRequestBuilder($this->pathParameters, $this->requestAdapter); + } + + /** + * Instantiates a new ConfigurationManagementRequestBuilder and sets the default values. + * @param array|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}/admin/configurationManagement{?%24expand,%24select}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Delete navigation property configurationManagement for admin + * @param ConfigurationManagementRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + */ + public function delete(?ConfigurationManagementRequestBuilderDeleteRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toDeleteRequestInformation($requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendNoContentAsync($requestInfo, $errorMappings); + } + + /** + * A container for Tenant Configuration Management (TCM) resources. Read-only. + * @param ConfigurationManagementRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + */ + public function get(?ConfigurationManagementRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [ConfigurationManagement::class, 'createFromDiscriminatorValue'], $errorMappings); + } + + /** + * Update the navigation property configurationManagement in admin + * @param ConfigurationManagement $body The request body + * @param ConfigurationManagementRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + */ + public function patch(ConfigurationManagement $body, ?ConfigurationManagementRequestBuilderPatchRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPatchRequestInformation($body, $requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [ConfigurationManagement::class, 'createFromDiscriminatorValue'], $errorMappings); + } + + /** + * Delete navigation property configurationManagement for admin + * @param ConfigurationManagementRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toDeleteRequestInformation(?ConfigurationManagementRequestBuilderDeleteRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::DELETE; + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->tryAddHeader('Accept', "application/json"); + return $requestInfo; + } + + /** + * A container for Tenant Configuration Management (TCM) resources. Read-only. + * @param ConfigurationManagementRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?ConfigurationManagementRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->tryAddHeader('Accept', "application/json"); + return $requestInfo; + } + + /** + * Update the navigation property configurationManagement in admin + * @param ConfigurationManagement $body The request body + * @param ConfigurationManagementRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPatchRequestInformation(ConfigurationManagement $body, ?ConfigurationManagementRequestBuilderPatchRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::PATCH; + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->tryAddHeader('Accept', "application/json"); + $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); + return $requestInfo; + } + + /** + * 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 ConfigurationManagementRequestBuilder + */ + public function withUrl(string $rawUrl): ConfigurationManagementRequestBuilder { + return new ConfigurationManagementRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/Admin/ConfigurationManagement/ConfigurationManagementRequestBuilderDeleteRequestConfiguration.php b/src/Generated/Admin/ConfigurationManagement/ConfigurationManagementRequestBuilderDeleteRequestConfiguration.php new file mode 100644 index 00000000000..769bb8f711d --- /dev/null +++ b/src/Generated/Admin/ConfigurationManagement/ConfigurationManagementRequestBuilderDeleteRequestConfiguration.php @@ -0,0 +1,22 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + */ + public function __construct(?array $headers = null, ?array $options = null) { + parent::__construct($headers ?? [], $options ?? []); + } + +} diff --git a/src/Generated/Admin/ConfigurationManagement/ConfigurationManagementRequestBuilderGetQueryParameters.php b/src/Generated/Admin/ConfigurationManagement/ConfigurationManagementRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..098836a7f96 --- /dev/null +++ b/src/Generated/Admin/ConfigurationManagement/ConfigurationManagementRequestBuilderGetQueryParameters.php @@ -0,0 +1,34 @@ +|null $expand Expand related entities + */ + public ?array $expand = null; + + /** + * @QueryParameter("%24select") + * @var array|null $select Select properties to be returned + */ + public ?array $select = null; + + /** + * Instantiates a new ConfigurationManagementRequestBuilderGetQueryParameters and sets the default values. + * @param array|null $expand Expand related entities + * @param array|null $select Select properties to be returned + */ + public function __construct(?array $expand = null, ?array $select = null) { + $this->expand = $expand; + $this->select = $select; + } + +} diff --git a/src/Generated/Admin/ConfigurationManagement/ConfigurationManagementRequestBuilderGetRequestConfiguration.php b/src/Generated/Admin/ConfigurationManagement/ConfigurationManagementRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..5500d107509 --- /dev/null +++ b/src/Generated/Admin/ConfigurationManagement/ConfigurationManagementRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,39 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param ConfigurationManagementRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?ConfigurationManagementRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new ConfigurationManagementRequestBuilderGetQueryParameters. + * @param array|null $expand Expand related entities + * @param array|null $select Select properties to be returned + * @return ConfigurationManagementRequestBuilderGetQueryParameters + */ + public static function createQueryParameters(?array $expand = null, ?array $select = null): ConfigurationManagementRequestBuilderGetQueryParameters { + return new ConfigurationManagementRequestBuilderGetQueryParameters($expand, $select); + } + +} diff --git a/src/Generated/Admin/ConfigurationManagement/ConfigurationManagementRequestBuilderPatchRequestConfiguration.php b/src/Generated/Admin/ConfigurationManagement/ConfigurationManagementRequestBuilderPatchRequestConfiguration.php new file mode 100644 index 00000000000..aaf164bdc74 --- /dev/null +++ b/src/Generated/Admin/ConfigurationManagement/ConfigurationManagementRequestBuilderPatchRequestConfiguration.php @@ -0,0 +1,22 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + */ + public function __construct(?array $headers = null, ?array $options = null) { + parent::__construct($headers ?? [], $options ?? []); + } + +} diff --git a/src/Generated/Admin/ConfigurationManagement/ConfigurationMonitoringResults/ConfigurationMonitoringResultsRequestBuilder.php b/src/Generated/Admin/ConfigurationManagement/ConfigurationMonitoringResults/ConfigurationMonitoringResultsRequestBuilder.php new file mode 100644 index 00000000000..d9077354153 --- /dev/null +++ b/src/Generated/Admin/ConfigurationManagement/ConfigurationMonitoringResults/ConfigurationMonitoringResultsRequestBuilder.php @@ -0,0 +1,134 @@ +pathParameters, $this->requestAdapter); + } + + /** + * Provides operations to manage the configurationMonitoringResults property of the microsoft.graph.configurationManagement entity. + * @param string $configurationMonitoringResultId The unique identifier of configurationMonitoringResult + * @return ConfigurationMonitoringResultItemRequestBuilder + */ + public function byConfigurationMonitoringResultId(string $configurationMonitoringResultId): ConfigurationMonitoringResultItemRequestBuilder { + $urlTplParams = $this->pathParameters; + $urlTplParams['configurationMonitoringResult%2Did'] = $configurationMonitoringResultId; + return new ConfigurationMonitoringResultItemRequestBuilder($urlTplParams, $this->requestAdapter); + } + + /** + * Instantiates a new ConfigurationMonitoringResultsRequestBuilder and sets the default values. + * @param array|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}/admin/configurationManagement/configurationMonitoringResults{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Get a list of the configurationMonitoringResult objects and their properties. + * @param ConfigurationMonitoringResultsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + * @link https://learn.microsoft.com/graph/api/configurationmanagement-list-configurationmonitoringresults?view=graph-rest-1.0 Find more info here + */ + public function get(?ConfigurationMonitoringResultsRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [ConfigurationMonitoringResultCollectionResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + } + + /** + * Create new navigation property to configurationMonitoringResults for admin + * @param ConfigurationMonitoringResult $body The request body + * @param ConfigurationMonitoringResultsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + */ + public function post(ConfigurationMonitoringResult $body, ?ConfigurationMonitoringResultsRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [ConfigurationMonitoringResult::class, 'createFromDiscriminatorValue'], $errorMappings); + } + + /** + * Get a list of the configurationMonitoringResult objects and their properties. + * @param ConfigurationMonitoringResultsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?ConfigurationMonitoringResultsRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->tryAddHeader('Accept', "application/json"); + return $requestInfo; + } + + /** + * Create new navigation property to configurationMonitoringResults for admin + * @param ConfigurationMonitoringResult $body The request body + * @param ConfigurationMonitoringResultsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPostRequestInformation(ConfigurationMonitoringResult $body, ?ConfigurationMonitoringResultsRequestBuilderPostRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::POST; + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->tryAddHeader('Accept', "application/json"); + $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); + return $requestInfo; + } + + /** + * 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 ConfigurationMonitoringResultsRequestBuilder + */ + public function withUrl(string $rawUrl): ConfigurationMonitoringResultsRequestBuilder { + return new ConfigurationMonitoringResultsRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/Admin/ConfigurationManagement/ConfigurationMonitoringResults/ConfigurationMonitoringResultsRequestBuilderGetQueryParameters.php b/src/Generated/Admin/ConfigurationManagement/ConfigurationMonitoringResults/ConfigurationMonitoringResultsRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..caf18ff9870 --- /dev/null +++ b/src/Generated/Admin/ConfigurationManagement/ConfigurationMonitoringResults/ConfigurationMonitoringResultsRequestBuilderGetQueryParameters.php @@ -0,0 +1,82 @@ +|null $expand Expand related entities + */ + public ?array $expand = null; + + /** + * @QueryParameter("%24filter") + * @var string|null $filter Filter items by property values + */ + public ?string $filter = null; + + /** + * @QueryParameter("%24orderby") + * @var array|null $orderby Order items by property values + */ + public ?array $orderby = null; + + /** + * @QueryParameter("%24search") + * @var string|null $search Search items by search phrases + */ + public ?string $search = null; + + /** + * @QueryParameter("%24select") + * @var array|null $select Select properties to be returned + */ + public ?array $select = null; + + /** + * @QueryParameter("%24skip") + * @var int|null $skip Skip the first n items + */ + public ?int $skip = null; + + /** + * @QueryParameter("%24top") + * @var int|null $top Show only the first n items + */ + public ?int $top = null; + + /** + * Instantiates a new ConfigurationMonitoringResultsRequestBuilderGetQueryParameters and sets the default values. + * @param bool|null $count Include count of items + * @param array|null $expand Expand related entities + * @param string|null $filter Filter items by property values + * @param array|null $orderby Order items by property values + * @param string|null $search Search items by search phrases + * @param array|null $select Select properties to be returned + * @param int|null $skip Skip the first n items + * @param int|null $top Show only the first n items + */ + 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) { + $this->count = $count; + $this->expand = $expand; + $this->filter = $filter; + $this->orderby = $orderby; + $this->search = $search; + $this->select = $select; + $this->skip = $skip; + $this->top = $top; + } + +} diff --git a/src/Generated/Admin/ConfigurationManagement/ConfigurationMonitoringResults/ConfigurationMonitoringResultsRequestBuilderGetRequestConfiguration.php b/src/Generated/Admin/ConfigurationManagement/ConfigurationMonitoringResults/ConfigurationMonitoringResultsRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..c83e9178b9e --- /dev/null +++ b/src/Generated/Admin/ConfigurationManagement/ConfigurationMonitoringResults/ConfigurationMonitoringResultsRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,45 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param ConfigurationMonitoringResultsRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?ConfigurationMonitoringResultsRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new ConfigurationMonitoringResultsRequestBuilderGetQueryParameters. + * @param bool|null $count Include count of items + * @param array|null $expand Expand related entities + * @param string|null $filter Filter items by property values + * @param array|null $orderby Order items by property values + * @param string|null $search Search items by search phrases + * @param array|null $select Select properties to be returned + * @param int|null $skip Skip the first n items + * @param int|null $top Show only the first n items + * @return ConfigurationMonitoringResultsRequestBuilderGetQueryParameters + */ + public static function createQueryParameters(?bool $count = null, ?array $expand = null, ?string $filter = null, ?array $orderby = null, ?string $search = null, ?array $select = null, ?int $skip = null, ?int $top = null): ConfigurationMonitoringResultsRequestBuilderGetQueryParameters { + return new ConfigurationMonitoringResultsRequestBuilderGetQueryParameters($count, $expand, $filter, $orderby, $search, $select, $skip, $top); + } + +} diff --git a/src/Generated/Admin/ConfigurationManagement/ConfigurationMonitoringResults/ConfigurationMonitoringResultsRequestBuilderPostRequestConfiguration.php b/src/Generated/Admin/ConfigurationManagement/ConfigurationMonitoringResults/ConfigurationMonitoringResultsRequestBuilderPostRequestConfiguration.php new file mode 100644 index 00000000000..36fbac97052 --- /dev/null +++ b/src/Generated/Admin/ConfigurationManagement/ConfigurationMonitoringResults/ConfigurationMonitoringResultsRequestBuilderPostRequestConfiguration.php @@ -0,0 +1,22 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + */ + public function __construct(?array $headers = null, ?array $options = null) { + parent::__construct($headers ?? [], $options ?? []); + } + +} diff --git a/src/Generated/Admin/ConfigurationManagement/ConfigurationMonitoringResults/Count/CountRequestBuilder.php b/src/Generated/Admin/ConfigurationManagement/ConfigurationMonitoringResults/Count/CountRequestBuilder.php new file mode 100644 index 00000000000..ad999ca3919 --- /dev/null +++ b/src/Generated/Admin/ConfigurationManagement/ConfigurationMonitoringResults/Count/CountRequestBuilder.php @@ -0,0 +1,78 @@ +|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}/admin/configurationManagement/configurationMonitoringResults/$count{?%24filter,%24search}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Get the number of the resource + * @param CountRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + */ + public function get(?CountRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + /** @var Promise $result */ + $result = $this->requestAdapter->sendPrimitiveAsync($requestInfo, 'int', $errorMappings); + return $result; + } + + /** + * Get the number of the resource + * @param CountRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?CountRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); + return $requestInfo; + } + + /** + * 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 CountRequestBuilder + */ + public function withUrl(string $rawUrl): CountRequestBuilder { + return new CountRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/Admin/ConfigurationManagement/ConfigurationMonitoringResults/Count/CountRequestBuilderGetQueryParameters.php b/src/Generated/Admin/ConfigurationManagement/ConfigurationMonitoringResults/Count/CountRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..d473f45b59b --- /dev/null +++ b/src/Generated/Admin/ConfigurationManagement/ConfigurationMonitoringResults/Count/CountRequestBuilderGetQueryParameters.php @@ -0,0 +1,34 @@ +filter = $filter; + $this->search = $search; + } + +} diff --git a/src/Generated/Admin/ConfigurationManagement/ConfigurationMonitoringResults/Count/CountRequestBuilderGetRequestConfiguration.php b/src/Generated/Admin/ConfigurationManagement/ConfigurationMonitoringResults/Count/CountRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..f61b9c19dba --- /dev/null +++ b/src/Generated/Admin/ConfigurationManagement/ConfigurationMonitoringResults/Count/CountRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,39 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param CountRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?CountRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new CountRequestBuilderGetQueryParameters. + * @param string|null $filter Filter items by property values + * @param string|null $search Search items by search phrases + * @return CountRequestBuilderGetQueryParameters + */ + public static function createQueryParameters(?string $filter = null, ?string $search = null): CountRequestBuilderGetQueryParameters { + return new CountRequestBuilderGetQueryParameters($filter, $search); + } + +} diff --git a/src/Generated/Admin/ConfigurationManagement/ConfigurationMonitoringResults/Item/ConfigurationMonitoringResultItemRequestBuilder.php b/src/Generated/Admin/ConfigurationManagement/ConfigurationMonitoringResults/Item/ConfigurationMonitoringResultItemRequestBuilder.php new file mode 100644 index 00000000000..6af491f6c10 --- /dev/null +++ b/src/Generated/Admin/ConfigurationManagement/ConfigurationMonitoringResults/Item/ConfigurationMonitoringResultItemRequestBuilder.php @@ -0,0 +1,145 @@ +|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}/admin/configurationManagement/configurationMonitoringResults/{configurationMonitoringResult%2Did}{?%24expand,%24select}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Delete navigation property configurationMonitoringResults for admin + * @param ConfigurationMonitoringResultItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + */ + public function delete(?ConfigurationMonitoringResultItemRequestBuilderDeleteRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toDeleteRequestInformation($requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendNoContentAsync($requestInfo, $errorMappings); + } + + /** + * Read the properties and relationships of a configurationMonitoringResult object. + * @param ConfigurationMonitoringResultItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + * @link https://learn.microsoft.com/graph/api/configurationmonitoringresult-get?view=graph-rest-1.0 Find more info here + */ + public function get(?ConfigurationMonitoringResultItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [ConfigurationMonitoringResult::class, 'createFromDiscriminatorValue'], $errorMappings); + } + + /** + * Update the navigation property configurationMonitoringResults in admin + * @param ConfigurationMonitoringResult $body The request body + * @param ConfigurationMonitoringResultItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + */ + public function patch(ConfigurationMonitoringResult $body, ?ConfigurationMonitoringResultItemRequestBuilderPatchRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPatchRequestInformation($body, $requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [ConfigurationMonitoringResult::class, 'createFromDiscriminatorValue'], $errorMappings); + } + + /** + * Delete navigation property configurationMonitoringResults for admin + * @param ConfigurationMonitoringResultItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toDeleteRequestInformation(?ConfigurationMonitoringResultItemRequestBuilderDeleteRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::DELETE; + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->tryAddHeader('Accept', "application/json"); + return $requestInfo; + } + + /** + * Read the properties and relationships of a configurationMonitoringResult object. + * @param ConfigurationMonitoringResultItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?ConfigurationMonitoringResultItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->tryAddHeader('Accept', "application/json"); + return $requestInfo; + } + + /** + * Update the navigation property configurationMonitoringResults in admin + * @param ConfigurationMonitoringResult $body The request body + * @param ConfigurationMonitoringResultItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPatchRequestInformation(ConfigurationMonitoringResult $body, ?ConfigurationMonitoringResultItemRequestBuilderPatchRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::PATCH; + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->tryAddHeader('Accept', "application/json"); + $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); + return $requestInfo; + } + + /** + * 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 ConfigurationMonitoringResultItemRequestBuilder + */ + public function withUrl(string $rawUrl): ConfigurationMonitoringResultItemRequestBuilder { + return new ConfigurationMonitoringResultItemRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/Admin/ConfigurationManagement/ConfigurationMonitoringResults/Item/ConfigurationMonitoringResultItemRequestBuilderDeleteRequestConfiguration.php b/src/Generated/Admin/ConfigurationManagement/ConfigurationMonitoringResults/Item/ConfigurationMonitoringResultItemRequestBuilderDeleteRequestConfiguration.php new file mode 100644 index 00000000000..55581776e6d --- /dev/null +++ b/src/Generated/Admin/ConfigurationManagement/ConfigurationMonitoringResults/Item/ConfigurationMonitoringResultItemRequestBuilderDeleteRequestConfiguration.php @@ -0,0 +1,22 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + */ + public function __construct(?array $headers = null, ?array $options = null) { + parent::__construct($headers ?? [], $options ?? []); + } + +} diff --git a/src/Generated/Admin/ConfigurationManagement/ConfigurationMonitoringResults/Item/ConfigurationMonitoringResultItemRequestBuilderGetQueryParameters.php b/src/Generated/Admin/ConfigurationManagement/ConfigurationMonitoringResults/Item/ConfigurationMonitoringResultItemRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..2185756a94c --- /dev/null +++ b/src/Generated/Admin/ConfigurationManagement/ConfigurationMonitoringResults/Item/ConfigurationMonitoringResultItemRequestBuilderGetQueryParameters.php @@ -0,0 +1,34 @@ +|null $expand Expand related entities + */ + public ?array $expand = null; + + /** + * @QueryParameter("%24select") + * @var array|null $select Select properties to be returned + */ + public ?array $select = null; + + /** + * Instantiates a new ConfigurationMonitoringResultItemRequestBuilderGetQueryParameters and sets the default values. + * @param array|null $expand Expand related entities + * @param array|null $select Select properties to be returned + */ + public function __construct(?array $expand = null, ?array $select = null) { + $this->expand = $expand; + $this->select = $select; + } + +} diff --git a/src/Generated/Admin/ConfigurationManagement/ConfigurationMonitoringResults/Item/ConfigurationMonitoringResultItemRequestBuilderGetRequestConfiguration.php b/src/Generated/Admin/ConfigurationManagement/ConfigurationMonitoringResults/Item/ConfigurationMonitoringResultItemRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..e416e30083b --- /dev/null +++ b/src/Generated/Admin/ConfigurationManagement/ConfigurationMonitoringResults/Item/ConfigurationMonitoringResultItemRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,39 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param ConfigurationMonitoringResultItemRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?ConfigurationMonitoringResultItemRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new ConfigurationMonitoringResultItemRequestBuilderGetQueryParameters. + * @param array|null $expand Expand related entities + * @param array|null $select Select properties to be returned + * @return ConfigurationMonitoringResultItemRequestBuilderGetQueryParameters + */ + public static function createQueryParameters(?array $expand = null, ?array $select = null): ConfigurationMonitoringResultItemRequestBuilderGetQueryParameters { + return new ConfigurationMonitoringResultItemRequestBuilderGetQueryParameters($expand, $select); + } + +} diff --git a/src/Generated/Admin/ConfigurationManagement/ConfigurationMonitoringResults/Item/ConfigurationMonitoringResultItemRequestBuilderPatchRequestConfiguration.php b/src/Generated/Admin/ConfigurationManagement/ConfigurationMonitoringResults/Item/ConfigurationMonitoringResultItemRequestBuilderPatchRequestConfiguration.php new file mode 100644 index 00000000000..8ad7ad6a7bc --- /dev/null +++ b/src/Generated/Admin/ConfigurationManagement/ConfigurationMonitoringResults/Item/ConfigurationMonitoringResultItemRequestBuilderPatchRequestConfiguration.php @@ -0,0 +1,22 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + */ + public function __construct(?array $headers = null, ?array $options = null) { + parent::__construct($headers ?? [], $options ?? []); + } + +} diff --git a/src/Generated/Admin/ConfigurationManagement/ConfigurationMonitors/ConfigurationMonitorsRequestBuilder.php b/src/Generated/Admin/ConfigurationManagement/ConfigurationMonitors/ConfigurationMonitorsRequestBuilder.php new file mode 100644 index 00000000000..e4242a070f3 --- /dev/null +++ b/src/Generated/Admin/ConfigurationManagement/ConfigurationMonitors/ConfigurationMonitorsRequestBuilder.php @@ -0,0 +1,135 @@ +pathParameters, $this->requestAdapter); + } + + /** + * Provides operations to manage the configurationMonitors property of the microsoft.graph.configurationManagement entity. + * @param string $configurationMonitorId The unique identifier of configurationMonitor + * @return ConfigurationMonitorItemRequestBuilder + */ + public function byConfigurationMonitorId(string $configurationMonitorId): ConfigurationMonitorItemRequestBuilder { + $urlTplParams = $this->pathParameters; + $urlTplParams['configurationMonitor%2Did'] = $configurationMonitorId; + return new ConfigurationMonitorItemRequestBuilder($urlTplParams, $this->requestAdapter); + } + + /** + * Instantiates a new ConfigurationMonitorsRequestBuilder and sets the default values. + * @param array|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}/admin/configurationManagement/configurationMonitors{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Get a list of the configurationMonitor objects and their properties. + * @param ConfigurationMonitorsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + * @link https://learn.microsoft.com/graph/api/configurationmanagement-list-configurationmonitors?view=graph-rest-1.0 Find more info here + */ + public function get(?ConfigurationMonitorsRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [ConfigurationMonitorCollectionResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + } + + /** + * Create a new configurationMonitor object that runs periodically in the background at a scheduled frequency. You can create up to 30 configurationMonitor objects per tenant. Each monitor runs at a fixed interval of 6 hours and cannot be configured to run at any other frequency. An administrator can monitor up to 800 configuration resources per day per tenant across all monitors. + * @param ConfigurationMonitor $body The request body + * @param ConfigurationMonitorsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + * @link https://learn.microsoft.com/graph/api/configurationmanagement-post-configurationmonitors?view=graph-rest-1.0 Find more info here + */ + public function post(ConfigurationMonitor $body, ?ConfigurationMonitorsRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [ConfigurationMonitor::class, 'createFromDiscriminatorValue'], $errorMappings); + } + + /** + * Get a list of the configurationMonitor objects and their properties. + * @param ConfigurationMonitorsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?ConfigurationMonitorsRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->tryAddHeader('Accept', "application/json"); + return $requestInfo; + } + + /** + * Create a new configurationMonitor object that runs periodically in the background at a scheduled frequency. You can create up to 30 configurationMonitor objects per tenant. Each monitor runs at a fixed interval of 6 hours and cannot be configured to run at any other frequency. An administrator can monitor up to 800 configuration resources per day per tenant across all monitors. + * @param ConfigurationMonitor $body The request body + * @param ConfigurationMonitorsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPostRequestInformation(ConfigurationMonitor $body, ?ConfigurationMonitorsRequestBuilderPostRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::POST; + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->tryAddHeader('Accept', "application/json"); + $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); + return $requestInfo; + } + + /** + * 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 ConfigurationMonitorsRequestBuilder + */ + public function withUrl(string $rawUrl): ConfigurationMonitorsRequestBuilder { + return new ConfigurationMonitorsRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/Admin/ConfigurationManagement/ConfigurationMonitors/ConfigurationMonitorsRequestBuilderGetQueryParameters.php b/src/Generated/Admin/ConfigurationManagement/ConfigurationMonitors/ConfigurationMonitorsRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..747eaae2a84 --- /dev/null +++ b/src/Generated/Admin/ConfigurationManagement/ConfigurationMonitors/ConfigurationMonitorsRequestBuilderGetQueryParameters.php @@ -0,0 +1,82 @@ +|null $expand Expand related entities + */ + public ?array $expand = null; + + /** + * @QueryParameter("%24filter") + * @var string|null $filter Filter items by property values + */ + public ?string $filter = null; + + /** + * @QueryParameter("%24orderby") + * @var array|null $orderby Order items by property values + */ + public ?array $orderby = null; + + /** + * @QueryParameter("%24search") + * @var string|null $search Search items by search phrases + */ + public ?string $search = null; + + /** + * @QueryParameter("%24select") + * @var array|null $select Select properties to be returned + */ + public ?array $select = null; + + /** + * @QueryParameter("%24skip") + * @var int|null $skip Skip the first n items + */ + public ?int $skip = null; + + /** + * @QueryParameter("%24top") + * @var int|null $top Show only the first n items + */ + public ?int $top = null; + + /** + * Instantiates a new ConfigurationMonitorsRequestBuilderGetQueryParameters and sets the default values. + * @param bool|null $count Include count of items + * @param array|null $expand Expand related entities + * @param string|null $filter Filter items by property values + * @param array|null $orderby Order items by property values + * @param string|null $search Search items by search phrases + * @param array|null $select Select properties to be returned + * @param int|null $skip Skip the first n items + * @param int|null $top Show only the first n items + */ + 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) { + $this->count = $count; + $this->expand = $expand; + $this->filter = $filter; + $this->orderby = $orderby; + $this->search = $search; + $this->select = $select; + $this->skip = $skip; + $this->top = $top; + } + +} diff --git a/src/Generated/Admin/ConfigurationManagement/ConfigurationMonitors/ConfigurationMonitorsRequestBuilderGetRequestConfiguration.php b/src/Generated/Admin/ConfigurationManagement/ConfigurationMonitors/ConfigurationMonitorsRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..e2b8600e267 --- /dev/null +++ b/src/Generated/Admin/ConfigurationManagement/ConfigurationMonitors/ConfigurationMonitorsRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,45 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param ConfigurationMonitorsRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?ConfigurationMonitorsRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new ConfigurationMonitorsRequestBuilderGetQueryParameters. + * @param bool|null $count Include count of items + * @param array|null $expand Expand related entities + * @param string|null $filter Filter items by property values + * @param array|null $orderby Order items by property values + * @param string|null $search Search items by search phrases + * @param array|null $select Select properties to be returned + * @param int|null $skip Skip the first n items + * @param int|null $top Show only the first n items + * @return ConfigurationMonitorsRequestBuilderGetQueryParameters + */ + public static function createQueryParameters(?bool $count = null, ?array $expand = null, ?string $filter = null, ?array $orderby = null, ?string $search = null, ?array $select = null, ?int $skip = null, ?int $top = null): ConfigurationMonitorsRequestBuilderGetQueryParameters { + return new ConfigurationMonitorsRequestBuilderGetQueryParameters($count, $expand, $filter, $orderby, $search, $select, $skip, $top); + } + +} diff --git a/src/Generated/Admin/ConfigurationManagement/ConfigurationMonitors/ConfigurationMonitorsRequestBuilderPostRequestConfiguration.php b/src/Generated/Admin/ConfigurationManagement/ConfigurationMonitors/ConfigurationMonitorsRequestBuilderPostRequestConfiguration.php new file mode 100644 index 00000000000..decde89044c --- /dev/null +++ b/src/Generated/Admin/ConfigurationManagement/ConfigurationMonitors/ConfigurationMonitorsRequestBuilderPostRequestConfiguration.php @@ -0,0 +1,22 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + */ + public function __construct(?array $headers = null, ?array $options = null) { + parent::__construct($headers ?? [], $options ?? []); + } + +} diff --git a/src/Generated/Admin/ConfigurationManagement/ConfigurationMonitors/Count/CountRequestBuilder.php b/src/Generated/Admin/ConfigurationManagement/ConfigurationMonitors/Count/CountRequestBuilder.php new file mode 100644 index 00000000000..805915b2f59 --- /dev/null +++ b/src/Generated/Admin/ConfigurationManagement/ConfigurationMonitors/Count/CountRequestBuilder.php @@ -0,0 +1,78 @@ +|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}/admin/configurationManagement/configurationMonitors/$count{?%24filter,%24search}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Get the number of the resource + * @param CountRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + */ + public function get(?CountRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + /** @var Promise $result */ + $result = $this->requestAdapter->sendPrimitiveAsync($requestInfo, 'int', $errorMappings); + return $result; + } + + /** + * Get the number of the resource + * @param CountRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?CountRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); + return $requestInfo; + } + + /** + * 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 CountRequestBuilder + */ + public function withUrl(string $rawUrl): CountRequestBuilder { + return new CountRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/Admin/ConfigurationManagement/ConfigurationMonitors/Count/CountRequestBuilderGetQueryParameters.php b/src/Generated/Admin/ConfigurationManagement/ConfigurationMonitors/Count/CountRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..bde9dfd3d6f --- /dev/null +++ b/src/Generated/Admin/ConfigurationManagement/ConfigurationMonitors/Count/CountRequestBuilderGetQueryParameters.php @@ -0,0 +1,34 @@ +filter = $filter; + $this->search = $search; + } + +} diff --git a/src/Generated/Admin/ConfigurationManagement/ConfigurationMonitors/Count/CountRequestBuilderGetRequestConfiguration.php b/src/Generated/Admin/ConfigurationManagement/ConfigurationMonitors/Count/CountRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..c9ee9a6f1a0 --- /dev/null +++ b/src/Generated/Admin/ConfigurationManagement/ConfigurationMonitors/Count/CountRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,39 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param CountRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?CountRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new CountRequestBuilderGetQueryParameters. + * @param string|null $filter Filter items by property values + * @param string|null $search Search items by search phrases + * @return CountRequestBuilderGetQueryParameters + */ + public static function createQueryParameters(?string $filter = null, ?string $search = null): CountRequestBuilderGetQueryParameters { + return new CountRequestBuilderGetQueryParameters($filter, $search); + } + +} diff --git a/src/Generated/Admin/ConfigurationManagement/ConfigurationMonitors/Item/Baseline/BaselineRequestBuilder.php b/src/Generated/Admin/ConfigurationManagement/ConfigurationMonitors/Item/Baseline/BaselineRequestBuilder.php new file mode 100644 index 00000000000..877a9d53bc6 --- /dev/null +++ b/src/Generated/Admin/ConfigurationManagement/ConfigurationMonitors/Item/Baseline/BaselineRequestBuilder.php @@ -0,0 +1,145 @@ +|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}/admin/configurationManagement/configurationMonitors/{configurationMonitor%2Did}/baseline{?%24expand,%24select}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Delete navigation property baseline for admin + * @param BaselineRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + */ + public function delete(?BaselineRequestBuilderDeleteRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toDeleteRequestInformation($requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendNoContentAsync($requestInfo, $errorMappings); + } + + /** + * Read the properties and relationships of a configurationBaseline object that is attached to a specific monitor. + * @param BaselineRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + * @link https://learn.microsoft.com/graph/api/configurationbaseline-get?view=graph-rest-1.0 Find more info here + */ + public function get(?BaselineRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [ConfigurationBaseline::class, 'createFromDiscriminatorValue'], $errorMappings); + } + + /** + * Update the navigation property baseline in admin + * @param ConfigurationBaseline $body The request body + * @param BaselineRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + */ + public function patch(ConfigurationBaseline $body, ?BaselineRequestBuilderPatchRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPatchRequestInformation($body, $requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [ConfigurationBaseline::class, 'createFromDiscriminatorValue'], $errorMappings); + } + + /** + * Delete navigation property baseline for admin + * @param BaselineRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toDeleteRequestInformation(?BaselineRequestBuilderDeleteRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::DELETE; + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->tryAddHeader('Accept', "application/json"); + return $requestInfo; + } + + /** + * Read the properties and relationships of a configurationBaseline object that is attached to a specific monitor. + * @param BaselineRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?BaselineRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->tryAddHeader('Accept', "application/json"); + return $requestInfo; + } + + /** + * Update the navigation property baseline in admin + * @param ConfigurationBaseline $body The request body + * @param BaselineRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPatchRequestInformation(ConfigurationBaseline $body, ?BaselineRequestBuilderPatchRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::PATCH; + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->tryAddHeader('Accept', "application/json"); + $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); + return $requestInfo; + } + + /** + * 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 BaselineRequestBuilder + */ + public function withUrl(string $rawUrl): BaselineRequestBuilder { + return new BaselineRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/Admin/ConfigurationManagement/ConfigurationMonitors/Item/Baseline/BaselineRequestBuilderDeleteRequestConfiguration.php b/src/Generated/Admin/ConfigurationManagement/ConfigurationMonitors/Item/Baseline/BaselineRequestBuilderDeleteRequestConfiguration.php new file mode 100644 index 00000000000..8a1ca2e6b8b --- /dev/null +++ b/src/Generated/Admin/ConfigurationManagement/ConfigurationMonitors/Item/Baseline/BaselineRequestBuilderDeleteRequestConfiguration.php @@ -0,0 +1,22 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + */ + public function __construct(?array $headers = null, ?array $options = null) { + parent::__construct($headers ?? [], $options ?? []); + } + +} diff --git a/src/Generated/Admin/ConfigurationManagement/ConfigurationMonitors/Item/Baseline/BaselineRequestBuilderGetQueryParameters.php b/src/Generated/Admin/ConfigurationManagement/ConfigurationMonitors/Item/Baseline/BaselineRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..4181cbf5310 --- /dev/null +++ b/src/Generated/Admin/ConfigurationManagement/ConfigurationMonitors/Item/Baseline/BaselineRequestBuilderGetQueryParameters.php @@ -0,0 +1,34 @@ +|null $expand Expand related entities + */ + public ?array $expand = null; + + /** + * @QueryParameter("%24select") + * @var array|null $select Select properties to be returned + */ + public ?array $select = null; + + /** + * Instantiates a new BaselineRequestBuilderGetQueryParameters and sets the default values. + * @param array|null $expand Expand related entities + * @param array|null $select Select properties to be returned + */ + public function __construct(?array $expand = null, ?array $select = null) { + $this->expand = $expand; + $this->select = $select; + } + +} diff --git a/src/Generated/Admin/ConfigurationManagement/ConfigurationMonitors/Item/Baseline/BaselineRequestBuilderGetRequestConfiguration.php b/src/Generated/Admin/ConfigurationManagement/ConfigurationMonitors/Item/Baseline/BaselineRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..101ee57f494 --- /dev/null +++ b/src/Generated/Admin/ConfigurationManagement/ConfigurationMonitors/Item/Baseline/BaselineRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,39 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param BaselineRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?BaselineRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new BaselineRequestBuilderGetQueryParameters. + * @param array|null $expand Expand related entities + * @param array|null $select Select properties to be returned + * @return BaselineRequestBuilderGetQueryParameters + */ + public static function createQueryParameters(?array $expand = null, ?array $select = null): BaselineRequestBuilderGetQueryParameters { + return new BaselineRequestBuilderGetQueryParameters($expand, $select); + } + +} diff --git a/src/Generated/Admin/ConfigurationManagement/ConfigurationMonitors/Item/Baseline/BaselineRequestBuilderPatchRequestConfiguration.php b/src/Generated/Admin/ConfigurationManagement/ConfigurationMonitors/Item/Baseline/BaselineRequestBuilderPatchRequestConfiguration.php new file mode 100644 index 00000000000..26e377fdfdc --- /dev/null +++ b/src/Generated/Admin/ConfigurationManagement/ConfigurationMonitors/Item/Baseline/BaselineRequestBuilderPatchRequestConfiguration.php @@ -0,0 +1,22 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + */ + public function __construct(?array $headers = null, ?array $options = null) { + parent::__construct($headers ?? [], $options ?? []); + } + +} diff --git a/src/Generated/Admin/ConfigurationManagement/ConfigurationMonitors/Item/ConfigurationMonitorItemRequestBuilder.php b/src/Generated/Admin/ConfigurationManagement/ConfigurationMonitors/Item/ConfigurationMonitorItemRequestBuilder.php new file mode 100644 index 00000000000..b54e74f2864 --- /dev/null +++ b/src/Generated/Admin/ConfigurationManagement/ConfigurationMonitors/Item/ConfigurationMonitorItemRequestBuilder.php @@ -0,0 +1,155 @@ +pathParameters, $this->requestAdapter); + } + + /** + * Instantiates a new ConfigurationMonitorItemRequestBuilder and sets the default values. + * @param array|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}/admin/configurationManagement/configurationMonitors/{configurationMonitor%2Did}{?%24expand,%24select}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Delete a configurationMonitor object permanently. A deleted configurationMonitor can't be restored. + * @param ConfigurationMonitorItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + * @link https://learn.microsoft.com/graph/api/configurationmonitor-delete?view=graph-rest-1.0 Find more info here + */ + public function delete(?ConfigurationMonitorItemRequestBuilderDeleteRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toDeleteRequestInformation($requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendNoContentAsync($requestInfo, $errorMappings); + } + + /** + * Get the properties and relationships of a configurationMonitor object. + * @param ConfigurationMonitorItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + * @link https://learn.microsoft.com/graph/api/configurationmonitor-get?view=graph-rest-1.0 Find more info here + */ + public function get(?ConfigurationMonitorItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [ConfigurationMonitor::class, 'createFromDiscriminatorValue'], $errorMappings); + } + + /** + * Update the properties of a configurationMonitor object, including the monitor name, description, and baseline. + * @param ConfigurationMonitor $body The request body + * @param ConfigurationMonitorItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + * @link https://learn.microsoft.com/graph/api/configurationmonitor-update?view=graph-rest-1.0 Find more info here + */ + public function patch(ConfigurationMonitor $body, ?ConfigurationMonitorItemRequestBuilderPatchRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPatchRequestInformation($body, $requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [ConfigurationMonitor::class, 'createFromDiscriminatorValue'], $errorMappings); + } + + /** + * Delete a configurationMonitor object permanently. A deleted configurationMonitor can't be restored. + * @param ConfigurationMonitorItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toDeleteRequestInformation(?ConfigurationMonitorItemRequestBuilderDeleteRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::DELETE; + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->tryAddHeader('Accept', "application/json"); + return $requestInfo; + } + + /** + * Get the properties and relationships of a configurationMonitor object. + * @param ConfigurationMonitorItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?ConfigurationMonitorItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->tryAddHeader('Accept', "application/json"); + return $requestInfo; + } + + /** + * Update the properties of a configurationMonitor object, including the monitor name, description, and baseline. + * @param ConfigurationMonitor $body The request body + * @param ConfigurationMonitorItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPatchRequestInformation(ConfigurationMonitor $body, ?ConfigurationMonitorItemRequestBuilderPatchRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::PATCH; + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->tryAddHeader('Accept', "application/json"); + $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); + return $requestInfo; + } + + /** + * 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 ConfigurationMonitorItemRequestBuilder + */ + public function withUrl(string $rawUrl): ConfigurationMonitorItemRequestBuilder { + return new ConfigurationMonitorItemRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/Admin/ConfigurationManagement/ConfigurationMonitors/Item/ConfigurationMonitorItemRequestBuilderDeleteRequestConfiguration.php b/src/Generated/Admin/ConfigurationManagement/ConfigurationMonitors/Item/ConfigurationMonitorItemRequestBuilderDeleteRequestConfiguration.php new file mode 100644 index 00000000000..599bc9417ed --- /dev/null +++ b/src/Generated/Admin/ConfigurationManagement/ConfigurationMonitors/Item/ConfigurationMonitorItemRequestBuilderDeleteRequestConfiguration.php @@ -0,0 +1,22 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + */ + public function __construct(?array $headers = null, ?array $options = null) { + parent::__construct($headers ?? [], $options ?? []); + } + +} diff --git a/src/Generated/Admin/ConfigurationManagement/ConfigurationMonitors/Item/ConfigurationMonitorItemRequestBuilderGetQueryParameters.php b/src/Generated/Admin/ConfigurationManagement/ConfigurationMonitors/Item/ConfigurationMonitorItemRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..d5daa7fbba8 --- /dev/null +++ b/src/Generated/Admin/ConfigurationManagement/ConfigurationMonitors/Item/ConfigurationMonitorItemRequestBuilderGetQueryParameters.php @@ -0,0 +1,34 @@ +|null $expand Expand related entities + */ + public ?array $expand = null; + + /** + * @QueryParameter("%24select") + * @var array|null $select Select properties to be returned + */ + public ?array $select = null; + + /** + * Instantiates a new ConfigurationMonitorItemRequestBuilderGetQueryParameters and sets the default values. + * @param array|null $expand Expand related entities + * @param array|null $select Select properties to be returned + */ + public function __construct(?array $expand = null, ?array $select = null) { + $this->expand = $expand; + $this->select = $select; + } + +} diff --git a/src/Generated/Admin/ConfigurationManagement/ConfigurationMonitors/Item/ConfigurationMonitorItemRequestBuilderGetRequestConfiguration.php b/src/Generated/Admin/ConfigurationManagement/ConfigurationMonitors/Item/ConfigurationMonitorItemRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..1205372368e --- /dev/null +++ b/src/Generated/Admin/ConfigurationManagement/ConfigurationMonitors/Item/ConfigurationMonitorItemRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,39 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param ConfigurationMonitorItemRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?ConfigurationMonitorItemRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new ConfigurationMonitorItemRequestBuilderGetQueryParameters. + * @param array|null $expand Expand related entities + * @param array|null $select Select properties to be returned + * @return ConfigurationMonitorItemRequestBuilderGetQueryParameters + */ + public static function createQueryParameters(?array $expand = null, ?array $select = null): ConfigurationMonitorItemRequestBuilderGetQueryParameters { + return new ConfigurationMonitorItemRequestBuilderGetQueryParameters($expand, $select); + } + +} diff --git a/src/Generated/Admin/ConfigurationManagement/ConfigurationMonitors/Item/ConfigurationMonitorItemRequestBuilderPatchRequestConfiguration.php b/src/Generated/Admin/ConfigurationManagement/ConfigurationMonitors/Item/ConfigurationMonitorItemRequestBuilderPatchRequestConfiguration.php new file mode 100644 index 00000000000..bdfcbe8c0e5 --- /dev/null +++ b/src/Generated/Admin/ConfigurationManagement/ConfigurationMonitors/Item/ConfigurationMonitorItemRequestBuilderPatchRequestConfiguration.php @@ -0,0 +1,22 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + */ + public function __construct(?array $headers = null, ?array $options = null) { + parent::__construct($headers ?? [], $options ?? []); + } + +} diff --git a/src/Generated/Admin/ConfigurationManagement/ConfigurationSnapshotJobs/ConfigurationSnapshotJobsRequestBuilder.php b/src/Generated/Admin/ConfigurationManagement/ConfigurationSnapshotJobs/ConfigurationSnapshotJobsRequestBuilder.php new file mode 100644 index 00000000000..8263c4fc109 --- /dev/null +++ b/src/Generated/Admin/ConfigurationManagement/ConfigurationSnapshotJobs/ConfigurationSnapshotJobsRequestBuilder.php @@ -0,0 +1,134 @@ +pathParameters, $this->requestAdapter); + } + + /** + * Provides operations to manage the configurationSnapshotJobs property of the microsoft.graph.configurationManagement entity. + * @param string $configurationSnapshotJobId The unique identifier of configurationSnapshotJob + * @return ConfigurationSnapshotJobItemRequestBuilder + */ + public function byConfigurationSnapshotJobId(string $configurationSnapshotJobId): ConfigurationSnapshotJobItemRequestBuilder { + $urlTplParams = $this->pathParameters; + $urlTplParams['configurationSnapshotJob%2Did'] = $configurationSnapshotJobId; + return new ConfigurationSnapshotJobItemRequestBuilder($urlTplParams, $this->requestAdapter); + } + + /** + * Instantiates a new ConfigurationSnapshotJobsRequestBuilder and sets the default values. + * @param array|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}/admin/configurationManagement/configurationSnapshotJobs{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Get a list of the configurationSnapshotJob objects and their properties. + * @param ConfigurationSnapshotJobsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + * @link https://learn.microsoft.com/graph/api/configurationmanagement-list-configurationsnapshotjobs?view=graph-rest-1.0 Find more info here + */ + public function get(?ConfigurationSnapshotJobsRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [ConfigurationSnapshotJobCollectionResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + } + + /** + * Create new navigation property to configurationSnapshotJobs for admin + * @param ConfigurationSnapshotJob $body The request body + * @param ConfigurationSnapshotJobsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + */ + public function post(ConfigurationSnapshotJob $body, ?ConfigurationSnapshotJobsRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [ConfigurationSnapshotJob::class, 'createFromDiscriminatorValue'], $errorMappings); + } + + /** + * Get a list of the configurationSnapshotJob objects and their properties. + * @param ConfigurationSnapshotJobsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?ConfigurationSnapshotJobsRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->tryAddHeader('Accept', "application/json"); + return $requestInfo; + } + + /** + * Create new navigation property to configurationSnapshotJobs for admin + * @param ConfigurationSnapshotJob $body The request body + * @param ConfigurationSnapshotJobsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPostRequestInformation(ConfigurationSnapshotJob $body, ?ConfigurationSnapshotJobsRequestBuilderPostRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::POST; + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->tryAddHeader('Accept', "application/json"); + $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); + return $requestInfo; + } + + /** + * 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 ConfigurationSnapshotJobsRequestBuilder + */ + public function withUrl(string $rawUrl): ConfigurationSnapshotJobsRequestBuilder { + return new ConfigurationSnapshotJobsRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/Admin/ConfigurationManagement/ConfigurationSnapshotJobs/ConfigurationSnapshotJobsRequestBuilderGetQueryParameters.php b/src/Generated/Admin/ConfigurationManagement/ConfigurationSnapshotJobs/ConfigurationSnapshotJobsRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..11268e354b5 --- /dev/null +++ b/src/Generated/Admin/ConfigurationManagement/ConfigurationSnapshotJobs/ConfigurationSnapshotJobsRequestBuilderGetQueryParameters.php @@ -0,0 +1,82 @@ +|null $expand Expand related entities + */ + public ?array $expand = null; + + /** + * @QueryParameter("%24filter") + * @var string|null $filter Filter items by property values + */ + public ?string $filter = null; + + /** + * @QueryParameter("%24orderby") + * @var array|null $orderby Order items by property values + */ + public ?array $orderby = null; + + /** + * @QueryParameter("%24search") + * @var string|null $search Search items by search phrases + */ + public ?string $search = null; + + /** + * @QueryParameter("%24select") + * @var array|null $select Select properties to be returned + */ + public ?array $select = null; + + /** + * @QueryParameter("%24skip") + * @var int|null $skip Skip the first n items + */ + public ?int $skip = null; + + /** + * @QueryParameter("%24top") + * @var int|null $top Show only the first n items + */ + public ?int $top = null; + + /** + * Instantiates a new ConfigurationSnapshotJobsRequestBuilderGetQueryParameters and sets the default values. + * @param bool|null $count Include count of items + * @param array|null $expand Expand related entities + * @param string|null $filter Filter items by property values + * @param array|null $orderby Order items by property values + * @param string|null $search Search items by search phrases + * @param array|null $select Select properties to be returned + * @param int|null $skip Skip the first n items + * @param int|null $top Show only the first n items + */ + 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) { + $this->count = $count; + $this->expand = $expand; + $this->filter = $filter; + $this->orderby = $orderby; + $this->search = $search; + $this->select = $select; + $this->skip = $skip; + $this->top = $top; + } + +} diff --git a/src/Generated/Admin/ConfigurationManagement/ConfigurationSnapshotJobs/ConfigurationSnapshotJobsRequestBuilderGetRequestConfiguration.php b/src/Generated/Admin/ConfigurationManagement/ConfigurationSnapshotJobs/ConfigurationSnapshotJobsRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..521cecdafa8 --- /dev/null +++ b/src/Generated/Admin/ConfigurationManagement/ConfigurationSnapshotJobs/ConfigurationSnapshotJobsRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,45 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param ConfigurationSnapshotJobsRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?ConfigurationSnapshotJobsRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new ConfigurationSnapshotJobsRequestBuilderGetQueryParameters. + * @param bool|null $count Include count of items + * @param array|null $expand Expand related entities + * @param string|null $filter Filter items by property values + * @param array|null $orderby Order items by property values + * @param string|null $search Search items by search phrases + * @param array|null $select Select properties to be returned + * @param int|null $skip Skip the first n items + * @param int|null $top Show only the first n items + * @return ConfigurationSnapshotJobsRequestBuilderGetQueryParameters + */ + public static function createQueryParameters(?bool $count = null, ?array $expand = null, ?string $filter = null, ?array $orderby = null, ?string $search = null, ?array $select = null, ?int $skip = null, ?int $top = null): ConfigurationSnapshotJobsRequestBuilderGetQueryParameters { + return new ConfigurationSnapshotJobsRequestBuilderGetQueryParameters($count, $expand, $filter, $orderby, $search, $select, $skip, $top); + } + +} diff --git a/src/Generated/Admin/ConfigurationManagement/ConfigurationSnapshotJobs/ConfigurationSnapshotJobsRequestBuilderPostRequestConfiguration.php b/src/Generated/Admin/ConfigurationManagement/ConfigurationSnapshotJobs/ConfigurationSnapshotJobsRequestBuilderPostRequestConfiguration.php new file mode 100644 index 00000000000..e750038b5ea --- /dev/null +++ b/src/Generated/Admin/ConfigurationManagement/ConfigurationSnapshotJobs/ConfigurationSnapshotJobsRequestBuilderPostRequestConfiguration.php @@ -0,0 +1,22 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + */ + public function __construct(?array $headers = null, ?array $options = null) { + parent::__construct($headers ?? [], $options ?? []); + } + +} diff --git a/src/Generated/Admin/ConfigurationManagement/ConfigurationSnapshotJobs/Count/CountRequestBuilder.php b/src/Generated/Admin/ConfigurationManagement/ConfigurationSnapshotJobs/Count/CountRequestBuilder.php new file mode 100644 index 00000000000..9a86f460ed2 --- /dev/null +++ b/src/Generated/Admin/ConfigurationManagement/ConfigurationSnapshotJobs/Count/CountRequestBuilder.php @@ -0,0 +1,78 @@ +|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}/admin/configurationManagement/configurationSnapshotJobs/$count{?%24filter,%24search}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Get the number of the resource + * @param CountRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + */ + public function get(?CountRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + /** @var Promise $result */ + $result = $this->requestAdapter->sendPrimitiveAsync($requestInfo, 'int', $errorMappings); + return $result; + } + + /** + * Get the number of the resource + * @param CountRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?CountRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); + return $requestInfo; + } + + /** + * 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 CountRequestBuilder + */ + public function withUrl(string $rawUrl): CountRequestBuilder { + return new CountRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/Admin/ConfigurationManagement/ConfigurationSnapshotJobs/Count/CountRequestBuilderGetQueryParameters.php b/src/Generated/Admin/ConfigurationManagement/ConfigurationSnapshotJobs/Count/CountRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..91eba21ed7a --- /dev/null +++ b/src/Generated/Admin/ConfigurationManagement/ConfigurationSnapshotJobs/Count/CountRequestBuilderGetQueryParameters.php @@ -0,0 +1,34 @@ +filter = $filter; + $this->search = $search; + } + +} diff --git a/src/Generated/Admin/ConfigurationManagement/ConfigurationSnapshotJobs/Count/CountRequestBuilderGetRequestConfiguration.php b/src/Generated/Admin/ConfigurationManagement/ConfigurationSnapshotJobs/Count/CountRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..9770149e47b --- /dev/null +++ b/src/Generated/Admin/ConfigurationManagement/ConfigurationSnapshotJobs/Count/CountRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,39 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param CountRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?CountRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new CountRequestBuilderGetQueryParameters. + * @param string|null $filter Filter items by property values + * @param string|null $search Search items by search phrases + * @return CountRequestBuilderGetQueryParameters + */ + public static function createQueryParameters(?string $filter = null, ?string $search = null): CountRequestBuilderGetQueryParameters { + return new CountRequestBuilderGetQueryParameters($filter, $search); + } + +} diff --git a/src/Generated/Admin/ConfigurationManagement/ConfigurationSnapshotJobs/Item/ConfigurationSnapshotJobItemRequestBuilder.php b/src/Generated/Admin/ConfigurationManagement/ConfigurationSnapshotJobs/Item/ConfigurationSnapshotJobItemRequestBuilder.php new file mode 100644 index 00000000000..d4019714814 --- /dev/null +++ b/src/Generated/Admin/ConfigurationManagement/ConfigurationSnapshotJobs/Item/ConfigurationSnapshotJobItemRequestBuilder.php @@ -0,0 +1,146 @@ +|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}/admin/configurationManagement/configurationSnapshotJobs/{configurationSnapshotJob%2Did}{?%24expand,%24select}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Delete a configurationSnapshotJob object. + * @param ConfigurationSnapshotJobItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + * @link https://learn.microsoft.com/graph/api/configurationsnapshotjob-delete?view=graph-rest-1.0 Find more info here + */ + public function delete(?ConfigurationSnapshotJobItemRequestBuilderDeleteRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toDeleteRequestInformation($requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendNoContentAsync($requestInfo, $errorMappings); + } + + /** + * Read the properties and relationships of a configurationSnapshotJob object. + * @param ConfigurationSnapshotJobItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + * @link https://learn.microsoft.com/graph/api/configurationsnapshotjob-get?view=graph-rest-1.0 Find more info here + */ + public function get(?ConfigurationSnapshotJobItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [ConfigurationSnapshotJob::class, 'createFromDiscriminatorValue'], $errorMappings); + } + + /** + * Update the navigation property configurationSnapshotJobs in admin + * @param ConfigurationSnapshotJob $body The request body + * @param ConfigurationSnapshotJobItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + */ + public function patch(ConfigurationSnapshotJob $body, ?ConfigurationSnapshotJobItemRequestBuilderPatchRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPatchRequestInformation($body, $requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [ConfigurationSnapshotJob::class, 'createFromDiscriminatorValue'], $errorMappings); + } + + /** + * Delete a configurationSnapshotJob object. + * @param ConfigurationSnapshotJobItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toDeleteRequestInformation(?ConfigurationSnapshotJobItemRequestBuilderDeleteRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::DELETE; + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->tryAddHeader('Accept', "application/json"); + return $requestInfo; + } + + /** + * Read the properties and relationships of a configurationSnapshotJob object. + * @param ConfigurationSnapshotJobItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?ConfigurationSnapshotJobItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->tryAddHeader('Accept', "application/json"); + return $requestInfo; + } + + /** + * Update the navigation property configurationSnapshotJobs in admin + * @param ConfigurationSnapshotJob $body The request body + * @param ConfigurationSnapshotJobItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPatchRequestInformation(ConfigurationSnapshotJob $body, ?ConfigurationSnapshotJobItemRequestBuilderPatchRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::PATCH; + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->tryAddHeader('Accept', "application/json"); + $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); + return $requestInfo; + } + + /** + * 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 ConfigurationSnapshotJobItemRequestBuilder + */ + public function withUrl(string $rawUrl): ConfigurationSnapshotJobItemRequestBuilder { + return new ConfigurationSnapshotJobItemRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/Admin/ConfigurationManagement/ConfigurationSnapshotJobs/Item/ConfigurationSnapshotJobItemRequestBuilderDeleteRequestConfiguration.php b/src/Generated/Admin/ConfigurationManagement/ConfigurationSnapshotJobs/Item/ConfigurationSnapshotJobItemRequestBuilderDeleteRequestConfiguration.php new file mode 100644 index 00000000000..8fe3518317d --- /dev/null +++ b/src/Generated/Admin/ConfigurationManagement/ConfigurationSnapshotJobs/Item/ConfigurationSnapshotJobItemRequestBuilderDeleteRequestConfiguration.php @@ -0,0 +1,22 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + */ + public function __construct(?array $headers = null, ?array $options = null) { + parent::__construct($headers ?? [], $options ?? []); + } + +} diff --git a/src/Generated/Admin/ConfigurationManagement/ConfigurationSnapshotJobs/Item/ConfigurationSnapshotJobItemRequestBuilderGetQueryParameters.php b/src/Generated/Admin/ConfigurationManagement/ConfigurationSnapshotJobs/Item/ConfigurationSnapshotJobItemRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..d519ada96b2 --- /dev/null +++ b/src/Generated/Admin/ConfigurationManagement/ConfigurationSnapshotJobs/Item/ConfigurationSnapshotJobItemRequestBuilderGetQueryParameters.php @@ -0,0 +1,34 @@ +|null $expand Expand related entities + */ + public ?array $expand = null; + + /** + * @QueryParameter("%24select") + * @var array|null $select Select properties to be returned + */ + public ?array $select = null; + + /** + * Instantiates a new ConfigurationSnapshotJobItemRequestBuilderGetQueryParameters and sets the default values. + * @param array|null $expand Expand related entities + * @param array|null $select Select properties to be returned + */ + public function __construct(?array $expand = null, ?array $select = null) { + $this->expand = $expand; + $this->select = $select; + } + +} diff --git a/src/Generated/Admin/ConfigurationManagement/ConfigurationSnapshotJobs/Item/ConfigurationSnapshotJobItemRequestBuilderGetRequestConfiguration.php b/src/Generated/Admin/ConfigurationManagement/ConfigurationSnapshotJobs/Item/ConfigurationSnapshotJobItemRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..59a40701749 --- /dev/null +++ b/src/Generated/Admin/ConfigurationManagement/ConfigurationSnapshotJobs/Item/ConfigurationSnapshotJobItemRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,39 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param ConfigurationSnapshotJobItemRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?ConfigurationSnapshotJobItemRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new ConfigurationSnapshotJobItemRequestBuilderGetQueryParameters. + * @param array|null $expand Expand related entities + * @param array|null $select Select properties to be returned + * @return ConfigurationSnapshotJobItemRequestBuilderGetQueryParameters + */ + public static function createQueryParameters(?array $expand = null, ?array $select = null): ConfigurationSnapshotJobItemRequestBuilderGetQueryParameters { + return new ConfigurationSnapshotJobItemRequestBuilderGetQueryParameters($expand, $select); + } + +} diff --git a/src/Generated/Admin/ConfigurationManagement/ConfigurationSnapshotJobs/Item/ConfigurationSnapshotJobItemRequestBuilderPatchRequestConfiguration.php b/src/Generated/Admin/ConfigurationManagement/ConfigurationSnapshotJobs/Item/ConfigurationSnapshotJobItemRequestBuilderPatchRequestConfiguration.php new file mode 100644 index 00000000000..9f780c9ce41 --- /dev/null +++ b/src/Generated/Admin/ConfigurationManagement/ConfigurationSnapshotJobs/Item/ConfigurationSnapshotJobItemRequestBuilderPatchRequestConfiguration.php @@ -0,0 +1,22 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + */ + public function __construct(?array $headers = null, ?array $options = null) { + parent::__construct($headers ?? [], $options ?? []); + } + +} diff --git a/src/Generated/Admin/ConfigurationManagement/ConfigurationSnapshots/ConfigurationSnapshotsRequestBuilder.php b/src/Generated/Admin/ConfigurationManagement/ConfigurationSnapshots/ConfigurationSnapshotsRequestBuilder.php new file mode 100644 index 00000000000..982c4cc849e --- /dev/null +++ b/src/Generated/Admin/ConfigurationManagement/ConfigurationSnapshots/ConfigurationSnapshotsRequestBuilder.php @@ -0,0 +1,134 @@ +pathParameters, $this->requestAdapter); + } + + /** + * Provides operations to manage the configurationSnapshots property of the microsoft.graph.configurationManagement entity. + * @param string $configurationBaselineId The unique identifier of configurationBaseline + * @return ConfigurationBaselineItemRequestBuilder + */ + public function byConfigurationBaselineId(string $configurationBaselineId): ConfigurationBaselineItemRequestBuilder { + $urlTplParams = $this->pathParameters; + $urlTplParams['configurationBaseline%2Did'] = $configurationBaselineId; + return new ConfigurationBaselineItemRequestBuilder($urlTplParams, $this->requestAdapter); + } + + /** + * Instantiates a new ConfigurationSnapshotsRequestBuilder and sets the default values. + * @param array|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}/admin/configurationManagement/configurationSnapshots{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Get a list of configurationBaseline objects that represent configuration snapshots and their properties. + * @param ConfigurationSnapshotsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + * @link https://learn.microsoft.com/graph/api/configurationmanagement-list-configurationsnapshots?view=graph-rest-1.0 Find more info here + */ + public function get(?ConfigurationSnapshotsRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [ConfigurationBaselineCollectionResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + } + + /** + * Create new navigation property to configurationSnapshots for admin + * @param ConfigurationBaseline $body The request body + * @param ConfigurationSnapshotsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + */ + public function post(ConfigurationBaseline $body, ?ConfigurationSnapshotsRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [ConfigurationBaseline::class, 'createFromDiscriminatorValue'], $errorMappings); + } + + /** + * Get a list of configurationBaseline objects that represent configuration snapshots and their properties. + * @param ConfigurationSnapshotsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?ConfigurationSnapshotsRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->tryAddHeader('Accept', "application/json"); + return $requestInfo; + } + + /** + * Create new navigation property to configurationSnapshots for admin + * @param ConfigurationBaseline $body The request body + * @param ConfigurationSnapshotsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPostRequestInformation(ConfigurationBaseline $body, ?ConfigurationSnapshotsRequestBuilderPostRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::POST; + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->tryAddHeader('Accept', "application/json"); + $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); + return $requestInfo; + } + + /** + * 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 ConfigurationSnapshotsRequestBuilder + */ + public function withUrl(string $rawUrl): ConfigurationSnapshotsRequestBuilder { + return new ConfigurationSnapshotsRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/Admin/ConfigurationManagement/ConfigurationSnapshots/ConfigurationSnapshotsRequestBuilderGetQueryParameters.php b/src/Generated/Admin/ConfigurationManagement/ConfigurationSnapshots/ConfigurationSnapshotsRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..db8edaf49c6 --- /dev/null +++ b/src/Generated/Admin/ConfigurationManagement/ConfigurationSnapshots/ConfigurationSnapshotsRequestBuilderGetQueryParameters.php @@ -0,0 +1,82 @@ +|null $expand Expand related entities + */ + public ?array $expand = null; + + /** + * @QueryParameter("%24filter") + * @var string|null $filter Filter items by property values + */ + public ?string $filter = null; + + /** + * @QueryParameter("%24orderby") + * @var array|null $orderby Order items by property values + */ + public ?array $orderby = null; + + /** + * @QueryParameter("%24search") + * @var string|null $search Search items by search phrases + */ + public ?string $search = null; + + /** + * @QueryParameter("%24select") + * @var array|null $select Select properties to be returned + */ + public ?array $select = null; + + /** + * @QueryParameter("%24skip") + * @var int|null $skip Skip the first n items + */ + public ?int $skip = null; + + /** + * @QueryParameter("%24top") + * @var int|null $top Show only the first n items + */ + public ?int $top = null; + + /** + * Instantiates a new ConfigurationSnapshotsRequestBuilderGetQueryParameters and sets the default values. + * @param bool|null $count Include count of items + * @param array|null $expand Expand related entities + * @param string|null $filter Filter items by property values + * @param array|null $orderby Order items by property values + * @param string|null $search Search items by search phrases + * @param array|null $select Select properties to be returned + * @param int|null $skip Skip the first n items + * @param int|null $top Show only the first n items + */ + 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) { + $this->count = $count; + $this->expand = $expand; + $this->filter = $filter; + $this->orderby = $orderby; + $this->search = $search; + $this->select = $select; + $this->skip = $skip; + $this->top = $top; + } + +} diff --git a/src/Generated/Admin/ConfigurationManagement/ConfigurationSnapshots/ConfigurationSnapshotsRequestBuilderGetRequestConfiguration.php b/src/Generated/Admin/ConfigurationManagement/ConfigurationSnapshots/ConfigurationSnapshotsRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..8adce41ba97 --- /dev/null +++ b/src/Generated/Admin/ConfigurationManagement/ConfigurationSnapshots/ConfigurationSnapshotsRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,45 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param ConfigurationSnapshotsRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?ConfigurationSnapshotsRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new ConfigurationSnapshotsRequestBuilderGetQueryParameters. + * @param bool|null $count Include count of items + * @param array|null $expand Expand related entities + * @param string|null $filter Filter items by property values + * @param array|null $orderby Order items by property values + * @param string|null $search Search items by search phrases + * @param array|null $select Select properties to be returned + * @param int|null $skip Skip the first n items + * @param int|null $top Show only the first n items + * @return ConfigurationSnapshotsRequestBuilderGetQueryParameters + */ + public static function createQueryParameters(?bool $count = null, ?array $expand = null, ?string $filter = null, ?array $orderby = null, ?string $search = null, ?array $select = null, ?int $skip = null, ?int $top = null): ConfigurationSnapshotsRequestBuilderGetQueryParameters { + return new ConfigurationSnapshotsRequestBuilderGetQueryParameters($count, $expand, $filter, $orderby, $search, $select, $skip, $top); + } + +} diff --git a/src/Generated/Admin/ConfigurationManagement/ConfigurationSnapshots/ConfigurationSnapshotsRequestBuilderPostRequestConfiguration.php b/src/Generated/Admin/ConfigurationManagement/ConfigurationSnapshots/ConfigurationSnapshotsRequestBuilderPostRequestConfiguration.php new file mode 100644 index 00000000000..ce87913ae76 --- /dev/null +++ b/src/Generated/Admin/ConfigurationManagement/ConfigurationSnapshots/ConfigurationSnapshotsRequestBuilderPostRequestConfiguration.php @@ -0,0 +1,22 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + */ + public function __construct(?array $headers = null, ?array $options = null) { + parent::__construct($headers ?? [], $options ?? []); + } + +} diff --git a/src/Generated/Admin/ConfigurationManagement/ConfigurationSnapshots/Count/CountRequestBuilder.php b/src/Generated/Admin/ConfigurationManagement/ConfigurationSnapshots/Count/CountRequestBuilder.php new file mode 100644 index 00000000000..11b6d6f5e65 --- /dev/null +++ b/src/Generated/Admin/ConfigurationManagement/ConfigurationSnapshots/Count/CountRequestBuilder.php @@ -0,0 +1,78 @@ +|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}/admin/configurationManagement/configurationSnapshots/$count{?%24filter,%24search}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Get the number of the resource + * @param CountRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + */ + public function get(?CountRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + /** @var Promise $result */ + $result = $this->requestAdapter->sendPrimitiveAsync($requestInfo, 'int', $errorMappings); + return $result; + } + + /** + * Get the number of the resource + * @param CountRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?CountRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); + return $requestInfo; + } + + /** + * 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 CountRequestBuilder + */ + public function withUrl(string $rawUrl): CountRequestBuilder { + return new CountRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/Admin/ConfigurationManagement/ConfigurationSnapshots/Count/CountRequestBuilderGetQueryParameters.php b/src/Generated/Admin/ConfigurationManagement/ConfigurationSnapshots/Count/CountRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..05bd24338cb --- /dev/null +++ b/src/Generated/Admin/ConfigurationManagement/ConfigurationSnapshots/Count/CountRequestBuilderGetQueryParameters.php @@ -0,0 +1,34 @@ +filter = $filter; + $this->search = $search; + } + +} diff --git a/src/Generated/Admin/ConfigurationManagement/ConfigurationSnapshots/Count/CountRequestBuilderGetRequestConfiguration.php b/src/Generated/Admin/ConfigurationManagement/ConfigurationSnapshots/Count/CountRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..cb0ea550a90 --- /dev/null +++ b/src/Generated/Admin/ConfigurationManagement/ConfigurationSnapshots/Count/CountRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,39 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param CountRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?CountRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new CountRequestBuilderGetQueryParameters. + * @param string|null $filter Filter items by property values + * @param string|null $search Search items by search phrases + * @return CountRequestBuilderGetQueryParameters + */ + public static function createQueryParameters(?string $filter = null, ?string $search = null): CountRequestBuilderGetQueryParameters { + return new CountRequestBuilderGetQueryParameters($filter, $search); + } + +} diff --git a/src/Generated/Admin/ConfigurationManagement/ConfigurationSnapshots/Item/ConfigurationBaselineItemRequestBuilder.php b/src/Generated/Admin/ConfigurationManagement/ConfigurationSnapshots/Item/ConfigurationBaselineItemRequestBuilder.php new file mode 100644 index 00000000000..15725589dca --- /dev/null +++ b/src/Generated/Admin/ConfigurationManagement/ConfigurationSnapshots/Item/ConfigurationBaselineItemRequestBuilder.php @@ -0,0 +1,144 @@ +|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}/admin/configurationManagement/configurationSnapshots/{configurationBaseline%2Did}{?%24expand,%24select}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Delete navigation property configurationSnapshots for admin + * @param ConfigurationBaselineItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + */ + public function delete(?ConfigurationBaselineItemRequestBuilderDeleteRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toDeleteRequestInformation($requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendNoContentAsync($requestInfo, $errorMappings); + } + + /** + * A container for configuration snapshot baselines. + * @param ConfigurationBaselineItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + */ + public function get(?ConfigurationBaselineItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [ConfigurationBaseline::class, 'createFromDiscriminatorValue'], $errorMappings); + } + + /** + * Update the navigation property configurationSnapshots in admin + * @param ConfigurationBaseline $body The request body + * @param ConfigurationBaselineItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + */ + public function patch(ConfigurationBaseline $body, ?ConfigurationBaselineItemRequestBuilderPatchRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPatchRequestInformation($body, $requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [ConfigurationBaseline::class, 'createFromDiscriminatorValue'], $errorMappings); + } + + /** + * Delete navigation property configurationSnapshots for admin + * @param ConfigurationBaselineItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toDeleteRequestInformation(?ConfigurationBaselineItemRequestBuilderDeleteRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::DELETE; + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->tryAddHeader('Accept', "application/json"); + return $requestInfo; + } + + /** + * A container for configuration snapshot baselines. + * @param ConfigurationBaselineItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?ConfigurationBaselineItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->tryAddHeader('Accept', "application/json"); + return $requestInfo; + } + + /** + * Update the navigation property configurationSnapshots in admin + * @param ConfigurationBaseline $body The request body + * @param ConfigurationBaselineItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPatchRequestInformation(ConfigurationBaseline $body, ?ConfigurationBaselineItemRequestBuilderPatchRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::PATCH; + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->tryAddHeader('Accept', "application/json"); + $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); + return $requestInfo; + } + + /** + * 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 ConfigurationBaselineItemRequestBuilder + */ + public function withUrl(string $rawUrl): ConfigurationBaselineItemRequestBuilder { + return new ConfigurationBaselineItemRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/Admin/ConfigurationManagement/ConfigurationSnapshots/Item/ConfigurationBaselineItemRequestBuilderDeleteRequestConfiguration.php b/src/Generated/Admin/ConfigurationManagement/ConfigurationSnapshots/Item/ConfigurationBaselineItemRequestBuilderDeleteRequestConfiguration.php new file mode 100644 index 00000000000..ee33c8e53de --- /dev/null +++ b/src/Generated/Admin/ConfigurationManagement/ConfigurationSnapshots/Item/ConfigurationBaselineItemRequestBuilderDeleteRequestConfiguration.php @@ -0,0 +1,22 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + */ + public function __construct(?array $headers = null, ?array $options = null) { + parent::__construct($headers ?? [], $options ?? []); + } + +} diff --git a/src/Generated/Admin/ConfigurationManagement/ConfigurationSnapshots/Item/ConfigurationBaselineItemRequestBuilderGetQueryParameters.php b/src/Generated/Admin/ConfigurationManagement/ConfigurationSnapshots/Item/ConfigurationBaselineItemRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..c9f6c458d43 --- /dev/null +++ b/src/Generated/Admin/ConfigurationManagement/ConfigurationSnapshots/Item/ConfigurationBaselineItemRequestBuilderGetQueryParameters.php @@ -0,0 +1,34 @@ +|null $expand Expand related entities + */ + public ?array $expand = null; + + /** + * @QueryParameter("%24select") + * @var array|null $select Select properties to be returned + */ + public ?array $select = null; + + /** + * Instantiates a new ConfigurationBaselineItemRequestBuilderGetQueryParameters and sets the default values. + * @param array|null $expand Expand related entities + * @param array|null $select Select properties to be returned + */ + public function __construct(?array $expand = null, ?array $select = null) { + $this->expand = $expand; + $this->select = $select; + } + +} diff --git a/src/Generated/Admin/ConfigurationManagement/ConfigurationSnapshots/Item/ConfigurationBaselineItemRequestBuilderGetRequestConfiguration.php b/src/Generated/Admin/ConfigurationManagement/ConfigurationSnapshots/Item/ConfigurationBaselineItemRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..c41a2248486 --- /dev/null +++ b/src/Generated/Admin/ConfigurationManagement/ConfigurationSnapshots/Item/ConfigurationBaselineItemRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,39 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param ConfigurationBaselineItemRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?ConfigurationBaselineItemRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new ConfigurationBaselineItemRequestBuilderGetQueryParameters. + * @param array|null $expand Expand related entities + * @param array|null $select Select properties to be returned + * @return ConfigurationBaselineItemRequestBuilderGetQueryParameters + */ + public static function createQueryParameters(?array $expand = null, ?array $select = null): ConfigurationBaselineItemRequestBuilderGetQueryParameters { + return new ConfigurationBaselineItemRequestBuilderGetQueryParameters($expand, $select); + } + +} diff --git a/src/Generated/Admin/ConfigurationManagement/ConfigurationSnapshots/Item/ConfigurationBaselineItemRequestBuilderPatchRequestConfiguration.php b/src/Generated/Admin/ConfigurationManagement/ConfigurationSnapshots/Item/ConfigurationBaselineItemRequestBuilderPatchRequestConfiguration.php new file mode 100644 index 00000000000..6d3b6ac5287 --- /dev/null +++ b/src/Generated/Admin/ConfigurationManagement/ConfigurationSnapshots/Item/ConfigurationBaselineItemRequestBuilderPatchRequestConfiguration.php @@ -0,0 +1,22 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + */ + public function __construct(?array $headers = null, ?array $options = null) { + parent::__construct($headers ?? [], $options ?? []); + } + +} diff --git a/src/Generated/Admin/Exchange/ExchangeRequestBuilder.php b/src/Generated/Admin/Exchange/ExchangeRequestBuilder.php index 8595f8dfd2e..d9acfb80b48 100644 --- a/src/Generated/Admin/Exchange/ExchangeRequestBuilder.php +++ b/src/Generated/Admin/Exchange/ExchangeRequestBuilder.php @@ -4,6 +4,7 @@ use Exception; use Http\Promise\Promise; +use Microsoft\Graph\Generated\Admin\Exchange\Mailboxes\MailboxesRequestBuilder; use Microsoft\Graph\Generated\Admin\Exchange\Tracing\TracingRequestBuilder; use Microsoft\Graph\Generated\Models\ExchangeAdmin; use Microsoft\Graph\Generated\Models\ODataErrors\ODataError; @@ -17,6 +18,13 @@ */ class ExchangeRequestBuilder extends BaseRequestBuilder { + /** + * 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 tracing property of the microsoft.graph.exchangeAdmin entity. */ diff --git a/src/Generated/Admin/Exchange/Mailboxes/Count/CountRequestBuilder.php b/src/Generated/Admin/Exchange/Mailboxes/Count/CountRequestBuilder.php new file mode 100644 index 00000000000..bc75e98ee9b --- /dev/null +++ b/src/Generated/Admin/Exchange/Mailboxes/Count/CountRequestBuilder.php @@ -0,0 +1,78 @@ +|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}/admin/exchange/mailboxes/$count{?%24filter,%24search}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Get the number of the resource + * @param CountRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + */ + public function get(?CountRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + /** @var Promise $result */ + $result = $this->requestAdapter->sendPrimitiveAsync($requestInfo, 'int', $errorMappings); + return $result; + } + + /** + * Get the number of the resource + * @param CountRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?CountRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); + return $requestInfo; + } + + /** + * 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 CountRequestBuilder + */ + public function withUrl(string $rawUrl): CountRequestBuilder { + return new CountRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/Admin/Exchange/Mailboxes/Count/CountRequestBuilderGetQueryParameters.php b/src/Generated/Admin/Exchange/Mailboxes/Count/CountRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..8b8067d14b0 --- /dev/null +++ b/src/Generated/Admin/Exchange/Mailboxes/Count/CountRequestBuilderGetQueryParameters.php @@ -0,0 +1,34 @@ +filter = $filter; + $this->search = $search; + } + +} diff --git a/src/Generated/Admin/Exchange/Mailboxes/Count/CountRequestBuilderGetRequestConfiguration.php b/src/Generated/Admin/Exchange/Mailboxes/Count/CountRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..bc79cd77223 --- /dev/null +++ b/src/Generated/Admin/Exchange/Mailboxes/Count/CountRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,39 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param CountRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?CountRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new CountRequestBuilderGetQueryParameters. + * @param string|null $filter Filter items by property values + * @param string|null $search Search items by search phrases + * @return CountRequestBuilderGetQueryParameters + */ + public static function createQueryParameters(?string $filter = null, ?string $search = null): CountRequestBuilderGetQueryParameters { + return new CountRequestBuilderGetQueryParameters($filter, $search); + } + +} diff --git a/src/Generated/Admin/Exchange/Mailboxes/Item/CreateImportSession/CreateImportSessionRequestBuilder.php b/src/Generated/Admin/Exchange/Mailboxes/Item/CreateImportSession/CreateImportSessionRequestBuilder.php new file mode 100644 index 00000000000..d74a79c4d73 --- /dev/null +++ b/src/Generated/Admin/Exchange/Mailboxes/Item/CreateImportSession/CreateImportSessionRequestBuilder.php @@ -0,0 +1,74 @@ +|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}/admin/exchange/mailboxes/{mailbox%2Did}/createImportSession'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Invoke action createImportSession + * @param CreateImportSessionRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + */ + public function post(?CreateImportSessionRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPostRequestInformation($requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [MailboxItemImportSession::class, 'createFromDiscriminatorValue'], $errorMappings); + } + + /** + * Invoke action createImportSession + * @param CreateImportSessionRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPostRequestInformation(?CreateImportSessionRequestBuilderPostRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::POST; + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->tryAddHeader('Accept', "application/json"); + return $requestInfo; + } + + /** + * 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 CreateImportSessionRequestBuilder + */ + public function withUrl(string $rawUrl): CreateImportSessionRequestBuilder { + return new CreateImportSessionRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/Admin/Exchange/Mailboxes/Item/CreateImportSession/CreateImportSessionRequestBuilderPostRequestConfiguration.php b/src/Generated/Admin/Exchange/Mailboxes/Item/CreateImportSession/CreateImportSessionRequestBuilderPostRequestConfiguration.php new file mode 100644 index 00000000000..0862e3d7377 --- /dev/null +++ b/src/Generated/Admin/Exchange/Mailboxes/Item/CreateImportSession/CreateImportSessionRequestBuilderPostRequestConfiguration.php @@ -0,0 +1,22 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + */ + public function __construct(?array $headers = null, ?array $options = null) { + parent::__construct($headers ?? [], $options ?? []); + } + +} diff --git a/src/Generated/Admin/Exchange/Mailboxes/Item/ExportItems/ExportItemsPostRequestBody.php b/src/Generated/Admin/Exchange/Mailboxes/Item/ExportItems/ExportItemsPostRequestBody.php new file mode 100644 index 00000000000..917d7763953 --- /dev/null +++ b/src/Generated/Admin/Exchange/Mailboxes/Item/ExportItems/ExportItemsPostRequestBody.php @@ -0,0 +1,124 @@ +backingStore = BackingStoreFactorySingleton::getInstance()->createBackingStore(); + $this->setAdditionalData([]); + } + + /** + * Creates a new instance of the appropriate class based on discriminator value + * @param ParseNode $parseNode The parse node to use to read the discriminator value and create the object + * @return ExportItemsPostRequestBody + */ + public static function createFromDiscriminatorValue(ParseNode $parseNode): ExportItemsPostRequestBody { + return new ExportItemsPostRequestBody(); + } + + /** + * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @return array|null + */ + public function getAdditionalData(): ?array { + $val = $this->getBackingStore()->get('additionalData'); + if (is_null($val) || is_array($val)) { + /** @var array|null $val */ + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'additionalData'"); + } + + /** + * Gets the BackingStore property value. Stores model information. + * @return BackingStore + */ + public function getBackingStore(): BackingStore { + return $this->backingStore; + } + + /** + * The deserialization information for the current model + * @return array + */ + public function getFieldDeserializers(): array { + $o = $this; + return [ + 'ItemIds' => function (ParseNode $n) { + $val = $n->getCollectionOfPrimitiveValues(); + if (is_array($val)) { + TypeUtils::validateCollectionValues($val, 'string'); + } + /** @var array|null $val */ + $this->setItemIds($val); + }, + ]; + } + + /** + * Gets the ItemIds property value. The ItemIds property + * @return array|null + */ + public function getItemIds(): ?array { + $val = $this->getBackingStore()->get('itemIds'); + if (is_array($val) || is_null($val)) { + TypeUtils::validateCollectionValues($val, 'string'); + /** @var array|null $val */ + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'itemIds'"); + } + + /** + * Serializes information the current object + * @param SerializationWriter $writer Serialization writer to use to serialize this model + */ + public function serialize(SerializationWriter $writer): void { + $writer->writeCollectionOfPrimitiveValues('ItemIds', $this->getItemIds()); + $writer->writeAdditionalData($this->getAdditionalData()); + } + + /** + * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @param array $value Value to set for the AdditionalData property. + */ + public function setAdditionalData(?array $value): void { + $this->getBackingStore()->set('additionalData', $value); + } + + /** + * Sets the BackingStore property value. Stores model information. + * @param BackingStore $value Value to set for the BackingStore property. + */ + public function setBackingStore(BackingStore $value): void { + $this->backingStore = $value; + } + + /** + * Sets the ItemIds property value. The ItemIds property + * @param array|null $value Value to set for the ItemIds property. + */ + public function setItemIds(?array $value): void { + $this->getBackingStore()->set('itemIds', $value); + } + +} diff --git a/src/Generated/Admin/Exchange/Mailboxes/Item/ExportItems/ExportItemsPostResponse.php b/src/Generated/Admin/Exchange/Mailboxes/Item/ExportItems/ExportItemsPostResponse.php new file mode 100644 index 00000000000..506b0c0adf0 --- /dev/null +++ b/src/Generated/Admin/Exchange/Mailboxes/Item/ExportItems/ExportItemsPostResponse.php @@ -0,0 +1,72 @@ + + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([ExportItemResponse::class, 'createFromDiscriminatorValue'])), + ]); + } + + /** + * Gets the value property value. The value property + * @return array|null + */ + public function getValue(): ?array { + $val = $this->getBackingStore()->get('value'); + if (is_array($val) || is_null($val)) { + TypeUtils::validateCollectionValues($val, ExportItemResponse::class); + /** @var array|null $val */ + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'value'"); + } + + /** + * Serializes information the current object + * @param SerializationWriter $writer Serialization writer to use to serialize this model + */ + public function serialize(SerializationWriter $writer): void { + parent::serialize($writer); + $writer->writeCollectionOfObjectValues('value', $this->getValue()); + } + + /** + * Sets the value property value. The value property + * @param array|null $value Value to set for the value property. + */ + public function setValue(?array $value): void { + $this->getBackingStore()->set('value', $value); + } + +} diff --git a/src/Generated/Admin/Exchange/Mailboxes/Item/ExportItems/ExportItemsRequestBuilder.php b/src/Generated/Admin/Exchange/Mailboxes/Item/ExportItems/ExportItemsRequestBuilder.php new file mode 100644 index 00000000000..7bf6a6914b4 --- /dev/null +++ b/src/Generated/Admin/Exchange/Mailboxes/Item/ExportItems/ExportItemsRequestBuilder.php @@ -0,0 +1,76 @@ +|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}/admin/exchange/mailboxes/{mailbox%2Did}/exportItems'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Invoke action exportItems + * @param ExportItemsPostRequestBody $body The request body + * @param ExportItemsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + */ + public function post(ExportItemsPostRequestBody $body, ?ExportItemsRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [ExportItemsPostResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + } + + /** + * Invoke action exportItems + * @param ExportItemsPostRequestBody $body The request body + * @param ExportItemsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPostRequestInformation(ExportItemsPostRequestBody $body, ?ExportItemsRequestBuilderPostRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::POST; + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->tryAddHeader('Accept', "application/json"); + $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); + return $requestInfo; + } + + /** + * 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 ExportItemsRequestBuilder + */ + public function withUrl(string $rawUrl): ExportItemsRequestBuilder { + return new ExportItemsRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/Admin/Exchange/Mailboxes/Item/ExportItems/ExportItemsRequestBuilderPostRequestConfiguration.php b/src/Generated/Admin/Exchange/Mailboxes/Item/ExportItems/ExportItemsRequestBuilderPostRequestConfiguration.php new file mode 100644 index 00000000000..9269fdc1985 --- /dev/null +++ b/src/Generated/Admin/Exchange/Mailboxes/Item/ExportItems/ExportItemsRequestBuilderPostRequestConfiguration.php @@ -0,0 +1,22 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + */ + public function __construct(?array $headers = null, ?array $options = null) { + parent::__construct($headers ?? [], $options ?? []); + } + +} diff --git a/src/Generated/Admin/Exchange/Mailboxes/Item/Folders/Count/CountRequestBuilder.php b/src/Generated/Admin/Exchange/Mailboxes/Item/Folders/Count/CountRequestBuilder.php new file mode 100644 index 00000000000..5c7ab431832 --- /dev/null +++ b/src/Generated/Admin/Exchange/Mailboxes/Item/Folders/Count/CountRequestBuilder.php @@ -0,0 +1,78 @@ +|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}/admin/exchange/mailboxes/{mailbox%2Did}/folders/$count{?%24filter,%24search}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Get the number of the resource + * @param CountRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + */ + public function get(?CountRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + /** @var Promise $result */ + $result = $this->requestAdapter->sendPrimitiveAsync($requestInfo, 'int', $errorMappings); + return $result; + } + + /** + * Get the number of the resource + * @param CountRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?CountRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); + return $requestInfo; + } + + /** + * 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 CountRequestBuilder + */ + public function withUrl(string $rawUrl): CountRequestBuilder { + return new CountRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/Admin/Exchange/Mailboxes/Item/Folders/Count/CountRequestBuilderGetQueryParameters.php b/src/Generated/Admin/Exchange/Mailboxes/Item/Folders/Count/CountRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..792c9ee8c77 --- /dev/null +++ b/src/Generated/Admin/Exchange/Mailboxes/Item/Folders/Count/CountRequestBuilderGetQueryParameters.php @@ -0,0 +1,34 @@ +filter = $filter; + $this->search = $search; + } + +} diff --git a/src/Generated/Admin/Exchange/Mailboxes/Item/Folders/Count/CountRequestBuilderGetRequestConfiguration.php b/src/Generated/Admin/Exchange/Mailboxes/Item/Folders/Count/CountRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..c19d592ad7f --- /dev/null +++ b/src/Generated/Admin/Exchange/Mailboxes/Item/Folders/Count/CountRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,39 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param CountRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?CountRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new CountRequestBuilderGetQueryParameters. + * @param string|null $filter Filter items by property values + * @param string|null $search Search items by search phrases + * @return CountRequestBuilderGetQueryParameters + */ + public static function createQueryParameters(?string $filter = null, ?string $search = null): CountRequestBuilderGetQueryParameters { + return new CountRequestBuilderGetQueryParameters($filter, $search); + } + +} diff --git a/src/Generated/Admin/Exchange/Mailboxes/Item/Folders/Delta/DeltaGetResponse.php b/src/Generated/Admin/Exchange/Mailboxes/Item/Folders/Delta/DeltaGetResponse.php new file mode 100644 index 00000000000..020ab724fff --- /dev/null +++ b/src/Generated/Admin/Exchange/Mailboxes/Item/Folders/Delta/DeltaGetResponse.php @@ -0,0 +1,72 @@ + + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([MailboxFolder::class, 'createFromDiscriminatorValue'])), + ]); + } + + /** + * Gets the value property value. The value property + * @return array|null + */ + public function getValue(): ?array { + $val = $this->getBackingStore()->get('value'); + if (is_array($val) || is_null($val)) { + TypeUtils::validateCollectionValues($val, MailboxFolder::class); + /** @var array|null $val */ + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'value'"); + } + + /** + * Serializes information the current object + * @param SerializationWriter $writer Serialization writer to use to serialize this model + */ + public function serialize(SerializationWriter $writer): void { + parent::serialize($writer); + $writer->writeCollectionOfObjectValues('value', $this->getValue()); + } + + /** + * Sets the value property value. The value property + * @param array|null $value Value to set for the value property. + */ + public function setValue(?array $value): void { + $this->getBackingStore()->set('value', $value); + } + +} diff --git a/src/Generated/Admin/Exchange/Mailboxes/Item/Folders/Delta/DeltaRequestBuilder.php b/src/Generated/Admin/Exchange/Mailboxes/Item/Folders/Delta/DeltaRequestBuilder.php new file mode 100644 index 00000000000..f8d7c3bf9da --- /dev/null +++ b/src/Generated/Admin/Exchange/Mailboxes/Item/Folders/Delta/DeltaRequestBuilder.php @@ -0,0 +1,76 @@ +|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}/admin/exchange/mailboxes/{mailbox%2Did}/folders/delta(){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Invoke function delta + * @param DeltaRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + */ + public function get(?DeltaRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [DeltaGetResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + } + + /** + * Invoke function delta + * @param DeltaRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?DeltaRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->tryAddHeader('Accept', "application/json"); + return $requestInfo; + } + + /** + * 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 DeltaRequestBuilder + */ + public function withUrl(string $rawUrl): DeltaRequestBuilder { + return new DeltaRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/Admin/Exchange/Mailboxes/Item/Folders/Delta/DeltaRequestBuilderGetQueryParameters.php b/src/Generated/Admin/Exchange/Mailboxes/Item/Folders/Delta/DeltaRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..8e429a7e8d4 --- /dev/null +++ b/src/Generated/Admin/Exchange/Mailboxes/Item/Folders/Delta/DeltaRequestBuilderGetQueryParameters.php @@ -0,0 +1,82 @@ +|null $expand Expand related entities + */ + public ?array $expand = null; + + /** + * @QueryParameter("%24filter") + * @var string|null $filter Filter items by property values + */ + public ?string $filter = null; + + /** + * @QueryParameter("%24orderby") + * @var array|null $orderby Order items by property values + */ + public ?array $orderby = null; + + /** + * @QueryParameter("%24search") + * @var string|null $search Search items by search phrases + */ + public ?string $search = null; + + /** + * @QueryParameter("%24select") + * @var array|null $select Select properties to be returned + */ + public ?array $select = null; + + /** + * @QueryParameter("%24skip") + * @var int|null $skip Skip the first n items + */ + public ?int $skip = null; + + /** + * @QueryParameter("%24top") + * @var int|null $top Show only the first n items + */ + public ?int $top = null; + + /** + * Instantiates a new DeltaRequestBuilderGetQueryParameters and sets the default values. + * @param bool|null $count Include count of items + * @param array|null $expand Expand related entities + * @param string|null $filter Filter items by property values + * @param array|null $orderby Order items by property values + * @param string|null $search Search items by search phrases + * @param array|null $select Select properties to be returned + * @param int|null $skip Skip the first n items + * @param int|null $top Show only the first n items + */ + 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) { + $this->count = $count; + $this->expand = $expand; + $this->filter = $filter; + $this->orderby = $orderby; + $this->search = $search; + $this->select = $select; + $this->skip = $skip; + $this->top = $top; + } + +} diff --git a/src/Generated/Admin/Exchange/Mailboxes/Item/Folders/Delta/DeltaRequestBuilderGetRequestConfiguration.php b/src/Generated/Admin/Exchange/Mailboxes/Item/Folders/Delta/DeltaRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..b82a05f5835 --- /dev/null +++ b/src/Generated/Admin/Exchange/Mailboxes/Item/Folders/Delta/DeltaRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,45 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param DeltaRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?DeltaRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new DeltaRequestBuilderGetQueryParameters. + * @param bool|null $count Include count of items + * @param array|null $expand Expand related entities + * @param string|null $filter Filter items by property values + * @param array|null $orderby Order items by property values + * @param string|null $search Search items by search phrases + * @param array|null $select Select properties to be returned + * @param int|null $skip Skip the first n items + * @param int|null $top Show only the first n items + * @return DeltaRequestBuilderGetQueryParameters + */ + public static function createQueryParameters(?bool $count = null, ?array $expand = null, ?string $filter = null, ?array $orderby = null, ?string $search = null, ?array $select = null, ?int $skip = null, ?int $top = null): DeltaRequestBuilderGetQueryParameters { + return new DeltaRequestBuilderGetQueryParameters($count, $expand, $filter, $orderby, $search, $select, $skip, $top); + } + +} diff --git a/src/Generated/Admin/Exchange/Mailboxes/Item/Folders/FoldersRequestBuilder.php b/src/Generated/Admin/Exchange/Mailboxes/Item/Folders/FoldersRequestBuilder.php new file mode 100644 index 00000000000..a28f6b958b1 --- /dev/null +++ b/src/Generated/Admin/Exchange/Mailboxes/Item/Folders/FoldersRequestBuilder.php @@ -0,0 +1,105 @@ +pathParameters, $this->requestAdapter); + } + + /** + * Provides operations to call the delta method. + */ + public function delta(): DeltaRequestBuilder { + return new DeltaRequestBuilder($this->pathParameters, $this->requestAdapter); + } + + /** + * Provides operations to manage the folders property of the microsoft.graph.mailbox entity. + * @param string $mailboxFolderId The unique identifier of mailboxFolder + * @return MailboxFolderItemRequestBuilder + */ + public function byMailboxFolderId(string $mailboxFolderId): MailboxFolderItemRequestBuilder { + $urlTplParams = $this->pathParameters; + $urlTplParams['mailboxFolder%2Did'] = $mailboxFolderId; + return new MailboxFolderItemRequestBuilder($urlTplParams, $this->requestAdapter); + } + + /** + * Instantiates a new FoldersRequestBuilder and sets the default values. + * @param array|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}/admin/exchange/mailboxes/{mailbox%2Did}/folders{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Get folders from admin + * @param FoldersRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + */ + public function get(?FoldersRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [MailboxFolderCollectionResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + } + + /** + * Get folders from admin + * @param FoldersRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?FoldersRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->tryAddHeader('Accept', "application/json"); + return $requestInfo; + } + + /** + * 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 FoldersRequestBuilder + */ + public function withUrl(string $rawUrl): FoldersRequestBuilder { + return new FoldersRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/Admin/Exchange/Mailboxes/Item/Folders/FoldersRequestBuilderGetQueryParameters.php b/src/Generated/Admin/Exchange/Mailboxes/Item/Folders/FoldersRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..c31e9eb7e9e --- /dev/null +++ b/src/Generated/Admin/Exchange/Mailboxes/Item/Folders/FoldersRequestBuilderGetQueryParameters.php @@ -0,0 +1,82 @@ +|null $expand Expand related entities + */ + public ?array $expand = null; + + /** + * @QueryParameter("%24filter") + * @var string|null $filter Filter items by property values + */ + public ?string $filter = null; + + /** + * @QueryParameter("%24orderby") + * @var array|null $orderby Order items by property values + */ + public ?array $orderby = null; + + /** + * @QueryParameter("%24search") + * @var string|null $search Search items by search phrases + */ + public ?string $search = null; + + /** + * @QueryParameter("%24select") + * @var array|null $select Select properties to be returned + */ + public ?array $select = null; + + /** + * @QueryParameter("%24skip") + * @var int|null $skip Skip the first n items + */ + public ?int $skip = null; + + /** + * @QueryParameter("%24top") + * @var int|null $top Show only the first n items + */ + public ?int $top = null; + + /** + * Instantiates a new FoldersRequestBuilderGetQueryParameters and sets the default values. + * @param bool|null $count Include count of items + * @param array|null $expand Expand related entities + * @param string|null $filter Filter items by property values + * @param array|null $orderby Order items by property values + * @param string|null $search Search items by search phrases + * @param array|null $select Select properties to be returned + * @param int|null $skip Skip the first n items + * @param int|null $top Show only the first n items + */ + 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) { + $this->count = $count; + $this->expand = $expand; + $this->filter = $filter; + $this->orderby = $orderby; + $this->search = $search; + $this->select = $select; + $this->skip = $skip; + $this->top = $top; + } + +} diff --git a/src/Generated/Admin/Exchange/Mailboxes/Item/Folders/FoldersRequestBuilderGetRequestConfiguration.php b/src/Generated/Admin/Exchange/Mailboxes/Item/Folders/FoldersRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..78af2a43eb6 --- /dev/null +++ b/src/Generated/Admin/Exchange/Mailboxes/Item/Folders/FoldersRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,45 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param FoldersRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?FoldersRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new FoldersRequestBuilderGetQueryParameters. + * @param bool|null $count Include count of items + * @param array|null $expand Expand related entities + * @param string|null $filter Filter items by property values + * @param array|null $orderby Order items by property values + * @param string|null $search Search items by search phrases + * @param array|null $select Select properties to be returned + * @param int|null $skip Skip the first n items + * @param int|null $top Show only the first n items + * @return FoldersRequestBuilderGetQueryParameters + */ + public static function createQueryParameters(?bool $count = null, ?array $expand = null, ?string $filter = null, ?array $orderby = null, ?string $search = null, ?array $select = null, ?int $skip = null, ?int $top = null): FoldersRequestBuilderGetQueryParameters { + return new FoldersRequestBuilderGetQueryParameters($count, $expand, $filter, $orderby, $search, $select, $skip, $top); + } + +} diff --git a/src/Generated/Admin/Exchange/Mailboxes/Item/Folders/Item/ChildFolders/ChildFoldersRequestBuilder.php b/src/Generated/Admin/Exchange/Mailboxes/Item/Folders/Item/ChildFolders/ChildFoldersRequestBuilder.php new file mode 100644 index 00000000000..84629f521a3 --- /dev/null +++ b/src/Generated/Admin/Exchange/Mailboxes/Item/Folders/Item/ChildFolders/ChildFoldersRequestBuilder.php @@ -0,0 +1,105 @@ +pathParameters, $this->requestAdapter); + } + + /** + * Provides operations to call the delta method. + */ + public function delta(): DeltaRequestBuilder { + return new DeltaRequestBuilder($this->pathParameters, $this->requestAdapter); + } + + /** + * Provides operations to manage the childFolders property of the microsoft.graph.mailboxFolder entity. + * @param string $mailboxFolderId1 The unique identifier of mailboxFolder + * @return MailboxFolderItemRequestBuilder + */ + public function byMailboxFolderId1(string $mailboxFolderId1): MailboxFolderItemRequestBuilder { + $urlTplParams = $this->pathParameters; + $urlTplParams['mailboxFolder%2Did1'] = $mailboxFolderId1; + return new MailboxFolderItemRequestBuilder($urlTplParams, $this->requestAdapter); + } + + /** + * Instantiates a new ChildFoldersRequestBuilder and sets the default values. + * @param array|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}/admin/exchange/mailboxes/{mailbox%2Did}/folders/{mailboxFolder%2Did}/childFolders{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Get childFolders from admin + * @param ChildFoldersRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + */ + public function get(?ChildFoldersRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [MailboxFolderCollectionResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + } + + /** + * Get childFolders from admin + * @param ChildFoldersRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?ChildFoldersRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->tryAddHeader('Accept', "application/json"); + return $requestInfo; + } + + /** + * 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 ChildFoldersRequestBuilder + */ + public function withUrl(string $rawUrl): ChildFoldersRequestBuilder { + return new ChildFoldersRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/Admin/Exchange/Mailboxes/Item/Folders/Item/ChildFolders/ChildFoldersRequestBuilderGetQueryParameters.php b/src/Generated/Admin/Exchange/Mailboxes/Item/Folders/Item/ChildFolders/ChildFoldersRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..04a93b14799 --- /dev/null +++ b/src/Generated/Admin/Exchange/Mailboxes/Item/Folders/Item/ChildFolders/ChildFoldersRequestBuilderGetQueryParameters.php @@ -0,0 +1,82 @@ +|null $expand Expand related entities + */ + public ?array $expand = null; + + /** + * @QueryParameter("%24filter") + * @var string|null $filter Filter items by property values + */ + public ?string $filter = null; + + /** + * @QueryParameter("%24orderby") + * @var array|null $orderby Order items by property values + */ + public ?array $orderby = null; + + /** + * @QueryParameter("%24search") + * @var string|null $search Search items by search phrases + */ + public ?string $search = null; + + /** + * @QueryParameter("%24select") + * @var array|null $select Select properties to be returned + */ + public ?array $select = null; + + /** + * @QueryParameter("%24skip") + * @var int|null $skip Skip the first n items + */ + public ?int $skip = null; + + /** + * @QueryParameter("%24top") + * @var int|null $top Show only the first n items + */ + public ?int $top = null; + + /** + * Instantiates a new ChildFoldersRequestBuilderGetQueryParameters and sets the default values. + * @param bool|null $count Include count of items + * @param array|null $expand Expand related entities + * @param string|null $filter Filter items by property values + * @param array|null $orderby Order items by property values + * @param string|null $search Search items by search phrases + * @param array|null $select Select properties to be returned + * @param int|null $skip Skip the first n items + * @param int|null $top Show only the first n items + */ + 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) { + $this->count = $count; + $this->expand = $expand; + $this->filter = $filter; + $this->orderby = $orderby; + $this->search = $search; + $this->select = $select; + $this->skip = $skip; + $this->top = $top; + } + +} diff --git a/src/Generated/Admin/Exchange/Mailboxes/Item/Folders/Item/ChildFolders/ChildFoldersRequestBuilderGetRequestConfiguration.php b/src/Generated/Admin/Exchange/Mailboxes/Item/Folders/Item/ChildFolders/ChildFoldersRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..e124c470fa8 --- /dev/null +++ b/src/Generated/Admin/Exchange/Mailboxes/Item/Folders/Item/ChildFolders/ChildFoldersRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,45 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param ChildFoldersRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?ChildFoldersRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new ChildFoldersRequestBuilderGetQueryParameters. + * @param bool|null $count Include count of items + * @param array|null $expand Expand related entities + * @param string|null $filter Filter items by property values + * @param array|null $orderby Order items by property values + * @param string|null $search Search items by search phrases + * @param array|null $select Select properties to be returned + * @param int|null $skip Skip the first n items + * @param int|null $top Show only the first n items + * @return ChildFoldersRequestBuilderGetQueryParameters + */ + public static function createQueryParameters(?bool $count = null, ?array $expand = null, ?string $filter = null, ?array $orderby = null, ?string $search = null, ?array $select = null, ?int $skip = null, ?int $top = null): ChildFoldersRequestBuilderGetQueryParameters { + return new ChildFoldersRequestBuilderGetQueryParameters($count, $expand, $filter, $orderby, $search, $select, $skip, $top); + } + +} diff --git a/src/Generated/Admin/Exchange/Mailboxes/Item/Folders/Item/ChildFolders/Count/CountRequestBuilder.php b/src/Generated/Admin/Exchange/Mailboxes/Item/Folders/Item/ChildFolders/Count/CountRequestBuilder.php new file mode 100644 index 00000000000..aca5d7af7ca --- /dev/null +++ b/src/Generated/Admin/Exchange/Mailboxes/Item/Folders/Item/ChildFolders/Count/CountRequestBuilder.php @@ -0,0 +1,78 @@ +|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}/admin/exchange/mailboxes/{mailbox%2Did}/folders/{mailboxFolder%2Did}/childFolders/$count{?%24filter,%24search}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Get the number of the resource + * @param CountRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + */ + public function get(?CountRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + /** @var Promise $result */ + $result = $this->requestAdapter->sendPrimitiveAsync($requestInfo, 'int', $errorMappings); + return $result; + } + + /** + * Get the number of the resource + * @param CountRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?CountRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); + return $requestInfo; + } + + /** + * 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 CountRequestBuilder + */ + public function withUrl(string $rawUrl): CountRequestBuilder { + return new CountRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/Admin/Exchange/Mailboxes/Item/Folders/Item/ChildFolders/Count/CountRequestBuilderGetQueryParameters.php b/src/Generated/Admin/Exchange/Mailboxes/Item/Folders/Item/ChildFolders/Count/CountRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..40735a186d0 --- /dev/null +++ b/src/Generated/Admin/Exchange/Mailboxes/Item/Folders/Item/ChildFolders/Count/CountRequestBuilderGetQueryParameters.php @@ -0,0 +1,34 @@ +filter = $filter; + $this->search = $search; + } + +} diff --git a/src/Generated/Admin/Exchange/Mailboxes/Item/Folders/Item/ChildFolders/Count/CountRequestBuilderGetRequestConfiguration.php b/src/Generated/Admin/Exchange/Mailboxes/Item/Folders/Item/ChildFolders/Count/CountRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..00fcef86e59 --- /dev/null +++ b/src/Generated/Admin/Exchange/Mailboxes/Item/Folders/Item/ChildFolders/Count/CountRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,39 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param CountRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?CountRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new CountRequestBuilderGetQueryParameters. + * @param string|null $filter Filter items by property values + * @param string|null $search Search items by search phrases + * @return CountRequestBuilderGetQueryParameters + */ + public static function createQueryParameters(?string $filter = null, ?string $search = null): CountRequestBuilderGetQueryParameters { + return new CountRequestBuilderGetQueryParameters($filter, $search); + } + +} diff --git a/src/Generated/Admin/Exchange/Mailboxes/Item/Folders/Item/ChildFolders/Delta/DeltaGetResponse.php b/src/Generated/Admin/Exchange/Mailboxes/Item/Folders/Item/ChildFolders/Delta/DeltaGetResponse.php new file mode 100644 index 00000000000..b7c974d5ddf --- /dev/null +++ b/src/Generated/Admin/Exchange/Mailboxes/Item/Folders/Item/ChildFolders/Delta/DeltaGetResponse.php @@ -0,0 +1,72 @@ + + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([MailboxFolder::class, 'createFromDiscriminatorValue'])), + ]); + } + + /** + * Gets the value property value. The value property + * @return array|null + */ + public function getValue(): ?array { + $val = $this->getBackingStore()->get('value'); + if (is_array($val) || is_null($val)) { + TypeUtils::validateCollectionValues($val, MailboxFolder::class); + /** @var array|null $val */ + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'value'"); + } + + /** + * Serializes information the current object + * @param SerializationWriter $writer Serialization writer to use to serialize this model + */ + public function serialize(SerializationWriter $writer): void { + parent::serialize($writer); + $writer->writeCollectionOfObjectValues('value', $this->getValue()); + } + + /** + * Sets the value property value. The value property + * @param array|null $value Value to set for the value property. + */ + public function setValue(?array $value): void { + $this->getBackingStore()->set('value', $value); + } + +} diff --git a/src/Generated/Admin/Exchange/Mailboxes/Item/Folders/Item/ChildFolders/Delta/DeltaRequestBuilder.php b/src/Generated/Admin/Exchange/Mailboxes/Item/Folders/Item/ChildFolders/Delta/DeltaRequestBuilder.php new file mode 100644 index 00000000000..d899a61fe7f --- /dev/null +++ b/src/Generated/Admin/Exchange/Mailboxes/Item/Folders/Item/ChildFolders/Delta/DeltaRequestBuilder.php @@ -0,0 +1,76 @@ +|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}/admin/exchange/mailboxes/{mailbox%2Did}/folders/{mailboxFolder%2Did}/childFolders/delta(){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Invoke function delta + * @param DeltaRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + */ + public function get(?DeltaRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [DeltaGetResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + } + + /** + * Invoke function delta + * @param DeltaRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?DeltaRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->tryAddHeader('Accept', "application/json"); + return $requestInfo; + } + + /** + * 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 DeltaRequestBuilder + */ + public function withUrl(string $rawUrl): DeltaRequestBuilder { + return new DeltaRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/Admin/Exchange/Mailboxes/Item/Folders/Item/ChildFolders/Delta/DeltaRequestBuilderGetQueryParameters.php b/src/Generated/Admin/Exchange/Mailboxes/Item/Folders/Item/ChildFolders/Delta/DeltaRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..93d68b69b09 --- /dev/null +++ b/src/Generated/Admin/Exchange/Mailboxes/Item/Folders/Item/ChildFolders/Delta/DeltaRequestBuilderGetQueryParameters.php @@ -0,0 +1,82 @@ +|null $expand Expand related entities + */ + public ?array $expand = null; + + /** + * @QueryParameter("%24filter") + * @var string|null $filter Filter items by property values + */ + public ?string $filter = null; + + /** + * @QueryParameter("%24orderby") + * @var array|null $orderby Order items by property values + */ + public ?array $orderby = null; + + /** + * @QueryParameter("%24search") + * @var string|null $search Search items by search phrases + */ + public ?string $search = null; + + /** + * @QueryParameter("%24select") + * @var array|null $select Select properties to be returned + */ + public ?array $select = null; + + /** + * @QueryParameter("%24skip") + * @var int|null $skip Skip the first n items + */ + public ?int $skip = null; + + /** + * @QueryParameter("%24top") + * @var int|null $top Show only the first n items + */ + public ?int $top = null; + + /** + * Instantiates a new DeltaRequestBuilderGetQueryParameters and sets the default values. + * @param bool|null $count Include count of items + * @param array|null $expand Expand related entities + * @param string|null $filter Filter items by property values + * @param array|null $orderby Order items by property values + * @param string|null $search Search items by search phrases + * @param array|null $select Select properties to be returned + * @param int|null $skip Skip the first n items + * @param int|null $top Show only the first n items + */ + 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) { + $this->count = $count; + $this->expand = $expand; + $this->filter = $filter; + $this->orderby = $orderby; + $this->search = $search; + $this->select = $select; + $this->skip = $skip; + $this->top = $top; + } + +} diff --git a/src/Generated/Admin/Exchange/Mailboxes/Item/Folders/Item/ChildFolders/Delta/DeltaRequestBuilderGetRequestConfiguration.php b/src/Generated/Admin/Exchange/Mailboxes/Item/Folders/Item/ChildFolders/Delta/DeltaRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..8e9265b6c05 --- /dev/null +++ b/src/Generated/Admin/Exchange/Mailboxes/Item/Folders/Item/ChildFolders/Delta/DeltaRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,45 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param DeltaRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?DeltaRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new DeltaRequestBuilderGetQueryParameters. + * @param bool|null $count Include count of items + * @param array|null $expand Expand related entities + * @param string|null $filter Filter items by property values + * @param array|null $orderby Order items by property values + * @param string|null $search Search items by search phrases + * @param array|null $select Select properties to be returned + * @param int|null $skip Skip the first n items + * @param int|null $top Show only the first n items + * @return DeltaRequestBuilderGetQueryParameters + */ + public static function createQueryParameters(?bool $count = null, ?array $expand = null, ?string $filter = null, ?array $orderby = null, ?string $search = null, ?array $select = null, ?int $skip = null, ?int $top = null): DeltaRequestBuilderGetQueryParameters { + return new DeltaRequestBuilderGetQueryParameters($count, $expand, $filter, $orderby, $search, $select, $skip, $top); + } + +} diff --git a/src/Generated/Admin/Exchange/Mailboxes/Item/Folders/Item/ChildFolders/Item/Items/Count/CountRequestBuilder.php b/src/Generated/Admin/Exchange/Mailboxes/Item/Folders/Item/ChildFolders/Item/Items/Count/CountRequestBuilder.php new file mode 100644 index 00000000000..4e992d4ff3d --- /dev/null +++ b/src/Generated/Admin/Exchange/Mailboxes/Item/Folders/Item/ChildFolders/Item/Items/Count/CountRequestBuilder.php @@ -0,0 +1,78 @@ +|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}/admin/exchange/mailboxes/{mailbox%2Did}/folders/{mailboxFolder%2Did}/childFolders/{mailboxFolder%2Did1}/items/$count{?%24filter,%24search}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Get the number of the resource + * @param CountRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + */ + public function get(?CountRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + /** @var Promise $result */ + $result = $this->requestAdapter->sendPrimitiveAsync($requestInfo, 'int', $errorMappings); + return $result; + } + + /** + * Get the number of the resource + * @param CountRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?CountRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); + return $requestInfo; + } + + /** + * 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 CountRequestBuilder + */ + public function withUrl(string $rawUrl): CountRequestBuilder { + return new CountRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/Admin/Exchange/Mailboxes/Item/Folders/Item/ChildFolders/Item/Items/Count/CountRequestBuilderGetQueryParameters.php b/src/Generated/Admin/Exchange/Mailboxes/Item/Folders/Item/ChildFolders/Item/Items/Count/CountRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..77fe73dbff2 --- /dev/null +++ b/src/Generated/Admin/Exchange/Mailboxes/Item/Folders/Item/ChildFolders/Item/Items/Count/CountRequestBuilderGetQueryParameters.php @@ -0,0 +1,34 @@ +filter = $filter; + $this->search = $search; + } + +} diff --git a/src/Generated/Admin/Exchange/Mailboxes/Item/Folders/Item/ChildFolders/Item/Items/Count/CountRequestBuilderGetRequestConfiguration.php b/src/Generated/Admin/Exchange/Mailboxes/Item/Folders/Item/ChildFolders/Item/Items/Count/CountRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..23cb7caeb9a --- /dev/null +++ b/src/Generated/Admin/Exchange/Mailboxes/Item/Folders/Item/ChildFolders/Item/Items/Count/CountRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,39 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param CountRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?CountRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new CountRequestBuilderGetQueryParameters. + * @param string|null $filter Filter items by property values + * @param string|null $search Search items by search phrases + * @return CountRequestBuilderGetQueryParameters + */ + public static function createQueryParameters(?string $filter = null, ?string $search = null): CountRequestBuilderGetQueryParameters { + return new CountRequestBuilderGetQueryParameters($filter, $search); + } + +} diff --git a/src/Generated/Admin/Exchange/Mailboxes/Item/Folders/Item/ChildFolders/Item/Items/Delta/DeltaGetResponse.php b/src/Generated/Admin/Exchange/Mailboxes/Item/Folders/Item/ChildFolders/Item/Items/Delta/DeltaGetResponse.php new file mode 100644 index 00000000000..a086d6f185d --- /dev/null +++ b/src/Generated/Admin/Exchange/Mailboxes/Item/Folders/Item/ChildFolders/Item/Items/Delta/DeltaGetResponse.php @@ -0,0 +1,72 @@ + + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([MailboxItem::class, 'createFromDiscriminatorValue'])), + ]); + } + + /** + * Gets the value property value. The value property + * @return array|null + */ + public function getValue(): ?array { + $val = $this->getBackingStore()->get('value'); + if (is_array($val) || is_null($val)) { + TypeUtils::validateCollectionValues($val, MailboxItem::class); + /** @var array|null $val */ + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'value'"); + } + + /** + * Serializes information the current object + * @param SerializationWriter $writer Serialization writer to use to serialize this model + */ + public function serialize(SerializationWriter $writer): void { + parent::serialize($writer); + $writer->writeCollectionOfObjectValues('value', $this->getValue()); + } + + /** + * Sets the value property value. The value property + * @param array|null $value Value to set for the value property. + */ + public function setValue(?array $value): void { + $this->getBackingStore()->set('value', $value); + } + +} diff --git a/src/Generated/Admin/Exchange/Mailboxes/Item/Folders/Item/ChildFolders/Item/Items/Delta/DeltaRequestBuilder.php b/src/Generated/Admin/Exchange/Mailboxes/Item/Folders/Item/ChildFolders/Item/Items/Delta/DeltaRequestBuilder.php new file mode 100644 index 00000000000..e146ddfba66 --- /dev/null +++ b/src/Generated/Admin/Exchange/Mailboxes/Item/Folders/Item/ChildFolders/Item/Items/Delta/DeltaRequestBuilder.php @@ -0,0 +1,76 @@ +|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}/admin/exchange/mailboxes/{mailbox%2Did}/folders/{mailboxFolder%2Did}/childFolders/{mailboxFolder%2Did1}/items/delta(){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Invoke function delta + * @param DeltaRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + */ + public function get(?DeltaRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [DeltaGetResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + } + + /** + * Invoke function delta + * @param DeltaRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?DeltaRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->tryAddHeader('Accept', "application/json"); + return $requestInfo; + } + + /** + * 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 DeltaRequestBuilder + */ + public function withUrl(string $rawUrl): DeltaRequestBuilder { + return new DeltaRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/Admin/Exchange/Mailboxes/Item/Folders/Item/ChildFolders/Item/Items/Delta/DeltaRequestBuilderGetQueryParameters.php b/src/Generated/Admin/Exchange/Mailboxes/Item/Folders/Item/ChildFolders/Item/Items/Delta/DeltaRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..1e535baad70 --- /dev/null +++ b/src/Generated/Admin/Exchange/Mailboxes/Item/Folders/Item/ChildFolders/Item/Items/Delta/DeltaRequestBuilderGetQueryParameters.php @@ -0,0 +1,82 @@ +|null $expand Expand related entities + */ + public ?array $expand = null; + + /** + * @QueryParameter("%24filter") + * @var string|null $filter Filter items by property values + */ + public ?string $filter = null; + + /** + * @QueryParameter("%24orderby") + * @var array|null $orderby Order items by property values + */ + public ?array $orderby = null; + + /** + * @QueryParameter("%24search") + * @var string|null $search Search items by search phrases + */ + public ?string $search = null; + + /** + * @QueryParameter("%24select") + * @var array|null $select Select properties to be returned + */ + public ?array $select = null; + + /** + * @QueryParameter("%24skip") + * @var int|null $skip Skip the first n items + */ + public ?int $skip = null; + + /** + * @QueryParameter("%24top") + * @var int|null $top Show only the first n items + */ + public ?int $top = null; + + /** + * Instantiates a new DeltaRequestBuilderGetQueryParameters and sets the default values. + * @param bool|null $count Include count of items + * @param array|null $expand Expand related entities + * @param string|null $filter Filter items by property values + * @param array|null $orderby Order items by property values + * @param string|null $search Search items by search phrases + * @param array|null $select Select properties to be returned + * @param int|null $skip Skip the first n items + * @param int|null $top Show only the first n items + */ + 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) { + $this->count = $count; + $this->expand = $expand; + $this->filter = $filter; + $this->orderby = $orderby; + $this->search = $search; + $this->select = $select; + $this->skip = $skip; + $this->top = $top; + } + +} diff --git a/src/Generated/Admin/Exchange/Mailboxes/Item/Folders/Item/ChildFolders/Item/Items/Delta/DeltaRequestBuilderGetRequestConfiguration.php b/src/Generated/Admin/Exchange/Mailboxes/Item/Folders/Item/ChildFolders/Item/Items/Delta/DeltaRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..c1d6772c19f --- /dev/null +++ b/src/Generated/Admin/Exchange/Mailboxes/Item/Folders/Item/ChildFolders/Item/Items/Delta/DeltaRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,45 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param DeltaRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?DeltaRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new DeltaRequestBuilderGetQueryParameters. + * @param bool|null $count Include count of items + * @param array|null $expand Expand related entities + * @param string|null $filter Filter items by property values + * @param array|null $orderby Order items by property values + * @param string|null $search Search items by search phrases + * @param array|null $select Select properties to be returned + * @param int|null $skip Skip the first n items + * @param int|null $top Show only the first n items + * @return DeltaRequestBuilderGetQueryParameters + */ + public static function createQueryParameters(?bool $count = null, ?array $expand = null, ?string $filter = null, ?array $orderby = null, ?string $search = null, ?array $select = null, ?int $skip = null, ?int $top = null): DeltaRequestBuilderGetQueryParameters { + return new DeltaRequestBuilderGetQueryParameters($count, $expand, $filter, $orderby, $search, $select, $skip, $top); + } + +} diff --git a/src/Generated/Admin/Exchange/Mailboxes/Item/Folders/Item/ChildFolders/Item/Items/Item/MailboxItemItemRequestBuilder.php b/src/Generated/Admin/Exchange/Mailboxes/Item/Folders/Item/ChildFolders/Item/Items/Item/MailboxItemItemRequestBuilder.php new file mode 100644 index 00000000000..fcdaea1a408 --- /dev/null +++ b/src/Generated/Admin/Exchange/Mailboxes/Item/Folders/Item/ChildFolders/Item/Items/Item/MailboxItemItemRequestBuilder.php @@ -0,0 +1,77 @@ +|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}/admin/exchange/mailboxes/{mailbox%2Did}/folders/{mailboxFolder%2Did}/childFolders/{mailboxFolder%2Did1}/items/{mailboxItem%2Did}{?%24expand,%24select}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Get items from admin + * @param MailboxItemItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + */ + public function get(?MailboxItemItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [MailboxItem::class, 'createFromDiscriminatorValue'], $errorMappings); + } + + /** + * Get items from admin + * @param MailboxItemItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?MailboxItemItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->tryAddHeader('Accept', "application/json"); + return $requestInfo; + } + + /** + * 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 MailboxItemItemRequestBuilder + */ + public function withUrl(string $rawUrl): MailboxItemItemRequestBuilder { + return new MailboxItemItemRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/Admin/Exchange/Mailboxes/Item/Folders/Item/ChildFolders/Item/Items/Item/MailboxItemItemRequestBuilderGetQueryParameters.php b/src/Generated/Admin/Exchange/Mailboxes/Item/Folders/Item/ChildFolders/Item/Items/Item/MailboxItemItemRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..095960f90d4 --- /dev/null +++ b/src/Generated/Admin/Exchange/Mailboxes/Item/Folders/Item/ChildFolders/Item/Items/Item/MailboxItemItemRequestBuilderGetQueryParameters.php @@ -0,0 +1,34 @@ +|null $expand Expand related entities + */ + public ?array $expand = null; + + /** + * @QueryParameter("%24select") + * @var array|null $select Select properties to be returned + */ + public ?array $select = null; + + /** + * Instantiates a new MailboxItemItemRequestBuilderGetQueryParameters and sets the default values. + * @param array|null $expand Expand related entities + * @param array|null $select Select properties to be returned + */ + public function __construct(?array $expand = null, ?array $select = null) { + $this->expand = $expand; + $this->select = $select; + } + +} diff --git a/src/Generated/Admin/Exchange/Mailboxes/Item/Folders/Item/ChildFolders/Item/Items/Item/MailboxItemItemRequestBuilderGetRequestConfiguration.php b/src/Generated/Admin/Exchange/Mailboxes/Item/Folders/Item/ChildFolders/Item/Items/Item/MailboxItemItemRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..c42c46917f5 --- /dev/null +++ b/src/Generated/Admin/Exchange/Mailboxes/Item/Folders/Item/ChildFolders/Item/Items/Item/MailboxItemItemRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,39 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param MailboxItemItemRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?MailboxItemItemRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new MailboxItemItemRequestBuilderGetQueryParameters. + * @param array|null $expand Expand related entities + * @param array|null $select Select properties to be returned + * @return MailboxItemItemRequestBuilderGetQueryParameters + */ + public static function createQueryParameters(?array $expand = null, ?array $select = null): MailboxItemItemRequestBuilderGetQueryParameters { + return new MailboxItemItemRequestBuilderGetQueryParameters($expand, $select); + } + +} diff --git a/src/Generated/Admin/Exchange/Mailboxes/Item/Folders/Item/ChildFolders/Item/Items/ItemsRequestBuilder.php b/src/Generated/Admin/Exchange/Mailboxes/Item/Folders/Item/ChildFolders/Item/Items/ItemsRequestBuilder.php new file mode 100644 index 00000000000..032f23a6a54 --- /dev/null +++ b/src/Generated/Admin/Exchange/Mailboxes/Item/Folders/Item/ChildFolders/Item/Items/ItemsRequestBuilder.php @@ -0,0 +1,105 @@ +pathParameters, $this->requestAdapter); + } + + /** + * Provides operations to call the delta method. + */ + public function delta(): DeltaRequestBuilder { + return new DeltaRequestBuilder($this->pathParameters, $this->requestAdapter); + } + + /** + * Provides operations to manage the items property of the microsoft.graph.mailboxFolder entity. + * @param string $mailboxItemId The unique identifier of mailboxItem + * @return MailboxItemItemRequestBuilder + */ + public function byMailboxItemId(string $mailboxItemId): MailboxItemItemRequestBuilder { + $urlTplParams = $this->pathParameters; + $urlTplParams['mailboxItem%2Did'] = $mailboxItemId; + return new MailboxItemItemRequestBuilder($urlTplParams, $this->requestAdapter); + } + + /** + * Instantiates a new ItemsRequestBuilder and sets the default values. + * @param array|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}/admin/exchange/mailboxes/{mailbox%2Did}/folders/{mailboxFolder%2Did}/childFolders/{mailboxFolder%2Did1}/items{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Get items from admin + * @param ItemsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + */ + public function get(?ItemsRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [MailboxItemCollectionResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + } + + /** + * Get items from admin + * @param ItemsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?ItemsRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->tryAddHeader('Accept', "application/json"); + return $requestInfo; + } + + /** + * 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 ItemsRequestBuilder + */ + public function withUrl(string $rawUrl): ItemsRequestBuilder { + return new ItemsRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/Admin/Exchange/Mailboxes/Item/Folders/Item/ChildFolders/Item/Items/ItemsRequestBuilderGetQueryParameters.php b/src/Generated/Admin/Exchange/Mailboxes/Item/Folders/Item/ChildFolders/Item/Items/ItemsRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..d817eac00ad --- /dev/null +++ b/src/Generated/Admin/Exchange/Mailboxes/Item/Folders/Item/ChildFolders/Item/Items/ItemsRequestBuilderGetQueryParameters.php @@ -0,0 +1,82 @@ +|null $expand Expand related entities + */ + public ?array $expand = null; + + /** + * @QueryParameter("%24filter") + * @var string|null $filter Filter items by property values + */ + public ?string $filter = null; + + /** + * @QueryParameter("%24orderby") + * @var array|null $orderby Order items by property values + */ + public ?array $orderby = null; + + /** + * @QueryParameter("%24search") + * @var string|null $search Search items by search phrases + */ + public ?string $search = null; + + /** + * @QueryParameter("%24select") + * @var array|null $select Select properties to be returned + */ + public ?array $select = null; + + /** + * @QueryParameter("%24skip") + * @var int|null $skip Skip the first n items + */ + public ?int $skip = null; + + /** + * @QueryParameter("%24top") + * @var int|null $top Show only the first n items + */ + public ?int $top = null; + + /** + * Instantiates a new ItemsRequestBuilderGetQueryParameters and sets the default values. + * @param bool|null $count Include count of items + * @param array|null $expand Expand related entities + * @param string|null $filter Filter items by property values + * @param array|null $orderby Order items by property values + * @param string|null $search Search items by search phrases + * @param array|null $select Select properties to be returned + * @param int|null $skip Skip the first n items + * @param int|null $top Show only the first n items + */ + 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) { + $this->count = $count; + $this->expand = $expand; + $this->filter = $filter; + $this->orderby = $orderby; + $this->search = $search; + $this->select = $select; + $this->skip = $skip; + $this->top = $top; + } + +} diff --git a/src/Generated/Admin/Exchange/Mailboxes/Item/Folders/Item/ChildFolders/Item/Items/ItemsRequestBuilderGetRequestConfiguration.php b/src/Generated/Admin/Exchange/Mailboxes/Item/Folders/Item/ChildFolders/Item/Items/ItemsRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..8e3bdc54038 --- /dev/null +++ b/src/Generated/Admin/Exchange/Mailboxes/Item/Folders/Item/ChildFolders/Item/Items/ItemsRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,45 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param ItemsRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?ItemsRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new ItemsRequestBuilderGetQueryParameters. + * @param bool|null $count Include count of items + * @param array|null $expand Expand related entities + * @param string|null $filter Filter items by property values + * @param array|null $orderby Order items by property values + * @param string|null $search Search items by search phrases + * @param array|null $select Select properties to be returned + * @param int|null $skip Skip the first n items + * @param int|null $top Show only the first n items + * @return ItemsRequestBuilderGetQueryParameters + */ + public static function createQueryParameters(?bool $count = null, ?array $expand = null, ?string $filter = null, ?array $orderby = null, ?string $search = null, ?array $select = null, ?int $skip = null, ?int $top = null): ItemsRequestBuilderGetQueryParameters { + return new ItemsRequestBuilderGetQueryParameters($count, $expand, $filter, $orderby, $search, $select, $skip, $top); + } + +} diff --git a/src/Generated/Admin/Exchange/Mailboxes/Item/Folders/Item/ChildFolders/Item/MailboxFolderItemRequestBuilder.php b/src/Generated/Admin/Exchange/Mailboxes/Item/Folders/Item/ChildFolders/Item/MailboxFolderItemRequestBuilder.php new file mode 100644 index 00000000000..4715b0c253d --- /dev/null +++ b/src/Generated/Admin/Exchange/Mailboxes/Item/Folders/Item/ChildFolders/Item/MailboxFolderItemRequestBuilder.php @@ -0,0 +1,85 @@ +pathParameters, $this->requestAdapter); + } + + /** + * Instantiates a new MailboxFolderItemRequestBuilder and sets the default values. + * @param array|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}/admin/exchange/mailboxes/{mailbox%2Did}/folders/{mailboxFolder%2Did}/childFolders/{mailboxFolder%2Did1}{?%24expand,%24select}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Get childFolders from admin + * @param MailboxFolderItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + */ + public function get(?MailboxFolderItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [MailboxFolder::class, 'createFromDiscriminatorValue'], $errorMappings); + } + + /** + * Get childFolders from admin + * @param MailboxFolderItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?MailboxFolderItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->tryAddHeader('Accept', "application/json"); + return $requestInfo; + } + + /** + * 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 MailboxFolderItemRequestBuilder + */ + public function withUrl(string $rawUrl): MailboxFolderItemRequestBuilder { + return new MailboxFolderItemRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/Admin/Exchange/Mailboxes/Item/Folders/Item/ChildFolders/Item/MailboxFolderItemRequestBuilderGetQueryParameters.php b/src/Generated/Admin/Exchange/Mailboxes/Item/Folders/Item/ChildFolders/Item/MailboxFolderItemRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..7a623589fdf --- /dev/null +++ b/src/Generated/Admin/Exchange/Mailboxes/Item/Folders/Item/ChildFolders/Item/MailboxFolderItemRequestBuilderGetQueryParameters.php @@ -0,0 +1,34 @@ +|null $expand Expand related entities + */ + public ?array $expand = null; + + /** + * @QueryParameter("%24select") + * @var array|null $select Select properties to be returned + */ + public ?array $select = null; + + /** + * Instantiates a new MailboxFolderItemRequestBuilderGetQueryParameters and sets the default values. + * @param array|null $expand Expand related entities + * @param array|null $select Select properties to be returned + */ + public function __construct(?array $expand = null, ?array $select = null) { + $this->expand = $expand; + $this->select = $select; + } + +} diff --git a/src/Generated/Admin/Exchange/Mailboxes/Item/Folders/Item/ChildFolders/Item/MailboxFolderItemRequestBuilderGetRequestConfiguration.php b/src/Generated/Admin/Exchange/Mailboxes/Item/Folders/Item/ChildFolders/Item/MailboxFolderItemRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..aed12fe93c8 --- /dev/null +++ b/src/Generated/Admin/Exchange/Mailboxes/Item/Folders/Item/ChildFolders/Item/MailboxFolderItemRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,39 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param MailboxFolderItemRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?MailboxFolderItemRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new MailboxFolderItemRequestBuilderGetQueryParameters. + * @param array|null $expand Expand related entities + * @param array|null $select Select properties to be returned + * @return MailboxFolderItemRequestBuilderGetQueryParameters + */ + public static function createQueryParameters(?array $expand = null, ?array $select = null): MailboxFolderItemRequestBuilderGetQueryParameters { + return new MailboxFolderItemRequestBuilderGetQueryParameters($expand, $select); + } + +} diff --git a/src/Generated/Admin/Exchange/Mailboxes/Item/Folders/Item/Items/Count/CountRequestBuilder.php b/src/Generated/Admin/Exchange/Mailboxes/Item/Folders/Item/Items/Count/CountRequestBuilder.php new file mode 100644 index 00000000000..6b9b33e3d68 --- /dev/null +++ b/src/Generated/Admin/Exchange/Mailboxes/Item/Folders/Item/Items/Count/CountRequestBuilder.php @@ -0,0 +1,78 @@ +|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}/admin/exchange/mailboxes/{mailbox%2Did}/folders/{mailboxFolder%2Did}/items/$count{?%24filter,%24search}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Get the number of the resource + * @param CountRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + */ + public function get(?CountRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + /** @var Promise $result */ + $result = $this->requestAdapter->sendPrimitiveAsync($requestInfo, 'int', $errorMappings); + return $result; + } + + /** + * Get the number of the resource + * @param CountRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?CountRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); + return $requestInfo; + } + + /** + * 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 CountRequestBuilder + */ + public function withUrl(string $rawUrl): CountRequestBuilder { + return new CountRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/Admin/Exchange/Mailboxes/Item/Folders/Item/Items/Count/CountRequestBuilderGetQueryParameters.php b/src/Generated/Admin/Exchange/Mailboxes/Item/Folders/Item/Items/Count/CountRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..06c7ed799ca --- /dev/null +++ b/src/Generated/Admin/Exchange/Mailboxes/Item/Folders/Item/Items/Count/CountRequestBuilderGetQueryParameters.php @@ -0,0 +1,34 @@ +filter = $filter; + $this->search = $search; + } + +} diff --git a/src/Generated/Admin/Exchange/Mailboxes/Item/Folders/Item/Items/Count/CountRequestBuilderGetRequestConfiguration.php b/src/Generated/Admin/Exchange/Mailboxes/Item/Folders/Item/Items/Count/CountRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..558dc0c55c1 --- /dev/null +++ b/src/Generated/Admin/Exchange/Mailboxes/Item/Folders/Item/Items/Count/CountRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,39 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param CountRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?CountRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new CountRequestBuilderGetQueryParameters. + * @param string|null $filter Filter items by property values + * @param string|null $search Search items by search phrases + * @return CountRequestBuilderGetQueryParameters + */ + public static function createQueryParameters(?string $filter = null, ?string $search = null): CountRequestBuilderGetQueryParameters { + return new CountRequestBuilderGetQueryParameters($filter, $search); + } + +} diff --git a/src/Generated/Admin/Exchange/Mailboxes/Item/Folders/Item/Items/Delta/DeltaGetResponse.php b/src/Generated/Admin/Exchange/Mailboxes/Item/Folders/Item/Items/Delta/DeltaGetResponse.php new file mode 100644 index 00000000000..a3cbbd87628 --- /dev/null +++ b/src/Generated/Admin/Exchange/Mailboxes/Item/Folders/Item/Items/Delta/DeltaGetResponse.php @@ -0,0 +1,72 @@ + + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([MailboxItem::class, 'createFromDiscriminatorValue'])), + ]); + } + + /** + * Gets the value property value. The value property + * @return array|null + */ + public function getValue(): ?array { + $val = $this->getBackingStore()->get('value'); + if (is_array($val) || is_null($val)) { + TypeUtils::validateCollectionValues($val, MailboxItem::class); + /** @var array|null $val */ + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'value'"); + } + + /** + * Serializes information the current object + * @param SerializationWriter $writer Serialization writer to use to serialize this model + */ + public function serialize(SerializationWriter $writer): void { + parent::serialize($writer); + $writer->writeCollectionOfObjectValues('value', $this->getValue()); + } + + /** + * Sets the value property value. The value property + * @param array|null $value Value to set for the value property. + */ + public function setValue(?array $value): void { + $this->getBackingStore()->set('value', $value); + } + +} diff --git a/src/Generated/Admin/Exchange/Mailboxes/Item/Folders/Item/Items/Delta/DeltaRequestBuilder.php b/src/Generated/Admin/Exchange/Mailboxes/Item/Folders/Item/Items/Delta/DeltaRequestBuilder.php new file mode 100644 index 00000000000..ef338cc4058 --- /dev/null +++ b/src/Generated/Admin/Exchange/Mailboxes/Item/Folders/Item/Items/Delta/DeltaRequestBuilder.php @@ -0,0 +1,76 @@ +|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}/admin/exchange/mailboxes/{mailbox%2Did}/folders/{mailboxFolder%2Did}/items/delta(){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Invoke function delta + * @param DeltaRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + */ + public function get(?DeltaRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [DeltaGetResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + } + + /** + * Invoke function delta + * @param DeltaRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?DeltaRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->tryAddHeader('Accept', "application/json"); + return $requestInfo; + } + + /** + * 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 DeltaRequestBuilder + */ + public function withUrl(string $rawUrl): DeltaRequestBuilder { + return new DeltaRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/Admin/Exchange/Mailboxes/Item/Folders/Item/Items/Delta/DeltaRequestBuilderGetQueryParameters.php b/src/Generated/Admin/Exchange/Mailboxes/Item/Folders/Item/Items/Delta/DeltaRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..d30685b4b72 --- /dev/null +++ b/src/Generated/Admin/Exchange/Mailboxes/Item/Folders/Item/Items/Delta/DeltaRequestBuilderGetQueryParameters.php @@ -0,0 +1,82 @@ +|null $expand Expand related entities + */ + public ?array $expand = null; + + /** + * @QueryParameter("%24filter") + * @var string|null $filter Filter items by property values + */ + public ?string $filter = null; + + /** + * @QueryParameter("%24orderby") + * @var array|null $orderby Order items by property values + */ + public ?array $orderby = null; + + /** + * @QueryParameter("%24search") + * @var string|null $search Search items by search phrases + */ + public ?string $search = null; + + /** + * @QueryParameter("%24select") + * @var array|null $select Select properties to be returned + */ + public ?array $select = null; + + /** + * @QueryParameter("%24skip") + * @var int|null $skip Skip the first n items + */ + public ?int $skip = null; + + /** + * @QueryParameter("%24top") + * @var int|null $top Show only the first n items + */ + public ?int $top = null; + + /** + * Instantiates a new DeltaRequestBuilderGetQueryParameters and sets the default values. + * @param bool|null $count Include count of items + * @param array|null $expand Expand related entities + * @param string|null $filter Filter items by property values + * @param array|null $orderby Order items by property values + * @param string|null $search Search items by search phrases + * @param array|null $select Select properties to be returned + * @param int|null $skip Skip the first n items + * @param int|null $top Show only the first n items + */ + 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) { + $this->count = $count; + $this->expand = $expand; + $this->filter = $filter; + $this->orderby = $orderby; + $this->search = $search; + $this->select = $select; + $this->skip = $skip; + $this->top = $top; + } + +} diff --git a/src/Generated/Admin/Exchange/Mailboxes/Item/Folders/Item/Items/Delta/DeltaRequestBuilderGetRequestConfiguration.php b/src/Generated/Admin/Exchange/Mailboxes/Item/Folders/Item/Items/Delta/DeltaRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..5b98dbb712a --- /dev/null +++ b/src/Generated/Admin/Exchange/Mailboxes/Item/Folders/Item/Items/Delta/DeltaRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,45 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param DeltaRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?DeltaRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new DeltaRequestBuilderGetQueryParameters. + * @param bool|null $count Include count of items + * @param array|null $expand Expand related entities + * @param string|null $filter Filter items by property values + * @param array|null $orderby Order items by property values + * @param string|null $search Search items by search phrases + * @param array|null $select Select properties to be returned + * @param int|null $skip Skip the first n items + * @param int|null $top Show only the first n items + * @return DeltaRequestBuilderGetQueryParameters + */ + public static function createQueryParameters(?bool $count = null, ?array $expand = null, ?string $filter = null, ?array $orderby = null, ?string $search = null, ?array $select = null, ?int $skip = null, ?int $top = null): DeltaRequestBuilderGetQueryParameters { + return new DeltaRequestBuilderGetQueryParameters($count, $expand, $filter, $orderby, $search, $select, $skip, $top); + } + +} diff --git a/src/Generated/Admin/Exchange/Mailboxes/Item/Folders/Item/Items/Item/MailboxItemItemRequestBuilder.php b/src/Generated/Admin/Exchange/Mailboxes/Item/Folders/Item/Items/Item/MailboxItemItemRequestBuilder.php new file mode 100644 index 00000000000..81dd2d6586e --- /dev/null +++ b/src/Generated/Admin/Exchange/Mailboxes/Item/Folders/Item/Items/Item/MailboxItemItemRequestBuilder.php @@ -0,0 +1,77 @@ +|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}/admin/exchange/mailboxes/{mailbox%2Did}/folders/{mailboxFolder%2Did}/items/{mailboxItem%2Did}{?%24expand,%24select}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Get items from admin + * @param MailboxItemItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + */ + public function get(?MailboxItemItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [MailboxItem::class, 'createFromDiscriminatorValue'], $errorMappings); + } + + /** + * Get items from admin + * @param MailboxItemItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?MailboxItemItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->tryAddHeader('Accept', "application/json"); + return $requestInfo; + } + + /** + * 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 MailboxItemItemRequestBuilder + */ + public function withUrl(string $rawUrl): MailboxItemItemRequestBuilder { + return new MailboxItemItemRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/Admin/Exchange/Mailboxes/Item/Folders/Item/Items/Item/MailboxItemItemRequestBuilderGetQueryParameters.php b/src/Generated/Admin/Exchange/Mailboxes/Item/Folders/Item/Items/Item/MailboxItemItemRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..8bcab975be4 --- /dev/null +++ b/src/Generated/Admin/Exchange/Mailboxes/Item/Folders/Item/Items/Item/MailboxItemItemRequestBuilderGetQueryParameters.php @@ -0,0 +1,34 @@ +|null $expand Expand related entities + */ + public ?array $expand = null; + + /** + * @QueryParameter("%24select") + * @var array|null $select Select properties to be returned + */ + public ?array $select = null; + + /** + * Instantiates a new MailboxItemItemRequestBuilderGetQueryParameters and sets the default values. + * @param array|null $expand Expand related entities + * @param array|null $select Select properties to be returned + */ + public function __construct(?array $expand = null, ?array $select = null) { + $this->expand = $expand; + $this->select = $select; + } + +} diff --git a/src/Generated/Admin/Exchange/Mailboxes/Item/Folders/Item/Items/Item/MailboxItemItemRequestBuilderGetRequestConfiguration.php b/src/Generated/Admin/Exchange/Mailboxes/Item/Folders/Item/Items/Item/MailboxItemItemRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..e0d329fbf7e --- /dev/null +++ b/src/Generated/Admin/Exchange/Mailboxes/Item/Folders/Item/Items/Item/MailboxItemItemRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,39 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param MailboxItemItemRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?MailboxItemItemRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new MailboxItemItemRequestBuilderGetQueryParameters. + * @param array|null $expand Expand related entities + * @param array|null $select Select properties to be returned + * @return MailboxItemItemRequestBuilderGetQueryParameters + */ + public static function createQueryParameters(?array $expand = null, ?array $select = null): MailboxItemItemRequestBuilderGetQueryParameters { + return new MailboxItemItemRequestBuilderGetQueryParameters($expand, $select); + } + +} diff --git a/src/Generated/Admin/Exchange/Mailboxes/Item/Folders/Item/Items/ItemsRequestBuilder.php b/src/Generated/Admin/Exchange/Mailboxes/Item/Folders/Item/Items/ItemsRequestBuilder.php new file mode 100644 index 00000000000..069b7c9358a --- /dev/null +++ b/src/Generated/Admin/Exchange/Mailboxes/Item/Folders/Item/Items/ItemsRequestBuilder.php @@ -0,0 +1,105 @@ +pathParameters, $this->requestAdapter); + } + + /** + * Provides operations to call the delta method. + */ + public function delta(): DeltaRequestBuilder { + return new DeltaRequestBuilder($this->pathParameters, $this->requestAdapter); + } + + /** + * Provides operations to manage the items property of the microsoft.graph.mailboxFolder entity. + * @param string $mailboxItemId The unique identifier of mailboxItem + * @return MailboxItemItemRequestBuilder + */ + public function byMailboxItemId(string $mailboxItemId): MailboxItemItemRequestBuilder { + $urlTplParams = $this->pathParameters; + $urlTplParams['mailboxItem%2Did'] = $mailboxItemId; + return new MailboxItemItemRequestBuilder($urlTplParams, $this->requestAdapter); + } + + /** + * Instantiates a new ItemsRequestBuilder and sets the default values. + * @param array|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}/admin/exchange/mailboxes/{mailbox%2Did}/folders/{mailboxFolder%2Did}/items{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Get items from admin + * @param ItemsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + */ + public function get(?ItemsRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [MailboxItemCollectionResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + } + + /** + * Get items from admin + * @param ItemsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?ItemsRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->tryAddHeader('Accept', "application/json"); + return $requestInfo; + } + + /** + * 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 ItemsRequestBuilder + */ + public function withUrl(string $rawUrl): ItemsRequestBuilder { + return new ItemsRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/Admin/Exchange/Mailboxes/Item/Folders/Item/Items/ItemsRequestBuilderGetQueryParameters.php b/src/Generated/Admin/Exchange/Mailboxes/Item/Folders/Item/Items/ItemsRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..e2e885934eb --- /dev/null +++ b/src/Generated/Admin/Exchange/Mailboxes/Item/Folders/Item/Items/ItemsRequestBuilderGetQueryParameters.php @@ -0,0 +1,82 @@ +|null $expand Expand related entities + */ + public ?array $expand = null; + + /** + * @QueryParameter("%24filter") + * @var string|null $filter Filter items by property values + */ + public ?string $filter = null; + + /** + * @QueryParameter("%24orderby") + * @var array|null $orderby Order items by property values + */ + public ?array $orderby = null; + + /** + * @QueryParameter("%24search") + * @var string|null $search Search items by search phrases + */ + public ?string $search = null; + + /** + * @QueryParameter("%24select") + * @var array|null $select Select properties to be returned + */ + public ?array $select = null; + + /** + * @QueryParameter("%24skip") + * @var int|null $skip Skip the first n items + */ + public ?int $skip = null; + + /** + * @QueryParameter("%24top") + * @var int|null $top Show only the first n items + */ + public ?int $top = null; + + /** + * Instantiates a new ItemsRequestBuilderGetQueryParameters and sets the default values. + * @param bool|null $count Include count of items + * @param array|null $expand Expand related entities + * @param string|null $filter Filter items by property values + * @param array|null $orderby Order items by property values + * @param string|null $search Search items by search phrases + * @param array|null $select Select properties to be returned + * @param int|null $skip Skip the first n items + * @param int|null $top Show only the first n items + */ + 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) { + $this->count = $count; + $this->expand = $expand; + $this->filter = $filter; + $this->orderby = $orderby; + $this->search = $search; + $this->select = $select; + $this->skip = $skip; + $this->top = $top; + } + +} diff --git a/src/Generated/Admin/Exchange/Mailboxes/Item/Folders/Item/Items/ItemsRequestBuilderGetRequestConfiguration.php b/src/Generated/Admin/Exchange/Mailboxes/Item/Folders/Item/Items/ItemsRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..744fed71efa --- /dev/null +++ b/src/Generated/Admin/Exchange/Mailboxes/Item/Folders/Item/Items/ItemsRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,45 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param ItemsRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?ItemsRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new ItemsRequestBuilderGetQueryParameters. + * @param bool|null $count Include count of items + * @param array|null $expand Expand related entities + * @param string|null $filter Filter items by property values + * @param array|null $orderby Order items by property values + * @param string|null $search Search items by search phrases + * @param array|null $select Select properties to be returned + * @param int|null $skip Skip the first n items + * @param int|null $top Show only the first n items + * @return ItemsRequestBuilderGetQueryParameters + */ + public static function createQueryParameters(?bool $count = null, ?array $expand = null, ?string $filter = null, ?array $orderby = null, ?string $search = null, ?array $select = null, ?int $skip = null, ?int $top = null): ItemsRequestBuilderGetQueryParameters { + return new ItemsRequestBuilderGetQueryParameters($count, $expand, $filter, $orderby, $search, $select, $skip, $top); + } + +} diff --git a/src/Generated/Admin/Exchange/Mailboxes/Item/Folders/Item/MailboxFolderItemRequestBuilder.php b/src/Generated/Admin/Exchange/Mailboxes/Item/Folders/Item/MailboxFolderItemRequestBuilder.php new file mode 100644 index 00000000000..f90ad0d886b --- /dev/null +++ b/src/Generated/Admin/Exchange/Mailboxes/Item/Folders/Item/MailboxFolderItemRequestBuilder.php @@ -0,0 +1,93 @@ +pathParameters, $this->requestAdapter); + } + + /** + * Provides operations to manage the items property of the microsoft.graph.mailboxFolder entity. + */ + public function items(): ItemsRequestBuilder { + return new ItemsRequestBuilder($this->pathParameters, $this->requestAdapter); + } + + /** + * Instantiates a new MailboxFolderItemRequestBuilder and sets the default values. + * @param array|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}/admin/exchange/mailboxes/{mailbox%2Did}/folders/{mailboxFolder%2Did}{?%24expand,%24select}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Get folders from admin + * @param MailboxFolderItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + */ + public function get(?MailboxFolderItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [MailboxFolder::class, 'createFromDiscriminatorValue'], $errorMappings); + } + + /** + * Get folders from admin + * @param MailboxFolderItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?MailboxFolderItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->tryAddHeader('Accept', "application/json"); + return $requestInfo; + } + + /** + * 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 MailboxFolderItemRequestBuilder + */ + public function withUrl(string $rawUrl): MailboxFolderItemRequestBuilder { + return new MailboxFolderItemRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/Admin/Exchange/Mailboxes/Item/Folders/Item/MailboxFolderItemRequestBuilderGetQueryParameters.php b/src/Generated/Admin/Exchange/Mailboxes/Item/Folders/Item/MailboxFolderItemRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..d0589cd7dbc --- /dev/null +++ b/src/Generated/Admin/Exchange/Mailboxes/Item/Folders/Item/MailboxFolderItemRequestBuilderGetQueryParameters.php @@ -0,0 +1,34 @@ +|null $expand Expand related entities + */ + public ?array $expand = null; + + /** + * @QueryParameter("%24select") + * @var array|null $select Select properties to be returned + */ + public ?array $select = null; + + /** + * Instantiates a new MailboxFolderItemRequestBuilderGetQueryParameters and sets the default values. + * @param array|null $expand Expand related entities + * @param array|null $select Select properties to be returned + */ + public function __construct(?array $expand = null, ?array $select = null) { + $this->expand = $expand; + $this->select = $select; + } + +} diff --git a/src/Generated/Admin/Exchange/Mailboxes/Item/Folders/Item/MailboxFolderItemRequestBuilderGetRequestConfiguration.php b/src/Generated/Admin/Exchange/Mailboxes/Item/Folders/Item/MailboxFolderItemRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..c16453327f5 --- /dev/null +++ b/src/Generated/Admin/Exchange/Mailboxes/Item/Folders/Item/MailboxFolderItemRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,39 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param MailboxFolderItemRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?MailboxFolderItemRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new MailboxFolderItemRequestBuilderGetQueryParameters. + * @param array|null $expand Expand related entities + * @param array|null $select Select properties to be returned + * @return MailboxFolderItemRequestBuilderGetQueryParameters + */ + public static function createQueryParameters(?array $expand = null, ?array $select = null): MailboxFolderItemRequestBuilderGetQueryParameters { + return new MailboxFolderItemRequestBuilderGetQueryParameters($expand, $select); + } + +} diff --git a/src/Generated/Admin/Exchange/Mailboxes/Item/MailboxItemRequestBuilder.php b/src/Generated/Admin/Exchange/Mailboxes/Item/MailboxItemRequestBuilder.php new file mode 100644 index 00000000000..4a47f67e54a --- /dev/null +++ b/src/Generated/Admin/Exchange/Mailboxes/Item/MailboxItemRequestBuilder.php @@ -0,0 +1,168 @@ +pathParameters, $this->requestAdapter); + } + + /** + * Provides operations to call the exportItems method. + */ + public function exportItems(): ExportItemsRequestBuilder { + return new ExportItemsRequestBuilder($this->pathParameters, $this->requestAdapter); + } + + /** + * Provides operations to manage the folders property of the microsoft.graph.mailbox entity. + */ + public function folders(): FoldersRequestBuilder { + return new FoldersRequestBuilder($this->pathParameters, $this->requestAdapter); + } + + /** + * Instantiates a new MailboxItemRequestBuilder and sets the default values. + * @param array|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}/admin/exchange/mailboxes/{mailbox%2Did}{?%24expand,%24select}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Delete navigation property mailboxes for admin + * @param MailboxItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + */ + public function delete(?MailboxItemRequestBuilderDeleteRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toDeleteRequestInformation($requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendNoContentAsync($requestInfo, $errorMappings); + } + + /** + * Get mailboxes from admin + * @param MailboxItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + */ + public function get(?MailboxItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [Mailbox::class, 'createFromDiscriminatorValue'], $errorMappings); + } + + /** + * Update the navigation property mailboxes in admin + * @param Mailbox $body The request body + * @param MailboxItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + */ + public function patch(Mailbox $body, ?MailboxItemRequestBuilderPatchRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPatchRequestInformation($body, $requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [Mailbox::class, 'createFromDiscriminatorValue'], $errorMappings); + } + + /** + * Delete navigation property mailboxes for admin + * @param MailboxItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toDeleteRequestInformation(?MailboxItemRequestBuilderDeleteRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::DELETE; + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->tryAddHeader('Accept', "application/json"); + return $requestInfo; + } + + /** + * Get mailboxes from admin + * @param MailboxItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?MailboxItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->tryAddHeader('Accept', "application/json"); + return $requestInfo; + } + + /** + * Update the navigation property mailboxes in admin + * @param Mailbox $body The request body + * @param MailboxItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPatchRequestInformation(Mailbox $body, ?MailboxItemRequestBuilderPatchRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::PATCH; + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->tryAddHeader('Accept', "application/json"); + $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); + return $requestInfo; + } + + /** + * 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 MailboxItemRequestBuilder + */ + public function withUrl(string $rawUrl): MailboxItemRequestBuilder { + return new MailboxItemRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/Admin/Exchange/Mailboxes/Item/MailboxItemRequestBuilderDeleteRequestConfiguration.php b/src/Generated/Admin/Exchange/Mailboxes/Item/MailboxItemRequestBuilderDeleteRequestConfiguration.php new file mode 100644 index 00000000000..e8c32024b32 --- /dev/null +++ b/src/Generated/Admin/Exchange/Mailboxes/Item/MailboxItemRequestBuilderDeleteRequestConfiguration.php @@ -0,0 +1,22 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + */ + public function __construct(?array $headers = null, ?array $options = null) { + parent::__construct($headers ?? [], $options ?? []); + } + +} diff --git a/src/Generated/Admin/Exchange/Mailboxes/Item/MailboxItemRequestBuilderGetQueryParameters.php b/src/Generated/Admin/Exchange/Mailboxes/Item/MailboxItemRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..e7cbc85e1fd --- /dev/null +++ b/src/Generated/Admin/Exchange/Mailboxes/Item/MailboxItemRequestBuilderGetQueryParameters.php @@ -0,0 +1,34 @@ +|null $expand Expand related entities + */ + public ?array $expand = null; + + /** + * @QueryParameter("%24select") + * @var array|null $select Select properties to be returned + */ + public ?array $select = null; + + /** + * Instantiates a new MailboxItemRequestBuilderGetQueryParameters and sets the default values. + * @param array|null $expand Expand related entities + * @param array|null $select Select properties to be returned + */ + public function __construct(?array $expand = null, ?array $select = null) { + $this->expand = $expand; + $this->select = $select; + } + +} diff --git a/src/Generated/Admin/Exchange/Mailboxes/Item/MailboxItemRequestBuilderGetRequestConfiguration.php b/src/Generated/Admin/Exchange/Mailboxes/Item/MailboxItemRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..549777a8f2d --- /dev/null +++ b/src/Generated/Admin/Exchange/Mailboxes/Item/MailboxItemRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,39 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param MailboxItemRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?MailboxItemRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new MailboxItemRequestBuilderGetQueryParameters. + * @param array|null $expand Expand related entities + * @param array|null $select Select properties to be returned + * @return MailboxItemRequestBuilderGetQueryParameters + */ + public static function createQueryParameters(?array $expand = null, ?array $select = null): MailboxItemRequestBuilderGetQueryParameters { + return new MailboxItemRequestBuilderGetQueryParameters($expand, $select); + } + +} diff --git a/src/Generated/Admin/Exchange/Mailboxes/Item/MailboxItemRequestBuilderPatchRequestConfiguration.php b/src/Generated/Admin/Exchange/Mailboxes/Item/MailboxItemRequestBuilderPatchRequestConfiguration.php new file mode 100644 index 00000000000..fd1f2b7e746 --- /dev/null +++ b/src/Generated/Admin/Exchange/Mailboxes/Item/MailboxItemRequestBuilderPatchRequestConfiguration.php @@ -0,0 +1,22 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + */ + public function __construct(?array $headers = null, ?array $options = null) { + parent::__construct($headers ?? [], $options ?? []); + } + +} diff --git a/src/Generated/Admin/Exchange/Mailboxes/MailboxesRequestBuilder.php b/src/Generated/Admin/Exchange/Mailboxes/MailboxesRequestBuilder.php new file mode 100644 index 00000000000..91be49e7c5f --- /dev/null +++ b/src/Generated/Admin/Exchange/Mailboxes/MailboxesRequestBuilder.php @@ -0,0 +1,133 @@ +pathParameters, $this->requestAdapter); + } + + /** + * Provides operations to manage the mailboxes property of the microsoft.graph.exchangeAdmin entity. + * @param string $mailboxId The unique identifier of mailbox + * @return MailboxItemRequestBuilder + */ + public function byMailboxId(string $mailboxId): MailboxItemRequestBuilder { + $urlTplParams = $this->pathParameters; + $urlTplParams['mailbox%2Did'] = $mailboxId; + return new MailboxItemRequestBuilder($urlTplParams, $this->requestAdapter); + } + + /** + * Instantiates a new MailboxesRequestBuilder and sets the default values. + * @param array|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}/admin/exchange/mailboxes{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Get mailboxes from admin + * @param MailboxesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + */ + public function get(?MailboxesRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [MailboxCollectionResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + } + + /** + * Create new navigation property to mailboxes for admin + * @param Mailbox $body The request body + * @param MailboxesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + */ + public function post(Mailbox $body, ?MailboxesRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [Mailbox::class, 'createFromDiscriminatorValue'], $errorMappings); + } + + /** + * Get mailboxes from admin + * @param MailboxesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?MailboxesRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->tryAddHeader('Accept', "application/json"); + return $requestInfo; + } + + /** + * Create new navigation property to mailboxes for admin + * @param Mailbox $body The request body + * @param MailboxesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPostRequestInformation(Mailbox $body, ?MailboxesRequestBuilderPostRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::POST; + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->tryAddHeader('Accept', "application/json"); + $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); + return $requestInfo; + } + + /** + * 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 MailboxesRequestBuilder + */ + public function withUrl(string $rawUrl): MailboxesRequestBuilder { + return new MailboxesRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/Admin/Exchange/Mailboxes/MailboxesRequestBuilderGetQueryParameters.php b/src/Generated/Admin/Exchange/Mailboxes/MailboxesRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..c5fcd12a2cd --- /dev/null +++ b/src/Generated/Admin/Exchange/Mailboxes/MailboxesRequestBuilderGetQueryParameters.php @@ -0,0 +1,82 @@ +|null $expand Expand related entities + */ + public ?array $expand = null; + + /** + * @QueryParameter("%24filter") + * @var string|null $filter Filter items by property values + */ + public ?string $filter = null; + + /** + * @QueryParameter("%24orderby") + * @var array|null $orderby Order items by property values + */ + public ?array $orderby = null; + + /** + * @QueryParameter("%24search") + * @var string|null $search Search items by search phrases + */ + public ?string $search = null; + + /** + * @QueryParameter("%24select") + * @var array|null $select Select properties to be returned + */ + public ?array $select = null; + + /** + * @QueryParameter("%24skip") + * @var int|null $skip Skip the first n items + */ + public ?int $skip = null; + + /** + * @QueryParameter("%24top") + * @var int|null $top Show only the first n items + */ + public ?int $top = null; + + /** + * Instantiates a new MailboxesRequestBuilderGetQueryParameters and sets the default values. + * @param bool|null $count Include count of items + * @param array|null $expand Expand related entities + * @param string|null $filter Filter items by property values + * @param array|null $orderby Order items by property values + * @param string|null $search Search items by search phrases + * @param array|null $select Select properties to be returned + * @param int|null $skip Skip the first n items + * @param int|null $top Show only the first n items + */ + 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) { + $this->count = $count; + $this->expand = $expand; + $this->filter = $filter; + $this->orderby = $orderby; + $this->search = $search; + $this->select = $select; + $this->skip = $skip; + $this->top = $top; + } + +} diff --git a/src/Generated/Admin/Exchange/Mailboxes/MailboxesRequestBuilderGetRequestConfiguration.php b/src/Generated/Admin/Exchange/Mailboxes/MailboxesRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..a437f2f4399 --- /dev/null +++ b/src/Generated/Admin/Exchange/Mailboxes/MailboxesRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,45 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param MailboxesRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?MailboxesRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new MailboxesRequestBuilderGetQueryParameters. + * @param bool|null $count Include count of items + * @param array|null $expand Expand related entities + * @param string|null $filter Filter items by property values + * @param array|null $orderby Order items by property values + * @param string|null $search Search items by search phrases + * @param array|null $select Select properties to be returned + * @param int|null $skip Skip the first n items + * @param int|null $top Show only the first n items + * @return MailboxesRequestBuilderGetQueryParameters + */ + public static function createQueryParameters(?bool $count = null, ?array $expand = null, ?string $filter = null, ?array $orderby = null, ?string $search = null, ?array $select = null, ?int $skip = null, ?int $top = null): MailboxesRequestBuilderGetQueryParameters { + return new MailboxesRequestBuilderGetQueryParameters($count, $expand, $filter, $orderby, $search, $select, $skip, $top); + } + +} diff --git a/src/Generated/Admin/Exchange/Mailboxes/MailboxesRequestBuilderPostRequestConfiguration.php b/src/Generated/Admin/Exchange/Mailboxes/MailboxesRequestBuilderPostRequestConfiguration.php new file mode 100644 index 00000000000..6fc9a86ef5e --- /dev/null +++ b/src/Generated/Admin/Exchange/Mailboxes/MailboxesRequestBuilderPostRequestConfiguration.php @@ -0,0 +1,22 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + */ + public function __construct(?array $headers = null, ?array $options = null) { + parent::__construct($headers ?? [], $options ?? []); + } + +} diff --git a/src/Generated/Admin/Exchange/Tracing/MessageTraces/Item/GetDetailsByRecipientWithRecipientAddress/GetDetailsByRecipientWithRecipientAddressRequestBuilder.php b/src/Generated/Admin/Exchange/Tracing/MessageTraces/Item/GetDetailsByRecipientWithRecipientAddress/GetDetailsByRecipientWithRecipientAddressRequestBuilder.php index ea8a65cce99..76f3a5b4897 100644 --- a/src/Generated/Admin/Exchange/Tracing/MessageTraces/Item/GetDetailsByRecipientWithRecipientAddress/GetDetailsByRecipientWithRecipientAddressRequestBuilder.php +++ b/src/Generated/Admin/Exchange/Tracing/MessageTraces/Item/GetDetailsByRecipientWithRecipientAddress/GetDetailsByRecipientWithRecipientAddressRequestBuilder.php @@ -37,6 +37,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap * @param GetDetailsByRecipientWithRecipientAddressRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @throws Exception + * @link https://learn.microsoft.com/graph/api/exchangemessagetrace-getdetailsbyrecipient?view=graph-rest-1.0 Find more info here */ public function get(?GetDetailsByRecipientWithRecipientAddressRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toGetRequestInformation($requestConfiguration); diff --git a/src/Generated/Admin/People/PeopleRequestBuilder.php b/src/Generated/Admin/People/PeopleRequestBuilder.php index 78eca30167c..480bd5caad3 100644 --- a/src/Generated/Admin/People/PeopleRequestBuilder.php +++ b/src/Generated/Admin/People/PeopleRequestBuilder.php @@ -6,6 +6,8 @@ use Http\Promise\Promise; use Microsoft\Graph\Generated\Admin\People\ItemInsights\ItemInsightsRequestBuilder; use Microsoft\Graph\Generated\Admin\People\ProfileCardProperties\ProfileCardPropertiesRequestBuilder; +use Microsoft\Graph\Generated\Admin\People\ProfileSources\ProfileSourcesRequestBuilder; +use Microsoft\Graph\Generated\Admin\People\ProfileSourcesWithSourceId\ProfileSourcesWithSourceIdRequestBuilder; use Microsoft\Graph\Generated\Admin\People\Pronouns\PronounsRequestBuilder; use Microsoft\Graph\Generated\Models\ODataErrors\ODataError; use Microsoft\Graph\Generated\Models\PeopleAdminSettings; @@ -33,6 +35,13 @@ public function profileCardProperties(): ProfileCardPropertiesRequestBuilder { return new ProfileCardPropertiesRequestBuilder($this->pathParameters, $this->requestAdapter); } + /** + * Provides operations to manage the profileSources property of the microsoft.graph.peopleAdminSettings entity. + */ + public function profileSources(): ProfileSourcesRequestBuilder { + return new ProfileSourcesRequestBuilder($this->pathParameters, $this->requestAdapter); + } + /** * Provides operations to manage the pronouns property of the microsoft.graph.peopleAdminSettings entity. */ @@ -69,6 +78,15 @@ public function get(?PeopleRequestBuilderGetRequestConfiguration $requestConfigu return $this->requestAdapter->sendAsync($requestInfo, [PeopleAdminSettings::class, 'createFromDiscriminatorValue'], $errorMappings); } + /** + * Provides operations to manage the profileSources property of the microsoft.graph.peopleAdminSettings entity. + * @param string $sourceId Alternate key of profileSource + * @return ProfileSourcesWithSourceIdRequestBuilder + */ + public function profileSourcesWithSourceId(string $sourceId): ProfileSourcesWithSourceIdRequestBuilder { + return new ProfileSourcesWithSourceIdRequestBuilder($this->pathParameters, $this->requestAdapter, $sourceId); + } + /** * Retrieve the properties and relationships of a peopleAdminSettings object. * @param PeopleRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Generated/Admin/People/ProfileSources/Count/CountRequestBuilder.php b/src/Generated/Admin/People/ProfileSources/Count/CountRequestBuilder.php new file mode 100644 index 00000000000..86d536b1919 --- /dev/null +++ b/src/Generated/Admin/People/ProfileSources/Count/CountRequestBuilder.php @@ -0,0 +1,78 @@ +|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}/admin/people/profileSources/$count{?%24filter,%24search}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Get the number of the resource + * @param CountRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + */ + public function get(?CountRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + /** @var Promise $result */ + $result = $this->requestAdapter->sendPrimitiveAsync($requestInfo, 'int', $errorMappings); + return $result; + } + + /** + * Get the number of the resource + * @param CountRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?CountRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); + return $requestInfo; + } + + /** + * 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 CountRequestBuilder + */ + public function withUrl(string $rawUrl): CountRequestBuilder { + return new CountRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/Admin/People/ProfileSources/Count/CountRequestBuilderGetQueryParameters.php b/src/Generated/Admin/People/ProfileSources/Count/CountRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..bb8a113230c --- /dev/null +++ b/src/Generated/Admin/People/ProfileSources/Count/CountRequestBuilderGetQueryParameters.php @@ -0,0 +1,34 @@ +filter = $filter; + $this->search = $search; + } + +} diff --git a/src/Generated/Admin/People/ProfileSources/Count/CountRequestBuilderGetRequestConfiguration.php b/src/Generated/Admin/People/ProfileSources/Count/CountRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..eb663633c88 --- /dev/null +++ b/src/Generated/Admin/People/ProfileSources/Count/CountRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,39 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param CountRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?CountRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new CountRequestBuilderGetQueryParameters. + * @param string|null $filter Filter items by property values + * @param string|null $search Search items by search phrases + * @return CountRequestBuilderGetQueryParameters + */ + public static function createQueryParameters(?string $filter = null, ?string $search = null): CountRequestBuilderGetQueryParameters { + return new CountRequestBuilderGetQueryParameters($filter, $search); + } + +} diff --git a/src/Generated/Admin/People/ProfileSources/Item/ProfileSourceItemRequestBuilder.php b/src/Generated/Admin/People/ProfileSources/Item/ProfileSourceItemRequestBuilder.php new file mode 100644 index 00000000000..5c491ab0eeb --- /dev/null +++ b/src/Generated/Admin/People/ProfileSources/Item/ProfileSourceItemRequestBuilder.php @@ -0,0 +1,146 @@ +|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}/admin/people/profileSources/{profileSource%2Did}{?%24expand,%24select}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Delete a profileSource object. + * @param ProfileSourceItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + * @link https://learn.microsoft.com/graph/api/profilesource-delete?view=graph-rest-1.0 Find more info here + */ + public function delete(?ProfileSourceItemRequestBuilderDeleteRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toDeleteRequestInformation($requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendNoContentAsync($requestInfo, $errorMappings); + } + + /** + * A collection of profile source settings configured by an administrator in an organization. + * @param ProfileSourceItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + */ + public function get(?ProfileSourceItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [ProfileSource::class, 'createFromDiscriminatorValue'], $errorMappings); + } + + /** + * Update the properties of a profileSource object. + * @param ProfileSource $body The request body + * @param ProfileSourceItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + * @link https://learn.microsoft.com/graph/api/profilesource-update?view=graph-rest-1.0 Find more info here + */ + public function patch(ProfileSource $body, ?ProfileSourceItemRequestBuilderPatchRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPatchRequestInformation($body, $requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [ProfileSource::class, 'createFromDiscriminatorValue'], $errorMappings); + } + + /** + * Delete a profileSource object. + * @param ProfileSourceItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toDeleteRequestInformation(?ProfileSourceItemRequestBuilderDeleteRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::DELETE; + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->tryAddHeader('Accept', "application/json"); + return $requestInfo; + } + + /** + * A collection of profile source settings configured by an administrator in an organization. + * @param ProfileSourceItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?ProfileSourceItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->tryAddHeader('Accept', "application/json"); + return $requestInfo; + } + + /** + * Update the properties of a profileSource object. + * @param ProfileSource $body The request body + * @param ProfileSourceItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPatchRequestInformation(ProfileSource $body, ?ProfileSourceItemRequestBuilderPatchRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::PATCH; + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->tryAddHeader('Accept', "application/json"); + $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); + return $requestInfo; + } + + /** + * 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 ProfileSourceItemRequestBuilder + */ + public function withUrl(string $rawUrl): ProfileSourceItemRequestBuilder { + return new ProfileSourceItemRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/Admin/People/ProfileSources/Item/ProfileSourceItemRequestBuilderDeleteRequestConfiguration.php b/src/Generated/Admin/People/ProfileSources/Item/ProfileSourceItemRequestBuilderDeleteRequestConfiguration.php new file mode 100644 index 00000000000..2133053b9df --- /dev/null +++ b/src/Generated/Admin/People/ProfileSources/Item/ProfileSourceItemRequestBuilderDeleteRequestConfiguration.php @@ -0,0 +1,22 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + */ + public function __construct(?array $headers = null, ?array $options = null) { + parent::__construct($headers ?? [], $options ?? []); + } + +} diff --git a/src/Generated/Admin/People/ProfileSources/Item/ProfileSourceItemRequestBuilderGetQueryParameters.php b/src/Generated/Admin/People/ProfileSources/Item/ProfileSourceItemRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..52d2fb0d165 --- /dev/null +++ b/src/Generated/Admin/People/ProfileSources/Item/ProfileSourceItemRequestBuilderGetQueryParameters.php @@ -0,0 +1,34 @@ +|null $expand Expand related entities + */ + public ?array $expand = null; + + /** + * @QueryParameter("%24select") + * @var array|null $select Select properties to be returned + */ + public ?array $select = null; + + /** + * Instantiates a new ProfileSourceItemRequestBuilderGetQueryParameters and sets the default values. + * @param array|null $expand Expand related entities + * @param array|null $select Select properties to be returned + */ + public function __construct(?array $expand = null, ?array $select = null) { + $this->expand = $expand; + $this->select = $select; + } + +} diff --git a/src/Generated/Admin/People/ProfileSources/Item/ProfileSourceItemRequestBuilderGetRequestConfiguration.php b/src/Generated/Admin/People/ProfileSources/Item/ProfileSourceItemRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..70e2ed15b3a --- /dev/null +++ b/src/Generated/Admin/People/ProfileSources/Item/ProfileSourceItemRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,39 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param ProfileSourceItemRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?ProfileSourceItemRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new ProfileSourceItemRequestBuilderGetQueryParameters. + * @param array|null $expand Expand related entities + * @param array|null $select Select properties to be returned + * @return ProfileSourceItemRequestBuilderGetQueryParameters + */ + public static function createQueryParameters(?array $expand = null, ?array $select = null): ProfileSourceItemRequestBuilderGetQueryParameters { + return new ProfileSourceItemRequestBuilderGetQueryParameters($expand, $select); + } + +} diff --git a/src/Generated/Admin/People/ProfileSources/Item/ProfileSourceItemRequestBuilderPatchRequestConfiguration.php b/src/Generated/Admin/People/ProfileSources/Item/ProfileSourceItemRequestBuilderPatchRequestConfiguration.php new file mode 100644 index 00000000000..67ce6ed0dde --- /dev/null +++ b/src/Generated/Admin/People/ProfileSources/Item/ProfileSourceItemRequestBuilderPatchRequestConfiguration.php @@ -0,0 +1,22 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + */ + public function __construct(?array $headers = null, ?array $options = null) { + parent::__construct($headers ?? [], $options ?? []); + } + +} diff --git a/src/Generated/Admin/People/ProfileSources/ProfileSourcesRequestBuilder.php b/src/Generated/Admin/People/ProfileSources/ProfileSourcesRequestBuilder.php new file mode 100644 index 00000000000..fea1e90fdb5 --- /dev/null +++ b/src/Generated/Admin/People/ProfileSources/ProfileSourcesRequestBuilder.php @@ -0,0 +1,135 @@ +pathParameters, $this->requestAdapter); + } + + /** + * Provides operations to manage the profileSources property of the microsoft.graph.peopleAdminSettings entity. + * @param string $profileSourceId The unique identifier of profileSource + * @return ProfileSourceItemRequestBuilder + */ + public function byProfileSourceId(string $profileSourceId): ProfileSourceItemRequestBuilder { + $urlTplParams = $this->pathParameters; + $urlTplParams['profileSource%2Did'] = $profileSourceId; + return new ProfileSourceItemRequestBuilder($urlTplParams, $this->requestAdapter); + } + + /** + * Instantiates a new ProfileSourcesRequestBuilder and sets the default values. + * @param array|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}/admin/people/profileSources{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Get a list of the profileSource objects and their properties, which represent both external data sources and out-of-the-box Microsoft data sources configured for user profiles in an organization. + * @param ProfileSourcesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + * @link https://learn.microsoft.com/graph/api/peopleadminsettings-list-profilesources?view=graph-rest-1.0 Find more info here + */ + public function get(?ProfileSourcesRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [ProfileSourceCollectionResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + } + + /** + * Create a new profileSource object. + * @param ProfileSource $body The request body + * @param ProfileSourcesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + * @link https://learn.microsoft.com/graph/api/peopleadminsettings-post-profilesources?view=graph-rest-1.0 Find more info here + */ + public function post(ProfileSource $body, ?ProfileSourcesRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [ProfileSource::class, 'createFromDiscriminatorValue'], $errorMappings); + } + + /** + * Get a list of the profileSource objects and their properties, which represent both external data sources and out-of-the-box Microsoft data sources configured for user profiles in an organization. + * @param ProfileSourcesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?ProfileSourcesRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->tryAddHeader('Accept', "application/json"); + return $requestInfo; + } + + /** + * Create a new profileSource object. + * @param ProfileSource $body The request body + * @param ProfileSourcesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPostRequestInformation(ProfileSource $body, ?ProfileSourcesRequestBuilderPostRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::POST; + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->tryAddHeader('Accept', "application/json"); + $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); + return $requestInfo; + } + + /** + * 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 ProfileSourcesRequestBuilder + */ + public function withUrl(string $rawUrl): ProfileSourcesRequestBuilder { + return new ProfileSourcesRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/Admin/People/ProfileSources/ProfileSourcesRequestBuilderGetQueryParameters.php b/src/Generated/Admin/People/ProfileSources/ProfileSourcesRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..0c72a5eb850 --- /dev/null +++ b/src/Generated/Admin/People/ProfileSources/ProfileSourcesRequestBuilderGetQueryParameters.php @@ -0,0 +1,82 @@ +|null $expand Expand related entities + */ + public ?array $expand = null; + + /** + * @QueryParameter("%24filter") + * @var string|null $filter Filter items by property values + */ + public ?string $filter = null; + + /** + * @QueryParameter("%24orderby") + * @var array|null $orderby Order items by property values + */ + public ?array $orderby = null; + + /** + * @QueryParameter("%24search") + * @var string|null $search Search items by search phrases + */ + public ?string $search = null; + + /** + * @QueryParameter("%24select") + * @var array|null $select Select properties to be returned + */ + public ?array $select = null; + + /** + * @QueryParameter("%24skip") + * @var int|null $skip Skip the first n items + */ + public ?int $skip = null; + + /** + * @QueryParameter("%24top") + * @var int|null $top Show only the first n items + */ + public ?int $top = null; + + /** + * Instantiates a new ProfileSourcesRequestBuilderGetQueryParameters and sets the default values. + * @param bool|null $count Include count of items + * @param array|null $expand Expand related entities + * @param string|null $filter Filter items by property values + * @param array|null $orderby Order items by property values + * @param string|null $search Search items by search phrases + * @param array|null $select Select properties to be returned + * @param int|null $skip Skip the first n items + * @param int|null $top Show only the first n items + */ + 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) { + $this->count = $count; + $this->expand = $expand; + $this->filter = $filter; + $this->orderby = $orderby; + $this->search = $search; + $this->select = $select; + $this->skip = $skip; + $this->top = $top; + } + +} diff --git a/src/Generated/Admin/People/ProfileSources/ProfileSourcesRequestBuilderGetRequestConfiguration.php b/src/Generated/Admin/People/ProfileSources/ProfileSourcesRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..04dd3040c05 --- /dev/null +++ b/src/Generated/Admin/People/ProfileSources/ProfileSourcesRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,45 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param ProfileSourcesRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?ProfileSourcesRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new ProfileSourcesRequestBuilderGetQueryParameters. + * @param bool|null $count Include count of items + * @param array|null $expand Expand related entities + * @param string|null $filter Filter items by property values + * @param array|null $orderby Order items by property values + * @param string|null $search Search items by search phrases + * @param array|null $select Select properties to be returned + * @param int|null $skip Skip the first n items + * @param int|null $top Show only the first n items + * @return ProfileSourcesRequestBuilderGetQueryParameters + */ + public static function createQueryParameters(?bool $count = null, ?array $expand = null, ?string $filter = null, ?array $orderby = null, ?string $search = null, ?array $select = null, ?int $skip = null, ?int $top = null): ProfileSourcesRequestBuilderGetQueryParameters { + return new ProfileSourcesRequestBuilderGetQueryParameters($count, $expand, $filter, $orderby, $search, $select, $skip, $top); + } + +} diff --git a/src/Generated/Admin/People/ProfileSources/ProfileSourcesRequestBuilderPostRequestConfiguration.php b/src/Generated/Admin/People/ProfileSources/ProfileSourcesRequestBuilderPostRequestConfiguration.php new file mode 100644 index 00000000000..4a266e19769 --- /dev/null +++ b/src/Generated/Admin/People/ProfileSources/ProfileSourcesRequestBuilderPostRequestConfiguration.php @@ -0,0 +1,22 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + */ + public function __construct(?array $headers = null, ?array $options = null) { + parent::__construct($headers ?? [], $options ?? []); + } + +} diff --git a/src/Generated/Admin/People/ProfileSourcesWithSourceId/ProfileSourcesWithSourceIdRequestBuilder.php b/src/Generated/Admin/People/ProfileSourcesWithSourceId/ProfileSourcesWithSourceIdRequestBuilder.php new file mode 100644 index 00000000000..02b53a10ab3 --- /dev/null +++ b/src/Generated/Admin/People/ProfileSourcesWithSourceId/ProfileSourcesWithSourceIdRequestBuilder.php @@ -0,0 +1,149 @@ +|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. + * @param string|null $sourceId Alternate key of profileSource + */ + public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdapter, ?string $sourceId = null) { + parent::__construct($requestAdapter, [], '{+baseurl}/admin/people/profileSources(sourceId=\'{sourceId}\'){?%24expand,%24select}'); + if (is_array($pathParametersOrRawUrl)) { + $urlTplParams = $pathParametersOrRawUrl; + $urlTplParams['sourceId'] = $sourceId; + $this->pathParameters = $urlTplParams; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Delete a profileSource object. + * @param ProfileSourcesWithSourceIdRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + * @link https://learn.microsoft.com/graph/api/profilesource-delete?view=graph-rest-1.0 Find more info here + */ + public function delete(?ProfileSourcesWithSourceIdRequestBuilderDeleteRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toDeleteRequestInformation($requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendNoContentAsync($requestInfo, $errorMappings); + } + + /** + * A collection of profile source settings configured by an administrator in an organization. + * @param ProfileSourcesWithSourceIdRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + */ + public function get(?ProfileSourcesWithSourceIdRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [ProfileSource::class, 'createFromDiscriminatorValue'], $errorMappings); + } + + /** + * Update the properties of a profileSource object. + * @param ProfileSource $body The request body + * @param ProfileSourcesWithSourceIdRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + * @link https://learn.microsoft.com/graph/api/profilesource-update?view=graph-rest-1.0 Find more info here + */ + public function patch(ProfileSource $body, ?ProfileSourcesWithSourceIdRequestBuilderPatchRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPatchRequestInformation($body, $requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [ProfileSource::class, 'createFromDiscriminatorValue'], $errorMappings); + } + + /** + * Delete a profileSource object. + * @param ProfileSourcesWithSourceIdRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toDeleteRequestInformation(?ProfileSourcesWithSourceIdRequestBuilderDeleteRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::DELETE; + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->tryAddHeader('Accept', "application/json"); + return $requestInfo; + } + + /** + * A collection of profile source settings configured by an administrator in an organization. + * @param ProfileSourcesWithSourceIdRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?ProfileSourcesWithSourceIdRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->tryAddHeader('Accept', "application/json"); + return $requestInfo; + } + + /** + * Update the properties of a profileSource object. + * @param ProfileSource $body The request body + * @param ProfileSourcesWithSourceIdRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPatchRequestInformation(ProfileSource $body, ?ProfileSourcesWithSourceIdRequestBuilderPatchRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::PATCH; + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->tryAddHeader('Accept', "application/json"); + $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); + return $requestInfo; + } + + /** + * 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 ProfileSourcesWithSourceIdRequestBuilder + */ + public function withUrl(string $rawUrl): ProfileSourcesWithSourceIdRequestBuilder { + return new ProfileSourcesWithSourceIdRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/Admin/People/ProfileSourcesWithSourceId/ProfileSourcesWithSourceIdRequestBuilderDeleteRequestConfiguration.php b/src/Generated/Admin/People/ProfileSourcesWithSourceId/ProfileSourcesWithSourceIdRequestBuilderDeleteRequestConfiguration.php new file mode 100644 index 00000000000..efef8b8db2f --- /dev/null +++ b/src/Generated/Admin/People/ProfileSourcesWithSourceId/ProfileSourcesWithSourceIdRequestBuilderDeleteRequestConfiguration.php @@ -0,0 +1,22 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + */ + public function __construct(?array $headers = null, ?array $options = null) { + parent::__construct($headers ?? [], $options ?? []); + } + +} diff --git a/src/Generated/Admin/People/ProfileSourcesWithSourceId/ProfileSourcesWithSourceIdRequestBuilderGetQueryParameters.php b/src/Generated/Admin/People/ProfileSourcesWithSourceId/ProfileSourcesWithSourceIdRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..d9ffb1d4a1d --- /dev/null +++ b/src/Generated/Admin/People/ProfileSourcesWithSourceId/ProfileSourcesWithSourceIdRequestBuilderGetQueryParameters.php @@ -0,0 +1,34 @@ +|null $expand Expand related entities + */ + public ?array $expand = null; + + /** + * @QueryParameter("%24select") + * @var array|null $select Select properties to be returned + */ + public ?array $select = null; + + /** + * Instantiates a new ProfileSourcesWithSourceIdRequestBuilderGetQueryParameters and sets the default values. + * @param array|null $expand Expand related entities + * @param array|null $select Select properties to be returned + */ + public function __construct(?array $expand = null, ?array $select = null) { + $this->expand = $expand; + $this->select = $select; + } + +} diff --git a/src/Generated/Admin/People/ProfileSourcesWithSourceId/ProfileSourcesWithSourceIdRequestBuilderGetRequestConfiguration.php b/src/Generated/Admin/People/ProfileSourcesWithSourceId/ProfileSourcesWithSourceIdRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..3ab61f20778 --- /dev/null +++ b/src/Generated/Admin/People/ProfileSourcesWithSourceId/ProfileSourcesWithSourceIdRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,39 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param ProfileSourcesWithSourceIdRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?ProfileSourcesWithSourceIdRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new ProfileSourcesWithSourceIdRequestBuilderGetQueryParameters. + * @param array|null $expand Expand related entities + * @param array|null $select Select properties to be returned + * @return ProfileSourcesWithSourceIdRequestBuilderGetQueryParameters + */ + public static function createQueryParameters(?array $expand = null, ?array $select = null): ProfileSourcesWithSourceIdRequestBuilderGetQueryParameters { + return new ProfileSourcesWithSourceIdRequestBuilderGetQueryParameters($expand, $select); + } + +} diff --git a/src/Generated/Admin/People/ProfileSourcesWithSourceId/ProfileSourcesWithSourceIdRequestBuilderPatchRequestConfiguration.php b/src/Generated/Admin/People/ProfileSourcesWithSourceId/ProfileSourcesWithSourceIdRequestBuilderPatchRequestConfiguration.php new file mode 100644 index 00000000000..60d32cbffe9 --- /dev/null +++ b/src/Generated/Admin/People/ProfileSourcesWithSourceId/ProfileSourcesWithSourceIdRequestBuilderPatchRequestConfiguration.php @@ -0,0 +1,22 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + */ + public function __construct(?array $headers = null, ?array $options = null) { + parent::__construct($headers ?? [], $options ?? []); + } + +} diff --git a/src/Generated/Admin/Teams/TeamsRequestBuilder.php b/src/Generated/Admin/Teams/TeamsRequestBuilder.php index b6ca388c149..31701ef3fd4 100644 --- a/src/Generated/Admin/Teams/TeamsRequestBuilder.php +++ b/src/Generated/Admin/Teams/TeamsRequestBuilder.php @@ -5,6 +5,7 @@ use Exception; use Http\Promise\Promise; use Microsoft\Graph\Generated\Admin\Teams\Policy\PolicyRequestBuilder; +use Microsoft\Graph\Generated\Admin\Teams\TelephoneNumberManagement\TelephoneNumberManagementRequestBuilder; use Microsoft\Graph\Generated\Admin\Teams\UserConfigurations\UserConfigurationsRequestBuilder; use Microsoft\Graph\Generated\Models\ODataErrors\ODataError; use Microsoft\Graph\Generated\Models\TeamsAdministration\TeamsAdminRoot; @@ -25,6 +26,13 @@ public function policy(): PolicyRequestBuilder { return new PolicyRequestBuilder($this->pathParameters, $this->requestAdapter); } + /** + * Provides operations to manage the telephoneNumberManagement property of the microsoft.graph.teamsAdministration.teamsAdminRoot entity. + */ + public function telephoneNumberManagement(): TelephoneNumberManagementRequestBuilder { + return new TelephoneNumberManagementRequestBuilder($this->pathParameters, $this->requestAdapter); + } + /** * Provides operations to manage the userConfigurations property of the microsoft.graph.teamsAdministration.teamsAdminRoot entity. */ @@ -61,7 +69,7 @@ public function delete(?TeamsRequestBuilderDeleteRequestConfiguration $requestCo } /** - * A container for Teams administration functionalities, such as user configurations and policy assignments. + * A container for Teams administration functionalities, such as Teams telephone number management functionalities, user Teams configurations, and policy assignments. * @param TeamsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @throws Exception @@ -108,7 +116,7 @@ public function toDeleteRequestInformation(?TeamsRequestBuilderDeleteRequestConf } /** - * A container for Teams administration functionalities, such as user configurations and policy assignments. + * A container for Teams administration functionalities, such as Teams telephone number management functionalities, user Teams configurations, and policy assignments. * @param TeamsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Admin/Teams/TeamsRequestBuilderGetQueryParameters.php b/src/Generated/Admin/Teams/TeamsRequestBuilderGetQueryParameters.php index 311e6040828..3f7f21a5e93 100644 --- a/src/Generated/Admin/Teams/TeamsRequestBuilderGetQueryParameters.php +++ b/src/Generated/Admin/Teams/TeamsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * A container for Teams administration functionalities, such as user configurations and policy assignments. + * A container for Teams administration functionalities, such as Teams telephone number management functionalities, user Teams configurations, and policy assignments. */ class TeamsRequestBuilderGetQueryParameters { diff --git a/src/Generated/Admin/Teams/TelephoneNumberManagement/NumberAssignments/Count/CountRequestBuilder.php b/src/Generated/Admin/Teams/TelephoneNumberManagement/NumberAssignments/Count/CountRequestBuilder.php new file mode 100644 index 00000000000..6972acaad04 --- /dev/null +++ b/src/Generated/Admin/Teams/TelephoneNumberManagement/NumberAssignments/Count/CountRequestBuilder.php @@ -0,0 +1,78 @@ +|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}/admin/teams/telephoneNumberManagement/numberAssignments/$count{?%24filter,%24search}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Get the number of the resource + * @param CountRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + */ + public function get(?CountRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + /** @var Promise $result */ + $result = $this->requestAdapter->sendPrimitiveAsync($requestInfo, 'int', $errorMappings); + return $result; + } + + /** + * Get the number of the resource + * @param CountRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?CountRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); + return $requestInfo; + } + + /** + * 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 CountRequestBuilder + */ + public function withUrl(string $rawUrl): CountRequestBuilder { + return new CountRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/Admin/Teams/TelephoneNumberManagement/NumberAssignments/Count/CountRequestBuilderGetQueryParameters.php b/src/Generated/Admin/Teams/TelephoneNumberManagement/NumberAssignments/Count/CountRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..78d8ed13a24 --- /dev/null +++ b/src/Generated/Admin/Teams/TelephoneNumberManagement/NumberAssignments/Count/CountRequestBuilderGetQueryParameters.php @@ -0,0 +1,34 @@ +filter = $filter; + $this->search = $search; + } + +} diff --git a/src/Generated/Admin/Teams/TelephoneNumberManagement/NumberAssignments/Count/CountRequestBuilderGetRequestConfiguration.php b/src/Generated/Admin/Teams/TelephoneNumberManagement/NumberAssignments/Count/CountRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..92b30666c51 --- /dev/null +++ b/src/Generated/Admin/Teams/TelephoneNumberManagement/NumberAssignments/Count/CountRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,39 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param CountRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?CountRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new CountRequestBuilderGetQueryParameters. + * @param string|null $filter Filter items by property values + * @param string|null $search Search items by search phrases + * @return CountRequestBuilderGetQueryParameters + */ + public static function createQueryParameters(?string $filter = null, ?string $search = null): CountRequestBuilderGetQueryParameters { + return new CountRequestBuilderGetQueryParameters($filter, $search); + } + +} diff --git a/src/Generated/Admin/Teams/TelephoneNumberManagement/NumberAssignments/Item/NumberAssignmentItemRequestBuilder.php b/src/Generated/Admin/Teams/TelephoneNumberManagement/NumberAssignments/Item/NumberAssignmentItemRequestBuilder.php new file mode 100644 index 00000000000..c9a6e0a37d9 --- /dev/null +++ b/src/Generated/Admin/Teams/TelephoneNumberManagement/NumberAssignments/Item/NumberAssignmentItemRequestBuilder.php @@ -0,0 +1,144 @@ +|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}/admin/teams/telephoneNumberManagement/numberAssignments/{numberAssignment%2Did}{?%24expand,%24select}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Delete navigation property numberAssignments for admin + * @param NumberAssignmentItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + */ + public function delete(?NumberAssignmentItemRequestBuilderDeleteRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toDeleteRequestInformation($requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendNoContentAsync($requestInfo, $errorMappings); + } + + /** + * Represents a collection of synchronous telephone number management operations. + * @param NumberAssignmentItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + */ + public function get(?NumberAssignmentItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [NumberAssignment::class, 'createFromDiscriminatorValue'], $errorMappings); + } + + /** + * Update the navigation property numberAssignments in admin + * @param NumberAssignment $body The request body + * @param NumberAssignmentItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + */ + public function patch(NumberAssignment $body, ?NumberAssignmentItemRequestBuilderPatchRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPatchRequestInformation($body, $requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [NumberAssignment::class, 'createFromDiscriminatorValue'], $errorMappings); + } + + /** + * Delete navigation property numberAssignments for admin + * @param NumberAssignmentItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toDeleteRequestInformation(?NumberAssignmentItemRequestBuilderDeleteRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::DELETE; + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->tryAddHeader('Accept', "application/json"); + return $requestInfo; + } + + /** + * Represents a collection of synchronous telephone number management operations. + * @param NumberAssignmentItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?NumberAssignmentItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->tryAddHeader('Accept', "application/json"); + return $requestInfo; + } + + /** + * Update the navigation property numberAssignments in admin + * @param NumberAssignment $body The request body + * @param NumberAssignmentItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPatchRequestInformation(NumberAssignment $body, ?NumberAssignmentItemRequestBuilderPatchRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::PATCH; + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->tryAddHeader('Accept', "application/json"); + $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); + return $requestInfo; + } + + /** + * 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 NumberAssignmentItemRequestBuilder + */ + public function withUrl(string $rawUrl): NumberAssignmentItemRequestBuilder { + return new NumberAssignmentItemRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/Admin/Teams/TelephoneNumberManagement/NumberAssignments/Item/NumberAssignmentItemRequestBuilderDeleteRequestConfiguration.php b/src/Generated/Admin/Teams/TelephoneNumberManagement/NumberAssignments/Item/NumberAssignmentItemRequestBuilderDeleteRequestConfiguration.php new file mode 100644 index 00000000000..ee08f2ccea1 --- /dev/null +++ b/src/Generated/Admin/Teams/TelephoneNumberManagement/NumberAssignments/Item/NumberAssignmentItemRequestBuilderDeleteRequestConfiguration.php @@ -0,0 +1,22 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + */ + public function __construct(?array $headers = null, ?array $options = null) { + parent::__construct($headers ?? [], $options ?? []); + } + +} diff --git a/src/Generated/Admin/Teams/TelephoneNumberManagement/NumberAssignments/Item/NumberAssignmentItemRequestBuilderGetQueryParameters.php b/src/Generated/Admin/Teams/TelephoneNumberManagement/NumberAssignments/Item/NumberAssignmentItemRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..86de0943dc1 --- /dev/null +++ b/src/Generated/Admin/Teams/TelephoneNumberManagement/NumberAssignments/Item/NumberAssignmentItemRequestBuilderGetQueryParameters.php @@ -0,0 +1,34 @@ +|null $expand Expand related entities + */ + public ?array $expand = null; + + /** + * @QueryParameter("%24select") + * @var array|null $select Select properties to be returned + */ + public ?array $select = null; + + /** + * Instantiates a new NumberAssignmentItemRequestBuilderGetQueryParameters and sets the default values. + * @param array|null $expand Expand related entities + * @param array|null $select Select properties to be returned + */ + public function __construct(?array $expand = null, ?array $select = null) { + $this->expand = $expand; + $this->select = $select; + } + +} diff --git a/src/Generated/Admin/Teams/TelephoneNumberManagement/NumberAssignments/Item/NumberAssignmentItemRequestBuilderGetRequestConfiguration.php b/src/Generated/Admin/Teams/TelephoneNumberManagement/NumberAssignments/Item/NumberAssignmentItemRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..82f80e1adab --- /dev/null +++ b/src/Generated/Admin/Teams/TelephoneNumberManagement/NumberAssignments/Item/NumberAssignmentItemRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,39 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param NumberAssignmentItemRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?NumberAssignmentItemRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new NumberAssignmentItemRequestBuilderGetQueryParameters. + * @param array|null $expand Expand related entities + * @param array|null $select Select properties to be returned + * @return NumberAssignmentItemRequestBuilderGetQueryParameters + */ + public static function createQueryParameters(?array $expand = null, ?array $select = null): NumberAssignmentItemRequestBuilderGetQueryParameters { + return new NumberAssignmentItemRequestBuilderGetQueryParameters($expand, $select); + } + +} diff --git a/src/Generated/Admin/Teams/TelephoneNumberManagement/NumberAssignments/Item/NumberAssignmentItemRequestBuilderPatchRequestConfiguration.php b/src/Generated/Admin/Teams/TelephoneNumberManagement/NumberAssignments/Item/NumberAssignmentItemRequestBuilderPatchRequestConfiguration.php new file mode 100644 index 00000000000..cfe94570030 --- /dev/null +++ b/src/Generated/Admin/Teams/TelephoneNumberManagement/NumberAssignments/Item/NumberAssignmentItemRequestBuilderPatchRequestConfiguration.php @@ -0,0 +1,22 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + */ + public function __construct(?array $headers = null, ?array $options = null) { + parent::__construct($headers ?? [], $options ?? []); + } + +} diff --git a/src/Generated/Admin/Teams/TelephoneNumberManagement/NumberAssignments/MicrosoftGraphTeamsAdministrationAssignNumber/AssignNumberPostRequestBody.php b/src/Generated/Admin/Teams/TelephoneNumberManagement/NumberAssignments/MicrosoftGraphTeamsAdministrationAssignNumber/AssignNumberPostRequestBody.php new file mode 100644 index 00000000000..43f51505b31 --- /dev/null +++ b/src/Generated/Admin/Teams/TelephoneNumberManagement/NumberAssignments/MicrosoftGraphTeamsAdministrationAssignNumber/AssignNumberPostRequestBody.php @@ -0,0 +1,204 @@ +backingStore = BackingStoreFactorySingleton::getInstance()->createBackingStore(); + $this->setAdditionalData([]); + } + + /** + * Creates a new instance of the appropriate class based on discriminator value + * @param ParseNode $parseNode The parse node to use to read the discriminator value and create the object + * @return AssignNumberPostRequestBody + */ + public static function createFromDiscriminatorValue(ParseNode $parseNode): AssignNumberPostRequestBody { + return new AssignNumberPostRequestBody(); + } + + /** + * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @return array|null + */ + public function getAdditionalData(): ?array { + $val = $this->getBackingStore()->get('additionalData'); + if (is_null($val) || is_array($val)) { + /** @var array|null $val */ + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'additionalData'"); + } + + /** + * Gets the assignmentCategory property value. The assignmentCategory property + * @return AssignmentCategory|null + */ + public function getAssignmentCategory(): ?AssignmentCategory { + $val = $this->getBackingStore()->get('assignmentCategory'); + if (is_null($val) || $val instanceof AssignmentCategory) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'assignmentCategory'"); + } + + /** + * Gets the assignmentTargetId property value. The assignmentTargetId property + * @return string|null + */ + public function getAssignmentTargetId(): ?string { + $val = $this->getBackingStore()->get('assignmentTargetId'); + if (is_null($val) || is_string($val)) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'assignmentTargetId'"); + } + + /** + * Gets the BackingStore property value. Stores model information. + * @return BackingStore + */ + public function getBackingStore(): BackingStore { + return $this->backingStore; + } + + /** + * The deserialization information for the current model + * @return array + */ + public function getFieldDeserializers(): array { + $o = $this; + return [ + 'assignmentCategory' => fn(ParseNode $n) => $o->setAssignmentCategory($n->getEnumValue(AssignmentCategory::class)), + 'assignmentTargetId' => fn(ParseNode $n) => $o->setAssignmentTargetId($n->getStringValue()), + 'locationId' => fn(ParseNode $n) => $o->setLocationId($n->getStringValue()), + 'numberType' => fn(ParseNode $n) => $o->setNumberType($n->getEnumValue(NumberType::class)), + 'telephoneNumber' => fn(ParseNode $n) => $o->setTelephoneNumber($n->getStringValue()), + ]; + } + + /** + * Gets the locationId property value. The locationId property + * @return string|null + */ + public function getLocationId(): ?string { + $val = $this->getBackingStore()->get('locationId'); + if (is_null($val) || is_string($val)) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'locationId'"); + } + + /** + * Gets the numberType property value. The numberType property + * @return NumberType|null + */ + public function getNumberType(): ?NumberType { + $val = $this->getBackingStore()->get('numberType'); + if (is_null($val) || $val instanceof NumberType) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'numberType'"); + } + + /** + * Gets the telephoneNumber property value. The telephoneNumber property + * @return string|null + */ + public function getTelephoneNumber(): ?string { + $val = $this->getBackingStore()->get('telephoneNumber'); + if (is_null($val) || is_string($val)) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'telephoneNumber'"); + } + + /** + * Serializes information the current object + * @param SerializationWriter $writer Serialization writer to use to serialize this model + */ + public function serialize(SerializationWriter $writer): void { + $writer->writeEnumValue('assignmentCategory', $this->getAssignmentCategory()); + $writer->writeStringValue('assignmentTargetId', $this->getAssignmentTargetId()); + $writer->writeStringValue('locationId', $this->getLocationId()); + $writer->writeEnumValue('numberType', $this->getNumberType()); + $writer->writeStringValue('telephoneNumber', $this->getTelephoneNumber()); + $writer->writeAdditionalData($this->getAdditionalData()); + } + + /** + * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @param array $value Value to set for the AdditionalData property. + */ + public function setAdditionalData(?array $value): void { + $this->getBackingStore()->set('additionalData', $value); + } + + /** + * Sets the assignmentCategory property value. The assignmentCategory property + * @param AssignmentCategory|null $value Value to set for the assignmentCategory property. + */ + public function setAssignmentCategory(?AssignmentCategory $value): void { + $this->getBackingStore()->set('assignmentCategory', $value); + } + + /** + * Sets the assignmentTargetId property value. The assignmentTargetId property + * @param string|null $value Value to set for the assignmentTargetId property. + */ + public function setAssignmentTargetId(?string $value): void { + $this->getBackingStore()->set('assignmentTargetId', $value); + } + + /** + * Sets the BackingStore property value. Stores model information. + * @param BackingStore $value Value to set for the BackingStore property. + */ + public function setBackingStore(BackingStore $value): void { + $this->backingStore = $value; + } + + /** + * Sets the locationId property value. The locationId property + * @param string|null $value Value to set for the locationId property. + */ + public function setLocationId(?string $value): void { + $this->getBackingStore()->set('locationId', $value); + } + + /** + * Sets the numberType property value. The numberType property + * @param NumberType|null $value Value to set for the numberType property. + */ + public function setNumberType(?NumberType $value): void { + $this->getBackingStore()->set('numberType', $value); + } + + /** + * Sets the telephoneNumber property value. The telephoneNumber property + * @param string|null $value Value to set for the telephoneNumber property. + */ + public function setTelephoneNumber(?string $value): void { + $this->getBackingStore()->set('telephoneNumber', $value); + } + +} diff --git a/src/Generated/Admin/Teams/TelephoneNumberManagement/NumberAssignments/MicrosoftGraphTeamsAdministrationAssignNumber/MicrosoftGraphTeamsAdministrationAssignNumberRequestBuilder.php b/src/Generated/Admin/Teams/TelephoneNumberManagement/NumberAssignments/MicrosoftGraphTeamsAdministrationAssignNumber/MicrosoftGraphTeamsAdministrationAssignNumberRequestBuilder.php new file mode 100644 index 00000000000..b8aa04388f2 --- /dev/null +++ b/src/Generated/Admin/Teams/TelephoneNumberManagement/NumberAssignments/MicrosoftGraphTeamsAdministrationAssignNumber/MicrosoftGraphTeamsAdministrationAssignNumberRequestBuilder.php @@ -0,0 +1,77 @@ +|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}/admin/teams/telephoneNumberManagement/numberAssignments/microsoft.graph.teamsAdministration.assignNumber'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Creates an asynchronous order to assign a telephone number to a user account. + * @param AssignNumberPostRequestBody $body The request body + * @param MicrosoftGraphTeamsAdministrationAssignNumberRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + * @link https://learn.microsoft.com/graph/api/teamsadministration-numberassignment-assignnumber?view=graph-rest-1.0 Find more info here + */ + public function post(AssignNumberPostRequestBody $body, ?MicrosoftGraphTeamsAdministrationAssignNumberRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendNoContentAsync($requestInfo, $errorMappings); + } + + /** + * Creates an asynchronous order to assign a telephone number to a user account. + * @param AssignNumberPostRequestBody $body The request body + * @param MicrosoftGraphTeamsAdministrationAssignNumberRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPostRequestInformation(AssignNumberPostRequestBody $body, ?MicrosoftGraphTeamsAdministrationAssignNumberRequestBuilderPostRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::POST; + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->tryAddHeader('Accept', "application/json"); + $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); + return $requestInfo; + } + + /** + * 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 MicrosoftGraphTeamsAdministrationAssignNumberRequestBuilder + */ + public function withUrl(string $rawUrl): MicrosoftGraphTeamsAdministrationAssignNumberRequestBuilder { + return new MicrosoftGraphTeamsAdministrationAssignNumberRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/Admin/Teams/TelephoneNumberManagement/NumberAssignments/MicrosoftGraphTeamsAdministrationAssignNumber/MicrosoftGraphTeamsAdministrationAssignNumberRequestBuilderPostRequestConfiguration.php b/src/Generated/Admin/Teams/TelephoneNumberManagement/NumberAssignments/MicrosoftGraphTeamsAdministrationAssignNumber/MicrosoftGraphTeamsAdministrationAssignNumberRequestBuilderPostRequestConfiguration.php new file mode 100644 index 00000000000..7c51d8d1201 --- /dev/null +++ b/src/Generated/Admin/Teams/TelephoneNumberManagement/NumberAssignments/MicrosoftGraphTeamsAdministrationAssignNumber/MicrosoftGraphTeamsAdministrationAssignNumberRequestBuilderPostRequestConfiguration.php @@ -0,0 +1,22 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + */ + public function __construct(?array $headers = null, ?array $options = null) { + parent::__construct($headers ?? [], $options ?? []); + } + +} diff --git a/src/Generated/Admin/Teams/TelephoneNumberManagement/NumberAssignments/MicrosoftGraphTeamsAdministrationUnassignNumber/MicrosoftGraphTeamsAdministrationUnassignNumberRequestBuilder.php b/src/Generated/Admin/Teams/TelephoneNumberManagement/NumberAssignments/MicrosoftGraphTeamsAdministrationUnassignNumber/MicrosoftGraphTeamsAdministrationUnassignNumberRequestBuilder.php new file mode 100644 index 00000000000..21918fbc88f --- /dev/null +++ b/src/Generated/Admin/Teams/TelephoneNumberManagement/NumberAssignments/MicrosoftGraphTeamsAdministrationUnassignNumber/MicrosoftGraphTeamsAdministrationUnassignNumberRequestBuilder.php @@ -0,0 +1,77 @@ +|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}/admin/teams/telephoneNumberManagement/numberAssignments/microsoft.graph.teamsAdministration.unassignNumber'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Creates an asynchronous order to unassign a telephone number from a user account. + * @param UnassignNumberPostRequestBody $body The request body + * @param MicrosoftGraphTeamsAdministrationUnassignNumberRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + * @link https://learn.microsoft.com/graph/api/teamsadministration-numberassignment-unassignnumber?view=graph-rest-1.0 Find more info here + */ + public function post(UnassignNumberPostRequestBody $body, ?MicrosoftGraphTeamsAdministrationUnassignNumberRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendNoContentAsync($requestInfo, $errorMappings); + } + + /** + * Creates an asynchronous order to unassign a telephone number from a user account. + * @param UnassignNumberPostRequestBody $body The request body + * @param MicrosoftGraphTeamsAdministrationUnassignNumberRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPostRequestInformation(UnassignNumberPostRequestBody $body, ?MicrosoftGraphTeamsAdministrationUnassignNumberRequestBuilderPostRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::POST; + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->tryAddHeader('Accept', "application/json"); + $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); + return $requestInfo; + } + + /** + * 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 MicrosoftGraphTeamsAdministrationUnassignNumberRequestBuilder + */ + public function withUrl(string $rawUrl): MicrosoftGraphTeamsAdministrationUnassignNumberRequestBuilder { + return new MicrosoftGraphTeamsAdministrationUnassignNumberRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/Admin/Teams/TelephoneNumberManagement/NumberAssignments/MicrosoftGraphTeamsAdministrationUnassignNumber/MicrosoftGraphTeamsAdministrationUnassignNumberRequestBuilderPostRequestConfiguration.php b/src/Generated/Admin/Teams/TelephoneNumberManagement/NumberAssignments/MicrosoftGraphTeamsAdministrationUnassignNumber/MicrosoftGraphTeamsAdministrationUnassignNumberRequestBuilderPostRequestConfiguration.php new file mode 100644 index 00000000000..3e4cf97331f --- /dev/null +++ b/src/Generated/Admin/Teams/TelephoneNumberManagement/NumberAssignments/MicrosoftGraphTeamsAdministrationUnassignNumber/MicrosoftGraphTeamsAdministrationUnassignNumberRequestBuilderPostRequestConfiguration.php @@ -0,0 +1,22 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + */ + public function __construct(?array $headers = null, ?array $options = null) { + parent::__construct($headers ?? [], $options ?? []); + } + +} diff --git a/src/Generated/Admin/Teams/TelephoneNumberManagement/NumberAssignments/MicrosoftGraphTeamsAdministrationUnassignNumber/UnassignNumberPostRequestBody.php b/src/Generated/Admin/Teams/TelephoneNumberManagement/NumberAssignments/MicrosoftGraphTeamsAdministrationUnassignNumber/UnassignNumberPostRequestBody.php new file mode 100644 index 00000000000..926bf906804 --- /dev/null +++ b/src/Generated/Admin/Teams/TelephoneNumberManagement/NumberAssignments/MicrosoftGraphTeamsAdministrationUnassignNumber/UnassignNumberPostRequestBody.php @@ -0,0 +1,137 @@ +backingStore = BackingStoreFactorySingleton::getInstance()->createBackingStore(); + $this->setAdditionalData([]); + } + + /** + * Creates a new instance of the appropriate class based on discriminator value + * @param ParseNode $parseNode The parse node to use to read the discriminator value and create the object + * @return UnassignNumberPostRequestBody + */ + public static function createFromDiscriminatorValue(ParseNode $parseNode): UnassignNumberPostRequestBody { + return new UnassignNumberPostRequestBody(); + } + + /** + * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @return array|null + */ + public function getAdditionalData(): ?array { + $val = $this->getBackingStore()->get('additionalData'); + if (is_null($val) || is_array($val)) { + /** @var array|null $val */ + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'additionalData'"); + } + + /** + * Gets the BackingStore property value. Stores model information. + * @return BackingStore + */ + public function getBackingStore(): BackingStore { + return $this->backingStore; + } + + /** + * The deserialization information for the current model + * @return array + */ + public function getFieldDeserializers(): array { + $o = $this; + return [ + 'numberType' => fn(ParseNode $n) => $o->setNumberType($n->getEnumValue(NumberType::class)), + 'telephoneNumber' => fn(ParseNode $n) => $o->setTelephoneNumber($n->getStringValue()), + ]; + } + + /** + * Gets the numberType property value. The numberType property + * @return NumberType|null + */ + public function getNumberType(): ?NumberType { + $val = $this->getBackingStore()->get('numberType'); + if (is_null($val) || $val instanceof NumberType) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'numberType'"); + } + + /** + * Gets the telephoneNumber property value. The telephoneNumber property + * @return string|null + */ + public function getTelephoneNumber(): ?string { + $val = $this->getBackingStore()->get('telephoneNumber'); + if (is_null($val) || is_string($val)) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'telephoneNumber'"); + } + + /** + * Serializes information the current object + * @param SerializationWriter $writer Serialization writer to use to serialize this model + */ + public function serialize(SerializationWriter $writer): void { + $writer->writeEnumValue('numberType', $this->getNumberType()); + $writer->writeStringValue('telephoneNumber', $this->getTelephoneNumber()); + $writer->writeAdditionalData($this->getAdditionalData()); + } + + /** + * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @param array $value Value to set for the AdditionalData property. + */ + public function setAdditionalData(?array $value): void { + $this->getBackingStore()->set('additionalData', $value); + } + + /** + * Sets the BackingStore property value. Stores model information. + * @param BackingStore $value Value to set for the BackingStore property. + */ + public function setBackingStore(BackingStore $value): void { + $this->backingStore = $value; + } + + /** + * Sets the numberType property value. The numberType property + * @param NumberType|null $value Value to set for the numberType property. + */ + public function setNumberType(?NumberType $value): void { + $this->getBackingStore()->set('numberType', $value); + } + + /** + * Sets the telephoneNumber property value. The telephoneNumber property + * @param string|null $value Value to set for the telephoneNumber property. + */ + public function setTelephoneNumber(?string $value): void { + $this->getBackingStore()->set('telephoneNumber', $value); + } + +} diff --git a/src/Generated/Admin/Teams/TelephoneNumberManagement/NumberAssignments/MicrosoftGraphTeamsAdministrationUpdateNumber/MicrosoftGraphTeamsAdministrationUpdateNumberRequestBuilder.php b/src/Generated/Admin/Teams/TelephoneNumberManagement/NumberAssignments/MicrosoftGraphTeamsAdministrationUpdateNumber/MicrosoftGraphTeamsAdministrationUpdateNumberRequestBuilder.php new file mode 100644 index 00000000000..33b8e922c20 --- /dev/null +++ b/src/Generated/Admin/Teams/TelephoneNumberManagement/NumberAssignments/MicrosoftGraphTeamsAdministrationUpdateNumber/MicrosoftGraphTeamsAdministrationUpdateNumberRequestBuilder.php @@ -0,0 +1,77 @@ +|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}/admin/teams/telephoneNumberManagement/numberAssignments/microsoft.graph.teamsAdministration.updateNumber'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * This method is used to update an existing number with optional attributes. Currently supported attributes are locationId, networkSiteId, and reverseNumberLookupOptions. + * @param UpdateNumberPostRequestBody $body The request body + * @param MicrosoftGraphTeamsAdministrationUpdateNumberRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + * @link https://learn.microsoft.com/graph/api/teamsadministration-numberassignment-updatenumber?view=graph-rest-1.0 Find more info here + */ + public function post(UpdateNumberPostRequestBody $body, ?MicrosoftGraphTeamsAdministrationUpdateNumberRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendNoContentAsync($requestInfo, $errorMappings); + } + + /** + * This method is used to update an existing number with optional attributes. Currently supported attributes are locationId, networkSiteId, and reverseNumberLookupOptions. + * @param UpdateNumberPostRequestBody $body The request body + * @param MicrosoftGraphTeamsAdministrationUpdateNumberRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPostRequestInformation(UpdateNumberPostRequestBody $body, ?MicrosoftGraphTeamsAdministrationUpdateNumberRequestBuilderPostRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::POST; + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->tryAddHeader('Accept', "application/json"); + $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); + return $requestInfo; + } + + /** + * 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 MicrosoftGraphTeamsAdministrationUpdateNumberRequestBuilder + */ + public function withUrl(string $rawUrl): MicrosoftGraphTeamsAdministrationUpdateNumberRequestBuilder { + return new MicrosoftGraphTeamsAdministrationUpdateNumberRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/Admin/Teams/TelephoneNumberManagement/NumberAssignments/MicrosoftGraphTeamsAdministrationUpdateNumber/MicrosoftGraphTeamsAdministrationUpdateNumberRequestBuilderPostRequestConfiguration.php b/src/Generated/Admin/Teams/TelephoneNumberManagement/NumberAssignments/MicrosoftGraphTeamsAdministrationUpdateNumber/MicrosoftGraphTeamsAdministrationUpdateNumberRequestBuilderPostRequestConfiguration.php new file mode 100644 index 00000000000..07e21179c7b --- /dev/null +++ b/src/Generated/Admin/Teams/TelephoneNumberManagement/NumberAssignments/MicrosoftGraphTeamsAdministrationUpdateNumber/MicrosoftGraphTeamsAdministrationUpdateNumberRequestBuilderPostRequestConfiguration.php @@ -0,0 +1,22 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + */ + public function __construct(?array $headers = null, ?array $options = null) { + parent::__construct($headers ?? [], $options ?? []); + } + +} diff --git a/src/Generated/Admin/Teams/TelephoneNumberManagement/NumberAssignments/MicrosoftGraphTeamsAdministrationUpdateNumber/UpdateNumberPostRequestBody.php b/src/Generated/Admin/Teams/TelephoneNumberManagement/NumberAssignments/MicrosoftGraphTeamsAdministrationUpdateNumber/UpdateNumberPostRequestBody.php new file mode 100644 index 00000000000..5d78740a0f9 --- /dev/null +++ b/src/Generated/Admin/Teams/TelephoneNumberManagement/NumberAssignments/MicrosoftGraphTeamsAdministrationUpdateNumber/UpdateNumberPostRequestBody.php @@ -0,0 +1,190 @@ +backingStore = BackingStoreFactorySingleton::getInstance()->createBackingStore(); + $this->setAdditionalData([]); + } + + /** + * Creates a new instance of the appropriate class based on discriminator value + * @param ParseNode $parseNode The parse node to use to read the discriminator value and create the object + * @return UpdateNumberPostRequestBody + */ + public static function createFromDiscriminatorValue(ParseNode $parseNode): UpdateNumberPostRequestBody { + return new UpdateNumberPostRequestBody(); + } + + /** + * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @return array|null + */ + public function getAdditionalData(): ?array { + $val = $this->getBackingStore()->get('additionalData'); + if (is_null($val) || is_array($val)) { + /** @var array|null $val */ + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'additionalData'"); + } + + /** + * Gets the BackingStore property value. Stores model information. + * @return BackingStore + */ + public function getBackingStore(): BackingStore { + return $this->backingStore; + } + + /** + * The deserialization information for the current model + * @return array + */ + public function getFieldDeserializers(): array { + $o = $this; + return [ + 'locationId' => fn(ParseNode $n) => $o->setLocationId($n->getStringValue()), + 'networkSiteId' => fn(ParseNode $n) => $o->setNetworkSiteId($n->getStringValue()), + 'reverseNumberLookupOptions' => function (ParseNode $n) { + $val = $n->getCollectionOfPrimitiveValues(); + if (is_array($val)) { + TypeUtils::validateCollectionValues($val, 'string'); + } + /** @var array|null $val */ + $this->setReverseNumberLookupOptions($val); + }, + 'telephoneNumber' => fn(ParseNode $n) => $o->setTelephoneNumber($n->getStringValue()), + ]; + } + + /** + * Gets the locationId property value. The locationId property + * @return string|null + */ + public function getLocationId(): ?string { + $val = $this->getBackingStore()->get('locationId'); + if (is_null($val) || is_string($val)) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'locationId'"); + } + + /** + * Gets the networkSiteId property value. The networkSiteId property + * @return string|null + */ + public function getNetworkSiteId(): ?string { + $val = $this->getBackingStore()->get('networkSiteId'); + if (is_null($val) || is_string($val)) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'networkSiteId'"); + } + + /** + * Gets the reverseNumberLookupOptions property value. The reverseNumberLookupOptions property + * @return array|null + */ + public function getReverseNumberLookupOptions(): ?array { + $val = $this->getBackingStore()->get('reverseNumberLookupOptions'); + if (is_array($val) || is_null($val)) { + TypeUtils::validateCollectionValues($val, 'string'); + /** @var array|null $val */ + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'reverseNumberLookupOptions'"); + } + + /** + * Gets the telephoneNumber property value. The telephoneNumber property + * @return string|null + */ + public function getTelephoneNumber(): ?string { + $val = $this->getBackingStore()->get('telephoneNumber'); + if (is_null($val) || is_string($val)) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'telephoneNumber'"); + } + + /** + * Serializes information the current object + * @param SerializationWriter $writer Serialization writer to use to serialize this model + */ + public function serialize(SerializationWriter $writer): void { + $writer->writeStringValue('locationId', $this->getLocationId()); + $writer->writeStringValue('networkSiteId', $this->getNetworkSiteId()); + $writer->writeCollectionOfPrimitiveValues('reverseNumberLookupOptions', $this->getReverseNumberLookupOptions()); + $writer->writeStringValue('telephoneNumber', $this->getTelephoneNumber()); + $writer->writeAdditionalData($this->getAdditionalData()); + } + + /** + * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @param array $value Value to set for the AdditionalData property. + */ + public function setAdditionalData(?array $value): void { + $this->getBackingStore()->set('additionalData', $value); + } + + /** + * Sets the BackingStore property value. Stores model information. + * @param BackingStore $value Value to set for the BackingStore property. + */ + public function setBackingStore(BackingStore $value): void { + $this->backingStore = $value; + } + + /** + * Sets the locationId property value. The locationId property + * @param string|null $value Value to set for the locationId property. + */ + public function setLocationId(?string $value): void { + $this->getBackingStore()->set('locationId', $value); + } + + /** + * Sets the networkSiteId property value. The networkSiteId property + * @param string|null $value Value to set for the networkSiteId property. + */ + public function setNetworkSiteId(?string $value): void { + $this->getBackingStore()->set('networkSiteId', $value); + } + + /** + * Sets the reverseNumberLookupOptions property value. The reverseNumberLookupOptions property + * @param array|null $value Value to set for the reverseNumberLookupOptions property. + */ + public function setReverseNumberLookupOptions(?array $value): void { + $this->getBackingStore()->set('reverseNumberLookupOptions', $value); + } + + /** + * Sets the telephoneNumber property value. The telephoneNumber property + * @param string|null $value Value to set for the telephoneNumber property. + */ + public function setTelephoneNumber(?string $value): void { + $this->getBackingStore()->set('telephoneNumber', $value); + } + +} diff --git a/src/Generated/Admin/Teams/TelephoneNumberManagement/NumberAssignments/NumberAssignmentsRequestBuilder.php b/src/Generated/Admin/Teams/TelephoneNumberManagement/NumberAssignments/NumberAssignmentsRequestBuilder.php new file mode 100644 index 00000000000..25bc3159b67 --- /dev/null +++ b/src/Generated/Admin/Teams/TelephoneNumberManagement/NumberAssignments/NumberAssignmentsRequestBuilder.php @@ -0,0 +1,158 @@ +pathParameters, $this->requestAdapter); + } + + /** + * Provides operations to call the assignNumber method. + */ + public function microsoftGraphTeamsAdministrationAssignNumber(): MicrosoftGraphTeamsAdministrationAssignNumberRequestBuilder { + return new MicrosoftGraphTeamsAdministrationAssignNumberRequestBuilder($this->pathParameters, $this->requestAdapter); + } + + /** + * Provides operations to call the unassignNumber method. + */ + public function microsoftGraphTeamsAdministrationUnassignNumber(): MicrosoftGraphTeamsAdministrationUnassignNumberRequestBuilder { + return new MicrosoftGraphTeamsAdministrationUnassignNumberRequestBuilder($this->pathParameters, $this->requestAdapter); + } + + /** + * Provides operations to call the updateNumber method. + */ + public function microsoftGraphTeamsAdministrationUpdateNumber(): MicrosoftGraphTeamsAdministrationUpdateNumberRequestBuilder { + return new MicrosoftGraphTeamsAdministrationUpdateNumberRequestBuilder($this->pathParameters, $this->requestAdapter); + } + + /** + * Provides operations to manage the numberAssignments property of the microsoft.graph.teamsAdministration.telephoneNumberManagementRoot entity. + * @param string $numberAssignmentId The unique identifier of numberAssignment + * @return NumberAssignmentItemRequestBuilder + */ + public function byNumberAssignmentId(string $numberAssignmentId): NumberAssignmentItemRequestBuilder { + $urlTplParams = $this->pathParameters; + $urlTplParams['numberAssignment%2Did'] = $numberAssignmentId; + return new NumberAssignmentItemRequestBuilder($urlTplParams, $this->requestAdapter); + } + + /** + * Instantiates a new NumberAssignmentsRequestBuilder and sets the default values. + * @param array|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}/admin/teams/telephoneNumberManagement/numberAssignments{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Read the properties and relationships of microsoft.graph.teamsAdministration.numberAssignment object. + * @param NumberAssignmentsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + * @link https://learn.microsoft.com/graph/api/teamsadministration-telephonenumbermanagementroot-list-numberassignments?view=graph-rest-1.0 Find more info here + */ + public function get(?NumberAssignmentsRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [NumberAssignmentCollectionResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + } + + /** + * Create new navigation property to numberAssignments for admin + * @param NumberAssignment $body The request body + * @param NumberAssignmentsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + */ + public function post(NumberAssignment $body, ?NumberAssignmentsRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [NumberAssignment::class, 'createFromDiscriminatorValue'], $errorMappings); + } + + /** + * Read the properties and relationships of microsoft.graph.teamsAdministration.numberAssignment object. + * @param NumberAssignmentsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?NumberAssignmentsRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->tryAddHeader('Accept', "application/json"); + return $requestInfo; + } + + /** + * Create new navigation property to numberAssignments for admin + * @param NumberAssignment $body The request body + * @param NumberAssignmentsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPostRequestInformation(NumberAssignment $body, ?NumberAssignmentsRequestBuilderPostRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::POST; + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->tryAddHeader('Accept', "application/json"); + $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); + return $requestInfo; + } + + /** + * 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 NumberAssignmentsRequestBuilder + */ + public function withUrl(string $rawUrl): NumberAssignmentsRequestBuilder { + return new NumberAssignmentsRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/Admin/Teams/TelephoneNumberManagement/NumberAssignments/NumberAssignmentsRequestBuilderGetQueryParameters.php b/src/Generated/Admin/Teams/TelephoneNumberManagement/NumberAssignments/NumberAssignmentsRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..8f73bd1af73 --- /dev/null +++ b/src/Generated/Admin/Teams/TelephoneNumberManagement/NumberAssignments/NumberAssignmentsRequestBuilderGetQueryParameters.php @@ -0,0 +1,82 @@ +|null $expand Expand related entities + */ + public ?array $expand = null; + + /** + * @QueryParameter("%24filter") + * @var string|null $filter Filter items by property values + */ + public ?string $filter = null; + + /** + * @QueryParameter("%24orderby") + * @var array|null $orderby Order items by property values + */ + public ?array $orderby = null; + + /** + * @QueryParameter("%24search") + * @var string|null $search Search items by search phrases + */ + public ?string $search = null; + + /** + * @QueryParameter("%24select") + * @var array|null $select Select properties to be returned + */ + public ?array $select = null; + + /** + * @QueryParameter("%24skip") + * @var int|null $skip Skip the first n items + */ + public ?int $skip = null; + + /** + * @QueryParameter("%24top") + * @var int|null $top Show only the first n items + */ + public ?int $top = null; + + /** + * Instantiates a new NumberAssignmentsRequestBuilderGetQueryParameters and sets the default values. + * @param bool|null $count Include count of items + * @param array|null $expand Expand related entities + * @param string|null $filter Filter items by property values + * @param array|null $orderby Order items by property values + * @param string|null $search Search items by search phrases + * @param array|null $select Select properties to be returned + * @param int|null $skip Skip the first n items + * @param int|null $top Show only the first n items + */ + 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) { + $this->count = $count; + $this->expand = $expand; + $this->filter = $filter; + $this->orderby = $orderby; + $this->search = $search; + $this->select = $select; + $this->skip = $skip; + $this->top = $top; + } + +} diff --git a/src/Generated/Admin/Teams/TelephoneNumberManagement/NumberAssignments/NumberAssignmentsRequestBuilderGetRequestConfiguration.php b/src/Generated/Admin/Teams/TelephoneNumberManagement/NumberAssignments/NumberAssignmentsRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..7affb45efed --- /dev/null +++ b/src/Generated/Admin/Teams/TelephoneNumberManagement/NumberAssignments/NumberAssignmentsRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,45 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param NumberAssignmentsRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?NumberAssignmentsRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new NumberAssignmentsRequestBuilderGetQueryParameters. + * @param bool|null $count Include count of items + * @param array|null $expand Expand related entities + * @param string|null $filter Filter items by property values + * @param array|null $orderby Order items by property values + * @param string|null $search Search items by search phrases + * @param array|null $select Select properties to be returned + * @param int|null $skip Skip the first n items + * @param int|null $top Show only the first n items + * @return NumberAssignmentsRequestBuilderGetQueryParameters + */ + public static function createQueryParameters(?bool $count = null, ?array $expand = null, ?string $filter = null, ?array $orderby = null, ?string $search = null, ?array $select = null, ?int $skip = null, ?int $top = null): NumberAssignmentsRequestBuilderGetQueryParameters { + return new NumberAssignmentsRequestBuilderGetQueryParameters($count, $expand, $filter, $orderby, $search, $select, $skip, $top); + } + +} diff --git a/src/Generated/Admin/Teams/TelephoneNumberManagement/NumberAssignments/NumberAssignmentsRequestBuilderPostRequestConfiguration.php b/src/Generated/Admin/Teams/TelephoneNumberManagement/NumberAssignments/NumberAssignmentsRequestBuilderPostRequestConfiguration.php new file mode 100644 index 00000000000..b4aea96e92d --- /dev/null +++ b/src/Generated/Admin/Teams/TelephoneNumberManagement/NumberAssignments/NumberAssignmentsRequestBuilderPostRequestConfiguration.php @@ -0,0 +1,22 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + */ + public function __construct(?array $headers = null, ?array $options = null) { + parent::__construct($headers ?? [], $options ?? []); + } + +} diff --git a/src/Generated/Admin/Teams/TelephoneNumberManagement/Operations/Count/CountRequestBuilder.php b/src/Generated/Admin/Teams/TelephoneNumberManagement/Operations/Count/CountRequestBuilder.php new file mode 100644 index 00000000000..26863f9effc --- /dev/null +++ b/src/Generated/Admin/Teams/TelephoneNumberManagement/Operations/Count/CountRequestBuilder.php @@ -0,0 +1,78 @@ +|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}/admin/teams/telephoneNumberManagement/operations/$count{?%24filter,%24search}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Get the number of the resource + * @param CountRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + */ + public function get(?CountRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + /** @var Promise $result */ + $result = $this->requestAdapter->sendPrimitiveAsync($requestInfo, 'int', $errorMappings); + return $result; + } + + /** + * Get the number of the resource + * @param CountRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?CountRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); + return $requestInfo; + } + + /** + * 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 CountRequestBuilder + */ + public function withUrl(string $rawUrl): CountRequestBuilder { + return new CountRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/Admin/Teams/TelephoneNumberManagement/Operations/Count/CountRequestBuilderGetQueryParameters.php b/src/Generated/Admin/Teams/TelephoneNumberManagement/Operations/Count/CountRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..46249372267 --- /dev/null +++ b/src/Generated/Admin/Teams/TelephoneNumberManagement/Operations/Count/CountRequestBuilderGetQueryParameters.php @@ -0,0 +1,34 @@ +filter = $filter; + $this->search = $search; + } + +} diff --git a/src/Generated/Admin/Teams/TelephoneNumberManagement/Operations/Count/CountRequestBuilderGetRequestConfiguration.php b/src/Generated/Admin/Teams/TelephoneNumberManagement/Operations/Count/CountRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..26220125f54 --- /dev/null +++ b/src/Generated/Admin/Teams/TelephoneNumberManagement/Operations/Count/CountRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,39 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param CountRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?CountRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new CountRequestBuilderGetQueryParameters. + * @param string|null $filter Filter items by property values + * @param string|null $search Search items by search phrases + * @return CountRequestBuilderGetQueryParameters + */ + public static function createQueryParameters(?string $filter = null, ?string $search = null): CountRequestBuilderGetQueryParameters { + return new CountRequestBuilderGetQueryParameters($filter, $search); + } + +} diff --git a/src/Generated/Admin/Teams/TelephoneNumberManagement/Operations/Item/TelephoneNumberLongRunningOperationItemRequestBuilder.php b/src/Generated/Admin/Teams/TelephoneNumberManagement/Operations/Item/TelephoneNumberLongRunningOperationItemRequestBuilder.php new file mode 100644 index 00000000000..fabf2f30b61 --- /dev/null +++ b/src/Generated/Admin/Teams/TelephoneNumberManagement/Operations/Item/TelephoneNumberLongRunningOperationItemRequestBuilder.php @@ -0,0 +1,145 @@ +|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}/admin/teams/telephoneNumberManagement/operations/{telephoneNumberLongRunningOperation%2Did}{?%24expand,%24select}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Delete navigation property operations for admin + * @param TelephoneNumberLongRunningOperationItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + */ + public function delete(?TelephoneNumberLongRunningOperationItemRequestBuilderDeleteRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toDeleteRequestInformation($requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendNoContentAsync($requestInfo, $errorMappings); + } + + /** + * Read the properties and relationships of microsoft.graph.teamsAdministration.telephoneNumberLongRunningOperation object. This method is used to query the status of an assign or unassign number action using Graph API. This link is returned in the Location response header found in assign or unassign operation result. + * @param TelephoneNumberLongRunningOperationItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + * @link https://learn.microsoft.com/graph/api/teamsadministration-telephonenumberlongrunningoperation-get?view=graph-rest-1.0 Find more info here + */ + public function get(?TelephoneNumberLongRunningOperationItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [TelephoneNumberLongRunningOperation::class, 'createFromDiscriminatorValue'], $errorMappings); + } + + /** + * Update the navigation property operations in admin + * @param TelephoneNumberLongRunningOperation $body The request body + * @param TelephoneNumberLongRunningOperationItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + */ + public function patch(TelephoneNumberLongRunningOperation $body, ?TelephoneNumberLongRunningOperationItemRequestBuilderPatchRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPatchRequestInformation($body, $requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [TelephoneNumberLongRunningOperation::class, 'createFromDiscriminatorValue'], $errorMappings); + } + + /** + * Delete navigation property operations for admin + * @param TelephoneNumberLongRunningOperationItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toDeleteRequestInformation(?TelephoneNumberLongRunningOperationItemRequestBuilderDeleteRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::DELETE; + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->tryAddHeader('Accept', "application/json"); + return $requestInfo; + } + + /** + * Read the properties and relationships of microsoft.graph.teamsAdministration.telephoneNumberLongRunningOperation object. This method is used to query the status of an assign or unassign number action using Graph API. This link is returned in the Location response header found in assign or unassign operation result. + * @param TelephoneNumberLongRunningOperationItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?TelephoneNumberLongRunningOperationItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->tryAddHeader('Accept', "application/json"); + return $requestInfo; + } + + /** + * Update the navigation property operations in admin + * @param TelephoneNumberLongRunningOperation $body The request body + * @param TelephoneNumberLongRunningOperationItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPatchRequestInformation(TelephoneNumberLongRunningOperation $body, ?TelephoneNumberLongRunningOperationItemRequestBuilderPatchRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::PATCH; + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->tryAddHeader('Accept', "application/json"); + $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); + return $requestInfo; + } + + /** + * 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 TelephoneNumberLongRunningOperationItemRequestBuilder + */ + public function withUrl(string $rawUrl): TelephoneNumberLongRunningOperationItemRequestBuilder { + return new TelephoneNumberLongRunningOperationItemRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/Admin/Teams/TelephoneNumberManagement/Operations/Item/TelephoneNumberLongRunningOperationItemRequestBuilderDeleteRequestConfiguration.php b/src/Generated/Admin/Teams/TelephoneNumberManagement/Operations/Item/TelephoneNumberLongRunningOperationItemRequestBuilderDeleteRequestConfiguration.php new file mode 100644 index 00000000000..398d16cfd44 --- /dev/null +++ b/src/Generated/Admin/Teams/TelephoneNumberManagement/Operations/Item/TelephoneNumberLongRunningOperationItemRequestBuilderDeleteRequestConfiguration.php @@ -0,0 +1,22 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + */ + public function __construct(?array $headers = null, ?array $options = null) { + parent::__construct($headers ?? [], $options ?? []); + } + +} diff --git a/src/Generated/Admin/Teams/TelephoneNumberManagement/Operations/Item/TelephoneNumberLongRunningOperationItemRequestBuilderGetQueryParameters.php b/src/Generated/Admin/Teams/TelephoneNumberManagement/Operations/Item/TelephoneNumberLongRunningOperationItemRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..e9f0a0d95fc --- /dev/null +++ b/src/Generated/Admin/Teams/TelephoneNumberManagement/Operations/Item/TelephoneNumberLongRunningOperationItemRequestBuilderGetQueryParameters.php @@ -0,0 +1,34 @@ +|null $expand Expand related entities + */ + public ?array $expand = null; + + /** + * @QueryParameter("%24select") + * @var array|null $select Select properties to be returned + */ + public ?array $select = null; + + /** + * Instantiates a new TelephoneNumberLongRunningOperationItemRequestBuilderGetQueryParameters and sets the default values. + * @param array|null $expand Expand related entities + * @param array|null $select Select properties to be returned + */ + public function __construct(?array $expand = null, ?array $select = null) { + $this->expand = $expand; + $this->select = $select; + } + +} diff --git a/src/Generated/Admin/Teams/TelephoneNumberManagement/Operations/Item/TelephoneNumberLongRunningOperationItemRequestBuilderGetRequestConfiguration.php b/src/Generated/Admin/Teams/TelephoneNumberManagement/Operations/Item/TelephoneNumberLongRunningOperationItemRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..11a1be0fc2b --- /dev/null +++ b/src/Generated/Admin/Teams/TelephoneNumberManagement/Operations/Item/TelephoneNumberLongRunningOperationItemRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,39 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param TelephoneNumberLongRunningOperationItemRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?TelephoneNumberLongRunningOperationItemRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new TelephoneNumberLongRunningOperationItemRequestBuilderGetQueryParameters. + * @param array|null $expand Expand related entities + * @param array|null $select Select properties to be returned + * @return TelephoneNumberLongRunningOperationItemRequestBuilderGetQueryParameters + */ + public static function createQueryParameters(?array $expand = null, ?array $select = null): TelephoneNumberLongRunningOperationItemRequestBuilderGetQueryParameters { + return new TelephoneNumberLongRunningOperationItemRequestBuilderGetQueryParameters($expand, $select); + } + +} diff --git a/src/Generated/Admin/Teams/TelephoneNumberManagement/Operations/Item/TelephoneNumberLongRunningOperationItemRequestBuilderPatchRequestConfiguration.php b/src/Generated/Admin/Teams/TelephoneNumberManagement/Operations/Item/TelephoneNumberLongRunningOperationItemRequestBuilderPatchRequestConfiguration.php new file mode 100644 index 00000000000..d3887d70b74 --- /dev/null +++ b/src/Generated/Admin/Teams/TelephoneNumberManagement/Operations/Item/TelephoneNumberLongRunningOperationItemRequestBuilderPatchRequestConfiguration.php @@ -0,0 +1,22 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + */ + public function __construct(?array $headers = null, ?array $options = null) { + parent::__construct($headers ?? [], $options ?? []); + } + +} diff --git a/src/Generated/Admin/Teams/TelephoneNumberManagement/Operations/OperationsRequestBuilder.php b/src/Generated/Admin/Teams/TelephoneNumberManagement/Operations/OperationsRequestBuilder.php new file mode 100644 index 00000000000..4b2b0de1d83 --- /dev/null +++ b/src/Generated/Admin/Teams/TelephoneNumberManagement/Operations/OperationsRequestBuilder.php @@ -0,0 +1,133 @@ +pathParameters, $this->requestAdapter); + } + + /** + * Provides operations to manage the operations property of the microsoft.graph.teamsAdministration.telephoneNumberManagementRoot entity. + * @param string $telephoneNumberLongRunningOperationId The unique identifier of telephoneNumberLongRunningOperation + * @return TelephoneNumberLongRunningOperationItemRequestBuilder + */ + public function byTelephoneNumberLongRunningOperationId(string $telephoneNumberLongRunningOperationId): TelephoneNumberLongRunningOperationItemRequestBuilder { + $urlTplParams = $this->pathParameters; + $urlTplParams['telephoneNumberLongRunningOperation%2Did'] = $telephoneNumberLongRunningOperationId; + return new TelephoneNumberLongRunningOperationItemRequestBuilder($urlTplParams, $this->requestAdapter); + } + + /** + * Instantiates a new OperationsRequestBuilder and sets the default values. + * @param array|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}/admin/teams/telephoneNumberManagement/operations{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Read the properties and relationships of microsoft.graph.teamsAdministration.telephoneNumberLongRunningOperation object. This method is used to query the status of an assign or unassign number action using Graph API. This link is returned in the Location response header found in assign or unassign operation result. + * @param OperationsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + */ + public function get(?OperationsRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [TelephoneNumberLongRunningOperationCollectionResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + } + + /** + * Create new navigation property to operations for admin + * @param TelephoneNumberLongRunningOperation $body The request body + * @param OperationsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + */ + public function post(TelephoneNumberLongRunningOperation $body, ?OperationsRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [TelephoneNumberLongRunningOperation::class, 'createFromDiscriminatorValue'], $errorMappings); + } + + /** + * Read the properties and relationships of microsoft.graph.teamsAdministration.telephoneNumberLongRunningOperation object. This method is used to query the status of an assign or unassign number action using Graph API. This link is returned in the Location response header found in assign or unassign operation result. + * @param OperationsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?OperationsRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->tryAddHeader('Accept', "application/json"); + return $requestInfo; + } + + /** + * Create new navigation property to operations for admin + * @param TelephoneNumberLongRunningOperation $body The request body + * @param OperationsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPostRequestInformation(TelephoneNumberLongRunningOperation $body, ?OperationsRequestBuilderPostRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::POST; + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->tryAddHeader('Accept', "application/json"); + $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); + return $requestInfo; + } + + /** + * 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 OperationsRequestBuilder + */ + public function withUrl(string $rawUrl): OperationsRequestBuilder { + return new OperationsRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/Admin/Teams/TelephoneNumberManagement/Operations/OperationsRequestBuilderGetQueryParameters.php b/src/Generated/Admin/Teams/TelephoneNumberManagement/Operations/OperationsRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..7eba3ef0fd6 --- /dev/null +++ b/src/Generated/Admin/Teams/TelephoneNumberManagement/Operations/OperationsRequestBuilderGetQueryParameters.php @@ -0,0 +1,82 @@ +|null $expand Expand related entities + */ + public ?array $expand = null; + + /** + * @QueryParameter("%24filter") + * @var string|null $filter Filter items by property values + */ + public ?string $filter = null; + + /** + * @QueryParameter("%24orderby") + * @var array|null $orderby Order items by property values + */ + public ?array $orderby = null; + + /** + * @QueryParameter("%24search") + * @var string|null $search Search items by search phrases + */ + public ?string $search = null; + + /** + * @QueryParameter("%24select") + * @var array|null $select Select properties to be returned + */ + public ?array $select = null; + + /** + * @QueryParameter("%24skip") + * @var int|null $skip Skip the first n items + */ + public ?int $skip = null; + + /** + * @QueryParameter("%24top") + * @var int|null $top Show only the first n items + */ + public ?int $top = null; + + /** + * Instantiates a new OperationsRequestBuilderGetQueryParameters and sets the default values. + * @param bool|null $count Include count of items + * @param array|null $expand Expand related entities + * @param string|null $filter Filter items by property values + * @param array|null $orderby Order items by property values + * @param string|null $search Search items by search phrases + * @param array|null $select Select properties to be returned + * @param int|null $skip Skip the first n items + * @param int|null $top Show only the first n items + */ + 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) { + $this->count = $count; + $this->expand = $expand; + $this->filter = $filter; + $this->orderby = $orderby; + $this->search = $search; + $this->select = $select; + $this->skip = $skip; + $this->top = $top; + } + +} diff --git a/src/Generated/Admin/Teams/TelephoneNumberManagement/Operations/OperationsRequestBuilderGetRequestConfiguration.php b/src/Generated/Admin/Teams/TelephoneNumberManagement/Operations/OperationsRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..e31871bf625 --- /dev/null +++ b/src/Generated/Admin/Teams/TelephoneNumberManagement/Operations/OperationsRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,45 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param OperationsRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?OperationsRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new OperationsRequestBuilderGetQueryParameters. + * @param bool|null $count Include count of items + * @param array|null $expand Expand related entities + * @param string|null $filter Filter items by property values + * @param array|null $orderby Order items by property values + * @param string|null $search Search items by search phrases + * @param array|null $select Select properties to be returned + * @param int|null $skip Skip the first n items + * @param int|null $top Show only the first n items + * @return OperationsRequestBuilderGetQueryParameters + */ + public static function createQueryParameters(?bool $count = null, ?array $expand = null, ?string $filter = null, ?array $orderby = null, ?string $search = null, ?array $select = null, ?int $skip = null, ?int $top = null): OperationsRequestBuilderGetQueryParameters { + return new OperationsRequestBuilderGetQueryParameters($count, $expand, $filter, $orderby, $search, $select, $skip, $top); + } + +} diff --git a/src/Generated/Admin/Teams/TelephoneNumberManagement/Operations/OperationsRequestBuilderPostRequestConfiguration.php b/src/Generated/Admin/Teams/TelephoneNumberManagement/Operations/OperationsRequestBuilderPostRequestConfiguration.php new file mode 100644 index 00000000000..a00b503c7d2 --- /dev/null +++ b/src/Generated/Admin/Teams/TelephoneNumberManagement/Operations/OperationsRequestBuilderPostRequestConfiguration.php @@ -0,0 +1,22 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + */ + public function __construct(?array $headers = null, ?array $options = null) { + parent::__construct($headers ?? [], $options ?? []); + } + +} diff --git a/src/Generated/Admin/Teams/TelephoneNumberManagement/TelephoneNumberManagementRequestBuilder.php b/src/Generated/Admin/Teams/TelephoneNumberManagement/TelephoneNumberManagementRequestBuilder.php new file mode 100644 index 00000000000..f16db57fbe1 --- /dev/null +++ b/src/Generated/Admin/Teams/TelephoneNumberManagement/TelephoneNumberManagementRequestBuilder.php @@ -0,0 +1,160 @@ +pathParameters, $this->requestAdapter); + } + + /** + * Provides operations to manage the operations property of the microsoft.graph.teamsAdministration.telephoneNumberManagementRoot entity. + */ + public function operations(): OperationsRequestBuilder { + return new OperationsRequestBuilder($this->pathParameters, $this->requestAdapter); + } + + /** + * Instantiates a new TelephoneNumberManagementRequestBuilder and sets the default values. + * @param array|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}/admin/teams/telephoneNumberManagement{?%24expand,%24select}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Delete navigation property telephoneNumberManagement for admin + * @param TelephoneNumberManagementRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + */ + public function delete(?TelephoneNumberManagementRequestBuilderDeleteRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toDeleteRequestInformation($requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendNoContentAsync($requestInfo, $errorMappings); + } + + /** + * Represents a collection of available telephone number management operations. + * @param TelephoneNumberManagementRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + */ + public function get(?TelephoneNumberManagementRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [TelephoneNumberManagementRoot::class, 'createFromDiscriminatorValue'], $errorMappings); + } + + /** + * Update the navigation property telephoneNumberManagement in admin + * @param TelephoneNumberManagementRoot $body The request body + * @param TelephoneNumberManagementRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + */ + public function patch(TelephoneNumberManagementRoot $body, ?TelephoneNumberManagementRequestBuilderPatchRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPatchRequestInformation($body, $requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [TelephoneNumberManagementRoot::class, 'createFromDiscriminatorValue'], $errorMappings); + } + + /** + * Delete navigation property telephoneNumberManagement for admin + * @param TelephoneNumberManagementRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toDeleteRequestInformation(?TelephoneNumberManagementRequestBuilderDeleteRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::DELETE; + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->tryAddHeader('Accept', "application/json"); + return $requestInfo; + } + + /** + * Represents a collection of available telephone number management operations. + * @param TelephoneNumberManagementRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?TelephoneNumberManagementRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->tryAddHeader('Accept', "application/json"); + return $requestInfo; + } + + /** + * Update the navigation property telephoneNumberManagement in admin + * @param TelephoneNumberManagementRoot $body The request body + * @param TelephoneNumberManagementRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPatchRequestInformation(TelephoneNumberManagementRoot $body, ?TelephoneNumberManagementRequestBuilderPatchRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::PATCH; + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->tryAddHeader('Accept', "application/json"); + $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); + return $requestInfo; + } + + /** + * 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 TelephoneNumberManagementRequestBuilder + */ + public function withUrl(string $rawUrl): TelephoneNumberManagementRequestBuilder { + return new TelephoneNumberManagementRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/Admin/Teams/TelephoneNumberManagement/TelephoneNumberManagementRequestBuilderDeleteRequestConfiguration.php b/src/Generated/Admin/Teams/TelephoneNumberManagement/TelephoneNumberManagementRequestBuilderDeleteRequestConfiguration.php new file mode 100644 index 00000000000..578a4c29c88 --- /dev/null +++ b/src/Generated/Admin/Teams/TelephoneNumberManagement/TelephoneNumberManagementRequestBuilderDeleteRequestConfiguration.php @@ -0,0 +1,22 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + */ + public function __construct(?array $headers = null, ?array $options = null) { + parent::__construct($headers ?? [], $options ?? []); + } + +} diff --git a/src/Generated/Admin/Teams/TelephoneNumberManagement/TelephoneNumberManagementRequestBuilderGetQueryParameters.php b/src/Generated/Admin/Teams/TelephoneNumberManagement/TelephoneNumberManagementRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..52879f00639 --- /dev/null +++ b/src/Generated/Admin/Teams/TelephoneNumberManagement/TelephoneNumberManagementRequestBuilderGetQueryParameters.php @@ -0,0 +1,34 @@ +|null $expand Expand related entities + */ + public ?array $expand = null; + + /** + * @QueryParameter("%24select") + * @var array|null $select Select properties to be returned + */ + public ?array $select = null; + + /** + * Instantiates a new TelephoneNumberManagementRequestBuilderGetQueryParameters and sets the default values. + * @param array|null $expand Expand related entities + * @param array|null $select Select properties to be returned + */ + public function __construct(?array $expand = null, ?array $select = null) { + $this->expand = $expand; + $this->select = $select; + } + +} diff --git a/src/Generated/Admin/Teams/TelephoneNumberManagement/TelephoneNumberManagementRequestBuilderGetRequestConfiguration.php b/src/Generated/Admin/Teams/TelephoneNumberManagement/TelephoneNumberManagementRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..19bd9ed4090 --- /dev/null +++ b/src/Generated/Admin/Teams/TelephoneNumberManagement/TelephoneNumberManagementRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,39 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param TelephoneNumberManagementRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?TelephoneNumberManagementRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new TelephoneNumberManagementRequestBuilderGetQueryParameters. + * @param array|null $expand Expand related entities + * @param array|null $select Select properties to be returned + * @return TelephoneNumberManagementRequestBuilderGetQueryParameters + */ + public static function createQueryParameters(?array $expand = null, ?array $select = null): TelephoneNumberManagementRequestBuilderGetQueryParameters { + return new TelephoneNumberManagementRequestBuilderGetQueryParameters($expand, $select); + } + +} diff --git a/src/Generated/Admin/Teams/TelephoneNumberManagement/TelephoneNumberManagementRequestBuilderPatchRequestConfiguration.php b/src/Generated/Admin/Teams/TelephoneNumberManagement/TelephoneNumberManagementRequestBuilderPatchRequestConfiguration.php new file mode 100644 index 00000000000..8a59b4ae80a --- /dev/null +++ b/src/Generated/Admin/Teams/TelephoneNumberManagement/TelephoneNumberManagementRequestBuilderPatchRequestConfiguration.php @@ -0,0 +1,22 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + */ + public function __construct(?array $headers = null, ?array $options = null) { + parent::__construct($headers ?? [], $options ?? []); + } + +} diff --git a/src/Generated/Applications/ApplicationsRequestBuilder.php b/src/Generated/Applications/ApplicationsRequestBuilder.php index c55ed46458c..f8f0ef803b3 100644 --- a/src/Generated/Applications/ApplicationsRequestBuilder.php +++ b/src/Generated/Applications/ApplicationsRequestBuilder.php @@ -84,7 +84,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Get the list of applications in this organization. + * Get the list of applications in this organization. This API also returns agentIdentityBlueprint objects, which are identified by the @odata.type property of #microsoft.graph.agentIdentityBlueprint. * @param ApplicationsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @throws Exception @@ -99,7 +99,7 @@ public function get(?ApplicationsRequestBuilderGetRequestConfiguration $requestC } /** - * Create a new application object. + * Create a new application object. This API can also create an agentIdentityBlueprint object when the @odata.type property is set to #microsoft.graph.agentIdentityBlueprint. * @param Application $body The request body * @param ApplicationsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -115,7 +115,7 @@ public function post(Application $body, ?ApplicationsRequestBuilderPostRequestCo } /** - * Get the list of applications in this organization. + * Get the list of applications in this organization. This API also returns agentIdentityBlueprint objects, which are identified by the @odata.type property of #microsoft.graph.agentIdentityBlueprint. * @param ApplicationsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -136,7 +136,7 @@ public function toGetRequestInformation(?ApplicationsRequestBuilderGetRequestCon } /** - * Create a new application object. + * Create a new application object. This API can also create an agentIdentityBlueprint object when the @odata.type property is set to #microsoft.graph.agentIdentityBlueprint. * @param Application $body The request body * @param ApplicationsRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Applications/ApplicationsRequestBuilderGetQueryParameters.php b/src/Generated/Applications/ApplicationsRequestBuilderGetQueryParameters.php index d3fc94f332d..c118ad08700 100644 --- a/src/Generated/Applications/ApplicationsRequestBuilderGetQueryParameters.php +++ b/src/Generated/Applications/ApplicationsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get the list of applications in this organization. + * Get the list of applications in this organization. This API also returns agentIdentityBlueprint objects, which are identified by the @odata.type property of #microsoft.graph.agentIdentityBlueprint. */ class ApplicationsRequestBuilderGetQueryParameters { diff --git a/src/Generated/Applications/Delta/DeltaGetResponse.php b/src/Generated/Applications/Delta/DeltaGetResponse.php index e24ac561833..54fdc03a0e0 100644 --- a/src/Generated/Applications/Delta/DeltaGetResponse.php +++ b/src/Generated/Applications/Delta/DeltaGetResponse.php @@ -2,8 +2,8 @@ namespace Microsoft\Graph\Generated\Applications\Delta; -use Microsoft\Graph\Generated\Models\Application; use Microsoft\Graph\Generated\Models\BaseDeltaFunctionResponse; +use Microsoft\Graph\Generated\Models\DirectoryObject; use Microsoft\Kiota\Abstractions\Serialization\Parsable; use Microsoft\Kiota\Abstractions\Serialization\ParseNode; use Microsoft\Kiota\Abstractions\Serialization\SerializationWriter; @@ -34,19 +34,19 @@ public static function createFromDiscriminatorValue(ParseNode $parseNode): Delta public function getFieldDeserializers(): array { $o = $this; return array_merge(parent::getFieldDeserializers(), [ - 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([Application::class, 'createFromDiscriminatorValue'])), + 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([DirectoryObject::class, 'createFromDiscriminatorValue'])), ]); } /** * Gets the value property value. The value property - * @return array|null + * @return array|null */ public function getValue(): ?array { $val = $this->getBackingStore()->get('value'); if (is_array($val) || is_null($val)) { - TypeUtils::validateCollectionValues($val, Application::class); - /** @var array|null $val */ + TypeUtils::validateCollectionValues($val, DirectoryObject::class); + /** @var array|null $val */ return $val; } throw new \UnexpectedValueException("Invalid type found in backing store for 'value'"); @@ -63,7 +63,7 @@ public function serialize(SerializationWriter $writer): void { /** * Sets the value property value. The value property - * @param array|null $value Value to set for the value property. + * @param array|null $value Value to set for the value property. */ public function setValue(?array $value): void { $this->getBackingStore()->set('value', $value); diff --git a/src/Generated/Applications/Delta/DeltaRequestBuilder.php b/src/Generated/Applications/Delta/DeltaRequestBuilder.php index 9a38e8e7a22..406774f3787 100644 --- a/src/Generated/Applications/Delta/DeltaRequestBuilder.php +++ b/src/Generated/Applications/Delta/DeltaRequestBuilder.php @@ -30,11 +30,11 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Get newly created, updated, or deleted applications without performing a full read of the entire resource collection. For more information, see Use delta query to track changes in Microsoft Graph data for details. + * Get newly created, updated, or deleted directory objects without performing a full read of the entire directoryObject collection. For more information, see Use delta query to track changes in Microsoft Graph data for details. * @param DeltaRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @throws Exception - * @link https://learn.microsoft.com/graph/api/application-delta?view=graph-rest-1.0 Find more info here + * @link https://learn.microsoft.com/graph/api/directoryobject-delta?view=graph-rest-1.0 Find more info here */ public function get(?DeltaRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toGetRequestInformation($requestConfiguration); @@ -45,7 +45,7 @@ public function get(?DeltaRequestBuilderGetRequestConfiguration $requestConfigur } /** - * Get newly created, updated, or deleted applications without performing a full read of the entire resource collection. For more information, see Use delta query to track changes in Microsoft Graph data for details. + * Get newly created, updated, or deleted directory objects without performing a full read of the entire directoryObject collection. For more information, see Use delta query to track changes in Microsoft Graph data for details. * @param DeltaRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Applications/Delta/DeltaRequestBuilderGetQueryParameters.php b/src/Generated/Applications/Delta/DeltaRequestBuilderGetQueryParameters.php index e99f63bc713..0782f0f4f16 100644 --- a/src/Generated/Applications/Delta/DeltaRequestBuilderGetQueryParameters.php +++ b/src/Generated/Applications/Delta/DeltaRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get newly created, updated, or deleted applications without performing a full read of the entire resource collection. For more information, see Use delta query to track changes in Microsoft Graph data for details. + * Get newly created, updated, or deleted directory objects without performing a full read of the entire directoryObject collection. For more information, see Use delta query to track changes in Microsoft Graph data for details. */ class DeltaRequestBuilderGetQueryParameters { diff --git a/src/Generated/Applications/Item/ApplicationItemRequestBuilder.php b/src/Generated/Applications/Item/ApplicationItemRequestBuilder.php index 32c17978b10..1a11ebbccf2 100644 --- a/src/Generated/Applications/Item/ApplicationItemRequestBuilder.php +++ b/src/Generated/Applications/Item/ApplicationItemRequestBuilder.php @@ -200,7 +200,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Delete an application object. When deleted, apps are moved to a temporary container and can be restored within 30 days. After that time, they are permanently deleted. + * Delete an application object. When deleted, apps are moved to a temporary container and can be restored within 30 days. After that time, they are permanently deleted. This API can also delete an agentIdentityBlueprint object by its ID. * @param ApplicationItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @throws Exception @@ -224,7 +224,7 @@ public function federatedIdentityCredentialsWithName(string $name): FederatedIde } /** - * Get the properties and relationships of an application object. + * Get the properties and relationships of an application object. This API can be used to get agentIdentityBlueprint objects as well by their ID. * @param ApplicationItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @throws Exception @@ -239,7 +239,7 @@ public function get(?ApplicationItemRequestBuilderGetRequestConfiguration $reque } /** - * Create a new application object if it doesn't exist, or update the properties of an existing application object. + * Create a new application object if it doesn't exist, or update the properties of an existing application object. This API can also create an agentIdentityBlueprint object if it doesn't exist, or update properties of an existing agentIdentityBlueprint, when the @odata.type property is set to #microsoft.graph.agentIdentityBlueprint. * @param Application $body The request body * @param ApplicationItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -255,7 +255,7 @@ public function patch(Application $body, ?ApplicationItemRequestBuilderPatchRequ } /** - * Delete an application object. When deleted, apps are moved to a temporary container and can be restored within 30 days. After that time, they are permanently deleted. + * Delete an application object. When deleted, apps are moved to a temporary container and can be restored within 30 days. After that time, they are permanently deleted. This API can also delete an agentIdentityBlueprint object by its ID. * @param ApplicationItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -273,7 +273,7 @@ public function toDeleteRequestInformation(?ApplicationItemRequestBuilderDeleteR } /** - * Get the properties and relationships of an application object. + * Get the properties and relationships of an application object. This API can be used to get agentIdentityBlueprint objects as well by their ID. * @param ApplicationItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -294,7 +294,7 @@ public function toGetRequestInformation(?ApplicationItemRequestBuilderGetRequest } /** - * Create a new application object if it doesn't exist, or update the properties of an existing application object. + * Create a new application object if it doesn't exist, or update the properties of an existing application object. This API can also create an agentIdentityBlueprint object if it doesn't exist, or update properties of an existing agentIdentityBlueprint, when the @odata.type property is set to #microsoft.graph.agentIdentityBlueprint. * @param Application $body The request body * @param ApplicationItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Applications/Item/ApplicationItemRequestBuilderGetQueryParameters.php b/src/Generated/Applications/Item/ApplicationItemRequestBuilderGetQueryParameters.php index 80efee1e46d..f76a8deecce 100644 --- a/src/Generated/Applications/Item/ApplicationItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/Applications/Item/ApplicationItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get the properties and relationships of an application object. + * Get the properties and relationships of an application object. This API can be used to get agentIdentityBlueprint objects as well by their ID. */ class ApplicationItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/Applications/Item/RemoveKey/RemoveKeyRequestBuilder.php b/src/Generated/Applications/Item/RemoveKey/RemoveKeyRequestBuilder.php index ba075e44994..43866f0c0bc 100644 --- a/src/Generated/Applications/Item/RemoveKey/RemoveKeyRequestBuilder.php +++ b/src/Generated/Applications/Item/RemoveKey/RemoveKeyRequestBuilder.php @@ -30,12 +30,12 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Remove a key credential from an application. This method along with addKey can be used by an application to automate rolling its expiring keys. As part of the request validation for this method, a proof of possession of an existing key is verified before the action can be performed. + * Remove a key credential from an agentIdentityBlueprint. This method along with addKey can be used to automate rolling its expiring keys. * @param RemoveKeyPostRequestBody $body The request body * @param RemoveKeyRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @throws Exception - * @link https://learn.microsoft.com/graph/api/application-removekey?view=graph-rest-1.0 Find more info here + * @link https://learn.microsoft.com/graph/api/agentidentityblueprint-removekey?view=graph-rest-1.0 Find more info here */ public function post(RemoveKeyPostRequestBody $body, ?RemoveKeyRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration); @@ -46,7 +46,7 @@ public function post(RemoveKeyPostRequestBody $body, ?RemoveKeyRequestBuilderPos } /** - * Remove a key credential from an application. This method along with addKey can be used by an application to automate rolling its expiring keys. As part of the request validation for this method, a proof of possession of an existing key is verified before the action can be performed. + * Remove a key credential from an agentIdentityBlueprint. This method along with addKey can be used to automate rolling its expiring keys. * @param RemoveKeyPostRequestBody $body The request body * @param RemoveKeyRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Applications/Item/Restore/RestoreRequestBuilder.php b/src/Generated/Applications/Item/Restore/RestoreRequestBuilder.php index 28b9406dc7e..a22ca6d32b3 100644 --- a/src/Generated/Applications/Item/Restore/RestoreRequestBuilder.php +++ b/src/Generated/Applications/Item/Restore/RestoreRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * 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. + * 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- agentIdentityBlueprint- agentIdentity- agentIdentityBlueprintPrincipal- 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. * @param RestoreRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @throws Exception @@ -46,7 +46,7 @@ public function post(?RestoreRequestBuilderPostRequestConfiguration $requestConf } /** - * 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. + * 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- agentIdentityBlueprint- agentIdentity- agentIdentityBlueprintPrincipal- 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. * @param RestoreRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Applications/Item/SetVerifiedPublisher/SetVerifiedPublisherRequestBuilder.php b/src/Generated/Applications/Item/SetVerifiedPublisher/SetVerifiedPublisherRequestBuilder.php index 1d988176032..ab0bba7aee3 100644 --- a/src/Generated/Applications/Item/SetVerifiedPublisher/SetVerifiedPublisherRequestBuilder.php +++ b/src/Generated/Applications/Item/SetVerifiedPublisher/SetVerifiedPublisherRequestBuilder.php @@ -30,12 +30,12 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Set the verifiedPublisher on an application. For more information, including prerequisites to setting a verified publisher, see Publisher verification. + * Set the the verifiedPublisher on an agentIdentityBlueprint. For more information, including prerequisites to setting a verified publisher, see Publisher verification. * @param SetVerifiedPublisherPostRequestBody $body The request body * @param SetVerifiedPublisherRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @throws Exception - * @link https://learn.microsoft.com/graph/api/application-setverifiedpublisher?view=graph-rest-1.0 Find more info here + * @link https://learn.microsoft.com/graph/api/agentidentityblueprint-setverifiedpublisher?view=graph-rest-1.0 Find more info here */ public function post(SetVerifiedPublisherPostRequestBody $body, ?SetVerifiedPublisherRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration); @@ -46,7 +46,7 @@ public function post(SetVerifiedPublisherPostRequestBody $body, ?SetVerifiedPubl } /** - * Set the verifiedPublisher on an application. For more information, including prerequisites to setting a verified publisher, see Publisher verification. + * Set the the verifiedPublisher on an agentIdentityBlueprint. For more information, including prerequisites to setting a verified publisher, see Publisher verification. * @param SetVerifiedPublisherPostRequestBody $body The request body * @param SetVerifiedPublisherRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/Applications/Item/UnsetVerifiedPublisher/UnsetVerifiedPublisherRequestBuilder.php b/src/Generated/Applications/Item/UnsetVerifiedPublisher/UnsetVerifiedPublisherRequestBuilder.php index eb44a0b2354..63fc4bab534 100644 --- a/src/Generated/Applications/Item/UnsetVerifiedPublisher/UnsetVerifiedPublisherRequestBuilder.php +++ b/src/Generated/Applications/Item/UnsetVerifiedPublisher/UnsetVerifiedPublisherRequestBuilder.php @@ -30,11 +30,11 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Unset the verifiedPublisher previously set on an application, removing all verified publisher properties. For more information, see Publisher verification. + * Unset the verifiedPublisher previously set on an agentIdentityBlueprint, removing all verified publisher properties. For more information, see Publisher verification. * @param UnsetVerifiedPublisherRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @throws Exception - * @link https://learn.microsoft.com/graph/api/application-unsetverifiedpublisher?view=graph-rest-1.0 Find more info here + * @link https://learn.microsoft.com/graph/api/agentidentityblueprint-unsetverifiedpublisher?view=graph-rest-1.0 Find more info here */ public function post(?UnsetVerifiedPublisherRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toPostRequestInformation($requestConfiguration); @@ -45,7 +45,7 @@ public function post(?UnsetVerifiedPublisherRequestBuilderPostRequestConfigurati } /** - * Unset the verifiedPublisher previously set on an application, removing all verified publisher properties. For more information, see Publisher verification. + * Unset the verifiedPublisher previously set on an agentIdentityBlueprint, removing all verified publisher properties. For more information, see Publisher verification. * @param UnsetVerifiedPublisherRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/ApplicationsWithAppId/ApplicationsWithAppIdRequestBuilder.php b/src/Generated/ApplicationsWithAppId/ApplicationsWithAppIdRequestBuilder.php index 88dac72a5d0..4f0194a793d 100644 --- a/src/Generated/ApplicationsWithAppId/ApplicationsWithAppIdRequestBuilder.php +++ b/src/Generated/ApplicationsWithAppId/ApplicationsWithAppIdRequestBuilder.php @@ -34,7 +34,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Delete an application object. When deleted, apps are moved to a temporary container and can be restored within 30 days. After that time, they are permanently deleted. + * Delete an application object. When deleted, apps are moved to a temporary container and can be restored within 30 days. After that time, they are permanently deleted. This API can also delete an agentIdentityBlueprint object by its ID. * @param ApplicationsWithAppIdRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @throws Exception @@ -49,7 +49,7 @@ public function delete(?ApplicationsWithAppIdRequestBuilderDeleteRequestConfigur } /** - * Get the properties and relationships of an application object. + * Get the properties and relationships of an application object. This API can be used to get agentIdentityBlueprint objects as well by their ID. * @param ApplicationsWithAppIdRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @throws Exception @@ -64,7 +64,7 @@ public function get(?ApplicationsWithAppIdRequestBuilderGetRequestConfiguration } /** - * Create a new application object if it doesn't exist, or update the properties of an existing application object. + * Create a new application object if it doesn't exist, or update the properties of an existing application object. This API can also create an agentIdentityBlueprint object if it doesn't exist, or update properties of an existing agentIdentityBlueprint, when the @odata.type property is set to #microsoft.graph.agentIdentityBlueprint. * @param Application $body The request body * @param ApplicationsWithAppIdRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -80,7 +80,7 @@ public function patch(Application $body, ?ApplicationsWithAppIdRequestBuilderPat } /** - * Delete an application object. When deleted, apps are moved to a temporary container and can be restored within 30 days. After that time, they are permanently deleted. + * Delete an application object. When deleted, apps are moved to a temporary container and can be restored within 30 days. After that time, they are permanently deleted. This API can also delete an agentIdentityBlueprint object by its ID. * @param ApplicationsWithAppIdRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -98,7 +98,7 @@ public function toDeleteRequestInformation(?ApplicationsWithAppIdRequestBuilderD } /** - * Get the properties and relationships of an application object. + * Get the properties and relationships of an application object. This API can be used to get agentIdentityBlueprint objects as well by their ID. * @param ApplicationsWithAppIdRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -119,7 +119,7 @@ public function toGetRequestInformation(?ApplicationsWithAppIdRequestBuilderGetR } /** - * Create a new application object if it doesn't exist, or update the properties of an existing application object. + * Create a new application object if it doesn't exist, or update the properties of an existing application object. This API can also create an agentIdentityBlueprint object if it doesn't exist, or update properties of an existing agentIdentityBlueprint, when the @odata.type property is set to #microsoft.graph.agentIdentityBlueprint. * @param Application $body The request body * @param ApplicationsWithAppIdRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/ApplicationsWithAppId/ApplicationsWithAppIdRequestBuilderGetQueryParameters.php b/src/Generated/ApplicationsWithAppId/ApplicationsWithAppIdRequestBuilderGetQueryParameters.php index 1bb9c47d15b..3be5d8a1d39 100644 --- a/src/Generated/ApplicationsWithAppId/ApplicationsWithAppIdRequestBuilderGetQueryParameters.php +++ b/src/Generated/ApplicationsWithAppId/ApplicationsWithAppIdRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get the properties and relationships of an application object. + * Get the properties and relationships of an application object. This API can be used to get agentIdentityBlueprint objects as well by their ID. */ class ApplicationsWithAppIdRequestBuilderGetQueryParameters { diff --git a/src/Generated/ApplicationsWithUniqueName/ApplicationsWithUniqueNameRequestBuilder.php b/src/Generated/ApplicationsWithUniqueName/ApplicationsWithUniqueNameRequestBuilder.php index 0f72b200a96..c1ebaf26c85 100644 --- a/src/Generated/ApplicationsWithUniqueName/ApplicationsWithUniqueNameRequestBuilder.php +++ b/src/Generated/ApplicationsWithUniqueName/ApplicationsWithUniqueNameRequestBuilder.php @@ -34,7 +34,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Delete an application object. When deleted, apps are moved to a temporary container and can be restored within 30 days. After that time, they are permanently deleted. + * Delete an application object. When deleted, apps are moved to a temporary container and can be restored within 30 days. After that time, they are permanently deleted. This API can also delete an agentIdentityBlueprint object by its ID. * @param ApplicationsWithUniqueNameRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @throws Exception @@ -49,7 +49,7 @@ public function delete(?ApplicationsWithUniqueNameRequestBuilderDeleteRequestCon } /** - * Get the properties and relationships of an application object. + * Get the properties and relationships of an application object. This API can be used to get agentIdentityBlueprint objects as well by their ID. * @param ApplicationsWithUniqueNameRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @throws Exception @@ -64,7 +64,7 @@ public function get(?ApplicationsWithUniqueNameRequestBuilderGetRequestConfigura } /** - * Create a new application object if it doesn't exist, or update the properties of an existing application object. + * Create a new application object if it doesn't exist, or update the properties of an existing application object. This API can also create an agentIdentityBlueprint object if it doesn't exist, or update properties of an existing agentIdentityBlueprint, when the @odata.type property is set to #microsoft.graph.agentIdentityBlueprint. * @param Application $body The request body * @param ApplicationsWithUniqueNameRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise @@ -80,7 +80,7 @@ public function patch(Application $body, ?ApplicationsWithUniqueNameRequestBuild } /** - * Delete an application object. When deleted, apps are moved to a temporary container and can be restored within 30 days. After that time, they are permanently deleted. + * Delete an application object. When deleted, apps are moved to a temporary container and can be restored within 30 days. After that time, they are permanently deleted. This API can also delete an agentIdentityBlueprint object by its ID. * @param ApplicationsWithUniqueNameRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -98,7 +98,7 @@ public function toDeleteRequestInformation(?ApplicationsWithUniqueNameRequestBui } /** - * Get the properties and relationships of an application object. + * Get the properties and relationships of an application object. This API can be used to get agentIdentityBlueprint objects as well by their ID. * @param ApplicationsWithUniqueNameRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ @@ -119,7 +119,7 @@ public function toGetRequestInformation(?ApplicationsWithUniqueNameRequestBuilde } /** - * Create a new application object if it doesn't exist, or update the properties of an existing application object. + * Create a new application object if it doesn't exist, or update the properties of an existing application object. This API can also create an agentIdentityBlueprint object if it doesn't exist, or update properties of an existing agentIdentityBlueprint, when the @odata.type property is set to #microsoft.graph.agentIdentityBlueprint. * @param Application $body The request body * @param ApplicationsWithUniqueNameRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation diff --git a/src/Generated/ApplicationsWithUniqueName/ApplicationsWithUniqueNameRequestBuilderGetQueryParameters.php b/src/Generated/ApplicationsWithUniqueName/ApplicationsWithUniqueNameRequestBuilderGetQueryParameters.php index 9f7b2285c9b..e329f64d705 100644 --- a/src/Generated/ApplicationsWithUniqueName/ApplicationsWithUniqueNameRequestBuilderGetQueryParameters.php +++ b/src/Generated/ApplicationsWithUniqueName/ApplicationsWithUniqueNameRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get the properties and relationships of an application object. + * Get the properties and relationships of an application object. This API can be used to get agentIdentityBlueprint objects as well by their ID. */ class ApplicationsWithUniqueNameRequestBuilderGetQueryParameters { diff --git a/src/Generated/Chats/Item/Messages/Item/Replies/RepliesRequestBuilder.php b/src/Generated/Chats/Item/Messages/Item/Replies/RepliesRequestBuilder.php index ded1b130c2b..3c20bb95137 100644 --- a/src/Generated/Chats/Item/Messages/Item/Replies/RepliesRequestBuilder.php +++ b/src/Generated/Chats/Item/Messages/Item/Replies/RepliesRequestBuilder.php @@ -7,6 +7,7 @@ use Microsoft\Graph\Generated\Chats\Item\Messages\Item\Replies\Count\CountRequestBuilder; use Microsoft\Graph\Generated\Chats\Item\Messages\Item\Replies\Delta\DeltaRequestBuilder; use Microsoft\Graph\Generated\Chats\Item\Messages\Item\Replies\Item\ChatMessageItemRequestBuilder; +use Microsoft\Graph\Generated\Chats\Item\Messages\Item\Replies\ReplyWithQuote\ReplyWithQuoteRequestBuilder; use Microsoft\Graph\Generated\Models\ChatMessage; use Microsoft\Graph\Generated\Models\ChatMessageCollectionResponse; use Microsoft\Graph\Generated\Models\ODataErrors\ODataError; @@ -34,6 +35,13 @@ public function delta(): DeltaRequestBuilder { return new DeltaRequestBuilder($this->pathParameters, $this->requestAdapter); } + /** + * Provides operations to call the replyWithQuote method. + */ + public function replyWithQuote(): ReplyWithQuoteRequestBuilder { + return new ReplyWithQuoteRequestBuilder($this->pathParameters, $this->requestAdapter); + } + /** * Provides operations to manage the replies property of the microsoft.graph.chatMessage entity. * @param string $chatMessageId1 The unique identifier of chatMessage diff --git a/src/Generated/Chats/Item/Messages/Item/Replies/ReplyWithQuote/ReplyWithQuotePostRequestBody.php b/src/Generated/Chats/Item/Messages/Item/Replies/ReplyWithQuote/ReplyWithQuotePostRequestBody.php new file mode 100644 index 00000000000..d5fde632643 --- /dev/null +++ b/src/Generated/Chats/Item/Messages/Item/Replies/ReplyWithQuote/ReplyWithQuotePostRequestBody.php @@ -0,0 +1,147 @@ +backingStore = BackingStoreFactorySingleton::getInstance()->createBackingStore(); + $this->setAdditionalData([]); + } + + /** + * Creates a new instance of the appropriate class based on discriminator value + * @param ParseNode $parseNode The parse node to use to read the discriminator value and create the object + * @return ReplyWithQuotePostRequestBody + */ + public static function createFromDiscriminatorValue(ParseNode $parseNode): ReplyWithQuotePostRequestBody { + return new ReplyWithQuotePostRequestBody(); + } + + /** + * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @return array|null + */ + public function getAdditionalData(): ?array { + $val = $this->getBackingStore()->get('additionalData'); + if (is_null($val) || is_array($val)) { + /** @var array|null $val */ + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'additionalData'"); + } + + /** + * Gets the BackingStore property value. Stores model information. + * @return BackingStore + */ + public function getBackingStore(): BackingStore { + return $this->backingStore; + } + + /** + * The deserialization information for the current model + * @return array + */ + public function getFieldDeserializers(): array { + $o = $this; + return [ + 'messageIds' => function (ParseNode $n) { + $val = $n->getCollectionOfPrimitiveValues(); + if (is_array($val)) { + TypeUtils::validateCollectionValues($val, 'string'); + } + /** @var array|null $val */ + $this->setMessageIds($val); + }, + 'replyMessage' => fn(ParseNode $n) => $o->setReplyMessage($n->getObjectValue([ChatMessage::class, 'createFromDiscriminatorValue'])), + ]; + } + + /** + * Gets the messageIds property value. The messageIds property + * @return array|null + */ + public function getMessageIds(): ?array { + $val = $this->getBackingStore()->get('messageIds'); + if (is_array($val) || is_null($val)) { + TypeUtils::validateCollectionValues($val, 'string'); + /** @var array|null $val */ + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'messageIds'"); + } + + /** + * Gets the replyMessage property value. The replyMessage property + * @return ChatMessage|null + */ + public function getReplyMessage(): ?ChatMessage { + $val = $this->getBackingStore()->get('replyMessage'); + if (is_null($val) || $val instanceof ChatMessage) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'replyMessage'"); + } + + /** + * Serializes information the current object + * @param SerializationWriter $writer Serialization writer to use to serialize this model + */ + public function serialize(SerializationWriter $writer): void { + $writer->writeCollectionOfPrimitiveValues('messageIds', $this->getMessageIds()); + $writer->writeObjectValue('replyMessage', $this->getReplyMessage()); + $writer->writeAdditionalData($this->getAdditionalData()); + } + + /** + * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @param array $value Value to set for the AdditionalData property. + */ + public function setAdditionalData(?array $value): void { + $this->getBackingStore()->set('additionalData', $value); + } + + /** + * Sets the BackingStore property value. Stores model information. + * @param BackingStore $value Value to set for the BackingStore property. + */ + public function setBackingStore(BackingStore $value): void { + $this->backingStore = $value; + } + + /** + * Sets the messageIds property value. The messageIds property + * @param array|null $value Value to set for the messageIds property. + */ + public function setMessageIds(?array $value): void { + $this->getBackingStore()->set('messageIds', $value); + } + + /** + * Sets the replyMessage property value. The replyMessage property + * @param ChatMessage|null $value Value to set for the replyMessage property. + */ + public function setReplyMessage(?ChatMessage $value): void { + $this->getBackingStore()->set('replyMessage', $value); + } + +} diff --git a/src/Generated/Chats/Item/Messages/Item/Replies/ReplyWithQuote/ReplyWithQuoteRequestBuilder.php b/src/Generated/Chats/Item/Messages/Item/Replies/ReplyWithQuote/ReplyWithQuoteRequestBuilder.php new file mode 100644 index 00000000000..94ba01729b5 --- /dev/null +++ b/src/Generated/Chats/Item/Messages/Item/Replies/ReplyWithQuote/ReplyWithQuoteRequestBuilder.php @@ -0,0 +1,78 @@ +|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}/chats/{chat%2Did}/messages/{chatMessage%2Did}/replies/replyWithQuote'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Reply with quote to a single chat message or multiple chat messages in a chat. + * @param ReplyWithQuotePostRequestBody $body The request body + * @param ReplyWithQuoteRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + * @link https://learn.microsoft.com/graph/api/chatmessage-replywithquote?view=graph-rest-1.0 Find more info here + */ + public function post(ReplyWithQuotePostRequestBody $body, ?ReplyWithQuoteRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [ChatMessage::class, 'createFromDiscriminatorValue'], $errorMappings); + } + + /** + * Reply with quote to a single chat message or multiple chat messages in a chat. + * @param ReplyWithQuotePostRequestBody $body The request body + * @param ReplyWithQuoteRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPostRequestInformation(ReplyWithQuotePostRequestBody $body, ?ReplyWithQuoteRequestBuilderPostRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::POST; + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->tryAddHeader('Accept', "application/json"); + $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); + return $requestInfo; + } + + /** + * 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 ReplyWithQuoteRequestBuilder + */ + public function withUrl(string $rawUrl): ReplyWithQuoteRequestBuilder { + return new ReplyWithQuoteRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/Chats/Item/Messages/Item/Replies/ReplyWithQuote/ReplyWithQuoteRequestBuilderPostRequestConfiguration.php b/src/Generated/Chats/Item/Messages/Item/Replies/ReplyWithQuote/ReplyWithQuoteRequestBuilderPostRequestConfiguration.php new file mode 100644 index 00000000000..e71bb4c9d6a --- /dev/null +++ b/src/Generated/Chats/Item/Messages/Item/Replies/ReplyWithQuote/ReplyWithQuoteRequestBuilderPostRequestConfiguration.php @@ -0,0 +1,22 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + */ + public function __construct(?array $headers = null, ?array $options = null) { + parent::__construct($headers ?? [], $options ?? []); + } + +} diff --git a/src/Generated/Chats/Item/Messages/MessagesRequestBuilder.php b/src/Generated/Chats/Item/Messages/MessagesRequestBuilder.php index fc210c496a2..d38bd6fec56 100644 --- a/src/Generated/Chats/Item/Messages/MessagesRequestBuilder.php +++ b/src/Generated/Chats/Item/Messages/MessagesRequestBuilder.php @@ -7,6 +7,7 @@ use Microsoft\Graph\Generated\Chats\Item\Messages\Count\CountRequestBuilder; use Microsoft\Graph\Generated\Chats\Item\Messages\Delta\DeltaRequestBuilder; use Microsoft\Graph\Generated\Chats\Item\Messages\Item\ChatMessageItemRequestBuilder; +use Microsoft\Graph\Generated\Chats\Item\Messages\ReplyWithQuote\ReplyWithQuoteRequestBuilder; use Microsoft\Graph\Generated\Models\ChatMessage; use Microsoft\Graph\Generated\Models\ChatMessageCollectionResponse; use Microsoft\Graph\Generated\Models\ODataErrors\ODataError; @@ -34,6 +35,13 @@ public function delta(): DeltaRequestBuilder { return new DeltaRequestBuilder($this->pathParameters, $this->requestAdapter); } + /** + * Provides operations to call the replyWithQuote method. + */ + public function replyWithQuote(): ReplyWithQuoteRequestBuilder { + return new ReplyWithQuoteRequestBuilder($this->pathParameters, $this->requestAdapter); + } + /** * Provides operations to manage the messages property of the microsoft.graph.chat entity. * @param string $chatMessageId The unique identifier of chatMessage diff --git a/src/Generated/Chats/Item/Messages/ReplyWithQuote/ReplyWithQuotePostRequestBody.php b/src/Generated/Chats/Item/Messages/ReplyWithQuote/ReplyWithQuotePostRequestBody.php new file mode 100644 index 00000000000..4757597597d --- /dev/null +++ b/src/Generated/Chats/Item/Messages/ReplyWithQuote/ReplyWithQuotePostRequestBody.php @@ -0,0 +1,147 @@ +backingStore = BackingStoreFactorySingleton::getInstance()->createBackingStore(); + $this->setAdditionalData([]); + } + + /** + * Creates a new instance of the appropriate class based on discriminator value + * @param ParseNode $parseNode The parse node to use to read the discriminator value and create the object + * @return ReplyWithQuotePostRequestBody + */ + public static function createFromDiscriminatorValue(ParseNode $parseNode): ReplyWithQuotePostRequestBody { + return new ReplyWithQuotePostRequestBody(); + } + + /** + * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @return array|null + */ + public function getAdditionalData(): ?array { + $val = $this->getBackingStore()->get('additionalData'); + if (is_null($val) || is_array($val)) { + /** @var array|null $val */ + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'additionalData'"); + } + + /** + * Gets the BackingStore property value. Stores model information. + * @return BackingStore + */ + public function getBackingStore(): BackingStore { + return $this->backingStore; + } + + /** + * The deserialization information for the current model + * @return array + */ + public function getFieldDeserializers(): array { + $o = $this; + return [ + 'messageIds' => function (ParseNode $n) { + $val = $n->getCollectionOfPrimitiveValues(); + if (is_array($val)) { + TypeUtils::validateCollectionValues($val, 'string'); + } + /** @var array|null $val */ + $this->setMessageIds($val); + }, + 'replyMessage' => fn(ParseNode $n) => $o->setReplyMessage($n->getObjectValue([ChatMessage::class, 'createFromDiscriminatorValue'])), + ]; + } + + /** + * Gets the messageIds property value. The messageIds property + * @return array|null + */ + public function getMessageIds(): ?array { + $val = $this->getBackingStore()->get('messageIds'); + if (is_array($val) || is_null($val)) { + TypeUtils::validateCollectionValues($val, 'string'); + /** @var array|null $val */ + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'messageIds'"); + } + + /** + * Gets the replyMessage property value. The replyMessage property + * @return ChatMessage|null + */ + public function getReplyMessage(): ?ChatMessage { + $val = $this->getBackingStore()->get('replyMessage'); + if (is_null($val) || $val instanceof ChatMessage) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'replyMessage'"); + } + + /** + * Serializes information the current object + * @param SerializationWriter $writer Serialization writer to use to serialize this model + */ + public function serialize(SerializationWriter $writer): void { + $writer->writeCollectionOfPrimitiveValues('messageIds', $this->getMessageIds()); + $writer->writeObjectValue('replyMessage', $this->getReplyMessage()); + $writer->writeAdditionalData($this->getAdditionalData()); + } + + /** + * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @param array $value Value to set for the AdditionalData property. + */ + public function setAdditionalData(?array $value): void { + $this->getBackingStore()->set('additionalData', $value); + } + + /** + * Sets the BackingStore property value. Stores model information. + * @param BackingStore $value Value to set for the BackingStore property. + */ + public function setBackingStore(BackingStore $value): void { + $this->backingStore = $value; + } + + /** + * Sets the messageIds property value. The messageIds property + * @param array|null $value Value to set for the messageIds property. + */ + public function setMessageIds(?array $value): void { + $this->getBackingStore()->set('messageIds', $value); + } + + /** + * Sets the replyMessage property value. The replyMessage property + * @param ChatMessage|null $value Value to set for the replyMessage property. + */ + public function setReplyMessage(?ChatMessage $value): void { + $this->getBackingStore()->set('replyMessage', $value); + } + +} diff --git a/src/Generated/Chats/Item/Messages/ReplyWithQuote/ReplyWithQuoteRequestBuilder.php b/src/Generated/Chats/Item/Messages/ReplyWithQuote/ReplyWithQuoteRequestBuilder.php new file mode 100644 index 00000000000..b2adb9fe719 --- /dev/null +++ b/src/Generated/Chats/Item/Messages/ReplyWithQuote/ReplyWithQuoteRequestBuilder.php @@ -0,0 +1,78 @@ +|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}/chats/{chat%2Did}/messages/replyWithQuote'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Reply with quote to a single chat message or multiple chat messages in a chat. + * @param ReplyWithQuotePostRequestBody $body The request body + * @param ReplyWithQuoteRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + * @link https://learn.microsoft.com/graph/api/chatmessage-replywithquote?view=graph-rest-1.0 Find more info here + */ + public function post(ReplyWithQuotePostRequestBody $body, ?ReplyWithQuoteRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [ChatMessage::class, 'createFromDiscriminatorValue'], $errorMappings); + } + + /** + * Reply with quote to a single chat message or multiple chat messages in a chat. + * @param ReplyWithQuotePostRequestBody $body The request body + * @param ReplyWithQuoteRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPostRequestInformation(ReplyWithQuotePostRequestBody $body, ?ReplyWithQuoteRequestBuilderPostRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::POST; + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->tryAddHeader('Accept', "application/json"); + $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); + return $requestInfo; + } + + /** + * 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 ReplyWithQuoteRequestBuilder + */ + public function withUrl(string $rawUrl): ReplyWithQuoteRequestBuilder { + return new ReplyWithQuoteRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/Chats/Item/Messages/ReplyWithQuote/ReplyWithQuoteRequestBuilderPostRequestConfiguration.php b/src/Generated/Chats/Item/Messages/ReplyWithQuote/ReplyWithQuoteRequestBuilderPostRequestConfiguration.php new file mode 100644 index 00000000000..400a63e011e --- /dev/null +++ b/src/Generated/Chats/Item/Messages/ReplyWithQuote/ReplyWithQuoteRequestBuilderPostRequestConfiguration.php @@ -0,0 +1,22 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + */ + public function __construct(?array $headers = null, ?array $options = null) { + parent::__construct($headers ?? [], $options ?? []); + } + +} diff --git a/src/Generated/Contacts/Item/Restore/RestoreRequestBuilder.php b/src/Generated/Contacts/Item/Restore/RestoreRequestBuilder.php index 182c6c0fd89..0786bc86a0e 100644 --- a/src/Generated/Contacts/Item/Restore/RestoreRequestBuilder.php +++ b/src/Generated/Contacts/Item/Restore/RestoreRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * 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. + * 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- agentIdentityBlueprint- agentIdentity- agentIdentityBlueprintPrincipal- 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. * @param RestoreRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @throws Exception @@ -46,7 +46,7 @@ public function post(?RestoreRequestBuilderPostRequestConfiguration $requestConf } /** - * 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. + * 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- agentIdentityBlueprint- agentIdentity- agentIdentityBlueprintPrincipal- 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. * @param RestoreRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Contacts/Item/RetryServiceProvisioning/RetryServiceProvisioningRequestBuilder.php b/src/Generated/Contacts/Item/RetryServiceProvisioning/RetryServiceProvisioningRequestBuilder.php index 29d6112893a..d55f73db7c7 100644 --- a/src/Generated/Contacts/Item/RetryServiceProvisioning/RetryServiceProvisioningRequestBuilder.php +++ b/src/Generated/Contacts/Item/RetryServiceProvisioning/RetryServiceProvisioningRequestBuilder.php @@ -30,10 +30,11 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Invoke action retryServiceProvisioning + * Retry the orgContact service provisioning. * @param RetryServiceProvisioningRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @throws Exception + * @link https://learn.microsoft.com/graph/api/orgcontact-retryserviceprovisioning?view=graph-rest-1.0 Find more info here */ public function post(?RetryServiceProvisioningRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { $requestInfo = $this->toPostRequestInformation($requestConfiguration); @@ -44,7 +45,7 @@ public function post(?RetryServiceProvisioningRequestBuilderPostRequestConfigura } /** - * Invoke action retryServiceProvisioning + * Retry the orgContact service provisioning. * @param RetryServiceProvisioningRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Contracts/Item/Restore/RestoreRequestBuilder.php b/src/Generated/Contracts/Item/Restore/RestoreRequestBuilder.php index 887ef16bbc9..d5b54ee7eea 100644 --- a/src/Generated/Contracts/Item/Restore/RestoreRequestBuilder.php +++ b/src/Generated/Contracts/Item/Restore/RestoreRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * 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. + * 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- agentIdentityBlueprint- agentIdentity- agentIdentityBlueprintPrincipal- 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. * @param RestoreRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @throws Exception @@ -46,7 +46,7 @@ public function post(?RestoreRequestBuilderPostRequestConfiguration $requestConf } /** - * 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. + * 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- agentIdentityBlueprint- agentIdentity- agentIdentityBlueprintPrincipal- 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. * @param RestoreRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Devices/Item/Restore/RestoreRequestBuilder.php b/src/Generated/Devices/Item/Restore/RestoreRequestBuilder.php index 5e444678b4c..edb463178b1 100644 --- a/src/Generated/Devices/Item/Restore/RestoreRequestBuilder.php +++ b/src/Generated/Devices/Item/Restore/RestoreRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * 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. + * 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- agentIdentityBlueprint- agentIdentity- agentIdentityBlueprintPrincipal- 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. * @param RestoreRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @throws Exception @@ -46,7 +46,7 @@ public function post(?RestoreRequestBuilderPostRequestConfiguration $requestConf } /** - * 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. + * 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- agentIdentityBlueprint- agentIdentity- agentIdentityBlueprintPrincipal- 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. * @param RestoreRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Directory/DeletedItems/DeletedItemsRequestBuilder.php b/src/Generated/Directory/DeletedItems/DeletedItemsRequestBuilder.php index 8276bffac10..cc03ced3d14 100644 --- a/src/Generated/Directory/DeletedItems/DeletedItemsRequestBuilder.php +++ b/src/Generated/Directory/DeletedItems/DeletedItemsRequestBuilder.php @@ -123,7 +123,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Retrieve the properties of a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. Retrieve the properties of a recently deleted directory object from deleted items. The following types are supported:- administrativeUnit- application- certificateBasedAuthPki- certificateAuthorityDetail- group- servicePrincipal- user + * Retrieve the properties of a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. Retrieve the properties of a recently deleted directory object from deleted items. The following types are supported:- administrativeUnit- application- agentIdentityBlueprint- agentIdentity- agentIdentityBlueprintPrincipal- certificateBasedAuthPki- certificateAuthorityDetail- group- servicePrincipal- user * @param DeletedItemsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @throws Exception @@ -137,7 +137,7 @@ public function get(?DeletedItemsRequestBuilderGetRequestConfiguration $requestC } /** - * Retrieve the properties of a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. Retrieve the properties of a recently deleted directory object from deleted items. The following types are supported:- administrativeUnit- application- certificateBasedAuthPki- certificateAuthorityDetail- group- servicePrincipal- user + * Retrieve the properties of a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. Retrieve the properties of a recently deleted directory object from deleted items. The following types are supported:- administrativeUnit- application- agentIdentityBlueprint- agentIdentity- agentIdentityBlueprintPrincipal- certificateBasedAuthPki- certificateAuthorityDetail- group- servicePrincipal- user * @param DeletedItemsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Directory/DeletedItems/DeletedItemsRequestBuilderGetQueryParameters.php b/src/Generated/Directory/DeletedItems/DeletedItemsRequestBuilderGetQueryParameters.php index 144f98a7b55..07be66ab291 100644 --- a/src/Generated/Directory/DeletedItems/DeletedItemsRequestBuilderGetQueryParameters.php +++ b/src/Generated/Directory/DeletedItems/DeletedItemsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve the properties of a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. Retrieve the properties of a recently deleted directory object from deleted items. The following types are supported:- administrativeUnit- application- certificateBasedAuthPki- certificateAuthorityDetail- group- servicePrincipal- user + * Retrieve the properties of a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. Retrieve the properties of a recently deleted directory object from deleted items. The following types are supported:- administrativeUnit- application- agentIdentityBlueprint- agentIdentity- agentIdentityBlueprintPrincipal- certificateBasedAuthPki- certificateAuthorityDetail- group- servicePrincipal- user */ class DeletedItemsRequestBuilderGetQueryParameters { diff --git a/src/Generated/Directory/DeletedItems/GraphGroup/GraphGroupRequestBuilder.php b/src/Generated/Directory/DeletedItems/GraphGroup/GraphGroupRequestBuilder.php index d9242d62e62..19f7f19701f 100644 --- a/src/Generated/Directory/DeletedItems/GraphGroup/GraphGroupRequestBuilder.php +++ b/src/Generated/Directory/DeletedItems/GraphGroup/GraphGroupRequestBuilder.php @@ -39,7 +39,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Retrieve a list of recently deleted directory objects. Currently, deleted items functionality is only supported for the application, servicePrincipal, group, administrative unit, and user resources. Retrieve a list of recently deleted directory objects from deleted items. The following types are supported:- administrativeUnit- application- certificateBasedAuthPki- certificateAuthorityDetail- group- servicePrincipal- user + * Retrieve a list of recently deleted directory objects. Currently, deleted items functionality is only supported for the application, servicePrincipal, group, administrative unit, and user resources. Retrieve a list of recently deleted directory objects from deleted items. The following types are supported:- administrativeUnit- application- agentIdentityBlueprint- agentIdentity- agentIdentityBlueprintPrincipal- certificateBasedAuthPki- certificateAuthorityDetail- group- servicePrincipal- user * @param GraphGroupRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @throws Exception @@ -54,7 +54,7 @@ public function get(?GraphGroupRequestBuilderGetRequestConfiguration $requestCon } /** - * Retrieve a list of recently deleted directory objects. Currently, deleted items functionality is only supported for the application, servicePrincipal, group, administrative unit, and user resources. Retrieve a list of recently deleted directory objects from deleted items. The following types are supported:- administrativeUnit- application- certificateBasedAuthPki- certificateAuthorityDetail- group- servicePrincipal- user + * Retrieve a list of recently deleted directory objects. Currently, deleted items functionality is only supported for the application, servicePrincipal, group, administrative unit, and user resources. Retrieve a list of recently deleted directory objects from deleted items. The following types are supported:- administrativeUnit- application- agentIdentityBlueprint- agentIdentity- agentIdentityBlueprintPrincipal- certificateBasedAuthPki- certificateAuthorityDetail- group- servicePrincipal- user * @param GraphGroupRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Directory/DeletedItems/GraphGroup/GraphGroupRequestBuilderGetQueryParameters.php b/src/Generated/Directory/DeletedItems/GraphGroup/GraphGroupRequestBuilderGetQueryParameters.php index d29ccc7f574..e03d135b47e 100644 --- a/src/Generated/Directory/DeletedItems/GraphGroup/GraphGroupRequestBuilderGetQueryParameters.php +++ b/src/Generated/Directory/DeletedItems/GraphGroup/GraphGroupRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve a list of recently deleted directory objects. Currently, deleted items functionality is only supported for the application, servicePrincipal, group, administrative unit, and user resources. Retrieve a list of recently deleted directory objects from deleted items. The following types are supported:- administrativeUnit- application- certificateBasedAuthPki- certificateAuthorityDetail- group- servicePrincipal- user + * Retrieve a list of recently deleted directory objects. Currently, deleted items functionality is only supported for the application, servicePrincipal, group, administrative unit, and user resources. Retrieve a list of recently deleted directory objects from deleted items. The following types are supported:- administrativeUnit- application- agentIdentityBlueprint- agentIdentity- agentIdentityBlueprintPrincipal- certificateBasedAuthPki- certificateAuthorityDetail- group- servicePrincipal- user */ class GraphGroupRequestBuilderGetQueryParameters { diff --git a/src/Generated/Directory/DeletedItems/Item/DirectoryObjectItemRequestBuilder.php b/src/Generated/Directory/DeletedItems/Item/DirectoryObjectItemRequestBuilder.php index f2d0cbf3cdc..02c3c52c149 100644 --- a/src/Generated/Directory/DeletedItems/Item/DirectoryObjectItemRequestBuilder.php +++ b/src/Generated/Directory/DeletedItems/Item/DirectoryObjectItemRequestBuilder.php @@ -134,7 +134,7 @@ public function delete(?DirectoryObjectItemRequestBuilderDeleteRequestConfigurat } /** - * Retrieve the properties of a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. Retrieve the properties of a recently deleted directory object from deleted items. The following types are supported:- administrativeUnit- application- certificateBasedAuthPki- certificateAuthorityDetail- group- servicePrincipal- user + * Retrieve the properties of a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. Retrieve the properties of a recently deleted directory object from deleted items. The following types are supported:- administrativeUnit- application- agentIdentityBlueprint- agentIdentity- agentIdentityBlueprintPrincipal- certificateBasedAuthPki- certificateAuthorityDetail- group- servicePrincipal- user * @param DirectoryObjectItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @throws Exception @@ -167,7 +167,7 @@ public function toDeleteRequestInformation(?DirectoryObjectItemRequestBuilderDel } /** - * Retrieve the properties of a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. Retrieve the properties of a recently deleted directory object from deleted items. The following types are supported:- administrativeUnit- application- certificateBasedAuthPki- certificateAuthorityDetail- group- servicePrincipal- user + * Retrieve the properties of a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. Retrieve the properties of a recently deleted directory object from deleted items. The following types are supported:- administrativeUnit- application- agentIdentityBlueprint- agentIdentity- agentIdentityBlueprintPrincipal- certificateBasedAuthPki- certificateAuthorityDetail- group- servicePrincipal- user * @param DirectoryObjectItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Directory/DeletedItems/Item/DirectoryObjectItemRequestBuilderGetQueryParameters.php b/src/Generated/Directory/DeletedItems/Item/DirectoryObjectItemRequestBuilderGetQueryParameters.php index 9c55b7ec951..cef7eca8f97 100644 --- a/src/Generated/Directory/DeletedItems/Item/DirectoryObjectItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/Directory/DeletedItems/Item/DirectoryObjectItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve the properties of a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. Retrieve the properties of a recently deleted directory object from deleted items. The following types are supported:- administrativeUnit- application- certificateBasedAuthPki- certificateAuthorityDetail- group- servicePrincipal- user + * Retrieve the properties of a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. Retrieve the properties of a recently deleted directory object from deleted items. The following types are supported:- administrativeUnit- application- agentIdentityBlueprint- agentIdentity- agentIdentityBlueprintPrincipal- certificateBasedAuthPki- certificateAuthorityDetail- group- servicePrincipal- user */ class DirectoryObjectItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/Directory/DeletedItems/Item/GraphGroup/GraphGroupRequestBuilder.php b/src/Generated/Directory/DeletedItems/Item/GraphGroup/GraphGroupRequestBuilder.php index 5e6e2090347..6e1f1e1013b 100644 --- a/src/Generated/Directory/DeletedItems/Item/GraphGroup/GraphGroupRequestBuilder.php +++ b/src/Generated/Directory/DeletedItems/Item/GraphGroup/GraphGroupRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Retrieve a list of recently deleted directory objects. Currently, deleted items functionality is only supported for the application, servicePrincipal, group, administrative unit, and user resources. Retrieve a list of recently deleted directory objects from deleted items. The following types are supported:- administrativeUnit- application- certificateBasedAuthPki- certificateAuthorityDetail- group- servicePrincipal- user + * Retrieve a list of recently deleted directory objects. Currently, deleted items functionality is only supported for the application, servicePrincipal, group, administrative unit, and user resources. Retrieve a list of recently deleted directory objects from deleted items. The following types are supported:- administrativeUnit- application- agentIdentityBlueprint- agentIdentity- agentIdentityBlueprintPrincipal- certificateBasedAuthPki- certificateAuthorityDetail- group- servicePrincipal- user * @param GraphGroupRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @throws Exception @@ -46,7 +46,7 @@ public function get(?GraphGroupRequestBuilderGetRequestConfiguration $requestCon } /** - * Retrieve a list of recently deleted directory objects. Currently, deleted items functionality is only supported for the application, servicePrincipal, group, administrative unit, and user resources. Retrieve a list of recently deleted directory objects from deleted items. The following types are supported:- administrativeUnit- application- certificateBasedAuthPki- certificateAuthorityDetail- group- servicePrincipal- user + * Retrieve a list of recently deleted directory objects. Currently, deleted items functionality is only supported for the application, servicePrincipal, group, administrative unit, and user resources. Retrieve a list of recently deleted directory objects from deleted items. The following types are supported:- administrativeUnit- application- agentIdentityBlueprint- agentIdentity- agentIdentityBlueprintPrincipal- certificateBasedAuthPki- certificateAuthorityDetail- group- servicePrincipal- user * @param GraphGroupRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Directory/DeletedItems/Item/GraphGroup/GraphGroupRequestBuilderGetQueryParameters.php b/src/Generated/Directory/DeletedItems/Item/GraphGroup/GraphGroupRequestBuilderGetQueryParameters.php index 3ebc95ebebc..b89367a0fe0 100644 --- a/src/Generated/Directory/DeletedItems/Item/GraphGroup/GraphGroupRequestBuilderGetQueryParameters.php +++ b/src/Generated/Directory/DeletedItems/Item/GraphGroup/GraphGroupRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Retrieve a list of recently deleted directory objects. Currently, deleted items functionality is only supported for the application, servicePrincipal, group, administrative unit, and user resources. Retrieve a list of recently deleted directory objects from deleted items. The following types are supported:- administrativeUnit- application- certificateBasedAuthPki- certificateAuthorityDetail- group- servicePrincipal- user + * Retrieve a list of recently deleted directory objects. Currently, deleted items functionality is only supported for the application, servicePrincipal, group, administrative unit, and user resources. Retrieve a list of recently deleted directory objects from deleted items. The following types are supported:- administrativeUnit- application- agentIdentityBlueprint- agentIdentity- agentIdentityBlueprintPrincipal- certificateBasedAuthPki- certificateAuthorityDetail- group- servicePrincipal- user */ class GraphGroupRequestBuilderGetQueryParameters { diff --git a/src/Generated/Directory/DeletedItems/Item/Restore/RestoreRequestBuilder.php b/src/Generated/Directory/DeletedItems/Item/Restore/RestoreRequestBuilder.php index 2348defacba..2491c10ba1c 100644 --- a/src/Generated/Directory/DeletedItems/Item/Restore/RestoreRequestBuilder.php +++ b/src/Generated/Directory/DeletedItems/Item/Restore/RestoreRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * 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. + * 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- agentIdentityBlueprint- agentIdentity- agentIdentityBlueprintPrincipal- 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. * @param RestoreRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @throws Exception @@ -46,7 +46,7 @@ public function post(?RestoreRequestBuilderPostRequestConfiguration $requestConf } /** - * 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. + * 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- agentIdentityBlueprint- agentIdentity- agentIdentityBlueprintPrincipal- 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. * @param RestoreRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/DirectoryObjects/Item/Restore/RestoreRequestBuilder.php b/src/Generated/DirectoryObjects/Item/Restore/RestoreRequestBuilder.php index 860cbda73d4..0ce4707ad03 100644 --- a/src/Generated/DirectoryObjects/Item/Restore/RestoreRequestBuilder.php +++ b/src/Generated/DirectoryObjects/Item/Restore/RestoreRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * 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. + * 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- agentIdentityBlueprint- agentIdentity- agentIdentityBlueprintPrincipal- 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. * @param RestoreRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @throws Exception @@ -46,7 +46,7 @@ public function post(?RestoreRequestBuilderPostRequestConfiguration $requestConf } /** - * 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. + * 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- agentIdentityBlueprint- agentIdentity- agentIdentityBlueprintPrincipal- 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. * @param RestoreRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/DirectoryRoleTemplates/Item/Restore/RestoreRequestBuilder.php b/src/Generated/DirectoryRoleTemplates/Item/Restore/RestoreRequestBuilder.php index 47b7836300d..61cb8c0f774 100644 --- a/src/Generated/DirectoryRoleTemplates/Item/Restore/RestoreRequestBuilder.php +++ b/src/Generated/DirectoryRoleTemplates/Item/Restore/RestoreRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * 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. + * 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- agentIdentityBlueprint- agentIdentity- agentIdentityBlueprintPrincipal- 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. * @param RestoreRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @throws Exception @@ -46,7 +46,7 @@ public function post(?RestoreRequestBuilderPostRequestConfiguration $requestConf } /** - * 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. + * 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- agentIdentityBlueprint- agentIdentity- agentIdentityBlueprintPrincipal- 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. * @param RestoreRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/DirectoryRoles/Item/Restore/RestoreRequestBuilder.php b/src/Generated/DirectoryRoles/Item/Restore/RestoreRequestBuilder.php index 622731b5867..0a77ed77b04 100644 --- a/src/Generated/DirectoryRoles/Item/Restore/RestoreRequestBuilder.php +++ b/src/Generated/DirectoryRoles/Item/Restore/RestoreRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * 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. + * 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- agentIdentityBlueprint- agentIdentity- agentIdentityBlueprintPrincipal- 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. * @param RestoreRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @throws Exception @@ -46,7 +46,7 @@ public function post(?RestoreRequestBuilderPostRequestConfiguration $requestConf } /** - * 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. + * 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- agentIdentityBlueprint- agentIdentity- agentIdentityBlueprintPrincipal- 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. * @param RestoreRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/GroupSettingTemplates/Item/Restore/RestoreRequestBuilder.php b/src/Generated/GroupSettingTemplates/Item/Restore/RestoreRequestBuilder.php index 2ec83c7f3d8..25505ba4344 100644 --- a/src/Generated/GroupSettingTemplates/Item/Restore/RestoreRequestBuilder.php +++ b/src/Generated/GroupSettingTemplates/Item/Restore/RestoreRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * 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. + * 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- agentIdentityBlueprint- agentIdentity- agentIdentityBlueprintPrincipal- 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. * @param RestoreRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @throws Exception @@ -46,7 +46,7 @@ public function post(?RestoreRequestBuilderPostRequestConfiguration $requestConf } /** - * 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. + * 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- agentIdentityBlueprint- agentIdentity- agentIdentityBlueprintPrincipal- 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. * @param RestoreRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Groups/Item/Restore/RestoreRequestBuilder.php b/src/Generated/Groups/Item/Restore/RestoreRequestBuilder.php index 7febbdb4051..c2995761b44 100644 --- a/src/Generated/Groups/Item/Restore/RestoreRequestBuilder.php +++ b/src/Generated/Groups/Item/Restore/RestoreRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * 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. + * 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- agentIdentityBlueprint- agentIdentity- agentIdentityBlueprintPrincipal- 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. * @param RestoreRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @throws Exception @@ -46,7 +46,7 @@ public function post(?RestoreRequestBuilderPostRequestConfiguration $requestConf } /** - * 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. + * 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- agentIdentityBlueprint- agentIdentity- agentIdentityBlueprintPrincipal- 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. * @param RestoreRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/Groups/Item/Team/Channels/Item/ChannelItemRequestBuilder.php b/src/Generated/Groups/Item/Team/Channels/Item/ChannelItemRequestBuilder.php index a0b2ab15e21..96b55bec7a2 100644 --- a/src/Generated/Groups/Item/Team/Channels/Item/ChannelItemRequestBuilder.php +++ b/src/Generated/Groups/Item/Team/Channels/Item/ChannelItemRequestBuilder.php @@ -8,6 +8,7 @@ use Microsoft\Graph\Generated\Groups\Item\Team\Channels\Item\Archive\ArchiveRequestBuilder; use Microsoft\Graph\Generated\Groups\Item\Team\Channels\Item\CompleteMigration\CompleteMigrationRequestBuilder; use Microsoft\Graph\Generated\Groups\Item\Team\Channels\Item\DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName\DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameRequestBuilder; +use Microsoft\Graph\Generated\Groups\Item\Team\Channels\Item\EnabledApps\EnabledAppsRequestBuilder; use Microsoft\Graph\Generated\Groups\Item\Team\Channels\Item\FilesFolder\FilesFolderRequestBuilder; use Microsoft\Graph\Generated\Groups\Item\Team\Channels\Item\Members\MembersRequestBuilder; use Microsoft\Graph\Generated\Groups\Item\Team\Channels\Item\Messages\MessagesRequestBuilder; @@ -56,6 +57,13 @@ public function doesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameU return new DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameRequestBuilder($this->pathParameters, $this->requestAdapter); } + /** + * Provides operations to manage the enabledApps property of the microsoft.graph.channel entity. + */ + public function enabledApps(): EnabledAppsRequestBuilder { + return new EnabledAppsRequestBuilder($this->pathParameters, $this->requestAdapter); + } + /** * Provides operations to manage the filesFolder property of the microsoft.graph.channel entity. */ diff --git a/src/Generated/Groups/Item/Team/Channels/Item/EnabledApps/Count/CountRequestBuilder.php b/src/Generated/Groups/Item/Team/Channels/Item/EnabledApps/Count/CountRequestBuilder.php new file mode 100644 index 00000000000..f537b2c5985 --- /dev/null +++ b/src/Generated/Groups/Item/Team/Channels/Item/EnabledApps/Count/CountRequestBuilder.php @@ -0,0 +1,78 @@ +|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}/groups/{group%2Did}/team/channels/{channel%2Did}/enabledApps/$count{?%24filter,%24search}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Get the number of the resource + * @param CountRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + */ + public function get(?CountRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + /** @var Promise $result */ + $result = $this->requestAdapter->sendPrimitiveAsync($requestInfo, 'int', $errorMappings); + return $result; + } + + /** + * Get the number of the resource + * @param CountRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?CountRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); + return $requestInfo; + } + + /** + * 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 CountRequestBuilder + */ + public function withUrl(string $rawUrl): CountRequestBuilder { + return new CountRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/Groups/Item/Team/Channels/Item/EnabledApps/Count/CountRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Team/Channels/Item/EnabledApps/Count/CountRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..ee9d6bff045 --- /dev/null +++ b/src/Generated/Groups/Item/Team/Channels/Item/EnabledApps/Count/CountRequestBuilderGetQueryParameters.php @@ -0,0 +1,34 @@ +filter = $filter; + $this->search = $search; + } + +} diff --git a/src/Generated/Groups/Item/Team/Channels/Item/EnabledApps/Count/CountRequestBuilderGetRequestConfiguration.php b/src/Generated/Groups/Item/Team/Channels/Item/EnabledApps/Count/CountRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..83679e1382f --- /dev/null +++ b/src/Generated/Groups/Item/Team/Channels/Item/EnabledApps/Count/CountRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,39 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param CountRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?CountRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new CountRequestBuilderGetQueryParameters. + * @param string|null $filter Filter items by property values + * @param string|null $search Search items by search phrases + * @return CountRequestBuilderGetQueryParameters + */ + public static function createQueryParameters(?string $filter = null, ?string $search = null): CountRequestBuilderGetQueryParameters { + return new CountRequestBuilderGetQueryParameters($filter, $search); + } + +} diff --git a/src/Generated/Groups/Item/Team/Channels/Item/EnabledApps/EnabledAppsRequestBuilder.php b/src/Generated/Groups/Item/Team/Channels/Item/EnabledApps/EnabledAppsRequestBuilder.php new file mode 100644 index 00000000000..1d86f87a3e4 --- /dev/null +++ b/src/Generated/Groups/Item/Team/Channels/Item/EnabledApps/EnabledAppsRequestBuilder.php @@ -0,0 +1,97 @@ +pathParameters, $this->requestAdapter); + } + + /** + * Provides operations to manage the enabledApps property of the microsoft.graph.channel entity. + * @param string $teamsAppId The unique identifier of teamsApp + * @return TeamsAppItemRequestBuilder + */ + public function byTeamsAppId(string $teamsAppId): TeamsAppItemRequestBuilder { + $urlTplParams = $this->pathParameters; + $urlTplParams['teamsApp%2Did'] = $teamsAppId; + return new TeamsAppItemRequestBuilder($urlTplParams, $this->requestAdapter); + } + + /** + * Instantiates a new EnabledAppsRequestBuilder and sets the default values. + * @param array|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}/groups/{group%2Did}/team/channels/{channel%2Did}/enabledApps{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Get enabledApps from groups + * @param EnabledAppsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + */ + public function get(?EnabledAppsRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [TeamsAppCollectionResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + } + + /** + * Get enabledApps from groups + * @param EnabledAppsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?EnabledAppsRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->tryAddHeader('Accept', "application/json"); + return $requestInfo; + } + + /** + * 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 EnabledAppsRequestBuilder + */ + public function withUrl(string $rawUrl): EnabledAppsRequestBuilder { + return new EnabledAppsRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/Groups/Item/Team/Channels/Item/EnabledApps/EnabledAppsRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Team/Channels/Item/EnabledApps/EnabledAppsRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..989917bebe1 --- /dev/null +++ b/src/Generated/Groups/Item/Team/Channels/Item/EnabledApps/EnabledAppsRequestBuilderGetQueryParameters.php @@ -0,0 +1,82 @@ +|null $expand Expand related entities + */ + public ?array $expand = null; + + /** + * @QueryParameter("%24filter") + * @var string|null $filter Filter items by property values + */ + public ?string $filter = null; + + /** + * @QueryParameter("%24orderby") + * @var array|null $orderby Order items by property values + */ + public ?array $orderby = null; + + /** + * @QueryParameter("%24search") + * @var string|null $search Search items by search phrases + */ + public ?string $search = null; + + /** + * @QueryParameter("%24select") + * @var array|null $select Select properties to be returned + */ + public ?array $select = null; + + /** + * @QueryParameter("%24skip") + * @var int|null $skip Skip the first n items + */ + public ?int $skip = null; + + /** + * @QueryParameter("%24top") + * @var int|null $top Show only the first n items + */ + public ?int $top = null; + + /** + * Instantiates a new EnabledAppsRequestBuilderGetQueryParameters and sets the default values. + * @param bool|null $count Include count of items + * @param array|null $expand Expand related entities + * @param string|null $filter Filter items by property values + * @param array|null $orderby Order items by property values + * @param string|null $search Search items by search phrases + * @param array|null $select Select properties to be returned + * @param int|null $skip Skip the first n items + * @param int|null $top Show only the first n items + */ + 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) { + $this->count = $count; + $this->expand = $expand; + $this->filter = $filter; + $this->orderby = $orderby; + $this->search = $search; + $this->select = $select; + $this->skip = $skip; + $this->top = $top; + } + +} diff --git a/src/Generated/Groups/Item/Team/Channels/Item/EnabledApps/EnabledAppsRequestBuilderGetRequestConfiguration.php b/src/Generated/Groups/Item/Team/Channels/Item/EnabledApps/EnabledAppsRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..53b24cd6806 --- /dev/null +++ b/src/Generated/Groups/Item/Team/Channels/Item/EnabledApps/EnabledAppsRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,45 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param EnabledAppsRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?EnabledAppsRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new EnabledAppsRequestBuilderGetQueryParameters. + * @param bool|null $count Include count of items + * @param array|null $expand Expand related entities + * @param string|null $filter Filter items by property values + * @param array|null $orderby Order items by property values + * @param string|null $search Search items by search phrases + * @param array|null $select Select properties to be returned + * @param int|null $skip Skip the first n items + * @param int|null $top Show only the first n items + * @return EnabledAppsRequestBuilderGetQueryParameters + */ + public static function createQueryParameters(?bool $count = null, ?array $expand = null, ?string $filter = null, ?array $orderby = null, ?string $search = null, ?array $select = null, ?int $skip = null, ?int $top = null): EnabledAppsRequestBuilderGetQueryParameters { + return new EnabledAppsRequestBuilderGetQueryParameters($count, $expand, $filter, $orderby, $search, $select, $skip, $top); + } + +} diff --git a/src/Generated/Groups/Item/Team/Channels/Item/EnabledApps/Item/TeamsAppItemRequestBuilder.php b/src/Generated/Groups/Item/Team/Channels/Item/EnabledApps/Item/TeamsAppItemRequestBuilder.php new file mode 100644 index 00000000000..5d33d62fd83 --- /dev/null +++ b/src/Generated/Groups/Item/Team/Channels/Item/EnabledApps/Item/TeamsAppItemRequestBuilder.php @@ -0,0 +1,77 @@ +|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}/groups/{group%2Did}/team/channels/{channel%2Did}/enabledApps/{teamsApp%2Did}{?%24expand,%24select}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Get enabledApps from groups + * @param TeamsAppItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + */ + public function get(?TeamsAppItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [TeamsApp::class, 'createFromDiscriminatorValue'], $errorMappings); + } + + /** + * Get enabledApps from groups + * @param TeamsAppItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?TeamsAppItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->tryAddHeader('Accept', "application/json"); + return $requestInfo; + } + + /** + * 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 TeamsAppItemRequestBuilder + */ + public function withUrl(string $rawUrl): TeamsAppItemRequestBuilder { + return new TeamsAppItemRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/Groups/Item/Team/Channels/Item/EnabledApps/Item/TeamsAppItemRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Team/Channels/Item/EnabledApps/Item/TeamsAppItemRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..861788559ed --- /dev/null +++ b/src/Generated/Groups/Item/Team/Channels/Item/EnabledApps/Item/TeamsAppItemRequestBuilderGetQueryParameters.php @@ -0,0 +1,34 @@ +|null $expand Expand related entities + */ + public ?array $expand = null; + + /** + * @QueryParameter("%24select") + * @var array|null $select Select properties to be returned + */ + public ?array $select = null; + + /** + * Instantiates a new TeamsAppItemRequestBuilderGetQueryParameters and sets the default values. + * @param array|null $expand Expand related entities + * @param array|null $select Select properties to be returned + */ + public function __construct(?array $expand = null, ?array $select = null) { + $this->expand = $expand; + $this->select = $select; + } + +} diff --git a/src/Generated/Groups/Item/Team/Channels/Item/EnabledApps/Item/TeamsAppItemRequestBuilderGetRequestConfiguration.php b/src/Generated/Groups/Item/Team/Channels/Item/EnabledApps/Item/TeamsAppItemRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..0d0d01de8a5 --- /dev/null +++ b/src/Generated/Groups/Item/Team/Channels/Item/EnabledApps/Item/TeamsAppItemRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,39 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param TeamsAppItemRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?TeamsAppItemRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new TeamsAppItemRequestBuilderGetQueryParameters. + * @param array|null $expand Expand related entities + * @param array|null $select Select properties to be returned + * @return TeamsAppItemRequestBuilderGetQueryParameters + */ + public static function createQueryParameters(?array $expand = null, ?array $select = null): TeamsAppItemRequestBuilderGetQueryParameters { + return new TeamsAppItemRequestBuilderGetQueryParameters($expand, $select); + } + +} diff --git a/src/Generated/Groups/Item/Team/Channels/Item/Messages/Item/Replies/RepliesRequestBuilder.php b/src/Generated/Groups/Item/Team/Channels/Item/Messages/Item/Replies/RepliesRequestBuilder.php index a96e91edc14..3a71af15adf 100644 --- a/src/Generated/Groups/Item/Team/Channels/Item/Messages/Item/Replies/RepliesRequestBuilder.php +++ b/src/Generated/Groups/Item/Team/Channels/Item/Messages/Item/Replies/RepliesRequestBuilder.php @@ -7,6 +7,7 @@ use Microsoft\Graph\Generated\Groups\Item\Team\Channels\Item\Messages\Item\Replies\Count\CountRequestBuilder; use Microsoft\Graph\Generated\Groups\Item\Team\Channels\Item\Messages\Item\Replies\Delta\DeltaRequestBuilder; use Microsoft\Graph\Generated\Groups\Item\Team\Channels\Item\Messages\Item\Replies\Item\ChatMessageItemRequestBuilder; +use Microsoft\Graph\Generated\Groups\Item\Team\Channels\Item\Messages\Item\Replies\ReplyWithQuote\ReplyWithQuoteRequestBuilder; use Microsoft\Graph\Generated\Models\ChatMessage; use Microsoft\Graph\Generated\Models\ChatMessageCollectionResponse; use Microsoft\Graph\Generated\Models\ODataErrors\ODataError; @@ -34,6 +35,13 @@ public function delta(): DeltaRequestBuilder { return new DeltaRequestBuilder($this->pathParameters, $this->requestAdapter); } + /** + * Provides operations to call the replyWithQuote method. + */ + public function replyWithQuote(): ReplyWithQuoteRequestBuilder { + return new ReplyWithQuoteRequestBuilder($this->pathParameters, $this->requestAdapter); + } + /** * Provides operations to manage the replies property of the microsoft.graph.chatMessage entity. * @param string $chatMessageId1 The unique identifier of chatMessage diff --git a/src/Generated/Groups/Item/Team/Channels/Item/Messages/Item/Replies/ReplyWithQuote/ReplyWithQuotePostRequestBody.php b/src/Generated/Groups/Item/Team/Channels/Item/Messages/Item/Replies/ReplyWithQuote/ReplyWithQuotePostRequestBody.php new file mode 100644 index 00000000000..caef5eb8160 --- /dev/null +++ b/src/Generated/Groups/Item/Team/Channels/Item/Messages/Item/Replies/ReplyWithQuote/ReplyWithQuotePostRequestBody.php @@ -0,0 +1,147 @@ +backingStore = BackingStoreFactorySingleton::getInstance()->createBackingStore(); + $this->setAdditionalData([]); + } + + /** + * Creates a new instance of the appropriate class based on discriminator value + * @param ParseNode $parseNode The parse node to use to read the discriminator value and create the object + * @return ReplyWithQuotePostRequestBody + */ + public static function createFromDiscriminatorValue(ParseNode $parseNode): ReplyWithQuotePostRequestBody { + return new ReplyWithQuotePostRequestBody(); + } + + /** + * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @return array|null + */ + public function getAdditionalData(): ?array { + $val = $this->getBackingStore()->get('additionalData'); + if (is_null($val) || is_array($val)) { + /** @var array|null $val */ + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'additionalData'"); + } + + /** + * Gets the BackingStore property value. Stores model information. + * @return BackingStore + */ + public function getBackingStore(): BackingStore { + return $this->backingStore; + } + + /** + * The deserialization information for the current model + * @return array + */ + public function getFieldDeserializers(): array { + $o = $this; + return [ + 'messageIds' => function (ParseNode $n) { + $val = $n->getCollectionOfPrimitiveValues(); + if (is_array($val)) { + TypeUtils::validateCollectionValues($val, 'string'); + } + /** @var array|null $val */ + $this->setMessageIds($val); + }, + 'replyMessage' => fn(ParseNode $n) => $o->setReplyMessage($n->getObjectValue([ChatMessage::class, 'createFromDiscriminatorValue'])), + ]; + } + + /** + * Gets the messageIds property value. The messageIds property + * @return array|null + */ + public function getMessageIds(): ?array { + $val = $this->getBackingStore()->get('messageIds'); + if (is_array($val) || is_null($val)) { + TypeUtils::validateCollectionValues($val, 'string'); + /** @var array|null $val */ + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'messageIds'"); + } + + /** + * Gets the replyMessage property value. The replyMessage property + * @return ChatMessage|null + */ + public function getReplyMessage(): ?ChatMessage { + $val = $this->getBackingStore()->get('replyMessage'); + if (is_null($val) || $val instanceof ChatMessage) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'replyMessage'"); + } + + /** + * Serializes information the current object + * @param SerializationWriter $writer Serialization writer to use to serialize this model + */ + public function serialize(SerializationWriter $writer): void { + $writer->writeCollectionOfPrimitiveValues('messageIds', $this->getMessageIds()); + $writer->writeObjectValue('replyMessage', $this->getReplyMessage()); + $writer->writeAdditionalData($this->getAdditionalData()); + } + + /** + * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @param array $value Value to set for the AdditionalData property. + */ + public function setAdditionalData(?array $value): void { + $this->getBackingStore()->set('additionalData', $value); + } + + /** + * Sets the BackingStore property value. Stores model information. + * @param BackingStore $value Value to set for the BackingStore property. + */ + public function setBackingStore(BackingStore $value): void { + $this->backingStore = $value; + } + + /** + * Sets the messageIds property value. The messageIds property + * @param array|null $value Value to set for the messageIds property. + */ + public function setMessageIds(?array $value): void { + $this->getBackingStore()->set('messageIds', $value); + } + + /** + * Sets the replyMessage property value. The replyMessage property + * @param ChatMessage|null $value Value to set for the replyMessage property. + */ + public function setReplyMessage(?ChatMessage $value): void { + $this->getBackingStore()->set('replyMessage', $value); + } + +} diff --git a/src/Generated/Groups/Item/Team/Channels/Item/Messages/Item/Replies/ReplyWithQuote/ReplyWithQuoteRequestBuilder.php b/src/Generated/Groups/Item/Team/Channels/Item/Messages/Item/Replies/ReplyWithQuote/ReplyWithQuoteRequestBuilder.php new file mode 100644 index 00000000000..5b141ff3eaa --- /dev/null +++ b/src/Generated/Groups/Item/Team/Channels/Item/Messages/Item/Replies/ReplyWithQuote/ReplyWithQuoteRequestBuilder.php @@ -0,0 +1,78 @@ +|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}/groups/{group%2Did}/team/channels/{channel%2Did}/messages/{chatMessage%2Did}/replies/replyWithQuote'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Reply with quote to a single chat message or multiple chat messages in a chat. + * @param ReplyWithQuotePostRequestBody $body The request body + * @param ReplyWithQuoteRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + * @link https://learn.microsoft.com/graph/api/chatmessage-replywithquote?view=graph-rest-1.0 Find more info here + */ + public function post(ReplyWithQuotePostRequestBody $body, ?ReplyWithQuoteRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [ChatMessage::class, 'createFromDiscriminatorValue'], $errorMappings); + } + + /** + * Reply with quote to a single chat message or multiple chat messages in a chat. + * @param ReplyWithQuotePostRequestBody $body The request body + * @param ReplyWithQuoteRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPostRequestInformation(ReplyWithQuotePostRequestBody $body, ?ReplyWithQuoteRequestBuilderPostRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::POST; + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->tryAddHeader('Accept', "application/json"); + $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); + return $requestInfo; + } + + /** + * 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 ReplyWithQuoteRequestBuilder + */ + public function withUrl(string $rawUrl): ReplyWithQuoteRequestBuilder { + return new ReplyWithQuoteRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/Groups/Item/Team/Channels/Item/Messages/Item/Replies/ReplyWithQuote/ReplyWithQuoteRequestBuilderPostRequestConfiguration.php b/src/Generated/Groups/Item/Team/Channels/Item/Messages/Item/Replies/ReplyWithQuote/ReplyWithQuoteRequestBuilderPostRequestConfiguration.php new file mode 100644 index 00000000000..f3cd3f48da0 --- /dev/null +++ b/src/Generated/Groups/Item/Team/Channels/Item/Messages/Item/Replies/ReplyWithQuote/ReplyWithQuoteRequestBuilderPostRequestConfiguration.php @@ -0,0 +1,22 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + */ + public function __construct(?array $headers = null, ?array $options = null) { + parent::__construct($headers ?? [], $options ?? []); + } + +} diff --git a/src/Generated/Groups/Item/Team/Channels/Item/Messages/MessagesRequestBuilder.php b/src/Generated/Groups/Item/Team/Channels/Item/Messages/MessagesRequestBuilder.php index fc9486248a3..cce700dda64 100644 --- a/src/Generated/Groups/Item/Team/Channels/Item/Messages/MessagesRequestBuilder.php +++ b/src/Generated/Groups/Item/Team/Channels/Item/Messages/MessagesRequestBuilder.php @@ -7,6 +7,7 @@ use Microsoft\Graph\Generated\Groups\Item\Team\Channels\Item\Messages\Count\CountRequestBuilder; use Microsoft\Graph\Generated\Groups\Item\Team\Channels\Item\Messages\Delta\DeltaRequestBuilder; use Microsoft\Graph\Generated\Groups\Item\Team\Channels\Item\Messages\Item\ChatMessageItemRequestBuilder; +use Microsoft\Graph\Generated\Groups\Item\Team\Channels\Item\Messages\ReplyWithQuote\ReplyWithQuoteRequestBuilder; use Microsoft\Graph\Generated\Models\ChatMessage; use Microsoft\Graph\Generated\Models\ChatMessageCollectionResponse; use Microsoft\Graph\Generated\Models\ODataErrors\ODataError; @@ -34,6 +35,13 @@ public function delta(): DeltaRequestBuilder { return new DeltaRequestBuilder($this->pathParameters, $this->requestAdapter); } + /** + * Provides operations to call the replyWithQuote method. + */ + public function replyWithQuote(): ReplyWithQuoteRequestBuilder { + return new ReplyWithQuoteRequestBuilder($this->pathParameters, $this->requestAdapter); + } + /** * Provides operations to manage the messages property of the microsoft.graph.channel entity. * @param string $chatMessageId The unique identifier of chatMessage diff --git a/src/Generated/Groups/Item/Team/Channels/Item/Messages/ReplyWithQuote/ReplyWithQuotePostRequestBody.php b/src/Generated/Groups/Item/Team/Channels/Item/Messages/ReplyWithQuote/ReplyWithQuotePostRequestBody.php new file mode 100644 index 00000000000..e51b8d5c590 --- /dev/null +++ b/src/Generated/Groups/Item/Team/Channels/Item/Messages/ReplyWithQuote/ReplyWithQuotePostRequestBody.php @@ -0,0 +1,147 @@ +backingStore = BackingStoreFactorySingleton::getInstance()->createBackingStore(); + $this->setAdditionalData([]); + } + + /** + * Creates a new instance of the appropriate class based on discriminator value + * @param ParseNode $parseNode The parse node to use to read the discriminator value and create the object + * @return ReplyWithQuotePostRequestBody + */ + public static function createFromDiscriminatorValue(ParseNode $parseNode): ReplyWithQuotePostRequestBody { + return new ReplyWithQuotePostRequestBody(); + } + + /** + * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @return array|null + */ + public function getAdditionalData(): ?array { + $val = $this->getBackingStore()->get('additionalData'); + if (is_null($val) || is_array($val)) { + /** @var array|null $val */ + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'additionalData'"); + } + + /** + * Gets the BackingStore property value. Stores model information. + * @return BackingStore + */ + public function getBackingStore(): BackingStore { + return $this->backingStore; + } + + /** + * The deserialization information for the current model + * @return array + */ + public function getFieldDeserializers(): array { + $o = $this; + return [ + 'messageIds' => function (ParseNode $n) { + $val = $n->getCollectionOfPrimitiveValues(); + if (is_array($val)) { + TypeUtils::validateCollectionValues($val, 'string'); + } + /** @var array|null $val */ + $this->setMessageIds($val); + }, + 'replyMessage' => fn(ParseNode $n) => $o->setReplyMessage($n->getObjectValue([ChatMessage::class, 'createFromDiscriminatorValue'])), + ]; + } + + /** + * Gets the messageIds property value. The messageIds property + * @return array|null + */ + public function getMessageIds(): ?array { + $val = $this->getBackingStore()->get('messageIds'); + if (is_array($val) || is_null($val)) { + TypeUtils::validateCollectionValues($val, 'string'); + /** @var array|null $val */ + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'messageIds'"); + } + + /** + * Gets the replyMessage property value. The replyMessage property + * @return ChatMessage|null + */ + public function getReplyMessage(): ?ChatMessage { + $val = $this->getBackingStore()->get('replyMessage'); + if (is_null($val) || $val instanceof ChatMessage) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'replyMessage'"); + } + + /** + * Serializes information the current object + * @param SerializationWriter $writer Serialization writer to use to serialize this model + */ + public function serialize(SerializationWriter $writer): void { + $writer->writeCollectionOfPrimitiveValues('messageIds', $this->getMessageIds()); + $writer->writeObjectValue('replyMessage', $this->getReplyMessage()); + $writer->writeAdditionalData($this->getAdditionalData()); + } + + /** + * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @param array $value Value to set for the AdditionalData property. + */ + public function setAdditionalData(?array $value): void { + $this->getBackingStore()->set('additionalData', $value); + } + + /** + * Sets the BackingStore property value. Stores model information. + * @param BackingStore $value Value to set for the BackingStore property. + */ + public function setBackingStore(BackingStore $value): void { + $this->backingStore = $value; + } + + /** + * Sets the messageIds property value. The messageIds property + * @param array|null $value Value to set for the messageIds property. + */ + public function setMessageIds(?array $value): void { + $this->getBackingStore()->set('messageIds', $value); + } + + /** + * Sets the replyMessage property value. The replyMessage property + * @param ChatMessage|null $value Value to set for the replyMessage property. + */ + public function setReplyMessage(?ChatMessage $value): void { + $this->getBackingStore()->set('replyMessage', $value); + } + +} diff --git a/src/Generated/Groups/Item/Team/Channels/Item/Messages/ReplyWithQuote/ReplyWithQuoteRequestBuilder.php b/src/Generated/Groups/Item/Team/Channels/Item/Messages/ReplyWithQuote/ReplyWithQuoteRequestBuilder.php new file mode 100644 index 00000000000..97f1714ad4d --- /dev/null +++ b/src/Generated/Groups/Item/Team/Channels/Item/Messages/ReplyWithQuote/ReplyWithQuoteRequestBuilder.php @@ -0,0 +1,78 @@ +|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}/groups/{group%2Did}/team/channels/{channel%2Did}/messages/replyWithQuote'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Reply with quote to a single chat message or multiple chat messages in a chat. + * @param ReplyWithQuotePostRequestBody $body The request body + * @param ReplyWithQuoteRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + * @link https://learn.microsoft.com/graph/api/chatmessage-replywithquote?view=graph-rest-1.0 Find more info here + */ + public function post(ReplyWithQuotePostRequestBody $body, ?ReplyWithQuoteRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [ChatMessage::class, 'createFromDiscriminatorValue'], $errorMappings); + } + + /** + * Reply with quote to a single chat message or multiple chat messages in a chat. + * @param ReplyWithQuotePostRequestBody $body The request body + * @param ReplyWithQuoteRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPostRequestInformation(ReplyWithQuotePostRequestBody $body, ?ReplyWithQuoteRequestBuilderPostRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::POST; + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->tryAddHeader('Accept', "application/json"); + $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); + return $requestInfo; + } + + /** + * 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 ReplyWithQuoteRequestBuilder + */ + public function withUrl(string $rawUrl): ReplyWithQuoteRequestBuilder { + return new ReplyWithQuoteRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/Groups/Item/Team/Channels/Item/Messages/ReplyWithQuote/ReplyWithQuoteRequestBuilderPostRequestConfiguration.php b/src/Generated/Groups/Item/Team/Channels/Item/Messages/ReplyWithQuote/ReplyWithQuoteRequestBuilderPostRequestConfiguration.php new file mode 100644 index 00000000000..85fc348d327 --- /dev/null +++ b/src/Generated/Groups/Item/Team/Channels/Item/Messages/ReplyWithQuote/ReplyWithQuoteRequestBuilderPostRequestConfiguration.php @@ -0,0 +1,22 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + */ + public function __construct(?array $headers = null, ?array $options = null) { + parent::__construct($headers ?? [], $options ?? []); + } + +} diff --git a/src/Generated/Groups/Item/Team/PrimaryChannel/EnabledApps/Count/CountRequestBuilder.php b/src/Generated/Groups/Item/Team/PrimaryChannel/EnabledApps/Count/CountRequestBuilder.php new file mode 100644 index 00000000000..e4eeb4ef887 --- /dev/null +++ b/src/Generated/Groups/Item/Team/PrimaryChannel/EnabledApps/Count/CountRequestBuilder.php @@ -0,0 +1,78 @@ +|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}/groups/{group%2Did}/team/primaryChannel/enabledApps/$count{?%24filter,%24search}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Get the number of the resource + * @param CountRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + */ + public function get(?CountRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + /** @var Promise $result */ + $result = $this->requestAdapter->sendPrimitiveAsync($requestInfo, 'int', $errorMappings); + return $result; + } + + /** + * Get the number of the resource + * @param CountRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?CountRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->tryAddHeader('Accept', "text/plain;q=0.9"); + return $requestInfo; + } + + /** + * 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 CountRequestBuilder + */ + public function withUrl(string $rawUrl): CountRequestBuilder { + return new CountRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/Groups/Item/Team/PrimaryChannel/EnabledApps/Count/CountRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Team/PrimaryChannel/EnabledApps/Count/CountRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..8a761fc2a40 --- /dev/null +++ b/src/Generated/Groups/Item/Team/PrimaryChannel/EnabledApps/Count/CountRequestBuilderGetQueryParameters.php @@ -0,0 +1,34 @@ +filter = $filter; + $this->search = $search; + } + +} diff --git a/src/Generated/Groups/Item/Team/PrimaryChannel/EnabledApps/Count/CountRequestBuilderGetRequestConfiguration.php b/src/Generated/Groups/Item/Team/PrimaryChannel/EnabledApps/Count/CountRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..d71e5ea2758 --- /dev/null +++ b/src/Generated/Groups/Item/Team/PrimaryChannel/EnabledApps/Count/CountRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,39 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param CountRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?CountRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new CountRequestBuilderGetQueryParameters. + * @param string|null $filter Filter items by property values + * @param string|null $search Search items by search phrases + * @return CountRequestBuilderGetQueryParameters + */ + public static function createQueryParameters(?string $filter = null, ?string $search = null): CountRequestBuilderGetQueryParameters { + return new CountRequestBuilderGetQueryParameters($filter, $search); + } + +} diff --git a/src/Generated/Groups/Item/Team/PrimaryChannel/EnabledApps/EnabledAppsRequestBuilder.php b/src/Generated/Groups/Item/Team/PrimaryChannel/EnabledApps/EnabledAppsRequestBuilder.php new file mode 100644 index 00000000000..399cd9365ee --- /dev/null +++ b/src/Generated/Groups/Item/Team/PrimaryChannel/EnabledApps/EnabledAppsRequestBuilder.php @@ -0,0 +1,97 @@ +pathParameters, $this->requestAdapter); + } + + /** + * Provides operations to manage the enabledApps property of the microsoft.graph.channel entity. + * @param string $teamsAppId The unique identifier of teamsApp + * @return TeamsAppItemRequestBuilder + */ + public function byTeamsAppId(string $teamsAppId): TeamsAppItemRequestBuilder { + $urlTplParams = $this->pathParameters; + $urlTplParams['teamsApp%2Did'] = $teamsAppId; + return new TeamsAppItemRequestBuilder($urlTplParams, $this->requestAdapter); + } + + /** + * Instantiates a new EnabledAppsRequestBuilder and sets the default values. + * @param array|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}/groups/{group%2Did}/team/primaryChannel/enabledApps{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Get enabledApps from groups + * @param EnabledAppsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + */ + public function get(?EnabledAppsRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [TeamsAppCollectionResponse::class, 'createFromDiscriminatorValue'], $errorMappings); + } + + /** + * Get enabledApps from groups + * @param EnabledAppsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?EnabledAppsRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->tryAddHeader('Accept', "application/json"); + return $requestInfo; + } + + /** + * 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 EnabledAppsRequestBuilder + */ + public function withUrl(string $rawUrl): EnabledAppsRequestBuilder { + return new EnabledAppsRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/Groups/Item/Team/PrimaryChannel/EnabledApps/EnabledAppsRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Team/PrimaryChannel/EnabledApps/EnabledAppsRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..0dc3925a0f5 --- /dev/null +++ b/src/Generated/Groups/Item/Team/PrimaryChannel/EnabledApps/EnabledAppsRequestBuilderGetQueryParameters.php @@ -0,0 +1,82 @@ +|null $expand Expand related entities + */ + public ?array $expand = null; + + /** + * @QueryParameter("%24filter") + * @var string|null $filter Filter items by property values + */ + public ?string $filter = null; + + /** + * @QueryParameter("%24orderby") + * @var array|null $orderby Order items by property values + */ + public ?array $orderby = null; + + /** + * @QueryParameter("%24search") + * @var string|null $search Search items by search phrases + */ + public ?string $search = null; + + /** + * @QueryParameter("%24select") + * @var array|null $select Select properties to be returned + */ + public ?array $select = null; + + /** + * @QueryParameter("%24skip") + * @var int|null $skip Skip the first n items + */ + public ?int $skip = null; + + /** + * @QueryParameter("%24top") + * @var int|null $top Show only the first n items + */ + public ?int $top = null; + + /** + * Instantiates a new EnabledAppsRequestBuilderGetQueryParameters and sets the default values. + * @param bool|null $count Include count of items + * @param array|null $expand Expand related entities + * @param string|null $filter Filter items by property values + * @param array|null $orderby Order items by property values + * @param string|null $search Search items by search phrases + * @param array|null $select Select properties to be returned + * @param int|null $skip Skip the first n items + * @param int|null $top Show only the first n items + */ + 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) { + $this->count = $count; + $this->expand = $expand; + $this->filter = $filter; + $this->orderby = $orderby; + $this->search = $search; + $this->select = $select; + $this->skip = $skip; + $this->top = $top; + } + +} diff --git a/src/Generated/Groups/Item/Team/PrimaryChannel/EnabledApps/EnabledAppsRequestBuilderGetRequestConfiguration.php b/src/Generated/Groups/Item/Team/PrimaryChannel/EnabledApps/EnabledAppsRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..347b5eef4f9 --- /dev/null +++ b/src/Generated/Groups/Item/Team/PrimaryChannel/EnabledApps/EnabledAppsRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,45 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param EnabledAppsRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?EnabledAppsRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new EnabledAppsRequestBuilderGetQueryParameters. + * @param bool|null $count Include count of items + * @param array|null $expand Expand related entities + * @param string|null $filter Filter items by property values + * @param array|null $orderby Order items by property values + * @param string|null $search Search items by search phrases + * @param array|null $select Select properties to be returned + * @param int|null $skip Skip the first n items + * @param int|null $top Show only the first n items + * @return EnabledAppsRequestBuilderGetQueryParameters + */ + public static function createQueryParameters(?bool $count = null, ?array $expand = null, ?string $filter = null, ?array $orderby = null, ?string $search = null, ?array $select = null, ?int $skip = null, ?int $top = null): EnabledAppsRequestBuilderGetQueryParameters { + return new EnabledAppsRequestBuilderGetQueryParameters($count, $expand, $filter, $orderby, $search, $select, $skip, $top); + } + +} diff --git a/src/Generated/Groups/Item/Team/PrimaryChannel/EnabledApps/Item/TeamsAppItemRequestBuilder.php b/src/Generated/Groups/Item/Team/PrimaryChannel/EnabledApps/Item/TeamsAppItemRequestBuilder.php new file mode 100644 index 00000000000..41536310fe9 --- /dev/null +++ b/src/Generated/Groups/Item/Team/PrimaryChannel/EnabledApps/Item/TeamsAppItemRequestBuilder.php @@ -0,0 +1,77 @@ +|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}/groups/{group%2Did}/team/primaryChannel/enabledApps/{teamsApp%2Did}{?%24expand,%24select}'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Get enabledApps from groups + * @param TeamsAppItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + */ + public function get(?TeamsAppItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toGetRequestInformation($requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [TeamsApp::class, 'createFromDiscriminatorValue'], $errorMappings); + } + + /** + * Get enabledApps from groups + * @param TeamsAppItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toGetRequestInformation(?TeamsAppItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::GET; + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + if ($requestConfiguration->queryParameters !== null) { + $requestInfo->setQueryParameters($requestConfiguration->queryParameters); + } + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->tryAddHeader('Accept', "application/json"); + return $requestInfo; + } + + /** + * 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 TeamsAppItemRequestBuilder + */ + public function withUrl(string $rawUrl): TeamsAppItemRequestBuilder { + return new TeamsAppItemRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/Groups/Item/Team/PrimaryChannel/EnabledApps/Item/TeamsAppItemRequestBuilderGetQueryParameters.php b/src/Generated/Groups/Item/Team/PrimaryChannel/EnabledApps/Item/TeamsAppItemRequestBuilderGetQueryParameters.php new file mode 100644 index 00000000000..eb39a3b4338 --- /dev/null +++ b/src/Generated/Groups/Item/Team/PrimaryChannel/EnabledApps/Item/TeamsAppItemRequestBuilderGetQueryParameters.php @@ -0,0 +1,34 @@ +|null $expand Expand related entities + */ + public ?array $expand = null; + + /** + * @QueryParameter("%24select") + * @var array|null $select Select properties to be returned + */ + public ?array $select = null; + + /** + * Instantiates a new TeamsAppItemRequestBuilderGetQueryParameters and sets the default values. + * @param array|null $expand Expand related entities + * @param array|null $select Select properties to be returned + */ + public function __construct(?array $expand = null, ?array $select = null) { + $this->expand = $expand; + $this->select = $select; + } + +} diff --git a/src/Generated/Groups/Item/Team/PrimaryChannel/EnabledApps/Item/TeamsAppItemRequestBuilderGetRequestConfiguration.php b/src/Generated/Groups/Item/Team/PrimaryChannel/EnabledApps/Item/TeamsAppItemRequestBuilderGetRequestConfiguration.php new file mode 100644 index 00000000000..55499290b49 --- /dev/null +++ b/src/Generated/Groups/Item/Team/PrimaryChannel/EnabledApps/Item/TeamsAppItemRequestBuilderGetRequestConfiguration.php @@ -0,0 +1,39 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + * @param TeamsAppItemRequestBuilderGetQueryParameters|null $queryParameters Request query parameters + */ + public function __construct(?array $headers = null, ?array $options = null, ?TeamsAppItemRequestBuilderGetQueryParameters $queryParameters = null) { + parent::__construct($headers ?? [], $options ?? []); + $this->queryParameters = $queryParameters; + } + + /** + * Instantiates a new TeamsAppItemRequestBuilderGetQueryParameters. + * @param array|null $expand Expand related entities + * @param array|null $select Select properties to be returned + * @return TeamsAppItemRequestBuilderGetQueryParameters + */ + public static function createQueryParameters(?array $expand = null, ?array $select = null): TeamsAppItemRequestBuilderGetQueryParameters { + return new TeamsAppItemRequestBuilderGetQueryParameters($expand, $select); + } + +} diff --git a/src/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/Replies/RepliesRequestBuilder.php b/src/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/Replies/RepliesRequestBuilder.php index a56285f2149..a7c4d60140c 100644 --- a/src/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/Replies/RepliesRequestBuilder.php +++ b/src/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/Replies/RepliesRequestBuilder.php @@ -7,6 +7,7 @@ use Microsoft\Graph\Generated\Groups\Item\Team\PrimaryChannel\Messages\Item\Replies\Count\CountRequestBuilder; use Microsoft\Graph\Generated\Groups\Item\Team\PrimaryChannel\Messages\Item\Replies\Delta\DeltaRequestBuilder; use Microsoft\Graph\Generated\Groups\Item\Team\PrimaryChannel\Messages\Item\Replies\Item\ChatMessageItemRequestBuilder; +use Microsoft\Graph\Generated\Groups\Item\Team\PrimaryChannel\Messages\Item\Replies\ReplyWithQuote\ReplyWithQuoteRequestBuilder; use Microsoft\Graph\Generated\Models\ChatMessage; use Microsoft\Graph\Generated\Models\ChatMessageCollectionResponse; use Microsoft\Graph\Generated\Models\ODataErrors\ODataError; @@ -34,6 +35,13 @@ public function delta(): DeltaRequestBuilder { return new DeltaRequestBuilder($this->pathParameters, $this->requestAdapter); } + /** + * Provides operations to call the replyWithQuote method. + */ + public function replyWithQuote(): ReplyWithQuoteRequestBuilder { + return new ReplyWithQuoteRequestBuilder($this->pathParameters, $this->requestAdapter); + } + /** * Provides operations to manage the replies property of the microsoft.graph.chatMessage entity. * @param string $chatMessageId1 The unique identifier of chatMessage diff --git a/src/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/Replies/ReplyWithQuote/ReplyWithQuotePostRequestBody.php b/src/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/Replies/ReplyWithQuote/ReplyWithQuotePostRequestBody.php new file mode 100644 index 00000000000..00529de2129 --- /dev/null +++ b/src/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/Replies/ReplyWithQuote/ReplyWithQuotePostRequestBody.php @@ -0,0 +1,147 @@ +backingStore = BackingStoreFactorySingleton::getInstance()->createBackingStore(); + $this->setAdditionalData([]); + } + + /** + * Creates a new instance of the appropriate class based on discriminator value + * @param ParseNode $parseNode The parse node to use to read the discriminator value and create the object + * @return ReplyWithQuotePostRequestBody + */ + public static function createFromDiscriminatorValue(ParseNode $parseNode): ReplyWithQuotePostRequestBody { + return new ReplyWithQuotePostRequestBody(); + } + + /** + * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @return array|null + */ + public function getAdditionalData(): ?array { + $val = $this->getBackingStore()->get('additionalData'); + if (is_null($val) || is_array($val)) { + /** @var array|null $val */ + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'additionalData'"); + } + + /** + * Gets the BackingStore property value. Stores model information. + * @return BackingStore + */ + public function getBackingStore(): BackingStore { + return $this->backingStore; + } + + /** + * The deserialization information for the current model + * @return array + */ + public function getFieldDeserializers(): array { + $o = $this; + return [ + 'messageIds' => function (ParseNode $n) { + $val = $n->getCollectionOfPrimitiveValues(); + if (is_array($val)) { + TypeUtils::validateCollectionValues($val, 'string'); + } + /** @var array|null $val */ + $this->setMessageIds($val); + }, + 'replyMessage' => fn(ParseNode $n) => $o->setReplyMessage($n->getObjectValue([ChatMessage::class, 'createFromDiscriminatorValue'])), + ]; + } + + /** + * Gets the messageIds property value. The messageIds property + * @return array|null + */ + public function getMessageIds(): ?array { + $val = $this->getBackingStore()->get('messageIds'); + if (is_array($val) || is_null($val)) { + TypeUtils::validateCollectionValues($val, 'string'); + /** @var array|null $val */ + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'messageIds'"); + } + + /** + * Gets the replyMessage property value. The replyMessage property + * @return ChatMessage|null + */ + public function getReplyMessage(): ?ChatMessage { + $val = $this->getBackingStore()->get('replyMessage'); + if (is_null($val) || $val instanceof ChatMessage) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'replyMessage'"); + } + + /** + * Serializes information the current object + * @param SerializationWriter $writer Serialization writer to use to serialize this model + */ + public function serialize(SerializationWriter $writer): void { + $writer->writeCollectionOfPrimitiveValues('messageIds', $this->getMessageIds()); + $writer->writeObjectValue('replyMessage', $this->getReplyMessage()); + $writer->writeAdditionalData($this->getAdditionalData()); + } + + /** + * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @param array $value Value to set for the AdditionalData property. + */ + public function setAdditionalData(?array $value): void { + $this->getBackingStore()->set('additionalData', $value); + } + + /** + * Sets the BackingStore property value. Stores model information. + * @param BackingStore $value Value to set for the BackingStore property. + */ + public function setBackingStore(BackingStore $value): void { + $this->backingStore = $value; + } + + /** + * Sets the messageIds property value. The messageIds property + * @param array|null $value Value to set for the messageIds property. + */ + public function setMessageIds(?array $value): void { + $this->getBackingStore()->set('messageIds', $value); + } + + /** + * Sets the replyMessage property value. The replyMessage property + * @param ChatMessage|null $value Value to set for the replyMessage property. + */ + public function setReplyMessage(?ChatMessage $value): void { + $this->getBackingStore()->set('replyMessage', $value); + } + +} diff --git a/src/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/Replies/ReplyWithQuote/ReplyWithQuoteRequestBuilder.php b/src/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/Replies/ReplyWithQuote/ReplyWithQuoteRequestBuilder.php new file mode 100644 index 00000000000..8b08049f7d7 --- /dev/null +++ b/src/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/Replies/ReplyWithQuote/ReplyWithQuoteRequestBuilder.php @@ -0,0 +1,78 @@ +|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}/groups/{group%2Did}/team/primaryChannel/messages/{chatMessage%2Did}/replies/replyWithQuote'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Reply with quote to a single chat message or multiple chat messages in a chat. + * @param ReplyWithQuotePostRequestBody $body The request body + * @param ReplyWithQuoteRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + * @link https://learn.microsoft.com/graph/api/chatmessage-replywithquote?view=graph-rest-1.0 Find more info here + */ + public function post(ReplyWithQuotePostRequestBody $body, ?ReplyWithQuoteRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [ChatMessage::class, 'createFromDiscriminatorValue'], $errorMappings); + } + + /** + * Reply with quote to a single chat message or multiple chat messages in a chat. + * @param ReplyWithQuotePostRequestBody $body The request body + * @param ReplyWithQuoteRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPostRequestInformation(ReplyWithQuotePostRequestBody $body, ?ReplyWithQuoteRequestBuilderPostRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::POST; + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->tryAddHeader('Accept', "application/json"); + $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); + return $requestInfo; + } + + /** + * 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 ReplyWithQuoteRequestBuilder + */ + public function withUrl(string $rawUrl): ReplyWithQuoteRequestBuilder { + return new ReplyWithQuoteRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/Replies/ReplyWithQuote/ReplyWithQuoteRequestBuilderPostRequestConfiguration.php b/src/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/Replies/ReplyWithQuote/ReplyWithQuoteRequestBuilderPostRequestConfiguration.php new file mode 100644 index 00000000000..dcaa474254e --- /dev/null +++ b/src/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/Replies/ReplyWithQuote/ReplyWithQuoteRequestBuilderPostRequestConfiguration.php @@ -0,0 +1,22 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + */ + public function __construct(?array $headers = null, ?array $options = null) { + parent::__construct($headers ?? [], $options ?? []); + } + +} diff --git a/src/Generated/Groups/Item/Team/PrimaryChannel/Messages/MessagesRequestBuilder.php b/src/Generated/Groups/Item/Team/PrimaryChannel/Messages/MessagesRequestBuilder.php index 5dbf63d3419..3935340bc83 100644 --- a/src/Generated/Groups/Item/Team/PrimaryChannel/Messages/MessagesRequestBuilder.php +++ b/src/Generated/Groups/Item/Team/PrimaryChannel/Messages/MessagesRequestBuilder.php @@ -7,6 +7,7 @@ use Microsoft\Graph\Generated\Groups\Item\Team\PrimaryChannel\Messages\Count\CountRequestBuilder; use Microsoft\Graph\Generated\Groups\Item\Team\PrimaryChannel\Messages\Delta\DeltaRequestBuilder; use Microsoft\Graph\Generated\Groups\Item\Team\PrimaryChannel\Messages\Item\ChatMessageItemRequestBuilder; +use Microsoft\Graph\Generated\Groups\Item\Team\PrimaryChannel\Messages\ReplyWithQuote\ReplyWithQuoteRequestBuilder; use Microsoft\Graph\Generated\Models\ChatMessage; use Microsoft\Graph\Generated\Models\ChatMessageCollectionResponse; use Microsoft\Graph\Generated\Models\ODataErrors\ODataError; @@ -34,6 +35,13 @@ public function delta(): DeltaRequestBuilder { return new DeltaRequestBuilder($this->pathParameters, $this->requestAdapter); } + /** + * Provides operations to call the replyWithQuote method. + */ + public function replyWithQuote(): ReplyWithQuoteRequestBuilder { + return new ReplyWithQuoteRequestBuilder($this->pathParameters, $this->requestAdapter); + } + /** * Provides operations to manage the messages property of the microsoft.graph.channel entity. * @param string $chatMessageId The unique identifier of chatMessage diff --git a/src/Generated/Groups/Item/Team/PrimaryChannel/Messages/ReplyWithQuote/ReplyWithQuotePostRequestBody.php b/src/Generated/Groups/Item/Team/PrimaryChannel/Messages/ReplyWithQuote/ReplyWithQuotePostRequestBody.php new file mode 100644 index 00000000000..72e302269ac --- /dev/null +++ b/src/Generated/Groups/Item/Team/PrimaryChannel/Messages/ReplyWithQuote/ReplyWithQuotePostRequestBody.php @@ -0,0 +1,147 @@ +backingStore = BackingStoreFactorySingleton::getInstance()->createBackingStore(); + $this->setAdditionalData([]); + } + + /** + * Creates a new instance of the appropriate class based on discriminator value + * @param ParseNode $parseNode The parse node to use to read the discriminator value and create the object + * @return ReplyWithQuotePostRequestBody + */ + public static function createFromDiscriminatorValue(ParseNode $parseNode): ReplyWithQuotePostRequestBody { + return new ReplyWithQuotePostRequestBody(); + } + + /** + * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @return array|null + */ + public function getAdditionalData(): ?array { + $val = $this->getBackingStore()->get('additionalData'); + if (is_null($val) || is_array($val)) { + /** @var array|null $val */ + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'additionalData'"); + } + + /** + * Gets the BackingStore property value. Stores model information. + * @return BackingStore + */ + public function getBackingStore(): BackingStore { + return $this->backingStore; + } + + /** + * The deserialization information for the current model + * @return array + */ + public function getFieldDeserializers(): array { + $o = $this; + return [ + 'messageIds' => function (ParseNode $n) { + $val = $n->getCollectionOfPrimitiveValues(); + if (is_array($val)) { + TypeUtils::validateCollectionValues($val, 'string'); + } + /** @var array|null $val */ + $this->setMessageIds($val); + }, + 'replyMessage' => fn(ParseNode $n) => $o->setReplyMessage($n->getObjectValue([ChatMessage::class, 'createFromDiscriminatorValue'])), + ]; + } + + /** + * Gets the messageIds property value. The messageIds property + * @return array|null + */ + public function getMessageIds(): ?array { + $val = $this->getBackingStore()->get('messageIds'); + if (is_array($val) || is_null($val)) { + TypeUtils::validateCollectionValues($val, 'string'); + /** @var array|null $val */ + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'messageIds'"); + } + + /** + * Gets the replyMessage property value. The replyMessage property + * @return ChatMessage|null + */ + public function getReplyMessage(): ?ChatMessage { + $val = $this->getBackingStore()->get('replyMessage'); + if (is_null($val) || $val instanceof ChatMessage) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'replyMessage'"); + } + + /** + * Serializes information the current object + * @param SerializationWriter $writer Serialization writer to use to serialize this model + */ + public function serialize(SerializationWriter $writer): void { + $writer->writeCollectionOfPrimitiveValues('messageIds', $this->getMessageIds()); + $writer->writeObjectValue('replyMessage', $this->getReplyMessage()); + $writer->writeAdditionalData($this->getAdditionalData()); + } + + /** + * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @param array $value Value to set for the AdditionalData property. + */ + public function setAdditionalData(?array $value): void { + $this->getBackingStore()->set('additionalData', $value); + } + + /** + * Sets the BackingStore property value. Stores model information. + * @param BackingStore $value Value to set for the BackingStore property. + */ + public function setBackingStore(BackingStore $value): void { + $this->backingStore = $value; + } + + /** + * Sets the messageIds property value. The messageIds property + * @param array|null $value Value to set for the messageIds property. + */ + public function setMessageIds(?array $value): void { + $this->getBackingStore()->set('messageIds', $value); + } + + /** + * Sets the replyMessage property value. The replyMessage property + * @param ChatMessage|null $value Value to set for the replyMessage property. + */ + public function setReplyMessage(?ChatMessage $value): void { + $this->getBackingStore()->set('replyMessage', $value); + } + +} diff --git a/src/Generated/Groups/Item/Team/PrimaryChannel/Messages/ReplyWithQuote/ReplyWithQuoteRequestBuilder.php b/src/Generated/Groups/Item/Team/PrimaryChannel/Messages/ReplyWithQuote/ReplyWithQuoteRequestBuilder.php new file mode 100644 index 00000000000..9fcf654d0ed --- /dev/null +++ b/src/Generated/Groups/Item/Team/PrimaryChannel/Messages/ReplyWithQuote/ReplyWithQuoteRequestBuilder.php @@ -0,0 +1,78 @@ +|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}/groups/{group%2Did}/team/primaryChannel/messages/replyWithQuote'); + if (is_array($pathParametersOrRawUrl)) { + $this->pathParameters = $pathParametersOrRawUrl; + } else { + $this->pathParameters = ['request-raw-url' => $pathParametersOrRawUrl]; + } + } + + /** + * Reply with quote to a single chat message or multiple chat messages in a chat. + * @param ReplyWithQuotePostRequestBody $body The request body + * @param ReplyWithQuoteRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return Promise + * @throws Exception + * @link https://learn.microsoft.com/graph/api/chatmessage-replywithquote?view=graph-rest-1.0 Find more info here + */ + public function post(ReplyWithQuotePostRequestBody $body, ?ReplyWithQuoteRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise { + $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration); + $errorMappings = [ + 'XXX' => [ODataError::class, 'createFromDiscriminatorValue'], + ]; + return $this->requestAdapter->sendAsync($requestInfo, [ChatMessage::class, 'createFromDiscriminatorValue'], $errorMappings); + } + + /** + * Reply with quote to a single chat message or multiple chat messages in a chat. + * @param ReplyWithQuotePostRequestBody $body The request body + * @param ReplyWithQuoteRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. + * @return RequestInformation + */ + public function toPostRequestInformation(ReplyWithQuotePostRequestBody $body, ?ReplyWithQuoteRequestBuilderPostRequestConfiguration $requestConfiguration = null): RequestInformation { + $requestInfo = new RequestInformation(); + $requestInfo->urlTemplate = $this->urlTemplate; + $requestInfo->pathParameters = $this->pathParameters; + $requestInfo->httpMethod = HttpMethod::POST; + if ($requestConfiguration !== null) { + $requestInfo->addHeaders($requestConfiguration->headers); + $requestInfo->addRequestOptions(...$requestConfiguration->options); + } + $requestInfo->tryAddHeader('Accept', "application/json"); + $requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body); + return $requestInfo; + } + + /** + * 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 ReplyWithQuoteRequestBuilder + */ + public function withUrl(string $rawUrl): ReplyWithQuoteRequestBuilder { + return new ReplyWithQuoteRequestBuilder($rawUrl, $this->requestAdapter); + } + +} diff --git a/src/Generated/Groups/Item/Team/PrimaryChannel/Messages/ReplyWithQuote/ReplyWithQuoteRequestBuilderPostRequestConfiguration.php b/src/Generated/Groups/Item/Team/PrimaryChannel/Messages/ReplyWithQuote/ReplyWithQuoteRequestBuilderPostRequestConfiguration.php new file mode 100644 index 00000000000..75146bec4d0 --- /dev/null +++ b/src/Generated/Groups/Item/Team/PrimaryChannel/Messages/ReplyWithQuote/ReplyWithQuoteRequestBuilderPostRequestConfiguration.php @@ -0,0 +1,22 @@ +|string>|null $headers Request headers + * @param array|null $options Request options + */ + public function __construct(?array $headers = null, ?array $options = null) { + parent::__construct($headers ?? [], $options ?? []); + } + +} diff --git a/src/Generated/Groups/Item/Team/PrimaryChannel/PrimaryChannelRequestBuilder.php b/src/Generated/Groups/Item/Team/PrimaryChannel/PrimaryChannelRequestBuilder.php index ec21e884b99..065f7bb72fa 100644 --- a/src/Generated/Groups/Item/Team/PrimaryChannel/PrimaryChannelRequestBuilder.php +++ b/src/Generated/Groups/Item/Team/PrimaryChannel/PrimaryChannelRequestBuilder.php @@ -8,6 +8,7 @@ use Microsoft\Graph\Generated\Groups\Item\Team\PrimaryChannel\Archive\ArchiveRequestBuilder; use Microsoft\Graph\Generated\Groups\Item\Team\PrimaryChannel\CompleteMigration\CompleteMigrationRequestBuilder; use Microsoft\Graph\Generated\Groups\Item\Team\PrimaryChannel\DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalName\DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameRequestBuilder; +use Microsoft\Graph\Generated\Groups\Item\Team\PrimaryChannel\EnabledApps\EnabledAppsRequestBuilder; use Microsoft\Graph\Generated\Groups\Item\Team\PrimaryChannel\FilesFolder\FilesFolderRequestBuilder; use Microsoft\Graph\Generated\Groups\Item\Team\PrimaryChannel\Members\MembersRequestBuilder; use Microsoft\Graph\Generated\Groups\Item\Team\PrimaryChannel\Messages\MessagesRequestBuilder; @@ -56,6 +57,13 @@ public function doesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameU return new DoesUserHaveAccessuserIdUserIdTenantIdTenantIdUserPrincipalNameUserPrincipalNameRequestBuilder($this->pathParameters, $this->requestAdapter); } + /** + * Provides operations to manage the enabledApps property of the microsoft.graph.channel entity. + */ + public function enabledApps(): EnabledAppsRequestBuilder { + return new EnabledAppsRequestBuilder($this->pathParameters, $this->requestAdapter); + } + /** * Provides operations to manage the filesFolder property of the microsoft.graph.channel entity. */ diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/AssignmentPolicies/Item/AccessPackage/AccessPackageRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/AssignmentPolicies/Item/AccessPackage/AccessPackageRequestBuilder.php index 5c6f844cdbe..b47e6304533 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/AssignmentPolicies/Item/AccessPackage/AccessPackageRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/AssignmentPolicies/Item/AccessPackage/AccessPackageRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Access package containing this policy. Read-only. Supports $expand. + * Access package containing this policy. Read-only. Supports $expand. * @param AccessPackageRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @throws Exception @@ -45,7 +45,7 @@ public function get(?AccessPackageRequestBuilderGetRequestConfiguration $request } /** - * Access package containing this policy. Read-only. Supports $expand. + * Access package containing this policy. Read-only. Supports $expand. * @param AccessPackageRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/AssignmentPolicies/Item/AccessPackage/AccessPackageRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/AssignmentPolicies/Item/AccessPackage/AccessPackageRequestBuilderGetQueryParameters.php index 601b4fdb867..31d55fa7a0c 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/AssignmentPolicies/Item/AccessPackage/AccessPackageRequestBuilderGetQueryParameters.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/AssignmentPolicies/Item/AccessPackage/AccessPackageRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Access package containing this policy. Read-only. Supports $expand. + * Access package containing this policy. Read-only. Supports $expand. */ class AccessPackageRequestBuilderGetQueryParameters { diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/AssignmentPolicies/Item/AccessPackage/AccessPackageRequestBuilder.php b/src/Generated/IdentityGovernance/EntitlementManagement/AssignmentPolicies/Item/AccessPackage/AccessPackageRequestBuilder.php index fc802b3b229..9b4fe9e9c54 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/AssignmentPolicies/Item/AccessPackage/AccessPackageRequestBuilder.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/AssignmentPolicies/Item/AccessPackage/AccessPackageRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Access package containing this policy. Read-only. Supports $expand. + * Access package containing this policy. Read-only. Supports $expand. * @param AccessPackageRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @throws Exception @@ -45,7 +45,7 @@ public function get(?AccessPackageRequestBuilderGetRequestConfiguration $request } /** - * Access package containing this policy. Read-only. Supports $expand. + * Access package containing this policy. Read-only. Supports $expand. * @param AccessPackageRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/IdentityGovernance/EntitlementManagement/AssignmentPolicies/Item/AccessPackage/AccessPackageRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/EntitlementManagement/AssignmentPolicies/Item/AccessPackage/AccessPackageRequestBuilderGetQueryParameters.php index e4df5193042..0f92b34f0ad 100644 --- a/src/Generated/IdentityGovernance/EntitlementManagement/AssignmentPolicies/Item/AccessPackage/AccessPackageRequestBuilderGetQueryParameters.php +++ b/src/Generated/IdentityGovernance/EntitlementManagement/AssignmentPolicies/Item/AccessPackage/AccessPackageRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Access package containing this policy. Read-only. Supports $expand. + * Access package containing this policy. Read-only. Supports $expand. */ class AccessPackageRequestBuilderGetQueryParameters { diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/AdministrationScopeTargets/AdministrationScopeTargetsRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/AdministrationScopeTargets/AdministrationScopeTargetsRequestBuilder.php index a3cd42a23c4..beec522f144 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/AdministrationScopeTargets/AdministrationScopeTargetsRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/AdministrationScopeTargets/AdministrationScopeTargetsRequestBuilder.php @@ -51,7 +51,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Get administrationScopeTargets from identityGovernance + * The administrative units in the scope of the workflow. Optional. Supports $expand. * @param AdministrationScopeTargetsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @throws Exception @@ -65,7 +65,7 @@ public function get(?AdministrationScopeTargetsRequestBuilderGetRequestConfigura } /** - * Get administrationScopeTargets from identityGovernance + * The administrative units in the scope of the workflow. Optional. Supports $expand. * @param AdministrationScopeTargetsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/AdministrationScopeTargets/AdministrationScopeTargetsRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/AdministrationScopeTargets/AdministrationScopeTargetsRequestBuilderGetQueryParameters.php index 9aa78568662..971e95018c9 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/AdministrationScopeTargets/AdministrationScopeTargetsRequestBuilderGetQueryParameters.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/AdministrationScopeTargets/AdministrationScopeTargetsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get administrationScopeTargets from identityGovernance + * The administrative units in the scope of the workflow. Optional. Supports $expand. */ class AdministrationScopeTargetsRequestBuilderGetQueryParameters { diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/AdministrationScopeTargets/Item/DirectoryObjectItemRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/AdministrationScopeTargets/Item/DirectoryObjectItemRequestBuilder.php index 6494416a2fd..64692e35710 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/AdministrationScopeTargets/Item/DirectoryObjectItemRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/AdministrationScopeTargets/Item/DirectoryObjectItemRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Get administrationScopeTargets from identityGovernance + * The administrative units in the scope of the workflow. Optional. Supports $expand. * @param DirectoryObjectItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @throws Exception @@ -45,7 +45,7 @@ public function get(?DirectoryObjectItemRequestBuilderGetRequestConfiguration $r } /** - * Get administrationScopeTargets from identityGovernance + * The administrative units in the scope of the workflow. Optional. Supports $expand. * @param DirectoryObjectItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/AdministrationScopeTargets/Item/DirectoryObjectItemRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/AdministrationScopeTargets/Item/DirectoryObjectItemRequestBuilderGetQueryParameters.php index 8fb59833d32..c8ac07210c2 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/AdministrationScopeTargets/Item/DirectoryObjectItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/AdministrationScopeTargets/Item/DirectoryObjectItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get administrationScopeTargets from identityGovernance + * The administrative units in the scope of the workflow. Optional. Supports $expand. */ class DirectoryObjectItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/AdministrationScopeTargets/AdministrationScopeTargetsRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/AdministrationScopeTargets/AdministrationScopeTargetsRequestBuilder.php index 908527ed8c4..87fd8d31a1f 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/AdministrationScopeTargets/AdministrationScopeTargetsRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/AdministrationScopeTargets/AdministrationScopeTargetsRequestBuilder.php @@ -51,7 +51,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Get administrationScopeTargets from identityGovernance + * The administrative units in the scope of the workflow. Optional. Supports $expand. * @param AdministrationScopeTargetsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @throws Exception @@ -65,7 +65,7 @@ public function get(?AdministrationScopeTargetsRequestBuilderGetRequestConfigura } /** - * Get administrationScopeTargets from identityGovernance + * The administrative units in the scope of the workflow. Optional. Supports $expand. * @param AdministrationScopeTargetsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/AdministrationScopeTargets/AdministrationScopeTargetsRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/AdministrationScopeTargets/AdministrationScopeTargetsRequestBuilderGetQueryParameters.php index 8b0a09a0286..50be7446d03 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/AdministrationScopeTargets/AdministrationScopeTargetsRequestBuilderGetQueryParameters.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/AdministrationScopeTargets/AdministrationScopeTargetsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get administrationScopeTargets from identityGovernance + * The administrative units in the scope of the workflow. Optional. Supports $expand. */ class AdministrationScopeTargetsRequestBuilderGetQueryParameters { diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/AdministrationScopeTargets/Item/DirectoryObjectItemRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/AdministrationScopeTargets/Item/DirectoryObjectItemRequestBuilder.php index c31f9a960c6..90aa6670e8f 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/AdministrationScopeTargets/Item/DirectoryObjectItemRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/AdministrationScopeTargets/Item/DirectoryObjectItemRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Get administrationScopeTargets from identityGovernance + * The administrative units in the scope of the workflow. Optional. Supports $expand. * @param DirectoryObjectItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @throws Exception @@ -45,7 +45,7 @@ public function get(?DirectoryObjectItemRequestBuilderGetRequestConfiguration $r } /** - * Get administrationScopeTargets from identityGovernance + * The administrative units in the scope of the workflow. Optional. Supports $expand. * @param DirectoryObjectItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/AdministrationScopeTargets/Item/DirectoryObjectItemRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/AdministrationScopeTargets/Item/DirectoryObjectItemRequestBuilderGetQueryParameters.php index c3f068094f6..649db5d7aa9 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/AdministrationScopeTargets/Item/DirectoryObjectItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/AdministrationScopeTargets/Item/DirectoryObjectItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get administrationScopeTargets from identityGovernance + * The administrative units in the scope of the workflow. Optional. Supports $expand. */ class DirectoryObjectItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/AdministrationScopeTargets/AdministrationScopeTargetsRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/AdministrationScopeTargets/AdministrationScopeTargetsRequestBuilder.php index 0757a690053..3bc831c5cf0 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/AdministrationScopeTargets/AdministrationScopeTargetsRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/AdministrationScopeTargets/AdministrationScopeTargetsRequestBuilder.php @@ -51,7 +51,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Get administrationScopeTargets from identityGovernance + * The administrative units in the scope of the workflow. Optional. Supports $expand. * @param AdministrationScopeTargetsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @throws Exception @@ -65,7 +65,7 @@ public function get(?AdministrationScopeTargetsRequestBuilderGetRequestConfigura } /** - * Get administrationScopeTargets from identityGovernance + * The administrative units in the scope of the workflow. Optional. Supports $expand. * @param AdministrationScopeTargetsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/AdministrationScopeTargets/AdministrationScopeTargetsRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/AdministrationScopeTargets/AdministrationScopeTargetsRequestBuilderGetQueryParameters.php index d3e0a837d96..374fb9a23d1 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/AdministrationScopeTargets/AdministrationScopeTargetsRequestBuilderGetQueryParameters.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/AdministrationScopeTargets/AdministrationScopeTargetsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get administrationScopeTargets from identityGovernance + * The administrative units in the scope of the workflow. Optional. Supports $expand. */ class AdministrationScopeTargetsRequestBuilderGetQueryParameters { diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/AdministrationScopeTargets/Item/DirectoryObjectItemRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/AdministrationScopeTargets/Item/DirectoryObjectItemRequestBuilder.php index a48bb7e7253..7b20cd6719f 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/AdministrationScopeTargets/Item/DirectoryObjectItemRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/AdministrationScopeTargets/Item/DirectoryObjectItemRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Get administrationScopeTargets from identityGovernance + * The administrative units in the scope of the workflow. Optional. Supports $expand. * @param DirectoryObjectItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @throws Exception @@ -45,7 +45,7 @@ public function get(?DirectoryObjectItemRequestBuilderGetRequestConfiguration $r } /** - * Get administrationScopeTargets from identityGovernance + * The administrative units in the scope of the workflow. Optional. Supports $expand. * @param DirectoryObjectItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/AdministrationScopeTargets/Item/DirectoryObjectItemRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/AdministrationScopeTargets/Item/DirectoryObjectItemRequestBuilderGetQueryParameters.php index 12e6e0405b8..f1eaa901b63 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/AdministrationScopeTargets/Item/DirectoryObjectItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/AdministrationScopeTargets/Item/DirectoryObjectItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get administrationScopeTargets from identityGovernance + * The administrative units in the scope of the workflow. Optional. Supports $expand. */ class DirectoryObjectItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/AdministrationScopeTargets/AdministrationScopeTargetsRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/AdministrationScopeTargets/AdministrationScopeTargetsRequestBuilder.php index c3027fcd04e..daad9434fa2 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/AdministrationScopeTargets/AdministrationScopeTargetsRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/AdministrationScopeTargets/AdministrationScopeTargetsRequestBuilder.php @@ -51,7 +51,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Get administrationScopeTargets from identityGovernance + * The administrative units in the scope of the workflow. Optional. Supports $expand. * @param AdministrationScopeTargetsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @throws Exception @@ -65,7 +65,7 @@ public function get(?AdministrationScopeTargetsRequestBuilderGetRequestConfigura } /** - * Get administrationScopeTargets from identityGovernance + * The administrative units in the scope of the workflow. Optional. Supports $expand. * @param AdministrationScopeTargetsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/AdministrationScopeTargets/AdministrationScopeTargetsRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/AdministrationScopeTargets/AdministrationScopeTargetsRequestBuilderGetQueryParameters.php index 0e13d0c0e22..ecc5ba2c5ca 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/AdministrationScopeTargets/AdministrationScopeTargetsRequestBuilderGetQueryParameters.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/AdministrationScopeTargets/AdministrationScopeTargetsRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get administrationScopeTargets from identityGovernance + * The administrative units in the scope of the workflow. Optional. Supports $expand. */ class AdministrationScopeTargetsRequestBuilderGetQueryParameters { diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/AdministrationScopeTargets/Item/DirectoryObjectItemRequestBuilder.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/AdministrationScopeTargets/Item/DirectoryObjectItemRequestBuilder.php index 186f59fa974..6522ec3ddfc 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/AdministrationScopeTargets/Item/DirectoryObjectItemRequestBuilder.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/AdministrationScopeTargets/Item/DirectoryObjectItemRequestBuilder.php @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap } /** - * Get administrationScopeTargets from identityGovernance + * The administrative units in the scope of the workflow. Optional. Supports $expand. * @param DirectoryObjectItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return Promise * @throws Exception @@ -45,7 +45,7 @@ public function get(?DirectoryObjectItemRequestBuilderGetRequestConfiguration $r } /** - * Get administrationScopeTargets from identityGovernance + * The administrative units in the scope of the workflow. Optional. Supports $expand. * @param DirectoryObjectItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @return RequestInformation */ diff --git a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/AdministrationScopeTargets/Item/DirectoryObjectItemRequestBuilderGetQueryParameters.php b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/AdministrationScopeTargets/Item/DirectoryObjectItemRequestBuilderGetQueryParameters.php index 6774ae498fd..40cb9ca5d45 100644 --- a/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/AdministrationScopeTargets/Item/DirectoryObjectItemRequestBuilderGetQueryParameters.php +++ b/src/Generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/AdministrationScopeTargets/Item/DirectoryObjectItemRequestBuilderGetQueryParameters.php @@ -5,7 +5,7 @@ use Microsoft\Kiota\Abstractions\QueryParameter; /** - * Get administrationScopeTargets from identityGovernance + * The administrative units in the scope of the workflow. Optional. Supports $expand. */ class DirectoryObjectItemRequestBuilderGetQueryParameters { diff --git a/src/Generated/Models/AccessPackageAssignmentPolicy.php b/src/Generated/Models/AccessPackageAssignmentPolicy.php index 9880b9cad84..76e124ae91e 100644 --- a/src/Generated/Models/AccessPackageAssignmentPolicy.php +++ b/src/Generated/Models/AccessPackageAssignmentPolicy.php @@ -27,7 +27,7 @@ public static function createFromDiscriminatorValue(ParseNode $parseNode): Acces } /** - * Gets the accessPackage property value. Access package containing this policy. Read-only. Supports $expand. + * Gets the accessPackage property value. Access package containing this policy. Read-only. Supports $expand. * @return AccessPackage|null */ public function getAccessPackage(): ?AccessPackage { @@ -39,7 +39,7 @@ public function getAccessPackage(): ?AccessPackage { } /** - * Gets the allowedTargetScope property value. Principals that can be assigned the access package through this policy. The possible values are: notSpecified, specificDirectoryUsers, specificConnectedOrganizationUsers, specificDirectoryServicePrincipals, allMemberUsers, allDirectoryUsers, allDirectoryServicePrincipals, allConfiguredConnectedOrganizationUsers, allExternalUsers, unknownFutureValue. + * Gets the allowedTargetScope property value. Principals that can be assigned the access package through this policy. The possible values are: notSpecified, specificDirectoryUsers, specificConnectedOrganizationUsers, specificDirectoryServicePrincipals, allMemberUsers, allDirectoryUsers, allDirectoryServicePrincipals, allConfiguredConnectedOrganizationUsers, allExternalUsers, allDirectoryAgentIdentities, unknownFutureValue. * @return AllowedTargetScope|null */ public function getAllowedTargetScope(): ?AllowedTargetScope { @@ -275,7 +275,7 @@ public function serialize(SerializationWriter $writer): void { } /** - * Sets the accessPackage property value. Access package containing this policy. Read-only. Supports $expand. + * Sets the accessPackage property value. Access package containing this policy. Read-only. Supports $expand. * @param AccessPackage|null $value Value to set for the accessPackage property. */ public function setAccessPackage(?AccessPackage $value): void { @@ -283,7 +283,7 @@ public function setAccessPackage(?AccessPackage $value): void { } /** - * Sets the allowedTargetScope property value. Principals that can be assigned the access package through this policy. The possible values are: notSpecified, specificDirectoryUsers, specificConnectedOrganizationUsers, specificDirectoryServicePrincipals, allMemberUsers, allDirectoryUsers, allDirectoryServicePrincipals, allConfiguredConnectedOrganizationUsers, allExternalUsers, unknownFutureValue. + * Sets the allowedTargetScope property value. Principals that can be assigned the access package through this policy. The possible values are: notSpecified, specificDirectoryUsers, specificConnectedOrganizationUsers, specificDirectoryServicePrincipals, allMemberUsers, allDirectoryUsers, allDirectoryServicePrincipals, allConfiguredConnectedOrganizationUsers, allExternalUsers, allDirectoryAgentIdentities, unknownFutureValue. * @param AllowedTargetScope|null $value Value to set for the allowedTargetScope property. */ public function setAllowedTargetScope(?AllowedTargetScope $value): void { diff --git a/src/Generated/Models/Admin.php b/src/Generated/Models/Admin.php index 035aed04deb..5e8a6d3b15d 100644 --- a/src/Generated/Models/Admin.php +++ b/src/Generated/Models/Admin.php @@ -56,6 +56,18 @@ public function getBackingStore(): BackingStore { return $this->backingStore; } + /** + * Gets the configurationManagement property value. A container for Tenant Configuration Management (TCM) resources. Read-only. + * @return ConfigurationManagement|null + */ + public function getConfigurationManagement(): ?ConfigurationManagement { + $val = $this->getBackingStore()->get('configurationManagement'); + if (is_null($val) || $val instanceof ConfigurationManagement) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'configurationManagement'"); + } + /** * Gets the edge property value. A container for Microsoft Edge resources. Read-only. * @return Edge|null @@ -87,6 +99,7 @@ public function getExchange(): ?ExchangeAdmin { public function getFieldDeserializers(): array { $o = $this; return [ + 'configurationManagement' => fn(ParseNode $n) => $o->setConfigurationManagement($n->getObjectValue([ConfigurationManagement::class, 'createFromDiscriminatorValue'])), 'edge' => fn(ParseNode $n) => $o->setEdge($n->getObjectValue([Edge::class, 'createFromDiscriminatorValue'])), 'exchange' => fn(ParseNode $n) => $o->setExchange($n->getObjectValue([ExchangeAdmin::class, 'createFromDiscriminatorValue'])), 'microsoft365Apps' => fn(ParseNode $n) => $o->setMicrosoft365Apps($n->getObjectValue([AdminMicrosoft365Apps::class, 'createFromDiscriminatorValue'])), @@ -172,7 +185,7 @@ public function getSharepoint(): ?Sharepoint { } /** - * Gets the teams property value. A container for Teams administration functionalities, such as user configurations and policy assignments. + * Gets the teams property value. A container for Teams administration functionalities, such as Teams telephone number management functionalities, user Teams configurations, and policy assignments. * @return TeamsAdminRoot|null */ public function getTeams(): ?TeamsAdminRoot { @@ -188,6 +201,7 @@ public function getTeams(): ?TeamsAdminRoot { * @param SerializationWriter $writer Serialization writer to use to serialize this model */ public function serialize(SerializationWriter $writer): void { + $writer->writeObjectValue('configurationManagement', $this->getConfigurationManagement()); $writer->writeObjectValue('edge', $this->getEdge()); $writer->writeObjectValue('exchange', $this->getExchange()); $writer->writeObjectValue('microsoft365Apps', $this->getMicrosoft365Apps()); @@ -216,6 +230,14 @@ public function setBackingStore(BackingStore $value): void { $this->backingStore = $value; } + /** + * Sets the configurationManagement property value. A container for Tenant Configuration Management (TCM) resources. Read-only. + * @param ConfigurationManagement|null $value Value to set for the configurationManagement property. + */ + public function setConfigurationManagement(?ConfigurationManagement $value): void { + $this->getBackingStore()->set('configurationManagement', $value); + } + /** * Sets the edge property value. A container for Microsoft Edge resources. Read-only. * @param Edge|null $value Value to set for the edge property. @@ -281,7 +303,7 @@ public function setSharepoint(?Sharepoint $value): void { } /** - * Sets the teams property value. A container for Teams administration functionalities, such as user configurations and policy assignments. + * Sets the teams property value. A container for Teams administration functionalities, such as Teams telephone number management functionalities, user Teams configurations, and policy assignments. * @param TeamsAdminRoot|null $value Value to set for the teams property. */ public function setTeams(?TeamsAdminRoot $value): void { diff --git a/src/Generated/Models/AgentIdentity.php b/src/Generated/Models/AgentIdentity.php new file mode 100644 index 00000000000..f300bafd874 --- /dev/null +++ b/src/Generated/Models/AgentIdentity.php @@ -0,0 +1,138 @@ +setOdataType('#microsoft.graph.agentIdentity'); + } + + /** + * Creates a new instance of the appropriate class based on discriminator value + * @param ParseNode $parseNode The parse node to use to read the discriminator value and create the object + * @return AgentIdentity + */ + public static function createFromDiscriminatorValue(ParseNode $parseNode): AgentIdentity { + return new AgentIdentity(); + } + + /** + * Gets the agentIdentityBlueprintId property value. The appId of the agent identity blueprint that defines the configuration for this agent identity. + * @return string|null + */ + public function getAgentIdentityBlueprintId(): ?string { + $val = $this->getBackingStore()->get('agentIdentityBlueprintId'); + if (is_null($val) || is_string($val)) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'agentIdentityBlueprintId'"); + } + + /** + * Gets the createdByAppId property value. The appId of the application that created this agent identity. Set internally by Microsoft Entra ID. Read-only. Inherited from servicePrincipal. + * @return string|null + */ + public function getCreatedByAppId(): ?string { + $val = $this->getBackingStore()->get('createdByAppId'); + if (is_null($val) || is_string($val)) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'createdByAppId'"); + } + + /** + * Gets the createdDateTime property value. The date and time the agent identity was created. Read-only. Inherited from servicePrincipal. + * @return DateTime|null + */ + public function getCreatedDateTime(): ?DateTime { + $val = $this->getBackingStore()->get('createdDateTime'); + if (is_null($val) || $val instanceof DateTime) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'createdDateTime'"); + } + + /** + * The deserialization information for the current model + * @return array + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'agentIdentityBlueprintId' => fn(ParseNode $n) => $o->setAgentIdentityBlueprintId($n->getStringValue()), + 'createdByAppId' => fn(ParseNode $n) => $o->setCreatedByAppId($n->getStringValue()), + 'createdDateTime' => fn(ParseNode $n) => $o->setCreatedDateTime($n->getDateTimeValue()), + 'sponsors' => fn(ParseNode $n) => $o->setSponsors($n->getCollectionOfObjectValues([DirectoryObject::class, 'createFromDiscriminatorValue'])), + ]); + } + + /** + * Gets the sponsors property value. The sponsors for this agent identity. + * @return array|null + */ + public function getSponsors(): ?array { + $val = $this->getBackingStore()->get('sponsors'); + if (is_array($val) || is_null($val)) { + TypeUtils::validateCollectionValues($val, DirectoryObject::class); + /** @var array|null $val */ + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'sponsors'"); + } + + /** + * Serializes information the current object + * @param SerializationWriter $writer Serialization writer to use to serialize this model + */ + public function serialize(SerializationWriter $writer): void { + parent::serialize($writer); + $writer->writeStringValue('agentIdentityBlueprintId', $this->getAgentIdentityBlueprintId()); + $writer->writeStringValue('createdByAppId', $this->getCreatedByAppId()); + $writer->writeDateTimeValue('createdDateTime', $this->getCreatedDateTime()); + $writer->writeCollectionOfObjectValues('sponsors', $this->getSponsors()); + } + + /** + * Sets the agentIdentityBlueprintId property value. The appId of the agent identity blueprint that defines the configuration for this agent identity. + * @param string|null $value Value to set for the agentIdentityBlueprintId property. + */ + public function setAgentIdentityBlueprintId(?string $value): void { + $this->getBackingStore()->set('agentIdentityBlueprintId', $value); + } + + /** + * Sets the createdByAppId property value. The appId of the application that created this agent identity. Set internally by Microsoft Entra ID. Read-only. Inherited from servicePrincipal. + * @param string|null $value Value to set for the createdByAppId property. + */ + public function setCreatedByAppId(?string $value): void { + $this->getBackingStore()->set('createdByAppId', $value); + } + + /** + * Sets the createdDateTime property value. The date and time the agent identity was created. Read-only. Inherited from servicePrincipal. + * @param DateTime|null $value Value to set for the createdDateTime property. + */ + public function setCreatedDateTime(?DateTime $value): void { + $this->getBackingStore()->set('createdDateTime', $value); + } + + /** + * Sets the sponsors property value. The sponsors for this agent identity. + * @param array|null $value Value to set for the sponsors property. + */ + public function setSponsors(?array $value): void { + $this->getBackingStore()->set('sponsors', $value); + } + +} diff --git a/src/Generated/Models/AgentIdentityBlueprint.php b/src/Generated/Models/AgentIdentityBlueprint.php new file mode 100644 index 00000000000..ddd01623269 --- /dev/null +++ b/src/Generated/Models/AgentIdentityBlueprint.php @@ -0,0 +1,117 @@ +setOdataType('#microsoft.graph.agentIdentityBlueprint'); + } + + /** + * Creates a new instance of the appropriate class based on discriminator value + * @param ParseNode $parseNode The parse node to use to read the discriminator value and create the object + * @return AgentIdentityBlueprint + */ + public static function createFromDiscriminatorValue(ParseNode $parseNode): AgentIdentityBlueprint { + return new AgentIdentityBlueprint(); + } + + /** + * Gets the createdByAppId property value. The appId of the application that created this agent identity blueprint. Set internally by Microsoft Entra ID. Read-only. Inherited from application. + * @return string|null + */ + public function getCreatedByAppId(): ?string { + $val = $this->getBackingStore()->get('createdByAppId'); + if (is_null($val) || is_string($val)) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'createdByAppId'"); + } + + /** + * The deserialization information for the current model + * @return array + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'createdByAppId' => fn(ParseNode $n) => $o->setCreatedByAppId($n->getStringValue()), + 'inheritablePermissions' => fn(ParseNode $n) => $o->setInheritablePermissions($n->getCollectionOfObjectValues([InheritablePermission::class, 'createFromDiscriminatorValue'])), + 'sponsors' => fn(ParseNode $n) => $o->setSponsors($n->getCollectionOfObjectValues([DirectoryObject::class, 'createFromDiscriminatorValue'])), + ]); + } + + /** + * Gets the inheritablePermissions property value. Defines scopes of a resource application that may be automatically granted to agent identities without additional consent. + * @return array|null + */ + public function getInheritablePermissions(): ?array { + $val = $this->getBackingStore()->get('inheritablePermissions'); + if (is_array($val) || is_null($val)) { + TypeUtils::validateCollectionValues($val, InheritablePermission::class); + /** @var array|null $val */ + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'inheritablePermissions'"); + } + + /** + * Gets the sponsors property value. The sponsors for this agent identity blueprint. Sponsors are users or groups who can authorize and manage the lifecycle of agent identity instances. Required during the create operation. + * @return array|null + */ + public function getSponsors(): ?array { + $val = $this->getBackingStore()->get('sponsors'); + if (is_array($val) || is_null($val)) { + TypeUtils::validateCollectionValues($val, DirectoryObject::class); + /** @var array|null $val */ + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'sponsors'"); + } + + /** + * Serializes information the current object + * @param SerializationWriter $writer Serialization writer to use to serialize this model + */ + public function serialize(SerializationWriter $writer): void { + parent::serialize($writer); + $writer->writeStringValue('createdByAppId', $this->getCreatedByAppId()); + $writer->writeCollectionOfObjectValues('inheritablePermissions', $this->getInheritablePermissions()); + $writer->writeCollectionOfObjectValues('sponsors', $this->getSponsors()); + } + + /** + * Sets the createdByAppId property value. The appId of the application that created this agent identity blueprint. Set internally by Microsoft Entra ID. Read-only. Inherited from application. + * @param string|null $value Value to set for the createdByAppId property. + */ + public function setCreatedByAppId(?string $value): void { + $this->getBackingStore()->set('createdByAppId', $value); + } + + /** + * Sets the inheritablePermissions property value. Defines scopes of a resource application that may be automatically granted to agent identities without additional consent. + * @param array|null $value Value to set for the inheritablePermissions property. + */ + public function setInheritablePermissions(?array $value): void { + $this->getBackingStore()->set('inheritablePermissions', $value); + } + + /** + * Sets the sponsors property value. The sponsors for this agent identity blueprint. Sponsors are users or groups who can authorize and manage the lifecycle of agent identity instances. Required during the create operation. + * @param array|null $value Value to set for the sponsors property. + */ + public function setSponsors(?array $value): void { + $this->getBackingStore()->set('sponsors', $value); + } + +} diff --git a/src/Generated/Models/AgentIdentityBlueprintPrincipal.php b/src/Generated/Models/AgentIdentityBlueprintPrincipal.php new file mode 100644 index 00000000000..73e03b5448d --- /dev/null +++ b/src/Generated/Models/AgentIdentityBlueprintPrincipal.php @@ -0,0 +1,93 @@ +setOdataType('#microsoft.graph.agentIdentityBlueprintPrincipal'); + } + + /** + * Creates a new instance of the appropriate class based on discriminator value + * @param ParseNode $parseNode The parse node to use to read the discriminator value and create the object + * @return AgentIdentityBlueprintPrincipal + */ + public static function createFromDiscriminatorValue(ParseNode $parseNode): AgentIdentityBlueprintPrincipal { + return new AgentIdentityBlueprintPrincipal(); + } + + /** + * Gets the createdByAppId property value. The appId of the application that created this agent identity blueprint principal. Set internally by Microsoft Entra ID. Read-only. Inherited from servicePrincipal. + * @return string|null + */ + public function getCreatedByAppId(): ?string { + $val = $this->getBackingStore()->get('createdByAppId'); + if (is_null($val) || is_string($val)) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'createdByAppId'"); + } + + /** + * The deserialization information for the current model + * @return array + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'createdByAppId' => fn(ParseNode $n) => $o->setCreatedByAppId($n->getStringValue()), + 'sponsors' => fn(ParseNode $n) => $o->setSponsors($n->getCollectionOfObjectValues([DirectoryObject::class, 'createFromDiscriminatorValue'])), + ]); + } + + /** + * Gets the sponsors property value. The sponsors for this agent identity blueprint principal. Sponsors are users or service principals who can authorize and manage the lifecycle of agent identity instances. + * @return array|null + */ + public function getSponsors(): ?array { + $val = $this->getBackingStore()->get('sponsors'); + if (is_array($val) || is_null($val)) { + TypeUtils::validateCollectionValues($val, DirectoryObject::class); + /** @var array|null $val */ + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'sponsors'"); + } + + /** + * Serializes information the current object + * @param SerializationWriter $writer Serialization writer to use to serialize this model + */ + public function serialize(SerializationWriter $writer): void { + parent::serialize($writer); + $writer->writeStringValue('createdByAppId', $this->getCreatedByAppId()); + $writer->writeCollectionOfObjectValues('sponsors', $this->getSponsors()); + } + + /** + * Sets the createdByAppId property value. The appId of the application that created this agent identity blueprint principal. Set internally by Microsoft Entra ID. Read-only. Inherited from servicePrincipal. + * @param string|null $value Value to set for the createdByAppId property. + */ + public function setCreatedByAppId(?string $value): void { + $this->getBackingStore()->set('createdByAppId', $value); + } + + /** + * Sets the sponsors property value. The sponsors for this agent identity blueprint principal. Sponsors are users or service principals who can authorize and manage the lifecycle of agent identity instances. + * @param array|null $value Value to set for the sponsors property. + */ + public function setSponsors(?array $value): void { + $this->getBackingStore()->set('sponsors', $value); + } + +} diff --git a/src/Generated/Models/AgentUser.php b/src/Generated/Models/AgentUser.php new file mode 100644 index 00000000000..d1c689b92bf --- /dev/null +++ b/src/Generated/Models/AgentUser.php @@ -0,0 +1,49 @@ +setOdataType('#microsoft.graph.agentUser'); + } + + /** + * Creates a new instance of the appropriate class based on discriminator value + * @param ParseNode $parseNode The parse node to use to read the discriminator value and create the object + * @return AgentUser + */ + public static function createFromDiscriminatorValue(ParseNode $parseNode): AgentUser { + return new AgentUser(); + } + + /** + * The deserialization information for the current model + * @return array + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + ]); + } + + /** + * Serializes information the current object + * @param SerializationWriter $writer Serialization writer to use to serialize this model + */ + public function serialize(SerializationWriter $writer): void { + parent::serialize($writer); + } + +} diff --git a/src/Generated/Models/Alert.php b/src/Generated/Models/Alert.php index 9b323b59f0d..2cef9ac7311 100644 --- a/src/Generated/Models/Alert.php +++ b/src/Generated/Models/Alert.php @@ -203,7 +203,7 @@ public function getEventDateTime(): ?DateTime { } /** - * Gets the feedback property value. Analyst feedback on the alert. The possible values are: unknown, truePositive, falsePositive, benignPositive. Supports update. + * Gets the feedback property value. Analyst feedback on the alert. The possible values are: unknown, truePositive, falsePositive, benignPositive. Updatable. * @return AlertFeedback|null */ public function getFeedback(): ?AlertFeedback { @@ -306,7 +306,7 @@ public function getFieldDeserializers(): array { } /** - * Gets the fileStates property value. Security-related stateful information generated by the provider about the file(s) related to this alert. + * Gets the fileStates property value. Security-related stateful information generated by the provider about the files related to this alert. * @return array|null */ public function getFileStates(): ?array { @@ -334,7 +334,7 @@ public function getHistoryStates(): ?array { } /** - * Gets the hostStates property value. Security-related stateful information generated by the provider about the host(s) related to this alert. + * Gets the hostStates property value. Security-related stateful information generated by the provider about the hosts related to this alert. * @return array|null */ public function getHostStates(): ?array { @@ -428,7 +428,7 @@ public function getMessageSecurityStates(): ?array { } /** - * Gets the networkConnections property value. Security-related stateful information generated by the provider about the network connection(s) related to this alert. + * Gets the networkConnections property value. Security-related stateful information generated by the provider about the network connections related to this alert. * @return array|null */ public function getNetworkConnections(): ?array { @@ -456,7 +456,7 @@ public function getProcesses(): ?array { } /** - * Gets the recommendedActions property value. Vendor/provider recommended action(s) to take as a result of the alert (for example, isolate machine, enforce2FA, reimage host). + * Gets the recommendedActions property value. Vendor/provider recommended actions to take as a result of the alert (for example, isolate machine, enforce2FA, reimage host). * @return array|null */ public function getRecommendedActions(): ?array { @@ -536,7 +536,7 @@ public function getStatus(): ?AlertStatus { } /** - * Gets the tags property value. User-definable labels that can be applied to an alert and can serve as filter conditions (for example 'HVA', 'SAW') (supports update). + * Gets the tags property value. User-definable labels that can be applied to an alert and can serve as filter conditions (for example, 'HVA', 'SAW') (supports update). * @return array|null */ public function getTags(): ?array { @@ -789,7 +789,7 @@ public function setEventDateTime(?DateTime $value): void { } /** - * Sets the feedback property value. Analyst feedback on the alert. The possible values are: unknown, truePositive, falsePositive, benignPositive. Supports update. + * Sets the feedback property value. Analyst feedback on the alert. The possible values are: unknown, truePositive, falsePositive, benignPositive. Updatable. * @param AlertFeedback|null $value Value to set for the feedback property. */ public function setFeedback(?AlertFeedback $value): void { @@ -797,7 +797,7 @@ public function setFeedback(?AlertFeedback $value): void { } /** - * Sets the fileStates property value. Security-related stateful information generated by the provider about the file(s) related to this alert. + * Sets the fileStates property value. Security-related stateful information generated by the provider about the files related to this alert. * @param array|null $value Value to set for the fileStates property. */ public function setFileStates(?array $value): void { @@ -813,7 +813,7 @@ public function setHistoryStates(?array $value): void { } /** - * Sets the hostStates property value. Security-related stateful information generated by the provider about the host(s) related to this alert. + * Sets the hostStates property value. Security-related stateful information generated by the provider about the hosts related to this alert. * @param array|null $value Value to set for the hostStates property. */ public function setHostStates(?array $value): void { @@ -869,7 +869,7 @@ public function setMessageSecurityStates(?array $value): void { } /** - * Sets the networkConnections property value. Security-related stateful information generated by the provider about the network connection(s) related to this alert. + * Sets the networkConnections property value. Security-related stateful information generated by the provider about the network connections related to this alert. * @param array|null $value Value to set for the networkConnections property. */ public function setNetworkConnections(?array $value): void { @@ -885,7 +885,7 @@ public function setProcesses(?array $value): void { } /** - * Sets the recommendedActions property value. Vendor/provider recommended action(s) to take as a result of the alert (for example, isolate machine, enforce2FA, reimage host). + * Sets the recommendedActions property value. Vendor/provider recommended actions to take as a result of the alert (for example, isolate machine, enforce2FA, reimage host). * @param array|null $value Value to set for the recommendedActions property. */ public function setRecommendedActions(?array $value): void { @@ -933,7 +933,7 @@ public function setStatus(?AlertStatus $value): void { } /** - * Sets the tags property value. User-definable labels that can be applied to an alert and can serve as filter conditions (for example 'HVA', 'SAW') (supports update). + * Sets the tags property value. User-definable labels that can be applied to an alert and can serve as filter conditions (for example, 'HVA', 'SAW') (supports update). * @param array|null $value Value to set for the tags property. */ public function setTags(?array $value): void { diff --git a/src/Generated/Models/AllAllowedScopes.php b/src/Generated/Models/AllAllowedScopes.php new file mode 100644 index 00000000000..033f1a33fc5 --- /dev/null +++ b/src/Generated/Models/AllAllowedScopes.php @@ -0,0 +1,46 @@ +setOdataType('#microsoft.graph.allAllowedScopes'); + } + + /** + * Creates a new instance of the appropriate class based on discriminator value + * @param ParseNode $parseNode The parse node to use to read the discriminator value and create the object + * @return AllAllowedScopes + */ + public static function createFromDiscriminatorValue(ParseNode $parseNode): AllAllowedScopes { + return new AllAllowedScopes(); + } + + /** + * The deserialization information for the current model + * @return array + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + ]); + } + + /** + * Serializes information the current object + * @param SerializationWriter $writer Serialization writer to use to serialize this model + */ + public function serialize(SerializationWriter $writer): void { + parent::serialize($writer); + } + +} diff --git a/src/Generated/Models/Application.php b/src/Generated/Models/Application.php index 3bf2895de7a..59c2bfe6912 100644 --- a/src/Generated/Models/Application.php +++ b/src/Generated/Models/Application.php @@ -25,6 +25,13 @@ public function __construct() { * @return Application */ public static function createFromDiscriminatorValue(ParseNode $parseNode): Application { + $mappingValueNode = $parseNode->getChildNode("@odata.type"); + if ($mappingValueNode !== null) { + $mappingValue = $mappingValueNode->getStringValue(); + switch ($mappingValue) { + case '#microsoft.graph.agentIdentityBlueprint': return new AgentIdentityBlueprint(); + } + } return new Application(); } diff --git a/src/Generated/Models/AttestationEnforcement.php b/src/Generated/Models/AttestationEnforcement.php new file mode 100644 index 00000000000..15af3b04c8a --- /dev/null +++ b/src/Generated/Models/AttestationEnforcement.php @@ -0,0 +1,11 @@ +|null */ public function getExternalAuthenticationMethods(): ?array { @@ -244,7 +244,7 @@ public function setEmailMethods(?array $value): void { } /** - * Sets the externalAuthenticationMethods property value. Represents the external authentication methods registered to a user for authentication using an external identity provider. + * Sets the externalAuthenticationMethods property value. Represents the external MFA registered to a user for authentication using an external identity provider. * @param array|null $value Value to set for the externalAuthenticationMethods property. */ public function setExternalAuthenticationMethods(?array $value): void { diff --git a/src/Generated/Models/AuthenticationEventListener.php b/src/Generated/Models/AuthenticationEventListener.php index d937bbddfa9..49c30c7dc3a 100644 --- a/src/Generated/Models/AuthenticationEventListener.php +++ b/src/Generated/Models/AuthenticationEventListener.php @@ -32,6 +32,7 @@ public static function createFromDiscriminatorValue(ParseNode $parseNode): Authe case '#microsoft.graph.onEmailOtpSendListener': return new OnEmailOtpSendListener(); case '#microsoft.graph.onFraudProtectionLoadStartListener': return new OnFraudProtectionLoadStartListener(); case '#microsoft.graph.onInteractiveAuthFlowStartListener': return new OnInteractiveAuthFlowStartListener(); + case '#microsoft.graph.onPasswordSubmitListener': return new OnPasswordSubmitListener(); case '#microsoft.graph.onTokenIssuanceStartListener': return new OnTokenIssuanceStartListener(); case '#microsoft.graph.onUserCreateStartListener': return new OnUserCreateStartListener(); } diff --git a/src/Generated/Models/AuthenticationMethod.php b/src/Generated/Models/AuthenticationMethod.php index c5bd4f0bdb4..a57d830e6b8 100644 --- a/src/Generated/Models/AuthenticationMethod.php +++ b/src/Generated/Models/AuthenticationMethod.php @@ -33,6 +33,7 @@ public static function createFromDiscriminatorValue(ParseNode $parseNode): Authe case '#microsoft.graph.passwordAuthenticationMethod': return new PasswordAuthenticationMethod(); case '#microsoft.graph.phoneAuthenticationMethod': return new PhoneAuthenticationMethod(); case '#microsoft.graph.platformCredentialAuthenticationMethod': return new PlatformCredentialAuthenticationMethod(); + case '#microsoft.graph.qrCodePinAuthenticationMethod': return new QrCodePinAuthenticationMethod(); case '#microsoft.graph.softwareOathAuthenticationMethod': return new SoftwareOathAuthenticationMethod(); case '#microsoft.graph.temporaryAccessPassAuthenticationMethod': return new TemporaryAccessPassAuthenticationMethod(); case '#microsoft.graph.windowsHelloForBusinessAuthenticationMethod': return new WindowsHelloForBusinessAuthenticationMethod(); diff --git a/src/Generated/Models/AuthenticationMethodConfiguration.php b/src/Generated/Models/AuthenticationMethodConfiguration.php index 18e5cde97f4..9292c9bcf6b 100644 --- a/src/Generated/Models/AuthenticationMethodConfiguration.php +++ b/src/Generated/Models/AuthenticationMethodConfiguration.php @@ -30,6 +30,7 @@ public static function createFromDiscriminatorValue(ParseNode $parseNode): Authe case '#microsoft.graph.externalAuthenticationMethodConfiguration': return new ExternalAuthenticationMethodConfiguration(); case '#microsoft.graph.fido2AuthenticationMethodConfiguration': return new Fido2AuthenticationMethodConfiguration(); case '#microsoft.graph.microsoftAuthenticatorAuthenticationMethodConfiguration': return new MicrosoftAuthenticatorAuthenticationMethodConfiguration(); + case '#microsoft.graph.qrCodePinAuthenticationMethodConfiguration': return new QrCodePinAuthenticationMethodConfiguration(); case '#microsoft.graph.smsAuthenticationMethodConfiguration': return new SmsAuthenticationMethodConfiguration(); case '#microsoft.graph.softwareOathAuthenticationMethodConfiguration': return new SoftwareOathAuthenticationMethodConfiguration(); case '#microsoft.graph.temporaryAccessPassAuthenticationMethodConfiguration': return new TemporaryAccessPassAuthenticationMethodConfiguration(); diff --git a/src/Generated/Models/AuthenticationMethodModes.php b/src/Generated/Models/AuthenticationMethodModes.php index 66684b06182..185217f9875 100644 --- a/src/Generated/Models/AuthenticationMethodModes.php +++ b/src/Generated/Models/AuthenticationMethodModes.php @@ -22,4 +22,5 @@ class AuthenticationMethodModes extends Enum { public const FEDERATED_SINGLE_FACTOR = "federatedSingleFactor"; public const FEDERATED_MULTI_FACTOR = "federatedMultiFactor"; public const UNKNOWN_FUTURE_VALUE = "unknownFutureValue"; + public const QR_CODE_PIN = "qrCodePin"; } diff --git a/src/Generated/Models/AuthenticationMethodTarget.php b/src/Generated/Models/AuthenticationMethodTarget.php index 13fade1e8b2..b57f4321b99 100644 --- a/src/Generated/Models/AuthenticationMethodTarget.php +++ b/src/Generated/Models/AuthenticationMethodTarget.php @@ -26,6 +26,7 @@ public static function createFromDiscriminatorValue(ParseNode $parseNode): Authe $mappingValue = $mappingValueNode->getStringValue(); switch ($mappingValue) { case '#microsoft.graph.microsoftAuthenticatorAuthenticationMethodTarget': return new MicrosoftAuthenticatorAuthenticationMethodTarget(); + case '#microsoft.graph.passkeyAuthenticationMethodTarget': return new PasskeyAuthenticationMethodTarget(); case '#microsoft.graph.smsAuthenticationMethodTarget': return new SmsAuthenticationMethodTarget(); } } diff --git a/src/Generated/Models/BaseAuthenticationMethod.php b/src/Generated/Models/BaseAuthenticationMethod.php index 03d41e915f3..a1a01e67abb 100644 --- a/src/Generated/Models/BaseAuthenticationMethod.php +++ b/src/Generated/Models/BaseAuthenticationMethod.php @@ -18,4 +18,5 @@ class BaseAuthenticationMethod extends Enum { public const X509_CERTIFICATE = "x509Certificate"; public const FEDERATION = "federation"; public const UNKNOWN_FUTURE_VALUE = "unknownFutureValue"; + public const QR_CODE_PIN = "qrCodePin"; } diff --git a/src/Generated/Models/BaselineParameter.php b/src/Generated/Models/BaselineParameter.php new file mode 100644 index 00000000000..d16fc6ef2d5 --- /dev/null +++ b/src/Generated/Models/BaselineParameter.php @@ -0,0 +1,180 @@ +backingStore = BackingStoreFactorySingleton::getInstance()->createBackingStore(); + $this->setAdditionalData([]); + } + + /** + * Creates a new instance of the appropriate class based on discriminator value + * @param ParseNode $parseNode The parse node to use to read the discriminator value and create the object + * @return BaselineParameter + */ + public static function createFromDiscriminatorValue(ParseNode $parseNode): BaselineParameter { + return new BaselineParameter(); + } + + /** + * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @return array|null + */ + public function getAdditionalData(): ?array { + $val = $this->getBackingStore()->get('additionalData'); + if (is_null($val) || is_array($val)) { + /** @var array|null $val */ + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'additionalData'"); + } + + /** + * Gets the BackingStore property value. Stores model information. + * @return BackingStore + */ + public function getBackingStore(): BackingStore { + return $this->backingStore; + } + + /** + * Gets the description property value. User-friendly description of the parameter. + * @return string|null + */ + public function getDescription(): ?string { + $val = $this->getBackingStore()->get('description'); + if (is_null($val) || is_string($val)) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'description'"); + } + + /** + * Gets the displayName property value. Parameter names such as FQDN and Tenant ID. + * @return string|null + */ + public function getDisplayName(): ?string { + $val = $this->getBackingStore()->get('displayName'); + if (is_null($val) || is_string($val)) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'displayName'"); + } + + /** + * The deserialization information for the current model + * @return array + */ + public function getFieldDeserializers(): array { + $o = $this; + return [ + 'description' => fn(ParseNode $n) => $o->setDescription($n->getStringValue()), + 'displayName' => fn(ParseNode $n) => $o->setDisplayName($n->getStringValue()), + '@odata.type' => fn(ParseNode $n) => $o->setOdataType($n->getStringValue()), + 'parameterType' => fn(ParseNode $n) => $o->setParameterType($n->getEnumValue(BaselineParameterType::class)), + ]; + } + + /** + * Gets the @odata.type property value. The OdataType property + * @return string|null + */ + public function getOdataType(): ?string { + $val = $this->getBackingStore()->get('odataType'); + if (is_null($val) || is_string($val)) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'odataType'"); + } + + /** + * Gets the parameterType property value. The parameterType property + * @return BaselineParameterType|null + */ + public function getParameterType(): ?BaselineParameterType { + $val = $this->getBackingStore()->get('parameterType'); + if (is_null($val) || $val instanceof BaselineParameterType) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'parameterType'"); + } + + /** + * Serializes information the current object + * @param SerializationWriter $writer Serialization writer to use to serialize this model + */ + public function serialize(SerializationWriter $writer): void { + $writer->writeStringValue('description', $this->getDescription()); + $writer->writeStringValue('displayName', $this->getDisplayName()); + $writer->writeStringValue('@odata.type', $this->getOdataType()); + $writer->writeEnumValue('parameterType', $this->getParameterType()); + $writer->writeAdditionalData($this->getAdditionalData()); + } + + /** + * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @param array $value Value to set for the AdditionalData property. + */ + public function setAdditionalData(?array $value): void { + $this->getBackingStore()->set('additionalData', $value); + } + + /** + * Sets the BackingStore property value. Stores model information. + * @param BackingStore $value Value to set for the BackingStore property. + */ + public function setBackingStore(BackingStore $value): void { + $this->backingStore = $value; + } + + /** + * Sets the description property value. User-friendly description of the parameter. + * @param string|null $value Value to set for the description property. + */ + public function setDescription(?string $value): void { + $this->getBackingStore()->set('description', $value); + } + + /** + * Sets the displayName property value. Parameter names such as FQDN and Tenant ID. + * @param string|null $value Value to set for the displayName property. + */ + public function setDisplayName(?string $value): void { + $this->getBackingStore()->set('displayName', $value); + } + + /** + * Sets the @odata.type property value. The OdataType property + * @param string|null $value Value to set for the @odata.type property. + */ + public function setOdataType(?string $value): void { + $this->getBackingStore()->set('odataType', $value); + } + + /** + * Sets the parameterType property value. The parameterType property + * @param BaselineParameterType|null $value Value to set for the parameterType property. + */ + public function setParameterType(?BaselineParameterType $value): void { + $this->getBackingStore()->set('parameterType', $value); + } + +} diff --git a/src/Generated/Models/BaselineParameterType.php b/src/Generated/Models/BaselineParameterType.php new file mode 100644 index 00000000000..57bf964fd69 --- /dev/null +++ b/src/Generated/Models/BaselineParameterType.php @@ -0,0 +1,12 @@ +backingStore = BackingStoreFactorySingleton::getInstance()->createBackingStore(); + $this->setAdditionalData([]); + } + + /** + * Creates a new instance of the appropriate class based on discriminator value + * @param ParseNode $parseNode The parse node to use to read the discriminator value and create the object + * @return BaselineResource + */ + public static function createFromDiscriminatorValue(ParseNode $parseNode): BaselineResource { + return new BaselineResource(); + } + + /** + * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @return array|null + */ + public function getAdditionalData(): ?array { + $val = $this->getBackingStore()->get('additionalData'); + if (is_null($val) || is_array($val)) { + /** @var array|null $val */ + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'additionalData'"); + } + + /** + * Gets the BackingStore property value. Stores model information. + * @return BackingStore + */ + public function getBackingStore(): BackingStore { + return $this->backingStore; + } + + /** + * Gets the displayName property value. Unique name of the resource. + * @return string|null + */ + public function getDisplayName(): ?string { + $val = $this->getBackingStore()->get('displayName'); + if (is_null($val) || is_string($val)) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'displayName'"); + } + + /** + * The deserialization information for the current model + * @return array + */ + public function getFieldDeserializers(): array { + $o = $this; + return [ + 'displayName' => fn(ParseNode $n) => $o->setDisplayName($n->getStringValue()), + '@odata.type' => fn(ParseNode $n) => $o->setOdataType($n->getStringValue()), + 'properties' => fn(ParseNode $n) => $o->setProperties($n->getObjectValue([OpenComplexDictionaryType::class, 'createFromDiscriminatorValue'])), + 'resourceType' => fn(ParseNode $n) => $o->setResourceType($n->getStringValue()), + ]; + } + + /** + * Gets the @odata.type property value. The OdataType property + * @return string|null + */ + public function getOdataType(): ?string { + $val = $this->getBackingStore()->get('odataType'); + if (is_null($val) || is_string($val)) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'odataType'"); + } + + /** + * Gets the properties property value. The properties property + * @return OpenComplexDictionaryType|null + */ + public function getProperties(): ?OpenComplexDictionaryType { + $val = $this->getBackingStore()->get('properties'); + if (is_null($val) || $val instanceof OpenComplexDictionaryType) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'properties'"); + } + + /** + * Gets the resourceType property value. Name of the resource type. + * @return string|null + */ + public function getResourceType(): ?string { + $val = $this->getBackingStore()->get('resourceType'); + if (is_null($val) || is_string($val)) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'resourceType'"); + } + + /** + * Serializes information the current object + * @param SerializationWriter $writer Serialization writer to use to serialize this model + */ + public function serialize(SerializationWriter $writer): void { + $writer->writeStringValue('displayName', $this->getDisplayName()); + $writer->writeStringValue('@odata.type', $this->getOdataType()); + $writer->writeObjectValue('properties', $this->getProperties()); + $writer->writeStringValue('resourceType', $this->getResourceType()); + $writer->writeAdditionalData($this->getAdditionalData()); + } + + /** + * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @param array $value Value to set for the AdditionalData property. + */ + public function setAdditionalData(?array $value): void { + $this->getBackingStore()->set('additionalData', $value); + } + + /** + * Sets the BackingStore property value. Stores model information. + * @param BackingStore $value Value to set for the BackingStore property. + */ + public function setBackingStore(BackingStore $value): void { + $this->backingStore = $value; + } + + /** + * Sets the displayName property value. Unique name of the resource. + * @param string|null $value Value to set for the displayName property. + */ + public function setDisplayName(?string $value): void { + $this->getBackingStore()->set('displayName', $value); + } + + /** + * Sets the @odata.type property value. The OdataType property + * @param string|null $value Value to set for the @odata.type property. + */ + public function setOdataType(?string $value): void { + $this->getBackingStore()->set('odataType', $value); + } + + /** + * Sets the properties property value. The properties property + * @param OpenComplexDictionaryType|null $value Value to set for the properties property. + */ + public function setProperties(?OpenComplexDictionaryType $value): void { + $this->getBackingStore()->set('properties', $value); + } + + /** + * Sets the resourceType property value. Name of the resource type. + * @param string|null $value Value to set for the resourceType property. + */ + public function setResourceType(?string $value): void { + $this->getBackingStore()->set('resourceType', $value); + } + +} diff --git a/src/Generated/Models/Channel.php b/src/Generated/Models/Channel.php index a6a8c62c435..35ab6e93c49 100644 --- a/src/Generated/Models/Channel.php +++ b/src/Generated/Models/Channel.php @@ -88,6 +88,20 @@ public function getEmail(): ?string { throw new \UnexpectedValueException("Invalid type found in backing store for 'email'"); } + /** + * Gets the enabledApps property value. The enabledApps property + * @return array|null + */ + public function getEnabledApps(): ?array { + $val = $this->getBackingStore()->get('enabledApps'); + if (is_array($val) || is_null($val)) { + TypeUtils::validateCollectionValues($val, TeamsApp::class); + /** @var array|null $val */ + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'enabledApps'"); + } + /** * The deserialization information for the current model * @return array @@ -100,6 +114,7 @@ public function getFieldDeserializers(): array { 'description' => fn(ParseNode $n) => $o->setDescription($n->getStringValue()), 'displayName' => fn(ParseNode $n) => $o->setDisplayName($n->getStringValue()), 'email' => fn(ParseNode $n) => $o->setEmail($n->getStringValue()), + 'enabledApps' => fn(ParseNode $n) => $o->setEnabledApps($n->getCollectionOfObjectValues([TeamsApp::class, 'createFromDiscriminatorValue'])), 'filesFolder' => fn(ParseNode $n) => $o->setFilesFolder($n->getObjectValue([DriveItem::class, 'createFromDiscriminatorValue'])), 'isArchived' => fn(ParseNode $n) => $o->setIsArchived($n->getBooleanValue()), 'isFavoriteByDefault' => fn(ParseNode $n) => $o->setIsFavoriteByDefault($n->getBooleanValue()), @@ -265,6 +280,7 @@ public function serialize(SerializationWriter $writer): void { $writer->writeStringValue('description', $this->getDescription()); $writer->writeStringValue('displayName', $this->getDisplayName()); $writer->writeStringValue('email', $this->getEmail()); + $writer->writeCollectionOfObjectValues('enabledApps', $this->getEnabledApps()); $writer->writeObjectValue('filesFolder', $this->getFilesFolder()); $writer->writeBooleanValue('isArchived', $this->getIsArchived()); $writer->writeBooleanValue('isFavoriteByDefault', $this->getIsFavoriteByDefault()); @@ -318,6 +334,14 @@ public function setEmail(?string $value): void { $this->getBackingStore()->set('email', $value); } + /** + * Sets the enabledApps property value. The enabledApps property + * @param array|null $value Value to set for the enabledApps property. + */ + public function setEnabledApps(?array $value): void { + $this->getBackingStore()->set('enabledApps', $value); + } + /** * Sets the filesFolder property value. Metadata for the location where the channel's files are stored. * @param DriveItem|null $value Value to set for the filesFolder property. diff --git a/src/Generated/Models/CloudPcDeviceImage.php b/src/Generated/Models/CloudPcDeviceImage.php index 9a813c06d66..21f67ab4450 100644 --- a/src/Generated/Models/CloudPcDeviceImage.php +++ b/src/Generated/Models/CloudPcDeviceImage.php @@ -76,6 +76,8 @@ public function getFieldDeserializers(): array { 'operatingSystem' => fn(ParseNode $n) => $o->setOperatingSystem($n->getStringValue()), 'osBuildNumber' => fn(ParseNode $n) => $o->setOsBuildNumber($n->getStringValue()), 'osStatus' => fn(ParseNode $n) => $o->setOsStatus($n->getEnumValue(CloudPcDeviceImageOsStatus::class)), + 'osVersionNumber' => fn(ParseNode $n) => $o->setOsVersionNumber($n->getStringValue()), + 'sizeInGB' => fn(ParseNode $n) => $o->setSizeInGB($n->getIntegerValue()), 'sourceImageResourceId' => fn(ParseNode $n) => $o->setSourceImageResourceId($n->getStringValue()), 'status' => fn(ParseNode $n) => $o->setStatus($n->getEnumValue(CloudPcDeviceImageStatus::class)), 'version' => fn(ParseNode $n) => $o->setVersion($n->getStringValue()), @@ -130,6 +132,30 @@ public function getOsStatus(): ?CloudPcDeviceImageOsStatus { throw new \UnexpectedValueException("Invalid type found in backing store for 'osStatus'"); } + /** + * Gets the osVersionNumber property value. The operating system version of this image. For example, 10.0.22000.296. Read-only. + * @return string|null + */ + public function getOsVersionNumber(): ?string { + $val = $this->getBackingStore()->get('osVersionNumber'); + if (is_null($val) || is_string($val)) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'osVersionNumber'"); + } + + /** + * Gets the sizeInGB property value. The size of the image in GB. For example, 64. Read-only. + * @return int|null + */ + public function getSizeInGB(): ?int { + $val = $this->getBackingStore()->get('sizeInGB'); + if (is_null($val) || is_int($val)) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'sizeInGB'"); + } + /** * Gets the sourceImageResourceId property value. The unique identifier (ID) of the source image resource on Azure. The required ID format is: '/subscriptions/{subscription-id}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/images/{imageName}'. Read-only. * @return string|null @@ -179,6 +205,8 @@ public function serialize(SerializationWriter $writer): void { $writer->writeStringValue('operatingSystem', $this->getOperatingSystem()); $writer->writeStringValue('osBuildNumber', $this->getOsBuildNumber()); $writer->writeEnumValue('osStatus', $this->getOsStatus()); + $writer->writeStringValue('osVersionNumber', $this->getOsVersionNumber()); + $writer->writeIntegerValue('sizeInGB', $this->getSizeInGB()); $writer->writeStringValue('sourceImageResourceId', $this->getSourceImageResourceId()); $writer->writeEnumValue('status', $this->getStatus()); $writer->writeStringValue('version', $this->getVersion()); @@ -240,6 +268,22 @@ public function setOsStatus(?CloudPcDeviceImageOsStatus $value): void { $this->getBackingStore()->set('osStatus', $value); } + /** + * Sets the osVersionNumber property value. The operating system version of this image. For example, 10.0.22000.296. Read-only. + * @param string|null $value Value to set for the osVersionNumber property. + */ + public function setOsVersionNumber(?string $value): void { + $this->getBackingStore()->set('osVersionNumber', $value); + } + + /** + * Sets the sizeInGB property value. The size of the image in GB. For example, 64. Read-only. + * @param int|null $value Value to set for the sizeInGB property. + */ + public function setSizeInGB(?int $value): void { + $this->getBackingStore()->set('sizeInGB', $value); + } + /** * Sets the sourceImageResourceId property value. The unique identifier (ID) of the source image resource on Azure. The required ID format is: '/subscriptions/{subscription-id}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/images/{imageName}'. Read-only. * @param string|null $value Value to set for the sourceImageResourceId property. diff --git a/src/Generated/Models/CloudPcGalleryImage.php b/src/Generated/Models/CloudPcGalleryImage.php index 5b5a5f94d34..b97a297ad51 100644 --- a/src/Generated/Models/CloudPcGalleryImage.php +++ b/src/Generated/Models/CloudPcGalleryImage.php @@ -72,6 +72,7 @@ public function getFieldDeserializers(): array { 'endDate' => fn(ParseNode $n) => $o->setEndDate($n->getDateValue()), 'expirationDate' => fn(ParseNode $n) => $o->setExpirationDate($n->getDateValue()), 'offerName' => fn(ParseNode $n) => $o->setOfferName($n->getStringValue()), + 'osVersionNumber' => fn(ParseNode $n) => $o->setOsVersionNumber($n->getStringValue()), 'publisherName' => fn(ParseNode $n) => $o->setPublisherName($n->getStringValue()), 'sizeInGB' => fn(ParseNode $n) => $o->setSizeInGB($n->getIntegerValue()), 'skuName' => fn(ParseNode $n) => $o->setSkuName($n->getStringValue()), @@ -92,6 +93,18 @@ public function getOfferName(): ?string { throw new \UnexpectedValueException("Invalid type found in backing store for 'offerName'"); } + /** + * Gets the osVersionNumber property value. The operating system version of this gallery image. For example, 10.0.22000.296. Read-only. + * @return string|null + */ + public function getOsVersionNumber(): ?string { + $val = $this->getBackingStore()->get('osVersionNumber'); + if (is_null($val) || is_string($val)) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'osVersionNumber'"); + } + /** * Gets the publisherName property value. The publisher name of this gallery image that is passed to Azure Resource Manager (ARM) to retrieve the image resource. Read-only. * @return string|null @@ -162,6 +175,7 @@ public function serialize(SerializationWriter $writer): void { $writer->writeDateValue('endDate', $this->getEndDate()); $writer->writeDateValue('expirationDate', $this->getExpirationDate()); $writer->writeStringValue('offerName', $this->getOfferName()); + $writer->writeStringValue('osVersionNumber', $this->getOsVersionNumber()); $writer->writeStringValue('publisherName', $this->getPublisherName()); $writer->writeIntegerValue('sizeInGB', $this->getSizeInGB()); $writer->writeStringValue('skuName', $this->getSkuName()); @@ -201,6 +215,14 @@ public function setOfferName(?string $value): void { $this->getBackingStore()->set('offerName', $value); } + /** + * Sets the osVersionNumber property value. The operating system version of this gallery image. For example, 10.0.22000.296. Read-only. + * @param string|null $value Value to set for the osVersionNumber property. + */ + public function setOsVersionNumber(?string $value): void { + $this->getBackingStore()->set('osVersionNumber', $value); + } + /** * Sets the publisherName property value. The publisher name of this gallery image that is passed to Azure Resource Manager (ARM) to retrieve the image resource. Read-only. * @param string|null $value Value to set for the publisherName property. diff --git a/src/Generated/Models/ConfigurationBaseline.php b/src/Generated/Models/ConfigurationBaseline.php new file mode 100644 index 00000000000..0a28a8a825a --- /dev/null +++ b/src/Generated/Models/ConfigurationBaseline.php @@ -0,0 +1,138 @@ +getBackingStore()->get('description'); + if (is_null($val) || is_string($val)) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'description'"); + } + + /** + * Gets the displayName property value. User-friendly name given by the user to the baseline. + * @return string|null + */ + public function getDisplayName(): ?string { + $val = $this->getBackingStore()->get('displayName'); + if (is_null($val) || is_string($val)) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'displayName'"); + } + + /** + * The deserialization information for the current model + * @return array + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'description' => fn(ParseNode $n) => $o->setDescription($n->getStringValue()), + 'displayName' => fn(ParseNode $n) => $o->setDisplayName($n->getStringValue()), + 'parameters' => fn(ParseNode $n) => $o->setParameters($n->getCollectionOfObjectValues([BaselineParameter::class, 'createFromDiscriminatorValue'])), + 'resources' => fn(ParseNode $n) => $o->setResources($n->getCollectionOfObjectValues([BaselineResource::class, 'createFromDiscriminatorValue'])), + ]); + } + + /** + * Gets the parameters property value. Collection of parameters attached to the baseline. + * @return array|null + */ + public function getParameters(): ?array { + $val = $this->getBackingStore()->get('parameters'); + if (is_array($val) || is_null($val)) { + TypeUtils::validateCollectionValues($val, BaselineParameter::class); + /** @var array|null $val */ + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'parameters'"); + } + + /** + * Gets the resources property value. Collection of resources and their properties that are added to the baseline. At least one property of one resource must be present in the baseline. + * @return array|null + */ + public function getResources(): ?array { + $val = $this->getBackingStore()->get('resources'); + if (is_array($val) || is_null($val)) { + TypeUtils::validateCollectionValues($val, BaselineResource::class); + /** @var array|null $val */ + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'resources'"); + } + + /** + * Serializes information the current object + * @param SerializationWriter $writer Serialization writer to use to serialize this model + */ + public function serialize(SerializationWriter $writer): void { + parent::serialize($writer); + $writer->writeStringValue('description', $this->getDescription()); + $writer->writeStringValue('displayName', $this->getDisplayName()); + $writer->writeCollectionOfObjectValues('parameters', $this->getParameters()); + $writer->writeCollectionOfObjectValues('resources', $this->getResources()); + } + + /** + * Sets the description property value. User-friendly description of the baseline given by the user. + * @param string|null $value Value to set for the description property. + */ + public function setDescription(?string $value): void { + $this->getBackingStore()->set('description', $value); + } + + /** + * Sets the displayName property value. User-friendly name given by the user to the baseline. + * @param string|null $value Value to set for the displayName property. + */ + public function setDisplayName(?string $value): void { + $this->getBackingStore()->set('displayName', $value); + } + + /** + * Sets the parameters property value. Collection of parameters attached to the baseline. + * @param array|null $value Value to set for the parameters property. + */ + public function setParameters(?array $value): void { + $this->getBackingStore()->set('parameters', $value); + } + + /** + * Sets the resources property value. Collection of resources and their properties that are added to the baseline. At least one property of one resource must be present in the baseline. + * @param array|null $value Value to set for the resources property. + */ + public function setResources(?array $value): void { + $this->getBackingStore()->set('resources', $value); + } + +} diff --git a/src/Generated/Models/ConfigurationBaselineCollectionResponse.php b/src/Generated/Models/ConfigurationBaselineCollectionResponse.php new file mode 100644 index 00000000000..9fbcd048544 --- /dev/null +++ b/src/Generated/Models/ConfigurationBaselineCollectionResponse.php @@ -0,0 +1,70 @@ + + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([ConfigurationBaseline::class, 'createFromDiscriminatorValue'])), + ]); + } + + /** + * Gets the value property value. The value property + * @return array|null + */ + public function getValue(): ?array { + $val = $this->getBackingStore()->get('value'); + if (is_array($val) || is_null($val)) { + TypeUtils::validateCollectionValues($val, ConfigurationBaseline::class); + /** @var array|null $val */ + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'value'"); + } + + /** + * Serializes information the current object + * @param SerializationWriter $writer Serialization writer to use to serialize this model + */ + public function serialize(SerializationWriter $writer): void { + parent::serialize($writer); + $writer->writeCollectionOfObjectValues('value', $this->getValue()); + } + + /** + * Sets the value property value. The value property + * @param array|null $value Value to set for the value property. + */ + public function setValue(?array $value): void { + $this->getBackingStore()->set('value', $value); + } + +} diff --git a/src/Generated/Models/ConfigurationDrift.php b/src/Generated/Models/ConfigurationDrift.php new file mode 100644 index 00000000000..b52f7f2b669 --- /dev/null +++ b/src/Generated/Models/ConfigurationDrift.php @@ -0,0 +1,219 @@ +getBackingStore()->get('baselineResourceDisplayName'); + if (is_null($val) || is_string($val)) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'baselineResourceDisplayName'"); + } + + /** + * Gets the driftedProperties property value. Properties within one or more resource instances in which drift is detected. Returned only on $select. + * @return array|null + */ + public function getDriftedProperties(): ?array { + $val = $this->getBackingStore()->get('driftedProperties'); + if (is_array($val) || is_null($val)) { + TypeUtils::validateCollectionValues($val, DriftedProperty::class); + /** @var array|null $val */ + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'driftedProperties'"); + } + + /** + * The deserialization information for the current model + * @return array + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'baselineResourceDisplayName' => fn(ParseNode $n) => $o->setBaselineResourceDisplayName($n->getStringValue()), + 'driftedProperties' => fn(ParseNode $n) => $o->setDriftedProperties($n->getCollectionOfObjectValues([DriftedProperty::class, 'createFromDiscriminatorValue'])), + 'firstReportedDateTime' => fn(ParseNode $n) => $o->setFirstReportedDateTime($n->getDateTimeValue()), + 'monitorId' => fn(ParseNode $n) => $o->setMonitorId($n->getStringValue()), + 'resourceInstanceIdentifier' => fn(ParseNode $n) => $o->setResourceInstanceIdentifier($n->getObjectValue([OpenComplexDictionaryType::class, 'createFromDiscriminatorValue'])), + 'resourceType' => fn(ParseNode $n) => $o->setResourceType($n->getStringValue()), + 'status' => fn(ParseNode $n) => $o->setStatus($n->getEnumValue(DriftStatus::class)), + 'tenantId' => fn(ParseNode $n) => $o->setTenantId($n->getStringValue()), + ]); + } + + /** + * Gets the firstReportedDateTime property value. The date and time at which drift is first detected. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Supports $filter (eq, ne, ge, le) and $orderby. + * @return DateTime|null + */ + public function getFirstReportedDateTime(): ?DateTime { + $val = $this->getBackingStore()->get('firstReportedDateTime'); + if (is_null($val) || $val instanceof DateTime) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'firstReportedDateTime'"); + } + + /** + * Gets the monitorId property value. Globally unique identifier (GUID) of the monitor. System-generated. Supports $filter (eq, ne). + * @return string|null + */ + public function getMonitorId(): ?string { + $val = $this->getBackingStore()->get('monitorId'); + if (is_null($val) || is_string($val)) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'monitorId'"); + } + + /** + * Gets the resourceInstanceIdentifier property value. The resourceInstanceIdentifier property + * @return OpenComplexDictionaryType|null + */ + public function getResourceInstanceIdentifier(): ?OpenComplexDictionaryType { + $val = $this->getBackingStore()->get('resourceInstanceIdentifier'); + if (is_null($val) || $val instanceof OpenComplexDictionaryType) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'resourceInstanceIdentifier'"); + } + + /** + * Gets the resourceType property value. Resource for which the drift is detected. Supports $filter (eq, ne, startsWith). + * @return string|null + */ + public function getResourceType(): ?string { + $val = $this->getBackingStore()->get('resourceType'); + if (is_null($val) || is_string($val)) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'resourceType'"); + } + + /** + * Gets the status property value. The status property + * @return DriftStatus|null + */ + public function getStatus(): ?DriftStatus { + $val = $this->getBackingStore()->get('status'); + if (is_null($val) || $val instanceof DriftStatus) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'status'"); + } + + /** + * Gets the tenantId property value. Globally unique identifier (GUID) of the tenant for which the monitor runs. Fetched automatically by the system. Supports $filter (eq, ne). + * @return string|null + */ + public function getTenantId(): ?string { + $val = $this->getBackingStore()->get('tenantId'); + if (is_null($val) || is_string($val)) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'tenantId'"); + } + + /** + * Serializes information the current object + * @param SerializationWriter $writer Serialization writer to use to serialize this model + */ + public function serialize(SerializationWriter $writer): void { + parent::serialize($writer); + $writer->writeObjectValue('resourceInstanceIdentifier', $this->getResourceInstanceIdentifier()); + $writer->writeEnumValue('status', $this->getStatus()); + } + + /** + * Sets the baselineResourceDisplayName property value. Resource instance for which the drift is detected. Supports $filter (eq, ne, startsWith) and $orderby. + * @param string|null $value Value to set for the baselineResourceDisplayName property. + */ + public function setBaselineResourceDisplayName(?string $value): void { + $this->getBackingStore()->set('baselineResourceDisplayName', $value); + } + + /** + * Sets the driftedProperties property value. Properties within one or more resource instances in which drift is detected. Returned only on $select. + * @param array|null $value Value to set for the driftedProperties property. + */ + public function setDriftedProperties(?array $value): void { + $this->getBackingStore()->set('driftedProperties', $value); + } + + /** + * Sets the firstReportedDateTime property value. The date and time at which drift is first detected. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Supports $filter (eq, ne, ge, le) and $orderby. + * @param DateTime|null $value Value to set for the firstReportedDateTime property. + */ + public function setFirstReportedDateTime(?DateTime $value): void { + $this->getBackingStore()->set('firstReportedDateTime', $value); + } + + /** + * Sets the monitorId property value. Globally unique identifier (GUID) of the monitor. System-generated. Supports $filter (eq, ne). + * @param string|null $value Value to set for the monitorId property. + */ + public function setMonitorId(?string $value): void { + $this->getBackingStore()->set('monitorId', $value); + } + + /** + * Sets the resourceInstanceIdentifier property value. The resourceInstanceIdentifier property + * @param OpenComplexDictionaryType|null $value Value to set for the resourceInstanceIdentifier property. + */ + public function setResourceInstanceIdentifier(?OpenComplexDictionaryType $value): void { + $this->getBackingStore()->set('resourceInstanceIdentifier', $value); + } + + /** + * Sets the resourceType property value. Resource for which the drift is detected. Supports $filter (eq, ne, startsWith). + * @param string|null $value Value to set for the resourceType property. + */ + public function setResourceType(?string $value): void { + $this->getBackingStore()->set('resourceType', $value); + } + + /** + * Sets the status property value. The status property + * @param DriftStatus|null $value Value to set for the status property. + */ + public function setStatus(?DriftStatus $value): void { + $this->getBackingStore()->set('status', $value); + } + + /** + * Sets the tenantId property value. Globally unique identifier (GUID) of the tenant for which the monitor runs. Fetched automatically by the system. Supports $filter (eq, ne). + * @param string|null $value Value to set for the tenantId property. + */ + public function setTenantId(?string $value): void { + $this->getBackingStore()->set('tenantId', $value); + } + +} diff --git a/src/Generated/Models/ConfigurationDriftCollectionResponse.php b/src/Generated/Models/ConfigurationDriftCollectionResponse.php new file mode 100644 index 00000000000..1473176d8c8 --- /dev/null +++ b/src/Generated/Models/ConfigurationDriftCollectionResponse.php @@ -0,0 +1,70 @@ + + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([ConfigurationDrift::class, 'createFromDiscriminatorValue'])), + ]); + } + + /** + * Gets the value property value. The value property + * @return array|null + */ + public function getValue(): ?array { + $val = $this->getBackingStore()->get('value'); + if (is_array($val) || is_null($val)) { + TypeUtils::validateCollectionValues($val, ConfigurationDrift::class); + /** @var array|null $val */ + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'value'"); + } + + /** + * Serializes information the current object + * @param SerializationWriter $writer Serialization writer to use to serialize this model + */ + public function serialize(SerializationWriter $writer): void { + parent::serialize($writer); + $writer->writeCollectionOfObjectValues('value', $this->getValue()); + } + + /** + * Sets the value property value. The value property + * @param array|null $value Value to set for the value property. + */ + public function setValue(?array $value): void { + $this->getBackingStore()->set('value', $value); + } + +} diff --git a/src/Generated/Models/ConfigurationManagement.php b/src/Generated/Models/ConfigurationManagement.php new file mode 100644 index 00000000000..4535fb69e51 --- /dev/null +++ b/src/Generated/Models/ConfigurationManagement.php @@ -0,0 +1,166 @@ +|null + */ + public function getConfigurationDrifts(): ?array { + $val = $this->getBackingStore()->get('configurationDrifts'); + if (is_array($val) || is_null($val)) { + TypeUtils::validateCollectionValues($val, ConfigurationDrift::class); + /** @var array|null $val */ + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'configurationDrifts'"); + } + + /** + * Gets the configurationMonitoringResults property value. A container for configuration monitoring results resources. + * @return array|null + */ + public function getConfigurationMonitoringResults(): ?array { + $val = $this->getBackingStore()->get('configurationMonitoringResults'); + if (is_array($val) || is_null($val)) { + TypeUtils::validateCollectionValues($val, ConfigurationMonitoringResult::class); + /** @var array|null $val */ + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'configurationMonitoringResults'"); + } + + /** + * Gets the configurationMonitors property value. A container for configuration monitor resources. + * @return array|null + */ + public function getConfigurationMonitors(): ?array { + $val = $this->getBackingStore()->get('configurationMonitors'); + if (is_array($val) || is_null($val)) { + TypeUtils::validateCollectionValues($val, ConfigurationMonitor::class); + /** @var array|null $val */ + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'configurationMonitors'"); + } + + /** + * Gets the configurationSnapshotJobs property value. A container for snapshot job resources. + * @return array|null + */ + public function getConfigurationSnapshotJobs(): ?array { + $val = $this->getBackingStore()->get('configurationSnapshotJobs'); + if (is_array($val) || is_null($val)) { + TypeUtils::validateCollectionValues($val, ConfigurationSnapshotJob::class); + /** @var array|null $val */ + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'configurationSnapshotJobs'"); + } + + /** + * Gets the configurationSnapshots property value. A container for configuration snapshot baselines. + * @return array|null + */ + public function getConfigurationSnapshots(): ?array { + $val = $this->getBackingStore()->get('configurationSnapshots'); + if (is_array($val) || is_null($val)) { + TypeUtils::validateCollectionValues($val, ConfigurationBaseline::class); + /** @var array|null $val */ + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'configurationSnapshots'"); + } + + /** + * The deserialization information for the current model + * @return array + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'configurationDrifts' => fn(ParseNode $n) => $o->setConfigurationDrifts($n->getCollectionOfObjectValues([ConfigurationDrift::class, 'createFromDiscriminatorValue'])), + 'configurationMonitoringResults' => fn(ParseNode $n) => $o->setConfigurationMonitoringResults($n->getCollectionOfObjectValues([ConfigurationMonitoringResult::class, 'createFromDiscriminatorValue'])), + 'configurationMonitors' => fn(ParseNode $n) => $o->setConfigurationMonitors($n->getCollectionOfObjectValues([ConfigurationMonitor::class, 'createFromDiscriminatorValue'])), + 'configurationSnapshotJobs' => fn(ParseNode $n) => $o->setConfigurationSnapshotJobs($n->getCollectionOfObjectValues([ConfigurationSnapshotJob::class, 'createFromDiscriminatorValue'])), + 'configurationSnapshots' => fn(ParseNode $n) => $o->setConfigurationSnapshots($n->getCollectionOfObjectValues([ConfigurationBaseline::class, 'createFromDiscriminatorValue'])), + ]); + } + + /** + * Serializes information the current object + * @param SerializationWriter $writer Serialization writer to use to serialize this model + */ + public function serialize(SerializationWriter $writer): void { + parent::serialize($writer); + $writer->writeCollectionOfObjectValues('configurationDrifts', $this->getConfigurationDrifts()); + $writer->writeCollectionOfObjectValues('configurationMonitoringResults', $this->getConfigurationMonitoringResults()); + $writer->writeCollectionOfObjectValues('configurationMonitors', $this->getConfigurationMonitors()); + $writer->writeCollectionOfObjectValues('configurationSnapshotJobs', $this->getConfigurationSnapshotJobs()); + $writer->writeCollectionOfObjectValues('configurationSnapshots', $this->getConfigurationSnapshots()); + } + + /** + * Sets the configurationDrifts property value. A container for configuration drift resources. + * @param array|null $value Value to set for the configurationDrifts property. + */ + public function setConfigurationDrifts(?array $value): void { + $this->getBackingStore()->set('configurationDrifts', $value); + } + + /** + * Sets the configurationMonitoringResults property value. A container for configuration monitoring results resources. + * @param array|null $value Value to set for the configurationMonitoringResults property. + */ + public function setConfigurationMonitoringResults(?array $value): void { + $this->getBackingStore()->set('configurationMonitoringResults', $value); + } + + /** + * Sets the configurationMonitors property value. A container for configuration monitor resources. + * @param array|null $value Value to set for the configurationMonitors property. + */ + public function setConfigurationMonitors(?array $value): void { + $this->getBackingStore()->set('configurationMonitors', $value); + } + + /** + * Sets the configurationSnapshotJobs property value. A container for snapshot job resources. + * @param array|null $value Value to set for the configurationSnapshotJobs property. + */ + public function setConfigurationSnapshotJobs(?array $value): void { + $this->getBackingStore()->set('configurationSnapshotJobs', $value); + } + + /** + * Sets the configurationSnapshots property value. A container for configuration snapshot baselines. + * @param array|null $value Value to set for the configurationSnapshots property. + */ + public function setConfigurationSnapshots(?array $value): void { + $this->getBackingStore()->set('configurationSnapshots', $value); + } + +} diff --git a/src/Generated/Models/ConfigurationMonitor.php b/src/Generated/Models/ConfigurationMonitor.php new file mode 100644 index 00000000000..35303fd5d2c --- /dev/null +++ b/src/Generated/Models/ConfigurationMonitor.php @@ -0,0 +1,327 @@ +getBackingStore()->get('baseline'); + if (is_null($val) || $val instanceof ConfigurationBaseline) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'baseline'"); + } + + /** + * Gets the createdBy property value. The createdBy property + * @return IdentitySet|null + */ + public function getCreatedBy(): ?IdentitySet { + $val = $this->getBackingStore()->get('createdBy'); + if (is_null($val) || $val instanceof IdentitySet) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'createdBy'"); + } + + /** + * Gets the createdDateTime property value. The date and time when the monitor was created. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Supports $filter (eq, ne, ge, le) and $orderby. + * @return DateTime|null + */ + public function getCreatedDateTime(): ?DateTime { + $val = $this->getBackingStore()->get('createdDateTime'); + if (is_null($val) || $val instanceof DateTime) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'createdDateTime'"); + } + + /** + * Gets the description property value. User-friendly description of the monitor given by the user. Supports $filter (eq, ne, startsWith) and $orderby. + * @return string|null + */ + public function getDescription(): ?string { + $val = $this->getBackingStore()->get('description'); + if (is_null($val) || is_string($val)) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'description'"); + } + + /** + * Gets the displayName property value. User-friendly name given by the user to the monitor. Supports $filter (eq, ne, startsWith) and $orderby. + * @return string|null + */ + public function getDisplayName(): ?string { + $val = $this->getBackingStore()->get('displayName'); + if (is_null($val) || is_string($val)) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'displayName'"); + } + + /** + * The deserialization information for the current model + * @return array + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'baseline' => fn(ParseNode $n) => $o->setBaseline($n->getObjectValue([ConfigurationBaseline::class, 'createFromDiscriminatorValue'])), + 'createdBy' => fn(ParseNode $n) => $o->setCreatedBy($n->getObjectValue([IdentitySet::class, 'createFromDiscriminatorValue'])), + 'createdDateTime' => fn(ParseNode $n) => $o->setCreatedDateTime($n->getDateTimeValue()), + 'description' => fn(ParseNode $n) => $o->setDescription($n->getStringValue()), + 'displayName' => fn(ParseNode $n) => $o->setDisplayName($n->getStringValue()), + 'inactivationReason' => fn(ParseNode $n) => $o->setInactivationReason($n->getStringValue()), + 'lastModifiedBy' => fn(ParseNode $n) => $o->setLastModifiedBy($n->getObjectValue([IdentitySet::class, 'createFromDiscriminatorValue'])), + 'lastModifiedDateTime' => fn(ParseNode $n) => $o->setLastModifiedDateTime($n->getDateTimeValue()), + 'mode' => fn(ParseNode $n) => $o->setMode($n->getEnumValue(MonitorMode::class)), + 'monitorRunFrequencyInHours' => fn(ParseNode $n) => $o->setMonitorRunFrequencyInHours($n->getIntegerValue()), + 'parameters' => fn(ParseNode $n) => $o->setParameters($n->getObjectValue([OpenComplexDictionaryType::class, 'createFromDiscriminatorValue'])), + 'status' => fn(ParseNode $n) => $o->setStatus($n->getEnumValue(MonitorStatus::class)), + 'tenantId' => fn(ParseNode $n) => $o->setTenantId($n->getStringValue()), + ]); + } + + /** + * Gets the inactivationReason property value. The reason for the monitor's inactivation. Returned only on $select. + * @return string|null + */ + public function getInactivationReason(): ?string { + $val = $this->getBackingStore()->get('inactivationReason'); + if (is_null($val) || is_string($val)) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'inactivationReason'"); + } + + /** + * Gets the lastModifiedBy property value. The lastModifiedBy property + * @return IdentitySet|null + */ + public function getLastModifiedBy(): ?IdentitySet { + $val = $this->getBackingStore()->get('lastModifiedBy'); + if (is_null($val) || $val instanceof IdentitySet) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'lastModifiedBy'"); + } + + /** + * Gets the lastModifiedDateTime property value. The date and time when the monitor was last modified. If no modifications are made to the monitor, it's the same as createdDateTime. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Supports $filter (eq, ne, ge, le) and $orderby. + * @return DateTime|null + */ + public function getLastModifiedDateTime(): ?DateTime { + $val = $this->getBackingStore()->get('lastModifiedDateTime'); + if (is_null($val) || $val instanceof DateTime) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'lastModifiedDateTime'"); + } + + /** + * Gets the mode property value. The mode property + * @return MonitorMode|null + */ + public function getMode(): ?MonitorMode { + $val = $this->getBackingStore()->get('mode'); + if (is_null($val) || $val instanceof MonitorMode) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'mode'"); + } + + /** + * Gets the monitorRunFrequencyInHours property value. Frequency at which the monitor runs. The default frequency is six hours. Regardless of when you create or update a monitor, it gets triggered within the next 6 hours. Currently, monitors are picked up at fixed times: 6 AM, 12 PM, 6 PM, and 12 AM (all in GMT). For example, if you create a monitor at 9 AM, it gets triggered around 12 PM. If you update a monitor at 4 PM, it gets triggered around 6 PM. + * @return int|null + */ + public function getMonitorRunFrequencyInHours(): ?int { + $val = $this->getBackingStore()->get('monitorRunFrequencyInHours'); + if (is_null($val) || is_int($val)) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'monitorRunFrequencyInHours'"); + } + + /** + * Gets the parameters property value. Key-value pairs that contain parameter values which might be used in the baseline. Returned only on $select. + * @return OpenComplexDictionaryType|null + */ + public function getParameters(): ?OpenComplexDictionaryType { + $val = $this->getBackingStore()->get('parameters'); + if (is_null($val) || $val instanceof OpenComplexDictionaryType) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'parameters'"); + } + + /** + * Gets the status property value. The status property + * @return MonitorStatus|null + */ + public function getStatus(): ?MonitorStatus { + $val = $this->getBackingStore()->get('status'); + if (is_null($val) || $val instanceof MonitorStatus) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'status'"); + } + + /** + * Gets the tenantId property value. Globally unique identifier (GUID) of the tenant for which the monitor runs. Fetched automatically by the system. Supports $filter (eq, ne). + * @return string|null + */ + public function getTenantId(): ?string { + $val = $this->getBackingStore()->get('tenantId'); + if (is_null($val) || is_string($val)) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'tenantId'"); + } + + /** + * Serializes information the current object + * @param SerializationWriter $writer Serialization writer to use to serialize this model + */ + public function serialize(SerializationWriter $writer): void { + parent::serialize($writer); + $writer->writeObjectValue('baseline', $this->getBaseline()); + $writer->writeObjectValue('createdBy', $this->getCreatedBy()); + $writer->writeStringValue('description', $this->getDescription()); + $writer->writeStringValue('displayName', $this->getDisplayName()); + $writer->writeObjectValue('lastModifiedBy', $this->getLastModifiedBy()); + $writer->writeEnumValue('mode', $this->getMode()); + $writer->writeObjectValue('parameters', $this->getParameters()); + $writer->writeEnumValue('status', $this->getStatus()); + } + + /** + * Sets the baseline property value. The baseline property + * @param ConfigurationBaseline|null $value Value to set for the baseline property. + */ + public function setBaseline(?ConfigurationBaseline $value): void { + $this->getBackingStore()->set('baseline', $value); + } + + /** + * Sets the createdBy property value. The createdBy property + * @param IdentitySet|null $value Value to set for the createdBy property. + */ + public function setCreatedBy(?IdentitySet $value): void { + $this->getBackingStore()->set('createdBy', $value); + } + + /** + * Sets the createdDateTime property value. The date and time when the monitor was created. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Supports $filter (eq, ne, ge, le) and $orderby. + * @param DateTime|null $value Value to set for the createdDateTime property. + */ + public function setCreatedDateTime(?DateTime $value): void { + $this->getBackingStore()->set('createdDateTime', $value); + } + + /** + * Sets the description property value. User-friendly description of the monitor given by the user. Supports $filter (eq, ne, startsWith) and $orderby. + * @param string|null $value Value to set for the description property. + */ + public function setDescription(?string $value): void { + $this->getBackingStore()->set('description', $value); + } + + /** + * Sets the displayName property value. User-friendly name given by the user to the monitor. Supports $filter (eq, ne, startsWith) and $orderby. + * @param string|null $value Value to set for the displayName property. + */ + public function setDisplayName(?string $value): void { + $this->getBackingStore()->set('displayName', $value); + } + + /** + * Sets the inactivationReason property value. The reason for the monitor's inactivation. Returned only on $select. + * @param string|null $value Value to set for the inactivationReason property. + */ + public function setInactivationReason(?string $value): void { + $this->getBackingStore()->set('inactivationReason', $value); + } + + /** + * Sets the lastModifiedBy property value. The lastModifiedBy property + * @param IdentitySet|null $value Value to set for the lastModifiedBy property. + */ + public function setLastModifiedBy(?IdentitySet $value): void { + $this->getBackingStore()->set('lastModifiedBy', $value); + } + + /** + * Sets the lastModifiedDateTime property value. The date and time when the monitor was last modified. If no modifications are made to the monitor, it's the same as createdDateTime. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Supports $filter (eq, ne, ge, le) and $orderby. + * @param DateTime|null $value Value to set for the lastModifiedDateTime property. + */ + public function setLastModifiedDateTime(?DateTime $value): void { + $this->getBackingStore()->set('lastModifiedDateTime', $value); + } + + /** + * Sets the mode property value. The mode property + * @param MonitorMode|null $value Value to set for the mode property. + */ + public function setMode(?MonitorMode $value): void { + $this->getBackingStore()->set('mode', $value); + } + + /** + * Sets the monitorRunFrequencyInHours property value. Frequency at which the monitor runs. The default frequency is six hours. Regardless of when you create or update a monitor, it gets triggered within the next 6 hours. Currently, monitors are picked up at fixed times: 6 AM, 12 PM, 6 PM, and 12 AM (all in GMT). For example, if you create a monitor at 9 AM, it gets triggered around 12 PM. If you update a monitor at 4 PM, it gets triggered around 6 PM. + * @param int|null $value Value to set for the monitorRunFrequencyInHours property. + */ + public function setMonitorRunFrequencyInHours(?int $value): void { + $this->getBackingStore()->set('monitorRunFrequencyInHours', $value); + } + + /** + * Sets the parameters property value. Key-value pairs that contain parameter values which might be used in the baseline. Returned only on $select. + * @param OpenComplexDictionaryType|null $value Value to set for the parameters property. + */ + public function setParameters(?OpenComplexDictionaryType $value): void { + $this->getBackingStore()->set('parameters', $value); + } + + /** + * Sets the status property value. The status property + * @param MonitorStatus|null $value Value to set for the status property. + */ + public function setStatus(?MonitorStatus $value): void { + $this->getBackingStore()->set('status', $value); + } + + /** + * Sets the tenantId property value. Globally unique identifier (GUID) of the tenant for which the monitor runs. Fetched automatically by the system. Supports $filter (eq, ne). + * @param string|null $value Value to set for the tenantId property. + */ + public function setTenantId(?string $value): void { + $this->getBackingStore()->set('tenantId', $value); + } + +} diff --git a/src/Generated/Models/ConfigurationMonitorCollectionResponse.php b/src/Generated/Models/ConfigurationMonitorCollectionResponse.php new file mode 100644 index 00000000000..6b90876d6a2 --- /dev/null +++ b/src/Generated/Models/ConfigurationMonitorCollectionResponse.php @@ -0,0 +1,70 @@ + + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([ConfigurationMonitor::class, 'createFromDiscriminatorValue'])), + ]); + } + + /** + * Gets the value property value. The value property + * @return array|null + */ + public function getValue(): ?array { + $val = $this->getBackingStore()->get('value'); + if (is_array($val) || is_null($val)) { + TypeUtils::validateCollectionValues($val, ConfigurationMonitor::class); + /** @var array|null $val */ + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'value'"); + } + + /** + * Serializes information the current object + * @param SerializationWriter $writer Serialization writer to use to serialize this model + */ + public function serialize(SerializationWriter $writer): void { + parent::serialize($writer); + $writer->writeCollectionOfObjectValues('value', $this->getValue()); + } + + /** + * Sets the value property value. The value property + * @param array|null $value Value to set for the value property. + */ + public function setValue(?array $value): void { + $this->getBackingStore()->set('value', $value); + } + +} diff --git a/src/Generated/Models/ConfigurationMonitoringResult.php b/src/Generated/Models/ConfigurationMonitoringResult.php new file mode 100644 index 00000000000..699242e582a --- /dev/null +++ b/src/Generated/Models/ConfigurationMonitoringResult.php @@ -0,0 +1,197 @@ +getBackingStore()->get('driftsCount'); + if (is_null($val) || is_int($val)) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'driftsCount'"); + } + + /** + * Gets the errorDetails property value. All the error details that prevent the monitor from running successfully. The error details are a contained entity. Returned only on $select. + * @return array|null + */ + public function getErrorDetails(): ?array { + $val = $this->getBackingStore()->get('errorDetails'); + if (is_array($val) || is_null($val)) { + TypeUtils::validateCollectionValues($val, ErrorDetail::class); + /** @var array|null $val */ + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'errorDetails'"); + } + + /** + * The deserialization information for the current model + * @return array + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'driftsCount' => fn(ParseNode $n) => $o->setDriftsCount($n->getIntegerValue()), + 'errorDetails' => fn(ParseNode $n) => $o->setErrorDetails($n->getCollectionOfObjectValues([ErrorDetail::class, 'createFromDiscriminatorValue'])), + 'monitorId' => fn(ParseNode $n) => $o->setMonitorId($n->getStringValue()), + 'runCompletionDateTime' => fn(ParseNode $n) => $o->setRunCompletionDateTime($n->getDateTimeValue()), + 'runInitiationDateTime' => fn(ParseNode $n) => $o->setRunInitiationDateTime($n->getDateTimeValue()), + 'runStatus' => fn(ParseNode $n) => $o->setRunStatus($n->getEnumValue(MonitorRunStatus::class)), + 'tenantId' => fn(ParseNode $n) => $o->setTenantId($n->getStringValue()), + ]); + } + + /** + * Gets the monitorId property value. Globally unique identifier (GUID) of the monitor. System-generated. Supports $filter (eq, ne). + * @return string|null + */ + public function getMonitorId(): ?string { + $val = $this->getBackingStore()->get('monitorId'); + if (is_null($val) || is_string($val)) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'monitorId'"); + } + + /** + * Gets the runCompletionDateTime property value. Date and time at which the monitor run completed. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Supports $filter (eq, ne, ge, le) and $orderby. + * @return DateTime|null + */ + public function getRunCompletionDateTime(): ?DateTime { + $val = $this->getBackingStore()->get('runCompletionDateTime'); + if (is_null($val) || $val instanceof DateTime) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'runCompletionDateTime'"); + } + + /** + * Gets the runInitiationDateTime property value. Date and time at which the monitor run initiated. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Supports $filter (eq, ne, ge, le) and $orderby. + * @return DateTime|null + */ + public function getRunInitiationDateTime(): ?DateTime { + $val = $this->getBackingStore()->get('runInitiationDateTime'); + if (is_null($val) || $val instanceof DateTime) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'runInitiationDateTime'"); + } + + /** + * Gets the runStatus property value. The runStatus property + * @return MonitorRunStatus|null + */ + public function getRunStatus(): ?MonitorRunStatus { + $val = $this->getBackingStore()->get('runStatus'); + if (is_null($val) || $val instanceof MonitorRunStatus) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'runStatus'"); + } + + /** + * Gets the tenantId property value. Globally unique identifier (GUID) of the tenant for which the monitor runs. Fetched automatically by the system. Supports $filter (eq, ne). + * @return string|null + */ + public function getTenantId(): ?string { + $val = $this->getBackingStore()->get('tenantId'); + if (is_null($val) || is_string($val)) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'tenantId'"); + } + + /** + * Serializes information the current object + * @param SerializationWriter $writer Serialization writer to use to serialize this model + */ + public function serialize(SerializationWriter $writer): void { + parent::serialize($writer); + $writer->writeEnumValue('runStatus', $this->getRunStatus()); + } + + /** + * Sets the driftsCount property value. Number of drifts observed during a monitor run. Supports $filter (eq, ne, ge, le) and $orderby. + * @param int|null $value Value to set for the driftsCount property. + */ + public function setDriftsCount(?int $value): void { + $this->getBackingStore()->set('driftsCount', $value); + } + + /** + * Sets the errorDetails property value. All the error details that prevent the monitor from running successfully. The error details are a contained entity. Returned only on $select. + * @param array|null $value Value to set for the errorDetails property. + */ + public function setErrorDetails(?array $value): void { + $this->getBackingStore()->set('errorDetails', $value); + } + + /** + * Sets the monitorId property value. Globally unique identifier (GUID) of the monitor. System-generated. Supports $filter (eq, ne). + * @param string|null $value Value to set for the monitorId property. + */ + public function setMonitorId(?string $value): void { + $this->getBackingStore()->set('monitorId', $value); + } + + /** + * Sets the runCompletionDateTime property value. Date and time at which the monitor run completed. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Supports $filter (eq, ne, ge, le) and $orderby. + * @param DateTime|null $value Value to set for the runCompletionDateTime property. + */ + public function setRunCompletionDateTime(?DateTime $value): void { + $this->getBackingStore()->set('runCompletionDateTime', $value); + } + + /** + * Sets the runInitiationDateTime property value. Date and time at which the monitor run initiated. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Supports $filter (eq, ne, ge, le) and $orderby. + * @param DateTime|null $value Value to set for the runInitiationDateTime property. + */ + public function setRunInitiationDateTime(?DateTime $value): void { + $this->getBackingStore()->set('runInitiationDateTime', $value); + } + + /** + * Sets the runStatus property value. The runStatus property + * @param MonitorRunStatus|null $value Value to set for the runStatus property. + */ + public function setRunStatus(?MonitorRunStatus $value): void { + $this->getBackingStore()->set('runStatus', $value); + } + + /** + * Sets the tenantId property value. Globally unique identifier (GUID) of the tenant for which the monitor runs. Fetched automatically by the system. Supports $filter (eq, ne). + * @param string|null $value Value to set for the tenantId property. + */ + public function setTenantId(?string $value): void { + $this->getBackingStore()->set('tenantId', $value); + } + +} diff --git a/src/Generated/Models/ConfigurationMonitoringResultCollectionResponse.php b/src/Generated/Models/ConfigurationMonitoringResultCollectionResponse.php new file mode 100644 index 00000000000..dab2b4ca9b3 --- /dev/null +++ b/src/Generated/Models/ConfigurationMonitoringResultCollectionResponse.php @@ -0,0 +1,70 @@ + + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([ConfigurationMonitoringResult::class, 'createFromDiscriminatorValue'])), + ]); + } + + /** + * Gets the value property value. The value property + * @return array|null + */ + public function getValue(): ?array { + $val = $this->getBackingStore()->get('value'); + if (is_array($val) || is_null($val)) { + TypeUtils::validateCollectionValues($val, ConfigurationMonitoringResult::class); + /** @var array|null $val */ + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'value'"); + } + + /** + * Serializes information the current object + * @param SerializationWriter $writer Serialization writer to use to serialize this model + */ + public function serialize(SerializationWriter $writer): void { + parent::serialize($writer); + $writer->writeCollectionOfObjectValues('value', $this->getValue()); + } + + /** + * Sets the value property value. The value property + * @param array|null $value Value to set for the value property. + */ + public function setValue(?array $value): void { + $this->getBackingStore()->set('value', $value); + } + +} diff --git a/src/Generated/Models/ConfigurationSnapshotJob.php b/src/Generated/Models/ConfigurationSnapshotJob.php new file mode 100644 index 00000000000..b2b20f286d0 --- /dev/null +++ b/src/Generated/Models/ConfigurationSnapshotJob.php @@ -0,0 +1,280 @@ +getBackingStore()->get('completedDateTime'); + if (is_null($val) || $val instanceof DateTime) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'completedDateTime'"); + } + + /** + * Gets the createdBy property value. The createdBy property + * @return IdentitySet|null + */ + public function getCreatedBy(): ?IdentitySet { + $val = $this->getBackingStore()->get('createdBy'); + if (is_null($val) || $val instanceof IdentitySet) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'createdBy'"); + } + + /** + * Gets the createdDateTime property value. The date and time when the snapshot job was created. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Supports $filter (eq, ne, ge, le) and $orderby. + * @return DateTime|null + */ + public function getCreatedDateTime(): ?DateTime { + $val = $this->getBackingStore()->get('createdDateTime'); + if (is_null($val) || $val instanceof DateTime) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'createdDateTime'"); + } + + /** + * Gets the description property value. User-friendly description of the snapshot given by the user. Supports $filter (eq, ne, startsWith) and $orderby. + * @return string|null + */ + public function getDescription(): ?string { + $val = $this->getBackingStore()->get('description'); + if (is_null($val) || is_string($val)) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'description'"); + } + + /** + * Gets the displayName property value. User-friendly name provided by the user during snapshot creation. Supports $filter (eq, ne, startsWith) and $orderby. + * @return string|null + */ + public function getDisplayName(): ?string { + $val = $this->getBackingStore()->get('displayName'); + if (is_null($val) || is_string($val)) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'displayName'"); + } + + /** + * Gets the errorDetails property value. Details of errors related to the reasons why the snapshot can't complete. Returned only on $select. + * @return array|null + */ + public function getErrorDetails(): ?array { + $val = $this->getBackingStore()->get('errorDetails'); + if (is_array($val) || is_null($val)) { + TypeUtils::validateCollectionValues($val, 'string'); + /** @var array|null $val */ + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'errorDetails'"); + } + + /** + * The deserialization information for the current model + * @return array + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'completedDateTime' => fn(ParseNode $n) => $o->setCompletedDateTime($n->getDateTimeValue()), + 'createdBy' => fn(ParseNode $n) => $o->setCreatedBy($n->getObjectValue([IdentitySet::class, 'createFromDiscriminatorValue'])), + 'createdDateTime' => fn(ParseNode $n) => $o->setCreatedDateTime($n->getDateTimeValue()), + 'description' => fn(ParseNode $n) => $o->setDescription($n->getStringValue()), + 'displayName' => fn(ParseNode $n) => $o->setDisplayName($n->getStringValue()), + 'errorDetails' => function (ParseNode $n) { + $val = $n->getCollectionOfPrimitiveValues(); + if (is_array($val)) { + TypeUtils::validateCollectionValues($val, 'string'); + } + /** @var array|null $val */ + $this->setErrorDetails($val); + }, + 'resourceLocation' => fn(ParseNode $n) => $o->setResourceLocation($n->getStringValue()), + 'resources' => function (ParseNode $n) { + $val = $n->getCollectionOfPrimitiveValues(); + if (is_array($val)) { + TypeUtils::validateCollectionValues($val, 'string'); + } + /** @var array|null $val */ + $this->setResources($val); + }, + 'status' => fn(ParseNode $n) => $o->setStatus($n->getEnumValue(SnapshotJobStatus::class)), + 'tenantId' => fn(ParseNode $n) => $o->setTenantId($n->getStringValue()), + ]); + } + + /** + * Gets the resourceLocation property value. The URL at which the snapshot file resides. Returned only on $select. + * @return string|null + */ + public function getResourceLocation(): ?string { + $val = $this->getBackingStore()->get('resourceLocation'); + if (is_null($val) || is_string($val)) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'resourceLocation'"); + } + + /** + * Gets the resources property value. The names of all resources included in the request body by the user who created the snapshot. Fetched by the system. Returned only on $select. + * @return array|null + */ + public function getResources(): ?array { + $val = $this->getBackingStore()->get('resources'); + if (is_array($val) || is_null($val)) { + TypeUtils::validateCollectionValues($val, 'string'); + /** @var array|null $val */ + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'resources'"); + } + + /** + * Gets the status property value. The status property + * @return SnapshotJobStatus|null + */ + public function getStatus(): ?SnapshotJobStatus { + $val = $this->getBackingStore()->get('status'); + if (is_null($val) || $val instanceof SnapshotJobStatus) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'status'"); + } + + /** + * Gets the tenantId property value. Globally unique identifier (GUID) of the tenant for which the snapshot is created. Supports $filter (eq, ne). + * @return string|null + */ + public function getTenantId(): ?string { + $val = $this->getBackingStore()->get('tenantId'); + if (is_null($val) || is_string($val)) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'tenantId'"); + } + + /** + * Serializes information the current object + * @param SerializationWriter $writer Serialization writer to use to serialize this model + */ + public function serialize(SerializationWriter $writer): void { + parent::serialize($writer); + $writer->writeObjectValue('createdBy', $this->getCreatedBy()); + $writer->writeStringValue('description', $this->getDescription()); + $writer->writeStringValue('displayName', $this->getDisplayName()); + $writer->writeCollectionOfPrimitiveValues('resources', $this->getResources()); + $writer->writeEnumValue('status', $this->getStatus()); + } + + /** + * Sets the completedDateTime property value. The date and time when the snapshot job was completed. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Supports $filter (eq, ne, ge, le) and $orderby. + * @param DateTime|null $value Value to set for the completedDateTime property. + */ + public function setCompletedDateTime(?DateTime $value): void { + $this->getBackingStore()->set('completedDateTime', $value); + } + + /** + * Sets the createdBy property value. The createdBy property + * @param IdentitySet|null $value Value to set for the createdBy property. + */ + public function setCreatedBy(?IdentitySet $value): void { + $this->getBackingStore()->set('createdBy', $value); + } + + /** + * Sets the createdDateTime property value. The date and time when the snapshot job was created. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Supports $filter (eq, ne, ge, le) and $orderby. + * @param DateTime|null $value Value to set for the createdDateTime property. + */ + public function setCreatedDateTime(?DateTime $value): void { + $this->getBackingStore()->set('createdDateTime', $value); + } + + /** + * Sets the description property value. User-friendly description of the snapshot given by the user. Supports $filter (eq, ne, startsWith) and $orderby. + * @param string|null $value Value to set for the description property. + */ + public function setDescription(?string $value): void { + $this->getBackingStore()->set('description', $value); + } + + /** + * Sets the displayName property value. User-friendly name provided by the user during snapshot creation. Supports $filter (eq, ne, startsWith) and $orderby. + * @param string|null $value Value to set for the displayName property. + */ + public function setDisplayName(?string $value): void { + $this->getBackingStore()->set('displayName', $value); + } + + /** + * Sets the errorDetails property value. Details of errors related to the reasons why the snapshot can't complete. Returned only on $select. + * @param array|null $value Value to set for the errorDetails property. + */ + public function setErrorDetails(?array $value): void { + $this->getBackingStore()->set('errorDetails', $value); + } + + /** + * Sets the resourceLocation property value. The URL at which the snapshot file resides. Returned only on $select. + * @param string|null $value Value to set for the resourceLocation property. + */ + public function setResourceLocation(?string $value): void { + $this->getBackingStore()->set('resourceLocation', $value); + } + + /** + * Sets the resources property value. The names of all resources included in the request body by the user who created the snapshot. Fetched by the system. Returned only on $select. + * @param array|null $value Value to set for the resources property. + */ + public function setResources(?array $value): void { + $this->getBackingStore()->set('resources', $value); + } + + /** + * Sets the status property value. The status property + * @param SnapshotJobStatus|null $value Value to set for the status property. + */ + public function setStatus(?SnapshotJobStatus $value): void { + $this->getBackingStore()->set('status', $value); + } + + /** + * Sets the tenantId property value. Globally unique identifier (GUID) of the tenant for which the snapshot is created. Supports $filter (eq, ne). + * @param string|null $value Value to set for the tenantId property. + */ + public function setTenantId(?string $value): void { + $this->getBackingStore()->set('tenantId', $value); + } + +} diff --git a/src/Generated/Models/ConfigurationSnapshotJobCollectionResponse.php b/src/Generated/Models/ConfigurationSnapshotJobCollectionResponse.php new file mode 100644 index 00000000000..875f4a59a97 --- /dev/null +++ b/src/Generated/Models/ConfigurationSnapshotJobCollectionResponse.php @@ -0,0 +1,70 @@ + + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'value' => fn(ParseNode $n) => $o->setValue($n->getCollectionOfObjectValues([ConfigurationSnapshotJob::class, 'createFromDiscriminatorValue'])), + ]); + } + + /** + * Gets the value property value. The value property + * @return array|null + */ + public function getValue(): ?array { + $val = $this->getBackingStore()->get('value'); + if (is_array($val) || is_null($val)) { + TypeUtils::validateCollectionValues($val, ConfigurationSnapshotJob::class); + /** @var array|null $val */ + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'value'"); + } + + /** + * Serializes information the current object + * @param SerializationWriter $writer Serialization writer to use to serialize this model + */ + public function serialize(SerializationWriter $writer): void { + parent::serialize($writer); + $writer->writeCollectionOfObjectValues('value', $this->getValue()); + } + + /** + * Sets the value property value. The value property + * @param array|null $value Value to set for the value property. + */ + public function setValue(?array $value): void { + $this->getBackingStore()->set('value', $value); + } + +} diff --git a/src/Generated/Models/Contact.php b/src/Generated/Models/Contact.php index 60f9b86d709..68478e1f313 100644 --- a/src/Generated/Models/Contact.php +++ b/src/Generated/Models/Contact.php @@ -231,10 +231,13 @@ public function getFieldDeserializers(): array { 'parentFolderId' => fn(ParseNode $n) => $o->setParentFolderId($n->getStringValue()), 'personalNotes' => fn(ParseNode $n) => $o->setPersonalNotes($n->getStringValue()), 'photo' => fn(ParseNode $n) => $o->setPhoto($n->getObjectValue([ProfilePhoto::class, 'createFromDiscriminatorValue'])), + 'primaryEmailAddress' => fn(ParseNode $n) => $o->setPrimaryEmailAddress($n->getObjectValue([EmailAddress::class, 'createFromDiscriminatorValue'])), 'profession' => fn(ParseNode $n) => $o->setProfession($n->getStringValue()), + 'secondaryEmailAddress' => fn(ParseNode $n) => $o->setSecondaryEmailAddress($n->getObjectValue([EmailAddress::class, 'createFromDiscriminatorValue'])), 'singleValueExtendedProperties' => fn(ParseNode $n) => $o->setSingleValueExtendedProperties($n->getCollectionOfObjectValues([SingleValueLegacyExtendedProperty::class, 'createFromDiscriminatorValue'])), 'spouseName' => fn(ParseNode $n) => $o->setSpouseName($n->getStringValue()), 'surname' => fn(ParseNode $n) => $o->setSurname($n->getStringValue()), + 'tertiaryEmailAddress' => fn(ParseNode $n) => $o->setTertiaryEmailAddress($n->getObjectValue([EmailAddress::class, 'createFromDiscriminatorValue'])), 'title' => fn(ParseNode $n) => $o->setTitle($n->getStringValue()), 'yomiCompanyName' => fn(ParseNode $n) => $o->setYomiCompanyName($n->getStringValue()), 'yomiGivenName' => fn(ParseNode $n) => $o->setYomiGivenName($n->getStringValue()), @@ -464,6 +467,18 @@ public function getPhoto(): ?ProfilePhoto { throw new \UnexpectedValueException("Invalid type found in backing store for 'photo'"); } + /** + * Gets the primaryEmailAddress property value. The contact's primary email address. + * @return EmailAddress|null + */ + public function getPrimaryEmailAddress(): ?EmailAddress { + $val = $this->getBackingStore()->get('primaryEmailAddress'); + if (is_null($val) || $val instanceof EmailAddress) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'primaryEmailAddress'"); + } + /** * Gets the profession property value. The contact's profession. * @return string|null @@ -476,6 +491,18 @@ public function getProfession(): ?string { throw new \UnexpectedValueException("Invalid type found in backing store for 'profession'"); } + /** + * Gets the secondaryEmailAddress property value. The contact's secondary email address. + * @return EmailAddress|null + */ + public function getSecondaryEmailAddress(): ?EmailAddress { + $val = $this->getBackingStore()->get('secondaryEmailAddress'); + if (is_null($val) || $val instanceof EmailAddress) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'secondaryEmailAddress'"); + } + /** * Gets the singleValueExtendedProperties property value. The collection of single-value extended properties defined for the contact. Read-only. Nullable. * @return array|null @@ -514,6 +541,18 @@ public function getSurname(): ?string { throw new \UnexpectedValueException("Invalid type found in backing store for 'surname'"); } + /** + * Gets the tertiaryEmailAddress property value. The contact's tertiary email address. + * @return EmailAddress|null + */ + public function getTertiaryEmailAddress(): ?EmailAddress { + $val = $this->getBackingStore()->get('tertiaryEmailAddress'); + if (is_null($val) || $val instanceof EmailAddress) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'tertiaryEmailAddress'"); + } + /** * Gets the title property value. The contact's title. * @return string|null @@ -597,10 +636,13 @@ public function serialize(SerializationWriter $writer): void { $writer->writeStringValue('parentFolderId', $this->getParentFolderId()); $writer->writeStringValue('personalNotes', $this->getPersonalNotes()); $writer->writeObjectValue('photo', $this->getPhoto()); + $writer->writeObjectValue('primaryEmailAddress', $this->getPrimaryEmailAddress()); $writer->writeStringValue('profession', $this->getProfession()); + $writer->writeObjectValue('secondaryEmailAddress', $this->getSecondaryEmailAddress()); $writer->writeCollectionOfObjectValues('singleValueExtendedProperties', $this->getSingleValueExtendedProperties()); $writer->writeStringValue('spouseName', $this->getSpouseName()); $writer->writeStringValue('surname', $this->getSurname()); + $writer->writeObjectValue('tertiaryEmailAddress', $this->getTertiaryEmailAddress()); $writer->writeStringValue('title', $this->getTitle()); $writer->writeStringValue('yomiCompanyName', $this->getYomiCompanyName()); $writer->writeStringValue('yomiGivenName', $this->getYomiGivenName()); @@ -839,6 +881,14 @@ public function setPhoto(?ProfilePhoto $value): void { $this->getBackingStore()->set('photo', $value); } + /** + * Sets the primaryEmailAddress property value. The contact's primary email address. + * @param EmailAddress|null $value Value to set for the primaryEmailAddress property. + */ + public function setPrimaryEmailAddress(?EmailAddress $value): void { + $this->getBackingStore()->set('primaryEmailAddress', $value); + } + /** * Sets the profession property value. The contact's profession. * @param string|null $value Value to set for the profession property. @@ -847,6 +897,14 @@ public function setProfession(?string $value): void { $this->getBackingStore()->set('profession', $value); } + /** + * Sets the secondaryEmailAddress property value. The contact's secondary email address. + * @param EmailAddress|null $value Value to set for the secondaryEmailAddress property. + */ + public function setSecondaryEmailAddress(?EmailAddress $value): void { + $this->getBackingStore()->set('secondaryEmailAddress', $value); + } + /** * Sets the singleValueExtendedProperties property value. The collection of single-value extended properties defined for the contact. Read-only. Nullable. * @param array|null $value Value to set for the singleValueExtendedProperties property. @@ -871,6 +929,14 @@ public function setSurname(?string $value): void { $this->getBackingStore()->set('surname', $value); } + /** + * Sets the tertiaryEmailAddress property value. The contact's tertiary email address. + * @param EmailAddress|null $value Value to set for the tertiaryEmailAddress property. + */ + public function setTertiaryEmailAddress(?EmailAddress $value): void { + $this->getBackingStore()->set('tertiaryEmailAddress', $value); + } + /** * Sets the title property value. The contact's title. * @param string|null $value Value to set for the title property. diff --git a/src/Generated/Models/CrossTenantAccessPolicyAppServiceConnectSetting.php b/src/Generated/Models/CrossTenantAccessPolicyAppServiceConnectSetting.php new file mode 100644 index 00000000000..f2bc12accc2 --- /dev/null +++ b/src/Generated/Models/CrossTenantAccessPolicyAppServiceConnectSetting.php @@ -0,0 +1,136 @@ +backingStore = BackingStoreFactorySingleton::getInstance()->createBackingStore(); + $this->setAdditionalData([]); + } + + /** + * Creates a new instance of the appropriate class based on discriminator value + * @param ParseNode $parseNode The parse node to use to read the discriminator value and create the object + * @return CrossTenantAccessPolicyAppServiceConnectSetting + */ + public static function createFromDiscriminatorValue(ParseNode $parseNode): CrossTenantAccessPolicyAppServiceConnectSetting { + return new CrossTenantAccessPolicyAppServiceConnectSetting(); + } + + /** + * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @return array|null + */ + public function getAdditionalData(): ?array { + $val = $this->getBackingStore()->get('additionalData'); + if (is_null($val) || is_array($val)) { + /** @var array|null $val */ + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'additionalData'"); + } + + /** + * Gets the applications property value. The applications property + * @return CrossTenantAccessPolicyTargetConfiguration|null + */ + public function getApplications(): ?CrossTenantAccessPolicyTargetConfiguration { + $val = $this->getBackingStore()->get('applications'); + if (is_null($val) || $val instanceof CrossTenantAccessPolicyTargetConfiguration) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'applications'"); + } + + /** + * Gets the BackingStore property value. Stores model information. + * @return BackingStore + */ + public function getBackingStore(): BackingStore { + return $this->backingStore; + } + + /** + * The deserialization information for the current model + * @return array + */ + public function getFieldDeserializers(): array { + $o = $this; + return [ + 'applications' => fn(ParseNode $n) => $o->setApplications($n->getObjectValue([CrossTenantAccessPolicyTargetConfiguration::class, 'createFromDiscriminatorValue'])), + '@odata.type' => fn(ParseNode $n) => $o->setOdataType($n->getStringValue()), + ]; + } + + /** + * Gets the @odata.type property value. The OdataType property + * @return string|null + */ + public function getOdataType(): ?string { + $val = $this->getBackingStore()->get('odataType'); + if (is_null($val) || is_string($val)) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'odataType'"); + } + + /** + * Serializes information the current object + * @param SerializationWriter $writer Serialization writer to use to serialize this model + */ + public function serialize(SerializationWriter $writer): void { + $writer->writeObjectValue('applications', $this->getApplications()); + $writer->writeStringValue('@odata.type', $this->getOdataType()); + $writer->writeAdditionalData($this->getAdditionalData()); + } + + /** + * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @param array $value Value to set for the AdditionalData property. + */ + public function setAdditionalData(?array $value): void { + $this->getBackingStore()->set('additionalData', $value); + } + + /** + * Sets the applications property value. The applications property + * @param CrossTenantAccessPolicyTargetConfiguration|null $value Value to set for the applications property. + */ + public function setApplications(?CrossTenantAccessPolicyTargetConfiguration $value): void { + $this->getBackingStore()->set('applications', $value); + } + + /** + * Sets the BackingStore property value. Stores model information. + * @param BackingStore $value Value to set for the BackingStore property. + */ + public function setBackingStore(BackingStore $value): void { + $this->backingStore = $value; + } + + /** + * Sets the @odata.type property value. The OdataType property + * @param string|null $value Value to set for the @odata.type property. + */ + public function setOdataType(?string $value): void { + $this->getBackingStore()->set('odataType', $value); + } + +} diff --git a/src/Generated/Models/CrossTenantAccessPolicyConfigurationDefault.php b/src/Generated/Models/CrossTenantAccessPolicyConfigurationDefault.php index 26474749486..c8e931b620a 100644 --- a/src/Generated/Models/CrossTenantAccessPolicyConfigurationDefault.php +++ b/src/Generated/Models/CrossTenantAccessPolicyConfigurationDefault.php @@ -24,6 +24,18 @@ public static function createFromDiscriminatorValue(ParseNode $parseNode): Cross return new CrossTenantAccessPolicyConfigurationDefault(); } + /** + * Gets the appServiceConnectInbound property value. The appServiceConnectInbound property + * @return CrossTenantAccessPolicyAppServiceConnectSetting|null + */ + public function getAppServiceConnectInbound(): ?CrossTenantAccessPolicyAppServiceConnectSetting { + $val = $this->getBackingStore()->get('appServiceConnectInbound'); + if (is_null($val) || $val instanceof CrossTenantAccessPolicyAppServiceConnectSetting) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'appServiceConnectInbound'"); + } + /** * Gets the automaticUserConsentSettings property value. Determines the default configuration for automatic user consent settings. The inboundAllowed and outboundAllowed properties are always false and can't be updated in the default configuration. Read-only. * @return InboundOutboundPolicyConfiguration|null @@ -91,6 +103,7 @@ public function getB2bDirectConnectOutbound(): ?CrossTenantAccessPolicyB2BSettin public function getFieldDeserializers(): array { $o = $this; return array_merge(parent::getFieldDeserializers(), [ + 'appServiceConnectInbound' => fn(ParseNode $n) => $o->setAppServiceConnectInbound($n->getObjectValue([CrossTenantAccessPolicyAppServiceConnectSetting::class, 'createFromDiscriminatorValue'])), 'automaticUserConsentSettings' => fn(ParseNode $n) => $o->setAutomaticUserConsentSettings($n->getObjectValue([InboundOutboundPolicyConfiguration::class, 'createFromDiscriminatorValue'])), 'b2bCollaborationInbound' => fn(ParseNode $n) => $o->setB2bCollaborationInbound($n->getObjectValue([CrossTenantAccessPolicyB2BSetting::class, 'createFromDiscriminatorValue'])), 'b2bCollaborationOutbound' => fn(ParseNode $n) => $o->setB2bCollaborationOutbound($n->getObjectValue([CrossTenantAccessPolicyB2BSetting::class, 'createFromDiscriminatorValue'])), @@ -99,6 +112,8 @@ public function getFieldDeserializers(): array { 'inboundTrust' => fn(ParseNode $n) => $o->setInboundTrust($n->getObjectValue([CrossTenantAccessPolicyInboundTrust::class, 'createFromDiscriminatorValue'])), 'invitationRedemptionIdentityProviderConfiguration' => fn(ParseNode $n) => $o->setInvitationRedemptionIdentityProviderConfiguration($n->getObjectValue([DefaultInvitationRedemptionIdentityProviderConfiguration::class, 'createFromDiscriminatorValue'])), 'isServiceDefault' => fn(ParseNode $n) => $o->setIsServiceDefault($n->getBooleanValue()), + 'm365CollaborationInbound' => fn(ParseNode $n) => $o->setM365CollaborationInbound($n->getObjectValue([CrossTenantAccessPolicyM365CollaborationInboundSetting::class, 'createFromDiscriminatorValue'])), + 'm365CollaborationOutbound' => fn(ParseNode $n) => $o->setM365CollaborationOutbound($n->getObjectValue([CrossTenantAccessPolicyM365CollaborationOutboundSetting::class, 'createFromDiscriminatorValue'])), 'tenantRestrictions' => fn(ParseNode $n) => $o->setTenantRestrictions($n->getObjectValue([CrossTenantAccessPolicyTenantRestrictions::class, 'createFromDiscriminatorValue'])), ]); } @@ -139,6 +154,30 @@ public function getIsServiceDefault(): ?bool { throw new \UnexpectedValueException("Invalid type found in backing store for 'isServiceDefault'"); } + /** + * Gets the m365CollaborationInbound property value. The m365CollaborationInbound property + * @return CrossTenantAccessPolicyM365CollaborationInboundSetting|null + */ + public function getM365CollaborationInbound(): ?CrossTenantAccessPolicyM365CollaborationInboundSetting { + $val = $this->getBackingStore()->get('m365CollaborationInbound'); + if (is_null($val) || $val instanceof CrossTenantAccessPolicyM365CollaborationInboundSetting) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'm365CollaborationInbound'"); + } + + /** + * Gets the m365CollaborationOutbound property value. The m365CollaborationOutbound property + * @return CrossTenantAccessPolicyM365CollaborationOutboundSetting|null + */ + public function getM365CollaborationOutbound(): ?CrossTenantAccessPolicyM365CollaborationOutboundSetting { + $val = $this->getBackingStore()->get('m365CollaborationOutbound'); + if (is_null($val) || $val instanceof CrossTenantAccessPolicyM365CollaborationOutboundSetting) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'm365CollaborationOutbound'"); + } + /** * Gets the tenantRestrictions property value. Defines the default tenant restrictions configuration for users in your organization who access an external organization on your network or devices. * @return CrossTenantAccessPolicyTenantRestrictions|null @@ -157,6 +196,7 @@ public function getTenantRestrictions(): ?CrossTenantAccessPolicyTenantRestricti */ public function serialize(SerializationWriter $writer): void { parent::serialize($writer); + $writer->writeObjectValue('appServiceConnectInbound', $this->getAppServiceConnectInbound()); $writer->writeObjectValue('automaticUserConsentSettings', $this->getAutomaticUserConsentSettings()); $writer->writeObjectValue('b2bCollaborationInbound', $this->getB2bCollaborationInbound()); $writer->writeObjectValue('b2bCollaborationOutbound', $this->getB2bCollaborationOutbound()); @@ -165,9 +205,19 @@ public function serialize(SerializationWriter $writer): void { $writer->writeObjectValue('inboundTrust', $this->getInboundTrust()); $writer->writeObjectValue('invitationRedemptionIdentityProviderConfiguration', $this->getInvitationRedemptionIdentityProviderConfiguration()); $writer->writeBooleanValue('isServiceDefault', $this->getIsServiceDefault()); + $writer->writeObjectValue('m365CollaborationInbound', $this->getM365CollaborationInbound()); + $writer->writeObjectValue('m365CollaborationOutbound', $this->getM365CollaborationOutbound()); $writer->writeObjectValue('tenantRestrictions', $this->getTenantRestrictions()); } + /** + * Sets the appServiceConnectInbound property value. The appServiceConnectInbound property + * @param CrossTenantAccessPolicyAppServiceConnectSetting|null $value Value to set for the appServiceConnectInbound property. + */ + public function setAppServiceConnectInbound(?CrossTenantAccessPolicyAppServiceConnectSetting $value): void { + $this->getBackingStore()->set('appServiceConnectInbound', $value); + } + /** * Sets the automaticUserConsentSettings property value. Determines the default configuration for automatic user consent settings. The inboundAllowed and outboundAllowed properties are always false and can't be updated in the default configuration. Read-only. * @param InboundOutboundPolicyConfiguration|null $value Value to set for the automaticUserConsentSettings property. @@ -232,6 +282,22 @@ public function setIsServiceDefault(?bool $value): void { $this->getBackingStore()->set('isServiceDefault', $value); } + /** + * Sets the m365CollaborationInbound property value. The m365CollaborationInbound property + * @param CrossTenantAccessPolicyM365CollaborationInboundSetting|null $value Value to set for the m365CollaborationInbound property. + */ + public function setM365CollaborationInbound(?CrossTenantAccessPolicyM365CollaborationInboundSetting $value): void { + $this->getBackingStore()->set('m365CollaborationInbound', $value); + } + + /** + * Sets the m365CollaborationOutbound property value. The m365CollaborationOutbound property + * @param CrossTenantAccessPolicyM365CollaborationOutboundSetting|null $value Value to set for the m365CollaborationOutbound property. + */ + public function setM365CollaborationOutbound(?CrossTenantAccessPolicyM365CollaborationOutboundSetting $value): void { + $this->getBackingStore()->set('m365CollaborationOutbound', $value); + } + /** * Sets the tenantRestrictions property value. Defines the default tenant restrictions configuration for users in your organization who access an external organization on your network or devices. * @param CrossTenantAccessPolicyTenantRestrictions|null $value Value to set for the tenantRestrictions property. diff --git a/src/Generated/Models/CrossTenantAccessPolicyConfigurationPartner.php b/src/Generated/Models/CrossTenantAccessPolicyConfigurationPartner.php index a42c7d93923..cb607ebcf97 100644 --- a/src/Generated/Models/CrossTenantAccessPolicyConfigurationPartner.php +++ b/src/Generated/Models/CrossTenantAccessPolicyConfigurationPartner.php @@ -47,6 +47,18 @@ public function getAdditionalData(): ?array { throw new \UnexpectedValueException("Invalid type found in backing store for 'additionalData'"); } + /** + * Gets the appServiceConnectInbound property value. The appServiceConnectInbound property + * @return CrossTenantAccessPolicyAppServiceConnectSetting|null + */ + public function getAppServiceConnectInbound(): ?CrossTenantAccessPolicyAppServiceConnectSetting { + $val = $this->getBackingStore()->get('appServiceConnectInbound'); + if (is_null($val) || $val instanceof CrossTenantAccessPolicyAppServiceConnectSetting) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'appServiceConnectInbound'"); + } + /** * Gets the automaticUserConsentSettings property value. Determines the partner-specific configuration for automatic user consent settings. Unless specifically configured, the inboundAllowed and outboundAllowed properties are null and inherit from the default settings, which is always false. * @return InboundOutboundPolicyConfiguration|null @@ -122,6 +134,7 @@ public function getBackingStore(): BackingStore { public function getFieldDeserializers(): array { $o = $this; return [ + 'appServiceConnectInbound' => fn(ParseNode $n) => $o->setAppServiceConnectInbound($n->getObjectValue([CrossTenantAccessPolicyAppServiceConnectSetting::class, 'createFromDiscriminatorValue'])), 'automaticUserConsentSettings' => fn(ParseNode $n) => $o->setAutomaticUserConsentSettings($n->getObjectValue([InboundOutboundPolicyConfiguration::class, 'createFromDiscriminatorValue'])), 'b2bCollaborationInbound' => fn(ParseNode $n) => $o->setB2bCollaborationInbound($n->getObjectValue([CrossTenantAccessPolicyB2BSetting::class, 'createFromDiscriminatorValue'])), 'b2bCollaborationOutbound' => fn(ParseNode $n) => $o->setB2bCollaborationOutbound($n->getObjectValue([CrossTenantAccessPolicyB2BSetting::class, 'createFromDiscriminatorValue'])), @@ -131,6 +144,8 @@ public function getFieldDeserializers(): array { 'inboundTrust' => fn(ParseNode $n) => $o->setInboundTrust($n->getObjectValue([CrossTenantAccessPolicyInboundTrust::class, 'createFromDiscriminatorValue'])), 'isInMultiTenantOrganization' => fn(ParseNode $n) => $o->setIsInMultiTenantOrganization($n->getBooleanValue()), 'isServiceProvider' => fn(ParseNode $n) => $o->setIsServiceProvider($n->getBooleanValue()), + 'm365CollaborationInbound' => fn(ParseNode $n) => $o->setM365CollaborationInbound($n->getObjectValue([CrossTenantAccessPolicyM365CollaborationInboundSetting::class, 'createFromDiscriminatorValue'])), + 'm365CollaborationOutbound' => fn(ParseNode $n) => $o->setM365CollaborationOutbound($n->getObjectValue([CrossTenantAccessPolicyM365CollaborationOutboundSetting::class, 'createFromDiscriminatorValue'])), '@odata.type' => fn(ParseNode $n) => $o->setOdataType($n->getStringValue()), 'tenantId' => fn(ParseNode $n) => $o->setTenantId($n->getStringValue()), 'tenantRestrictions' => fn(ParseNode $n) => $o->setTenantRestrictions($n->getObjectValue([CrossTenantAccessPolicyTenantRestrictions::class, 'createFromDiscriminatorValue'])), @@ -185,6 +200,30 @@ public function getIsServiceProvider(): ?bool { throw new \UnexpectedValueException("Invalid type found in backing store for 'isServiceProvider'"); } + /** + * Gets the m365CollaborationInbound property value. The m365CollaborationInbound property + * @return CrossTenantAccessPolicyM365CollaborationInboundSetting|null + */ + public function getM365CollaborationInbound(): ?CrossTenantAccessPolicyM365CollaborationInboundSetting { + $val = $this->getBackingStore()->get('m365CollaborationInbound'); + if (is_null($val) || $val instanceof CrossTenantAccessPolicyM365CollaborationInboundSetting) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'm365CollaborationInbound'"); + } + + /** + * Gets the m365CollaborationOutbound property value. The m365CollaborationOutbound property + * @return CrossTenantAccessPolicyM365CollaborationOutboundSetting|null + */ + public function getM365CollaborationOutbound(): ?CrossTenantAccessPolicyM365CollaborationOutboundSetting { + $val = $this->getBackingStore()->get('m365CollaborationOutbound'); + if (is_null($val) || $val instanceof CrossTenantAccessPolicyM365CollaborationOutboundSetting) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'm365CollaborationOutbound'"); + } + /** * Gets the @odata.type property value. The OdataType property * @return string|null @@ -226,6 +265,7 @@ public function getTenantRestrictions(): ?CrossTenantAccessPolicyTenantRestricti * @param SerializationWriter $writer Serialization writer to use to serialize this model */ public function serialize(SerializationWriter $writer): void { + $writer->writeObjectValue('appServiceConnectInbound', $this->getAppServiceConnectInbound()); $writer->writeObjectValue('automaticUserConsentSettings', $this->getAutomaticUserConsentSettings()); $writer->writeObjectValue('b2bCollaborationInbound', $this->getB2bCollaborationInbound()); $writer->writeObjectValue('b2bCollaborationOutbound', $this->getB2bCollaborationOutbound()); @@ -235,6 +275,8 @@ public function serialize(SerializationWriter $writer): void { $writer->writeObjectValue('inboundTrust', $this->getInboundTrust()); $writer->writeBooleanValue('isInMultiTenantOrganization', $this->getIsInMultiTenantOrganization()); $writer->writeBooleanValue('isServiceProvider', $this->getIsServiceProvider()); + $writer->writeObjectValue('m365CollaborationInbound', $this->getM365CollaborationInbound()); + $writer->writeObjectValue('m365CollaborationOutbound', $this->getM365CollaborationOutbound()); $writer->writeStringValue('@odata.type', $this->getOdataType()); $writer->writeStringValue('tenantId', $this->getTenantId()); $writer->writeObjectValue('tenantRestrictions', $this->getTenantRestrictions()); @@ -249,6 +291,14 @@ public function setAdditionalData(?array $value): void { $this->getBackingStore()->set('additionalData', $value); } + /** + * Sets the appServiceConnectInbound property value. The appServiceConnectInbound property + * @param CrossTenantAccessPolicyAppServiceConnectSetting|null $value Value to set for the appServiceConnectInbound property. + */ + public function setAppServiceConnectInbound(?CrossTenantAccessPolicyAppServiceConnectSetting $value): void { + $this->getBackingStore()->set('appServiceConnectInbound', $value); + } + /** * Sets the automaticUserConsentSettings property value. Determines the partner-specific configuration for automatic user consent settings. Unless specifically configured, the inboundAllowed and outboundAllowed properties are null and inherit from the default settings, which is always false. * @param InboundOutboundPolicyConfiguration|null $value Value to set for the automaticUserConsentSettings property. @@ -329,6 +379,22 @@ public function setIsServiceProvider(?bool $value): void { $this->getBackingStore()->set('isServiceProvider', $value); } + /** + * Sets the m365CollaborationInbound property value. The m365CollaborationInbound property + * @param CrossTenantAccessPolicyM365CollaborationInboundSetting|null $value Value to set for the m365CollaborationInbound property. + */ + public function setM365CollaborationInbound(?CrossTenantAccessPolicyM365CollaborationInboundSetting $value): void { + $this->getBackingStore()->set('m365CollaborationInbound', $value); + } + + /** + * Sets the m365CollaborationOutbound property value. The m365CollaborationOutbound property + * @param CrossTenantAccessPolicyM365CollaborationOutboundSetting|null $value Value to set for the m365CollaborationOutbound property. + */ + public function setM365CollaborationOutbound(?CrossTenantAccessPolicyM365CollaborationOutboundSetting $value): void { + $this->getBackingStore()->set('m365CollaborationOutbound', $value); + } + /** * Sets the @odata.type property value. The OdataType property * @param string|null $value Value to set for the @odata.type property. diff --git a/src/Generated/Models/CrossTenantAccessPolicyM365CollaborationInboundSetting.php b/src/Generated/Models/CrossTenantAccessPolicyM365CollaborationInboundSetting.php new file mode 100644 index 00000000000..bf86a894ba0 --- /dev/null +++ b/src/Generated/Models/CrossTenantAccessPolicyM365CollaborationInboundSetting.php @@ -0,0 +1,136 @@ +backingStore = BackingStoreFactorySingleton::getInstance()->createBackingStore(); + $this->setAdditionalData([]); + } + + /** + * Creates a new instance of the appropriate class based on discriminator value + * @param ParseNode $parseNode The parse node to use to read the discriminator value and create the object + * @return CrossTenantAccessPolicyM365CollaborationInboundSetting + */ + public static function createFromDiscriminatorValue(ParseNode $parseNode): CrossTenantAccessPolicyM365CollaborationInboundSetting { + return new CrossTenantAccessPolicyM365CollaborationInboundSetting(); + } + + /** + * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @return array|null + */ + public function getAdditionalData(): ?array { + $val = $this->getBackingStore()->get('additionalData'); + if (is_null($val) || is_array($val)) { + /** @var array|null $val */ + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'additionalData'"); + } + + /** + * Gets the BackingStore property value. Stores model information. + * @return BackingStore + */ + public function getBackingStore(): BackingStore { + return $this->backingStore; + } + + /** + * The deserialization information for the current model + * @return array + */ + public function getFieldDeserializers(): array { + $o = $this; + return [ + '@odata.type' => fn(ParseNode $n) => $o->setOdataType($n->getStringValue()), + 'users' => fn(ParseNode $n) => $o->setUsers($n->getObjectValue([CrossTenantAccessPolicyTargetConfiguration::class, 'createFromDiscriminatorValue'])), + ]; + } + + /** + * Gets the @odata.type property value. The OdataType property + * @return string|null + */ + public function getOdataType(): ?string { + $val = $this->getBackingStore()->get('odataType'); + if (is_null($val) || is_string($val)) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'odataType'"); + } + + /** + * Gets the users property value. The users property + * @return CrossTenantAccessPolicyTargetConfiguration|null + */ + public function getUsers(): ?CrossTenantAccessPolicyTargetConfiguration { + $val = $this->getBackingStore()->get('users'); + if (is_null($val) || $val instanceof CrossTenantAccessPolicyTargetConfiguration) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'users'"); + } + + /** + * Serializes information the current object + * @param SerializationWriter $writer Serialization writer to use to serialize this model + */ + public function serialize(SerializationWriter $writer): void { + $writer->writeStringValue('@odata.type', $this->getOdataType()); + $writer->writeObjectValue('users', $this->getUsers()); + $writer->writeAdditionalData($this->getAdditionalData()); + } + + /** + * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @param array $value Value to set for the AdditionalData property. + */ + public function setAdditionalData(?array $value): void { + $this->getBackingStore()->set('additionalData', $value); + } + + /** + * Sets the BackingStore property value. Stores model information. + * @param BackingStore $value Value to set for the BackingStore property. + */ + public function setBackingStore(BackingStore $value): void { + $this->backingStore = $value; + } + + /** + * Sets the @odata.type property value. The OdataType property + * @param string|null $value Value to set for the @odata.type property. + */ + public function setOdataType(?string $value): void { + $this->getBackingStore()->set('odataType', $value); + } + + /** + * Sets the users property value. The users property + * @param CrossTenantAccessPolicyTargetConfiguration|null $value Value to set for the users property. + */ + public function setUsers(?CrossTenantAccessPolicyTargetConfiguration $value): void { + $this->getBackingStore()->set('users', $value); + } + +} diff --git a/src/Generated/Models/CrossTenantAccessPolicyM365CollaborationOutboundSetting.php b/src/Generated/Models/CrossTenantAccessPolicyM365CollaborationOutboundSetting.php new file mode 100644 index 00000000000..757d78304e5 --- /dev/null +++ b/src/Generated/Models/CrossTenantAccessPolicyM365CollaborationOutboundSetting.php @@ -0,0 +1,136 @@ +backingStore = BackingStoreFactorySingleton::getInstance()->createBackingStore(); + $this->setAdditionalData([]); + } + + /** + * Creates a new instance of the appropriate class based on discriminator value + * @param ParseNode $parseNode The parse node to use to read the discriminator value and create the object + * @return CrossTenantAccessPolicyM365CollaborationOutboundSetting + */ + public static function createFromDiscriminatorValue(ParseNode $parseNode): CrossTenantAccessPolicyM365CollaborationOutboundSetting { + return new CrossTenantAccessPolicyM365CollaborationOutboundSetting(); + } + + /** + * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @return array|null + */ + public function getAdditionalData(): ?array { + $val = $this->getBackingStore()->get('additionalData'); + if (is_null($val) || is_array($val)) { + /** @var array|null $val */ + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'additionalData'"); + } + + /** + * Gets the BackingStore property value. Stores model information. + * @return BackingStore + */ + public function getBackingStore(): BackingStore { + return $this->backingStore; + } + + /** + * The deserialization information for the current model + * @return array + */ + public function getFieldDeserializers(): array { + $o = $this; + return [ + '@odata.type' => fn(ParseNode $n) => $o->setOdataType($n->getStringValue()), + 'usersAndGroups' => fn(ParseNode $n) => $o->setUsersAndGroups($n->getObjectValue([CrossTenantAccessPolicyTargetConfiguration::class, 'createFromDiscriminatorValue'])), + ]; + } + + /** + * Gets the @odata.type property value. The OdataType property + * @return string|null + */ + public function getOdataType(): ?string { + $val = $this->getBackingStore()->get('odataType'); + if (is_null($val) || is_string($val)) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'odataType'"); + } + + /** + * Gets the usersAndGroups property value. The usersAndGroups property + * @return CrossTenantAccessPolicyTargetConfiguration|null + */ + public function getUsersAndGroups(): ?CrossTenantAccessPolicyTargetConfiguration { + $val = $this->getBackingStore()->get('usersAndGroups'); + if (is_null($val) || $val instanceof CrossTenantAccessPolicyTargetConfiguration) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'usersAndGroups'"); + } + + /** + * Serializes information the current object + * @param SerializationWriter $writer Serialization writer to use to serialize this model + */ + public function serialize(SerializationWriter $writer): void { + $writer->writeStringValue('@odata.type', $this->getOdataType()); + $writer->writeObjectValue('usersAndGroups', $this->getUsersAndGroups()); + $writer->writeAdditionalData($this->getAdditionalData()); + } + + /** + * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @param array $value Value to set for the AdditionalData property. + */ + public function setAdditionalData(?array $value): void { + $this->getBackingStore()->set('additionalData', $value); + } + + /** + * Sets the BackingStore property value. Stores model information. + * @param BackingStore $value Value to set for the BackingStore property. + */ + public function setBackingStore(BackingStore $value): void { + $this->backingStore = $value; + } + + /** + * Sets the @odata.type property value. The OdataType property + * @param string|null $value Value to set for the @odata.type property. + */ + public function setOdataType(?string $value): void { + $this->getBackingStore()->set('odataType', $value); + } + + /** + * Sets the usersAndGroups property value. The usersAndGroups property + * @param CrossTenantAccessPolicyTargetConfiguration|null $value Value to set for the usersAndGroups property. + */ + public function setUsersAndGroups(?CrossTenantAccessPolicyTargetConfiguration $value): void { + $this->getBackingStore()->set('usersAndGroups', $value); + } + +} diff --git a/src/Generated/Models/CustomAuthenticationExtension.php b/src/Generated/Models/CustomAuthenticationExtension.php index 2f08b88263a..c1755b9e565 100644 --- a/src/Generated/Models/CustomAuthenticationExtension.php +++ b/src/Generated/Models/CustomAuthenticationExtension.php @@ -29,6 +29,7 @@ public static function createFromDiscriminatorValue(ParseNode $parseNode): Custo case '#microsoft.graph.onAttributeCollectionStartCustomExtension': return new OnAttributeCollectionStartCustomExtension(); case '#microsoft.graph.onAttributeCollectionSubmitCustomExtension': return new OnAttributeCollectionSubmitCustomExtension(); case '#microsoft.graph.onOtpSendCustomExtension': return new OnOtpSendCustomExtension(); + case '#microsoft.graph.onPasswordSubmitCustomExtension': return new OnPasswordSubmitCustomExtension(); case '#microsoft.graph.onTokenIssuanceStartCustomExtension': return new OnTokenIssuanceStartCustomExtension(); } } diff --git a/src/Generated/Models/CustomCalloutExtension.php b/src/Generated/Models/CustomCalloutExtension.php index ecf2a0e0a79..8d12359e151 100644 --- a/src/Generated/Models/CustomCalloutExtension.php +++ b/src/Generated/Models/CustomCalloutExtension.php @@ -33,6 +33,7 @@ public static function createFromDiscriminatorValue(ParseNode $parseNode): Custo case '#microsoft.graph.onAttributeCollectionStartCustomExtension': return new OnAttributeCollectionStartCustomExtension(); case '#microsoft.graph.onAttributeCollectionSubmitCustomExtension': return new OnAttributeCollectionSubmitCustomExtension(); case '#microsoft.graph.onOtpSendCustomExtension': return new OnOtpSendCustomExtension(); + case '#microsoft.graph.onPasswordSubmitCustomExtension': return new OnPasswordSubmitCustomExtension(); case '#microsoft.graph.onTokenIssuanceStartCustomExtension': return new OnTokenIssuanceStartCustomExtension(); } } diff --git a/src/Generated/Models/Dictionary.php b/src/Generated/Models/Dictionary.php index c45e9e9c1bc..032ecb9c231 100644 --- a/src/Generated/Models/Dictionary.php +++ b/src/Generated/Models/Dictionary.php @@ -37,6 +37,7 @@ public static function createFromDiscriminatorValue(ParseNode $parseNode): Dicti switch ($mappingValue) { case '#microsoft.graph.customMetadataDictionary': return new CustomMetadataDictionary(); case '#microsoft.graph.fileStorageContainerCustomPropertyDictionary': return new FileStorageContainerCustomPropertyDictionary(); + case '#microsoft.graph.openComplexDictionaryType': return new OpenComplexDictionaryType(); case '#microsoft.graph.resultTemplateDictionary': return new ResultTemplateDictionary(); } } diff --git a/src/Generated/Models/DirectoryObject.php b/src/Generated/Models/DirectoryObject.php index 0cc4f1c8553..ea5f0646fbf 100644 --- a/src/Generated/Models/DirectoryObject.php +++ b/src/Generated/Models/DirectoryObject.php @@ -28,6 +28,10 @@ public static function createFromDiscriminatorValue(ParseNode $parseNode): Direc switch ($mappingValue) { case '#microsoft.graph.activityBasedTimeoutPolicy': return new ActivityBasedTimeoutPolicy(); case '#microsoft.graph.administrativeUnit': return new AdministrativeUnit(); + case '#microsoft.graph.agentIdentity': return new AgentIdentity(); + case '#microsoft.graph.agentIdentityBlueprint': return new AgentIdentityBlueprint(); + case '#microsoft.graph.agentIdentityBlueprintPrincipal': return new AgentIdentityBlueprintPrincipal(); + case '#microsoft.graph.agentUser': return new AgentUser(); case '#microsoft.graph.application': return new Application(); case '#microsoft.graph.appManagementPolicy': return new AppManagementPolicy(); case '#microsoft.graph.appRoleAssignment': return new AppRoleAssignment(); @@ -47,6 +51,7 @@ public static function createFromDiscriminatorValue(ParseNode $parseNode): Direc case '#microsoft.graph.groupSettingTemplate': return new GroupSettingTemplate(); case '#microsoft.graph.homeRealmDiscoveryPolicy': return new HomeRealmDiscoveryPolicy(); case '#microsoft.graph.identitySecurityDefaultsEnforcementPolicy': return new IdentitySecurityDefaultsEnforcementPolicy(); + case '#microsoft.graph.mailbox': return new Mailbox(); case '#microsoft.graph.multiTenantOrganizationMember': return new MultiTenantOrganizationMember(); case '#microsoft.graph.organization': return new Organization(); case '#microsoft.graph.orgContact': return new OrgContact(); diff --git a/src/Generated/Models/DlpAction.php b/src/Generated/Models/DlpAction.php index 44f5dfa05d1..e4c559ff149 100644 --- a/src/Generated/Models/DlpAction.php +++ b/src/Generated/Models/DlpAction.php @@ -17,4 +17,5 @@ class DlpAction extends Enum { public const S_P_RUNTIME_ACCESS_CONTROL = "sPRuntimeAccessControl"; public const S_P_SHARING_NOTIFY_USER = "sPSharingNotifyUser"; public const S_P_SHARING_GENERATE_INCIDENT_REPORT = "sPSharingGenerateIncidentReport"; + public const RESTRICT_WEB_GROUNDING = "restrictWebGrounding"; } diff --git a/src/Generated/Models/DriftStatus.php b/src/Generated/Models/DriftStatus.php new file mode 100644 index 00000000000..266bd2109a4 --- /dev/null +++ b/src/Generated/Models/DriftStatus.php @@ -0,0 +1,11 @@ +backingStore = BackingStoreFactorySingleton::getInstance()->createBackingStore(); + $this->setAdditionalData([]); + } + + /** + * Creates a new instance of the appropriate class based on discriminator value + * @param ParseNode $parseNode The parse node to use to read the discriminator value and create the object + * @return DriftedProperty + */ + public static function createFromDiscriminatorValue(ParseNode $parseNode): DriftedProperty { + return new DriftedProperty(); + } + + /** + * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @return array|null + */ + public function getAdditionalData(): ?array { + $val = $this->getBackingStore()->get('additionalData'); + if (is_null($val) || is_array($val)) { + /** @var array|null $val */ + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'additionalData'"); + } + + /** + * Gets the BackingStore property value. Stores model information. + * @return BackingStore + */ + public function getBackingStore(): BackingStore { + return $this->backingStore; + } + + /** + * The deserialization information for the current model + * @return array + */ + public function getFieldDeserializers(): array { + $o = $this; + return [ + '@odata.type' => fn(ParseNode $n) => $o->setOdataType($n->getStringValue()), + 'propertyName' => fn(ParseNode $n) => $o->setPropertyName($n->getStringValue()), + ]; + } + + /** + * Gets the @odata.type property value. The OdataType property + * @return string|null + */ + public function getOdataType(): ?string { + $val = $this->getBackingStore()->get('odataType'); + if (is_null($val) || is_string($val)) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'odataType'"); + } + + /** + * Gets the propertyName property value. The name of the property. + * @return string|null + */ + public function getPropertyName(): ?string { + $val = $this->getBackingStore()->get('propertyName'); + if (is_null($val) || is_string($val)) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'propertyName'"); + } + + /** + * Serializes information the current object + * @param SerializationWriter $writer Serialization writer to use to serialize this model + */ + public function serialize(SerializationWriter $writer): void { + $writer->writeStringValue('@odata.type', $this->getOdataType()); + $writer->writeAdditionalData($this->getAdditionalData()); + } + + /** + * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @param array $value Value to set for the AdditionalData property. + */ + public function setAdditionalData(?array $value): void { + $this->getBackingStore()->set('additionalData', $value); + } + + /** + * Sets the BackingStore property value. Stores model information. + * @param BackingStore $value Value to set for the BackingStore property. + */ + public function setBackingStore(BackingStore $value): void { + $this->backingStore = $value; + } + + /** + * Sets the @odata.type property value. The OdataType property + * @param string|null $value Value to set for the @odata.type property. + */ + public function setOdataType(?string $value): void { + $this->getBackingStore()->set('odataType', $value); + } + + /** + * Sets the propertyName property value. The name of the property. + * @param string|null $value Value to set for the propertyName property. + */ + public function setPropertyName(?string $value): void { + $this->getBackingStore()->set('propertyName', $value); + } + +} diff --git a/src/Generated/Models/Entity.php b/src/Generated/Models/Entity.php index 41342a07cdb..4fa944b2d55 100644 --- a/src/Generated/Models/Entity.php +++ b/src/Generated/Models/Entity.php @@ -125,11 +125,14 @@ use Microsoft\Graph\Generated\Models\Security\WhoisBaseRecord; use Microsoft\Graph\Generated\Models\Security\WhoisHistoryRecord; use Microsoft\Graph\Generated\Models\Security\WhoisRecord; +use Microsoft\Graph\Generated\Models\TeamsAdministration\NumberAssignment; use Microsoft\Graph\Generated\Models\TeamsAdministration\PolicyIdentifierDetail; use Microsoft\Graph\Generated\Models\TeamsAdministration\TeamsAdminRoot; use Microsoft\Graph\Generated\Models\TeamsAdministration\TeamsPolicyAssignment; use Microsoft\Graph\Generated\Models\TeamsAdministration\TeamsPolicyUserAssignment; use Microsoft\Graph\Generated\Models\TeamsAdministration\TeamsUserConfiguration; +use Microsoft\Graph\Generated\Models\TeamsAdministration\TelephoneNumberLongRunningOperation; +use Microsoft\Graph\Generated\Models\TeamsAdministration\TelephoneNumberManagementRoot; use Microsoft\Graph\Generated\Models\TermStore\Group; use Microsoft\Graph\Generated\Models\TermStore\Relation; use Microsoft\Graph\Generated\Models\TermStore\Set; @@ -203,6 +206,10 @@ public static function createFromDiscriminatorValue(ParseNode $parseNode): Entit case '#microsoft.graph.administrativeUnit': return new AdministrativeUnit(); case '#microsoft.graph.adminMicrosoft365Apps': return new AdminMicrosoft365Apps(); case '#microsoft.graph.adminReportSettings': return new AdminReportSettings(); + case '#microsoft.graph.agentIdentity': return new AgentIdentity(); + case '#microsoft.graph.agentIdentityBlueprint': return new AgentIdentityBlueprint(); + case '#microsoft.graph.agentIdentityBlueprintPrincipal': return new AgentIdentityBlueprintPrincipal(); + case '#microsoft.graph.agentUser': return new AgentUser(); case '#microsoft.graph.agreement': return new Agreement(); case '#microsoft.graph.agreementAcceptance': return new AgreementAcceptance(); case '#microsoft.graph.agreementFile': return new AgreementFile(); @@ -345,6 +352,12 @@ public static function createFromDiscriminatorValue(ParseNode $parseNode): Entit case '#microsoft.graph.conditionalAccessPolicy': return new ConditionalAccessPolicy(); case '#microsoft.graph.conditionalAccessRoot': return new ConditionalAccessRoot(); case '#microsoft.graph.conditionalAccessTemplate': return new ConditionalAccessTemplate(); + case '#microsoft.graph.configurationBaseline': return new ConfigurationBaseline(); + case '#microsoft.graph.configurationDrift': return new ConfigurationDrift(); + case '#microsoft.graph.configurationManagement': return new ConfigurationManagement(); + case '#microsoft.graph.configurationMonitor': return new ConfigurationMonitor(); + case '#microsoft.graph.configurationMonitoringResult': return new ConfigurationMonitoringResult(); + case '#microsoft.graph.configurationSnapshotJob': return new ConfigurationSnapshotJob(); case '#microsoft.graph.connectedOrganization': return new ConnectedOrganization(); case '#microsoft.graph.contact': return new Contact(); case '#microsoft.graph.contactFolder': return new ContactFolder(); @@ -501,6 +514,7 @@ public static function createFromDiscriminatorValue(ParseNode $parseNode): Entit case '#microsoft.graph.exchangeMessageTraceDetail': return new ExchangeMessageTraceDetail(); case '#microsoft.graph.exchangeProtectionPolicy': return new ExchangeProtectionPolicy(); case '#microsoft.graph.exchangeRestoreSession': return new ExchangeRestoreSession(); + case '#microsoft.graph.exchangeSettings': return new ExchangeSettings(); case '#microsoft.graph.extension': return new Extension(); case '#microsoft.graph.extensionProperty': return new ExtensionProperty(); case '#microsoft.graph.externalAuthenticationMethod': return new ExternalAuthenticationMethod(); @@ -624,6 +638,9 @@ public static function createFromDiscriminatorValue(ParseNode $parseNode): Entit case '#microsoft.graph.macOSMicrosoftEdgeApp': return new MacOSMicrosoftEdgeApp(); case '#microsoft.graph.macOSOfficeSuiteApp': return new MacOSOfficeSuiteApp(); case '#microsoft.graph.mailAssessmentRequest': return new MailAssessmentRequest(); + case '#microsoft.graph.mailbox': return new Mailbox(); + case '#microsoft.graph.mailboxFolder': return new MailboxFolder(); + case '#microsoft.graph.mailboxItem': return new MailboxItem(); case '#microsoft.graph.mailboxProtectionRule': return new MailboxProtectionRule(); case '#microsoft.graph.mailboxProtectionUnit': return new MailboxProtectionUnit(); case '#microsoft.graph.mailboxProtectionUnitsBulkAdditionJob': return new MailboxProtectionUnitsBulkAdditionJob(); @@ -715,6 +732,8 @@ public static function createFromDiscriminatorValue(ParseNode $parseNode): Entit case '#microsoft.graph.onlineMeetingBase': return new OnlineMeetingBase(); case '#microsoft.graph.onlineMeetingEngagementConversation': return new OnlineMeetingEngagementConversation(); case '#microsoft.graph.onOtpSendCustomExtension': return new OnOtpSendCustomExtension(); + case '#microsoft.graph.onPasswordSubmitCustomExtension': return new OnPasswordSubmitCustomExtension(); + case '#microsoft.graph.onPasswordSubmitListener': return new OnPasswordSubmitListener(); case '#microsoft.graph.onPremisesConditionalAccessSettings': return new OnPremisesConditionalAccessSettings(); case '#microsoft.graph.onPremisesDirectorySynchronization': return new OnPremisesDirectorySynchronization(); case '#microsoft.graph.onPremisesSyncBehavior': return new OnPremisesSyncBehavior(); @@ -749,6 +768,8 @@ public static function createFromDiscriminatorValue(ParseNode $parseNode): Entit case '#microsoft.graph.partners.billing.runningOperation': return new RunningOperation(); case '#microsoft.graph.partners.billing.unbilledReconciliation': return new UnbilledReconciliation(); case '#microsoft.graph.partners.billing.unbilledUsage': return new UnbilledUsage(); + case '#microsoft.graph.passkeyAuthenticationMethodTarget': return new PasskeyAuthenticationMethodTarget(); + case '#microsoft.graph.passkeyProfile': return new PasskeyProfile(); case '#microsoft.graph.passwordAuthenticationMethod': return new PasswordAuthenticationMethod(); case '#microsoft.graph.payload': return new Payload(); case '#microsoft.graph.peopleAdminSettings': return new PeopleAdminSettings(); @@ -807,6 +828,7 @@ public static function createFromDiscriminatorValue(ParseNode $parseNode): Entit case '#microsoft.graph.privilegedAccessScheduleRequest': return new PrivilegedAccessScheduleRequest(); case '#microsoft.graph.profileCardProperty': return new ProfileCardProperty(); case '#microsoft.graph.profilePhoto': return new ProfilePhoto(); + case '#microsoft.graph.profileSource': return new ProfileSource(); case '#microsoft.graph.pronounsSettings': return new PronounsSettings(); case '#microsoft.graph.protectionPolicyBase': return new ProtectionPolicyBase(); case '#microsoft.graph.protectionRuleBase': return new ProtectionRuleBase(); @@ -814,6 +836,10 @@ public static function createFromDiscriminatorValue(ParseNode $parseNode): Entit case '#microsoft.graph.protectionUnitsBulkJobBase': return new ProtectionUnitsBulkJobBase(); case '#microsoft.graph.provisioningObjectSummary': return new ProvisioningObjectSummary(); case '#microsoft.graph.publicKeyInfrastructureRoot': return new PublicKeyInfrastructureRoot(); + case '#microsoft.graph.qrCode': return new QrCode(); + case '#microsoft.graph.qrCodePinAuthenticationMethod': return new QrCodePinAuthenticationMethod(); + case '#microsoft.graph.qrCodePinAuthenticationMethodConfiguration': return new QrCodePinAuthenticationMethodConfiguration(); + case '#microsoft.graph.qrPin': return new QrPin(); case '#microsoft.graph.rbacApplication': return new RbacApplication(); case '#microsoft.graph.readingAssignmentSubmission': return new ReadingAssignmentSubmission(); case '#microsoft.graph.readingCoachPassage': return new ReadingCoachPassage(); @@ -961,6 +987,8 @@ public static function createFromDiscriminatorValue(ParseNode $parseNode): Entit case '#microsoft.graph.sharedPCConfiguration': return new SharedPCConfiguration(); case '#microsoft.graph.sharedWithChannelTeamInfo': return new SharedWithChannelTeamInfo(); case '#microsoft.graph.sharepoint': return new Sharepoint(); + case '#microsoft.graph.sharePointGroup': return new SharePointGroup(); + case '#microsoft.graph.sharePointGroupMember': return new SharePointGroupMember(); case '#microsoft.graph.sharePointMigrationEvent': return new SharePointMigrationEvent(); case '#microsoft.graph.sharePointMigrationFinishManifestFileUploadEvent': return new SharePointMigrationFinishManifestFileUploadEvent(); case '#microsoft.graph.sharePointMigrationJob': return new SharePointMigrationJob(); @@ -1019,11 +1047,14 @@ public static function createFromDiscriminatorValue(ParseNode $parseNode): Entit case '#microsoft.graph.taskFileAttachment': return new TaskFileAttachment(); case '#microsoft.graph.team': return new Team(); case '#microsoft.graph.teamInfo': return new TeamInfo(); + case '#microsoft.graph.teamsAdministration.numberAssignment': return new NumberAssignment(); case '#microsoft.graph.teamsAdministration.policyIdentifierDetail': return new PolicyIdentifierDetail(); case '#microsoft.graph.teamsAdministration.teamsAdminRoot': return new TeamsAdminRoot(); case '#microsoft.graph.teamsAdministration.teamsPolicyAssignment': return new TeamsPolicyAssignment(); case '#microsoft.graph.teamsAdministration.teamsPolicyUserAssignment': return new TeamsPolicyUserAssignment(); case '#microsoft.graph.teamsAdministration.teamsUserConfiguration': return new TeamsUserConfiguration(); + case '#microsoft.graph.teamsAdministration.telephoneNumberLongRunningOperation': return new TelephoneNumberLongRunningOperation(); + case '#microsoft.graph.teamsAdministration.telephoneNumberManagementRoot': return new TelephoneNumberManagementRoot(); case '#microsoft.graph.teamsApp': return new TeamsApp(); case '#microsoft.graph.teamsAppDefinition': return new TeamsAppDefinition(); case '#microsoft.graph.teamsAppInstallation': return new TeamsAppInstallation(); diff --git a/src/Generated/Models/EnumeratedScopes.php b/src/Generated/Models/EnumeratedScopes.php new file mode 100644 index 00000000000..4d4a1896ec8 --- /dev/null +++ b/src/Generated/Models/EnumeratedScopes.php @@ -0,0 +1,78 @@ +setOdataType('#microsoft.graph.enumeratedScopes'); + } + + /** + * Creates a new instance of the appropriate class based on discriminator value + * @param ParseNode $parseNode The parse node to use to read the discriminator value and create the object + * @return EnumeratedScopes + */ + public static function createFromDiscriminatorValue(ParseNode $parseNode): EnumeratedScopes { + return new EnumeratedScopes(); + } + + /** + * The deserialization information for the current model + * @return array + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'scopes' => function (ParseNode $n) { + $val = $n->getCollectionOfPrimitiveValues(); + if (is_array($val)) { + TypeUtils::validateCollectionValues($val, 'string'); + } + /** @var array|null $val */ + $this->setScopes($val); + }, + ]); + } + + /** + * Gets the scopes property value. Required. Nonempty list of delegated permission scope identifiers published by the resource application to inherit. Entries must be unique and must not include any globally blocked scopes. + * @return array|null + */ + public function getScopes(): ?array { + $val = $this->getBackingStore()->get('scopes'); + if (is_array($val) || is_null($val)) { + TypeUtils::validateCollectionValues($val, 'string'); + /** @var array|null $val */ + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'scopes'"); + } + + /** + * Serializes information the current object + * @param SerializationWriter $writer Serialization writer to use to serialize this model + */ + public function serialize(SerializationWriter $writer): void { + parent::serialize($writer); + $writer->writeCollectionOfPrimitiveValues('scopes', $this->getScopes()); + } + + /** + * Sets the scopes property value. Required. Nonempty list of delegated permission scope identifiers published by the resource application to inherit. Entries must be unique and must not include any globally blocked scopes. + * @param array|null $value Value to set for the scopes property. + */ + public function setScopes(?array $value): void { + $this->getBackingStore()->set('scopes', $value); + } + +} diff --git a/src/Generated/Models/ErrorCorrectionLevel.php b/src/Generated/Models/ErrorCorrectionLevel.php new file mode 100644 index 00000000000..dc6a05407ac --- /dev/null +++ b/src/Generated/Models/ErrorCorrectionLevel.php @@ -0,0 +1,13 @@ +backingStore = BackingStoreFactorySingleton::getInstance()->createBackingStore(); + $this->setAdditionalData([]); + } + + /** + * Creates a new instance of the appropriate class based on discriminator value + * @param ParseNode $parseNode The parse node to use to read the discriminator value and create the object + * @return ErrorDetail + */ + public static function createFromDiscriminatorValue(ParseNode $parseNode): ErrorDetail { + return new ErrorDetail(); + } + + /** + * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @return array|null + */ + public function getAdditionalData(): ?array { + $val = $this->getBackingStore()->get('additionalData'); + if (is_null($val) || is_array($val)) { + /** @var array|null $val */ + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'additionalData'"); + } + + /** + * Gets the BackingStore property value. Stores model information. + * @return BackingStore + */ + public function getBackingStore(): BackingStore { + return $this->backingStore; + } + + /** + * Gets the errorMessage property value. The message that describes the error to help the admin take action. + * @return string|null + */ + public function getErrorMessage(): ?string { + $val = $this->getBackingStore()->get('errorMessage'); + if (is_null($val) || is_string($val)) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'errorMessage'"); + } + + /** + * The deserialization information for the current model + * @return array + */ + public function getFieldDeserializers(): array { + $o = $this; + return [ + 'errorMessage' => fn(ParseNode $n) => $o->setErrorMessage($n->getStringValue()), + '@odata.type' => fn(ParseNode $n) => $o->setOdataType($n->getStringValue()), + 'resourceInstanceName' => fn(ParseNode $n) => $o->setResourceInstanceName($n->getStringValue()), + 'resourceType' => fn(ParseNode $n) => $o->setResourceType($n->getStringValue()), + ]; + } + + /** + * Gets the @odata.type property value. The OdataType property + * @return string|null + */ + public function getOdataType(): ?string { + $val = $this->getBackingStore()->get('odataType'); + if (is_null($val) || is_string($val)) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'odataType'"); + } + + /** + * Gets the resourceInstanceName property value. The resource type identifier. + * @return string|null + */ + public function getResourceInstanceName(): ?string { + $val = $this->getBackingStore()->get('resourceInstanceName'); + if (is_null($val) || is_string($val)) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'resourceInstanceName'"); + } + + /** + * Gets the resourceType property value. Name of the resource type. + * @return string|null + */ + public function getResourceType(): ?string { + $val = $this->getBackingStore()->get('resourceType'); + if (is_null($val) || is_string($val)) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'resourceType'"); + } + + /** + * Serializes information the current object + * @param SerializationWriter $writer Serialization writer to use to serialize this model + */ + public function serialize(SerializationWriter $writer): void { + $writer->writeStringValue('@odata.type', $this->getOdataType()); + $writer->writeAdditionalData($this->getAdditionalData()); + } + + /** + * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @param array $value Value to set for the AdditionalData property. + */ + public function setAdditionalData(?array $value): void { + $this->getBackingStore()->set('additionalData', $value); + } + + /** + * Sets the BackingStore property value. Stores model information. + * @param BackingStore $value Value to set for the BackingStore property. + */ + public function setBackingStore(BackingStore $value): void { + $this->backingStore = $value; + } + + /** + * Sets the errorMessage property value. The message that describes the error to help the admin take action. + * @param string|null $value Value to set for the errorMessage property. + */ + public function setErrorMessage(?string $value): void { + $this->getBackingStore()->set('errorMessage', $value); + } + + /** + * Sets the @odata.type property value. The OdataType property + * @param string|null $value Value to set for the @odata.type property. + */ + public function setOdataType(?string $value): void { + $this->getBackingStore()->set('odataType', $value); + } + + /** + * Sets the resourceInstanceName property value. The resource type identifier. + * @param string|null $value Value to set for the resourceInstanceName property. + */ + public function setResourceInstanceName(?string $value): void { + $this->getBackingStore()->set('resourceInstanceName', $value); + } + + /** + * Sets the resourceType property value. Name of the resource type. + * @param string|null $value Value to set for the resourceType property. + */ + public function setResourceType(?string $value): void { + $this->getBackingStore()->set('resourceType', $value); + } + +} diff --git a/src/Generated/Models/ExchangeAdmin.php b/src/Generated/Models/ExchangeAdmin.php index 4165f6f1823..034674997a4 100644 --- a/src/Generated/Models/ExchangeAdmin.php +++ b/src/Generated/Models/ExchangeAdmin.php @@ -5,6 +5,7 @@ use Microsoft\Kiota\Abstractions\Serialization\Parsable; use Microsoft\Kiota\Abstractions\Serialization\ParseNode; use Microsoft\Kiota\Abstractions\Serialization\SerializationWriter; +use Microsoft\Kiota\Abstractions\Types\TypeUtils; class ExchangeAdmin extends Entity implements Parsable { @@ -31,10 +32,25 @@ public static function createFromDiscriminatorValue(ParseNode $parseNode): Excha public function getFieldDeserializers(): array { $o = $this; return array_merge(parent::getFieldDeserializers(), [ + 'mailboxes' => fn(ParseNode $n) => $o->setMailboxes($n->getCollectionOfObjectValues([Mailbox::class, 'createFromDiscriminatorValue'])), 'tracing' => fn(ParseNode $n) => $o->setTracing($n->getObjectValue([MessageTracingRoot::class, 'createFromDiscriminatorValue'])), ]); } + /** + * Gets the mailboxes property value. The mailboxes property + * @return array|null + */ + public function getMailboxes(): ?array { + $val = $this->getBackingStore()->get('mailboxes'); + if (is_array($val) || is_null($val)) { + TypeUtils::validateCollectionValues($val, Mailbox::class); + /** @var array|null $val */ + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'mailboxes'"); + } + /** * Gets the tracing property value. Represents a container for administrative resources to trace messages. * @return MessageTracingRoot|null @@ -53,9 +69,18 @@ public function getTracing(): ?MessageTracingRoot { */ public function serialize(SerializationWriter $writer): void { parent::serialize($writer); + $writer->writeCollectionOfObjectValues('mailboxes', $this->getMailboxes()); $writer->writeObjectValue('tracing', $this->getTracing()); } + /** + * Sets the mailboxes property value. The mailboxes property + * @param array|null $value Value to set for the mailboxes property. + */ + public function setMailboxes(?array $value): void { + $this->getBackingStore()->set('mailboxes', $value); + } + /** * Sets the tracing property value. Represents a container for administrative resources to trace messages. * @param MessageTracingRoot|null $value Value to set for the tracing property. diff --git a/src/Generated/Models/ExchangeSettings.php b/src/Generated/Models/ExchangeSettings.php new file mode 100644 index 00000000000..cbfd1d0cca1 --- /dev/null +++ b/src/Generated/Models/ExchangeSettings.php @@ -0,0 +1,67 @@ + + */ + public function getFieldDeserializers(): array { + $o = $this; + return array_merge(parent::getFieldDeserializers(), [ + 'primaryMailboxId' => fn(ParseNode $n) => $o->setPrimaryMailboxId($n->getStringValue()), + ]); + } + + /** + * Gets the primaryMailboxId property value. The primaryMailboxId property + * @return string|null + */ + public function getPrimaryMailboxId(): ?string { + $val = $this->getBackingStore()->get('primaryMailboxId'); + if (is_null($val) || is_string($val)) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'primaryMailboxId'"); + } + + /** + * Serializes information the current object + * @param SerializationWriter $writer Serialization writer to use to serialize this model + */ + public function serialize(SerializationWriter $writer): void { + parent::serialize($writer); + $writer->writeStringValue('primaryMailboxId', $this->getPrimaryMailboxId()); + } + + /** + * Sets the primaryMailboxId property value. The primaryMailboxId property + * @param string|null $value Value to set for the primaryMailboxId property. + */ + public function setPrimaryMailboxId(?string $value): void { + $this->getBackingStore()->set('primaryMailboxId', $value); + } + +} diff --git a/src/Generated/Models/ExportItemResponse.php b/src/Generated/Models/ExportItemResponse.php new file mode 100644 index 00000000000..f44f1e14a10 --- /dev/null +++ b/src/Generated/Models/ExportItemResponse.php @@ -0,0 +1,203 @@ +backingStore = BackingStoreFactorySingleton::getInstance()->createBackingStore(); + $this->setAdditionalData([]); + } + + /** + * Creates a new instance of the appropriate class based on discriminator value + * @param ParseNode $parseNode The parse node to use to read the discriminator value and create the object + * @return ExportItemResponse + */ + public static function createFromDiscriminatorValue(ParseNode $parseNode): ExportItemResponse { + return new ExportItemResponse(); + } + + /** + * Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @return array|null + */ + public function getAdditionalData(): ?array { + $val = $this->getBackingStore()->get('additionalData'); + if (is_null($val) || is_array($val)) { + /** @var array|null $val */ + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'additionalData'"); + } + + /** + * Gets the BackingStore property value. Stores model information. + * @return BackingStore + */ + public function getBackingStore(): BackingStore { + return $this->backingStore; + } + + /** + * Gets the changeKey property value. The changeKey property + * @return string|null + */ + public function getChangeKey(): ?string { + $val = $this->getBackingStore()->get('changeKey'); + if (is_null($val) || is_string($val)) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'changeKey'"); + } + + /** + * Gets the data property value. The data property + * @return StreamInterface|null + */ + public function getData(): ?StreamInterface { + $val = $this->getBackingStore()->get('data'); + if (is_null($val) || $val instanceof StreamInterface) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'data'"); + } + + /** + * Gets the error property value. The error property + * @return MailTipsError|null + */ + public function getError(): ?MailTipsError { + $val = $this->getBackingStore()->get('error'); + if (is_null($val) || $val instanceof MailTipsError) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'error'"); + } + + /** + * The deserialization information for the current model + * @return array + */ + public function getFieldDeserializers(): array { + $o = $this; + return [ + 'changeKey' => fn(ParseNode $n) => $o->setChangeKey($n->getStringValue()), + 'data' => fn(ParseNode $n) => $o->setData($n->getBinaryContent()), + 'error' => fn(ParseNode $n) => $o->setError($n->getObjectValue([MailTipsError::class, 'createFromDiscriminatorValue'])), + 'itemId' => fn(ParseNode $n) => $o->setItemId($n->getStringValue()), + '@odata.type' => fn(ParseNode $n) => $o->setOdataType($n->getStringValue()), + ]; + } + + /** + * Gets the itemId property value. The itemId property + * @return string|null + */ + public function getItemId(): ?string { + $val = $this->getBackingStore()->get('itemId'); + if (is_null($val) || is_string($val)) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'itemId'"); + } + + /** + * Gets the @odata.type property value. The OdataType property + * @return string|null + */ + public function getOdataType(): ?string { + $val = $this->getBackingStore()->get('odataType'); + if (is_null($val) || is_string($val)) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'odataType'"); + } + + /** + * Serializes information the current object + * @param SerializationWriter $writer Serialization writer to use to serialize this model + */ + public function serialize(SerializationWriter $writer): void { + $writer->writeStringValue('changeKey', $this->getChangeKey()); + $writer->writeBinaryContent('data', $this->getData()); + $writer->writeObjectValue('error', $this->getError()); + $writer->writeStringValue('itemId', $this->getItemId()); + $writer->writeStringValue('@odata.type', $this->getOdataType()); + $writer->writeAdditionalData($this->getAdditionalData()); + } + + /** + * Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + * @param array $value Value to set for the AdditionalData property. + */ + public function setAdditionalData(?array $value): void { + $this->getBackingStore()->set('additionalData', $value); + } + + /** + * Sets the BackingStore property value. Stores model information. + * @param BackingStore $value Value to set for the BackingStore property. + */ + public function setBackingStore(BackingStore $value): void { + $this->backingStore = $value; + } + + /** + * Sets the changeKey property value. The changeKey property + * @param string|null $value Value to set for the changeKey property. + */ + public function setChangeKey(?string $value): void { + $this->getBackingStore()->set('changeKey', $value); + } + + /** + * Sets the data property value. The data property + * @param StreamInterface|null $value Value to set for the data property. + */ + public function setData(?StreamInterface $value): void { + $this->getBackingStore()->set('data', $value); + } + + /** + * Sets the error property value. The error property + * @param MailTipsError|null $value Value to set for the error property. + */ + public function setError(?MailTipsError $value): void { + $this->getBackingStore()->set('error', $value); + } + + /** + * Sets the itemId property value. The itemId property + * @param string|null $value Value to set for the itemId property. + */ + public function setItemId(?string $value): void { + $this->getBackingStore()->set('itemId', $value); + } + + /** + * Sets the @odata.type property value. The OdataType property + * @param string|null $value Value to set for the @odata.type property. + */ + public function setOdataType(?string $value): void { + $this->getBackingStore()->set('odataType', $value); + } + +} diff --git a/src/Generated/Models/ExternalAuthenticationMethod.php b/src/Generated/Models/ExternalAuthenticationMethod.php index 9e2b1d6a0a6..0bae90dbe07 100644 --- a/src/Generated/Models/ExternalAuthenticationMethod.php +++ b/src/Generated/Models/ExternalAuthenticationMethod.php @@ -38,7 +38,7 @@ public function getConfigurationId(): ?string { } /** - * Gets the displayName property value. Custom name given to the registered external authentication method. + * Gets the displayName property value. Custom name given to the registered external MFA. * @return string|null */ public function getDisplayName(): ?string { @@ -80,7 +80,7 @@ public function setConfigurationId(?string $value): void { } /** - * Sets the displayName property value. Custom name given to the registered external authentication method. + * Sets the displayName property value. Custom name given to the registered external MFA. * @param string|null $value Value to set for the displayName property. */ public function setDisplayName(?string $value): void { diff --git a/src/Generated/Models/ExternalAuthenticationMethodConfiguration.php b/src/Generated/Models/ExternalAuthenticationMethodConfiguration.php index 6cd99954a35..d9b77d5a96f 100644 --- a/src/Generated/Models/ExternalAuthenticationMethodConfiguration.php +++ b/src/Generated/Models/ExternalAuthenticationMethodConfiguration.php @@ -39,7 +39,7 @@ public function getAppId(): ?string { } /** - * Gets the displayName property value. Display name for the external authentication method. This name is shown to users during sign-in. + * Gets the displayName property value. Display name for the external MFA. This name is shown to users during sign-in. * @return string|null */ public function getDisplayName(): ?string { @@ -111,7 +111,7 @@ public function setAppId(?string $value): void { } /** - * Sets the displayName property value. Display name for the external authentication method. This name is shown to users during sign-in. + * Sets the displayName property value. Display name for the external MFA. This name is shown to users during sign-in. * @param string|null $value Value to set for the displayName property. */ public function setDisplayName(?string $value): void { diff --git a/src/Generated/Models/ExternalConnectors/ContentCategory.php b/src/Generated/Models/ExternalConnectors/ContentCategory.php new file mode 100644 index 00000000000..2d1a3965c08 --- /dev/null +++ b/src/Generated/Models/ExternalConnectors/ContentCategory.php @@ -0,0 +1,23 @@ +getBackingStore()->get('contentCategory'); + if (is_null($val) || $val instanceof ContentCategory) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'contentCategory'"); + } + /** * Gets the description property value. Description of the connection displayed in the Microsoft 365 admin center. Optional. * @return string|null @@ -84,6 +96,7 @@ public function getFieldDeserializers(): array { 'activitySettings' => fn(ParseNode $n) => $o->setActivitySettings($n->getObjectValue([ActivitySettings::class, 'createFromDiscriminatorValue'])), 'configuration' => fn(ParseNode $n) => $o->setConfiguration($n->getObjectValue([Configuration::class, 'createFromDiscriminatorValue'])), 'connectorId' => fn(ParseNode $n) => $o->setConnectorId($n->getStringValue()), + 'contentCategory' => fn(ParseNode $n) => $o->setContentCategory($n->getEnumValue(ContentCategory::class)), 'description' => fn(ParseNode $n) => $o->setDescription($n->getStringValue()), 'groups' => fn(ParseNode $n) => $o->setGroups($n->getCollectionOfObjectValues([ExternalGroup::class, 'createFromDiscriminatorValue'])), 'items' => fn(ParseNode $n) => $o->setItems($n->getCollectionOfObjectValues([ExternalItem::class, 'createFromDiscriminatorValue'])), @@ -194,6 +207,7 @@ public function serialize(SerializationWriter $writer): void { $writer->writeObjectValue('activitySettings', $this->getActivitySettings()); $writer->writeObjectValue('configuration', $this->getConfiguration()); $writer->writeStringValue('connectorId', $this->getConnectorId()); + $writer->writeEnumValue('contentCategory', $this->getContentCategory()); $writer->writeStringValue('description', $this->getDescription()); $writer->writeCollectionOfObjectValues('groups', $this->getGroups()); $writer->writeCollectionOfObjectValues('items', $this->getItems()); @@ -227,6 +241,14 @@ public function setConnectorId(?string $value): void { $this->getBackingStore()->set('connectorId', $value); } + /** + * Sets the contentCategory property value. The contentCategory property + * @param ContentCategory|null $value Value to set for the contentCategory property. + */ + public function setContentCategory(?ContentCategory $value): void { + $this->getBackingStore()->set('contentCategory', $value); + } + /** * Sets the description property value. Description of the connection displayed in the Microsoft 365 admin center. Optional. * @param string|null $value Value to set for the description property. diff --git a/src/Generated/Models/ExternalConnectors/Label.php b/src/Generated/Models/ExternalConnectors/Label.php index 5889bff8a3f..f4b9fcdbeca 100644 --- a/src/Generated/Models/ExternalConnectors/Label.php +++ b/src/Generated/Models/ExternalConnectors/Label.php @@ -15,5 +15,43 @@ class Label extends Enum { public const FILE_NAME = "fileName"; public const FILE_EXTENSION = "fileExtension"; public const UNKNOWN_FUTURE_VALUE = "unknownFutureValue"; + public const CONTAINER_NAME = "containerName"; + public const CONTAINER_URL = "containerUrl"; public const ICON_URL = "iconUrl"; + public const ASSIGNED_TO_PEOPLE = "assignedToPeople"; + public const CLOSED_BY = "closedBy"; + public const CLOSED_DATE = "closedDate"; + public const PRIORITY = "priority"; + public const SPRINT_NAME = "sprintName"; + public const TAGS = "tags"; + public const SEVERITY = "severity"; + public const STATE = "state"; + public const DUE_DATE = "dueDate"; + public const ITEM_PARENT_ID = "itemParentId"; + public const ITEM_PATH = "itemPath"; + public const ITEM_TYPE = "itemType"; + public const NUMBER_OF_REACTIONS = "numberOfReactions"; + public const PARENT_URL = "parentUrl"; + public const PRIORITY_NORMALIZED = "priorityNormalized"; + public const REPORTED_BY = "reportedBy"; + public const SECONDARY_ID = "secondaryId"; + public const PERSON_EMAILS = "personEmails"; + public const PERSON_ADDRESSES = "personAddresses"; + public const PERSON_ANNIVERSARIES = "personAnniversaries"; + public const PERSON_NAME = "personName"; + public const PERSON_NOTE = "personNote"; + public const PERSON_PHONES = "personPhones"; + public const PERSON_CURRENT_POSITION = "personCurrentPosition"; + public const PERSON_WEB_ACCOUNTS = "personWebAccounts"; + public const PERSON_WEB_SITE = "personWebSite"; + public const PERSON_SKILLS = "personSkills"; + public const PERSON_PROJECTS = "personProjects"; + public const PERSON_ACCOUNT = "personAccount"; + public const PERSON_AWARDS = "personAwards"; + public const PERSON_CERTIFICATIONS = "personCertifications"; + public const PERSON_ASSISTANTS = "personAssistants"; + public const PERSON_COLLEAGUES = "personColleagues"; + public const PERSON_MANAGER = "personManager"; + public const PERSON_ALTERNATE_CONTACTS = "personAlternateContacts"; + public const PERSON_EMERGENCY_CONTACTS = "personEmergencyContacts"; } diff --git a/src/Generated/Models/ExternalConnectors/Property.php b/src/Generated/Models/ExternalConnectors/Property.php index d677adfe12a..c02f763155b 100644 --- a/src/Generated/Models/ExternalConnectors/Property.php +++ b/src/Generated/Models/ExternalConnectors/Property.php @@ -70,6 +70,18 @@ public function getBackingStore(): BackingStore { return $this->backingStore; } + /** + * Gets the description property value. Specifies a human-readable description that explains the purpose, usage, or guidance related to the property. This property enhances semantic understanding by helping Copilot interpret queries and accurately map them to properties that results in more relevant and precise responses. Optional but we recommend that you use this property for queryable properties. The maximum supported length is 200 characters. + * @return string|null + */ + public function getDescription(): ?string { + $val = $this->getBackingStore()->get('description'); + if (is_null($val) || is_string($val)) { + return $val; + } + throw new \UnexpectedValueException("Invalid type found in backing store for 'description'"); + } + /** * The deserialization information for the current model * @return array @@ -85,6 +97,7 @@ public function getFieldDeserializers(): array { /** @var array|null $val */ $this->setAliases($val); }, + 'description' => fn(ParseNode $n) => $o->setDescription($n->getStringValue()), 'isQueryable' => fn(ParseNode $n) => $o->setIsQueryable($n->getBooleanValue()), 'isRefinable' => fn(ParseNode $n) => $o->setIsRefinable($n->getBooleanValue()), 'isRetrievable' => fn(ParseNode $n) => $o->setIsRetrievable($n->getBooleanValue()), @@ -145,7 +158,7 @@ public function getIsSearchable(): ?bool { } /** - * Gets the labels property value. Specifies one or more well-known tags added against a property. Labels help Microsoft Search understand the semantics of the data in the connection. Adding appropriate labels would result in an enhanced search experience (for example, better relevance). Optional.The possible values are: title, url, createdBy, lastModifiedBy, authors, createdDateTime, lastModifiedDateTime, fileName, fileExtension, unknownFutureValue, iconUrl. Use the Prefer: include-unknown-enum-members request header to get the following members in this evolvable enum: iconUrl. + * Gets the labels property value. Specifies one or more well-known tags added against a property. Labels help Microsoft Search understand the semantics of the data in the connection. Adding appropriate labels would result in an enhanced search experience (for example, better relevance). Optional..The possible values are: title, url, createdBy, lastModifiedBy, authors, createdDateTime, lastModifiedDateTime, fileName, fileExtension, unknownFutureValue, containerName, containerUrl, iconUrl, assignedTo, dueDate, closedDate, closedBy, reportedBy, sprintName, severity, state, priority, secondaryId, itemParentId, parentUrl, tags, itemType, itemPath, numReactions. Use the Prefer: include-unknown-enum-members request header to retrieve additional values defined in this evolvable enum,For People Connectors you can include : personEmails, personAddresses, personAnniversaries, personName, personNote, personPhones, personCurrentPosition, personWebAccounts, personWebSite, personSkills, personProjects, personAccount, personAwards, personCertifications, personAssistants, personColleagues, personManager, personAlternateContacts, personEmergencyContacts. * @return array